Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* About adding new script language
@ 2013-04-30  7:49 Nala Ginrut
       [not found] ` <CADPb22Qoz7-fDCXq=5eiw_OA8VQDOOji_AETrxBy+d_AR0jDdg@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Nala Ginrut @ 2013-04-30  7:49 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

Hi GDB folks!
I'm new comer here, and I'm trying to make guile the extension language.
Anyway, folks could use python as well, before guile has reliable python
front-end.
I've read the python part, here're some ideas, correct me if I'm wrong
please. ;-)

1. Is it necessary to use language_defn to define the extension
language?
My understanding is language_defn defines a new language support for
debugging the defined language, not to define a new extension language
for other debugging purpose. Or not?
For example, go-lang.c is the support for debugging go, not add go as
the debug script language, just like python. But it confused me that
python has used language_defn.

2. There should be interfaces to add the script language, but I didn't
find it, anyone point me out? I don't think I have to write new
lexer/parser for that, just need a way to get the expr and call guile's
read function. Thanks!

3. My aim is not only add guile as an extension in gdb's REPL, but a
more powerful language for the automatic debugging. For that purpose,
the hard/heavy work is not to add guile into gdb, but a framework
project implemented by guile based on the support of guile-gdb. 
Is this idea too unrealistic?

Happy hacking!
Thanks!



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-01  4:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-30  7:49 About adding new script language Nala Ginrut
     [not found] ` <CADPb22Qoz7-fDCXq=5eiw_OA8VQDOOji_AETrxBy+d_AR0jDdg@mail.gmail.com>
2013-05-01  3:49   ` Nala Ginrut
2013-05-01  4:31     ` Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox