This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: extending Gdb to display app specific data
- To: bstell at netscape dot com
- Subject: Re: extending Gdb to display app specific data
- From: Eli Zaretskii <eliz at delorie dot com>
- Date: Fri, 10 Nov 2000 05:39:09 -0500 (EST)
- CC: gdb at sources dot redhat dot com
- References: <3A0B4885.B2384AE7@netscape.com>
- Reply-to: Eli Zaretskii <eliz at is dot elta dot co dot il>
> Date: Thu, 09 Nov 2000 16:59:49 -0800
> From: bstell@netscape.com (Brian Stell)
>
> The strings could be UTF-8, UTF-16, some kind
> of C++ object, etc.
>
> What provision is there for Gdb users to extend
> Gdb to display an application specific item like
> this?
One way is to call the functions in the debuggee that convert these
strings to a printable representation, then print the result; the GDB
command "print" can do that. It is highly likely that in a program
which supports non-ASCII characters you will have functions which
convert non-ASCII strings to a printable representation and back.
Does that solve the problem?