Tom Tromey wrote: >>>>>> "Pedro" == Pedro Alves writes: >>>>>> > > Pedro> Does this do sensible things if class Y has some > Pedro> fields that mask the Base class's ones, when you only have a > Pedro> pretty printer for Base? > > Yeah... it pretty-prints Base, then goes on to print the subclass > fields as usual (perhaps pretty-printing them as well). > > Phil, could you post the before- and after- results of your example? > I think that would clear things up. > Here (attached) is a file I was using today to test some scenarios. They do not directly address Pedro's questions (I think your explanation does). But they do address on of Paul's. [pmuldoon@localhost gdb]$ ./gdb ~/derived (pg-gdb) b 45 Reading in symbols for /home/pmuldoon/derived.cpp... Breakpoint 1 at 0x400b40: file /home/pmuldoon/derived.cpp, line 45. (pg-gdb) python import gdb.libstdcxx.v6.printers (pg-gdb) r Breakpoint 1, main () at /home/pmuldoon/derived.cpp:45 45 return 0; (pg-gdb) info locals map = std::map with 1 elements = { [0x40363d "one"] = 1 } uomap = std::tr1::unordered_map with 1 elements = { [21] = 0x403645 "twenty one" } nest = { = std::map with 1 elements = { [0x403650 "twenty-two"] = 22 }, members of X: map = std::tr1::unordered_map with 1 elements = { [23] = 0x403638 "test" }, i = 0 } base = std::map with 1 elements = { [0x403641 "two"] = 2 }