Bug 79833 - --args ignores zero-length args
--args ignores zero-length args
Status: CLOSED RAWHIDE
Product: Red Hat Raw Hide
Classification: Retired
Component: gdb (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Elena Zannoni
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-17 06:23 EST by Tim Waugh
Modified: 2015-01-07 19:02 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-12 17:08:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tim Waugh 2002-12-17 06:23:54 EST
Description of problem:
This doesn't work properly: gdb --args myprogram arg1 '' arg3

Version-Release number of selected component (if applicable):
gdb-5.3post-0.20021129.3

How reproducible:
100%

Steps to Reproduce:

$ cat <<EOF >args.c
#include <stdio.h>
int main (int argc) { printf ("%d\n", argc); }
EOF
$ make args
$ gdb --args ./args 1 '' 3
(gdb) r

Actual results:
3

Expected results:
4
Comment 1 Elena Zannoni 2003-01-03 16:26:55 EST
Yes, thanks.
There will be a fix in the next release.

Comment 2 Elena Zannoni 2003-01-12 17:08:19 EST
I pulled in a patch for this.

Note You need to log in before you can comment on or make changes to this bug.