public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10646] New: pretty printers should also work for std::__debug::vector et al.
@ 2009-09-16 19:51 ppluzhnikov at google dot com
2009-09-28 13:45 ` [Bug python/10646] " pmuldoon at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ppluzhnikov at google dot com @ 2009-09-16 19:51 UTC (permalink / raw)
To: gdb-prs
When code is compiled with -D_GLIBCXX_DEBUG, then std::vector is replaced with
std::__debug::vector.
Our pretty-printers should work on those as well.
Example:
#include <vector>
int main()
{
std::vector<int> v;
v.push_back(1);
return 0; // break here
}
g++ -g t.cc
gdb64-cvs -q ./a.out
(gdb) b 7
Breakpoint 1 at 0x4007b4: file t.cc, line 7.
(gdb) r
Breakpoint 1, main () at t.cc:7
7 return 0; // break here
(gdb) p v
$1 = std::vector of length 1, capacity 1 = {1}
g++ -g t.cc -D_GLIBCXX_DEBUG
gdb64-cvs -q ./a.out
(gdb) b 7
Breakpoint 1 at 0x400aa4: file t.cc, line 7.
(gdb) r
Breakpoint 1, main () at t.cc:7
7 return 0; // break here
(gdb) p v
$1 = {<std::__norm::vector<int, std::allocator<int> >> =
{<std::__norm::_Vector_base<int, std::allocator<int> >> = {
_M_impl = {<std::allocator<int>> = {<__gnu_cxx::new_allocator<int>> = {<No
data fields>}, <No data fields>}, _M_start = 0x603010,
_M_finish = 0x603014,
_M_end_of_storage = 0x603014}}, <No data fields>},
<__gnu_debug::_Safe_sequence<std::__debug::vector<int, std::allocator<int> > >>
= {<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0, _M_const_iterators
= 0x0, _M_version = 2}, <No data fields>},
_M_guaranteed_capacity = 1}
(gdb) q
--
Summary: pretty printers should also work for
std::__debug::vector et al.
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: ppluzhnikov at google dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10646
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10646] pretty printers should also work for std::__debug::vector et al.
2009-09-16 19:51 [Bug python/10646] New: pretty printers should also work for std::__debug::vector et al ppluzhnikov at google dot com
@ 2009-09-28 13:45 ` pmuldoon at redhat dot com
2009-09-30 14:41 ` pmuldoon at redhat dot com
2009-10-02 7:06 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: pmuldoon at redhat dot com @ 2009-09-28 13:45 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|pmuldoon at redhat dot com
|org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
http://sourceware.org/bugzilla/show_bug.cgi?id=10646
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10646] pretty printers should also work for std::__debug::vector et al.
2009-09-16 19:51 [Bug python/10646] New: pretty printers should also work for std::__debug::vector et al ppluzhnikov at google dot com
2009-09-28 13:45 ` [Bug python/10646] " pmuldoon at redhat dot com
@ 2009-09-30 14:41 ` pmuldoon at redhat dot com
2009-10-02 7:06 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: pmuldoon at redhat dot com @ 2009-09-30 14:41 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pmuldoon at redhat dot com 2009-09-30 14:41 -------
FYI: I've submitted a patch for this to gcc-patches:
http://gcc.gnu.org/ml/gcc-patches/2009-09/msg02187.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10646
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10646] pretty printers should also work for std::__debug::vector et al.
2009-09-16 19:51 [Bug python/10646] New: pretty printers should also work for std::__debug::vector et al ppluzhnikov at google dot com
2009-09-28 13:45 ` [Bug python/10646] " pmuldoon at redhat dot com
2009-09-30 14:41 ` pmuldoon at redhat dot com
@ 2009-10-02 7:06 ` pmuldoon at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: pmuldoon at redhat dot com @ 2009-10-02 7:06 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pmuldoon at redhat dot com 2009-10-02 07:06 -------
This has been checked in:
http://gcc.gnu.org/ml/gcc-cvs/2009-10/msg00034.html
I'll close this bug, as the initial implementation request.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=10646
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-02 7:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16 19:51 [Bug python/10646] New: pretty printers should also work for std::__debug::vector et al ppluzhnikov at google dot com
2009-09-28 13:45 ` [Bug python/10646] " pmuldoon at redhat dot com
2009-09-30 14:41 ` pmuldoon at redhat dot com
2009-10-02 7:06 ` pmuldoon at redhat dot com
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).