[Lldb-commits] [PATCH] D72158: [DebugInfo] Make most debug line prologue errors non-fatal to parsing

James Henderson via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jan 28 08:40:17 PST 2020


jhenderson requested review of this revision.
jhenderson added a comment.

In D72158#1844534 <https://reviews.llvm.org/D72158#1844534>, @labath wrote:

> If I understand this correctly, this will cause lldb to continue to read the parsed line table contribution after encountering some errors in the prologue, whereas previously we would stop straight away. That sounds reasonable if now or in the future we will be able to get some useful information (at least some subset of file names, or line numbers without file names, etc.) out of these kinds of line tables.


Indeed, that's what this change allows: the parser will continue parsing after reporting the Errors via the new callback. In cases where it can't (i.e. unsupported versions or reserved unit length values), it will stop and return the Error (as it previously did, and also did for the now-recoverable Errors). For now I've changed LLDB to record both kinds of Errors in the same way as they were before, but the recoverable errors do not prevent it subsequently calling `ParseSupportFilesFromPrologue`. I could just as easily change it to doing what it always did for all cases, namely log the errors and not call `ParseSupportFilesFromPrologue`. That's probably the safer approach on further reflection, so I'll update the patch tomorrow (I'm just about to leave the office for the day), unless someone thinks changing the behaviour is good.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72158





More information about the lldb-commits mailing list