This is the mail archive of the gdb-patches@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] |
The problem is that the location of the signal trampoline depends on the VM layout, which can be changed. And on OpenBSD (which is very similar to NetBSD in many respects) the signal trampoline is mapped at a random location. So checking for the address isn't the most robust way. That's why NetBSD/i386 doesn't do this anymore, but instead looks for a specific instruction sequence (the instruction sequence for the sigreturn(2) system call).
NetBSD is moving away from using kernel-provided signal trampolines. NetBSD 2.0 will use signal trampolines provided by libc. These tramplones can be recognized by their name: they start with __sigtramp. See nbsd-tdep.c:nbsd_pc_in_sigtramp() and its usage in amd64nbsd-tdep.c.
Attachment:
PGP.sig
Description: This is a digitally signed message part
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |