This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2459: source_command cannot read from fifos
- From: nae at forbidden dot co dot uk
- To: gdb-gnats at sources dot redhat dot com
- Date: 19 May 2008 10:50:01 -0000
- Subject: gdb/2459: source_command cannot read from fifos
- Reply-to: nae at forbidden dot co dot uk
>Number: 2459
>Category: gdb
>Synopsis: source_command cannot read from fifos
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: external
>Submitter-Id: net
>Arrival-Date: Mon May 19 10:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: nae@forbidden.co.uk
>Release: GNU gdb 6.4.90
>Organization:
>Environment:
Linux 2.6.18-6-k7
gcc version 4.1.2
GDB was configured as "i486-linux-gnu"
>Description:
Cannot use fifos to pass commands to gdb via -x option, eg using bash syntax as below
gdb -x <(echo "set <something>") <program>
There is an explicit check in openp for a regular file - can this be changed to also allow a fifo?
>How-To-Repeat:
Run something like this at a bash prompt:
gdb -x <(echo "set height 0") ls
>Fix:
openp in source.c needs to also allow fifos when checking is_regular_file.
>Release-Note:
>Audit-Trail:
>Unformatted: