public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
@ 2023-08-31 16:59 ` tromey at sourceware dot org
2023-08-31 20:01 ` tromey at sourceware dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 16:59 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
Blocks| |30816
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
One way might be a new 'display_hint' that is some kind
of structured value, e.g. a tuple like ("matrix", 20, 10)
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=30816
[Bug 30816] [meta] Pretty-printing v2
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
2023-08-31 16:59 ` [Bug python/10659] pretty-printing: Display vectors of vectors as matrix tromey at sourceware dot org
@ 2023-08-31 20:01 ` tromey at sourceware dot org
2023-09-26 15:35 ` tromey at sourceware dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-08-31 20:01 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks|30816 |
Depends on| |30816
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=30816
[Bug 30816] [meta] Pretty-printing v2
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
2023-08-31 16:59 ` [Bug python/10659] pretty-printing: Display vectors of vectors as matrix tromey at sourceware dot org
2023-08-31 20:01 ` tromey at sourceware dot org
@ 2023-09-26 15:35 ` tromey at sourceware dot org
2025-02-20 14:27 ` tromey at sourceware dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2023-09-26 15:35 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
Bug 10659 depends on bug 30816, which changed state.
Bug 30816 Summary: [meta] Pretty-printing v2
https://sourceware.org/bugzilla/show_bug.cgi?id=30816
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
` (2 preceding siblings ...)
2023-09-26 15:35 ` tromey at sourceware dot org
@ 2025-02-20 14:27 ` tromey at sourceware dot org
2025-02-28 0:04 ` tromey at sourceware dot org
2025-02-28 3:21 ` sam at gentoo dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2025-02-20 14:27 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |32726
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=32726
[Bug 32726] [meta] Pretty printing
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
` (3 preceding siblings ...)
2025-02-20 14:27 ` tromey at sourceware dot org
@ 2025-02-28 0:04 ` tromey at sourceware dot org
2025-02-28 3:21 ` sam at gentoo dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2025-02-28 0:04 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
I don't know if it makes sense to try to apply this
to vector<vector> but now there is also std::mdspan:
https://en.cppreference.com/w/cpp/container/mdspan
... and anyway gdb should provide the basic facility.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] pretty-printing: Display vectors of vectors as matrix
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
` (4 preceding siblings ...)
2025-02-28 0:04 ` tromey at sourceware dot org
@ 2025-02-28 3:21 ` sam at gentoo dot org
5 siblings, 0 replies; 7+ messages in thread
From: sam at gentoo dot org @ 2025-02-28 3:21 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10659
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug python/10659] New: pretty-printing: Display vectors of vectors as matrix
@ 2009-09-18 17:18 jan dot kratochvil at redhat dot com
2010-04-29 16:13 ` [Bug python/10659] " cmoller at redhat dot com
0 siblings, 1 reply; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-09-18 17:18 UTC (permalink / raw)
To: gdb-prs
Vector of vectors is currently displayed as:
(gdb) p test
$1 = std::vector of length 2, capacity 2 = {std::vector of length 2, capacity 2
= {0, 1}, std::vector of length 2, capacity 2 = {2, 3}}
while user suggested something like:
(gdb) p test
$1 = std::vector of length 2, capacity 2 = {std::vector of length 2, capacity 2
= {0, 1}, std::vector of length 2, capacity 2 = {2, 3}}
matrix contents =
0 2
1 3
Testcase:
#include <vector>
#include <iostream>
int main(){
std::vector< std::vector<int> > test(2, std::vector<int>(2,0));
test[0][0]=0;
test[0][1]=1;
test[1][0]=2;
test[1][1]=3;
int a=test[1][0];
std::cout << a;
}
--
Summary: pretty-printing: Display vectors of vectors as matrix
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: jan dot kratochvil at redhat dot com
CC: gdb-prs at sourceware dot org,pmuldoon at redhat dot
com,tromey at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10659
------- 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] 7+ messages in thread
end of thread, other threads:[~2025-02-28 3:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10659-4717@http.sourceware.org/bugzilla/>
2023-08-31 16:59 ` [Bug python/10659] pretty-printing: Display vectors of vectors as matrix tromey at sourceware dot org
2023-08-31 20:01 ` tromey at sourceware dot org
2023-09-26 15:35 ` tromey at sourceware dot org
2025-02-20 14:27 ` tromey at sourceware dot org
2025-02-28 0:04 ` tromey at sourceware dot org
2025-02-28 3:21 ` sam at gentoo dot org
2009-09-18 17:18 [Bug python/10659] New: " jan dot kratochvil at redhat dot com
2010-04-29 16:13 ` [Bug python/10659] " cmoller 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).