This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: Calling -enable-pretty-printing without modifying the GUI frontend
- From: Tom Tromey <tromey at redhat dot com>
- To: Noam Yorav-Raphael <noamraph at gmail dot com>
- Cc: archer at sourceware dot org
- Date: Thu, 03 Sep 2009 16:01:42 -0600
- Subject: Re: Calling -enable-pretty-printing without modifying the GUI frontend
- References: <b348a0850909031416r1ccd884cn32a9a0412dcf352d@mail.gmail.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Noam" == Noam Yorav-Raphael <noamraph@gmail.com> writes:
Noam> My question is whether there's a way to automatically enable pretty
Noam> printing without the frontend calling the command - for example, it
Noam> would be nice if I could add it to the gdbinit file. I have to work
Noam> with a not very new version of kdevelop as a gdb frontend, and
Noam> recompiling it is not an option. I would prefer not to use a special
Noam> branch of gdb which has pretty printers enabled by default.
Noam> Is it possible?
The reason we added an explicit command is that older clients may not
function properly with pretty-printing.
For example, if you try to pretty-print an uninitialized object, you
might get a very large number of children, causing your debug session to
lock up or crash.
So, even if it is possible, I would recommend against it.
Tom