pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gdbada Added patch correcting how program counte...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c852c5f09dd1
branches: trunk
changeset: 492425:c852c5f09dd1
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Tue Apr 12 10:13:36 2005 +0000
description:
Added patch correcting how program counter and stack pointer are
accessed. This is simular to fix added to devel/gdb6.
diffstat:
devel/gdbada/distinfo | 3 ++-
devel/gdbada/patches/patch-ag | 32 ++++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 887bb90d0ba7 -r c852c5f09dd1 devel/gdbada/distinfo
--- a/devel/gdbada/distinfo Tue Apr 12 05:50:06 2005 +0000
+++ b/devel/gdbada/distinfo Tue Apr 12 10:13:36 2005 +0000
@@ -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-ad) = f831cd919d75ba8ab76c1f90b47ee443615397f8
SHA1 (patch-ae) = e2a7e553cab2d447e9c27f6fd956577355714f28
SHA1 (patch-af) = 4637beaaa978395547f7664504aced476ec946d8
+SHA1 (patch-ag) = 369813ddbe3ca2275a530758913329d37948086f
SHA1 (patch-gdb_defs) = 12e3b8035be7afec3e3f8dcea48e807352905940
diff -r 887bb90d0ba7 -r c852c5f09dd1 devel/gdbada/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdbada/patches/patch-ag Tue Apr 12 10:13:36 2005 +0000
@@ -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@localhost>.
+ 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)
+ {
Home |
Main Index |
Thread Index |
Old Index