From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23158 invoked by alias); 30 Apr 2013 07:49:17 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 23062 invoked by uid 89); 30 Apr 2013 07:49:16 -0000 X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=BAYES_40,KHOP_PGP_SIGNED,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 30 Apr 2013 07:49:10 +0000 Received: from [59.40.126.204] (port=43187 helo=[192.168.100.103]) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1UX5JE-0007qQ-N1 for gdb@sourceware.org; Tue, 30 Apr 2013 03:49:09 -0400 Message-ID: <1367308142.25105.25.camel@Renee-desktop.suse> Subject: About adding new script language From: Nala Ginrut To: "gdb@sourceware.org" Date: Tue, 30 Apr 2013 07:49:00 -0000 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-5ZU4vwocYpjMH5PWfIZH" Mime-Version: 1.0 X-Virus-Found: No X-SW-Source: 2013-04/txt/msg00103.txt.bz2 --=-5ZU4vwocYpjMH5PWfIZH Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-length: 1236 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.=20 Is this idea too unrealistic? Happy hacking! Thanks! --=-5ZU4vwocYpjMH5PWfIZH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit Content-length: 836 -----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----- --=-5ZU4vwocYpjMH5PWfIZH--