Module Name:    src
Committed By:   christos
Date:           Fri Oct  4 15:24:44 UTC 2013

Modified Files:
        src/external/gpl3/gdb/dist/gdb: i386bsd-nat.h i386nbsd-tdep.c

Log Message:
fix i386 build.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h
diff -u src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h:1.3 src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h:1.4
--- src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h:1.3	Thu Oct  3 14:30:44 2013
+++ src/external/gpl3/gdb/dist/gdb/i386bsd-nat.h	Fri Oct  4 11:24:44 2013
@@ -37,4 +37,8 @@ extern unsigned long i386bsd_dr_get_stat
 
 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 */

Index: src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c:1.6	Thu Oct  3 14:30:44 2013
+++ src/external/gpl3/gdb/dist/gdb/i386nbsd-tdep.c	Fri Oct  4 11:24:44 2013
@@ -301,9 +301,10 @@ i386nbsd_trapframe_cache(struct frame_in
   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 @@ i386nbsd_trapframe_sniffer (const struct
 			    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.  */

Reply via email to