aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2007-11-07 06:33:01 +0000
committerMarkus Deuling <deuling@de.ibm.com>2007-11-07 06:33:01 +0000
commit67d57894593345f23efe728f00b0a8c72216b962 (patch)
treee8afe7cf652a46cb92493e2636f547b04a5b9738 /gdb/sh-tdep.c
parent7a22ecfc4b49af6e821525efa9c2f61bc7a959d8 (diff)
downloadfsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.zip
fsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.gz
fsf-binutils-gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.bz2
*** empty log message ***
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index d9b7304..1e04a8f 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -382,7 +382,7 @@ sh_sh4al_dsp_register_name (struct gdbarch *gdbarch, int reg_nr)
}
static const unsigned char *
-sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
+sh_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
{
/* 0xc3c3 is trapa #c3, and it works in big and little endian modes */
static unsigned char breakpoint[] = { 0xc3, 0xc3 };
@@ -393,7 +393,7 @@ sh_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr)
static unsigned char big_remote_breakpoint[] = { 0xc3, 0x20 };
static unsigned char little_remote_breakpoint[] = { 0x20, 0xc3 };
- if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG)
+ if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
{
*lenptr = sizeof (big_remote_breakpoint);
return big_remote_breakpoint;