This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: using perl in gdbinit
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/>