Re: About adding new script language
Nala Ginrut <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
hi Doug! Thanks for reply! On Tue, 2013-04-30 at 17:51 -0700, Doug Evans wrote: > There aren't any interfaces, they need to be added. > One of the hardest parts of adding Guile support to GDB (as an > extension language) > will be providing reasonable interfaces. > Could you give me some hints where is the preferable place to cut in? Here're my questions: 1. Find a way to get the input string and pass it to guile for eval when 'Guile mode' enabled. I know python module has some functions to handle this, but I don't know how the things from GDB passed in. Maybe some hooks in GDB REPL? 2. When in 'Guile mode', there should be a way to get the context info of gdb. I know python could do it with gdb module, like 'gdb.a' to get the variable named 'a'. My question is how to interact with GDB context? Any docs for that? 3. According to our previous discussion, there's no need to write a general interfaces for extension language (maybe not?). So I think the easier way is to find out what's in GDB is most useful thing, and write the wrapper for Guile. Any suggestion? 4. If we do need to add the clean interfaces, what part of code should I take a look? Thanks!
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAABAgAGBQJRgJDXAAoJEJGCfijueOkle2QQAImHO+I8KRH4LKF4kwmRrGU7 +GzhtrFXGvjwxkjFouw5NSWasN5aUyqyke0L7RLLcXcKPzxV70IkCl6z/y8aOonF /hBh4jYcV2nO0laFtNU717VrUNO5stXFUG9IrA3Di8awbtS0/lm0D8UrLdnaUd+s sKZw1hfe4JN5+tmrB3ml4myNdrKiA1bb7+OVpnFi3K/YB1oKabMakh9SvGDPozHw ER5pf3ReZxWS9mCHCNH0iDzv/xhioogFAUW2Cvwic9vcdh6GgdkurGtyGRwS0TrC YZxH/+GSYykKP30pTAYwlAcQTKypBSpyClu08WZ3Ux+ZgGhVbrVW7fObsTLSbs+L RDDnslCMNOdqG3RnK0M1+WVeW7NMoG+DIxPVxGgz4NnAgDsu0XDCagQF063Nn31T 4JmQI+u5MGVpWD++r0kU+sBeBUzgpGWnBoWRhucZvBYaNvO0K5SDOszdhvTIzr/2 FCNZPgTVP5DUGAB+okNJ3PrXBfRb+E1BNRPympzSmdLZd2H5vP0R3Q7El0U9Aieb 8ilrPa28zgE24/gvR/hNxS/TYUQ3JIHRz9T0+t6Cz51S8WQBe0tZRt/yrrmU9rHJ uizVZJfHMoHDddZJEYKDX9K9I/hYvfXLXMWPQiVJD5iDwpjNspnuo0y8Qs6Mh/e1 N4HSv53R+WvzZKySJL6o =txJS -----END PGP SIGNATURE-----