diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-03-06 14:14:27 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-03-06 14:14:27 +0000 |
commit | 60a191edda5bb9c189df43542ab249ea530a3c73 (patch) | |
tree | 8e103877f8013813adae5e7ada1cf57d809c5c94 /gdb/python/py-block.c | |
parent | 65164438aaf163aee0de40bcfab87dfd58f47b6b (diff) | |
download | gdb-60a191edda5bb9c189df43542ab249ea530a3c73.zip gdb-60a191edda5bb9c189df43542ab249ea530a3c73.tar.gz gdb-60a191edda5bb9c189df43542ab249ea530a3c73.tar.bz2 |
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.
Diffstat (limited to 'gdb/python/py-block.c')
0 files changed, 0 insertions, 0 deletions