[PATCH] D123623: [Debuginfo][llvm-dwarfutil] Add check for unsupported debug sections.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 23 01:17:36 PDT 2022


avl added inline comments.


================
Comment at: llvm/lib/DWARFLinker/DWARFLinker.cpp:2427-2430
+      reportError(".debug_rnglists is not currently supported",
+                  OptContext.File);
+      OptContext.Skip = true;
+      continue;
----------------
avl wrote:
> JDevlieghere wrote:
> > I generally expect errors to be fatal. Should this be a warning instead? Something like:
> > 
> > > warning: .debug_rnglists is not currently supported: section will be skipped
> > 
> > 
> I used error vs warning to differentiate a case when 'critical' or not 'critical' section is met. But I think it could be done by different message instead:
> 
> 
> ```
> warning: .debug_rnglists is not currently supported: compile unit will be skipped
> 
> ```
> vs
> 
> 
> ```
> warning: .gdb-index is not currently supported: section will be skipped
> ```
> 
> thus, will make both cases to be warning.
To make things explicit, after this patch is applied following messages would also be shown by dsymutil:


```
warning: type units are not currently supported: compile unit will be skipped
warning: .debug_rnglists is not currently supported: compile unit will be skipped
warning: .debug_loclists is not currently supported: compile unit will be skipped
warning: .debug_macinfo is not currently supported: compile unit will be skipped
warning: .debug_macro is not currently supported: compile unit will be skipped
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123623



More information about the llvm-commits mailing list