public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim/arm: Prevent crash when running sim with no binary.
@ 2013-10-29 22:56 Will Newton
  2013-11-07 15:25 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Will Newton @ 2013-10-29 22:56 UTC (permalink / raw)
  To: gdb-patches; +Cc: Patch Tracking


2013-10-30  Will Newton  <will.newton@linaro.org>

	PR gdb/15508
	* arm/wrapper.c (sim_create_inferior): Call init before
	accessing STATE.
---
 sim/arm/wrapper.c | 2 ++
 1 file changed, 2 insertions(+)

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));
-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sim/arm: Prevent crash when running sim with no binary.
  2013-10-29 22:56 [PATCH] sim/arm: Prevent crash when running sim with no binary Will Newton
@ 2013-11-07 15:25 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2013-11-07 15:25 UTC (permalink / raw)
  To: Will Newton; +Cc: gdb-patches, Patch Tracking

>>>>> "Will" == Will Newton <will.newton@linaro.org> writes:

Will> 2013-10-30  Will Newton  <will.newton@linaro.org>

Will> 	PR gdb/15508
Will> 	* arm/wrapper.c (sim_create_inferior): Call init before
Will> 	accessing STATE.

Ok.

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-07 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-29 22:56 [PATCH] sim/arm: Prevent crash when running sim with no binary Will Newton
2013-11-07 15:25 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).