This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Add support for OpenBSD/hppa system call stubs
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 14 Oct 2004 23:09:05 +0200 (CEST)
- Subject: [COMMIT] Add support for OpenBSD/hppa system call stubs
Should work for NetBSD/hppa too.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD and
NetBSD system call stubs that store %rp in the ERP slot of the
stack frame.
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.173
diff -u -p -r1.173 hppa-tdep.c
--- hppa-tdep.c 31 Jul 2004 21:53:17 -0000 1.173
+++ hppa-tdep.c 14 Oct 2004 21:06:18 -0000
@@ -1660,6 +1660,11 @@ hppa_frame_cache (struct frame_info *nex
looking_for_rp = 0;
cache->saved_regs[HPPA_RP_REGNUM].addr = -20;
}
+ else if (inst == 0x6bc23fd1) /* stw rp,-0x18(sr0,sp) */
+ {
+ looking_for_rp = 0;
+ cache->saved_regs[HPPA_RP_REGNUM].addr = -24;
+ }
else if (inst == 0x0fc212c1) /* std rp,-0x10(sr0,sp) */
{
looking_for_rp = 0;