[cfe-commits] [PATCH] PR14471: Debug info for static data members (Clang part)

Robinson, Paul Paul.Robinson at am.sony.com
Mon Jan 14 14:19:24 PST 2013


Fixed debuginfo-test\static-member.cpp as requested.
New diff attached (just that one).

Ran GDB test suite 7.2 (what I have) with trunk and with my patch.
(Someday I'll pick up the one you guys are using....)
Fixed 7 FAIL and 1 UNSUPPORTED.

Please commit for me.
Thanks!
--paulr



From: Eric Christopher [echristo at gmail.com]
Sent: Thursday, January 10, 2013 2:31 PM
To: Robinson, Paul
Cc: cfe-commits at cs.uiuc.edu
Subject: Re: [cfe-commits] [PATCH] PR14471: Debug info for static data members (Clang part)


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 --------------
A non-text attachment was scrubbed...
Name: Static-member-dbgtest.diff
Type: application/octet-stream
Size: 990 bytes
Desc: Static-member-dbgtest.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130114/004b5737/attachment.obj>


More information about the cfe-commits mailing list