This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/10462] New: set command does not detect syntax error
- From: "roy at panix dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 30 Jul 2009 01:43:54 -0000
- Subject: [Bug cli/10462] New: set command does not detect syntax error
- Reply-to: sourceware-bugzilla at sourceware dot org
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.