[PATCH] D88715: [llvm-objdump] --source: drop the warning when there is no debug info

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 14 14:32:02 PDT 2020


MaskRay added a comment.

In D88715#2326883 <https://reviews.llvm.org/D88715#2326883>, @jhenderson wrote:

> In D88715#2325275 <https://reviews.llvm.org/D88715#2325275>, @MaskRay wrote:
>
>> The internal user who reported the problem is fine with the approach (if any object has debug info, suppress the warning). This probably makes real world applications less annoying since (crt1.o for exe) crtbegin.o crtend.o are linked into the binary and they typically don't have debug info. Then this appears to boil down to an existence check of `.debug_line`.
>
> Sounds about right to me. Ideally, I'd still want to know if there was a dodgy piece of debug data somewhere which might be causing problems finding source information, but it's not that big a deal if the symbolizer code isn't plumbed up to give that information independently of simply "no debug data found for this location".

OK. The warning feature requires more changes because `symbolizeCode` does not make "checkting whehter .debug_line exists" easy. I am not signing off on the work but maybe @mmpozulp can? :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88715/new/

https://reviews.llvm.org/D88715



More information about the llvm-commits mailing list