This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Move the frame zero PC check earlier
On Thu, May 11, 2006 at 11:20:03PM -0700, Jim Blandy wrote:
> I think so. Using the backtrace above as an example, I understood why
> we need to know frame #1's type, but I didn't see the point in
> checking frame #2's type.
>
> But I think I do now. If CALL_DUMMY_LOCATION is AT_ENTRY_POINT, and
> the entry point is at address zero, then the test as written above
> would truncate backtraces at dummy frames.
Yeah, that's the only case I could think of. It's a shame to do extra
work for it everywhere - but probably safer. I can reorder the test to
only check the frame type if the PC is zero, though.
--
Daniel Jacobowitz
CodeSourcery