sim/arm: Prevent crash when running sim with no binary.
2013-11-07 Will Newton <will.newton@linaro.org> PR gdb/15508 * arm/wrapper.c (sim_create_inferior): Call init before accessing STATE.
This commit is contained in:
parent
8782aa321e
commit
1ed6c797ef
@ -1,3 +1,9 @@
|
|||||||
|
2013-11-07 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
|
PR gdb/15508
|
||||||
|
* arm/wrapper.c (sim_create_inferior): Call init before
|
||||||
|
accessing STATE.
|
||||||
|
|
||||||
2013-11-07 Will Newton <will.newton@linaro.org>
|
2013-11-07 Will Newton <will.newton@linaro.org>
|
||||||
|
|
||||||
PR gdb/9195
|
PR gdb/9195
|
||||||
|
@ -243,6 +243,8 @@ sim_create_inferior (sd, abfd, argv, env)
|
|||||||
int mach;
|
int mach;
|
||||||
char **arg;
|
char **arg;
|
||||||
|
|
||||||
|
init ();
|
||||||
|
|
||||||
if (abfd != NULL)
|
if (abfd != NULL)
|
||||||
{
|
{
|
||||||
ARMul_SetPC (state, bfd_get_start_address (abfd));
|
ARMul_SetPC (state, bfd_get_start_address (abfd));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user