This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/2459: source_command cannot read from fifos


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]