This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/10597] New: simulated program arguments are processed as simulator arguments
- From: "Pierre dot Habraken at imag dot fr" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 3 Sep 2009 16:10:23 -0000
- Subject: [Bug sim/10597] New: simulated program arguments are processed as simulator arguments
- Reply-to: sourceware-bugzilla at sourceware dot org
Arguments of the simulated program beginning with a '-' are not passed to the
the program (they are caught by the simulator and rejected as invalid):
================================================================================
$ arm-elf-run prog -i input-file -o result_file
Usage: arm-elf-run [options] program [program args]
Options:
-a args Pass `args' to simulator.
-m size Set memory size of simulator, in bytes.
-t Perform instruction tracing.
Note: Very few simulators support tracing.
-v Verbose output.
program args Arguments to pass to simulated program.
Note: Very few simulators support this.
Target specific options:
--swi-support=<list> Comma seperated list of SWI protocols to supoport.
This list can contain: NONE, DEMON, ANGEL, REDBOOT and/or ALL.
$
================================================================================
If none argument begins with a '-' simulation performs fine:
================================================================================
$ arm-elf-run prog +i input_file +o result_file
$
================================================================================
--
Summary: simulated program arguments are processed as simulator
arguments
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: sim
AssignedTo: unassigned at sourceware dot org
ReportedBy: Pierre dot Habraken at imag dot fr
CC: gdb-prs at sourceware dot org
GCC host triplet: linux-i686
GCC target triplet: arm-elf
http://sourceware.org/bugzilla/show_bug.cgi?id=10597
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.