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/xtensa-tdep.c | |
parent | 7a22ecfc4b49af6e821525efa9c2f61bc7a959d8 (diff) | |
download | gdb-67d57894593345f23efe728f00b0a8c72216b962.zip gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.gz gdb-67d57894593345f23efe728f00b0a8c72216b962.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r-- | gdb/xtensa-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c index 52aa7be..1653d3b 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c @@ -1788,7 +1788,8 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, #define DENSITY_LITTLE_BREAKPOINT { 0x2d, 0xf0 } static const unsigned char * -xtensa_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) +xtensa_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, + int *lenptr) { static unsigned char big_breakpoint[] = BIG_BREAKPOINT; static unsigned char little_breakpoint[] = LITTLE_BREAKPOINT; @@ -1797,9 +1798,9 @@ xtensa_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) DEBUGTRACE ("xtensa_breakpoint_from_pc (pc = 0x%08x)\n", (int) *pcptr); - if (gdbarch_tdep (current_gdbarch)->isa_use_density_instructions) + if (gdbarch_tdep (gdbarch)->isa_use_density_instructions) { - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) { *lenptr = sizeof (density_big_breakpoint); return density_big_breakpoint; @@ -1812,7 +1813,7 @@ xtensa_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) } else { - if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG) + if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) { *lenptr = sizeof (big_breakpoint); return big_breakpoint; |