Debugger: Show breakpoint conditions in list view.
- Adjust breakpoint table and model to also show breakpoint conditions, if set.
This commit is contained in:
parent
65a10b5000
commit
3dfdc98cd1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user