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
84d5614b
Commit
84d5614b
authored
Mar 22, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Add a helper to trace uint64 arrays.
parent
117fefa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
20 deletions
+12
-20
trace.c
server/trace.c
+12
-20
No files found.
server/trace.c
View file @
84d5614b
...
@@ -119,6 +119,14 @@ static void dump_uint128( const char *prefix, const unsigned __int64 val[2] )
...
@@ -119,6 +119,14 @@ static void dump_uint128( const char *prefix, const unsigned __int64 val[2] )
fprintf
(
stderr
,
"%s%x"
,
prefix
,
(
unsigned
int
)
low
);
fprintf
(
stderr
,
"%s%x"
,
prefix
,
(
unsigned
int
)
low
);
}
}
static
void
dump_uints64
(
const
char
*
prefix
,
const
unsigned
__int64
*
ptr
,
int
len
)
{
fprintf
(
stderr
,
"%s{"
,
prefix
);
if
(
len
--
>
0
)
dump_uint64
(
""
,
ptr
++
);
while
(
len
--
>
0
)
dump_uint64
(
","
,
ptr
++
);
fputc
(
'}'
,
stderr
);
}
static
void
dump_rectangle
(
const
char
*
prefix
,
const
rectangle_t
*
rect
)
static
void
dump_rectangle
(
const
char
*
prefix
,
const
rectangle_t
*
rect
)
{
{
fprintf
(
stderr
,
"%s{%d,%d;%d,%d}"
,
prefix
,
fprintf
(
stderr
,
"%s{%d,%d;%d,%d}"
,
prefix
,
...
@@ -173,10 +181,7 @@ static void dump_apc_call( const char *prefix, const apc_call_t *call )
...
@@ -173,10 +181,7 @@ static void dump_apc_call( const char *prefix, const apc_call_t *call )
break
;
break
;
case
APC_USER
:
case
APC_USER
:
dump_uint64
(
"APC_USER,func="
,
&
call
->
user
.
func
);
dump_uint64
(
"APC_USER,func="
,
&
call
->
user
.
func
);
dump_uint64
(
",args={"
,
&
call
->
user
.
args
[
0
]
);
dump_uints64
(
",args="
,
call
->
user
.
args
,
3
);
dump_uint64
(
","
,
&
call
->
user
.
args
[
1
]
);
dump_uint64
(
","
,
&
call
->
user
.
args
[
2
]
);
fputc
(
'}'
,
stderr
);
break
;
break
;
case
APC_ASYNC_IO
:
case
APC_ASYNC_IO
:
dump_uint64
(
"APC_ASYNC_IO,user="
,
&
call
->
async_io
.
user
);
dump_uint64
(
"APC_ASYNC_IO,user="
,
&
call
->
async_io
.
user
);
...
@@ -499,15 +504,8 @@ static void dump_varargs_uints( const char *prefix, data_size_t size )
...
@@ -499,15 +504,8 @@ static void dump_varargs_uints( const char *prefix, data_size_t size )
static
void
dump_varargs_uints64
(
const
char
*
prefix
,
data_size_t
size
)
static
void
dump_varargs_uints64
(
const
char
*
prefix
,
data_size_t
size
)
{
{
const
unsigned
__int64
*
data
=
cur_data
;
const
unsigned
__int64
*
data
=
cur_data
;
data_size_t
len
=
size
/
sizeof
(
*
data
);
fprintf
(
stderr
,
"%s{"
,
prefix
);
dump_uints64
(
prefix
,
data
,
size
/
sizeof
(
*
data
)
);
while
(
len
>
0
)
{
dump_uint64
(
""
,
data
++
);
if
(
--
len
)
fputc
(
','
,
stderr
);
}
fputc
(
'}'
,
stderr
);
remove_data
(
size
);
remove_data
(
size
);
}
}
...
@@ -846,7 +844,6 @@ static void dump_varargs_contexts( const char *prefix, data_size_t size )
...
@@ -846,7 +844,6 @@ static void dump_varargs_contexts( const char *prefix, data_size_t size )
static
void
dump_varargs_debug_event
(
const
char
*
prefix
,
data_size_t
size
)
static
void
dump_varargs_debug_event
(
const
char
*
prefix
,
data_size_t
size
)
{
{
debug_event_t
event
;
debug_event_t
event
;
unsigned
int
i
;
if
(
!
size
)
if
(
!
size
)
{
{
...
@@ -895,14 +892,9 @@ static void dump_varargs_debug_event( const char *prefix, data_size_t size )
...
@@ -895,14 +892,9 @@ static void dump_varargs_debug_event( const char *prefix, data_size_t size )
event
.
exception
.
first
,
event
.
exception
.
exc_code
,
event
.
exception
.
flags
);
event
.
exception
.
first
,
event
.
exception
.
exc_code
,
event
.
exception
.
flags
);
dump_uint64
(
",record="
,
&
event
.
exception
.
record
);
dump_uint64
(
",record="
,
&
event
.
exception
.
record
);
dump_uint64
(
",address="
,
&
event
.
exception
.
address
);
dump_uint64
(
",address="
,
&
event
.
exception
.
address
);
fprintf
(
stderr
,
",params={"
);
event
.
exception
.
nb_params
=
min
(
event
.
exception
.
nb_params
,
EXCEPTION_MAXIMUM_PARAMETERS
);
event
.
exception
.
nb_params
=
min
(
event
.
exception
.
nb_params
,
EXCEPTION_MAXIMUM_PARAMETERS
);
for
(
i
=
0
;
i
<
event
.
exception
.
nb_params
;
i
++
)
dump_uints64
(
",params="
,
event
.
exception
.
params
,
event
.
exception
.
nb_params
);
{
fputc
(
'}'
,
stderr
);
dump_uint64
(
""
,
&
event
.
exception
.
params
[
i
]
);
if
(
i
<
event
.
exception
.
nb_params
)
fputc
(
','
,
stderr
);
}
fprintf
(
stderr
,
"}}"
);
break
;
break
;
case
DbgLoadDllStateChange
:
case
DbgLoadDllStateChange
:
fprintf
(
stderr
,
"%s{load_dll,file=%04x"
,
prefix
,
event
.
load_dll
.
handle
);
fprintf
(
stderr
,
"%s{load_dll,file=%04x"
,
prefix
,
event
.
load_dll
.
handle
);
...
...
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