Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bd6b394e
Commit
bd6b394e
authored
May 01, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Added ability to print properly float/double values.
parent
cb0f0af1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
34 deletions
+31
-34
memory.c
programs/winedbg/memory.c
+31
-34
No files found.
programs/winedbg/memory.c
View file @
bd6b394e
...
...
@@ -466,56 +466,53 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
*/
void
print_basic
(
const
struct
dbg_lvalue
*
lvalue
,
int
count
,
char
format
)
{
LONGLONG
res
;
if
(
lvalue
->
type
.
id
==
dbg_itype_none
)
{
dbg_printf
(
"Unable to evaluate expression
\n
"
);
return
;
}
res
=
types_extract_as_longlong
(
lvalue
);
/* FIXME: this implies i386 byte ordering */
switch
(
format
)
if
(
format
!=
0
)
{
case
'x'
:
dbg_printf
(
"0x%x"
,
(
DWORD
)(
ULONG64
)
res
);
break
;
LONGLONG
res
=
types_extract_as_longlong
(
lvalue
);
WCHAR
wch
;
case
'd'
:
dbg_print_longlong
(
res
,
TRUE
);
dbg_printf
(
"
\n
"
);
break
;
/* FIXME: this implies i386 byte ordering */
switch
(
format
)
{
case
'x'
:
dbg_printf
(
"0x%x"
,
(
DWORD
)(
ULONG64
)
res
);
return
;
case
'c'
:
dbg_printf
(
"%d = '%c'"
,
(
char
)(
res
&
0xff
),
(
char
)(
res
&
0xff
));
break
;
case
'd'
:
dbg_print_longlong
(
res
,
TRUE
);
dbg_printf
(
"
\n
"
);
return
;
case
'u'
:
{
WCHAR
wch
=
(
WCHAR
)(
res
&
0xFFFF
);
case
'c'
:
dbg_printf
(
"%d = '%c'"
,
(
char
)(
res
&
0xff
),
(
char
)(
res
&
0xff
));
return
;
case
'u'
:
wch
=
(
WCHAR
)(
res
&
0xFFFF
);
dbg_printf
(
"%d = '"
,
wch
);
dbg_outputW
(
&
wch
,
1
);
dbg_printf
(
"'"
);
}
break
;
return
;
case
'i'
:
case
's'
:
case
'w'
:
case
'b'
:
dbg_printf
(
"Format specifier '%c' is meaningless in 'print' command
\n
"
,
format
);
case
0
:
if
(
lvalue
->
type
.
id
==
dbg_itype_segptr
)
{
dbg_print_longlong
(
res
,
TRUE
);
dbg_printf
(
"
\n
"
);
case
'i'
:
case
's'
:
case
'w'
:
case
'b'
:
dbg_printf
(
"Format specifier '%c' is meaningless in 'print' command
\n
"
,
format
);
}
else
print_typed_basic
(
lvalue
);
break
;
}
if
(
lvalue
->
type
.
id
==
dbg_itype_segptr
)
{
dbg_print_longlong
(
types_extract_as_longlong
(
lvalue
),
TRUE
);
dbg_printf
(
"
\n
"
);
}
else
print_typed_basic
(
lvalue
);
}
void
print_bare_address
(
const
ADDRESS64
*
addr
)
...
...
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