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 cli/17537] New: hard to read error message for ambiguous linespec to list command


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

            Bug ID: 17537
           Summary: hard to read error message for ambiguous linespec to
                    list command
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

If I do list "foo.c:42" which is ambiguous, gdb will print the possible choices
as the error message, and that's it.  There's no indication that there was an
error, just a list of linespecs.

(gdb) l hashline1.c:2
file: "/hack/build/class-symtab-prep/obj64/gdb/testsuite/gdb.base/hashline1.c",
line number: 2
file: "gdb.base/hashline1.c", line number: 2
(gdb) 

This case happened because of a bug in my sandbox, but the error message needs
to be clearer.

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