Summary: | print formats (/FMT) do not invoke Python pretty printers | ||
---|---|---|---|
Product: | gdb | Reporter: | Chris Johns <chrisj> |
Component: | python | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | enhancement | CC: | dje, gdb-prs |
Priority: | P2 | ||
Version: | 7.1 | ||
Target Milestone: | 7.1 | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Chris Johns
2010-03-15 22:49:09 UTC
I guess this has been fixed since, because I can't repro this. [btw, I'm assuming there's a typo in the repro instructions: Is it possible the first "p /f the_semaphore->Object.id" was actually "p the_semaphore.Object" ?] From the gdb build tree, after running the py-prettyprint.exp testcase: bash$ make run (gdb) file testsuite/gdb.python/py-prettyprint (gdb) source ../src/gdb/testsuite/gdb.python/py-prettyprint.py (gdb) start [...] 264 string x = make_string ("this is x"); (gdb) n 265 zzz_type c = make_container ("container"); (gdb) 266 zzz_type c2 = make_container ("container2"); (gdb) 267 const struct string_repr cstring = { { "const string" } }; (gdb) 277 nstype.elements = narray; (gdb) 278 nstype.len = 0; (gdb) 280 me.s = "blah"; (gdb) 282 init_ss(&ss, 1, 2); (gdb) 283 init_ss(ssa+0, 3, 4); (gdb) 284 init_ss(ssa+1, 5, 6); (gdb) 285 memset (&nullstr, 0, sizeof nullstr); (gdb) p ss $1 = a=< a=<1> b=<0x7fffffffe670>> b=< a=<2> b=<0x7fffffffe680>> (gdb) p/x ss $2 = a=< a=<1> b=<0x7fffffffe670>> b=< a=<2> b=<0x7fffffffe680>> (gdb) p/r ss $3 = { a = { a = 0x1, b = 0x7fffffffe670 }, b = { a = 0x2, b = 0x7fffffffe680 } } (gdb) |