Type identification within a user defined commands
Daniel Jacobowitz
drow@false.org
Wed Oct 20 23:48:00 GMT 2004
On Thu, Oct 21, 2004 at 10:35:56AM +1300, Brendan Doherty wrote:
> Is it possible to identify the type of a variable passed to a user
> defined command.
>
> I'm trying to create a prettier print that displays information about
> the various classes that we use.
> I want to use the type to access attributes specific to that class.
>
> What I am trying to do is considerable more complex than the example
> below, bug it demostrates what I want to do.
No, it isn't possible. You'd need a real scripting language for this;
a Perl implementation was posted, and someone has said they're working
on a Guile implementation.
--
Daniel Jacobowitz
More information about the Gdb
mailing list