[binutils-gdb] Use show_debug_regs as a boolean
sergiodj+buildbot@redhat.com
sergiodj+buildbot@redhat.com
Sat Mar 7 01:06:00 GMT 2015
*** TEST RESULTS FOR COMMIT 60a191edda5bb9c189df43542ab249ea530a3c73 ***
Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 60a191edda5bb9c189df43542ab249ea530a3c73
Use show_debug_regs as a boolean
I happen to see that show_debug_regs is used as an arithmetic type,
but it should be a boolean,
if (show_debug_regs > 1)
On the other hand, GDB RSP only allows setting it to either 0 or 1,
so it makes no sense to check whether it is greater than 1. This
patch fixes it.
gdb/gdbserver:
2015-03-06 Yao Qi <yao.qi@linaro.org>
* linux-aarch64-low.c (aarch64_insert_point): Use
show_debug_regs as a boolean.
(aarch64_remove_point): Likewise.
More information about the Gdb-testers
mailing list