Commit graph

166 commits

Author SHA1 Message Date
Alexandre Julliard 3f296440f5 winedump: Fix dumping of catchblocks for 32-bit modules.
The frame member isn't present on 32-bit.
2024-06-05 10:31:24 +02:00
Alexandre Julliard 02a6ad92ab winedump: Dump exception data for known exception handlers. 2024-05-30 19:47:37 +02:00
Alexandre Julliard bb8ef91f46 winedump: Print the export or import name of exception handlers. 2024-05-30 14:38:01 +02:00
Alexandre Julliard 855017063a winedump: Print exported function names in the exception data. 2024-05-30 13:32:28 +02:00
Alexandre Julliard e86e6a6f48 winedump: Dump typelib resources in structured format. 2024-05-06 22:20:24 +02:00
Alexandre Julliard 3c2d6128fe winedump: Dump registry scripts resources as text. 2024-05-05 12:19:16 +02:00
Alexandre Julliard 5c26513278 winedump: Dump the __os_arm64x_helper functions. 2024-03-08 17:37:08 +01:00
Alexandre Julliard ebaa47dcee winedump: Print the correct register names for exception info on ARM64. 2024-02-28 19:51:20 +01:00
Eric Pouech 9119e3102b winedump: Don't crash on non-effective runtime function entries.
MSVC generates zeroed out entries when EditAndContinue (aka HotPatch)
is enabled.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-02-15 20:41:49 +01:00
Alexandre Julliard 7c4ca6ff74 winedump: Add dumping of the save_any_reg ARM64 unwind code. 2024-02-15 15:08:55 +01:00
Alexandre Julliard a97b3f640c winedump: Handle ARM64 exception unwind info with flag==3. 2024-02-01 21:47:17 +01:00
Alexandre Julliard 3825af6041 winedump: Make the ARM exception information more compact. 2024-02-01 21:47:17 +01:00
Eric Pouech a2f98478c3 winedump: Better align fields in EXPORT table.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2024-01-02 22:17:54 +01:00
Alexandre Julliard ef07f6bb72 winedump: Also dump ARM64 exception information for ARM64EC binaries. 2023-12-05 21:24:36 +01:00
Alexandre Julliard c0f500ba00 winedump: Add a couple of ARM unwind codes. 2023-12-04 22:10:20 +01:00
Alexandre Julliard 17de5daa77 winedump: Add dumping of UWOP_EPILOG entries. 2023-12-04 22:10:20 +01:00
Alexandre Julliard 2d338e22f2 winedump: Display PE section offsets using their virtual address. 2023-11-24 14:06:02 +01:00
Eric Pouech 81c8c73de2 winedump: Improve dumping DEBUG directory entries in PE images.
- always add a data dump for unknown structures
- add some bits about POGO and REPRO entries
- protect against too small structures

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
2023-09-25 21:53:47 +02:00
Alexandre Julliard af25f29cd2 winedump: Don't zero out the PE optional header regardless of specified size. 2023-09-25 11:37:42 +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
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
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 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
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 944edd5068 winedump: Don't crash when dumping .dbg files.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-28 21:01:55 +01:00
Alexandre Julliard 4b865129a5 winedump: Build with nameless unions/structs.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 21:42:20 +02:00
Alexandre Julliard fdd0ad5939 winedump: Enable compilation with long types.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 21:42:20 +02:00
Alexandre Julliard af54377eb6 winedump: Avoid using DWORD in private definitions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-04-22 21:42:20 +02:00
Alexandre Julliard 6f1fd16f92 winedump: Add dumping of the .apiset PE section.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-18 11:03:22 +01:00
Martin Storsjö aa256deedd winedump: Rewrite dumping of packed ARM unwind info.
This differs slightly from the official docs (which is clear in some
places, vague in others, and contradictory in some places), based
on actual observed behaviour.

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 22:02:56 +01:00
Martin Storsjö ae7979a42d winedump: Fix printing of the prologue version of the "ldr lr, [sp], #offset" opcode.
This isn't mentioned in the documentation (which only writes out the
instruction that is executed while unwinding, i.e. the mirror form of
it), but a prologue version of this instruction would look like this.

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 22:02:55 +01:00
Martin Storsjö 22d2b61a64 winedump: Distinguish between 16 and 32 bit nop opcodes in ARM unwind data.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 22:02:55 +01:00
Martin Storsjö 825e8d8105 winedump: Print the whole multibyte unwind opcode for arm.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-09 22:02:55 +01:00
Alexandre Julliard f9ee0d2f05 tools: Avoid using wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Alexandre Julliard 207068c48c tools: Move some portability defines out of port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-06 20:29:34 +02:00
Alexandre Julliard 3cdc6d682c winedump: Use the shared tools functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-29 21:38:11 +02:00
Henri Verbeet 4ae9f39911 winedump: Make print_longlong() work on 64-bit.
In particular, when long is a 64-bit type, the upper 32 bits would previously
be printed twice.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-20 21:48:57 +02:00
Alexandre Julliard e27c7e0648 winedump: Print the "prefer native" Wine flag.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-18 11:11:33 +01:00
Alexandre Julliard e137063394 include: Add a couple of dll characteristics.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-21 20:46:13 +01:00
Martin Storsjo 7ca68a8631 winedump: Fix the dumping of arm64 packed float restoration.
This previously dumped one register pair too few.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-28 19:28:24 +02:00
Martin Storsjo af6853278f winedump: Fix dumping of rare arm64 unwind opcodes.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-21 15:00:29 +02:00