[Lldb-commits] [PATCH] D65955: Minidump/Windows: Fix module lookup

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 9 01:20:03 PDT 2019


labath added a comment.

In D65955#1621400 <https://reviews.llvm.org/D65955#1621400>, @amccarth wrote:

> I'm curious, though, where is the matching code?  Should "unknown" be treated as a wildcard when trying to find the matching module?


The matching code lives ArchSpec::IsEqualTo, and its behavior is a topic that comes up regularly (I think the last discussion was here http://lists.llvm.org/pipermail/lldb-dev/2018-December/014437.html). The summary of the problem is that there are instances when people want/need/... to e.g. use "unknown" OS to mean that there really is no OS (because we're debugging a bare metal target for instance), but there are also other cases that want to treat it as a wildcard. Lldb gets around this by having a concept of a "specified" and "unspecified" unknown, but that is sort of an abuse of the llvm Triple class, because it works by examining the string representation of the triple fields and treating "" and "unknown" differently (even though they both resolve to the UnknownOS enum).


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

https://reviews.llvm.org/D65955





More information about the lldb-commits mailing list