pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/gdb/patches Silence false warning.
details: https://anonhg.NetBSD.org/pkgsrc/rev/c9d38e4bdb1c
branches: trunk
changeset: 530826:c9d38e4bdb1c
user: lkundrak <lkundrak%pkgsrc.org@localhost>
date: Wed Jul 11 13:15:53 2007 +0000
description:
Silence false warning.
diffstat:
devel/gdb/patches/patch-as | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diffs (32 lines):
diff -r 9c03a13fd71f -r c9d38e4bdb1c devel/gdb/patches/patch-as
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/gdb/patches/patch-as Wed Jul 11 13:15:53 2007 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index