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
05368de6
Commit
05368de6
authored
Nov 06, 2006
by
Peter Oberndorfer
Committed by
Alexandre Julliard
Nov 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Make dwarf2 parser only report file numbers when at least one…
dbghelp: Make dwarf2 parser only report file numbers when at least one compilation unit really has numbers.
parent
6d0948f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dwarf.c
dlls/dbghelp/dwarf.c
+5
-4
No files found.
dlls/dbghelp/dwarf.c
View file @
05368de6
...
...
@@ -1581,7 +1581,7 @@ static void dwarf2_set_line_number(struct module* module, unsigned long address,
symt_add_func_line
(
module
,
func
,
*
psrc
,
line
,
address
-
func
->
address
);
}
static
void
dwarf2_parse_line_numbers
(
const
dwarf2_section_t
*
sections
,
static
BOOL
dwarf2_parse_line_numbers
(
const
dwarf2_section_t
*
sections
,
dwarf2_parse_context_t
*
ctx
,
const
char
*
compile_dir
,
unsigned
long
offset
)
...
...
@@ -1598,7 +1598,7 @@ static void dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
/* section with line numbers stripped */
if
(
sections
[
section_line
].
address
==
NO_MAP
)
return
;
return
FALSE
;
traverse
.
data
=
sections
[
section_line
].
address
+
offset
;
traverse
.
start_data
=
traverse
.
data
;
...
...
@@ -1754,6 +1754,7 @@ static void dwarf2_parse_line_numbers(const dwarf2_section_t* sections,
}
}
}
return
TRUE
;
}
static
BOOL
dwarf2_parse_compilation_unit
(
const
dwarf2_section_t
*
sections
,
...
...
@@ -1828,7 +1829,8 @@ static BOOL dwarf2_parse_compilation_unit(const dwarf2_section_t* sections,
}
if
(
dwarf2_find_attribute
(
&
ctx
,
di
,
DW_AT_stmt_list
,
&
stmt_list
))
{
dwarf2_parse_line_numbers
(
sections
,
&
ctx
,
comp_dir
.
u
.
string
,
stmt_list
.
u
.
uvalue
);
if
(
dwarf2_parse_line_numbers
(
sections
,
&
ctx
,
comp_dir
.
u
.
string
,
stmt_list
.
u
.
uvalue
))
module
->
module
.
LineNumbers
=
TRUE
;
}
ret
=
TRUE
;
}
...
...
@@ -1875,7 +1877,6 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
module
->
module
.
SymType
=
SymDia
;
module
->
module
.
CVSig
=
'D'
|
(
'W'
<<
8
)
|
(
'A'
<<
16
)
|
(
'R'
<<
24
);
/* FIXME: we could have a finer grain here */
module
->
module
.
LineNumbers
=
TRUE
;
module
->
module
.
GlobalSymbols
=
TRUE
;
module
->
module
.
TypeInfo
=
TRUE
;
module
->
module
.
SourceIndexed
=
TRUE
;
...
...
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