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
93737d55
Commit
93737d55
authored
Dec 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Store debugging output strings as client_ptr_t instead of void pointers.
parent
947976f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
+23
-20
debugger.c
dlls/kernel32/debugger.c
+3
-3
server_protocol.h
include/wine/server_protocol.h
+6
-6
protocol.def
server/protocol.def
+5
-5
trace.c
server/trace.c
+9
-6
No files found.
dlls/kernel32/debugger.c
View file @
93737d55
...
...
@@ -112,7 +112,7 @@ BOOL WINAPI WaitForDebugEvent(
event
->
u
.
UnloadDll
.
lpBaseOfDll
=
wine_server_get_ptr
(
data
.
info
.
unload_dll
.
base
);
break
;
case
OUTPUT_DEBUG_STRING_EVENT
:
event
->
u
.
DebugString
.
lpDebugStringData
=
data
.
info
.
output_string
.
string
;
event
->
u
.
DebugString
.
lpDebugStringData
=
wine_server_get_ptr
(
data
.
info
.
output_string
.
string
)
;
event
->
u
.
DebugString
.
fUnicode
=
data
.
info
.
output_string
.
unicode
;
event
->
u
.
DebugString
.
nDebugStringLength
=
data
.
info
.
output_string
.
length
;
break
;
...
...
@@ -237,7 +237,7 @@ void WINAPI OutputDebugStringA( LPCSTR str )
{
SERVER_START_REQ
(
output_debug_string
)
{
req
->
string
=
(
void
*
)
str
;
req
->
string
=
wine_server_client_ptr
(
str
)
;
req
->
unicode
=
0
;
req
->
length
=
strlen
(
str
)
+
1
;
wine_server_call
(
req
);
...
...
@@ -264,7 +264,7 @@ void WINAPI OutputDebugStringW( LPCWSTR str )
{
SERVER_START_REQ
(
output_debug_string
)
{
req
->
string
=
(
void
*
)
str
;
req
->
string
=
wine_server_client_ptr
(
str
)
;
req
->
unicode
=
1
;
req
->
length
=
(
lstrlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
wine_server_call
(
req
);
...
...
include/wine/server_protocol.h
View file @
93737d55
...
...
@@ -97,9 +97,9 @@ struct debug_event_unload_dll
};
struct
debug_event_output_string
{
void
*
string
;
int
unicode
;
int
length
;
client_ptr_t
string
;
int
unicode
;
data_size_t
length
;
};
struct
debug_event_rip_info
{
...
...
@@ -1873,9 +1873,9 @@ struct get_exception_status_reply
struct
output_debug_string_request
{
struct
request_header
__header
;
void
*
string
;
data_size_t
length
;
client_ptr_t
string
;
int
unicode
;
int
length
;
};
struct
output_debug_string_reply
{
...
...
@@ -5052,6 +5052,6 @@ union generic_reply
struct
set_window_layered_info_reply
set_window_layered_info_reply
;
};
#define SERVER_PROTOCOL_VERSION 35
7
#define SERVER_PROTOCOL_VERSION 35
8
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
93737d55
...
...
@@ -113,9 +113,9 @@ struct debug_event_unload_dll
};
struct debug_event_output_string
{
void *
string; /* string to display (in debugged process address space) */
int unicode; /* is it Unicode? */
int
length; /* string length */
client_ptr_t
string; /* string to display (in debugged process address space) */
int
unicode; /* is it Unicode? */
data_size_t
length; /* string length */
};
struct debug_event_rip_info
{
...
...
@@ -1462,9 +1462,9 @@ enum char_info_mode
/* Send an output string to the debugger */
@REQ(output_debug_string)
void* string; /* string to display (in debugged process address space) */
data_size_t length; /* string length */
client_ptr_t string; /* string to display (in debugged process address space) */
int unicode; /* is it Unicode? */
int length; /* string length */
@END
...
...
server/trace.c
View file @
93737d55
...
...
@@ -485,9 +485,10 @@ static void dump_varargs_debug_event( data_size_t size )
fputc
(
'}'
,
stderr
);
break
;
case
OUTPUT_DEBUG_STRING_EVENT
:
fprintf
(
stderr
,
"{output_string,data=%p,unicode=%d,len=%d}"
,
event
->
info
.
output_string
.
string
,
event
->
info
.
output_string
.
unicode
,
event
->
info
.
output_string
.
length
);
fprintf
(
stderr
,
"{output_string,string="
);
dump_uint64
(
&
event
->
info
.
output_string
.
string
);
fprintf
(
stderr
,
",unicode=%d,len=%u}"
,
event
->
info
.
output_string
.
unicode
,
event
->
info
.
output_string
.
length
);
break
;
case
RIP_EVENT
:
fprintf
(
stderr
,
"{rip,err=%d,type=%d}"
,
...
...
@@ -1922,9 +1923,11 @@ static void dump_get_exception_status_reply( const struct get_exception_status_r
static
void
dump_output_debug_string_request
(
const
struct
output_debug_string_request
*
req
)
{
fprintf
(
stderr
,
" string=%p,"
,
req
->
string
);
fprintf
(
stderr
,
" unicode=%d,"
,
req
->
unicode
);
fprintf
(
stderr
,
" length=%d"
,
req
->
length
);
fprintf
(
stderr
,
" length=%u,"
,
req
->
length
);
fprintf
(
stderr
,
" string="
);
dump_uint64
(
&
req
->
string
);
fprintf
(
stderr
,
","
);
fprintf
(
stderr
,
" unicode=%d"
,
req
->
unicode
);
}
static
void
dump_continue_debug_event_request
(
const
struct
continue_debug_event_request
*
req
)
...
...
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