Commit graph

558 commits

Author SHA1 Message Date
Piotr Caban
e2414b55b6 winedump: Support REG_QWORD values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
49c40d502c winedump: Support dumping UTF16 value names in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
2908537f3f winedump: Don't dump volatile keys from regf file. 2023-08-04 18:07:42 +09:00
Piotr Caban
1a58a7032a winedump: Enlarge buffer in dump_want_n helper. 2023-08-04 18:07:42 +09:00
Piotr Caban
bed6f9dfb3 winedump: Skip data blocks when dumping regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
b4fb0aef0d winedump: Support REG_MULTI_SZ values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
037677932b winedump: Support REG_BINARY values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
814d8d74f6 winedump: Support REG_NONE values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
c6c844f172 winedump: Support REG_EXPAND_SZ values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
1727302892 winedump: Fix empty string handling in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
654a83a583 winedump: Support dumping default values without VAL_COMP_NAME flag. 2023-08-04 18:07:42 +09:00
Piotr Caban
8242dbe5a0 winedump: Support REG_DWORD values in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
b17fed0255 winedump: Add support for decoding data stored in offset in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
8885aea089 winedump: Fix non null terminated strings printing in regf files. 2023-08-04 18:07:42 +09:00
Piotr Caban
b80ea4153b winedump: Add initial support for dumping Windows NT Registry Files (REGF). 2023-07-31 21:05:07 +09:00
Jacek Caban
6892434b22 winedump: Add support for dumping IMPORT_OBJECT_NAME_EXPORTAS symbols.
This is used by ARM64EC importlibs.
2023-07-03 22:15:43 +02:00
Eric Pouech
16f538a1c9 winedump: Tidy up print out in minidumps.
- adjust hex/decimal print out
- use internal helpers

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-06-23 22:48:18 +02:00
Alexandre Julliard
f76d8ba6c6 winedump: Dump manifest resources in a more structured way. 2023-06-09 23:37:14 +02:00
Alexandre Julliard
79f3fa732a winedump: Dump version resources in a more structured way. 2023-06-09 23:37:14 +02:00
André Zwing
dfe94187c0 winedump: Recognize RISC-V PEs. 2023-05-24 18:39:47 +02:00
Eric Pouech
5900418781 winedump: Fix copy & paste error.
(Thanks to Andrey for point it out).

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-05-09 14:50:52 +02:00
Alexandre Julliard
7bdcfbbf6e winedump: Fix printing of code ranges in hybrid modules. 2023-04-28 18:33:23 +02:00
Alexandre Julliard
90cc094260 winedump: Print entry point names in code range lists. 2023-04-21 16:34:29 +02:00
Alexandre Julliard
fe693a7047 winedump: Dump hybrid metadata also for i386 CHPE modules. 2023-04-18 17:49:51 +02:00
Alexandre Julliard
6e348640c5 include: Add some CHPE definitions. 2023-04-18 17:49:23 +02:00
Alexandre Julliard
c8a79e7bc6 winedump: Apply all dynamic relocations before dumping alternate PE headers. 2023-04-14 18:56:23 +02:00
Eric Pouech
020b6e094f winedump: Fix out of bounds access (spotted by GCC13).
Anyway, it's a pain that we have to maintain two MS symbols
demanglers (this one and the one in dlls/msvcrt).

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-04-05 11:37:19 +02:00
Huw Davies
9b77f86046 winedump: Fix printf format warning. 2023-03-17 14:11:42 +01:00
Jacek Caban
67c6770331 winedump: Print static lib EC symbols. 2023-03-13 22:07:24 +01:00
Alexandre Julliard
7141332431 winedump: Dump the metadata of hybrid PE dlls. 2023-02-16 16:48:31 +01:00
Alexandre Julliard
385ce62761 winedump: Dump the alternate version of some data directories for hybrid PE dlls. 2023-02-16 16:48:25 +01:00
Alexandre Julliard
cd7e86599e winedump: Initial support for dumping PE dynamic relocations. 2023-02-08 12:10:13 +01:00
Eric Pouech
cb3388f76a winedump: Dump some more bits out of public stream.
Especially thunk related information.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:42:01 +01:00
Eric Pouech
e53a49830d winedump: Enhance dumping of string tables.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:58 +01:00
Eric Pouech
888fd830a1 winedump: Load once and store global PDB string table.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:54 +01:00
Eric Pouech
8f8877b2c8 winedump: Dump some more MSF related information.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:53 +01:00
Eric Pouech
94867b1936 winedump: Make use of -j option in PDB dumping.
Allowing section names: DBI, TPI, IPI, hash.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:50 +01:00
Eric Pouech
e2c87ebef4 winedump: Refactor PDB DBI per-module dump in a dedicated function.
Also better taking care of various PDB_SYMBOL_FILE formats.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:37 +01:00
Eric Pouech
7370e15c93 winedump: Introduce ability to pass several section names to -j option.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-07 18:41:36 +01:00
Alexandre Julliard
51adaa33e3 winedump: Print more information from the PE Load Config directory. 2023-02-07 18:37:00 +01:00
Fabian Maurer
fe0bf08ac6 winedump: Prevent "format overflow" warning.
Happens on gcc 12.2.0

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
2023-02-02 18:08:39 +01:00
Eric Pouech
e8777691c8 winedump: Be stricter about sizes while walking module's list.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:28 +01:00
Eric Pouech
cda616d8ca winedump: Properly dump segment map information from PDB/DBI stream.
Changing field names to match better their content.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:21 +01:00
Eric Pouech
cf71edaa4e winedump: Dump correctly ranges part of DBI stream.
The ranges describe for a PE image all the contributions
of each compilation unit towards the various sections.

Renaming offset_size into ranges_size which is closer to its actual content.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:07 +01:00
Eric Pouech
a0d4a58a34 winedump: Explain a bit more errors on hash header.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:58:07 +01:00
Eric Pouech
4fc2c3319e winedump: Correctly dump PDB_STREAM_INDEX.segment.
This stream actually contains PE IMAGE_SECTION_HEADER.  So reflect the
content by renaming segment into section, and use some helpers
from the PE side.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:57:46 +01:00
Eric Pouech
97d2e9d902 winedump: Introduce a helper to print PE section's characteristics.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-02-02 10:57:46 +01:00
Eric Pouech
9a74d2b62f include: Use stream to denote MSF stream/file.
Try to apply consistent naming:
- file refers to (PDB) file
- stream refers to a stream/file inside the PDB stream at MSF level
(we were also using file for the later, which isn't very simple to
follow).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:07 +01:00
Eric Pouech
26f89d84e2 include: Consistenly use _size to name the size of a sub-block.
We were using either _size or _len depending on which one.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:05 +01:00
Eric Pouech
27f3676cfc include: Update some fields in PDB headers.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2023-01-31 22:29:03 +01:00