Debugger: Show breakpoint conditions in list view.

- Adjust breakpoint table and model to also show breakpoint conditions,
  if set.
This commit is contained in:
Rene Gollent 2014-10-30 11:38:06 -04:00
parent 65a10b5000
commit 3dfdc98cd1
1 changed files with 9 additions and 1 deletions

View File

@ -217,7 +217,7 @@ public:
virtual int32 CountColumns() const
{
return 3;
return 4;
}
virtual int32 CountRows() const
@ -277,6 +277,12 @@ private:
value.SetTo(data);
return true;
}
case 3:
{
value.SetTo(breakpoint->Condition(),
B_VARIANT_DONT_COPY_DATA);
return true;
}
default:
return false;
}
@ -456,6 +462,8 @@ BreakpointListView::_Init(BView* filterTarget)
1000, B_TRUNCATE_END, B_ALIGN_LEFT));
fBreakpointsTable->AddColumn(new StringTableColumn(2, "File:Line/Address",
250, 40, 1000, B_TRUNCATE_END, B_ALIGN_LEFT));
fBreakpointsTable->AddColumn(new StringTableColumn(3, "Condition",
250, 40, 1000, B_TRUNCATE_END, B_ALIGN_LEFT));
fBreakpointsTable->SetSelectionMode(B_MULTIPLE_SELECTION_LIST);
fBreakpointsTable->AddTableListener(this);