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
985f0ea1
Commit
985f0ea1
authored
Mar 11, 2009
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/stabs: Track line numbers pending for an upcoming function.
On Darwin, line numbers usually precede the associated function.
parent
65d92907
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
stabs.c
dlls/dbghelp/stabs.c
+13
-7
No files found.
dlls/dbghelp/stabs.c
View file @
985f0ea1
...
...
@@ -1265,7 +1265,8 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
unsigned
incl
[
32
];
int
incl_stk
=
-
1
;
int
source_idx
=
-
1
;
struct
pending_list
pending
;
struct
pending_list
pending_block
;
struct
pending_list
pending_func
;
BOOL
ret
=
TRUE
;
struct
location
loc
;
unsigned
char
type
;
...
...
@@ -1275,7 +1276,8 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
memset
(
srcpath
,
0
,
sizeof
(
srcpath
));
memset
(
stabs_basic
,
0
,
sizeof
(
stabs_basic
));
memset
(
&
pending
,
0
,
sizeof
(
pending
));
memset
(
&
pending_block
,
0
,
sizeof
(
pending_block
));
memset
(
&
pending_func
,
0
,
sizeof
(
pending_func
));
/*
* Allocate a buffer into which we can build stab strings for cases
...
...
@@ -1381,7 +1383,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
{
block
=
symt_open_func_block
(
module
,
curr_func
,
block
,
stab_ptr
->
n_value
,
0
);
pending_flush
(
&
pending
,
module
,
curr_func
,
block
);
pending_flush
(
&
pending
_block
,
module
,
curr_func
,
block
);
}
break
;
case
N_RBRAC
:
...
...
@@ -1465,7 +1467,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
param_type
);
}
else
pending_add_var
(
&
pending
,
ptr
,
DataIsLocal
,
&
loc
);
pending_add_var
(
&
pending
_block
,
ptr
,
DataIsLocal
,
&
loc
);
}
break
;
case
N_LSYM
:
...
...
@@ -1473,19 +1475,21 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
loc
.
kind
=
loc_regrel
;
loc
.
reg
=
0
;
/* FIXME */
loc
.
offset
=
stab_ptr
->
n_value
;
if
(
curr_func
!=
NULL
)
pending_add_var
(
&
pending
,
ptr
,
DataIsLocal
,
&
loc
);
if
(
curr_func
!=
NULL
)
pending_add_var
(
&
pending
_block
,
ptr
,
DataIsLocal
,
&
loc
);
break
;
case
N_SLINE
:
/*
* This is a line number. These are always relative to the start
* of the function (N_FUN), and this makes the lookup easier.
*/
assert
(
source_idx
>=
0
);
if
(
curr_func
!=
NULL
)
{
assert
(
source_idx
>=
0
);
symt_add_func_line
(
module
,
curr_func
,
source_idx
,
stab_ptr
->
n_desc
,
stab_ptr
->
n_value
);
}
else
pending_add_line
(
&
pending_func
,
source_idx
,
stab_ptr
->
n_desc
,
stab_ptr
->
n_value
);
break
;
case
N_FUN
:
/*
...
...
@@ -1520,6 +1524,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
curr_func
=
symt_new_function
(
module
,
compiland
,
symname
,
load_offset
+
stab_ptr
->
n_value
,
0
,
&
func_type
->
symt
);
pending_flush
(
&
pending_func
,
module
,
curr_func
,
NULL
);
}
else
{
...
...
@@ -1649,7 +1654,8 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
done:
HeapFree
(
GetProcessHeap
(),
0
,
stabbuff
);
stabs_free_includes
();
HeapFree
(
GetProcessHeap
(),
0
,
pending
.
objs
);
HeapFree
(
GetProcessHeap
(),
0
,
pending_block
.
objs
);
HeapFree
(
GetProcessHeap
(),
0
,
pending_func
.
objs
);
return
ret
;
}
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