Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
e76943eb
Commit
e76943eb
authored
16 years ago
by
Friedemann Kleint
Browse files
Options
Downloads
Patches
Plain Diff
Load required dependency lib "dbghelp.dll" manually.
parent
7456e4e5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/debugger/cdb/cdbdebugengine.cpp
+29
-10
29 additions, 10 deletions
src/plugins/debugger/cdb/cdbdebugengine.cpp
src/plugins/debugger/cdb/cdboptionspagewidget.ui
+3
-0
3 additions, 0 deletions
src/plugins/debugger/cdb/cdboptionspagewidget.ui
with
32 additions
and
10 deletions
src/plugins/debugger/cdb/cdbdebugengine.cpp
+
29
−
10
View file @
e76943eb
...
...
@@ -65,6 +65,7 @@
#define DBGHELP_TRANSLATE_TCHAR
#include
<inc/Dbghelp.h>
static
const
char
*
dbgHelpDllC
=
"dbghelp"
;
static
const
char
*
dbgEngineDllC
=
"dbgeng"
;
static
const
char
*
debugCreateFuncC
=
"DebugCreate"
;
...
...
@@ -116,6 +117,12 @@ QString msgComFailed(const char *func, HRESULT hr)
static
const
char
*
msgNoStackTraceC
=
"Internal error: no stack trace present."
;
static
inline
QString
msgLibLoadFailed
(
const
QString
&
lib
,
const
QString
&
why
)
{
return
CdbDebugEngine
::
tr
(
"Unable to load the debugger engine library '%1': %2"
).
arg
(
lib
,
why
);
}
// ----- Engine helpers
static
inline
ULONG
getInterruptTimeOutSecs
(
IDebugControl4
*
ctl
)
...
...
@@ -143,19 +150,31 @@ DebuggerEngineLibrary::DebuggerEngineLibrary() :
{
}
bool
DebuggerEngineLibrary
::
init
(
const
QString
&
path
,
QString
*
errorMessage
)
// Build a lib name as "Path\x.dll"
static
inline
QString
libPath
(
const
QString
&
libName
,
const
QString
&
path
=
QString
())
{
// Load from
path
QString
dllPath
=
path
;
if
(
!
dllPath
.
isEmpty
()
)
dllPath
+=
QDir
::
separator
()
;
dllPath
+=
QLatin1String
(
dbgEngineD
ll
C
);
QLibrary
lib
(
dllPath
,
0
);
QString
rc
=
path
;
if
(
!
rc
.
isEmpty
())
rc
+=
QDir
::
separator
()
;
rc
+=
libName
;
rc
+=
QLatin1String
(
".d
ll
"
);
return
rc
;
}
bool
DebuggerEngineLibrary
::
init
(
const
QString
&
path
,
QString
*
errorMessage
)
{
// Load the dependent help lib first
const
QString
helpLibPath
=
libPath
(
QLatin1String
(
dbgHelpDllC
),
path
);
QLibrary
helpLib
(
helpLibPath
,
0
);
if
(
!
helpLib
.
isLoaded
()
&&
!
helpLib
.
load
())
{
*
errorMessage
=
msgLibLoadFailed
(
helpLibPath
,
helpLib
.
errorString
());
return
false
;
}
// Load dbgeng lib
const
QString
engineLibPath
=
libPath
(
QLatin1String
(
dbgEngineDllC
),
path
);
QLibrary
lib
(
engineLibPath
,
0
);
if
(
!
lib
.
isLoaded
()
&&
!
lib
.
load
())
{
*
errorMessage
=
CdbDebugEngine
::
tr
(
"Unable to load the debugger engine library '%1': %2"
).
arg
(
QLatin1String
(
dbgEngineDllC
),
lib
.
errorString
());
*
errorMessage
=
msgLibLoadFailed
(
engineLibPath
,
lib
.
errorString
());
return
false
;
}
// Locate symbols
...
...
This diff is collapsed.
Click to expand it.
src/plugins/debugger/cdb/cdboptionspagewidget.ui
+
3
−
0
View file @
e76943eb
...
...
@@ -18,6 +18,9 @@
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout"
>
<item>
<widget
class=
"QGroupBox"
name=
"cdbOptionsGroupBox"
>
<property
name=
"toolTip"
>
<string>
These options take effect at the next start of Qt Creator.
</string>
</property>
<property
name=
"title"
>
<string>
CDB
</string>
</property>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment