Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
a655b143
Commit
a655b143
authored
Jun 18, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Pass .debug_loc section information to dwarf.
parent
d6bd8661
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+2
-1
dwarf.c
dlls/dbghelp/dwarf.c
+5
-2
elf_module.c
dlls/dbghelp/elf_module.c
+5
-1
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
a655b143
...
...
@@ -434,7 +434,8 @@ extern BOOL stabs_parse(struct module* module, unsigned long load_offset
extern
BOOL
dwarf2_parse
(
struct
module
*
module
,
unsigned
long
load_offset
,
const
unsigned
char
*
debug
,
unsigned
int
debug_size
,
const
unsigned
char
*
abbrev
,
unsigned
int
abbrev_size
,
const
unsigned
char
*
str
,
unsigned
int
str_sz
);
const
unsigned
char
*
str
,
unsigned
int
str_size
,
const
unsigned
char
*
line
,
unsigned
int
line_size
);
/* symbol.c */
extern
const
char
*
symt_get_name
(
const
struct
symt
*
sym
);
...
...
dlls/dbghelp/dwarf.c
View file @
a655b143
...
...
@@ -154,7 +154,7 @@ typedef struct dwarf2_section_s
unsigned
size
;
}
dwarf2_section_t
;
enum
dwarf2_sections
{
section_debug
,
section_string
,
section_abbrev
,
section_max
};
enum
dwarf2_sections
{
section_debug
,
section_string
,
section_abbrev
,
section_
line
,
section_
max
};
typedef
struct
dwarf2_traverse_context_s
{
...
...
@@ -1456,7 +1456,8 @@ static BOOL dwarf2_parse_compilation_unit(const dwarf2_section_t* sections,
BOOL
dwarf2_parse
(
struct
module
*
module
,
unsigned
long
load_offset
,
const
unsigned
char
*
debug
,
unsigned
int
debug_size
,
const
unsigned
char
*
abbrev
,
unsigned
int
abbrev_size
,
const
unsigned
char
*
str
,
unsigned
int
str_size
)
const
unsigned
char
*
str
,
unsigned
int
str_size
,
const
unsigned
char
*
line
,
unsigned
int
line_size
)
{
dwarf2_section_t
section
[
section_max
];
const
unsigned
char
*
comp_unit_cursor
=
debug
;
...
...
@@ -1468,6 +1469,8 @@ BOOL dwarf2_parse(struct module* module, unsigned long load_offset,
section
[
section_abbrev
].
size
=
abbrev_size
;
section
[
section_string
].
address
=
str
;
section
[
section_string
].
size
=
str_size
;
section
[
section_line
].
address
=
line
;
section
[
section_line
].
size
=
line_size
;
while
(
comp_unit_cursor
<
end_debug
)
{
...
...
dlls/dbghelp/elf_module.c
View file @
a655b143
...
...
@@ -867,23 +867,27 @@ static BOOL elf_load_debug_info_from_map(struct module* module,
const
BYTE
*
dw2_debug
;
const
BYTE
*
dw2_debug_abbrev
;
const
BYTE
*
dw2_debug_str
;
const
BYTE
*
dw2_debug_line
;
FIXME
(
"Alpha-support for Dwarf2 information for %s
\n
"
,
module
->
module
.
ModuleName
);
dw2_debug
=
(
const
BYTE
*
)
elf_map_section
(
fmap
,
debug_sect
);
dw2_debug_abbrev
=
(
const
BYTE
*
)
elf_map_section
(
fmap
,
debug_abbrev_sect
);
dw2_debug_str
=
(
const
BYTE
*
)
elf_map_section
(
fmap
,
debug_str_sect
);
dw2_debug_line
=
(
const
BYTE
*
)
elf_map_section
(
fmap
,
debug_line_sect
);
if
(
dw2_debug
!=
NO_MAP
&&
NO_MAP
!=
dw2_debug_abbrev
&&
dw2_debug_str
!=
NO_MAP
)
{
/* OK, now just parse dwarf2 debug infos. */
ret
=
dwarf2_parse
(
module
,
module
->
elf_info
->
elf_addr
,
dw2_debug
,
fmap
->
sect
[
debug_sect
].
shdr
.
sh_size
,
dw2_debug_abbrev
,
fmap
->
sect
[
debug_abbrev_sect
].
shdr
.
sh_size
,
dw2_debug_str
,
fmap
->
sect
[
debug_str_sect
].
shdr
.
sh_size
);
dw2_debug_str
,
fmap
->
sect
[
debug_str_sect
].
shdr
.
sh_size
,
dw2_debug_line
,
fmap
->
sect
[
debug_line_sect
].
shdr
.
sh_size
);
}
elf_unmap_section
(
fmap
,
debug_sect
);
elf_unmap_section
(
fmap
,
debug_abbrev_sect
);
elf_unmap_section
(
fmap
,
debug_str_sect
);
elf_unmap_section
(
fmap
,
debug_line_sect
);
if
(
!
ret
)
{
WARN
(
"Couldn't correctly read stabs
\n
"
);
...
...
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