diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-09-17 01:05:03 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-17 01:05:03 +0000 |
| commit | 236888d0264685aa59f28c9e22a601ed98ece77e (patch) | |
| tree | e90c20b18d1fb12230fb1ce8895ee848b3641dbd /lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp | |
| parent | 2fd3d401f9fd1fd8779374a8de31532ad5dba0fc (diff) | |
| download | bcm5719-llvm-236888d0264685aa59f28c9e22a601ed98ece77e.tar.gz bcm5719-llvm-236888d0264685aa59f28c9e22a601ed98ece77e.zip | |
Foe x86_64/i386, piggyback the hardware index of the fired watchpoint in the exception
data sent back to the debugger. On the debugger side, use the opportunity during the
StopInfoMachException::CreateStopReasonWithMachException() method to set the hardware index
for the very watchpoint location.
llvm-svn: 139975
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp')
| -rw-r--r-- | lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp b/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp index 8333bb94291..5554b06908f 100644 --- a/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp +++ b/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp @@ -645,7 +645,11 @@ DNBArchImplI386::NotifyException(MachException::Data& exc) nub_addr_t addr = 0; uint32_t hw_index = GetHardwareWatchpointHit(addr); if (hw_index != INVALID_NUB_HW_INDEX) + { exc.exc_data[1] = addr; + // Piggyback the hw_index in the exc.data. + exc.exc_data.push_back(hw_index); + } return true; } |

