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: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: extending Gdb to display app specific data
- From: bstell at ix dot netcom dot com
- Date: Fri, 10 Nov 2000 08:51:29 -0800
- CC: bstell at netscape dot com, gdb at sources dot redhat dot com, Fernando Nasser <fnasser at cygnus dot com>
- References: <3A0B4885.B2384AE7@netscape.com> <200011101039.FAA29785@indy.delorie.com>
My goal is to reduce the "initial
cognitive learning barrier" and
allow non experts to inspect data
and help debug.
Eli Zaretskii wrote:
> One way is to call the functions in the debuggee that convert these
> strings to a printable representation, then print the result ...
> Does that solve the problem?
If it can be put in a ".gdb_display_funcs"
and the user can type "p unichar_ptr"
and it works then that would be great.
Having to remember a display function puts
the knowledge burden on the (non expert)
user. The user has to know the data type
and then know the display function.
Imagine the frustration if one had to type
"p display_string(ptr)" every time they
wanted to see a ascii string.
In just the same way I'm looking for
a way for the users not to have to
remember "p display_unichar(unichar_ptr)".
Doesn't gdb already know the data type?