public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
@ 2024-02-05 21:00 yuri at tsoft dot com
  2024-02-05 23:34 ` [Bug c++/31342] " tromey at sourceware dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: yuri at tsoft dot com @ 2024-02-05 21:00 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31342
           Summary: Printer for std::string fails: Python Exception <class
                    'gdb.error'>: There is no member or method named
                    __short_mask.
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: yuri at tsoft dot com
  Target Milestone: ---

When the user attempts to print an object of the type std::string - this fails:

> (gdb) p buildname
> $1 = Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.


gdb-13.2
FreeBSD 14.0-STABLE

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/31342] Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
  2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
@ 2024-02-05 23:34 ` tromey at sourceware dot org
  2024-02-05 23:58 ` yuri at tsoft dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2024-02-05 23:34 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
While there could be a gdb bug here, normally this sort of
thing should first be reported to whoever maintains the pretty-printers.
The code that is doing this lookup isn't part of gdb.
I'm going to guess it is part of libc++, since "short_mask" doesn't
seem to appear in libstdc++, but I am not actually sure.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/31342] Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
  2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
  2024-02-05 23:34 ` [Bug c++/31342] " tromey at sourceware dot org
@ 2024-02-05 23:58 ` yuri at tsoft dot com
  2024-02-06  0:30 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: yuri at tsoft dot com @ 2024-02-05 23:58 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from yuri at tsoft dot com ---
Who maintains pretty-printers?
Don't pretty-printers get shipped as part of gdb?

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/31342] Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
  2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
  2024-02-05 23:34 ` [Bug c++/31342] " tromey at sourceware dot org
  2024-02-05 23:58 ` yuri at tsoft dot com
@ 2024-02-06  0:30 ` tromey at sourceware dot org
  2024-02-06  7:25 ` yuri at tsoft dot com
  2024-02-06 13:34 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2024-02-06  0:30 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to yuri from comment #2)
> Who maintains pretty-printers?
> Don't pretty-printers get shipped as part of gdb?

No, part of the design is that the printers themselves
are shipped alongside the code they work with. 

So, for example, the libstdc++ printers are all maintained
in the GCC source tree.  This way, if libstdc++ changes,
the printers can change at the same time, and gdb doesn't
need to be modified.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/31342] Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
  2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
                   ` (2 preceding siblings ...)
  2024-02-06  0:30 ` tromey at sourceware dot org
@ 2024-02-06  7:25 ` yuri at tsoft dot com
  2024-02-06 13:34 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: yuri at tsoft dot com @ 2024-02-06  7:25 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from yuri at tsoft dot com ---
The helpers actually come from this unmaintained project:
https://github.com/bsdjhb/libcxx-gdbpy

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/31342] Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask.
  2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
                   ` (3 preceding siblings ...)
  2024-02-06  7:25 ` yuri at tsoft dot com
@ 2024-02-06 13:34 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2024-02-06 13:34 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |MOVED

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Yeah, any fix will probably have to be done there.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-06 13:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-05 21:00 [Bug c++/31342] New: Printer for std::string fails: Python Exception <class 'gdb.error'>: There is no member or method named __short_mask yuri at tsoft dot com
2024-02-05 23:34 ` [Bug c++/31342] " tromey at sourceware dot org
2024-02-05 23:58 ` yuri at tsoft dot com
2024-02-06  0:30 ` tromey at sourceware dot org
2024-02-06  7:25 ` yuri at tsoft dot com
2024-02-06 13:34 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).