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
7bde153a
Commit
7bde153a
authored
Oct 29, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/dwarf: Store line numbers and file info for inlined functions.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27f13373
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dwarf.c
dlls/dbghelp/dwarf.c
+14
-0
No files found.
dlls/dbghelp/dwarf.c
View file @
7bde153a
...
...
@@ -2515,6 +2515,7 @@ static void dwarf2_set_line_number(struct module* module, ULONG_PTR address,
const
struct
vector
*
v
,
unsigned
file
,
unsigned
line
)
{
struct
symt_function
*
func
;
struct
symt_inlinesite
*
inlined
;
struct
symt_ht
*
symt
;
unsigned
*
psrc
;
...
...
@@ -2526,6 +2527,19 @@ static void dwarf2_set_line_number(struct module* module, ULONG_PTR address,
if
(
symt_check_tag
(
&
symt
->
symt
,
SymTagFunction
))
{
func
=
(
struct
symt_function
*
)
symt
;
for
(
inlined
=
func
->
next_inlinesite
;
inlined
;
inlined
=
inlined
->
func
.
next_inlinesite
)
{
int
i
;
for
(
i
=
0
;
i
<
inlined
->
vranges
.
num_elts
;
++
i
)
{
struct
addr_range
*
ar
=
(
struct
addr_range
*
)
vector_at
(
&
inlined
->
vranges
,
i
);
if
(
ar
->
low
<=
address
&&
address
<
ar
->
high
)
{
symt_add_func_line
(
module
,
&
inlined
->
func
,
*
psrc
,
line
,
address
);
return
;
/* only add to lowest matching inline site */
}
}
}
symt_add_func_line
(
module
,
func
,
*
psrc
,
line
,
address
);
}
}
...
...
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