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
cb971b3d
Commit
cb971b3d
authored
Nov 04, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Nov 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More verbose output when unhandled exception occurs.
parent
991e7054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
except.c
dlls/kernel/except.c
+9
-6
No files found.
dlls/kernel/except.c
View file @
cb971b3d
...
...
@@ -161,14 +161,12 @@ static int format_exception_msg( const EXCEPTION_POINTERS *ptr, char *buffer, in
return
-
1
;
#ifdef __i386__
if
(
ptr
->
ContextRecord
->
SegCs
!=
wine_get_cs
())
len2
=
snprintf
(
buffer
+
len
,
size
-
len
,
" at address 0x%04lx:0x%08lx.
\n
Do you wish to debug it ?"
,
len2
=
snprintf
(
buffer
+
len
,
size
-
len
,
" at address 0x%04lx:0x%08lx"
,
ptr
->
ContextRecord
->
SegCs
,
(
DWORD
)
ptr
->
ExceptionRecord
->
ExceptionAddress
);
else
#endif
len2
=
snprintf
(
buffer
+
len
,
size
-
len
,
" at address %p.
\n
Do you wish to debug it ?"
,
len2
=
snprintf
(
buffer
+
len
,
size
-
len
,
" at address %p"
,
ptr
->
ExceptionRecord
->
ExceptionAddress
);
if
((
len2
<
0
)
||
(
len
>=
size
-
len
))
return
-
1
;
...
...
@@ -224,6 +222,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
STARTUPINFOA
startup
;
char
*
format
=
NULL
;
BOOL
ret
=
FALSE
;
char
buffer
[
256
];
static
const
WCHAR
AeDebugW
[]
=
{
'M'
,
'a'
,
'c'
,
'h'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
...
...
@@ -234,7 +233,8 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
static
const
WCHAR
DebuggerW
[]
=
{
'D'
,
'e'
,
'b'
,
'u'
,
'g'
,
'g'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
AutoW
[]
=
{
'A'
,
'u'
,
't'
,
'o'
,
0
};
MESSAGE
(
"wine: Unhandled exception (thread %04lx), starting debugger...
\n
"
,
GetCurrentThreadId
());
format_exception_msg
(
epointers
,
buffer
,
sizeof
(
buffer
)
);
MESSAGE
(
"wine: %s (thread %04lx), starting debugger...
\n
"
,
buffer
,
GetCurrentThreadId
());
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
...
...
@@ -317,8 +317,11 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
if
(
mod
)
pMessageBoxA
=
(
MessageBoxA_funcptr
)
GetProcAddress
(
mod
,
"MessageBoxA"
);
if
(
pMessageBoxA
)
{
static
const
char
msg
[]
=
".
\n
Do you wish to debug it?"
;
char
buffer
[
256
];
format_exception_msg
(
epointers
,
buffer
,
sizeof
(
buffer
)
);
format_exception_msg
(
epointers
,
buffer
,
sizeof
(
buffer
)
-
sizeof
(
msg
)
);
strcat
(
buffer
,
msg
);
if
(
pMessageBoxA
(
0
,
buffer
,
"Exception raised"
,
MB_YESNO
|
MB_ICONHAND
)
==
IDNO
)
{
TRACE
(
"Killing process
\n
"
);
...
...
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