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 amd64-linux %orig_rax


> Oh dear.  So if we set registers on the syscall exit path, the
> kernel/ISA may just eat them.  And we have no reliable way to know
> whether we're stopped on the syscall exit path.

If you're single stepping over it you can remember it from
one instruction before (check if the opcode is SYSCALL or SYSENTER,
these are unique 2 byte opcodes each)

If someone sets a breakpoint directly on the return point
and doesn't single step that wouldn't work, but then you shouldn't care about 
the previous register state anyways.

-Andi


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