From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17187 invoked by alias); 1 May 2013 03:49:51 -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 17176 invoked by uid 89); 1 May 2013 03:49:51 -0000 X-Spam-SWARE-Status: No, score=-8.9 required=5.0 tests=BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,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; Wed, 01 May 2013 03:49:50 +0000 Received: from [183.13.171.6] (port=1999 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 1UXO39-0004gd-OH; Tue, 30 Apr 2013 23:49:48 -0400 Message-ID: <1367380182.25105.105.camel@Renee-desktop.suse> Subject: Re: About adding new script language From: Nala Ginrut To: Doug Evans Cc: "gdb@sourceware.org" Date: Wed, 01 May 2013 03:49:00 -0000 In-Reply-To: References: <1367308142.25105.25.camel@Renee-desktop.suse> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-iLnM4yOJZ5Toq4b9P7RH" Mime-Version: 1.0 X-Virus-Found: No X-SW-Source: 2013-05/txt/msg00002.txt.bz2 --=-iLnM4yOJZ5Toq4b9P7RH Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-length: 1182 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. >=20 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?=20 4. If we do need to add the clean interfaces, what part of code should I take a look? Thanks! --=-iLnM4yOJZ5Toq4b9P7RH 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) 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----- --=-iLnM4yOJZ5Toq4b9P7RH--