diff options
author | Alexander Richardson <arichardson.kde@gmail.com> | 2018-02-19 19:53:44 +0000 |
---|---|---|
committer | Alexander Richardson <arichardson.kde@gmail.com> | 2018-02-19 19:53:44 +0000 |
commit | 6c85992c6da7ee88265e4ff7f69776b520d54891 (patch) | |
tree | b41e06d475201e6bf98b034d42ff90d5f2464076 /llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test | |
parent | e60f1472f144be13170f072b160c39b34d731e6b (diff) | |
download | bcm5719-llvm-6c85992c6da7ee88265e4ff7f69776b520d54891.tar.gz bcm5719-llvm-6c85992c6da7ee88265e4ff7f69776b520d54891.zip |
[llvm-objcopy] Use the full filename in --add-gnu-debuglink
Summary:
The current implementation was writing the file name without the extension
whereas GNU objcopy writes the full filename. With this change GDB will now
load the .debug file instead of silently ignoring it.
Reviewers: jakehehrlich, jhenderson
Reviewed By: jakehehrlich
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D43474
llvm-svn: 325528
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test')
-rw-r--r-- | llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test b/llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test index c858640ffa2..16f4637ffa9 100644 --- a/llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test +++ b/llvm/test/tools/llvm-objcopy/add-gnu-debuglink.test @@ -16,12 +16,13 @@ FileHeader: # CHECK-NEXT: ] # CHECK-NEXT: Address: 0x0 # CHECK-NEXT: Offset: -# CHECK-NEXT: Size: 32 +# CHECK-NEXT: Size: 36 # CHECK-NEXT: Link: 0 # CHECK-NEXT: Info: 0 # CHECK-NEXT: AddressAlignment: 4 # CHECK-NEXT: EntrySize: 0 # CHECK-NEXT: SectionData ( # CHECK-NEXT: 0000: 6164642D 676E752D 64656275 676C696E |add-gnu-debuglin| -# CHECK-NEXT: 0010: 6B2E7465 73742E74 6D700000 72C49B0C |k.test.tmp..r...| +# CHECK-NEXT: 0010: 6B2E7465 73742E74 6D702E62 6C6F6200 |k.test.tmp.blob.| +# CHECK-NEXT: 0020: 72C49B0C |r...| # CHECK-NEXT: ) |