Module Name:    src
Committed By:   christos
Date:           Sun Oct 16 19:45:47 UTC 2011

Modified Files:
        src/external/gpl3/gdb/dist/gdb: shnbsd-tdep.c

Log Message:
make this compile again.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/shnbsd-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/shnbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.2 src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.3
--- src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c:1.2	Sun Sep 25 12:30:25 2011
+++ src/external/gpl3/gdb/dist/gdb/shnbsd-tdep.c	Sun Oct 16 15:45:47 2011
@@ -268,8 +268,9 @@ shnbsd_get_next_pc (CORE_ADDR pc)
   int reg;
   CORE_ADDR next_pc;
   int delay_slot;
+  enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch);
 
-  insn = read_memory_integer (pc, sizeof (insn));
+  insn = read_memory_integer (pc, sizeof (insn), byte_order);
   delay_slot = 0;
 
   /* As we cannot step through the delay slot, we break at the target
@@ -356,7 +357,8 @@ shnbsd_get_next_pc (CORE_ADDR pc)
    which would be executed.
  */
 void
-shnbsd_software_single_step (enum target_signal sig,
+shnbsd_software_single_step (struct gdbarch *gdbarch,
+			     enum target_signal sig,
 			     int insert_breakpoints_p)
 {
   static CORE_ADDR next_pc;
@@ -372,7 +374,7 @@ shnbsd_software_single_step (enum target
       if (sig == 0 || pc != next_pc)
 	next_pc = shnbsd_get_next_pc (pc);
 
-      insert_single_step_breakpoint (next_pc);
+      insert_single_step_breakpoint (gdbarch, next_pc);
     }
   else
       remove_single_step_breakpoints ();
@@ -450,13 +452,13 @@ static const struct tramp_frame shnbsd_s
 
 static void
 shnbsd_sigtramp_cache_init (const struct tramp_frame *self,
-			     struct frame_info *next_frame,
-			     struct trad_frame_cache *this_cache,
-			     CORE_ADDR func)
+			    struct frame_info *next_frame,
+			    struct trad_frame_cache *this_cache,
+			    CORE_ADDR func)
 {
   struct gdbarch *gdbarch = get_frame_arch (next_frame);
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-  CORE_ADDR sp = frame_unwind_register_unsigned (next_frame, SP_REGNUM);
+  CORE_ADDR sp = get_frame_register_unsigned (next_frame, SP_REGNUM);
   CORE_ADDR base;
   const int *reg_offset;
   int num_regs;

Reply via email to