summaryrefslogtreecommitdiff
path: root/devel/gdb/patches
diff options
context:
space:
mode:
authorlkundrak <lkundrak@pkgsrc.org>2007-07-11 13:15:53 +0000
committerlkundrak <lkundrak@pkgsrc.org>2007-07-11 13:15:53 +0000
commit807669d2741a85e93b257410a44012b89d7fdd78 (patch)
treeebaf6e20e00d8854995392dd0dd293e79d91bca8 /devel/gdb/patches
parentd6d43e23ee862e5f3656e079a66e42631d18a23f (diff)
downloadpkgsrc-807669d2741a85e93b257410a44012b89d7fdd78.tar.gz
Silence false warning.
Diffstat (limited to 'devel/gdb/patches')
-rw-r--r--devel/gdb/patches/patch-as28
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/gdb/patches/patch-as b/devel/gdb/patches/patch-as
new file mode 100644
index 00000000000..7807918ee5b
--- /dev/null
+++ b/devel/gdb/patches/patch-as
@@ -0,0 +1,28 @@
+$NetBSD: patch-as,v 1.1 2007/07/11 13:15:53 lkundrak Exp $
+
+--- gdb/i386nbsd-tdep.c.orig 2007-07-11 14:31:00.000000000 +0200
++++ gdb/i386nbsd-tdep.c
+@@ -31,6 +31,8 @@
+
+ #include "solib-svr4.h"
+
++#include <sys/param.h>
++
+ /* Map a GDB register number to an offset in the reg structure. */
+ static int regmap[] =
+ {
+@@ -238,9 +240,14 @@ i386nbsd_pc_in_sigtramp (CORE_ADDR pc, c
+ || i386nbsd_sigtramp_offset (pc) >= 0);
+ }
+
++#if __NetBSD_Prereq__(2,0,0)
+ /* From <machine/signal.h>. */
+ int i386nbsd_sc_pc_offset = 44;
+ int i386nbsd_sc_sp_offset = 56;
++#else
++int i386nbsd_sc_pc_offset = 92;
++int i386nbsd_sc_sp_offset = 104;
++#endif
+
+ static void
+ i386nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)