aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2009-09-11 04:45:57 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2009-09-11 04:45:57 +0000
commit779734bae5a1be2e9b48a9807149df5e38335285 (patch)
tree19fc4fed5b9de6934f8f7839d0129bef65cf7192 /gdb/remote-sim.c
parent4195238713fd818958a9e41fee154ea357304b59 (diff)
downloadbinutils-arc-insight_6_8-branch.zip
binutils-arc-insight_6_8-branch.tar.gz
binutils-arc-insight_6_8-branch.tar.bz2
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.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 918eab8..c3a8443 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,