Home Dashboard Directory Help
Search

MS DIA get_virtualAddress for static const class member by pykd team


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 737430
Opened: 4/18/2012 1:53:28 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

We have a class:
class TestClass {
    static int a;
    const static int b;
};

When we are parsing a symbol info, we try to get a VA for static member through IDiaSymbol::get_virtualAddress. It return S_OK for both static members. But for const members it returns 0x0 VA.

We tried to print symbol info in windbg ( dt TestClass )
windbg 6.11:
prints right VA for non-constant static member
prints invalid VA for constant static member

windbg 6.2.8220:
prints right address in both cases.


Details
Sign in to post a comment.
Posted by Microsoft on 5/9/2012 at 4:27 PM
The problem is known and we have fixed it. The fix will be included in our upcoming product release.

Thanks for the report.

YongKang Zhu
--
VC++ CodeGen and Tools
Posted by Microsoft on 5/8/2012 at 11:48 PM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 4/18/2012 at 2:59 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.