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]
Other format: [Raw text]

Re: Type identification within a user defined commands


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


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