Charles Manning | 15 Feb 2009 19:38
Picon

Re: Interfacing gdb

On Saturday 14 February 2009 06:04:21 Maciej Piechotka wrote:
> Is it possible to write a plugin to gdb (i.e. program which may examin
> data provided by gdb - possibly from gdb)? Preferably in some sort of
> scripting language.

You don't really need a plug in.

gdb has a a very flexible built-in  macro language that allows you to write a 
lot of very useful scripts that can do all sorts of things.

Google for gdb macro and you will find such interesting things as:
http://www.ibm.com/developerworks/aix/library/au-gdb.html

Sam Steingold | 20 Feb 2009 18:06
Picon

Re: Interfacing gdb

Charles Manning wrote:
> On Saturday 14 February 2009 06:04:21 Maciej Piechotka wrote:
>> Is it possible to write a plugin to gdb (i.e. program which may examin
>> data provided by gdb - possibly from gdb)? Preferably in some sort of
>> scripting language.
> 
> You don't really need a plug in.
> 
> gdb has a a very flexible built-in  macro language that allows you to write a 
> lot of very useful scripts that can do all sorts of things.

"flexible"?!
gdb is a great debugger, but to say that the macro system is lacking is to make 
a gross understatement.

e.g., http://article.gmane.org/gmane.comp.gdb.general/445:

the following:

define break_foo_bar
   break foo
   commands
     print x
   end
   break bar
   commands
     print y
   end
end

(Continue reading)

Charles Manning | 22 Feb 2009 22:35
Picon

Re: Interfacing gdb

On Saturday 21 February 2009 06:06:56 Sam Steingold wrote:
> Charles Manning wrote:
> > On Saturday 14 February 2009 06:04:21 Maciej Piechotka wrote:
> >> Is it possible to write a plugin to gdb (i.e. program which may examin
> >> data provided by gdb - possibly from gdb)? Preferably in some sort of
> >> scripting language.
> >
> > You don't really need a plug in.
> >
> > gdb has a a very flexible built-in  macro language that allows you to
> > write a lot of very useful scripts that can do all sorts of things.
>
> "flexible"?!
> gdb is a great debugger, but to say that the macro system is lacking is to
> make a gross understatement.
>
> e.g., http://article.gmane.org/gmane.comp.gdb.general/445:
>
> the following:
>
> define break_foo_bar
>    break foo
>    commands
>      print x
>    end
>    break bar
>    commands
>      print y
>    end
> end
(Continue reading)

Maciej Piechotka | 19 Feb 2009 07:33
Picon

Re: Interfacing gdb

Charles Manning <manningc2 <at> actrix.gen.nz> writes:

> On Saturday 14 February 2009 06:04:21 Maciej Piechotka wrote:
>> Is it possible to write a plugin to gdb (i.e. program which may examin
>> data provided by gdb - possibly from gdb)? Preferably in some sort of
>> scripting language.
>
> You don't really need a plug in.
>
> gdb has a a very flexible built-in  macro language that allows you to write a 
> lot of very useful scripts that can do all sorts of things.
>
> Google for gdb macro and you will find such interesting things as:
> http://www.ibm.com/developerworks/aix/library/au-gdb.html
>

Thanks. But I AFAIR the built-in macro language does not have bindings
to any GUI widget library...

Regards
--

-- 
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)


Gmane