About adding new script language

Nala Ginrut <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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!
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAABAgAGBQJRf3dvAAoJEJGCfijueOkly0sP/0JGhlZ00nG5QouE4VxTSMU2
yfEQVFvdmO1T6zma3Br8XwNGL1P2Ablhdeip0PQ6iXe1PRK1M8X1MCFL0jRPcXeP
xCQcFkqGGYqTAwUOE2T/u4QLPTpIXW9BRK+x2BYHbUw5QtvS5NNeDa5iLuBemLUr
cv9T/L2rGehyLqpPvaC2+KH7dGhQSpgtTKWYCi9cNWCBgWC4aMoEuC8gI2On+0aU
XIwPl+sqD+LE8C33qmfXlVpqjPWZK27m0ond/wRN33cv6Gf4qcfmJFcOqoKpZaLO
uV1DoJCFtxRJEv42ZnKuL66kPEN5xu3adfMc1kD/6cAPvTuL/pXpbqSdSwqVKkjk
jIH81ELXqAOjJYTQzH7HC6/c6nf3bTwJHhQnLhynCQajhB6UeSDpL15HJDz7Xte6
m7m+UJujp0Cl40x9NUybEDRkm8K+PGcI6xwnKTmS0iQL05ZiUxy7uv1Fq3loLTbC
MWiICINGhtDHWTho9DFeISkt4gsCa2v8RTIjMBTljxh+T10zAwbtJjH6mwEhOIm4
xOmQOgXxepR6lCjYuUTW5TzbqBk+dIodj4eVOJLLNWJIuh1AI/G22y3l60z0vL2G
lMS5g8WjcyUtZohgS583LvCf9mfplckbrPtcE7WJvCsJHfOn9S7uX9mUs+S7WTUN
V479TB6LDopwv0BIWXNb
=Q/5J
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.