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
199dfbb4
Commit
199dfbb4
authored
Jun 12, 2009
by
Oswald Buddenhagen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gdb shutdown logic on gdb crash
Reviewed-by: hjk
parent
aa898a53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+5
-1
No files found.
src/plugins/debugger/gdb/gdbengine.cpp
View file @
199dfbb4
...
...
@@ -205,14 +205,17 @@ void GdbEngine::initializeVariables()
void
GdbEngine
::
gdbProcError
(
QProcess
::
ProcessError
error
)
{
QString
msg
;
bool
kill
=
true
;
switch
(
error
)
{
case
QProcess
::
FailedToStart
:
kill
=
false
;
msg
=
tr
(
"The Gdb process failed to start. Either the "
"invoked program '%1' is missing, or you may have insufficient "
"permissions to invoke the program."
)
.
arg
(
theDebuggerStringSetting
(
GdbLocation
));
break
;
case
QProcess
::
Crashed
:
kill
=
false
;
msg
=
tr
(
"The Gdb process crashed some time after starting "
"successfully."
);
break
;
...
...
@@ -238,7 +241,8 @@ void GdbEngine::gdbProcError(QProcess::ProcessError error)
q
->
showStatusMessage
(
msg
);
QMessageBox
::
critical
(
q
->
mainWindow
(),
tr
(
"Error"
),
msg
);
// act as if it was closed by the core
q
->
exitDebugger
();
if
(
kill
)
q
->
exitDebugger
();
}
void
GdbEngine
::
uploadProcError
(
QProcess
::
ProcessError
error
)
...
...
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