mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-24 18:35:28 +00:00
ppc sim: Allow --sysroot command-line option
There was a recent change that cuased the "target sim" command to add a --sysroot option to the argument vector passed down to the simulator. This caused a failure in the powerpc simulator, as it did not recognize it. This patch fixes the problem by adding support for the --sysroot option (it ignores it). sim/ppc/ChangeLog: * psim.c (psim_options): Accept and ignore `--sysroot=...'.
This commit is contained in:
parent
592458412f
commit
8294052ca9
@ -1,3 +1,7 @@
|
||||
2011-06-08 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* psim.c (psim_options): Accept and ignore `--sysroot=...'.
|
||||
|
||||
2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
|
||||
|
||||
From Stephen Kitt <steve@sk2.org>
|
||||
|
@ -357,6 +357,10 @@ psim_options(device *root,
|
||||
}
|
||||
else if (strcmp (argv[argp], "--help") == 0)
|
||||
psim_usage (0, 1);
|
||||
else if (strncmp (argv[argp], "--sysroot=",
|
||||
sizeof ("--sysroot=")) == 0)
|
||||
/* Ignore this option. */
|
||||
p = argv[argp] + strlen(argv[argp]) - 1;
|
||||
else if (strcmp (argv[argp], "--version") == 0)
|
||||
{
|
||||
extern const char version[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user