This is the mail archive of the gdb@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: Stepping through signal trampolines


So there still seem to be some quirks with stepping through signal
trampolines.  But before we decide what's the bug, I think we should
ask ourselves what the desired behaviour is.  In my view:

* "finish" from within a signal handler should make us return to the
  signal trampoline.

* "finish" from within a signal trampoline should make us return to
  the point where the signal interruption occured.

* "stepi" from within a signal handler should step through the signal
  handler and back into the signal trampoline.

* "stepi" from within a signal trampoline should step through the
  signal trampoline until the sigreturn system call.

* nexti in a sigtramp is like stepi


What about disassemble? Disassemble the entire signal trampoline or the current instruction?

(you now know where my testcases are going :-)

Andrew



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