This is the mail archive of the gdb-patches@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: [RFA] Handle runtime loader dyn sym resolution in reverse


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.


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