public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18488] New: gdb -batch exits with code 0 when there's a command error
@ 2015-06-04 15:54 dje at google dot com
2015-06-04 18:12 ` [Bug gdb/18488] " dje at google dot com
0 siblings, 1 reply; 2+ messages in thread
From: dje at google dot com @ 2015-06-04 15:54 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18488
Bug ID: 18488
Summary: gdb -batch exits with code 0 when there's a command
error
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com
Target Milestone: ---
The docs say this:
'-batch'
Run in batch mode. Exit with status '0' after processing all the
command files specified with '-x' (and all commands from
initialization files, if not inhibited with '-n'). Exit with
nonzero status if an error occurs in executing the GDB commands in
the command files. Batch mode also disables pagination, sets
unlimited terminal width and height see Screen Size, and acts
as if 'set confirm off' were in effect (see Messages/Warnings).
bash$ gdb -batch -ex foo
Undefined command: "foo". Try "help".
bash$ echo $?
0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug gdb/18488] gdb -batch exits with code 0 when there's a command error
2015-06-04 15:54 [Bug gdb/18488] New: gdb -batch exits with code 0 when there's a command error dje at google dot com
@ 2015-06-04 18:12 ` dje at google dot com
0 siblings, 0 replies; 2+ messages in thread
From: dje at google dot com @ 2015-06-04 18:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=18488
dje at google dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from dje at google dot com ---
Bleah.
I was leaning on bugzilla's ability to suggest dupes to find this one.
It didn't.
Now I can't really trust it at all.
*** This bug has been marked as a duplicate of bug 13000 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-04 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-04 15:54 [Bug gdb/18488] New: gdb -batch exits with code 0 when there's a command error dje at google dot com
2015-06-04 18:12 ` [Bug gdb/18488] " dje at google dot com
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).