This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] Infinite backtraces...


> I don't see how the stub unwinder code is going to be used if you
> are going to be skipping them. The only case when it is going to
> be used is when uwinding a program that was stopped just inside one.
> No?

not exactly...

1) it is used when stepping into a function called by a stub (this is
essential for software watchpointing; since there's hardware watch
pointing on hpux it may be less important)
2) it is used when the current frame's pc is 0

in this case, even if we skip the stub that calls the pthread start
function, the return from the real pthread_start function will still be
zero after you skip the stub, so we still need the stub unwinder to
return a null_frame_id to terminate the unwinding.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


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