diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-02 02:34:05 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-02 03:38:29 -0500 |
commit | dea827fc5c3349dc0308d0e22ab2d6791282cf8b (patch) | |
tree | a6139c6a170d62fe07d30cbc33a8050bf9c959cb /sim/ppc/psim.h | |
parent | 4a2abdc468f9028435df0b30d9dab1b5ba9a7520 (diff) | |
download | fsf-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.h | 6 |
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 */ |