From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31775 invoked by alias); 3 Sep 2009 16:10:24 -0000 Received: (qmail 31758 invoked by uid 48); 3 Sep 2009 16:10:23 -0000 Date: Thu, 03 Sep 2009 16:10:00 -0000 From: "Pierre dot Habraken at imag dot fr" To: gdb-prs@sourceware.org Message-ID: <20090903161021.10597.Pierre.Habraken@imag.fr> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug sim/10597] New: simulated program arguments are processed as simulator arguments X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00207.txt.bz2 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= 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.