mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Index: include/gdb/ChangeLog
2003-02-20 Andrew Cagney <ac131313@redhat.com> * remote-sim.c (gdbsim_insert_breakpoint) (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS code. Index: include/gdb/ChangeLog 2003-02-20 Andrew Cagney <ac131313@redhat.com> * remote-sim.h (SIM_RC): Delete unused SIM_RC_UNKNOWN_BREAKPOINT, SIM_RC_INSUFFICIENT_RESOURCES and SIM_RC_DUPLICATE_BREAKPOINT. (sim_set_breakpoint, sim_clear_breakpoint): Delete declarations. (sim_clear_all_breakpoints, sim_enable_breakpoint): Ditto. (sim_enable_all_breakpoints, sim_disable_breakpoint): Ditto. (sim_disable_all_breakpoints): Ditto. Index: sim/common/ChangeLog 2003-02-20 Andrew Cagney <ac131313@redhat.com> * Make-common.in (SIM_NEW_COMMON_OBJS): Remove sim-break.o (sim-break_h): Delete macro. (sim-break.o): Delete rule. * sim-break.c: Delete file. * sim-break.h: Delete file. * sim-base.h [SIM_HAVE_BREAKPOINTS]: Don't include "sim-break.h". (STATE_BREAKPOINTS): Delete macro. (sim_state_base): Delete field breakpoints. * sim-module.c (modules) [SIM_HAVE_BREAKPOINTS]: Don't add sim_break_install to array.
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
2003-02-20 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* remote-sim.c (gdbsim_insert_breakpoint)
|
||||
(gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
|
||||
code.
|
||||
|
||||
2003-02-20 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* remote.c (_initialize_remote): Add commands "set/show remote
|
||||
|
@ -814,46 +814,13 @@ gdbsim_mourn_inferior (void)
|
||||
static int
|
||||
gdbsim_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
|
||||
{
|
||||
#ifdef SIM_HAS_BREAKPOINTS
|
||||
SIM_RC retcode;
|
||||
|
||||
retcode = sim_set_breakpoint (gdbsim_desc, addr);
|
||||
|
||||
switch (retcode)
|
||||
{
|
||||
case SIM_RC_OK:
|
||||
return 0;
|
||||
case SIM_RC_INSUFFICIENT_RESOURCES:
|
||||
return ENOMEM;
|
||||
default:
|
||||
return EIO;
|
||||
}
|
||||
#else
|
||||
return memory_insert_breakpoint (addr, contents_cache);
|
||||
#endif
|
||||
}
|
||||
|
||||
static int
|
||||
gdbsim_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
|
||||
{
|
||||
#ifdef SIM_HAS_BREAKPOINTS
|
||||
SIM_RC retcode;
|
||||
|
||||
retcode = sim_clear_breakpoint (gdbsim_desc, addr);
|
||||
|
||||
switch (retcode)
|
||||
{
|
||||
case SIM_RC_OK:
|
||||
case SIM_RC_UNKNOWN_BREAKPOINT:
|
||||
return 0;
|
||||
case SIM_RC_INSUFFICIENT_RESOURCES:
|
||||
return ENOMEM;
|
||||
default:
|
||||
return EIO;
|
||||
}
|
||||
#else
|
||||
return memory_remove_breakpoint (addr, contents_cache);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Pass the command argument through to the simulator verbatim. The
|
||||
|
Reference in New Issue
Block a user