This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: extending Gdb to display app specific data


> 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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]