* remote-sim.c (gdbsim_load): Update call to sim_load.
(gdbsim_create_inferior): No longer pass start_address to sim_create_inferior. (gdbsim_open): Pass endian indicator as arg.
This commit is contained in:
parent
a1cb1f4b9c
commit
44cd79e4b1
2 changed files with 17 additions and 12 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Apr 17 02:20:23 1997 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
|
* remote-sim.c (gdbsim_load): Update call to sim_load.
|
||||||
|
(gdbsim_create_inferior): No longer pass start_address to
|
||||||
|
sim_create_inferior.
|
||||||
|
|
||||||
Tue Apr 15 15:31:09 1997 Stan Shebs <shebs@andros.cygnus.com>
|
Tue Apr 15 15:31:09 1997 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
* remote.c (get_offsets): Don't use scanf for interpreting
|
* remote.c (get_offsets): Don't use scanf for interpreting
|
||||||
|
|
|
@ -405,11 +405,13 @@ gdbsim_load (prog, fromtty)
|
||||||
|
|
||||||
inferior_pid = 0;
|
inferior_pid = 0;
|
||||||
|
|
||||||
/* This must be done before calling gr_load_image. */
|
/* FIXME: We will print two messages on error.
|
||||||
program_loaded = 1;
|
Need error to either not print anything if passed NULL or need
|
||||||
|
another routine that doesn't take any arguments. */
|
||||||
|
if (sim_load (gdbsim_desc, prog, NULL, fromtty) == SIM_RC_FAIL)
|
||||||
|
error ("unable to load program");
|
||||||
|
|
||||||
if (sim_load (gdbsim_desc, prog, fromtty) != 0)
|
program_loaded = 1;
|
||||||
generic_load (prog, fromtty);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -455,7 +457,7 @@ gdbsim_create_inferior (exec_file, args, env)
|
||||||
strcat (arg_buf, args);
|
strcat (arg_buf, args);
|
||||||
argv = buildargv (arg_buf);
|
argv = buildargv (arg_buf);
|
||||||
make_cleanup (freeargv, (char *) argv);
|
make_cleanup (freeargv, (char *) argv);
|
||||||
sim_create_inferior (gdbsim_desc, entry_pt, argv, env);
|
sim_create_inferior (gdbsim_desc, argv, env);
|
||||||
|
|
||||||
inferior_pid = 42;
|
inferior_pid = 42;
|
||||||
insert_breakpoints (); /* Needed to get correct instruction in cache */
|
insert_breakpoints (); /* Needed to get correct instruction in cache */
|
||||||
|
@ -490,14 +492,11 @@ gdbsim_open (args, from_tty)
|
||||||
|
|
||||||
init_callbacks ();
|
init_callbacks ();
|
||||||
|
|
||||||
len = 7 + 1 + (args ? strlen (args) : 0) + 1 + /*slop*/ 10;
|
len = 7 + 1 + (args ? strlen (args) : 0) + 50;
|
||||||
arg_buf = (char *) alloca (len);
|
arg_buf = (char *) alloca (len);
|
||||||
strcpy (arg_buf, "gdbsim");
|
sprintf (arg_buf, "gdbsim%s%s -E %s",
|
||||||
if (args)
|
args ? " " : "", args ? args : "",
|
||||||
{
|
TARGET_BYTE_ORDER == BIG_ENDIAN ? "big" : "little");
|
||||||
strcat (arg_buf, " ");
|
|
||||||
strcat (arg_buf, args);
|
|
||||||
}
|
|
||||||
argv = buildargv (arg_buf);
|
argv = buildargv (arg_buf);
|
||||||
if (argv == NULL)
|
if (argv == NULL)
|
||||||
error ("Insufficient memory available to allocate simulator arg list.");
|
error ("Insufficient memory available to allocate simulator arg list.");
|
||||||
|
|
Loading…
Reference in a new issue