mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
Reworked gdb starting to remember breakpoints between sessions.
This commit is contained in:
@@ -47,35 +47,6 @@ SeerBreakpointsBrowserWidget::SeerBreakpointsBrowserWidget (QWidget* parent) : Q
|
||||
SeerBreakpointsBrowserWidget::~SeerBreakpointsBrowserWidget () {
|
||||
}
|
||||
|
||||
QStringList SeerBreakpointsBrowserWidget::breakpointsText () const {
|
||||
|
||||
QStringList breakpointList;
|
||||
|
||||
QTreeWidgetItemIterator it(breakpointsTreeWidget);
|
||||
|
||||
while (*it) {
|
||||
|
||||
// Build a breakpoint specification.
|
||||
QString breakpointParameters;
|
||||
|
||||
// Handle all breakpoints as pending.
|
||||
// Some breakpoints may point to source files that have not been
|
||||
// loaded (by programs that use runtime shared libaries).
|
||||
breakpointParameters += " -f " + (*it)->text(11);
|
||||
|
||||
breakpointParameters.replace(" -source ", " --source ");
|
||||
breakpointParameters.replace(" -line ", " --line ");
|
||||
|
||||
breakpointList.append(breakpointParameters);
|
||||
|
||||
//qDebug() << breakpointParameters;
|
||||
|
||||
++it;
|
||||
}
|
||||
|
||||
return breakpointList;
|
||||
}
|
||||
|
||||
bool SeerBreakpointsBrowserWidget::isEmpty() const {
|
||||
|
||||
return (breakpointsTreeWidget->topLevelItemCount() == 0);
|
||||
|
||||
Reference in New Issue
Block a user