Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
f9b6832e
Commit
f9b6832e
authored
Feb 11, 2010
by
hjk
Browse files
debugger: code cosmetics
parent
aed6ca6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/gdb/gdbengine.cpp
View file @
f9b6832e
...
...
@@ -1704,9 +1704,11 @@ void GdbEngine::startDebugger(const DebuggerStartParametersPtr &sp)
unsigned
GdbEngine
::
debuggerCapabilities
()
const
{
return
ReverseSteppingCapability
|
SnapshotCapability
|
AutoDerefPointersCapability
|
DisassemblerCapability
|
RegisterCapability
|
ShowMemoryCapability
|
JumpToLineCapability
|
ReloadModuleCapability
|
ReloadModuleSymbolsCapability
;
return
ReverseSteppingCapability
|
SnapshotCapability
|
AutoDerefPointersCapability
|
DisassemblerCapability
|
RegisterCapability
|
ShowMemoryCapability
|
JumpToLineCapability
|
ReloadModuleCapability
|
ReloadModuleSymbolsCapability
;
}
void
GdbEngine
::
continueInferiorInternal
()
...
...
@@ -3465,24 +3467,12 @@ void GdbEngine::insertData(const WatchData &data0)
manager
()
->
watchHandler
()
->
insertData
(
data
);
}
#if 0
void GdbEngine::handleChangedItem(QStandardItem *item)
{
// HACK: Just store the item for the slot
// handleChangedItem(QWidget *widget) below.
QModelIndex index = item->index().sibling(item->index().row(), 0);
//WatchData data = m_currentSet.takeData(iname);
//m_editedData = inameFromItem(m_model.itemFromIndex(index)).exp;
//qDebug() << "HANDLE CHANGED EXPRESSION:" << m_editedData;
}
#endif
void
GdbEngine
::
assignValueInDebugger
(
const
QString
&
expression
,
const
QString
&
value
)
{
postCommand
(
"-var-delete assign"
);
postCommand
(
"-var-create assign * "
+
expression
.
toLatin1
());
postCommand
(
"-var-assign assign "
+
value
.
toLatin1
(),
Discardable
,
CB
(
handleVarAssign
));
postCommand
(
"-var-assign assign "
+
value
.
toLatin1
(),
Discardable
,
CB
(
handleVarAssign
));
}
QString
GdbEngine
::
qtDumperLibraryName
()
const
...
...
src/plugins/debugger/gdb/gdbengine.h
View file @
f9b6832e
...
...
@@ -421,7 +421,8 @@ private: ////////// View & Data Stuff //////////
//
// Watch specific stuff
//
virtual
void
setToolTipExpression
(
const
QPoint
&
mousePos
,
TextEditor
::
ITextEditor
*
editor
,
int
cursorPos
);
virtual
void
setToolTipExpression
(
const
QPoint
&
mousePos
,
TextEditor
::
ITextEditor
*
editor
,
int
cursorPos
);
virtual
void
assignValueInDebugger
(
const
QString
&
expr
,
const
QString
&
value
);
...
...
src/plugins/debugger/watchhandler.cpp
View file @
f9b6832e
...
...
@@ -1235,7 +1235,8 @@ void WatchHandler::insertData(const WatchData &data)
{
MODEL_DEBUG
(
"INSERTDATA: "
<<
data
.
toString
());
if
(
!
data
.
isValid
())
{
qWarning
(
"%s:%d: Attempt to insert invalid watch item: %s"
,
__FILE__
,
__LINE__
,
qPrintable
(
data
.
toString
()));
qWarning
(
"%s:%d: Attempt to insert invalid watch item: %s"
,
__FILE__
,
__LINE__
,
qPrintable
(
data
.
toString
()));
return
;
}
if
(
data
.
isSomethingNeeded
()
&&
data
.
iname
.
contains
(
'.'
))
{
...
...
@@ -1280,7 +1281,8 @@ void WatchHandler::insertBulkData(const QList<WatchData> &list)
if
(
data
.
isValid
())
{
hash
[
parentName
(
data
.
iname
)].
append
(
data
);
}
else
{
qWarning
(
"%s:%d: Attempt to bulk-insert invalid watch item: %s"
,
__FILE__
,
__LINE__
,
qPrintable
(
data
.
toString
()));
qWarning
(
"%s:%d: Attempt to bulk-insert invalid watch item: %s"
,
__FILE__
,
__LINE__
,
qPrintable
(
data
.
toString
()));
}
}
foreach
(
const
QByteArray
&
parentIName
,
hash
.
keys
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment