diff options
author | Markus Deuling <deuling@de.ibm.com> | 2007-11-07 06:33:01 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2007-11-07 06:33:01 +0000 |
commit | 67d57894593345f23efe728f00b0a8c72216b962 (patch) | |
tree | e8afe7cf652a46cb92493e2636f547b04a5b9738 /gdb/rs6000-tdep.c | |
parent | 7a22ecfc4b49af6e821525efa9c2f61bc7a959d8 (diff) | |
download | fsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.zip fsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.gz fsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index bf53c42..9cb560a 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -965,12 +965,13 @@ branch_dest (struct frame_info *frame, int opcode, int instr, /* Sequence of bytes for breakpoint instruction. */ const static unsigned char * -rs6000_breakpoint_from_pc (CORE_ADDR *bp_addr, int *bp_size) +rs6000_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *bp_addr, + int *bp_size) { static unsigned char big_breakpoint[] = { 0x7d, 0x82, 0x10, 0x08 }; static unsigned char little_breakpoint[] = { 0x08, 0x10, 0x82, 0x7d }; *bp_size = 4; - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) return big_breakpoint; else return little_breakpoint; @@ -1079,7 +1080,8 @@ rs6000_software_single_step (struct frame_info *frame) { CORE_ADDR dummy; int breakp_sz; - const gdb_byte *breakp = rs6000_breakpoint_from_pc (&dummy, &breakp_sz); + const gdb_byte *breakp + = rs6000_breakpoint_from_pc (get_frame_arch (frame), &dummy, &breakp_sz); int ii, insn; CORE_ADDR loc; CORE_ADDR breaks[2]; |