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
3a96219d
Commit
3a96219d
authored
Mar 13, 2009
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/stabs: For Mach-O, line numbers use absolute address, not offset.
So, compute the offset by subtracting the function address.
parent
feedbb16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
stabs.c
dlls/dbghelp/stabs.c
+6
-1
No files found.
dlls/dbghelp/stabs.c
View file @
3a96219d
...
...
@@ -1202,6 +1202,8 @@ static void pending_flush(struct pending_list* pending, struct module* module,
block
,
pending
->
objs
[
i
].
u
.
var
.
type
,
pending
->
objs
[
i
].
u
.
var
.
name
);
break
;
case
PENDING_LINE
:
if
(
module
->
type
==
DMT_MACHO
)
pending
->
objs
[
i
].
u
.
line
.
offset
-=
func
->
address
;
symt_add_func_line
(
module
,
func
,
pending
->
objs
[
i
].
u
.
line
.
source_idx
,
pending
->
objs
[
i
].
u
.
line
.
line_num
,
pending
->
objs
[
i
].
u
.
line
.
offset
);
break
;
...
...
@@ -1485,8 +1487,11 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
assert
(
source_idx
>=
0
);
if
(
curr_func
!=
NULL
)
{
unsigned
long
offset
=
stab_ptr
->
n_value
;
if
(
module
->
type
==
DMT_MACHO
)
offset
-=
curr_func
->
address
;
symt_add_func_line
(
module
,
curr_func
,
source_idx
,
stab_ptr
->
n_desc
,
stab_ptr
->
n_value
);
stab_ptr
->
n_desc
,
offset
);
}
else
pending_add_line
(
&
pending_func
,
source_idx
,
stab_ptr
->
n_desc
,
stab_ptr
->
n_value
);
...
...
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