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
f48f8cc3
Commit
f48f8cc3
authored
Mar 29, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Use local declaration for 64-bit macho nlist.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
061146c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
image_private.h
dlls/dbghelp/image_private.h
+9
-0
macho_module.c
dlls/dbghelp/macho_module.c
+1
-1
stabs.c
dlls/dbghelp/stabs.c
+2
-15
No files found.
dlls/dbghelp/image_private.h
View file @
f48f8cc3
...
...
@@ -143,6 +143,15 @@ struct stab_nlist
unsigned
n_value
;
};
struct
macho64_nlist
{
unsigned
n_strx
;
unsigned
char
n_type
;
char
n_other
;
short
n_desc
;
UINT64
n_value
;
};
BOOL
image_check_alternate
(
struct
image_file_map
*
fmap
,
const
struct
module
*
module
)
DECLSPEC_HIDDEN
;
BOOL
elf_map_handle
(
HANDLE
handle
,
struct
image_file_map
*
fmap
)
DECLSPEC_HIDDEN
;
...
...
dlls/dbghelp/macho_module.c
View file @
f48f8cc3
...
...
@@ -932,7 +932,7 @@ static int macho_parse_symtab(struct image_file_map* ifm,
struct
macho_debug_info
*
mdi
=
user
;
const
char
*
stabstr
;
int
ret
=
0
;
size_t
stabsize
=
(
ifm
->
addr_size
==
32
)
?
sizeof
(
struct
stab_nlist
)
:
sizeof
(
struct
nlist_64
);
size_t
stabsize
=
(
ifm
->
addr_size
==
32
)
?
sizeof
(
struct
stab_nlist
)
:
sizeof
(
struct
macho64_nlist
);
const
char
*
stab
;
TRACE
(
"(%p/%p, %p, %p) %u syms at 0x%08x, strings 0x%08x - 0x%08x
\n
"
,
fmap
,
fmap
->
handle
,
lc
,
...
...
dlls/dbghelp/stabs.c
View file @
f48f8cc3
...
...
@@ -34,27 +34,14 @@
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#ifdef HAVE_MACH_O_NLIST_H
# include <mach-o/nlist.h>
#endif
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
...
...
@@ -1290,7 +1277,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
#ifdef __APPLE__
if
(
module
->
process
->
is_64bit
)
stabsize
=
sizeof
(
struct
nlist_64
);
stabsize
=
sizeof
(
struct
macho64_nlist
);
#endif
nstab
=
stablen
/
stabsize
;
strs_end
=
strs
+
strtablen
;
...
...
@@ -1314,7 +1301,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
n_value
=
stab_ptr
->
n_value
;
#ifdef __APPLE__
if
(
module
->
process
->
is_64bit
)
n_value
=
((
struct
nlist_64
*
)
stab_ptr
)
->
n_value
;
n_value
=
((
struct
macho64_nlist
*
)
stab_ptr
)
->
n_value
;
#endif
ptr
=
strs
+
stab_ptr
->
n_strx
;
if
((
ptr
>
strs_end
)
||
(
ptr
+
strlen
(
ptr
)
>
strs_end
))
...
...
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