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/22778] New: misleading error message for "show mpx"


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.

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