From: Tom Tromey <tromey@redhat.com>
To: Kevin Pouget <kevin.pouget@gmail.com>
Cc: Surya Kiran Gullapalli <suryakiran.gullapalli@gmail.com>,
gdb@sourceware.org
Subject: Re: Colors in gdb
Date: Tue, 15 Jan 2013 19:02:00 -0000 [thread overview]
Message-ID: <8738y2jmmb.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CAPftXUJ1tvJVmTmHNfME9t_3u8tQMv_ioDm7iLcxbDtkZ_v6=A@mail.gmail.com> (Kevin Pouget's message of "Tue, 15 Jan 2013 19:46:32 +0100")
>>>>> "Kevin" == Kevin Pouget <kevin.pouget@gmail.com> writes:
Kevin> I have colors in my gdb Python prompt since quite a while, I wonder
Kevin> what could be different in the context of prompt printing and pretty
Kevin> printing ?
For ordinary printing, there's just no place to hook into gdb.
For printing via Python pretty-printers, strings are further processed
by gdb before printing, and in particular the escape sequences are
turned into plain text.
For backtraces it could be done by writing one's own "bt" in Python. I
vaguely recall that somebody did this once.
Tom
next prev parent reply other threads:[~2013-01-15 19:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 13:59 Surya Kiran Gullapalli
2013-01-10 20:50 ` psyprus
2013-01-15 17:48 ` Tom Tromey
2013-01-15 18:47 ` Kevin Pouget
2013-01-15 19:02 ` Tom Tromey [this message]
2013-01-20 15:13 ` Matt Rice
2013-01-20 15:29 ` Robert Dewar
2013-01-20 15:39 ` shawn wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738y2jmmb.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=kevin.pouget@gmail.com \
--cc=suryakiran.gullapalli@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox