summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-08 17:07:22 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-08 17:07:22 +0000
commitf8f68a132ab5f3af9f31eb19c4199a02c21ef5cb (patch)
tree67d368f2df841fb99ff9968e81454e84db276ce7 /lldb/tools/debugserver/source/MacOSX
parent69a4def038e5af9cefc14f51b06af8875ada5b78 (diff)
downloadbcm5719-llvm-f8f68a132ab5f3af9f31eb19c4199a02c21ef5cb.tar.gz
bcm5719-llvm-f8f68a132ab5f3af9f31eb19c4199a02c21ef5cb.zip
Added comments about exception code.
llvm-svn: 139294
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp2
-rw-r--r--lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp2
2 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 54c339deb3e..0f3acd84a1c 100644
--- a/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/i386/DNBArchImplI386.cpp
@@ -603,6 +603,8 @@ DNBArchImplI386::NotifyException(MachException::Data& exc)
case EXC_BREAKPOINT:
if (exc.exc_data.size() >= 2 && exc.exc_data[0] == 2)
{
+ // exc_code = EXC_I386_BPT
+ //
nub_addr_t pc = GetPC(INVALID_NUB_ADDRESS);
if (pc != INVALID_NUB_ADDRESS && pc > 0)
{
diff --git a/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp b/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
index 87400d3d5b8..14f9fb5bbe9 100644
--- a/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/x86_64/DNBArchImplX86_64.cpp
@@ -532,6 +532,8 @@ DNBArchImplX86_64::NotifyException(MachException::Data& exc)
case EXC_BREAKPOINT:
if (exc.exc_data.size() >= 2 && exc.exc_data[0] == 2)
{
+ // exc_code = EXC_I386_BPT
+ //
nub_addr_t pc = GetPC(INVALID_NUB_ADDRESS);
if (pc != INVALID_NUB_ADDRESS && pc > 0)
{
OpenPOWER on IntegriCloud