Re: using perl in gdbinit

Russ Allbery
2001-02-28T15:08:00Z

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/ >