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
6f88a7b7
Commit
6f88a7b7
authored
Dec 03, 2006
by
Peter Beutner
Committed by
Alexandre Julliard
Dec 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix single stepping over popf instruction.
parent
696eddca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
signal_i386.c
dlls/ntdll/signal_i386.c
+8
-4
exception.c
dlls/ntdll/tests/exception.c
+2
-2
No files found.
dlls/ntdll/signal_i386.c
View file @
6f88a7b7
...
...
@@ -1019,11 +1019,15 @@ static void WINAPI raise_trap_exception( EXCEPTION_RECORD *rec, CONTEXT *context
{
context
->
ContextFlags
=
CONTEXT_DEBUG_REGISTERS
;
NtGetContextThread
(
GetCurrentThread
(),
context
);
/* do we really have a bp from a debug register ?
* if not, then someone did a kill(SIGTRAP) on us, and we
* shall return a breakpoint, not a single step exception
/* we have either:
* - a bp from a debug register
* - a single step interrupt at popf instruction, which just has
* removed the TF.
* - someone did a kill(SIGTRAP) on us, and we shall return
* a breakpoint, not a single step exception
*/
if
(
!
(
context
->
Dr6
&
0xf
))
rec
->
ExceptionCode
=
EXCEPTION_BREAKPOINT
;
if
(
!
(
context
->
Dr6
&
0xf
)
&&
!
(
context
->
Dr6
&
0x4000
)
)
rec
->
ExceptionCode
=
EXCEPTION_BREAKPOINT
;
context
->
ContextFlags
|=
CONTEXT_FULL
;
/* restore flags */
}
}
...
...
dlls/ntdll/tests/exception.c
View file @
6f88a7b7
...
...
@@ -265,8 +265,8 @@ static DWORD single_step_handler( EXCEPTION_RECORD *rec, EXCEPTION_REGISTRATION_
else
{
/* show that the last single step exception on the popf instruction
* (which removed the TF bit), still is a EXCEPTION_SINGLE_STEP exception */
todo_wine
{
ok
(
rec
->
ExceptionCode
==
EXCEPTION_SINGLE_STEP
,
"exception is not EXCEPTION_SINGLE_STEP: %x
\n
"
,
rec
->
ExceptionCode
);
};
ok
(
rec
->
ExceptionCode
==
EXCEPTION_SINGLE_STEP
,
"exception is not EXCEPTION_SINGLE_STEP: %x
\n
"
,
rec
->
ExceptionCode
);
}
return
ExceptionContinueExecution
;
...
...
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