[Bug c++/23373] New: ptype/o is broken by static "empty" member

vladimir.gubarev at techstories dot ru sourceware-bugzilla@sourceware.org
Fri Jul 6 09:42:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23373

            Bug ID: 23373
           Summary: ptype/o is broken by static "empty" member
           Product: gdb
           Version: 8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: vladimir.gubarev at techstories dot ru
  Target Milestone: ---

In the following code we define a static member of type A in the A type itself.
The command hangs when it tries to recursively traverse the static member.

Example code:
struct A
{
    static A Empty;
    int a;
};

int main(void) {
    A a;
    return 0;
}

Output:
(gdb) ptype/o A
/* offset    |  size */  type = struct A {
                           static struct A {
                               static struct A {
                                   static struct A {
                                       static struct A {
                                           static struct A {
                                               static struct A {


Version:
gdb-8.1.tar.xz from 2018-01-30 22:43 https://ftp.gnu.org/gnu/gdb/

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list