diff options
author | Joern Rennecke <joern.rennecke@arc.com> | 2009-09-11 04:45:40 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@arc.com> | 2009-09-11 04:45:40 +0000 |
commit | c0b9c0330ac498673282832d8714d013569ca986 (patch) | |
tree | 7524276d1d63cb4ab23038ae8361a0228325863a /gdb/remote-sim.c | |
parent | 139d19ee035d132be681a95ece3bbe230664ea9c (diff) | |
download | gdb-arc-insight_6_8-branch.tar.gz |
gdb/insight for ARCompact (from Richard Stuckey)arc-insight_6_8-branch
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 918eab856f3..c3a84437018 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -469,13 +469,17 @@ gdbsim_create_inferior (char *exec_file, char *args, char **env, int from_tty) } else argv = NULL; - sim_create_inferior (gdbsim_desc, exec_bfd, argv, env); - inferior_ptid = pid_to_ptid (42); - target_mark_running (&gdbsim_ops); - insert_breakpoints (); /* Needed to get correct instruction in cache */ + // ARC 12/01/09 check return status + // GDB Bug #9734 + if (sim_create_inferior (gdbsim_desc, exec_bfd, argv, env) == SIM_RC_OK) + { + inferior_ptid = pid_to_ptid (42); + target_mark_running (&gdbsim_ops); + insert_breakpoints (); /* Needed to get correct instruction in cache */ - clear_proceed_status (); + clear_proceed_status (); + } } /* The open routine takes the rest of the parameters from the command, |