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]

[Bug gdb/18797] New: Better error output for bad -iex, etc. options.


https://sourceware.org/bugzilla/show_bug.cgi?id=18797

            Bug ID: 18797
           Summary: Better error output for bad -iex, etc. options.
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com
  Target Milestone: ---

I had a typo in a -iex option, and it took awhile to find it.
The output includes the error message, but amidst the plethora of gdb start up
text it gets lost in the noise.
IWBN if the error message included an indication of what it's for.

E.g.,

$ gdb -iex "set foo bar"
[...]
No symbol table is loaded.  Use the "file" command.
(gdb) 

IWBN if the output was instead something like:

$ gdb -iex "set foo bar"
[...]
Error while processing: -iex "set foo bar":
No symbol table is loaded.  Use the "file" command.
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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