[PATCH] Don't throw an error in "show mpx bound" implementation

Yao Qi qiyaoltc@gmail.com
Mon Jul 6 09:31:00 GMT 2015


Patrick Palka <patrick@parcs.ath.cx> writes:

> "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.

It looks good to me.  Thanks.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list