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
acac3cce
Commit
acac3cce
authored
Mar 15, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Added support for printing WCHAR in print_typed_basic.
parent
b14e4e58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
memory.c
programs/winedbg/memory.c
+11
-5
No files found.
programs/winedbg/memory.c
View file @
acac3cce
...
...
@@ -29,6 +29,7 @@
#include "debugger.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winedbg
);
...
...
@@ -393,18 +394,23 @@ static void print_typed_basic(const struct dbg_lvalue* lvalue)
dbg_printf
(
"%Lf"
,
val_real
);
break
;
case
btChar
:
case
btWChar
:
/* sometimes WCHAR is defined as btChar with size = 2, so discrimate
* Ansi/Unicode based on size, not on basetype
*/
if
(
!
be_cpu
->
fetch_integer
(
lvalue
,
size
,
TRUE
,
&
val_int
))
return
;
/* FIXME: should do the same for a Unicode character (size == 2) */
print_char:
if
(
size
==
1
&&
(
val_int
<
0x20
||
val_int
>
0x80
))
dbg_printf
(
"
%d"
,
(
int
)
val_int
);
else
if
(
size
==
2
)
if
(
size
==
1
&&
isprint
((
char
)
val_int
))
dbg_printf
(
"
'%c'"
,
(
char
)
val_int
);
else
if
(
size
==
2
&&
isprintW
((
WCHAR
)
val_int
)
)
{
WCHAR
wch
=
(
WCHAR
)
val_int
;
dbg_printf
(
"'"
);
dbg_outputW
(
&
wch
,
1
);
dbg_printf
(
"'"
);
}
else
dbg_printf
(
"
'%c'"
,
(
char
)
val_int
);
dbg_printf
(
"
%d"
,
(
int
)
val_int
);
break
;
case
btBool
:
if
(
!
be_cpu
->
fetch_integer
(
lvalue
,
size
,
TRUE
,
&
val_int
))
return
;
...
...
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