Processing of convenience variables for scripts ...

Richard Sharpe rsharpe@richardsharpe.com
Fri Dec 6 08:30:00 GMT 2002


Hi,

In looking at this issue, it seems that much of the existing code that 
deals with variables is centered around printing:

   value_print (var->value, gdb_stdout, 0, Val_pretty_default);

While it seems that I could mess with providing new functions for a stream 
structure that I could retrieve strings from, is there a simpler way.

I envision something like 

  var1 = value_to_string (var->value);

And then construct a new command, and pass it through the standard routine 
that processes commands. 

However, it seems that things are not that simple :-)

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com



More information about the Gdb mailing list