2003-03-28 Andrew Cagney <cagney@redhat.com>
* Makefile.in (d10v-tdep.o): Update dependencies. * remote.h (target_resume_hook, target_wait_loop_hook): Declare. * d10v-tdep.c: Include "remote.h". (target_resume_hook): Delete extern declaration. (target_wait_loop_hook): Ditto. (tdisassemble_command): Eliminate assignment in "if" conditional. (d10v_ts2_register_sim_regno): Eliminate call to legacy_register_sim_regno. (d10v_ts3_register_sim_regno): Ditto.
This commit is contained in:
parent
5941afc105
commit
e8933a55f2
4 changed files with 40 additions and 27 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
2003-03-28 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in (d10v-tdep.o): Update dependencies.
|
||||||
|
* remote.h (target_resume_hook, target_wait_loop_hook): Declare.
|
||||||
|
* d10v-tdep.c: Include "remote.h".
|
||||||
|
(target_resume_hook): Delete extern declaration.
|
||||||
|
(target_wait_loop_hook): Ditto.
|
||||||
|
(tdisassemble_command): Eliminate assignment in "if" conditional.
|
||||||
|
(d10v_ts2_register_sim_regno): Eliminate call to
|
||||||
|
legacy_register_sim_regno.
|
||||||
|
(d10v_ts3_register_sim_regno): Ditto.
|
||||||
|
|
||||||
2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
|
2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* thread.c: Reindented.
|
* thread.c: Reindented.
|
||||||
|
|
|
@ -1618,11 +1618,10 @@ cris-tdep.o: cris-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(inferior_h) \
|
||||||
$(gdbtypes_h) $(gdbcore_h) $(gdbcmd_h) $(target_h) $(value_h) \
|
$(gdbtypes_h) $(gdbcore_h) $(gdbcmd_h) $(target_h) $(value_h) \
|
||||||
$(opcode_cris_h) $(arch_utils_h) $(regcache_h) $(symfile_h) \
|
$(opcode_cris_h) $(arch_utils_h) $(regcache_h) $(symfile_h) \
|
||||||
$(solib_h) $(solib_svr4_h) $(gdb_string_h)
|
$(solib_h) $(solib_svr4_h) $(gdb_string_h)
|
||||||
d10v-tdep.o: d10v-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(gdbtypes_h) \
|
d10v-tdep.o: d10v-tdep.c $(defs_h) $(frame_h) $(frame_unwind_h) $(symtab_h) $(gdbtypes_h) \
|
||||||
$(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) $(inferior_h) \
|
$(gdbcmd_h) $(gdbcore_h) $(gdb_string_h) $(value_h) $(inferior_h) $(dis_asm_h) \
|
||||||
$(dis_asm_h) $(symfile_h) $(objfiles_h) $(language_h) $(arch_utils_h) \
|
$(symfile_h) $(objfiles_h) $(language_h) $(arch_utils_h) $(regcache_h) \
|
||||||
$(regcache_h) $(floatformat_h) $(gdb_sim_d10v_h) $(sim_regno_h) \
|
$(remote_h) $(floatformat_h) $(gdb_sim_d10v_h) $(sim_regno_h) $(gdb_assert_h)
|
||||||
$(gdb_assert_h)
|
|
||||||
dbug-rom.o: dbug-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \
|
dbug-rom.o: dbug-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \
|
||||||
$(serial_h) $(regcache_h) $(m68k_tdep_h)
|
$(serial_h) $(regcache_h) $(m68k_tdep_h)
|
||||||
dbxread.o: dbxread.c $(defs_h) $(gdb_string_h) $(gdb_obstack_h) \
|
dbxread.o: dbxread.c $(defs_h) $(gdb_string_h) $(gdb_obstack_h) \
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
#include "arch-utils.h"
|
#include "arch-utils.h"
|
||||||
#include "regcache.h"
|
#include "regcache.h"
|
||||||
|
#include "remote.h"
|
||||||
#include "floatformat.h"
|
#include "floatformat.h"
|
||||||
#include "gdb/sim-d10v.h"
|
#include "gdb/sim-d10v.h"
|
||||||
#include "sim-regno.h"
|
#include "sim-regno.h"
|
||||||
|
@ -276,8 +276,8 @@ d10v_imap_register (int reg_nr)
|
||||||
static int
|
static int
|
||||||
d10v_ts2_register_sim_regno (int nr)
|
d10v_ts2_register_sim_regno (int nr)
|
||||||
{
|
{
|
||||||
if (legacy_register_sim_regno (nr) < 0)
|
/* Only makes sense to supply raw registers. */
|
||||||
return legacy_register_sim_regno (nr);
|
gdb_assert (nr >= 0 && nr < NUM_REGS);
|
||||||
if (nr >= TS2_IMAP0_REGNUM
|
if (nr >= TS2_IMAP0_REGNUM
|
||||||
&& nr < TS2_IMAP0_REGNUM + NR_IMAP_REGS)
|
&& nr < TS2_IMAP0_REGNUM + NR_IMAP_REGS)
|
||||||
return nr - TS2_IMAP0_REGNUM + SIM_D10V_IMAP0_REGNUM;
|
return nr - TS2_IMAP0_REGNUM + SIM_D10V_IMAP0_REGNUM;
|
||||||
|
@ -292,8 +292,8 @@ d10v_ts2_register_sim_regno (int nr)
|
||||||
static int
|
static int
|
||||||
d10v_ts3_register_sim_regno (int nr)
|
d10v_ts3_register_sim_regno (int nr)
|
||||||
{
|
{
|
||||||
if (legacy_register_sim_regno (nr) < 0)
|
/* Only makes sense to supply raw registers. */
|
||||||
return legacy_register_sim_regno (nr);
|
gdb_assert (nr >= 0 && nr < NUM_REGS);
|
||||||
if (nr >= TS3_IMAP0_REGNUM
|
if (nr >= TS3_IMAP0_REGNUM
|
||||||
&& nr < TS3_IMAP0_REGNUM + NR_IMAP_REGS)
|
&& nr < TS3_IMAP0_REGNUM + NR_IMAP_REGS)
|
||||||
return nr - TS3_IMAP0_REGNUM + SIM_D10V_IMAP0_REGNUM;
|
return nr - TS3_IMAP0_REGNUM + SIM_D10V_IMAP0_REGNUM;
|
||||||
|
@ -1339,26 +1339,29 @@ tdisassemble_command (char *arg, int from_tty)
|
||||||
{
|
{
|
||||||
int i, count;
|
int i, count;
|
||||||
CORE_ADDR low, high;
|
CORE_ADDR low, high;
|
||||||
char *space_index;
|
|
||||||
|
|
||||||
if (!arg)
|
if (!arg)
|
||||||
{
|
{
|
||||||
low = 0;
|
low = 0;
|
||||||
high = trace_data.size;
|
high = trace_data.size;
|
||||||
}
|
}
|
||||||
else if (!(space_index = (char *) strchr (arg, ' ')))
|
|
||||||
{
|
|
||||||
low = parse_and_eval_address (arg);
|
|
||||||
high = low + 5;
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Two arguments. */
|
char *space_index = strchr (arg, ' ');
|
||||||
*space_index = '\0';
|
if (space_index == NULL)
|
||||||
low = parse_and_eval_address (arg);
|
{
|
||||||
high = parse_and_eval_address (space_index + 1);
|
low = parse_and_eval_address (arg);
|
||||||
if (high < low)
|
high = low + 5;
|
||||||
high = low;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* Two arguments. */
|
||||||
|
*space_index = '\0';
|
||||||
|
low = parse_and_eval_address (arg);
|
||||||
|
high = parse_and_eval_address (space_index + 1);
|
||||||
|
if (high < low)
|
||||||
|
high = low;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf_filtered ("Dump of trace from %s to %s:\n", paddr_u (low), paddr_u (high));
|
printf_filtered ("Dump of trace from %s to %s:\n", paddr_u (low), paddr_u (high));
|
||||||
|
@ -1719,10 +1722,6 @@ d10v_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
||||||
return gdbarch;
|
return gdbarch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern void (*target_resume_hook) (void);
|
|
||||||
extern void (*target_wait_loop_hook) (void);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_initialize_d10v_tdep (void)
|
_initialize_d10v_tdep (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,4 +54,7 @@ extern void remote_cisco_objfile_relocate (bfd_signed_vma text_off,
|
||||||
|
|
||||||
extern void async_remote_interrupt_twice (void *arg);
|
extern void async_remote_interrupt_twice (void *arg);
|
||||||
|
|
||||||
|
extern void (*target_resume_hook) (void);
|
||||||
|
extern void (*target_wait_loop_hook) (void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue