This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22778] New: misleading error message for "show mpx"
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 03 Feb 2018 13:18:30 +0000
- Subject: [Bug gdb/22778] New: misleading error message for "show mpx"
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22778
Bug ID: 22778
Summary: misleading error message for "show mpx"
Product: gdb
Version: 8.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: bruno at clisp dot org
Target Milestone: ---
While debugging a program compiled with "gcc -mmpx -fcheck-pointer-bounds", I
wish to see the bounds a of variable:
(gdb) next
7 char *mem = malloc (n);
(gdb) next
8 char* p = (char *) (uintptr_t) mem;
(gdb) show mpx
bound: Address of pointer variable expected.
(gdb) show mpx mem
Undefined show mpx command: "mem". Try "help show mpx".
The error message of 'show mpx' prompted me to try a wrong syntax.
Since the correct syntax is 'show mpx bounds mem', the error message should
better be something like this:
show mpx: subcommand 'bounds' expected.
--
You are receiving this mail because:
You are on the CC list for the bug.