Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Aug 2023 20:46:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272922] devel/gdb: printing the std::string array fails: {Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
Message-ID:  <bug-272922-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272922

            Bug ID: 272922
           Summary: devel/gdb: printing the std::string array fails:
                    {Python Exception <class 'gdb.error'>: There is no
                    member or method named __short_mask.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pizzamig@freebsd.org
          Reporter: yuri@freebsd.org
          Assignee: pizzamig@freebsd.org
             Flags: maintainer-feedback?(pizzamig@freebsd.org)

Printing colourData in this code:

include <string>

static std::string colourData [] {
        std::string("x"),
        std::string("y")
};

int main() {
}


fails:

Breakpoint 1, main () at ss.cpp:12
12      }
(gdb) p colourData
$1 =3D {Python Exception <class 'gdb.error'>: There is no member or method =
named
__short_mask.
, Python Exception <class 'gdb.error'>: There is no member or method named
__short_mask.
}

This is caused by files included in the gdb distribution but originating fr=
om
the libc++ project.


gdb-13.1
FreeBSD 13.2
Python-3.9

=3D=3DReferences=3D=3D
* GDB bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30556
* LLVM bug report: https://github.com/llvm/llvm-project/issues/64398

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272922-7788>