* Testsuite failure in gdb.mi/mi-var-child.exp
@ 2007-02-01 11:42 Andreas Schwab
2007-02-08 16:44 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 2007-02-01 11:42 UTC (permalink / raw)
To: gdb-patches
On systems with function descriptors a function value is printed like
"@0x40000000000014a0: 0x4000000000000a90 <nothing>". This isn't matched
by "$hex <nothing>".
Andreas.
2007-02-01 Andreas Schwab <schwab@suse.de>
* gdb.mi/mi-var-child.exp: Fix matching display of function value.
--- gdb/testsuite/gdb.mi/mi-var-child.exp.~1.21.~ 2006-08-10 11:01:15.000000000 +0200
+++ gdb/testsuite/gdb.mi/mi-var-child.exp 2007-02-01 11:29:25.000000000 +0100
@@ -1,4 +1,4 @@
-# Copyright 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation
+# Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007 Free Software Foundation
# This Program Is Free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -871,7 +871,7 @@ mi_gdb_test "-var-list-children --all-va
"listing of names and values of children"
mi_gdb_test "-var-list-children --simple-values struct_declarations" \
- "\\^done,numchild=\"11\",children=\\\[child=\{name=\"struct_declarations.integer\",exp=\"integer\",numchild=\"0\",value=\"123\",type=\"int\"\},child=\{name=\"struct_declarations.character\",exp=\"character\",numchild=\"0\",value=\"0 '\\\\\\\\0'\",type=\"char\"\},child=\{name=\"struct_declarations.char_ptr\",exp=\"char_ptr\",numchild=\"1\",value=\"$hex \\\\\"hello\\\\\"\",type=\"char \\*\"\},child=\{name=\"struct_declarations.long_int\",exp=\"long_int\",numchild=\"0\",value=\"0\",type=\"long int\"\},child=\{name=\"struct_declarations.int_ptr_ptr\",exp=\"int_ptr_ptr\",numchild=\"1\",value=\"$hex\",type=\"int \\*\\*\"\},child=\{name=\"struct_declarations.long_array\",exp=\"long_array\",numchild=\"12\",type=\"long int \\\[12\\\]\"\},child=\{name=\"struct_declarations.func_ptr\",exp=\"func_ptr\",numchild=\"0\",value=\"$hex <nothing>\",type=\"void \\(\\*\\)\\(void\\)\"\},child=\{name=\"struct_declarations.func_ptr_struct\",exp=\"func_ptr_struct\",numchild=\"0\",value=\"0\"
,type=\"struct _struct_decl \\(\\*\\)\\(int, char \\*, long int\\)\"\},child=\{name=\"struct_declarations.func_ptr_ptr\",exp=\"func_ptr_ptr\",numchild=\"0\",value=\"0\",type=\"struct _struct_decl \\*\\(\\*\\)\\(int, char \\*, long int\\)\"\},child=\{name=\"struct_declarations.u1\",exp=\"u1\",numchild=\"4\",type=\"union \{...\}\"\},child=\{name=\"struct_declarations.s2\",exp=\"s2\",numchild=\"4\",type=\"struct \{...\}\"\}\\\]" \
+ "\\^done,numchild=\"11\",children=\\\[child=\{name=\"struct_declarations.integer\",exp=\"integer\",numchild=\"0\",value=\"123\",type=\"int\"\},child=\{name=\"struct_declarations.character\",exp=\"character\",numchild=\"0\",value=\"0 '\\\\\\\\0'\",type=\"char\"\},child=\{name=\"struct_declarations.char_ptr\",exp=\"char_ptr\",numchild=\"1\",value=\"$hex \\\\\"hello\\\\\"\",type=\"char \\*\"\},child=\{name=\"struct_declarations.long_int\",exp=\"long_int\",numchild=\"0\",value=\"0\",type=\"long int\"\},child=\{name=\"struct_declarations.int_ptr_ptr\",exp=\"int_ptr_ptr\",numchild=\"1\",value=\"$hex\",type=\"int \\*\\*\"\},child=\{name=\"struct_declarations.long_array\",exp=\"long_array\",numchild=\"12\",type=\"long int \\\[12\\\]\"\},child=\{name=\"struct_declarations.func_ptr\",exp=\"func_ptr\",numchild=\"0\",value=\"(@$hex: |)$hex <nothing>\",type=\"void \\(\\*\\)\\(void\\)\"\},child=\{name=\"struct_declarations.func_ptr_struct\",exp=\"func_ptr_struct\",numchild=\"0\",v
alue=\"0\",type=\"struct _struct_decl \\(\\*\\)\\(int, char \\*, long int\\)\"\},child=\{name=\"struct_declarations.func_ptr_ptr\",exp=\"func_ptr_ptr\",numchild=\"0\",value=\"0\",type=\"struct _struct_decl \\*\\(\\*\\)\\(int, char \\*, long int\\)\"\},child=\{name=\"struct_declarations.u1\",exp=\"u1\",numchild=\"4\",type=\"union \{...\}\"\},child=\{name=\"struct_declarations.s2\",exp=\"s2\",numchild=\"4\",type=\"struct \{...\}\"\}\\\]" \
"listing of children, simple types: names, type and values, complex types: names and types"
# Delete all variables
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Testsuite failure in gdb.mi/mi-var-child.exp
2007-02-01 11:42 Testsuite failure in gdb.mi/mi-var-child.exp Andreas Schwab
@ 2007-02-08 16:44 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-02-08 16:44 UTC (permalink / raw)
To: Andreas Schwab; +Cc: gdb-patches
On Thu, Feb 01, 2007 at 12:42:12PM +0100, Andreas Schwab wrote:
> On systems with function descriptors a function value is printed like
> "@0x40000000000014a0: 0x4000000000000a90 <nothing>".
And that appears to be a feature, since it's handled specially in
c-valprint.c.
> 2007-02-01 Andreas Schwab <schwab@suse.de>
>
> * gdb.mi/mi-var-child.exp: Fix matching display of function value.
OK.
> @@ -1,4 +1,4 @@
> -# Copyright 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation
> +# Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007 Free Software Foundation
Whoops, the missing ", Inc." means that the copyright update script
missed it.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-08 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-01 11:42 Testsuite failure in gdb.mi/mi-var-child.exp Andreas Schwab
2007-02-08 16:44 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox