breakpoint on varargs function not working with PowerPC and hard-float

Luis Machado luisgpm@linux.vnet.ibm.com
Mon Jan 26 12:24:00 GMT 2009


Didn't copy the list before, now doing so...


On Fri, 2009-01-23 at 18:25 -0800, DARIN JOHNSON wrote:
> There seems to be a problem on PowerPC when setting
> a breakpoint on some functions.  The breakpoint is
> placed on an address that will never be reached, so
> that GDB will not stop when stepping into that function.

Yes, i'm aware of this problem and i'm current looking into it from
GCC's side. It's indeed a part of the prologue, that may or may not be
executed, but GCC creates two distinct line number entries, confusing
GDB.

I'm not sure if sticking one extra case on rs6000_skip_prologue is the
best solution since the debugging information must be right for GDB, it
would be more of a workaround to the problem. Might be a temporary
solution until there's a fix on GCC.

Luis



More information about the Gdb mailing list