[llvm-bugs] [Bug 51274] New: print object reference displays no members, yet there are

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 29 13:46:40 PDT 2021


            Bug ID: 51274
           Summary: print object reference displays no members, yet there
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: cristiano at dibuduo.be
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

I can not inspect the contents of my objects. I have made a math library, which
I use in many projects, and on many platforms. None of my linear algebra
objects can be displayed, or otherwise investigated, other than by converting
the this-pointer to the element type pointer, and dumping that instead. I am
currently working on an Android native app, and it would be nice that my latest
version of Android Studio could allow me to see what's inside my object when it
is being watched. The current method which I am forced to use is tedious.

Upon request I am willing to provide the offending source code case. But I fail
to see why using the print command yields only curly braces. My classes are
indeed nested deeply and are heavily templatized, with the only members
residing in the ultimate superclass, about ten levels up, where sometimes
different kinds of objects and arrays of objects are all members of a union, in
a way that may appear a bit strange at first, but in my opinion there should
not be a reason for the exceptional behavior of the lldb print command just
giving up like it currently does.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210729/4acc9aab/attachment.html>

More information about the llvm-bugs mailing list