labath added inline comments.

================
Comment at: 
lldb/test/Shell/SymbolFile/DWARF/x86/debug_static-member-anonymous-namespace.s:18
+#   static int s;
+#   int m = 14159265;
+# };
----------------
siggi-alpheus wrote:
> I wonder why I couldn't get the query to work against an initialized global 
> without the main function. Is the assembly directly out of gcc, or did you 
> need to tweak it?
> PS: Now I fancy some pie.
I produced this by modifying/reducing the input you provided (with looking at 
some gcc output as reference).

Without more details, I can only guess what was the problem for you, but one of 
issue that comes up in tests like this is that lldb does not like to display 
variables whose "file address" is zero -- it mistakes them for a null pointer 
(one day I'll have to fix that).  I work around that here, by adding some 
padding so that the variable does not end up at the address zero.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124409

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to