Michael Stefaniuc
e1e761d55f
dbghelp: Remove superfluous casts to self.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-30 22:49:58 +02:00
Jacek Caban
6b1bc0beac
dbghelp: Get rid of no longer needed HAVE_ZLIB checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-07 09:13:51 +02:00
Jacek Caban
cf6bbb96d0
dbghelp: Build with ucrtbase.
...
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
d483eb21cf
dbghelp: Import zlib inflate code.
...
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
94ad6bd2e6
dbghelp: Fix misleading indentation warning.
...
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
5d8067c608
dbghelp: Pass module to map_dwarf_register.
...
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
Chip Davis
8000b5415d
dbghelp: Look for .eh_fram if no .eh_frame is found.
...
lld produces these, because '.eh_frame' misses the eight-character limit
by one character, but '.eh_fram' does not. This allows it to avoid
producing a string table for this common section.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 15:59:55 +01:00
Zebediah Figura
86805c3d4b
dbghelp/dwarf: Use debugstr_a() to trace external strings.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 10:24:18 +02:00
Zebediah Figura
42745c068f
dbghelp/dwarf: Use the word size of the target process.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45490
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 13:55:55 +02:00
Zebediah Figura
3507615f35
dbghelp/dwarf: Allow get_context_reg() to handle different register sizes.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 13:55:55 +02:00
Zebediah Figura
9ae588a96e
dbghelp/dwarf: Use the correct backend CPU in dwarf2_virtual_unwind().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 13:55:55 +02:00
Zebediah Figura
3ce304e601
dbghelp: Use WOW64_CONTEXT instead of CONTEXT for i386 backend.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 13:55:55 +02:00
André Hentschel
3d482d3f9f
dbghelp: Recompute location after fixing it.
...
Fix a assertion raised by every exception with newer clang versions (>3.7) at least on ARM64:
../../../dlls/dbghelp/dwarf.c:1641: void dwarf2_parse_variable(dwarf2_subprogram_t *, struct symt_block *, dwarf2_debug_info_t *): Assertion `subpgm->func' failed.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-03 11:12:43 +02:00
Zebediah Figura
00e27186ed
dbghelp: Silence a noisy FIXME.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-21 19:24:01 +02:00
Michael Stefaniuc
329b1763cb
dbghelp: Use debugstr_a() to trace a string that can be NULL.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-12 19:03:19 +02:00
Nikolay Sivov
ab27cb48fc
dbghelp: Support CIE version 4 in parse_cie_details().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:41:07 +09:00
Nikolay Sivov
99f56bf78d
dbghelp: Recognize DW_FORM_flag_present.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 10:53:11 +09:00
Qian Hong
fd9d4b6232
dbghelp: Parse DW_TAG_const_type inside dwarf2_parse_subprogram.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:57 +09:00
Qian Hong
62d6a09085
dbghelp: Parse DW_TAG_const_type inside dwarf2_parse_subprogram_block.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 23:34:57 +09:00
Ken Thomases
83c1255f66
dbghelp: Fix mapping of DWARF register numbers on x86 OS X.
...
For backward compatibility with old, buggy GCC, Apple uses a different register
numbering scheme for the eh_frame section.
See, for reference, the comments near the top of this file from LLDB's source:
https://github.com/llvm-mirror/lldb/blob/release_36/source/Plugins/Process/Utility/RegisterContext_x86.h
2015-06-29 19:07:51 +09:00
Ken Thomases
500df92108
dbghelp: Add partial support for version 3 of DWARF CIEs which are generated by Clang/LLVM.
2015-06-25 14:29:38 +09:00
Grazvydas Ignotas
2fee06de49
dbghelp: Detect if return address information is missing.
2015-04-07 15:08:44 +09:00
David Heidelberg
e6e50f6c47
dbghelp: Implement DW_TAG_unspecified_type.
2015-02-13 00:45:25 +09:00
David Heidelberger
4f18c053d3
winedbg: List Dwarf2 GNU extensions as TODO to workaround spam in debug.
2014-10-22 21:02:01 +09:00
David Heidelberger
df5ff98b07
dbghelp: Implement DW_TAG_const_type in dwarf2_parse_udt_type.
2014-10-09 17:36:22 +02:00
Alistair Leslie-Hughes
b816a8e629
dbghelp: Improve dwarf support.
2014-03-26 19:20:42 +01:00
Andrey Gusev
e7f0a8a081
Assorted spelling and typos fixes.
2014-01-27 17:00:11 +01:00
Maarten Lankhorst
1dc3ef5188
dbghelp: Add support for zlib compressed debug sections.
...
Patch created with the assistance of Eric Pouech who helped diagnose
the problem, wrote some parts of this patch and reviewed this patch.
2013-01-30 20:10:44 +01:00
André Hentschel
89cb501927
dbghelp: Assorted fixes for shadow variables.
2012-04-23 12:58:36 +02:00
Eric Pouech
43f62c99b9
dbghelp: Fix a couple of traces in dwarf line info parsing.
2012-02-14 17:58:59 +01:00
Eric Pouech
0905afd0bc
dbghelp: In traces for Dwarf/CFA engine, some offset are signed entities.
2012-02-14 17:58:58 +01:00
Eric Pouech
5201415626
dbghelp: In dwarf parser, when looking for FDE/CIE skip first O-length entries.
2012-02-14 17:58:56 +01:00
Eric Pouech
611d5e470d
dbghelp: Correctly initialize module word_size field when only the eh_frame is present (and not compilation unit).
2012-02-14 17:58:54 +01:00
André Hentschel
bfdc93cdc5
dbghelp: Remove superfluous PATH_MAX defines.
2011-10-11 19:44:33 +02:00
Frédéric Delanoy
f932abf326
dlls: Assorted spelling fixes.
2011-08-01 18:26:27 +02:00
Austin English
6abf5fff9d
dbghelp: Get rid of a couple unused variables.
2011-04-19 13:29:23 +02:00
Eric Pouech
44c52c16fd
dbghelp: Silence DW_TAG_GNU_call_site objects.
2011-04-15 10:07:57 +02:00
Eric Pouech
9c09f14270
dbghelp: Extended CPU structure by adding a default register number for frame.
2011-04-12 12:49:53 +02:00
Eric Pouech
8fecef8757
dbghelp: Force void type in const declaration, when subtype cannot be found.
2011-04-12 12:49:40 +02:00
Eric Pouech
6a60266575
dbghelp: In const types, force 'void' type when none is found.
2011-03-28 17:24:50 +02:00
Eric Pouech
96a38c93d5
dbghelp: Return proper null value when lookup_type fails.
2011-03-28 17:24:48 +02:00
Eric Pouech
4220cd6608
dbghelp: When parsing .debug_line section in dwarf debug info, protect against out of bounds indexes.
2011-03-28 17:08:52 +02:00
Eric Pouech
6d7c2e02d8
dbghelp: In dwarf debug functions, use register name instead of register value.
2011-03-14 13:20:24 +01:00
Eric Pouech
a26ed12676
dbghelp: When managing DW_OP_deref_size, always ensure we read the size parameter.
2011-03-14 13:20:15 +01:00
Eric Pouech
9156501084
dbghelp: In dwarf unwinder, fix the last valid IP value to be used for a given line of Call Frame Information.
2011-03-14 13:19:05 +01:00
Joris Huizer
a2793d62ad
dbghelp: dwarf2_get_cpp_name: fix off-by-one error.
2011-03-10 12:55:17 +01:00
Eric Pouech
d52e42e985
dbghelp: Quirk for supporting anonymous UDT (class, struct, enum...).
2011-03-09 13:52:22 +01:00
Eric Pouech
e21062f9fa
dbghelp: When parsing a subprogram in dwarf debug format, properly handle scoping for functions with both declaration & definition.
2011-03-09 13:52:14 +01:00
Eric Pouech
a575351b30
dbghelp: Add support for parsing methods (in C++ classes) for dwarf debug format.
2011-03-09 13:52:03 +01:00
Eric Pouech
395d734d33
dbghelp: Store the compiland into the parse context.
2011-03-09 13:51:55 +01:00
Eric Pouech
0d4a9757c2
dbghelp: In dwarf debug format, correctly manage the DW_AT_specification attribute.
2011-03-09 13:51:46 +01:00
Eric Pouech
0035d5df3f
dbghelp: Add support for namespace support out of dwarf debug format.
2011-03-09 13:51:26 +01:00
Eric Pouech
770e3b5ddf
dbghelp: Add hierarchical information in die object.
2011-03-09 13:51:16 +01:00
Eric Pouech
6d49f958de
dbghelp: More precisely manage the inline attribute.
2011-03-09 13:51:08 +01:00
Eric Pouech
0816d8f4bf
dbghelp: When parsing dwarf debug info, silence ptr_to_member and imported_declaration entries.
2011-03-09 13:50:54 +01:00
Eric Pouech
031cce8e77
dbghelp: Added support for variables in thread storage.
2011-01-31 14:30:13 +01:00
Alexandre Julliard
9926ca771b
dbghelp: Use Dwarf debug info even when part of it is missing.
2011-01-24 15:52:42 +01:00
Eric Pouech
60fbda43cb
dbghelp: Use AT_range attribute (for function, block... addresses) when AT_low_pc and AT_high_pc are not present.
2011-01-19 12:24:42 +01:00
Alexandre Julliard
cf1cd33570
dbghelp: Support pointer types of various sizes.
2011-01-13 20:09:49 +01:00
Andrew Talbot
4e4948cfbf
dbghelp: Constify some variables.
2010-08-30 15:38:56 +02:00
Eric Pouech
1e0af22ad2
dbghelp: dwarf debug info: a few more fixes to dwarf parsing.
2010-08-26 12:42:15 +02:00
Jacek Caban
1a1ffe60fd
dbghelp: Silence template related dwarf FIXMEs.
2010-08-16 17:28:58 +02:00
Eric Pouech
1783631f55
dbghelp: Added support for CFA save/restore operation.
2010-07-05 12:59:47 +02:00
Eric Pouech
5afe16621b
dbghelp: Parse correctly DW_LNE_set_discriminator.
2010-06-28 16:58:38 +02:00
Eric Pouech
1c037bf564
dbghelp: Correctly handle the RULE_EXPRESSION when computing CFA in dwarf debug info.
2010-06-28 12:14:13 +02:00
Eric Pouech
b38cddf484
dbghelp: Set the correct word size when unwinding stacks with Dwarf debug info.
2010-06-28 12:14:04 +02:00
Eric Pouech
3ced7b8f40
dbghelp: Ensure we can try to load COFF symbols if none is found in other debug formats.
2010-06-28 11:42:28 +02:00
Eric Pouech
8c7cc491ab
dbghelp: In dwarf parser, properly handle array without size specified.
2010-06-08 12:59:13 +02:00
Marcus Meissner
4f2e15d053
dbghelp: Add 2 new darf defines and implement DW_OP_stack_value.
2010-06-07 15:26:12 +02:00
Gerald Pfeifer
72216a604d
dbghelp: Remove variable basic_block which is not really used from dwarf2_parse_line_numbers.
2010-05-26 10:14:46 +02:00
Eric Pouech
196f8f070d
dbghelp: Added support for DW_CFA_GNU_args_size.
2010-04-07 13:50:35 +02:00
Eric Pouech
a185435243
dbghelp: When handling a P augmentation in FDE/DIE parsing, throw away the DW_EH_indirect flag, as we don't handle the result.
...
It's needed as long as we don't support DW_EH_indirect while reading encoded values.
2010-04-02 10:35:21 +02:00
Eric Pouech
1b68d4e7ce
dbghelp: Extend dwarf stack unwinding by reading information out of .debug_frame sections.
...
Implement dwarf stack unwinding for i386 CPU.
2010-04-02 10:35:02 +02:00
Eric Pouech
a5293895a3
dbghelp: In dwarf parsing, correctly handle the DW_OP_regx option.
2010-03-29 11:44:52 +02:00
Eric Pouech
6a6edcd1ca
dbghelp: In dwarf attribute parsing, ensure that we do have a block when parsing a block.
2010-03-29 11:44:46 +02:00
Eric Pouech
036392c5d1
dbghelp: Added preliminary CFA management.
2010-03-29 11:38:17 +02:00
Eric Pouech
9851ebf792
dbghelp: Keep the .debug_frame section mapped when parsing dwarf debug_info (needed for CFA management).
2010-03-29 11:37:27 +02:00
Eric Pouech
e2b62c91d5
dbghelp: Created a CPU method to map dwarf register number to codeview register number.
2010-03-25 09:45:32 +01:00
Eric Pouech
403f41687e
dbghelp: In dwarf parsing, correctly get the size of addresses in location lists.
2010-03-25 09:45:26 +01:00
Eric Pouech
8413810c6c
dbghelp: Don't try to hardwire the dwarf's "word size", but get it properly.
2010-03-25 09:45:21 +01:00
Eric Pouech
e6a08a1e15
dbghelp: Fixed a couple of portability issues to 64bit platforms.
2010-03-25 09:45:15 +01:00
Eric Pouech
d822aaff92
dbghelp: Removed the not-useful start_data field out of dwarf2_traverse_context_t.
2010-03-22 11:27:44 +01:00
Eric Pouech
73f79e7fad
dbghelp: Create new infrastructure to hold specific information for multiple file/debug formats in a single module, and use it to store dwarf2 stuff.
2010-03-19 12:08:27 +01:00
Eric Pouech
3e6920d7b8
dbghelp: Now that we can keep ELF sections around, don't copy the loclist section, just don't unmap it.
2010-03-19 12:08:10 +01:00
Eric Pouech
2d8c788353
dbghelp: Let dwarf_parse decide on which sections it needs to map.
2010-03-19 12:08:03 +01:00
Eric Pouech
770f0d834f
dbghelp: Make the ELF mapping code easier to use.
2010-03-19 12:03:57 +01:00
Eric Pouech
09a7e2d3d0
dbghelp: Added full support for DW_FORM_data8 attributes, as well as primary support for DW_FORM_block* attributes.
2010-03-16 13:30:31 +01:00
André Hentschel
c71ffcf407
dbghelp: Merge dwarf code from ntdll/signal_x86_64.c.
2010-02-09 17:13:37 +01:00
Eric Pouech
878f287366
dbghelp: Silence a couple of FIXMEs for C++ code.
...
Reported by Jacek Caban.
2009-12-29 13:28:01 +01:00
André Hentschel
255a1ebaad
dbghelp: Implement literal dwarf opcodes.
2009-12-21 15:01:24 +01:00
Eric Pouech
92b9b0940d
dbghelp: Wrap the symt* <=> index transformations.
2009-12-15 11:56:45 +01:00
Eric Pouech
b4da46ebe8
dbghelp: A couple of fixes for dwarf2 support on a 64bit platform.
2009-12-14 12:29:14 +01:00
Eric Pouech
b037912c9d
dbghelp: Fix a couple of casts on 64bit platforms.
2009-12-14 12:27:32 +01:00
Eric Pouech
db077e11ad
dbghelp: In dwarf parsing, allow 64 bit wide values.
2009-11-29 16:39:35 +01:00
Eric Pouech
6a1b2a9ca5
dbghelp: Enhance support for constant values in dwarf debug information.
2009-10-05 14:56:24 +02:00
Eric Pouech
7fbcd11db8
dbghelp: When the CU is compiled with GCC, deal with some GCC extensions.
2009-06-29 13:13:50 +02:00
Alexandre Julliard
bb2d643f49
dbghelp: Try to avoid crashing on unrecognized attributes.
2009-05-29 12:30:28 +02:00
Michael Stefaniuc
3c3a9b5081
dbghelp: Remove superfluous pointer casts.
2009-01-19 13:36:25 +01:00
Andrew Talbot
34ac3f15dd
dbghelp: Sign-compare warnings fix.
2008-09-25 11:28:52 +02:00
Eric Pouech
1a34d70354
dbghelp: Don't crash when parsing the forward declaration of a function.
2008-05-26 17:59:39 +02:00
Eric Pouech
fd20b1be8a
dbghelp: Protect dwarf parsing against NULL function names.
2008-05-19 13:35:42 +02:00
Eric Pouech
99c27e7da4
dbghelp: Some cleanup in dwarf include files.
2008-05-01 11:13:16 +02:00
Rob Shearman
97a9ca3f4a
dbghelp: Define NONAMELESSUNION in dwarf.c and type.c as they access VARIANT fields directly.
2008-02-28 10:50:57 +01:00
Eric Pouech
4823663957
dbghelp: Fix erroneous access to dwarf symbol cache.
...
(Spotted by Dan Kegel with valgrind).
2008-02-12 22:40:46 +01:00
Eric Pouech
43afc9178b
dbghelp: Attempt to cache some basic symbol types for easier and faster code.
2008-02-07 11:59:52 +01:00
Eric Pouech
75803e9448
dbghelp: Extended the internal enumeration information so that we know the underlying integral type.
2008-02-07 11:59:52 +01:00
Eric Pouech
a4dfe1b042
dbghelp: Added support for labels outside functions (and used it in msc parsing).
2008-02-07 11:59:52 +01:00
Eric Pouech
2af9736fbb
dbghelp: Silence superfluous message (spotted by Robert Reif).
2008-01-14 13:36:38 +01:00
Andrey Turkin
a38cd7ac01
dbghelp: Treat const addresses as const unsigned.
...
This will prevent winedbg from spamming about __wine_dbch__default.
2007-12-26 14:02:22 +01:00
Andrew Talbot
f8198e6688
dbghelp: Cast-qual warnings fix.
2007-07-20 11:46:04 +02:00
Markus Amsler
8bc839a816
dbghelp: Speed up vector iteration by directly using for().
2007-05-15 20:19:53 +02:00
Andrew Talbot
dcb298b468
dbghelp: Exclude unused headers.
2007-05-01 11:42:24 +02:00
Andrew Talbot
099bb87feb
dbghelp: Constify some variables.
2007-04-18 13:00:57 +02:00
Peter Oberndorfer
debcf7fa32
dbghelp: Use elf load_offset passed to dwarf2_parse to relocate addresses.
...
This is needed, because symbol addresses in dwarf2 debug info are already relocated.
2007-03-16 11:35:00 +01:00
Eric Pouech
f2cfb374a4
dbghelp: Get rid of module_name in all traces (using Unicode flavor).
2007-03-13 21:02:42 +01:00
Eric Pouech
aac77c98a2
dbghelp: Added an ANSI copy of the module name (useful for next patches).
2007-02-22 11:28:53 +01:00
Marcus Meissner
e37ff84eff
dbghelp: Return when not finding the name.
2007-02-19 12:37:37 +01:00
Dmitry Timoshkov
736743dd57
dbghelp: Turn a FIXME to a WARN in order to avoid mangling the output.
2007-02-05 12:30:00 +01:00
Eric Pouech
75033503e8
dbghelp: Added ability to internal store / reload a symbol with a constant value.
...
Let dwarf and msc use this new feature.
As we also add global symbol without addresses, don't take those
constant symbols into account for searches by address.
2006-12-06 11:38:43 +01:00
Eric Pouech
4806320b48
dbghelp: In find_nearest, now return the symbol instead of its index in module->sorttable.
2006-12-06 11:37:10 +01:00
Eric Pouech
16db2566c6
dbghelp: Fixed value stored for register relative information
...
(regression spotted by Peter Oberndorfer).
2006-12-04 14:02:42 +01:00
Eric Pouech
8e7b2e0fd7
dbghelp: Get rid of long int issues on 64bit platforms.
2006-11-30 13:26:39 +01:00
Eric Pouech
3669415dd5
dbghelp: Silence typedefs children in sub program block.
2006-11-27 18:10:24 +01:00
Eric Pouech
5b61db4161
dbghelp: Correctly store the addresses of blocks.
...
They are stored internally as offsets to the start of the function
which embeds the block.
2006-11-27 17:58:44 +01:00
Eric Pouech
31f4f1b003
dbghelp: Properly handle the void type in some declarations.
2006-11-27 17:58:22 +01:00
Eric Pouech
cfd9013317
dbghelp: We can now remove the default name prefix as all the non conforming cases have been eliminated.
...
Got rid of dwarf2_find_name which is now useless.
2006-11-27 17:58:11 +01:00
Eric Pouech
305621d5cf
dbghelp: Extend support for inlined functions and handle them as generic blocks inside functions
...
(except for parameters which are converted into local variables).
Rewrote dwarf2_find_attribute so that it takes into account the
abstract origin information when available.
A+
2006-11-27 17:57:54 +01:00
Eric Pouech
497b2e4ea5
dbghelp: Be a bit more strict on where we do actually expect default names to be generated
...
(removed this feature for UDTs, structures' fields, enums, typedefs, compilands)
2006-11-27 17:57:21 +01:00
Eric Pouech
96bfe9d056
dbghelp: Add support for a label in a subprogram block.
2006-11-27 17:56:58 +01:00
Eric Pouech
8eef2de3eb
dbghelp: Register numbers in OP_piece don't need to be next to each other.
2006-11-27 17:56:49 +01:00
Eric Pouech
4202a49b75
dbghelp: Add support for deref operation in location computation.
2006-11-27 17:56:36 +01:00
Eric Pouech
e48a46b2b5
dbghelp: Add ability to add a SymTagCustom element to a function.
...
Make use of it to store the frame information for a dwarf function
(either because frame's location is a location list, or because one of
the function's variables is not properly computed at parse time).
2006-11-27 17:56:17 +01:00
Eric Pouech
0d942b3aaa
dbghelp: Function points location is now expressed as a struct location.
2006-11-27 17:55:44 +01:00
Eric Pouech
d812f8b42c
dbghelp: Added infrastructure to compute variable location at runtime (as opposed to debug info parse time).
...
Use it to send the variables depending on not known frame register at parse time.
Made just a stub for the location computation function for dwarf2.
2006-11-27 17:55:17 +01:00
Eric Pouech
20fc25bc55
dbghelp: Use the location info structure thoughout the code to handle the location of a data variable.
2006-11-27 17:54:39 +01:00
Eric Pouech
d5c4e55d36
dbghelp: Added struct location to help computing a location.
...
Make use of it in dwarf.c to handle correctly variable location computation.
Split code to handle both location with parse time computation
(current code) and yet to come run-time computation
2006-11-27 17:54:08 +01:00
Eric Pouech
848f8c41c0
dbghelp: Pass .debug_loc section info from the ELF loader to the dwarf parser.
2006-11-27 17:53:52 +01:00
Eric Pouech
1a723f237c
dbghelp: Store compiland's address in internal structures.
2006-11-27 17:49:50 +01:00
Eric Pouech
04c7c203fc
dbghelp: Simplify code with function to get section size.
2006-11-27 17:48:44 +01:00
Peter Oberndorfer
05368de685
dbghelp: Make dwarf2 parser only report file numbers when at least one compilation unit really has numbers.
2006-11-08 15:50:18 +01:00
Peter Oberndorfer
6d0948f7a6
dbghelp: Make dwarf2_parse_line_numbers handle missing line number section.
2006-11-08 15:49:46 +01:00
Peter Oberndorfer
fd2d43f131
dbghelp: Make dwarf2 parser handle file paths relative to working dir better.
2006-11-06 13:47:35 +01:00
David Anderson
c80f5181ff
dbghelp: Avoid printing too many "What the heck" messages from winedbg.
2006-10-26 13:04:52 +02:00
Eric Pouech
7c92e801aa
dbghelp: Added support for a couple of compiland's children.
2006-09-26 11:53:53 +02:00
Eric Pouech
baf8dfd8c8
dbghelp: Fix location computation when attribute has a constant form instead of a block form.
2006-09-26 11:53:40 +02:00
Eric Pouech
4432a1fa91
dbghelp: Change the definition of an attribute so that we can pass around the form.
2006-09-26 11:51:57 +02:00
Eric Pouech
f8e06dd613
dbghelp: Move the attribute union (now nameless) into a structure called attribute.
2006-09-26 11:49:36 +02:00
Eric Pouech
fa7332fd27
dbghelp: Added support for DW_OP_breg* operations in location computation.
2006-09-26 11:48:56 +02:00
Eric Pouech
6c4c64265d
dbghelp: Variables & registers.
...
- more strickling differentiation variable location between
a register, and the dereferenced address defined by a
register (and possibly an offset)
- added a parameter to symt_add_func_local (and internal symbol
data struct) to help differentiate
- fix all debug parsers to confer to this new scheme
2006-09-26 11:48:39 +02:00