diff options
author | shannonjr <shannonjr@pkgsrc.org> | 2005-04-12 10:13:36 +0000 |
---|---|---|
committer | shannonjr <shannonjr@pkgsrc.org> | 2005-04-12 10:13:36 +0000 |
commit | ee8e2eb0934fd33bed96f9b78aaa25b4420d83c3 (patch) | |
tree | ea779df53c679078d3955bf5f211501ac146f037 /devel | |
parent | bb9762dcce1d0e8b2062e43e1b0b8902acbb3473 (diff) | |
download | pkgsrc-ee8e2eb0934fd33bed96f9b78aaa25b4420d83c3.tar.gz |
Added patch correcting how program counter and stack pointer are
accessed. This is simular to fix added to devel/gdb6.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gdbada/distinfo | 3 | ||||
-rw-r--r-- | devel/gdbada/patches/patch-ag | 32 |
2 files changed, 34 insertions, 1 deletions
diff --git a/devel/gdbada/distinfo b/devel/gdbada/distinfo index 45d21953f70..f776db87029 100644 --- a/devel/gdbada/distinfo +++ b/devel/gdbada/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2005/03/03 09:29:25 wiz Exp $ +$NetBSD: distinfo,v 1.4 2005/04/12 10:13:36 shannonjr Exp $ SHA1 (gdbada-5.3.tgz) = f5434113361c46e8fac67ecbbfc65f043733f803 RMD160 (gdbada-5.3.tgz) = 96a32804bf0792571d1e9cec9b4e9f65cbf8d83f @@ -9,4 +9,5 @@ SHA1 (patch-ac) = 681168205196ad6451674f703fcf9148b673d4de SHA1 (patch-ad) = f831cd919d75ba8ab76c1f90b47ee443615397f8 SHA1 (patch-ae) = e2a7e553cab2d447e9c27f6fd956577355714f28 SHA1 (patch-af) = 4637beaaa978395547f7664504aced476ec946d8 +SHA1 (patch-ag) = 369813ddbe3ca2275a530758913329d37948086f SHA1 (patch-gdb_defs) = 12e3b8035be7afec3e3f8dcea48e807352905940 diff --git a/devel/gdbada/patches/patch-ag b/devel/gdbada/patches/patch-ag new file mode 100644 index 00000000000..1a581cf76d0 --- /dev/null +++ b/devel/gdbada/patches/patch-ag @@ -0,0 +1,32 @@ +$NetBSD: patch-ag,v 1.1 2005/04/12 10:13:36 shannonjr Exp $ + +--- gdb/i386bsd-nat.c.orig 2003-01-16 02:46:34.000000000 -0700 ++++ gdb/i386bsd-nat.c +@@ -150,6 +150,9 @@ fill_gregset (gregset_t *gregsetp, int r + } + + #include "i387-tdep.h" ++#ifdef HAVE_SYS_PROCFS_H ++#include <sys/procfs.h> ++#endif + + /* Fill GDB's register array with the floating-point register values + in *FPREGSETP. */ +@@ -419,7 +422,7 @@ _initialize_i386bsd_nat (void) + + /* Override the default value for the offset of the program counter + in the sigcontext structure. */ +- sc_pc_offset = offsetof (struct sigcontext, sc_pc); ++ sc_pc_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_EIP]); + + if (SC_PC_OFFSET != sc_pc_offset) + { +@@ -432,7 +435,7 @@ Please report this to <bug-gdb@gnu.org>. + SC_PC_OFFSET = sc_pc_offset; + + /* Likewise for the stack pointer. */ +- sc_sp_offset = offsetof (struct sigcontext, sc_sp); ++ sc_pc_offset = offsetof (ucontext_t, uc_mcontext.__gregs[_REG_UESP]); + + if (SC_SP_OFFSET != sc_sp_offset) + { |