aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-02 02:34:05 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-02 03:38:29 -0500
commitdea827fc5c3349dc0308d0e22ab2d6791282cf8b (patch)
treea6139c6a170d62fe07d30cbc33a8050bf9c959cb /sim/ppc/sim_calls.c
parent4a2abdc468f9028435df0b30d9dab1b5ba9a7520 (diff)
downloadgdb-dea827fc5c3349dc0308d0e22ab2d6791282cf8b.zip
gdb-dea827fc5c3349dc0308d0e22ab2d6791282cf8b.tar.gz
gdb-dea827fc5c3349dc0308d0e22ab2d6791282cf8b.tar.bz2
sim: ppc: do not exit when parsing args w/gdb
When connecting to the simulator in gdb, we don't want it to exit on us when we pass down unknown/invalid/help/etc... options. Plumb down the kind argument so we can handle both gdb & psim interfaces.
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index 4e61335..d25b46c 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -77,7 +77,8 @@ sim_open (SIM_OPEN_KIND kind,
root_device = psim_tree();
simulator = NULL;
- psim_options(root_device, argv + 1);
+ if (psim_options (root_device, argv + 1, kind) == NULL)
+ return NULL;
if (ppc_trace[trace_opts])
print_options ();