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
33584dc1
Commit
33584dc1
authored
Oct 11, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Also return CPU type in the mapping image information.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ecea7a94
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
server_protocol.h
include/wine/server_protocol.h
+2
-1
mapping.c
server/mapping.c
+5
-0
protocol.def
server/protocol.def
+1
-0
trace.c
server/trace.c
+3
-1
No files found.
include/wine/server_protocol.h
View file @
33584dc1
...
...
@@ -700,6 +700,7 @@ typedef struct
unsigned
int
header_size
;
unsigned
int
file_size
;
unsigned
int
checksum
;
cpu_type_t
cpu
;
}
pe_image_info_t
;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01
#define IMAGE_FLAGS_ComPlusILOnly 0x02
...
...
@@ -6531,6 +6532,6 @@ union generic_reply
struct
terminate_job_reply
terminate_job_reply
;
};
#define SERVER_PROTOCOL_VERSION 56
5
#define SERVER_PROTOCOL_VERSION 56
6
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/mapping.c
View file @
33584dc1
...
...
@@ -600,14 +600,17 @@ static unsigned int get_image_params( struct mapping *mapping, file_pos_t file_s
switch
(
nt
.
FileHeader
.
Machine
)
{
case
IMAGE_FILE_MACHINE_I386
:
mapping
->
image
.
cpu
=
CPU_x86
;
if
(
cpu_mask
&
(
CPU_FLAG
(
CPU_x86
)
|
CPU_FLAG
(
CPU_x86_64
)))
break
;
return
STATUS_INVALID_IMAGE_FORMAT
;
case
IMAGE_FILE_MACHINE_ARM
:
case
IMAGE_FILE_MACHINE_THUMB
:
case
IMAGE_FILE_MACHINE_ARMNT
:
mapping
->
image
.
cpu
=
CPU_ARM
;
if
(
cpu_mask
&
(
CPU_FLAG
(
CPU_ARM
)
|
CPU_FLAG
(
CPU_ARM64
)))
break
;
return
STATUS_INVALID_IMAGE_FORMAT
;
case
IMAGE_FILE_MACHINE_POWERPC
:
mapping
->
image
.
cpu
=
CPU_POWERPC
;
if
(
cpu_mask
&
CPU_FLAG
(
CPU_POWERPC
))
break
;
return
STATUS_INVALID_IMAGE_FORMAT
;
default:
...
...
@@ -643,9 +646,11 @@ static unsigned int get_image_params( struct mapping *mapping, file_pos_t file_s
switch
(
nt
.
FileHeader
.
Machine
)
{
case
IMAGE_FILE_MACHINE_AMD64
:
mapping
->
image
.
cpu
=
CPU_x86_64
;
if
(
cpu_mask
&
(
CPU_FLAG
(
CPU_x86
)
|
CPU_FLAG
(
CPU_x86_64
)))
break
;
return
STATUS_INVALID_IMAGE_FORMAT
;
case
IMAGE_FILE_MACHINE_ARM64
:
mapping
->
image
.
cpu
=
CPU_ARM64
;
if
(
cpu_mask
&
(
CPU_FLAG
(
CPU_ARM
)
|
CPU_FLAG
(
CPU_ARM64
)))
break
;
return
STATUS_INVALID_IMAGE_FORMAT
;
default:
...
...
server/protocol.def
View file @
33584dc1
...
...
@@ -716,6 +716,7 @@ typedef struct
unsigned int header_size;
unsigned int file_size;
unsigned int checksum;
cpu_type_t cpu;
} pe_image_info_t;
#define IMAGE_FLAGS_ComPlusNativeReady 0x01
#define IMAGE_FLAGS_ComPlusILOnly 0x02
...
...
server/trace.c
View file @
33584dc1
...
...
@@ -1177,10 +1177,12 @@ static void dump_varargs_pe_image_info( const char *prefix, data_size_t size )
dump_uint64
(
",stack_commit="
,
&
info
.
stack_commit
);
fprintf
(
stderr
,
",zerobits=%08x,subsystem=%08x,subsystem_low=%04x,subsystem_high=%04x,gp=%08x"
",image_charact=%04x,dll_charact=%04x,machine=%04x,contains_code=%u,image_flags=%02x"
",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x
}
"
,
",loader_flags=%08x,header_size=%08x,file_size=%08x,checksum=%08x"
,
info
.
zerobits
,
info
.
subsystem
,
info
.
subsystem_low
,
info
.
subsystem_high
,
info
.
gp
,
info
.
image_charact
,
info
.
dll_charact
,
info
.
machine
,
info
.
contains_code
,
info
.
image_flags
,
info
.
loader_flags
,
info
.
header_size
,
info
.
file_size
,
info
.
checksum
);
dump_cpu_type
(
",cpu="
,
&
info
.
cpu
);
fputc
(
'}'
,
stderr
);
remove_data
(
size
);
}
...
...
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