[Lldb-commits] [lldb] [lldb] Limit DIL globals to only current file (PR #192592)

via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 17 16:11:58 PDT 2026


cmtice wrote:

I'm sorry for being dense, but could someone explain to me why it is wrong to be able to see a global variable from within a particular frame?  When I'm writing code, I certainly expect to be able to access global variables from within functions (unless I have. a local variable with the identical name that overshadows it). So if I can access the global when  programming, why is it wrong to be able to access it when I'm debugging? In fact, I would be rather annoyed if I'm using the global in my function, and during a debugging session I want to check its value and the debugger wouldn't let me...

https://github.com/llvm/llvm-project/pull/192592


More information about the lldb-commits mailing list