public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* gdb/2459: source_command cannot read from fifos
@ 2008-05-19 10:58 nae
  0 siblings, 0 replies; only message in thread
From: nae @ 2008-05-19 10:58 UTC (permalink / raw)
  To: gdb-gnats


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-19 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-19 10:58 gdb/2459: source_command cannot read from fifos nae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).