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
4872747b
Commit
4872747b
authored
May 15, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix breakpoint exception address on 64-bit Linux.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f2503a3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
debugger.c
dlls/kernel32/tests/debugger.c
+9
-1
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+4
-1
No files found.
dlls/kernel32/tests/debugger.c
View file @
4872747b
...
...
@@ -638,7 +638,15 @@ static void test_debug_loop(int argc, char **argv)
if
(
!
ret
)
break
;
if
(
ev
.
dwDebugEventCode
==
EXIT_PROCESS_DEBUG_EVENT
)
break
;
#if defined(__i386__) || defined(__x86_64__)
if
(
ev
.
dwDebugEventCode
==
EXCEPTION_DEBUG_EVENT
&&
ev
.
u
.
Exception
.
ExceptionRecord
.
ExceptionCode
==
EXCEPTION_BREAKPOINT
)
{
BYTE
byte
=
0
;
NtReadVirtualMemory
(
pi
.
hProcess
,
ev
.
u
.
Exception
.
ExceptionRecord
.
ExceptionAddress
,
&
byte
,
1
,
NULL
);
ok
(
byte
==
0xcc
,
"got %02x
\n
"
,
byte
);
}
#endif
ret
=
ContinueDebugEvent
(
ev
.
dwProcessId
,
ev
.
dwThreadId
,
DBG_CONTINUE
);
ok
(
ret
,
"ContinueDebugEvent failed, last error %#x.
\n
"
,
GetLastError
());
if
(
!
ret
)
break
;
...
...
dlls/ntdll/signal_x86_64.c
View file @
4872747b
...
...
@@ -3134,7 +3134,10 @@ 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 */
#ifdef SI_KERNEL
case
SI_KERNEL
:
#endif
/* Check if this is actually icebp instruction */
if
(((
unsigned
char
*
)
rec
->
ExceptionAddress
)[
-
1
]
==
0xF1
)
{
rec
->
ExceptionCode
=
EXCEPTION_SINGLE_STEP
;
...
...
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