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
b8f6a68d
Commit
b8f6a68d
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: Rename some things to be less ELF-centric.
parent
985f0ea1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+4
-3
elf_module.c
dlls/dbghelp/elf_module.c
+3
-3
module.c
dlls/dbghelp/module.c
+5
-5
symbol.c
dlls/dbghelp/symbol.c
+2
-2
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
b8f6a68d
...
...
@@ -111,7 +111,7 @@ void* hash_table_iter_up(struct hash_table_iter* hti);
extern
unsigned
dbghelp_options
;
/* some more Wine extensions */
#define SYMOPT_WINE_WITH_
ELF
_MODULES 0x40000000
#define SYMOPT_WINE_WITH_
NATIVE
_MODULES 0x40000000
enum
location_kind
{
loc_error
,
/* reg is the error code */
loc_absolute
,
/* offset is the location */
...
...
@@ -413,10 +413,11 @@ extern BOOL validate_addr64(DWORD64 addr);
extern
BOOL
pcs_callback
(
const
struct
process
*
pcs
,
ULONG
action
,
void
*
data
);
extern
void
*
fetch_buffer
(
struct
process
*
pcs
,
unsigned
size
);
typedef
BOOL
(
*
enum_modules_cb
)(
const
WCHAR
*
,
unsigned
long
addr
,
void
*
user
);
/* elf_module.c */
#define ELF_NO_MAP ((const void*)0xffffffff)
typedef
BOOL
(
*
elf_enum_modules_cb
)(
const
WCHAR
*
,
unsigned
long
addr
,
void
*
user
);
extern
BOOL
elf_enum_modules
(
HANDLE
hProc
,
elf_enum_modules_cb
,
void
*
);
extern
BOOL
elf_enum_modules
(
HANDLE
hProc
,
enum_modules_cb
,
void
*
);
extern
BOOL
elf_fetch_file_info
(
const
WCHAR
*
name
,
DWORD
*
base
,
DWORD
*
size
,
DWORD
*
checksum
);
struct
elf_file_map
;
extern
BOOL
elf_load_debug_info
(
struct
module
*
module
,
struct
elf_file_map
*
fmap
);
...
...
dlls/dbghelp/elf_module.c
View file @
b8f6a68d
...
...
@@ -1390,7 +1390,7 @@ static BOOL elf_search_and_load_file(struct process* pcs, const WCHAR* filename,
*/
static
BOOL
elf_enum_modules_internal
(
const
struct
process
*
pcs
,
const
WCHAR
*
main_name
,
e
lf_e
num_modules_cb
cb
,
void
*
user
)
enum_modules_cb
cb
,
void
*
user
)
{
struct
r_debug
dbg_hdr
;
void
*
lm_addr
;
...
...
@@ -1531,7 +1531,7 @@ BOOL elf_read_wine_loader_dbg_info(struct process* pcs)
* This function doesn't require that someone has called SymInitialize
* on this very process.
*/
BOOL
elf_enum_modules
(
HANDLE
hProc
,
e
lf_e
num_modules_cb
cb
,
void
*
user
)
BOOL
elf_enum_modules
(
HANDLE
hProc
,
enum_modules_cb
cb
,
void
*
user
)
{
struct
process
pcs
;
struct
elf_info
elf_info
;
...
...
@@ -1636,7 +1636,7 @@ BOOL elf_read_wine_loader_dbg_info(struct process* pcs)
return
FALSE
;
}
BOOL
elf_enum_modules
(
HANDLE
hProc
,
e
lf_e
num_modules_cb
cb
,
void
*
user
)
BOOL
elf_enum_modules
(
HANDLE
hProc
,
enum_modules_cb
cb
,
void
*
user
)
{
return
FALSE
;
}
...
...
dlls/dbghelp/module.c
View file @
b8f6a68d
...
...
@@ -358,12 +358,12 @@ struct module* module_find_by_addr(const struct process* pcs, unsigned long addr
}
/******************************************************************
* module_is_
elf_
container_loaded
* module_is_container_loaded
*
* checks whether the
ELF
container, for a (supposed) PE builtin is
* checks whether the
native
container, for a (supposed) PE builtin is
* already loaded
*/
static
BOOL
module_is_
elf_
container_loaded
(
const
struct
process
*
pcs
,
static
BOOL
module_is_container_loaded
(
const
struct
process
*
pcs
,
const
WCHAR
*
ImageName
,
DWORD
base
)
{
size_t
len
;
...
...
@@ -525,7 +525,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if
(
wImageName
)
{
module
=
module_is_already_loaded
(
pcs
,
wImageName
);
if
(
!
module
&&
module_is_
elf_
container_loaded
(
pcs
,
wImageName
,
BaseOfDll
))
if
(
!
module
&&
module_is_container_loaded
(
pcs
,
wImageName
,
BaseOfDll
))
{
/* force the loading of DLL as builtin */
module
=
pe_load_builtin_module
(
pcs
,
wImageName
,
BaseOfDll
,
SizeOfDll
);
...
...
@@ -709,7 +709,7 @@ BOOL WINAPI SymEnumerateModulesW64(HANDLE hProcess,
for
(
module
=
pcs
->
lmodules
;
module
;
module
=
module
->
next
)
{
if
(
!
(
dbghelp_options
&
SYMOPT_WINE_WITH_
ELF
_MODULES
)
&&
module
->
type
==
DMT_ELF
)
if
(
!
(
dbghelp_options
&
SYMOPT_WINE_WITH_
NATIVE
_MODULES
)
&&
module
->
type
==
DMT_ELF
)
continue
;
if
(
!
EnumModulesCallback
(
module
->
module
.
ModuleName
,
module
->
module
.
BaseOfImage
,
UserContext
))
...
...
dlls/dbghelp/symbol.c
View file @
b8f6a68d
...
...
@@ -1009,7 +1009,7 @@ static BOOL sym_enum(HANDLE hProcess, ULONG64 BaseOfDll, PCSTR Mask,
}
/* not found in PE modules, retry on the ELF ones
*/
if
(
!
pair
.
requested
&&
(
dbghelp_options
&
SYMOPT_WINE_WITH_
ELF
_MODULES
))
if
(
!
pair
.
requested
&&
(
dbghelp_options
&
SYMOPT_WINE_WITH_
NATIVE
_MODULES
))
{
for
(
pair
.
requested
=
pair
.
pcs
->
lmodules
;
pair
.
requested
;
pair
.
requested
=
pair
.
requested
->
next
)
{
...
...
@@ -1336,7 +1336,7 @@ BOOL WINAPI SymFromName(HANDLE hProcess, PCSTR Name, PSYMBOL_INFO Symbol)
}
/* not found in PE modules, retry on the ELF ones
*/
if
(
dbghelp_options
&
SYMOPT_WINE_WITH_
ELF
_MODULES
)
if
(
dbghelp_options
&
SYMOPT_WINE_WITH_
NATIVE
_MODULES
)
{
for
(
module
=
pcs
->
lmodules
;
module
;
module
=
module
->
next
)
{
...
...
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