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
a7ad588e
Commit
a7ad588e
authored
Mar 21, 2024
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 21, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Don't reload a minidump for a different machine.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
70d11a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
tgt_minidump.c
programs/winedbg/tgt_minidump.c
+15
-3
No files found.
programs/winedbg/tgt_minidump.c
View file @
a7ad588e
...
...
@@ -303,9 +303,10 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
if
(
MiniDumpReadDumpStream
(
data
->
mapping
,
SystemInfoStream
,
&
dir
,
&
stream
,
NULL
))
{
MINIDUMP_SYSTEM_INFO
*
msi
=
stream
;
const
char
*
str
;
char
tmp
[
128
];
MINIDUMP_SYSTEM_INFO
*
msi
=
stream
;
USHORT
machine
=
IMAGE_FILE_MACHINE_UNKNOWN
;
const
char
*
str
;
char
tmp
[
128
];
dbg_printf
(
"WineDbg starting minidump on pid %04lx
\n
"
,
pid
);
switch
(
msi
->
ProcessorArchitecture
)
...
...
@@ -314,6 +315,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
str
=
"Unknown"
;
break
;
case
PROCESSOR_ARCHITECTURE_INTEL
:
machine
=
IMAGE_FILE_MACHINE_I386
;
strcpy
(
tmp
,
"x86 ["
);
switch
(
msi
->
ProcessorLevel
)
{
...
...
@@ -355,6 +357,7 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
str
=
"PowerPC"
;
break
;
case
PROCESSOR_ARCHITECTURE_AMD64
:
machine
=
IMAGE_FILE_MACHINE_AMD64
;
str
=
"X86_64"
;
break
;
case
PROCESSOR_ARCHITECTURE_ARM
:
...
...
@@ -462,6 +465,15 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
code
+
wes
[
1
],
code
+
wes
[
2
],
code
+
wes
[
3
]);
}
}
if
(
machine
==
IMAGE_FILE_MACHINE_UNKNOWN
#ifdef __x86_64__
||
machine
==
IMAGE_FILE_MACHINE_I386
#endif
)
{
dbg_printf
(
"Cannot reload this minidump because of incompatible/unsupported machine %x
\n
"
,
machine
);
return
FALSE
;
}
}
dbg_curr_process
=
dbg_add_process
(
&
be_process_minidump_io
,
pid
,
hProc
);
...
...
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