diff options
author | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2020-08-14 15:41:13 -0300 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2020-08-14 15:41:13 -0300 |
commit | 6e562fa3ba95b5415b269410137c0ca3e620a08d (patch) | |
tree | 199507168df2d5215aab75def94fa900e1e86add /COPYING.LIB | |
parent | d369b608a1fc84813762e71a40a6cafb3ab828fe (diff) | |
download | gdb-6e562fa3ba95b5415b269410137c0ca3e620a08d.zip gdb-6e562fa3ba95b5415b269410137c0ca3e620a08d.tar.gz gdb-6e562fa3ba95b5415b269410137c0ca3e620a08d.tar.bz2 |
[PowerPC] Use < 0 and >= 0 for watchpoint ptrace calls
In commit 227c0bf4b3dd0cf65dceb58e729e9da81b38b5a7, which fixed some
watchpoint bugs, I compared the return value of some ptrace calls with ==
-1 and != -1. Althought this should be correct, since the rest of the
file uses < 0 and >= 0, I have modified this for consistency.
gdb/ChangeLog:
* ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
(ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
and >= to check return value instead of == -1 and != -1.
Diffstat (limited to 'COPYING.LIB')
0 files changed, 0 insertions, 0 deletions