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/10462] New: set command does not detect syntax error


The correct syntax for setting a variable is "set name value".  If you accidentally type "set name=value", it 
silently accepts it and just assumes the "=" is part of the value.  For example:

(gdb) set solib-search-path=foo:bar
(gdb) show solib-search-path 
The search path for loading non-absolute shared library symbol files is "=foo:bar".

This is not the expected behavior, and leads to confusion when things don't work as expected.

I got this on "GNU gdb Red Hat Linux (6.3.0.0-1.159.el4rh)"

I did not fill in the "xxx triplet" fields above because it's not clear what you're asking for.

-- 
           Summary: set command does not detect syntax error
           Product: gdb
           Version: 6.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: cli
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: roy at panix dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10462

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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