Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb fix i386 build.



details:   https://anonhg.NetBSD.org/src/rev/122c79e8c66c
branches:  trunk
changeset: 790362:122c79e8c66c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 04 15:24:44 2013 +0000

description:
fix i386 build.

diffstat:

 external/gpl3/gdb/dist/gdb/i386bsd-nat.h   |  4 ++++
 external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c |  7 ++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r f8775f7d4a68 -r 122c79e8c66c external/gpl3/gdb/dist/gdb/i386bsd-nat.h
--- a/external/gpl3/gdb/dist/gdb/i386bsd-nat.h  Fri Oct 04 15:15:39 2013 +0000
+++ b/external/gpl3/gdb/dist/gdb/i386bsd-nat.h  Fri Oct 04 15:24:44 2013 +0000
@@ -37,4 +37,8 @@
 
 extern unsigned long i386bsd_dr_get_control (void);
 
+extern void i386bsd_supply_gregset (struct regcache *, const void *);
+
+extern void i386bsd_collect_gregset (const struct regcache *, void *, int);
+
 #endif /* i386bsd-nat.h */
diff -r f8775f7d4a68 -r 122c79e8c66c external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c        Fri Oct 04 15:15:39 2013 +0000
+++ b/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c        Fri Oct 04 15:24:44 2013 +0000
@@ -301,9 +301,10 @@
   struct trad_frame_cache *cache;
   CORE_ADDR func, sp, addr, tmp;
   ULONGEST cs;
-  char *name;
+  const char *name;
   int i;
-  enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch);
+  struct gdbarch *gdbarch = get_frame_arch (this_frame);
+  enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
 
   if (*this_cache)
     return *this_cache;
@@ -383,7 +384,7 @@
                            void **this_prologue_cache)
 {
   ULONGEST cs;
-  char *name;
+  const char *name;
 
   /* Check Current Privilege Level and bail out if we're not executing
      in kernel space.  */



Home | Main Index | Thread Index | Old Index