Added comments about exception code.

llvm-svn: 139294
This commit is contained in:
Johnny Chen 2011-09-08 17:07:22 +00:00
parent 69a4def038
commit f8f68a132a
2 changed files with 4 additions and 0 deletions

View File

@ -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)
{

View File

@ -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)
{