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
604ce29c
Commit
604ce29c
authored
Jun 24, 2015
by
Ken Thomases
Committed by
Alexandre Julliard
Jun 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix STABS support for 64-bit on OS X.
OS X uses a struct nlist_64 for 64-bit images, where the n_value field is a 64-bit unsigned integer.
parent
c4be28ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
stabs.c
dlls/dbghelp/stabs.c
+8
-4
No files found.
dlls/dbghelp/stabs.c
View file @
604ce29c
...
...
@@ -111,7 +111,11 @@ struct stab_nlist
unsigned
char
n_type
;
char
n_other
;
short
n_desc
;
#if defined(__APPLE__) && defined(_WIN64)
unsigned
long
n_value
;
#else
unsigned
n_value
;
#endif
};
static
void
stab_strcpy
(
char
*
dest
,
int
sz
,
const
char
*
source
)
...
...
@@ -1465,7 +1469,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
case
35
:
case
36
:
loc
.
reg
=
CV_REG_MM0
+
stab_ptr
->
n_value
-
29
;
break
;
default:
FIXME
(
"Unknown register value (%
u)
\n
"
,
stab_ptr
->
n_value
);
FIXME
(
"Unknown register value (%
lu)
\n
"
,
(
unsigned
long
)
stab_ptr
->
n_value
);
loc
.
reg
=
CV_REG_NONE
;
break
;
}
...
...
@@ -1615,7 +1619,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
case
N_EXCL
:
if
(
stabs_add_include
(
stabs_find_include
(
ptr
,
stab_ptr
->
n_value
))
<
0
)
{
ERR
(
"Excluded header not found (%s,%
d)
\n
"
,
ptr
,
stab_ptr
->
n_value
);
ERR
(
"Excluded header not found (%s,%
ld)
\n
"
,
ptr
,
(
unsigned
long
)
stab_ptr
->
n_value
);
module_reset_debug_info
(
module
);
ret
=
FALSE
;
goto
done
;
...
...
@@ -1661,8 +1665,8 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
break
;
}
stabbuff
[
0
]
=
'\0'
;
TRACE
(
"0x%02x %x %s
\n
"
,
stab_ptr
->
n_type
,
stab_ptr
->
n_value
,
debugstr_a
(
strs
+
stab_ptr
->
n_strx
));
TRACE
(
"0x%02x %
l
x %s
\n
"
,
stab_ptr
->
n_type
,
(
unsigned
long
)
stab_ptr
->
n_value
,
debugstr_a
(
strs
+
stab_ptr
->
n_strx
));
}
module
->
module
.
SymType
=
SymDia
;
module
->
module
.
CVSig
=
'S'
|
(
'T'
<<
8
)
|
(
'A'
<<
16
)
|
(
'B'
<<
24
);
...
...
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