testsuite: FAILs in funcargs.exp

Corinna Vinschen vinschen@redhat.com
Wed Sep 3 09:16:00 GMT 2003


On Tue, Sep 02, 2003 at 06:22:46PM -0400, Andrew Cagney wrote:
> >There is a long comment about this starting at line 137 of
> >gdb.base/condbreak.exp.
> >
> >gdb prints '0xNNNNNNNN in function' when the instruction pointer
> >does not map to the first instruction of a line.  This is a common
> >issue when the function is nearly empty, like call6k or hitbottom.
> >
> >It's a real bug with the gcc line number notes, but it's so harmless
> >to users that I would not bother to fix it.
> 
> FYI, It's harmful to users.  If the prologue isn't correctly skipped 
> parameters are likely not where GDB expects them and that will lead to 
> to GDB printing bogus parameter values.  As a developer I know that an 
> extra 'next' gets a round the problem vis:
> 	(gdb) break main
> 	(gdb) run
> 	breakpoint at 0x1234 in main (argc=123455, argv=0)
> 	(gdb) print argc
> 	$1 = 123455
> 	(gdb) next
> 	(gdb) print argc
> 	$2 = 1
> but that isn't ok for users.

Aren't the users developers?

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.



More information about the Gdb mailing list