Skip to content
GitLab
Menu
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
dd651204
Commit
dd651204
authored
Nov 26, 2009
by
Friedemann Kleint
Browse files
CDB: Fix disassembler for 64 bit addresses.
parent
2b23ea2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/debugger/cdb/cdbassembler.cpp
View file @
dd651204
...
...
@@ -38,9 +38,14 @@
// Format a hex address with a given field width if possible. Convert
// to number to ensure it is not truncated should it be larger than the
// field width.
static
inline
void
formatAddress
(
QTextStream
&
str
,
const
QString
&
hexAddressS
,
int
fieldWidth
)
// field width.
Check the 64 bit address format '00000001`40002c84'
static
inline
void
formatAddress
(
QTextStream
&
str
,
QString
hexAddressS
,
int
fieldWidth
)
{
if
(
hexAddressS
.
size
()
>
9
)
{
const
int
sepPos
=
hexAddressS
.
size
()
-
9
;
if
(
hexAddressS
.
at
(
sepPos
)
==
QLatin1Char
(
'`'
))
hexAddressS
.
remove
(
sepPos
,
1
);
}
const
QChar
oldPadChar
=
str
.
padChar
();
const
int
oldFieldWidth
=
str
.
fieldWidth
();
const
int
oldIntegerBase
=
str
.
integerBase
();
...
...
src/plugins/debugger/cdb/cdbsymbolgroupcontext.cpp
View file @
dd651204
...
...
@@ -454,7 +454,8 @@ static inline QString removeInnerTemplateType(QString value)
// "0x4343 class list<>".
static
inline
QString
fixValue
(
const
QString
&
value
,
const
QString
&
type
)
{
if
(
value
.
endsWith
(
QLatin1Char
(
'"'
)))
// Pass through strings
// Pass through strings, chars
if
(
value
.
endsWith
(
QLatin1Char
(
'"'
))
||
value
.
endsWith
(
QLatin1Char
(
'\''
)))
return
value
;
const
int
size
=
value
.
size
();
// Unsigned hex numbers
...
...
Write
Preview
Supports
Markdown
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