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
9c9efd70
Commit
9c9efd70
authored
Feb 27, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Support relay debugging of fastcall entry points.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84a7a7ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
relay.c
dlls/ntdll/relay.c
+10
-4
No files found.
dlls/ntdll/relay.c
View file @
9c9efd70
...
...
@@ -371,7 +371,11 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
if
(
!
is_ret_val
(
arg_types
[
i
+
1
]
))
TRACE
(
","
);
}
*
nb_args
=
pos
;
if
(
arg_types
[
0
]
==
't'
)
*
nb_args
|=
0x80000000
;
/* thiscall */
if
(
arg_types
[
0
]
==
't'
)
{
*
nb_args
|=
0x80000000
;
/* thiscall/fastcall */
if
(
arg_types
[
1
]
==
't'
)
*
nb_args
|=
0x40000000
;
/* fastcall */
}
TRACE
(
") ret=%08x
\n
"
,
stack
[
-
1
]
);
return
entry_point
->
orig_func
;
}
...
...
@@ -416,9 +420,8 @@ __ASM_GLOBAL_FUNC( relay_call,
"pushl 8(%ebp)
\n\t
"
"call "
__ASM_NAME
(
"relay_trace_entry"
)
"
\n\t
"
/* copy the arguments*/
"movl -16(%ebp),%ecx
\n\t
"
/* number of args */
"mov
zw
l -16(%ebp),%ecx
\n\t
"
/* number of args */
"jecxz 1f
\n\t
"
"andl $0x7fffffff,%ecx
\n\t
"
"leal 0(,%ecx,4),%edx
\n\t
"
"subl %edx,%esp
\n\t
"
"andl $~15,%esp
\n\t
"
...
...
@@ -427,7 +430,10 @@ __ASM_GLOBAL_FUNC( relay_call,
"rep; movsl
\n\t
"
"testl $0x80000000,-16(%ebp)
\n\t
"
/* thiscall */
"jz 1f
\n\t
"
"popl %ecx
\n
"
"popl %ecx
\n\t
"
"testl $0x40000000,-16(%ebp)
\n\t
"
/* fastcall */
"jz 1f
\n\t
"
"popl %edx
\n
"
/* call the entry point */
"1:
\t
call *%eax
\n\t
"
"movl %eax,%esi
\n\t
"
...
...
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