aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/psim.h
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/psim.h
parent4a2abdc468f9028435df0b30d9dab1b5ba9a7520 (diff)
downloadfsf-binutils-gdb-dea827fc5c3349dc0308d0e22ab2d6791282cf8b.zip
fsf-binutils-gdb-dea827fc5c3349dc0308d0e22ab2d6791282cf8b.tar.gz
fsf-binutils-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/psim.h')
-rw-r--r--sim/ppc/psim.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/ppc/psim.h b/sim/ppc/psim.h
index 60fd9b9..07852c2 100644
--- a/sim/ppc/psim.h
+++ b/sim/ppc/psim.h
@@ -23,6 +23,7 @@
#include "basics.h"
+#include "gdb/remote-sim.h"
/* the system object */
/* typedef struct _psim psim; */
@@ -48,7 +49,8 @@ extern device *psim_tree
extern char **psim_options
(device *root,
- char **argv);
+ char **argv,
+ SIM_OPEN_KIND kind);
extern void psim_command
(device *root,
@@ -60,7 +62,7 @@ extern void psim_merge_device_file
const char *file_name);
extern void psim_usage
-(int verbose, int help);
+(int verbose, int help, SIM_OPEN_KIND kind);
/* create a new simulator from the device tree */