Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
96475f95
Commit
96475f95
authored
Dec 20, 2010
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: make threadnames feature optional
parent
8095a257
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
src/plugins/debugger/debuggeractions.cpp
src/plugins/debugger/debuggeractions.cpp
+7
-0
src/plugins/debugger/debuggeractions.h
src/plugins/debugger/debuggeractions.h
+1
-0
src/plugins/debugger/debuggerplugin.cpp
src/plugins/debugger/debuggerplugin.cpp
+5
-1
src/plugins/debugger/dumperoptionpage.ui
src/plugins/debugger/dumperoptionpage.ui
+10
-0
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+1
-1
No files found.
src/plugins/debugger/debuggeractions.cpp
View file @
96475f95
...
...
@@ -204,6 +204,13 @@ DebuggerSettings::DebuggerSettings(QSettings *settings)
item
->
setValue
(
true
);
insertItem
(
UseCodeModel
,
item
);
item
=
new
SavedAction
(
this
);
item
->
setSettingsKey
(
debugModeGroup
,
QLatin1String
(
"ShowThreadNames"
));
item
->
setCheckable
(
true
);
item
->
setDefaultValue
(
false
);
item
->
setValue
(
false
);
insertItem
(
ShowThreadNames
,
item
);
//
// Breakpoints
...
...
src/plugins/debugger/debuggeractions.h
View file @
96475f95
...
...
@@ -91,6 +91,7 @@ enum DebuggerActionCode
CustomDebuggingHelperLocation
,
UseCodeModel
,
ShowThreadNames
,
UseToolTipsInMainEditor
,
UseToolTipsInLocalsView
,
...
...
src/plugins/debugger/debuggerplugin.cpp
View file @
96475f95
...
...
@@ -694,6 +694,9 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
m_group
.
insert
(
debuggerCore
()
->
action
(
UseCodeModel
),
m_ui
.
checkBoxUseCodeModel
);
m_group
.
insert
(
debuggerCore
()
->
action
(
ShowThreadNames
),
m_ui
.
checkBoxShowThreadNames
);
#ifndef QT_DEBUG
#if 0
...
...
@@ -710,7 +713,8 @@ QWidget *DebuggingHelperOptionPage::createPage(QWidget *parent)
<<
' '
<<
m_ui
.
debuggingHelperGroupBox
->
title
()
<<
' '
<<
m_ui
.
customLocationGroupBox
->
title
()
<<
' '
<<
m_ui
.
dumperLocationLabel
->
text
()
<<
' '
<<
m_ui
.
checkBoxUseCodeModel
->
text
();
<<
' '
<<
m_ui
.
checkBoxUseCodeModel
->
text
()
<<
' '
<<
m_ui
.
checkBoxShowThreadNames
->
text
();
m_searchKeywords
.
remove
(
QLatin1Char
(
'&'
));
}
return
w
;
...
...
src/plugins/debugger/dumperoptionpage.ui
View file @
96475f95
...
...
@@ -70,6 +70,16 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"checkBoxShowThreadNames"
>
<property
name=
"toolTip"
>
<string>
Displays names of QThread based threads.
</string>
</property>
<property
name=
"text"
>
<string>
Display thread names
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
96475f95
...
...
@@ -3011,7 +3011,7 @@ void GdbEngine::handleThreadInfo(const GdbResponse &response)
threadsHandler
()
->
setThreads
(
threads
);
threadsHandler
()
->
setCurrentThreadId
(
currentThreadId
);
updateViews
();
// Adjust Threads combobox.
if
(
m_hasInferiorThreadList
)
{
if
(
m_hasInferiorThreadList
&&
debuggerCore
()
->
boolSetting
(
ShowThreadNames
)
)
{
postCommand
(
"threadnames "
+
debuggerCore
()
->
action
(
MaximalStackDepth
)
->
value
().
toByteArray
(),
Discardable
,
CB
(
handleThreadNames
),
id
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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