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
8b84808b
Commit
8b84808b
authored
Jan 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Don't send a debugger event in UnhandledExceptionFilter,
leave that to the standard ntdll exception handling.
parent
52bce47b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
50 deletions
+1
-50
except.c
dlls/kernel/except.c
+1
-50
No files found.
dlls/kernel/except.c
View file @
8b84808b
...
...
@@ -51,7 +51,6 @@
#include "wine/exception.h"
#include "wine/library.h"
#include "excpt.h"
#include "wine/server.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -175,38 +174,6 @@ static int format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, in
}
/**********************************************************************
* send_debug_event
*
* Send an EXCEPTION_DEBUG_EVENT event to the debugger.
*/
static
NTSTATUS
send_debug_event
(
EXCEPTION_RECORD
*
rec
,
int
first_chance
,
CONTEXT
*
context
)
{
NTSTATUS
ret
;
HANDLE
handle
=
0
;
SERVER_START_REQ
(
queue_exception_event
)
{
req
->
first
=
first_chance
;
wine_server_add_data
(
req
,
context
,
sizeof
(
*
context
)
);
wine_server_add_data
(
req
,
rec
,
sizeof
(
*
rec
)
);
if
(
!
(
ret
=
wine_server_call
(
req
)))
handle
=
reply
->
handle
;
}
SERVER_END_REQ
;
if
(
ret
)
return
ret
;
WaitForSingleObject
(
handle
,
INFINITE
);
SERVER_START_REQ
(
get_exception_status
)
{
req
->
handle
=
handle
;
wine_server_set_reply
(
req
,
context
,
sizeof
(
*
context
)
);
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
return
ret
;
}
/******************************************************************
* start_debugger
*
...
...
@@ -452,8 +419,6 @@ inline static BOOL check_resource_write( const EXCEPTION_RECORD *rec )
*/
DWORD
WINAPI
UnhandledExceptionFilter
(
PEXCEPTION_POINTERS
epointers
)
{
NTSTATUS
status
;
if
(
check_resource_write
(
epointers
->
ExceptionRecord
))
return
EXCEPTION_CONTINUE_EXECUTION
;
if
(
!
NtCurrentTeb
()
->
Peb
->
BeingDebugged
)
...
...
@@ -475,21 +440,7 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers)
if
(
!
start_debugger_atomic
(
epointers
)
||
!
NtCurrentTeb
()
->
Peb
->
BeingDebugged
)
return
EXCEPTION_EXECUTE_HANDLER
;
}
/* send a last chance event to the debugger */
status
=
send_debug_event
(
epointers
->
ExceptionRecord
,
FALSE
,
epointers
->
ContextRecord
);
switch
(
status
)
{
case
DBG_CONTINUE
:
return
EXCEPTION_CONTINUE_EXECUTION
;
case
DBG_EXCEPTION_NOT_HANDLED
:
TerminateProcess
(
GetCurrentProcess
(),
epointers
->
ExceptionRecord
->
ExceptionCode
);
break
;
/* not reached */
default:
FIXME
(
"Unhandled error on debug event: %lx
\n
"
,
status
);
break
;
}
return
EXCEPTION_EXECUTE_HANDLER
;
return
EXCEPTION_CONTINUE_SEARCH
;
}
...
...
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