aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-22 00:43:55 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-22 00:43:55 +0000
commit817ac7f82baa6b8bdb855a429eed3b1305034331 (patch)
tree1009478df5d2b8f957cdc053a6977d410fd333f5 /gdb/breakpoint.c
parent7b11cf96848c4e7535bc71731defed0610e2cdf6 (diff)
downloadgdb-817ac7f82baa6b8bdb855a429eed3b1305034331.zip
gdb-817ac7f82baa6b8bdb855a429eed3b1305034331.tar.gz
gdb-817ac7f82baa6b8bdb855a429eed3b1305034331.tar.bz2
* breakpoint.c (bpstat_stop_status),
infcmd.c (step_1), infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef and insert macro. * m88k-tdep.c: include ieee-float.h. new global target_is_m88110. new const struct ext_format_m88110 for float format. (pic_prologue_code): add braces. (next_insn): remove unused variable buf. (frame_find_saved_regs): remove unused variables next_addr, saved_regs, regnum. (frame_locals_address): remove unused variables frame, ap. (frame_args_address): remove unused variables frame, ap. (push_parameters): add some breaks and a default case. * remote-bug.c: remove redundant includes of value.h, target.h, serial.h. (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan. (bug_fetch_register): special case sfip register for m88110. remove flag bit masking of pc registers. This should be handled by the ADDR_BITS_* macros. (bug_store_register): special case sfip register for m88110. Corrected sprint format for extended registers.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ad0462a..6facde0 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -1152,15 +1152,7 @@ bpstat_stop_status (pc, frame_address)
{
*pc = bp_addr;
#if defined (SHIFT_INST_REGS)
- {
- CORE_ADDR pc = read_register (PC_REGNUM);
- CORE_ADDR npc = read_register (NPC_REGNUM);
- if (pc != npc)
- {
- write_register (NNPC_REGNUM, npc);
- write_register (NPC_REGNUM, pc);
- }
- }
+ SHIFT_INST_REGS();
#else /* No SHIFT_INST_REGS. */
write_pc (bp_addr);
#endif /* No SHIFT_INST_REGS. */