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
fff7acad
Commit
fff7acad
authored
Dec 17, 2008
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix parsing of gdb version
parent
4876957e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/plugins/debugger/gdbengine.cpp
src/plugins/debugger/gdbengine.cpp
+2
-2
tests/manual/gdbdebugger/simple/app.cpp
tests/manual/gdbdebugger/simple/app.cpp
+0
-2
No files found.
src/plugins/debugger/gdbengine.cpp
View file @
fff7acad
...
...
@@ -1362,7 +1362,7 @@ void GdbEngine::handleShowVersion(const GdbResultRecord &response)
if
(
response
.
resultClass
==
GdbResultDone
)
{
m_gdbVersion
=
100
;
QString
msg
=
response
.
data
.
findChild
(
"consolestreamoutput"
).
data
();
QRegExp
supported
(
"GNU gdb(.*) (
\\
d+)
\\
.(
\\
d+)
\\
.(
\\
d+)
"
);
QRegExp
supported
(
"GNU gdb(.*) (
\\
d+)
\\
.(
\\
d+)
(
\\
.(
\\
d+))?
"
);
if
(
supported
.
indexIn
(
msg
)
==
-
1
)
{
qDebug
()
<<
"UNSUPPORTED GDB VERSION "
<<
msg
;
QStringList
list
=
msg
.
split
(
"
\n
"
);
...
...
@@ -1384,7 +1384,7 @@ void GdbEngine::handleShowVersion(const GdbResultRecord &response)
}
else
{
m_gdbVersion
=
10000
*
supported
.
cap
(
2
).
toInt
()
+
100
*
supported
.
cap
(
3
).
toInt
()
+
1
*
supported
.
cap
(
4
).
toInt
();
+
1
*
supported
.
cap
(
5
).
toInt
();
//qDebug() << "GDB VERSION " << m_gdbVersion;
}
}
...
...
tests/manual/gdbdebugger/simple/app.cpp
View file @
fff7acad
...
...
@@ -74,8 +74,6 @@ uint qHash(const double & f)
return
int
(
f
);
}
#define X myns
X
::
QString
str
;
class
Foo
{
...
...
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