Jacek Caban
9896f1ce33
dbghelp: Fix GCC warnings in macho_module.c.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:42 +02:00
Jacek Caban
64341284c5
dbghelp: Use local macho section declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-01 21:17:24 +02:00
Jacek Caban
c695e7e99e
dbghelp: Use local macho load command declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-01 21:17:24 +02:00
Jacek Caban
7254579417
dbghelp: Don't store entire mach header in image_file_map.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-01 21:17:24 +02:00
Jacek Caban
b664ae8e60
dbghelp: Don't use system headers for ELF declarations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 22:16:00 +02:00
Jacek Caban
a6f0fe8d1c
dbghelp: Use local elf_section_header declaration.
...
Based on glibc.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 22:14:34 +02:00
Jacek Caban
78845911da
dbghelp: Use local elf_header declaration.
...
Based on glibc.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 22:14:25 +02:00
Jacek Caban
ee34cf365d
dbghelp: Don't use *_NULL constants.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 22:13:56 +02:00
Jacek Caban
2534c2a2d2
dbghelp: Use local NOTE_GNU_BUILD_ID declaration.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 22:13:49 +02:00
Jacek Caban
f48f8cc399
dbghelp: Use local declaration for 64-bit macho nlist.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 12:09:10 +02:00
Jacek Caban
061146c2ab
dbghelp: Use local stab_nlist declaration in macho_module.c.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 12:09:09 +02:00
Gerald Pfeifer
f7a091af48
dbghelp: Define NT_GNU_BUILD_ID regardless of whether __ELF__ is defined.
...
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 12:09:09 +02:00
Jacek Caban
f803da493a
dbghelp: Use LONG_PTR instead of long type.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-26 18:34:50 +01:00
Jacek Caban
ebf57f01f4
dbghelp: Use Windows API to map macho files.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-19 20:32:38 +01:00
Jacek Caban
2642f43eab
dbghelp: Support PE debug link files.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 20:27:08 +01:00
Jacek Caban
4694801e4f
dbghelp: Move elf_check_alternate implementation to module.c.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 20:27:02 +01:00
Jacek Caban
1d96af3627
dbghelp: Introduce generic image_unmap_file.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-16 21:38:52 +01:00
Jacek Caban
95a5f82961
dbghelp: Use vtbl to handle different image_file_map types.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-16 21:38:47 +01:00
Jacek Caban
02dfd959ca
dbghelp: Move alternate file map pointer to generic image_file_map.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-16 21:38:41 +01:00
Jacek Caban
a60b3985bf
dbghelp: Use Windows API to map ELF files.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:19 +01:00
Jacek Caban
e21b61392c
dbghelp: Try loading builtin modules from unix installation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-10 20:13:08 +01:00
Ken Thomases
3ff8fa7ed1
dbghelp: Fix loading of Mach-O load commands for 64-bit binaries.
...
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-17 08:41:22 +02:00
Zebediah Figura
1dc9bb70cd
dbghelp: Translate the 32-bit Mach-O section header to the 64-bit one.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-15 12:56:48 +02:00
Zebediah Figura
f2e38e1795
dbghelp: Read the 32-bit Mach-O header.
...
It is identical to the 64-bit header, except for the "reserved" field.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-15 12:56:48 +02:00
Zebediah Figura
7e4fd17d5b
dbghelp: Translate the 32-bit ELF symbol struct to the 64-bit one.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:21:49 +02:00
Zebediah Figura
51ada19ac2
dbghelp: Read the Elf_auxv_t struct corresponding to the target's architecture.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:21:38 +02:00
Zebediah Figura
bb53152faa
dbghelp: Read the Elf_Dyn struct corresponding to the target's architecture.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:21:34 +02:00
Zebediah Figura
bd620ffb44
dbghelp: Read the ELF program header corresponding to the target's architecture.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 09:21:28 +02:00
Zebediah Figura
4005901773
dbghelp: Translate the 32-bit ELF section header to the 64-bit one.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-01 19:42:12 +02:00
Zebediah Figura
799e0bfa57
dbghelp: Translate the 32-bit ELF header to the 64-bit one.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-01 19:42:03 +02:00
Ken Thomases
49f0bf6f0b
dbghelp: Ignore Mach-O segments other than __TEXT for images in dyld's shared cache.
...
Images in the shared cache have their segments mapped non-contiguously. We
don't know how to find where the non-__TEXT segments actually are. Also, the
code assumes that the image is mapped contiguously in various places. So, we
just ignore those segments.
Treating the non-contiguous segments as though they were contiguous caused
their apparent memory ranges to overlap, leading to addresses being attributed
to the wrong module, let alone symbol.
2015-08-04 12:21:58 +02:00
Ken Thomases
5c39776327
dbghelp: Add support for loading an external DWARF debug info file associated with a Mach-O module.
...
Such external debug info files are created by the dsymutil command. Usually, it
creates a <name>.dSYM bundle directory but it can also produce a <name>.dwarf
flat file. The code will find and use either. It first checks if such a bundle
or file is adjacent to the module binary. If it's not, it uses Spotlight to
search for a .dSYM bundle based on the binary's UUID, which is what gdb and lldb
do, too. That way, it can find it anywhere on the system.
2015-06-29 19:07:52 +09:00
Ken Thomases
0bfa11455c
dbghelp: Implement the image_private.h functions for Mach-O modules.
2015-06-25 14:29:38 +09:00
Ken Thomases
e15e9331cb
dbghelp: Move the macho_file_map structure into image_file_map.
2015-06-25 14:02:12 +09:00
Eric Pouech
8328606141
dbghelp: Store the 32/64 bitness in the image structure.
2012-02-14 12:31:48 +01:00
Marcus Meissner
b858b53991
dbghelp: Mark internal symbols as hidden.
2011-04-28 18:13:56 +02:00
Eric Pouech
1966ba8b7f
dbghelp: For targets on Linux, report the VDSO system page as a known ELF module.
2010-12-28 11:18:33 +01:00
Eric Pouech
749dafd987
dbghelp: Extend elf_map_file so that it can also handle ELF maps directly from debuggee address space.
2010-12-28 11:16:07 +01:00
Andrew Talbot
4e4948cfbf
dbghelp: Constify some variables.
2010-08-30 15:38:56 +02:00
Eric Pouech
c9bac2efd2
dbghelp: Extend the image (ELF/PE) scheme to get the RVA out of a section.
2010-03-19 12:07:45 +01:00
Eric Pouech
cbff4f063f
dbghelp: Create the notion of image (PE, ELF modules) to uniformize some handlings.
2010-03-19 12:05:59 +01:00
Eric Pouech
fb169502a5
dbghelp: Extend the ELF image management to PE modules so we get a rather uniform interface to image manipulation.
2010-03-19 12:04:19 +01:00
Eric Pouech
770f0d834f
dbghelp: Make the ELF mapping code easier to use.
2010-03-19 12:03:57 +01:00