This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]