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
Marco Bubke
flatpak-qt-creator
Commits
b68a0679
Commit
b68a0679
authored
Apr 30, 2009
by
hjk
Browse files
debugger: code cosmetics
parent
7c8735b7
Changes
10
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbcom.h
View file @
b68a0679
...
...
@@ -43,4 +43,5 @@ typedef IDebugDataSpaces4 CIDebugDataSpaces;
typedef
IDebugSymbolGroup2
CIDebugSymbolGroup
;
typedef
IDebugBreakpoint2
CIDebugBreakpoint
;
#endif // CDBCOM_H
src/plugins/debugger/cdb/cdbdumperhelper.h
View file @
b68a0679
...
...
@@ -32,6 +32,7 @@
#include
"watchutils.h"
#include
"cdbcom.h"
#include
<QtCore/QStringList>
#include
<QtCore/QMap>
...
...
@@ -42,8 +43,7 @@ struct CdbComInterfaces;
class
IDebuggerManagerAccessForEngines
;
class
DebuggerManager
;
/* For code clarity, all the stuff related to custom dumpers
* goes here.
/* For code clarity, all the stuff related to custom dumpers goes here.
* "Custom dumper" is a library compiled against the current
* Qt containing functions to evaluate values of Qt classes
* (such as QString, taking pointers to their addresses).
...
...
src/plugins/debugger/cdb/cdboptions.cpp
View file @
b68a0679
...
...
@@ -28,6 +28,7 @@
**************************************************************************/
#include
"cdboptions.h"
#include
<QtCore/QSettings>
#include
<QtCore/QDir>
#include
<QtCore/QFileInfo>
...
...
src/plugins/debugger/cdb/cdbstacktracecontext.h
View file @
b68a0679
...
...
@@ -73,7 +73,7 @@ public:
// Top-Level instruction offset for disassembler
ULONG64
instructionOffset
()
const
{
return
m_instructionOffset
;
}
CdbStackFrameContext
*
frameContextAt
(
int
index
,
QString
*
errorMessage
);
CdbStackFrameContext
*
frameContextAt
(
int
index
,
QString
*
errorMessage
);
// Format for logging
void
format
(
QTextStream
&
str
)
const
;
...
...
src/plugins/debugger/cdb/cdbsymbolgroupcontext.cpp
View file @
b68a0679
...
...
@@ -31,6 +31,7 @@
#include
"cdbdebugengine_p.h"
#include
"watchhandler.h"
#include
"watchutils.h"
#include
<QtCore/QTextStream>
enum
{
debug
=
0
};
...
...
@@ -40,7 +41,10 @@ static inline QString msgSymbolNotFound(const QString &s)
return
QString
::
fromLatin1
(
"The symbol '%1' could not be found."
).
arg
(
s
);
}
static
inline
bool
isTopLevelSymbol
(
const
DEBUG_SYMBOL_PARAMETERS
&
p
)
{
return
p
.
ParentSymbol
==
DEBUG_ANY_ID
;
}
static
inline
bool
isTopLevelSymbol
(
const
DEBUG_SYMBOL_PARAMETERS
&
p
)
{
return
p
.
ParentSymbol
==
DEBUG_ANY_ID
;
}
static
inline
void
debugSymbolFlags
(
unsigned
long
f
,
QTextStream
&
str
)
{
...
...
src/plugins/debugger/cdb/cdbsymbolgroupcontext.h
View file @
b68a0679
...
...
@@ -130,7 +130,8 @@ private:
};
// Helper to a sequence of WatchData into a list.
class
WatchDataBackInserter
{
class
WatchDataBackInserter
{
public:
explicit
WatchDataBackInserter
(
QList
<
WatchData
>
&
wh
)
:
m_wh
(
wh
)
{}
...
...
src/plugins/debugger/win/dbgwinutils.cpp
View file @
b68a0679
...
...
@@ -34,6 +34,7 @@
#ifdef USE_PSAPI
# include <psapi.h>
#endif
namespace
Debugger
{
namespace
Internal
{
...
...
@@ -75,5 +76,5 @@ QList<ProcData> winProcessList()
return
rc
;
}
}
}
}
// namespace Internal
}
// namespace Debugger
src/plugins/debugger/win/dbgwinutils.h
View file @
b68a0679
...
...
@@ -27,8 +27,8 @@
**
**************************************************************************/
#ifndef _DBG_WIN
D
UTILS_H
#define _DBG_WIN
D
UTILS_H
#ifndef
DEBUGGER
_DBG_WINUTILS_H
#define
DEBUGGER
_DBG_WINUTILS_H
#include
<QtCore/QList>
...
...
@@ -39,6 +39,7 @@ struct ProcData; // debuggerdialogs, used by the process listing dialogs
QList
<
ProcData
>
winProcessList
();
}
}
#endif
}
// namespace Internal
}
// namespace Debugger
#endif // DEBUGGER_DBG_WINUTILS_H
src/plugins/debugger/win/peutils.cpp
View file @
b68a0679
...
...
@@ -40,7 +40,7 @@ using Core::Utils::winErrorMessage;
// a memory mapped file
template
<
class
Ptr
>
inline
Ptr
*
makePtr
(
void
*
base
,
ptrdiff_t
offset
)
inline
Ptr
*
makePtr
(
void
*
base
,
ptrdiff_t
offset
)
{
return
reinterpret_cast
<
Ptr
*>
(
static_cast
<
char
*>
(
base
)
+
offset
);
}
...
...
@@ -275,5 +275,5 @@ bool getPDBFiles(const QString &peExecutableFileName, QStringList *rc, QString *
return
success
;
}
}
}
}
// namespace Internal
}
// namespace Debugger
src/plugins/debugger/win/peutils.h
View file @
b68a0679
...
...
@@ -27,8 +27,8 @@
**
**************************************************************************/
#ifndef PEUTILS_H
#define PEUTILS_H
#ifndef
DEBUGGER_
PEUTILS_H
#define
DEBUGGER_
PEUTILS_H
#include
<QtCore/qnamespace.h>
...
...
@@ -45,7 +45,7 @@ namespace Internal {
// Return a list of Program-Database (*.pdb) files a PE executable refers to. */
bool
getPDBFiles
(
const
QString
&
peExecutableFileName
,
QStringList
*
rc
,
QString
*
errorMessage
);
}
}
}
// namespace Internal
}
// namespace Debugger
#endif // PEUTILS_H
#endif //
DEBUGGER_
PEUTILS_H
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