[Lldb-commits] [PATCH] D108510: [lldb] Allow to register frame recognizers applied beyond the first instruction

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 23 15:58:41 PDT 2021


jingham added a comment.

One of the key reasons to use "frame recognizers" is to provide argument values to functions that don't have debug information.  That generally only works when stopped at the first instruction, since otherwise you have to follow the value as it moves through the code, which in the absence of debug information isn't entirely trivial.

A naive user might think reporting `expr (SomeType *) $arg1` is going to always work, but in fact it only works reliably on the first instruction.

I don't think that possible incorrect usage means we should only allow frame recognizers on the first instruction.  But I do think we should say something more in the help for this flag, like "remember that $arg<N> is only reliable on the first instruction" to warn folks in advance of this pitfall.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108510



More information about the lldb-commits mailing list