[all-commits] [llvm/llvm-project] d29da9: [lldb] Make `print` delegate to synthetic frames.

Aman LaChapelle via All-commits all-commits at lists.llvm.org
Thu Jan 29 11:54:18 PST 2026


  Branch: refs/heads/users/bzcheeseman/stack/7
  Home:   https://github.com/llvm/llvm-project
  Commit: d29da9f40041f3d502a177b52c4666edafd00eca
      https://github.com/llvm/llvm-project/commit/d29da9f40041f3d502a177b52c4666edafd00eca
  Author: bzcheeseman <aman.lachapelle at gmail.com>
  Date:   2026-01-29 (Thu, 29 Jan 2026)

  Changed paths:
    M lldb/source/Commands/CommandObjectDWIMPrint.cpp

  Log Message:
  -----------
  [lldb] Make `print` delegate to synthetic frames.

This patch is more of a proposal in that it's a pretty dramatic change to the way that `print` works. It completely delegates getting values to the frame if the frame is synthetic, and does not redirect at all if the frame fails.

For this patch, the main goal was to allow the synthetic frame to bubble up its own errors in expression evaluation, rather than having errors come back with an extra "could not find identifier <blah>" or worse, simply get swallowed. If there's a better way to handle this, I'm more than happy to change this as long as the core goals of 'delegate variable/value extraction to the synthetic frame', and 'allow the synthetic frame to give back errors that are displayed to the user' can be met.

stack-info: PR: https://github.com/llvm/llvm-project/pull/178602, branch: users/bzcheeseman/stack/7



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list