Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c77db006
Commit
c77db006
authored
Nov 10, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Pass start offset when dumping symbols.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f1e0753c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
debug.c
tools/winedump/debug.c
+2
-2
lib.c
tools/winedump/lib.c
+1
-1
msc.c
tools/winedump/msc.c
+3
-3
pdb.c
tools/winedump/pdb.c
+2
-2
winedump.h
tools/winedump/winedump.h
+1
-1
No files found.
tools/winedump/debug.c
View file @
c77db006
...
...
@@ -135,7 +135,7 @@ static BOOL dump_cv_sst_global_pub(const OMFDirEntry* omfde)
symbols
=
PRD
(
fileoffset
+
sizeof
(
OMFSymHash
),
header
->
cbSymbol
);
if
(
!
symbols
)
{
printf
(
"Can't OMF-SymHash details, aborting
\n
"
);
return
FALSE
;}
codeview_dump_symbols
(
symbols
,
header
->
cbSymbol
);
codeview_dump_symbols
(
symbols
,
0
,
header
->
cbSymbol
);
return
TRUE
;
}
...
...
@@ -320,7 +320,7 @@ static BOOL dump_cv_sst_align_sym(const OMFDirEntry* omfde)
if
(
!
rawdata
)
{
printf
(
"Can't get srcAlignSym subsection details, aborting
\n
"
);
return
FALSE
;}
if
(
omfde
->
cb
<
sizeof
(
DWORD
))
return
TRUE
;
codeview_dump_symbols
(
rawdata
+
sizeof
(
DWORD
),
omfde
->
cb
-
sizeof
(
DWORD
)
);
codeview_dump_symbols
(
rawdata
,
sizeof
(
DWORD
),
omfde
->
cb
);
return
TRUE
;
}
...
...
tools/winedump/lib.c
View file @
c77db006
...
...
@@ -97,7 +97,7 @@ static void dump_long_import(const void *base, const IMAGE_SECTION_HEADER *ish,
{
const
char
*
imp_debugS
=
(
const
char
*
)
base
+
ish
[
i
].
PointerToRawData
;
codeview_dump_symbols
(
imp_debugS
,
ish
[
i
].
SizeOfRawData
);
codeview_dump_symbols
(
imp_debugS
,
0
,
ish
[
i
].
SizeOfRawData
);
printf
(
"
\n
"
);
}
}
...
...
tools/winedump/msc.c
View file @
c77db006
...
...
@@ -1303,7 +1303,7 @@ static void dump_binannot(const unsigned char* ba, const char* last, const char*
}
}
BOOL
codeview_dump_symbols
(
const
void
*
root
,
unsigned
long
size
)
BOOL
codeview_dump_symbols
(
const
void
*
root
,
unsigned
long
s
tart
,
unsigned
long
s
ize
)
{
unsigned
int
i
;
int
length
;
...
...
@@ -1313,12 +1313,12 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
* Loop over the different types of records and whenever we
* find something we are interested in, record it and move on.
*/
for
(
i
=
0
;
i
<
size
;
i
+=
length
)
for
(
i
=
start
;
i
<
size
;
i
+=
length
)
{
const
union
codeview_symbol
*
sym
=
(
const
union
codeview_symbol
*
)((
const
char
*
)
root
+
i
);
length
=
sym
->
generic
.
len
+
2
;
if
(
!
sym
->
generic
.
id
||
length
<
4
)
break
;
printf
(
"
\t
%04x => "
,
i
+
4
);
/* ref is made after id and len */
printf
(
"
\t
%04x => "
,
i
);
switch
(
sym
->
generic
.
id
)
{
...
...
tools/winedump/pdb.c
View file @
c77db006
...
...
@@ -473,7 +473,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
if
(
modimage
)
{
printf
(
"
\t
------------globals-------------
\n
"
);
codeview_dump_symbols
(
modimage
,
pdb_get_file_size
(
reader
,
symbols
->
gsym_file
));
codeview_dump_symbols
(
modimage
,
0
,
pdb_get_file_size
(
reader
,
symbols
->
gsym_file
));
free
(
modimage
);
}
...
...
@@ -588,7 +588,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
int
total_size
=
pdb_get_file_size
(
reader
,
file_nr
);
if
(
symbol_size
)
codeview_dump_symbols
((
const
char
*
)
modimage
+
sizeof
(
DWORD
),
symbol_size
);
codeview_dump_symbols
((
const
char
*
)
modimage
,
sizeof
(
DWORD
),
symbol_size
);
/* line number info */
if
(
lineno_size
)
...
...
tools/winedump/winedump.h
View file @
c77db006
...
...
@@ -259,7 +259,7 @@ void tlb_dump(void);
enum
FileSig
get_kind_nls
(
void
);
void
nls_dump
(
void
);
BOOL
codeview_dump_symbols
(
const
void
*
root
,
unsigned
long
size
);
BOOL
codeview_dump_symbols
(
const
void
*
root
,
unsigned
long
s
tart
,
unsigned
long
s
ize
);
BOOL
codeview_dump_types_from_offsets
(
const
void
*
table
,
const
DWORD
*
offsets
,
unsigned
num_types
);
BOOL
codeview_dump_types_from_block
(
const
void
*
table
,
unsigned
long
len
);
void
codeview_dump_linetab
(
const
char
*
linetab
,
BOOL
pascal_str
,
const
char
*
pfx
);
...
...
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