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
1a723f23
Commit
1a723f23
authored
Nov 24, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Store compiland's address in internal structures.
parent
4bcca691
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
8 deletions
+24
-8
coff.c
dlls/dbghelp/coff.c
+2
-1
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+3
-1
dwarf.c
dlls/dbghelp/dwarf.c
+6
-2
elf_module.c
dlls/dbghelp/elf_module.c
+5
-1
msc.c
dlls/dbghelp/msc.c
+1
-1
stabs.c
dlls/dbghelp/stabs.c
+1
-1
symbol.c
dlls/dbghelp/symbol.c
+3
-1
type.c
dlls/dbghelp/type.c
+3
-0
No files found.
dlls/dbghelp/coff.c
View file @
1a723f23
...
...
@@ -120,7 +120,8 @@ static int coff_add_file(struct CoffFileSet* coff_files, struct module* module,
file
=
coff_files
->
files
+
coff_files
->
nfiles
;
file
->
startaddr
=
0xffffffff
;
file
->
endaddr
=
0
;
file
->
compiland
=
symt_new_compiland
(
module
,
source_new
(
module
,
NULL
,
filename
));
file
->
compiland
=
symt_new_compiland
(
module
,
0
,
source_new
(
module
,
NULL
,
filename
));
file
->
linetab_offset
=
-
1
;
file
->
linecnt
=
0
;
file
->
entries
=
NULL
;
...
...
dlls/dbghelp/dbghelp_private.h
View file @
1a723f23
...
...
@@ -137,6 +137,7 @@ struct symt_block
struct
symt_compiland
{
struct
symt
symt
;
unsigned
long
address
;
unsigned
source
;
struct
vector
vchildren
;
/* global variables & functions */
};
...
...
@@ -447,7 +448,8 @@ extern const char* symt_get_name(const struct symt* sym);
extern
int
symt_cmp_addr
(
const
void
*
p1
,
const
void
*
p2
);
extern
int
symt_find_nearest
(
struct
module
*
module
,
DWORD
addr
);
extern
struct
symt_compiland
*
symt_new_compiland
(
struct
module
*
module
,
unsigned
src_idx
);
symt_new_compiland
(
struct
module
*
module
,
unsigned
long
address
,
unsigned
src_idx
);
extern
struct
symt_public
*
symt_new_public
(
struct
module
*
module
,
struct
symt_compiland
*
parent
,
...
...
dlls/dbghelp/dwarf.c
View file @
1a723f23
...
...
@@ -1807,7 +1807,7 @@ static BOOL dwarf2_parse_compilation_unit(const dwarf2_section_t* sections,
{
struct
attribute
name
;
dwarf2_debug_info_t
**
pdi
=
NULL
;
struct
attribute
stmt_list
;
struct
attribute
stmt_list
,
low_pc
;
struct
attribute
comp_dir
;
dwarf2_find_name
(
&
ctx
,
di
,
&
name
,
"compiland"
);
...
...
@@ -1816,7 +1816,11 @@ static BOOL dwarf2_parse_compilation_unit(const dwarf2_section_t* sections,
if
(
!
dwarf2_find_attribute
(
&
ctx
,
di
,
DW_AT_comp_dir
,
&
comp_dir
))
comp_dir
.
u
.
string
=
NULL
;
di
->
symt
=
&
symt_new_compiland
(
module
,
source_new
(
module
,
comp_dir
.
u
.
string
,
name
.
u
.
string
))
->
symt
;
if
(
!
dwarf2_find_attribute
(
&
ctx
,
di
,
DW_AT_low_pc
,
&
low_pc
))
low_pc
.
u
.
uvalue
=
0
;
di
->
symt
=
&
symt_new_compiland
(
module
,
module
->
module
.
BaseOfImage
+
low_pc
.
u
.
uvalue
,
source_new
(
module
,
comp_dir
.
u
.
string
,
name
.
u
.
string
))
->
symt
;
if
(
di
->
abbrev
->
have_child
)
{
...
...
dlls/dbghelp/elf_module.c
View file @
1a723f23
...
...
@@ -325,7 +325,11 @@ static void elf_hash_symtab(struct module* module, struct pool* pool,
switch
(
ELF32_ST_TYPE
(
symp
->
st_info
))
{
case
STT_FILE
:
compiland
=
symname
?
symt_new_compiland
(
module
,
source_new
(
module
,
NULL
,
symname
))
:
NULL
;
if
(
symname
)
compiland
=
symt_new_compiland
(
module
,
symp
->
st_value
,
source_new
(
module
,
NULL
,
symname
));
else
compiland
=
NULL
;
continue
;
case
STT_NOTYPE
:
/* we are only interested in wine markers inserted by winebuild */
...
...
dlls/dbghelp/msc.c
View file @
1a723f23
...
...
@@ -1465,7 +1465,7 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
case
S_OBJNAME_V1
:
TRACE
(
"S-ObjName %s
\n
"
,
terminate_string
(
&
sym
->
objname_v1
.
p_name
));
compiland
=
symt_new_compiland
(
msc_dbg
->
module
,
compiland
=
symt_new_compiland
(
msc_dbg
->
module
,
0
/* FIXME */
,
source_new
(
msc_dbg
->
module
,
NULL
,
terminate_string
(
&
sym
->
objname_v1
.
p_name
)));
break
;
...
...
dlls/dbghelp/stabs.c
View file @
1a723f23
...
...
@@ -1451,7 +1451,7 @@ BOOL stabs_parse(struct module* module, unsigned long load_offset,
{
stabs_reset_includes
();
source_idx
=
source_new
(
module
,
srcpath
,
ptr
);
compiland
=
symt_new_compiland
(
module
,
source_idx
);
compiland
=
symt_new_compiland
(
module
,
0
/* FIXME */
,
source_idx
);
}
else
strcpy
(
srcpath
,
ptr
);
...
...
dlls/dbghelp/symbol.c
View file @
1a723f23
...
...
@@ -125,7 +125,8 @@ static void compile_regex(const char* str, int numchar, regex_t* re, BOOL _case)
HeapFree
(
GetProcessHeap
(),
0
,
mask
);
}
struct
symt_compiland
*
symt_new_compiland
(
struct
module
*
module
,
unsigned
src_idx
)
struct
symt_compiland
*
symt_new_compiland
(
struct
module
*
module
,
unsigned
long
address
,
unsigned
src_idx
)
{
struct
symt_compiland
*
sym
;
...
...
@@ -134,6 +135,7 @@ struct symt_compiland* symt_new_compiland(struct module* module, unsigned src_id
if
((
sym
=
pool_alloc
(
&
module
->
pool
,
sizeof
(
*
sym
))))
{
sym
->
symt
.
tag
=
SymTagCompiland
;
sym
->
address
=
address
;
sym
->
source
=
src_idx
;
vector_init
(
&
sym
->
vchildren
,
sizeof
(
struct
symt
*
),
32
);
}
...
...
dlls/dbghelp/type.c
View file @
1a723f23
...
...
@@ -490,6 +490,9 @@ BOOL symt_get_info(const struct symt* type, IMAGEHLP_SYMBOL_TYPE_INFO req,
case
SymTagThunk
:
X
(
ULONG64
)
=
((
const
struct
symt_thunk
*
)
type
)
->
address
;
break
;
case
SymTagCompiland
:
X
(
ULONG64
)
=
((
const
struct
symt_compiland
*
)
type
)
->
address
;
break
;
default:
FIXME
(
"Unsupported sym-tag %s for get-address
\n
"
,
symt_get_tag_str
(
type
->
tag
));
...
...
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