mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
Initialize SIM_DESC properly.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2010-01-13 Anthony Green <green@moxielogic.com>
|
||||||
|
|
||||||
|
* interp.c (sim_open): Initialize the SIM_DESC object properly
|
||||||
|
with sim_config() and sim_post_argv_init().
|
||||||
|
|
||||||
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* configure: Regenerate.
|
* configure: Regenerate.
|
||||||
|
@ -1176,6 +1176,22 @@ sim_open (kind, cb, abfd, argv)
|
|||||||
|
|
||||||
set_initial_gprs (); /* Reset the GPR registers. */
|
set_initial_gprs (); /* Reset the GPR registers. */
|
||||||
|
|
||||||
|
/* Configure/verify the target byte order and other runtime
|
||||||
|
configuration options */
|
||||||
|
if (sim_config (sd) != SIM_RC_OK)
|
||||||
|
{
|
||||||
|
sim_module_uninstall (sd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sim_post_argv_init (sd) != SIM_RC_OK)
|
||||||
|
{
|
||||||
|
/* Uninstall the modules to avoid memory leaks,
|
||||||
|
file descriptor leaks, etc. */
|
||||||
|
sim_module_uninstall (sd);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return sd;
|
return sd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user