Don't throw an error in "show mpx bound" implementation
authorPatrick Palka <patrick@parcs.ath.cx>
Thu, 2 Jul 2015 15:55:01 +0000 (11:55 -0400)
committerPatrick Palka <patrick@parcs.ath.cx>
Mon, 6 Jul 2015 12:07:32 +0000 (08:07 -0400)
commit118ca22445afc728069ca80be2f30dae6913059e
tree9be97bb78e07608a2b120a9f35d948f881584f2c
parent0d3a523baa86b53238c658d2b290b151eac072dd
Don't throw an error in "show mpx bound" implementation

"show" functions should not throw an exception in part because it causes
the output of the commands "info set" and "show" to get truncated.

This fixes the following fails:

    FAIL: gdb.base/default.exp: info set
    FAIL: gdb.base/default.exp: show

gdb/ChangeLog:

* i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
use printf_unfiltered.
(set_mpx_cmd): Add missing trailing space to command string
literal.
(_initialize_i386_tdep): Give the "mpx" prefix command its
correct name.
gdb/ChangeLog
gdb/i386-tdep.c