[cfe-commits] [PATCH] PR14471: Debug info for static data members (Clang part)
Eric Christopher
echristo at gmail.com
Thu Jan 10 14:31:12 PST 2013
Hi Paul,
Looking much better. Few comments:
+// RUN: %clangxx -O0 -g %s -c -o %t.o
+// RUN: %clangxx %t.o -o %t.out
+// RUN: %test_debuginfo %s %t.out
+
Can probably do the compile and link in one line if we're not using the
temporary .o file.
+// DEBUGGER: delete breakpoints
+// DEBUGGER: break main
+// DEBUGGER: r
+// DEBUGGER: n
+// DEBUGGER: p instance_C
+// CHECK: $1 = {static a = 4, static b = {{.*}}, static c = 15, d = {{.*}}}
+
Might also want to ptype C as well?
+class C
+{
Formatting in the testcase if you don't mind.
Otherwise, much nicer! Same comments as the llvm one :)
-eric
On Tue, Jan 8, 2013 at 5:16 PM, Robinson, Paul <Paul.Robinson at am.sony.com>wrote:
> New and improved, refreshed and invigorated patch for PR14471/14734.
>
> - CGDebugInfo::CollectRecordFields() decomposed with 3 new helpers.
> - The "fieldNo - 1" is gone, thanks to the refactoring.
> - Commentary about the field counting added.
> - getStaticDataMemberDeclaration() checks the decl before doing the search.
> I hope that was everything!
>
> --paulr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130110/c127f7eb/attachment.html>
More information about the cfe-commits
mailing list