public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/31118] New: Error printing vectors when using nonstandard stdlib @ 2023-12-06 22:09 msharov at users dot sourceforge.net 2023-12-07 2:24 ` [Bug c++/31118] " simon.marchi at polymtl dot ca 2023-12-07 13:43 ` msharov at users dot sourceforge.net 0 siblings, 2 replies; 3+ messages in thread From: msharov at users dot sourceforge.net @ 2023-12-06 22:09 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=31118 Bug ID: 31118 Summary: Error printing vectors when using nonstandard stdlib Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: msharov at users dot sourceforge.net Target Milestone: --- I am using a non-standard standard library, where std::vector has a different implementation from the stdlib std::vector and has no _M_impl member. When trying to print such a vector, gdb gives error message: $1 = Python Exception <class 'gdb.error'>: There is no member or method named _M_impl. ... and prints nothing else. In this situation gdb should treat the class normally, like any other, and print its contents. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31118] Error printing vectors when using nonstandard stdlib 2023-12-06 22:09 [Bug c++/31118] New: Error printing vectors when using nonstandard stdlib msharov at users dot sourceforge.net @ 2023-12-07 2:24 ` simon.marchi at polymtl dot ca 2023-12-07 13:43 ` msharov at users dot sourceforge.net 1 sibling, 0 replies; 3+ messages in thread From: simon.marchi at polymtl dot ca @ 2023-12-07 2:24 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=31118 Simon Marchi <simon.marchi at polymtl dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simon.marchi at polymtl dot ca --- Comment #1 from Simon Marchi <simon.marchi at polymtl dot ca> --- If you are getting this message, it means the pretty printer for gcc's stdlib has been loaded. How come, since you don't use gcc's stdlib? How is GDB supposed to know that this is not the right pretty-printer? -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/31118] Error printing vectors when using nonstandard stdlib 2023-12-06 22:09 [Bug c++/31118] New: Error printing vectors when using nonstandard stdlib msharov at users dot sourceforge.net 2023-12-07 2:24 ` [Bug c++/31118] " simon.marchi at polymtl dot ca @ 2023-12-07 13:43 ` msharov at users dot sourceforge.net 1 sibling, 0 replies; 3+ messages in thread From: msharov at users dot sourceforge.net @ 2023-12-07 13:43 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=31118 Mike Sharov <msharov at users dot sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTABUG --- Comment #2 from Mike Sharov <msharov at users dot sourceforge.net> --- (In reply to Simon Marchi from comment #1) > If you are getting this message, it means the pretty printer for gcc's > stdlib has been loaded. How come, since you don't use gcc's stdlib? I have tried to reproduce with a simpler test case and discovered that one of the libraries my app was linked to was dynamically loading libstdc++. So gdb behavior here is not unreasonable after all. I guess that means you can close the bug. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-07 13:43 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-12-06 22:09 [Bug c++/31118] New: Error printing vectors when using nonstandard stdlib msharov at users dot sourceforge.net 2023-12-07 2:24 ` [Bug c++/31118] " simon.marchi at polymtl dot ca 2023-12-07 13:43 ` msharov at users dot sourceforge.net
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).