This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/13831] New: gdb cli to be parsed for option "--args"instead of "--arg".
- From: "jb.1234abcd at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 11 Mar 2012 15:00:38 +0000
- Subject: [Bug cli/13831] New: gdb cli to be parsed for option "--args"instead of "--arg".
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13831
Bug #: 13831
Summary: gdb cli to be parsed for option "--args" instead of
"--arg".
Product: gdb
Version: 7.4
Status: NEW
Severity: normal
Priority: P2
Component: cli
AssignedTo: unassigned@sourceware.org
ReportedBy: jb.1234abcd@gmail.com
Classification: Unclassified
gdb cli to be parsed for option "--args" instead of "--arg".
$ gdb -v
GNU gdb (GDB) 7.4 [GDB v7.4 for FreeBSD]
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd9.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
$ gdb --help
This is the GNU debugger. Usage:
gdb [options] [executable-file [core-file or process-id]]
gdb [options] --args executable-file [inferior-arguments ...]
Options:
--args Arguments after executable-file are passed to inferior
$ gdb --arg prog1 1 2
GNU gdb (GDB) 7.4 [GDB v7.4 for FreeBSD]
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd9.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/home/jb/prog1...done.
(gdb) b main
Breakpoint 1 at 0x8048474: file prog1.c, line 13.
(gdb) r
Starting program: /usr/home/jb/prog1 1 2
Breakpoint 1, main (argc=3, argv=0xbfbfea50) at prog1.c:13
13 printf("argc=%d\n",argc);
(gdb) c
Continuing.
argc=3
argv[0]=/usr/home/jb/prog1
argv[1]=1
argv[2]=2
[Inferior 1 (process 14899) exited normally]
(gdb)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.