From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Multiple debugging sessions Date: Fri, 11 Nov 2005 14:00:16 +1300 Message-ID: <17267.60704.229605.641146@kahikatea.snap.net.nz> References: <87u0feb5b7.fsf@wigwam.deepwood.net> <871x2hck3a.fsf@cut.bc.hsia.telus.net> <17239.8445.256875.931159@kahikatea.snap.net.nz> <17266.60914.593789.221645@kahikatea.snap.net.nz> <871x1os7i4.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1131670890 4650 80.91.229.2 (11 Nov 2005 01:01:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2005 01:01:30 +0000 (UTC) Cc: snogglethorpe@gmail.com, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 11 02:01:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EaNHB-0001nG-PR for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2005 02:00:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaNHA-0004Qn-Rw for ged-emacs-devel@m.gmane.org; Thu, 10 Nov 2005 20:00:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EaNGx-0004QL-Cr for emacs-devel@gnu.org; Thu, 10 Nov 2005 20:00:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EaNGw-0004Q0-Bu for emacs-devel@gnu.org; Thu, 10 Nov 2005 20:00:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EaNGw-0004Px-3N for emacs-devel@gnu.org; Thu, 10 Nov 2005 20:00:06 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EaNGu-0007NN-FX; Thu, 10 Nov 2005 20:00:04 -0500 Original-Received: from kahikatea.snap.net.nz (p90-tnt1.snap.net.nz [202.124.110.90]) by viper.snap.net.nz (Postfix) with ESMTP id 806947310F0; Fri, 11 Nov 2005 13:59:58 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 0B6FE8402; Fri, 11 Nov 2005 14:00:17 +1300 (NZDT) Original-To: Stefan Monnier In-Reply-To: <871x1os7i4.fsf-monnier+emacs@gnu.org> X-Mailer: VM 7.19 under Emacs 22.0.50.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45710 Archived-At: > > Retrofitting such a feature is probably a lot harder than simply being > > a bit careful to keep things well-parameterized from the beginning > > (well i guess it's too late now, but ...). > > The main problem (based on my experience making it possible to have multiple > PCL-CVS buffers) is that you need both to understand the code you're > changing and to understand how to use buffer-local variables to their best > advantage. I've only just started using pcl-cvs, but doesn't it just use one buffer? A debugging session with gdb can comprise many buffers: stack, locals, breakpoints etc. There is only one GUD buffer per session, so maybe variables could be local to that and some sort of indirection used, but it would be more complicated. > In the end the change to PCL-CVS was "fairly" easy, but it was delicate. What might be "fairly" easy to you, I might find a bit more difficult ;-) Nick