Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5644022c
Commit
5644022c
authored
Mar 12, 2018
by
Andrew Wesie
Committed by
Alexandre Julliard
Mar 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle icebp on x86-64.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bd63cce8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+6
-0
exception.c
dlls/ntdll/tests/exception.c
+0
-2
No files found.
dlls/ntdll/signal_x86_64.c
View file @
5644022c
...
...
@@ -2917,6 +2917,12 @@ static void trap_handler( int signal, siginfo_t *siginfo, void *sigcontext )
rec
->
ExceptionCode
=
EXCEPTION_SINGLE_STEP
;
break
;
case
TRAP_BRKPT
:
/* Breakpoint exception */
/* Check if this is actuallly icebp instruction */
if
(((
unsigned
char
*
)
rec
->
ExceptionAddress
)[
-
1
]
==
0xF1
)
{
rec
->
ExceptionCode
=
EXCEPTION_SINGLE_STEP
;
break
;
}
rec
->
ExceptionAddress
=
(
char
*
)
rec
->
ExceptionAddress
-
1
;
/* back up over the int3 instruction */
/* fall through */
default
:
...
...
dlls/ntdll/tests/exception.c
View file @
5644022c
...
...
@@ -2292,10 +2292,8 @@ static const struct exception
/* 35 */
{
{
0xa3
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xc3
},
/* movl %eax,0xffffffffffffffff; ret */
0
,
9
,
STATUS_ACCESS_VIOLATION
,
2
,
{
1
,
0xffffffffffffffff
}
},
#if 0
{
{
0xf1
,
0x90
,
0xc3
},
/* icebp; nop; ret */
1
,
1
,
STATUS_SINGLE_STEP
,
0
},
#endif
{
{
0xcd
,
0x2c
,
0xc3
},
0
,
2
,
STATUS_ASSERTION_FAILURE
,
0
},
};
...
...
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