Bug 79833

Summary: --args ignores zero-length args
Product: [Retired] Red Hat Raw Hide Reporter: Tim Waugh <twaugh>
Component: gdbAssignee: Elena Zannoni <ezannoni>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-12 22:08:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Waugh 2002-12-17 11:23:54 UTC
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 21:26:55 UTC
Yes, thanks.
There will be a fix in the next release.



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