binutils-gdb/gdb/mi
Yao Qi 62ad7ce71b Change register_changed_p returns bool
register_changed_p actually returns bool, but return type is still int.
This patch changes the return type to bool.  The caller of
register_changed_p also checked whether the return value can be negative,
which is not needed now.  Such check was added in fb40c2090 in 2000,
at that moment, register_changed_p returns -1 when
read_relative_register_raw_bytes fails.  I can tell from its name that
it reads register contents, but we don't have this function called inside
register_changed_p, and the regcache is read-only.

gdb:

2017-11-24  Yao Qi  <yao.qi@linaro.org>

	* mi/mi-main.c (mi_cmd_data_list_changed_registers): Remove
	local 'changed'.  Remove error.
	(register_changed_p): Change return type to bool.
2017-11-24 10:47:27 +00:00
..
ChangeLog-1999-2003
mi-cmd-break.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-cmd-break.h
mi-cmd-catch.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-cmd-disas.c
mi-cmd-env.c Constify add_path and friends 2017-11-07 13:59:09 -07:00
mi-cmd-file.c
mi-cmd-info.c
mi-cmd-stack.c
mi-cmd-target.c
mi-cmd-var.c Change int -> bool where applicable throughout varobj 2017-11-23 11:00:56 -05:00
mi-cmds.c
mi-cmds.h
mi-common.c
mi-common.h
mi-console.c
mi-console.h
mi-getopt.c
mi-getopt.h
mi-interp.c Eliminate catch_exceptions/catch_exceptions_with_msg 2017-10-10 17:01:25 +01:00
mi-interp.h
mi-main.c Change register_changed_p returns bool 2017-11-24 10:47:27 +00:00
mi-main.h
mi-out.c
mi-out.h
mi-parse.c
mi-parse.h
mi-symbol-cmds.c