diff options
-rw-r--r-- | sim/ChangeLog | 6 | ||||
-rw-r--r-- | sim/arm/wrapper.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog index bad626f..b7ebb05 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,5 +1,11 @@ 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> + PR gdb/9195 * arm/wrapper.c (sim_create_inferior): Avoid calling bfd_get_mach with a NULL bfd. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index cf10e78..b7bf400 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -243,6 +243,8 @@ sim_create_inferior (sd, abfd, argv, env) int mach; char **arg; + init (); + if (abfd != NULL) { ARMul_SetPC (state, bfd_get_start_address (abfd)); |