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
141db032
Commit
141db032
authored
Feb 24, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed ELF modules' size information
- fixed containers' tests
parent
f31a3204
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
elf.c
programs/winedbg/elf.c
+2
-8
module.c
programs/winedbg/module.c
+2
-2
No files found.
programs/winedbg/elf.c
View file @
141db032
...
@@ -345,18 +345,12 @@ static enum DbgInfoLoad DEBUG_ProcessElfFile(HANDLE hProcess,
...
@@ -345,18 +345,12 @@ static enum DbgInfoLoad DEBUG_ProcessElfFile(HANDLE hProcess,
for
(
i
=
0
;
i
<
ehptr
->
e_phnum
;
i
++
)
for
(
i
=
0
;
i
<
ehptr
->
e_phnum
;
i
++
)
{
{
if
(
ppnt
[
i
].
p_type
!=
PT_LOAD
)
continue
;
if
(
ppnt
[
i
].
p_type
!=
PT_LOAD
)
continue
;
if
(
elf_info
->
size
<
ppnt
[
i
].
p_vaddr
-
delta
+
ppnt
[
i
].
p_memsz
)
elf_info
->
size
+=
(
ppnt
[
i
].
p_align
<=
1
)
?
ppnt
[
i
].
p_memsz
:
elf_info
->
size
=
ppnt
[
i
].
p_vaddr
-
delta
+
ppnt
[
i
].
p_memsz
;
(
ppnt
[
i
].
p_memsz
+
ppnt
[
i
].
p_align
-
1
)
&
~
(
ppnt
[
i
].
p_align
-
1
)
;
}
}
for
(
i
=
0
;
i
<
ehptr
->
e_shnum
;
i
++
)
for
(
i
=
0
;
i
<
ehptr
->
e_shnum
;
i
++
)
{
{
if
(
strcmp
(
shstrtab
+
spnt
[
i
].
sh_name
,
".bss"
)
==
0
&&
spnt
[
i
].
sh_type
==
SHT_NOBITS
)
{
if
(
elf_info
->
size
<
spnt
[
i
].
sh_addr
-
delta
+
spnt
[
i
].
sh_size
)
elf_info
->
size
=
spnt
[
i
].
sh_addr
-
delta
+
spnt
[
i
].
sh_size
;
}
if
(
strcmp
(
shstrtab
+
spnt
[
i
].
sh_name
,
".dynamic"
)
==
0
&&
if
(
strcmp
(
shstrtab
+
spnt
[
i
].
sh_name
,
".dynamic"
)
==
0
&&
spnt
[
i
].
sh_type
==
SHT_DYNAMIC
)
spnt
[
i
].
sh_type
==
SHT_DYNAMIC
)
{
{
...
...
programs/winedbg/module.c
View file @
141db032
...
@@ -361,8 +361,8 @@ static int DEBUG_ModuleCompare(const void* p1, const void* p2)
...
@@ -361,8 +361,8 @@ static int DEBUG_ModuleCompare(const void* p1, const void* p2)
static
inline
BOOL
DEBUG_IsContainer
(
const
DBG_MODULE
*
wmod_cntnr
,
static
inline
BOOL
DEBUG_IsContainer
(
const
DBG_MODULE
*
wmod_cntnr
,
const
DBG_MODULE
*
wmod_child
)
const
DBG_MODULE
*
wmod_child
)
{
{
return
wmod_cntnr
->
load_addr
<
wmod_child
->
load_addr
&&
return
wmod_cntnr
->
load_addr
<
=
wmod_child
->
load_addr
&&
(
DWORD
)
wmod_cntnr
->
load_addr
+
wmod_cntnr
->
size
>
(
DWORD
)
wmod_cntnr
->
load_addr
+
wmod_cntnr
->
size
>
=
(
DWORD
)
wmod_child
->
load_addr
+
wmod_child
->
size
;
(
DWORD
)
wmod_child
->
load_addr
+
wmod_child
->
size
;
}
}
...
...
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