mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 12:37:05 +08:00
* remote-e7000.c: New file to cope with the Hitachi E7000 ICE.
* remote-utils.c, remote-utils.h (gr_load_image): New function to download to target. * h8300-tdep.c, h8500-tdep.c, remote-z8k.c, sh-tdep.c z8k-tdep.c (sim_load): delete. * remote-sim.c (sim_load): Use gr_load_image. * config/sh/sh.mt: Add remote-e7000
This commit is contained in:
@ -482,14 +482,3 @@ print_register_hook (regno)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This doesn't quite fit either in the simulator or in gdb proper.
|
|
||||||
Perhaps the simulator could return 1 to mean it loaded it and 0 to
|
|
||||||
mean "you deal with it, caller". */
|
|
||||||
|
|
||||||
int
|
|
||||||
sim_load (abfd, prog)
|
|
||||||
bfd *abfd;
|
|
||||||
char *prog;
|
|
||||||
{
|
|
||||||
return sim_load_standard (abfd);
|
|
||||||
}
|
|
||||||
|
@ -819,14 +819,3 @@ target_write_fp (v)
|
|||||||
write_register (FP_REGNUM, v & 0xffff);
|
write_register (FP_REGNUM, v & 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This doesn't quite fit either in the simulator or in gdb proper.
|
|
||||||
Perhaps the simulator could return 1 to mean it loaded it and 0 to
|
|
||||||
mean "you deal with it, caller". */
|
|
||||||
|
|
||||||
int
|
|
||||||
sim_load (abfd, prog)
|
|
||||||
bfd *abfd;
|
|
||||||
char *prog;
|
|
||||||
{
|
|
||||||
return sim_load_standard (abfd);
|
|
||||||
}
|
|
||||||
|
1502
gdb/remote-e7000.c
1502
gdb/remote-e7000.c
File diff suppressed because it is too large
Load Diff
@ -38,11 +38,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
extern int stop_soon_quietly; /* for wait_for_inferior */
|
extern int stop_soon_quietly; /* for wait_for_inferior */
|
||||||
|
|
||||||
/* Forward data declarations */
|
/* Forward data declarations */
|
||||||
extern struct target_ops sim_ops; /* Forward declaration */
|
/*extern struct target_ops sim_ops; /* Forward declaration */
|
||||||
|
|
||||||
void sim_store_register ();
|
void sim_store_register ();
|
||||||
void sim_set_oc ();
|
void sim_set_oc ();
|
||||||
|
|
||||||
|
int inferior_pid;
|
||||||
int
|
int
|
||||||
sim_write_inferior_memory (memaddr, myaddr, len)
|
sim_write_inferior_memory (memaddr, myaddr, len)
|
||||||
CORE_ADDR memaddr;
|
CORE_ADDR memaddr;
|
||||||
@ -75,14 +76,13 @@ sim_kill (arg, from_tty)
|
|||||||
char *arg;
|
char *arg;
|
||||||
int from_tty;
|
int from_tty;
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Download a file specified in 'args', to the sim.
|
* Download a file specified in 'args', to the sim.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
sim_load (args, fromtty)
|
sasassim_load (args, fromtty)
|
||||||
char *args;
|
char *args;
|
||||||
int fromtty;
|
int fromtty;
|
||||||
{
|
{
|
||||||
@ -160,7 +160,7 @@ sim_create_inferior (execfile, args, env)
|
|||||||
insert_breakpoints ();
|
insert_breakpoints ();
|
||||||
proceed (entry_pt, -1, 0);
|
proceed (entry_pt, -1, 0);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
sim_open (name, from_tty)
|
sim_open (name, from_tty)
|
||||||
char *name;
|
char *name;
|
||||||
@ -203,21 +203,21 @@ sim_detach (args, from_tty)
|
|||||||
if (from_tty)
|
if (from_tty)
|
||||||
printf_filtered ("Ending remote %s debugging\n", target_shortname);
|
printf_filtered ("Ending remote %s debugging\n", target_shortname);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Tell the remote machine to resume. */
|
/* Tell the remote machine to resume. */
|
||||||
|
|
||||||
/* Wait until the remote machine stops, then return,
|
/* Wait until the remote machine stops, then return,
|
||||||
storing status in STATUS just as `wait' would. */
|
storing status in STATUS just as `wait' would. */
|
||||||
|
#if 0
|
||||||
int
|
int
|
||||||
sim_wait (pid, status)
|
sim_wait (pid, status)
|
||||||
int pid;
|
int pid;
|
||||||
WAITTYPE *status;
|
WAITTYPE *status;
|
||||||
{
|
{
|
||||||
*status = sim_stop_signal ();
|
sim_stop_reason (&reason, &sigrc);
|
||||||
return 0;
|
return inferior_pid;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Get ready to modify the registers array. On machines which store
|
/* Get ready to modify the registers array. On machines which store
|
||||||
individual registers, this doesn't need to do anything. On machines
|
individual registers, this doesn't need to do anything. On machines
|
||||||
which store all the registers in one fell swoop, this makes sure
|
which store all the registers in one fell swoop, this makes sure
|
||||||
@ -295,12 +295,14 @@ sim_files_info ()
|
|||||||
target specified yet, this will loop prompting the user to do so.
|
target specified yet, this will loop prompting the user to do so.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if 0
|
||||||
void
|
void
|
||||||
sim_before_main_loop ()
|
sim_before_main_loop ()
|
||||||
{
|
{
|
||||||
push_target (&sim_ops);
|
push_target (&sim_ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Clear the sims notion of what the break points are */
|
/* Clear the sims notion of what the break points are */
|
||||||
static void
|
static void
|
||||||
sim_mourn ()
|
sim_mourn ()
|
||||||
@ -309,7 +311,7 @@ sim_mourn ()
|
|||||||
unpush_target (&sim_ops);
|
unpush_target (&sim_ops);
|
||||||
generic_mourn_inferior ();
|
generic_mourn_inferior ();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
static void
|
static void
|
||||||
rem_resume (pid, a, b)
|
rem_resume (pid, a, b)
|
||||||
int pid;
|
int pid;
|
||||||
@ -319,8 +321,9 @@ rem_resume (pid, a, b)
|
|||||||
sim_resume (a, b);
|
sim_resume (a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Define the target subroutine names */
|
|
||||||
|
|
||||||
|
/* Define the target subroutine names */
|
||||||
|
#if 0
|
||||||
struct target_ops sim_ops =
|
struct target_ops sim_ops =
|
||||||
{
|
{
|
||||||
"sim", "Remote SIM monitor",
|
"sim", "Remote SIM monitor",
|
||||||
@ -351,9 +354,6 @@ struct target_ops sim_ops =
|
|||||||
void
|
void
|
||||||
_initialize_remote_sim ()
|
_initialize_remote_sim ()
|
||||||
{
|
{
|
||||||
extern int sim_z8001_mode;
|
|
||||||
|
|
||||||
sim_z8001_mode = z8001_mode;
|
|
||||||
add_target (&sim_ops);
|
add_target (&sim_ops);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user