diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:06:29 +0000 | 
| commit | 94994d372d014ce4c8758b9605d63fae651bd8aa (patch) | |
| tree | 51c0b708bd59f205d6b35cb2a8c24d62f0c33d77 /tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp | |
| parent | 39be7ce23363d12ae3e49aeb1fdb2bfeb892e836 (diff) | |
Notes
Diffstat (limited to 'tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp')
| -rw-r--r-- | tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp b/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp index adcd65002191..ba37a328ecf3 100644 --- a/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp +++ b/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp @@ -889,10 +889,7 @@ bool DNBArchImplI386::RollbackTransForHWP() {        LOG_WATCHPOINTS,        "DNBArchImplI386::RollbackTransForHWP() SetDBGState() => 0x%8.8x.", kret); -  if (kret == KERN_SUCCESS) -    return true; -  else -    return false; +  return kret == KERN_SUCCESS;  }  bool DNBArchImplI386::FinishTransForHWP() {    m_2pc_trans_state = Trans_Done; @@ -918,7 +915,7 @@ uint32_t DNBArchImplI386::EnableHardwareWatchpoint(nub_addr_t addr,      return INVALID_NUB_HW_INDEX;    // We must watch for either read or write -  if (read == false && write == false) +  if (!read && !write)      return INVALID_NUB_HW_INDEX;    // Read the debug state  | 
