using perl in gdbinit

Russ Allbery rra@stanford.edu
Wed Feb 28 15:08:00 GMT 2001


Keith Seitz <keiths@cygnus.com> writes:

> I would guess that you should be able to add a perl interpreter to
> gdb. I don't know a whole lot about how perl was written, but if there
> is a way to create your own perl interpreter like this:

>    init_perl ()
>     {
>         g_interp = Perl_New_Interpreter ();
>     }

> You should be able to do what you want (albeit in a hacky kind of way).

There is.  See man perlembed.

-- 
Russ Allbery (rra@stanford.edu)             < http://www.eyrie.org/~eagle/ >



More information about the Gdb mailing list