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
a18fdfc0
Commit
a18fdfc0
authored
Apr 15, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix minidump support on 64bit OSes (don't clamp addresses out of 64bit minidumps).
parent
f4f3033d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+10
-2
No files found.
programs/winedbg/tgt_minidump.c
View file @
a18fdfc0
...
@@ -40,9 +40,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(winedbg);
...
@@ -40,9 +40,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(winedbg);
static
struct
be_process_io
be_process_minidump_io
;
static
struct
be_process_io
be_process_minidump_io
;
static
DWORD64
get_addr64
(
DWORD64
addr
)
/* we need this function on 32bit hosts to ensure we zero out the higher DWORD
* stored in the minidump file (sometimes it's not cleared, or the conversion from
* 32bit to 64bit wide integers is done as signed, which is wrong)
* So we clamp on 32bit CPUs (as stored in minidump information) all addresses to
* keep only the lower 32 bits.
* FIXME: as of today, since we don't support a backend CPU which is different from
* CPU this process is running on, casting to (DWORD_PTR) will do just fine.
*/
static
inline
DWORD64
get_addr64
(
DWORD64
addr
)
{
{
return
addr
&
0xFFFFFFFF
;
return
(
DWORD_PTR
)
addr
;
}
}
void
minidump_write
(
const
char
*
file
,
const
EXCEPTION_RECORD
*
rec
)
void
minidump_write
(
const
char
*
file
,
const
EXCEPTION_RECORD
*
rec
)
...
...
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