[Lldb-commits] [lldb] r173560 - Add comments showing the symbolic names for the exc_code types we

Jason Molenda jmolenda at apple.com
Fri Jan 25 21:30:38 PST 2013


Author: jmolenda
Date: Fri Jan 25 23:30:38 2013
New Revision: 173560

URL: http://llvm.org/viewvc/llvm-project?rev=173560&view=rev
Log:
Add comments showing the symbolic names for the exc_code types we
receive with an EXC_BREAKPOINT mach exception on arm.


Modified:
    lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp?rev=173560&r1=173559&r2=173560&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp Fri Jan 25 23:30:38 2013
@@ -389,7 +389,7 @@ StopInfoMachException::CreateStopReasonW
                     break;
                 
                 case llvm::Triple::arm:
-                    if (exc_code == 0x102)
+                    if (exc_code == 0x102) // EXC_ARM_DA_DEBUG
                     {
                         // It's a watchpoint, then, if the exc_sub_code indicates a known/enabled
                         // data break address from our watchpoint list.
@@ -408,7 +408,7 @@ StopInfoMachException::CreateStopReasonW
                         if (thread.GetTemporaryResumeState() == eStateStepping)
                             return StopInfo::CreateStopReasonToTrace(thread);
                     }
-                    else if (exc_code == 1)
+                    else if (exc_code == 1) // EXC_ARM_BREAKPOINT
                     {
                         is_software_breakpoint = true;
                         is_trace_if_software_breakpoint_missing = true;





More information about the lldb-commits mailing list