This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Handle runtime loader dyn sym resolution in reverse
- From: Michael Snyder <msnyder at vmware dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, teawater <teawater at gmail dot com>
- Date: Sun, 26 Oct 2008 21:42:15 -0700
- Subject: Re: [RFA] Handle runtime loader dyn sym resolution in reverse
- References: <49028B5C.2000508@vmware.com> <20081025160945.GI29998@adacore.com>
Joel Brobecker wrote:
2008-10-24 Michael Snyder <msnyder@vmware.com>
* infrun.c (handle_inferior_event): Handle dynamic symbol
resolution in reverse.
Looks OK to me, but I don't understand why you check that stop_func_start
is zero. If I were to make a guess, it would be to quickly dismiss
the case were we reverse stepped into a function call, and so don't
need to check for trampolines (in other words, a CPU saver).
Correct, but it's more than a CPU saver.
If we are in a function (stop_func_start is non-zero),
then we can set a step_resume breakpoint and continue,
which is way faster than single stepping.
We single-step only when we have to, ie. when we have
actually stepped into the fixup jump table.