From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: relatedly! RFH: make C-d in debugger not terminate process Date: Sun, 06 Jun 2010 17:37:20 +0200 Message-ID: References: <8739x0p82y.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275838561 23712 80.91.229.12 (6 Jun 2010 15:36:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Jun 2010 15:36:01 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 06 17:35:58 2010 connect(): No such file or directory Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OLHtG-0004BO-Bf for guile-devel@m.gmane.org; Sun, 06 Jun 2010 17:35:58 +0200 Original-Received: from localhost ([127.0.0.1]:46916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLHtF-0008BX-2k for guile-devel@m.gmane.org; Sun, 06 Jun 2010 11:35:57 -0400 Original-Received: from [140.186.70.92] (port=44519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLHt7-00080X-N2 for guile-devel@gnu.org; Sun, 06 Jun 2010 11:35:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLHt6-0005yJ-6c for guile-devel@gnu.org; Sun, 06 Jun 2010 11:35:49 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:36544 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLHt6-0005y4-1p; Sun, 06 Jun 2010 11:35:48 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 99C3CB9004; Sun, 6 Jun 2010 11:35:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=nVjzYr7HZBSF 2kxFGXC6ttobC80=; b=S0WYazPfZfEL6otFfAM4PmRTZFzUJGQ2+nnsrM7CqbRA onsa/gefo90YFZsG4wo096sVA+1w13OWW0eGAK89g6QUIeFcf7riZYywit88vdXh hb2vqTEqW9/duKgtMDg/DDqThA8lfTKmquZMZ7l2jEUvWvjpr6cnaA4MeNx1PiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=B0X+l7 wnlSXpRG+bn/45MwzM7If6HDYfGl1kyhMFc0wR2EAIZ4uSlUoPCt/NqyK067rs4I wZFtjHSzQfgOsn8L1h551WG8GaWyDNgvHVWGMJigh7+5Nro8IP8rFlgWwhqvAE+t yxPSMK+MuYXy6ZucxOQhUJtUbo0qVAXKIt1RY= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id DF0BBB9001; Sun, 6 Jun 2010 11:35:44 -0400 (EDT) Original-Received: from unquote (unknown [83.44.188.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 661C1B9FFE; Sun, 6 Jun 2010 11:35:40 -0400 (EDT) In-Reply-To: <8739x0p82y.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 06 Jun 2010 16:08:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 2C16F292-7181-11DF-9937-6730EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10443 Archived-At: Hi! On Sun 06 Jun 2010 16:08, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo writes: > >> I am currently poking about to make it possible to run a recursive repl, >> from the debugger, in the context of the error. It would be nice to be >> able to exit said recursive repl via Control-D, and it would likewise be >> nice to be able to exit the debugger via Control-D. I'm sure this is >> possible. Can someone hook this up? > > What about C-] as in Emacs? Ah yes that would be nice as well. Both would be nice, in fact ;) By the way we do have a recursive repl from the debugger now, but you have to exit it with (quit). For example: scheme@(guile-user)> (let ((a 10) (b 0)) (/ a b)) Throw to key `numerical-overflow': ERROR: In procedure /: ERROR: Numerical overflow Entering the debugger. Type `bt' for a backtrace or `c' to continue. 0 debug> bt 2 In module/ice-9/boot-9.scm: 61: 1 (call-with-prompt prompt0 # #) In current input: 1: 0 (#:1:0 ()>) 0 debug> repl Read-only local variable a =3D 10 Read-only local variable b =3D 0 scheme@(#{\ g35}#) [1]> a $1 =3D 10 scheme@(#{\ g35}#) [1]> (quit) 0 debug> bt In module/ice-9/boot-9.scm: 1056: 2 (#) 61: 1 (call-with-prompt prompt0 # #) In current input: 1: 0 (#:1:0 ()>) 0 debug> up #1 0x00000016 in (call-with-prompt prompt0 #= #) 1 debug> repl Read-only local variable tag =3D prompt0 Read-only local variable thunk =3D # Read-only local variable handler =3D # scheme@(#{\ g76}#) [1]> handler $2 =3D # Et cetera... Andy --=20 http://wingolog.org/