This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sim/10597] New: simulated program arguments are processed as simulator arguments


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]