public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16741] New: 'set print pretty' has no effect on Python prettyprinters
@ 2014-03-22 15:24 jan.kratochvil at redhat dot com
2014-03-22 21:18 ` [Bug c++/16741] " jan.kratochvil at redhat dot com
2014-03-22 21:21 ` jan.kratochvil at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-03-22 15:24 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16741
Bug ID: 16741
Summary: 'set print pretty' has no effect on Python
prettyprinters
Product: gdb
Version: 7.6
Status: NEW
Severity: normal
Priority: P2
Component: c++
Assignee: pmuldoon at redhat dot com
Reporter: jan.kratochvil at redhat dot com
CC: pmuldoon at redhat dot com, tromey at redhat dot com
#include <vector>
int main () {
std::vector<int> v; v.push_back(1); v.push_back(2); v.push_back(3);
struct s { int a,b,c; } s={ 1, 2, 3 };
return 0; } /* line 5 */
(gdb) b 5
(gdb) r
5 return 0; }
(gdb) show print pretty
Pretty formatting of structures is off.
(gdb) p s
$1 = {a = 1, b = 2, c = 3}
(gdb) p v
$2 = std::vector of length 3, capacity 4 = {1, 2, 3}
(gdb) set print pretty on
(gdb) p s
$3 = {
a = 1,
b = 2,
c = 3
}
(gdb) p v
Actual:
$4 = std::vector of length 3, capacity 4 = {1, 2, 3}
Expected:
$4 = std::vector of length 3, capacity 4 = {
1,
2,
3
}
--
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++/16741] 'set print pretty' has no effect on Python prettyprinters
2014-03-22 15:24 [Bug c++/16741] New: 'set print pretty' has no effect on Python prettyprinters jan.kratochvil at redhat dot com
@ 2014-03-22 21:18 ` jan.kratochvil at redhat dot com
2014-03-22 21:21 ` jan.kratochvil at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-03-22 21:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16741
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jan.kratochvil at redhat dot com
Resolution|--- |INVALID
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
It can be fixed by: set print array
Suggested by Doug Evans.
--
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++/16741] 'set print pretty' has no effect on Python prettyprinters
2014-03-22 15:24 [Bug c++/16741] New: 'set print pretty' has no effect on Python prettyprinters jan.kratochvil at redhat dot com
2014-03-22 21:18 ` [Bug c++/16741] " jan.kratochvil at redhat dot com
@ 2014-03-22 21:21 ` jan.kratochvil at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2014-03-22 21:21 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16741
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
(gdb) set print array on
(gdb) p s
$3 = {a = 1, b = 2, c = 3}
(gdb) p v
$4 = std::vector of length 3, capacity 4 = {
1,
2,
3
}
--
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:[~2014-03-22 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-22 15:24 [Bug c++/16741] New: 'set print pretty' has no effect on Python prettyprinters jan.kratochvil at redhat dot com
2014-03-22 21:18 ` [Bug c++/16741] " jan.kratochvil at redhat dot com
2014-03-22 21:21 ` jan.kratochvil 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).