diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-01-30 23:45:20 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2018-01-30 23:45:20 +0000 |
commit | 2aea8f97872481874a7ad2c72ec6aa60259fead3 (patch) | |
tree | 51e73c2e77ac57cb02728b69373a33ffb9e3fde8 /lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c | |
parent | 119856430eaa604498a74bc1309f00a9ab29775c (diff) | |
download | bcm5719-llvm-2aea8f97872481874a7ad2c72ec6aa60259fead3.tar.gz bcm5719-llvm-2aea8f97872481874a7ad2c72ec6aa60259fead3.zip |
[lldb] Enable debugging of binaries with mixed (splitted/regular) dwarf
Initialize the default value of SymbolFileDWARF uuid with
the appropriately shifted DW_INVALID_OFFSET constant.
This change fixes the collision in the computation of DIE uid
(inside DIERef::GetUID) and incorrect CompileUnit lookup
(because of the misleading cu_offset value).
Test plan: make check-lldb
Differential revision: https://reviews.llvm.org/D42563
llvm-svn: 323832
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c b/lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c new file mode 100644 index 00000000000..d79970e13d4 --- /dev/null +++ b/lldb/packages/Python/lldbsuite/test/linux/mix-dwo-and-regular-objects/b.c @@ -0,0 +1,11 @@ +extern int f(); + +void g() { + int y = 14; + int x = f(); +} + +int main() { + g(); + return 0; +} |