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
0bfb26aa
Commit
0bfb26aa
authored
May 22, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
May 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Show some info for msvcrt C++ exceptions.
parent
eab168cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
debugger.h
programs/winedbg/debugger.h
+9
-0
tgt_active.c
programs/winedbg/tgt_active.c
+8
-0
No files found.
programs/winedbg/debugger.h
View file @
0bfb26aa
...
...
@@ -141,6 +141,15 @@ struct dbg_breakpoint
struct
expr
*
condition
;
};
/* used for C++ exceptions in msvcrt
* parameters:
* [0] CXX_FRAME_MAGIC
* [1] pointer to exception object
* [2] pointer to type
*/
#define CXX_EXCEPTION 0xe06d7363
#define CXX_FRAME_MAGIC 0x19930520
/* Wine extension; Windows doesn't have a name for this code. This is an
undocumented exception understood by MS VC debugger, allowing the program
to name a particular thread. Search google.com or deja.com for "0x406d1388"
...
...
programs/winedbg/tgt_active.c
View file @
0bfb26aa
...
...
@@ -381,6 +381,14 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
case
EXCEPTION_FLT_STACK_CHECK
:
dbg_printf
(
"floating point stack check"
);
break
;
case
CXX_EXCEPTION
:
if
(
rec
->
NumberParameters
==
3
&&
rec
->
ExceptionInformation
[
0
]
==
CXX_FRAME_MAGIC
)
dbg_printf
(
"C++ exception(object = 0x%08lx, type = 0x%08lx)"
,
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
2
]);
else
dbg_printf
(
"C++ exception with strange parameter count %d or magic 0x%08lx"
,
rec
->
NumberParameters
,
rec
->
ExceptionInformation
[
0
]);
break
;
default:
dbg_printf
(
"0x%08x"
,
rec
->
ExceptionCode
);
break
;
...
...
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