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
e976158f
Commit
e976158f
authored
Mar 06, 2009
by
Mike Ruprecht
Committed by
Alexandre Julliard
Mar 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Don't define 32-bit structs in 64-bit mode.
parent
366334c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
dbghelp.h
include/dbghelp.h
+44
-0
No files found.
include/dbghelp.h
View file @
e976158f
...
@@ -58,12 +58,17 @@ typedef enum
...
@@ -58,12 +58,17 @@ typedef enum
AddrModeFlat
AddrModeFlat
}
ADDRESS_MODE
;
}
ADDRESS_MODE
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define ADDRESS ADDRESS64
#define LPADDRESS LPADDRESS64
#else
typedef
struct
_tagADDRESS
typedef
struct
_tagADDRESS
{
{
DWORD
Offset
;
DWORD
Offset
;
WORD
Segment
;
WORD
Segment
;
ADDRESS_MODE
Mode
;
ADDRESS_MODE
Mode
;
}
ADDRESS
,
*
LPADDRESS
;
}
ADDRESS
,
*
LPADDRESS
;
#endif
typedef
struct
_tagADDRESS64
typedef
struct
_tagADDRESS64
{
{
...
@@ -102,6 +107,10 @@ typedef enum
...
@@ -102,6 +107,10 @@ typedef enum
NumSymTypes
NumSymTypes
}
SYM_TYPE
;
}
SYM_TYPE
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_SYMBOL IMAGEHLP_SYMBOL64
#define PIMAGEHLP_SYMBOL PIMAGEHLP_SYMBOL64
#else
typedef
struct
_IMAGEHLP_SYMBOL
typedef
struct
_IMAGEHLP_SYMBOL
{
{
DWORD
SizeOfStruct
;
DWORD
SizeOfStruct
;
...
@@ -111,6 +120,7 @@ typedef struct _IMAGEHLP_SYMBOL
...
@@ -111,6 +120,7 @@ typedef struct _IMAGEHLP_SYMBOL
DWORD
MaxNameLength
;
DWORD
MaxNameLength
;
CHAR
Name
[
1
];
CHAR
Name
[
1
];
}
IMAGEHLP_SYMBOL
,
*
PIMAGEHLP_SYMBOL
;
}
IMAGEHLP_SYMBOL
,
*
PIMAGEHLP_SYMBOL
;
#endif
typedef
struct
_IMAGEHLP_SYMBOL64
typedef
struct
_IMAGEHLP_SYMBOL64
{
{
...
@@ -132,6 +142,12 @@ typedef struct _IMAGEHLP_SYMBOLW64
...
@@ -132,6 +142,12 @@ typedef struct _IMAGEHLP_SYMBOLW64
WCHAR
Name
[
1
];
WCHAR
Name
[
1
];
}
IMAGEHLP_SYMBOLW64
,
*
PIMAGEHLP_SYMBOLW64
;
}
IMAGEHLP_SYMBOLW64
,
*
PIMAGEHLP_SYMBOLW64
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_MODULE IMAGEHLP_MODULE64
#define PIMAGEHLP_MODULE PIMAGEHLP_MODULE64
#define IMAGEHLP_MODULEW IMAGEHLP_MODULEW64
#define PIMAGEHLP_MODULEW PIMAGEHLP_MODULEW64
#else
typedef
struct
_IMAGEHLP_MODULE
typedef
struct
_IMAGEHLP_MODULE
{
{
DWORD
SizeOfStruct
;
DWORD
SizeOfStruct
;
...
@@ -159,6 +175,7 @@ typedef struct _IMAGEHLP_MODULEW
...
@@ -159,6 +175,7 @@ typedef struct _IMAGEHLP_MODULEW
WCHAR
ImageName
[
256
];
WCHAR
ImageName
[
256
];
WCHAR
LoadedImageName
[
256
];
WCHAR
LoadedImageName
[
256
];
}
IMAGEHLP_MODULEW
,
*
PIMAGEHLP_MODULEW
;
}
IMAGEHLP_MODULEW
,
*
PIMAGEHLP_MODULEW
;
#endif
typedef
struct
_IMAGEHLP_MODULE64
typedef
struct
_IMAGEHLP_MODULE64
{
{
...
@@ -214,6 +231,12 @@ typedef struct _IMAGEHLP_MODULEW64
...
@@ -214,6 +231,12 @@ typedef struct _IMAGEHLP_MODULEW64
BOOL
Publics
;
BOOL
Publics
;
}
IMAGEHLP_MODULEW64
,
*
PIMAGEHLP_MODULEW64
;
}
IMAGEHLP_MODULEW64
,
*
PIMAGEHLP_MODULEW64
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_LINE IMAGEHLP_LINE64
#define PIMAGEHLP_LINE PIMAGEHLP_LINE64
#define IMAGEHLP_LINEW IMAGEHLP_LINEW64
#define PIMAGEHLP_LINEW PIMAGEHLP_LINEW64
#else
typedef
struct
_IMAGEHLP_LINE
typedef
struct
_IMAGEHLP_LINE
{
{
DWORD
SizeOfStruct
;
DWORD
SizeOfStruct
;
...
@@ -231,6 +254,7 @@ typedef struct _IMAGEHLP_LINEW
...
@@ -231,6 +254,7 @@ typedef struct _IMAGEHLP_LINEW
PWSTR
FileName
;
PWSTR
FileName
;
DWORD
Address
;
DWORD
Address
;
}
IMAGEHLP_LINEW
,
*
PIMAGEHLP_LINEW
;
}
IMAGEHLP_LINEW
,
*
PIMAGEHLP_LINEW
;
#endif
typedef
struct
_IMAGEHLP_LINE64
typedef
struct
_IMAGEHLP_LINE64
{
{
...
@@ -311,6 +335,10 @@ typedef struct _IMAGEHLP_CBA_EVENTW
...
@@ -311,6 +335,10 @@ typedef struct _IMAGEHLP_CBA_EVENTW
PVOID
object
;
PVOID
object
;
}
IMAGEHLP_CBA_EVENTW
,
*
PIMAGEHLP_CBA_EVENTW
;
}
IMAGEHLP_CBA_EVENTW
,
*
PIMAGEHLP_CBA_EVENTW
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_DEFERRED_SYMBOL_LOAD IMAGEHLP_DEFERRED_SYMBOL_LOAD64
#define PIMAGEHLP_DEFERRED_SYMBOL_LOAD PIMAGEHLP_DEFERRED_SYMBOL_LOAD64
#else
typedef
struct
_IMAGEHLP_DEFERRED_SYMBOL_LOAD
typedef
struct
_IMAGEHLP_DEFERRED_SYMBOL_LOAD
{
{
DWORD
SizeOfStruct
;
DWORD
SizeOfStruct
;
...
@@ -321,6 +349,7 @@ typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD
...
@@ -321,6 +349,7 @@ typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOAD
BOOLEAN
Reparse
;
BOOLEAN
Reparse
;
HANDLE
hFile
;
HANDLE
hFile
;
}
IMAGEHLP_DEFERRED_SYMBOL_LOAD
,
*
PIMAGEHLP_DEFERRED_SYMBOL_LOAD
;
}
IMAGEHLP_DEFERRED_SYMBOL_LOAD
,
*
PIMAGEHLP_DEFERRED_SYMBOL_LOAD
;
#endif
typedef
struct
_IMAGEHLP_DEFERRED_SYMBOL_LOAD64
typedef
struct
_IMAGEHLP_DEFERRED_SYMBOL_LOAD64
{
{
...
@@ -346,6 +375,10 @@ typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOADW64
...
@@ -346,6 +375,10 @@ typedef struct _IMAGEHLP_DEFERRED_SYMBOL_LOADW64
DWORD
Flags
;
DWORD
Flags
;
}
IMAGEHLP_DEFERRED_SYMBOL_LOADW64
,
*
PIMAGEHLP_DEFERRED_SYMBOL_LOADW64
;
}
IMAGEHLP_DEFERRED_SYMBOL_LOADW64
,
*
PIMAGEHLP_DEFERRED_SYMBOL_LOADW64
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define IMAGEHLP_DUPLICATE_SYMBOL IMAGEHLP_DUPLICATE_SYMBOL64
#define PIMAGEHLP_DUPLICATE_SYMBOL PIMAGEHLP_DUPLICATE_SYMBOL64
#else
typedef
struct
_IMAGEHLP_DUPLICATE_SYMBOL
typedef
struct
_IMAGEHLP_DUPLICATE_SYMBOL
{
{
DWORD
SizeOfStruct
;
DWORD
SizeOfStruct
;
...
@@ -353,6 +386,7 @@ typedef struct _IMAGEHLP_DUPLICATE_SYMBOL
...
@@ -353,6 +386,7 @@ typedef struct _IMAGEHLP_DUPLICATE_SYMBOL
PIMAGEHLP_SYMBOL
Symbol
;
PIMAGEHLP_SYMBOL
Symbol
;
DWORD
SelectedSymbol
;
DWORD
SelectedSymbol
;
}
IMAGEHLP_DUPLICATE_SYMBOL
,
*
PIMAGEHLP_DUPLICATE_SYMBOL
;
}
IMAGEHLP_DUPLICATE_SYMBOL
,
*
PIMAGEHLP_DUPLICATE_SYMBOL
;
#endif
typedef
struct
_IMAGEHLP_DUPLICATE_SYMBOL64
typedef
struct
_IMAGEHLP_DUPLICATE_SYMBOL64
{
{
...
@@ -1176,6 +1210,10 @@ BOOL WINAPI SymSetContext(HANDLE, PIMAGEHLP_STACK_FRAME, PIMAGEHLP_CONTEXT);
...
@@ -1176,6 +1210,10 @@ BOOL WINAPI SymSetContext(HANDLE, PIMAGEHLP_STACK_FRAME, PIMAGEHLP_CONTEXT);
* Stack management *
* Stack management *
*************************/
*************************/
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define KDHELP KDHELP64
#define PKDHELP PKDHELP64
#else
typedef
struct
_KDHELP
typedef
struct
_KDHELP
{
{
DWORD
Thread
;
DWORD
Thread
;
...
@@ -1186,6 +1224,7 @@ typedef struct _KDHELP
...
@@ -1186,6 +1224,7 @@ typedef struct _KDHELP
DWORD
KeUserCallbackDispatcher
;
DWORD
KeUserCallbackDispatcher
;
DWORD
SystemRangeStart
;
DWORD
SystemRangeStart
;
}
KDHELP
,
*
PKDHELP
;
}
KDHELP
,
*
PKDHELP
;
#endif
typedef
struct
_KDHELP64
typedef
struct
_KDHELP64
{
{
...
@@ -1200,6 +1239,10 @@ typedef struct _KDHELP64
...
@@ -1200,6 +1239,10 @@ typedef struct _KDHELP64
DWORD64
Reserved
[
8
];
DWORD64
Reserved
[
8
];
}
KDHELP64
,
*
PKDHELP64
;
}
KDHELP64
,
*
PKDHELP64
;
#if !defined(_IMAGEHLP_SOURCE_) && defined(_IMAGEHLP64)
#define STACKFRAME STACKFRAME64
#define LPSTACKFRAME LPSTACKFRAME64
#else
typedef
struct
_STACKFRAME
typedef
struct
_STACKFRAME
{
{
ADDRESS
AddrPC
;
ADDRESS
AddrPC
;
...
@@ -1214,6 +1257,7 @@ typedef struct _STACKFRAME
...
@@ -1214,6 +1257,7 @@ typedef struct _STACKFRAME
KDHELP
KdHelp
;
KDHELP
KdHelp
;
ADDRESS
AddrBStore
;
ADDRESS
AddrBStore
;
}
STACKFRAME
,
*
LPSTACKFRAME
;
}
STACKFRAME
,
*
LPSTACKFRAME
;
#endif
typedef
struct
_STACKFRAME64
typedef
struct
_STACKFRAME64
{
{
...
...
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