Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gdb: How to run debugger on start

41 views
Skip to first unread message

kenorb

unread,
Nov 24, 2010, 11:55:50 AM11/24/10
to
Tried this:
> echo run | gdb ls
(gdb) Hangup detected on fd 0
error detected on stdin

And this:
> echo run | gdb -x /dev/stdin ls
Program exited normally.
(gdb) Hangup detected on fd 0
error detected on stdin

Nothing in help and manual.
Anything?

Aleksandr Vinokurov

unread,
Nov 29, 2010, 4:20:19 AM11/29/10
to
kenorb <ken...@gmail.com> writes:

$ echo run >> commands
$ gdb -q --command=commands uname
(no debugging symbols found)...(no debugging symbols found)...
Linux
(no debugging symbols found)...
Program exited normally.
(gdb)

Aleksandr.

0 new messages