From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: [OT] Deugging optimized code (was: [22.1.90]: Point before start of properties) Date: Fri, 22 Feb 2008 16:41:42 +0100 Message-ID: References: <6EE216E1AA959543A555C60FF34FB76702E48034@maileube01.misys.global.ad> <87wspcj0ou.fsf@stupidchicken.com> <6EE216E1AA959543A555C60FF34FB76702EED4A1@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB76702EEDA6E@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670300E86B@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670305B82C@maileube01.misys.global.ad> <6EE216E1AA959543A555C60FF34FB7670305BF82@maileube01.misys.global.ad> <874pc1ist1.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1203694948 19026 80.91.229.12 (22 Feb 2008 15:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 15:42:28 +0000 (UTC) Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-pretest-bug@gnu.org, Simon.Marshall@misys.com, "Stephen J. Turnbull" , Eli Zaretskii To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 16:42:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSa2p-0007Ff-57 for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 16:42:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSa2J-0007RP-S3 for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 10:42:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSa2G-0007RK-FP for emacs-devel@gnu.org; Fri, 22 Feb 2008 10:42:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSa2B-0007PP-Pm for emacs-devel@gnu.org; Fri, 22 Feb 2008 10:42:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSa2B-0007PM-NQ for emacs-devel@gnu.org; Fri, 22 Feb 2008 10:41:59 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSa2B-0000Jz-6y for emacs-devel@gnu.org; Fri, 22 Feb 2008 10:41:59 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JSa2A-0005O2-Ue for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 10:41:59 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JSa27-0000Ig-QT for emacs-pretest-bug@gnu.org; Fri, 22 Feb 2008 10:41:58 -0500 Original-Received: from cantor.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JSa22-0000CW-MO; Fri, 22 Feb 2008 10:41:51 -0500 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 3712031D91; Fri, 22 Feb 2008 16:41:43 +0100 (CET) X-Yow: Excuse me, but didn't I tell you there's NO HOPE for the survival of OFFSET PRINTING? In-Reply-To: (Stefan Monnier's message of "Fri\, 22 Feb 2008 10\:18\:13 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:89972 gmane.emacs.pretest.bugs:21267 Archived-At: Stefan Monnier writes: > Case 1 is best solved by using a different approach to debugging: > instead of a GDB-style approach (where the compiler does its thing > regardless of debugging and then the debugger is expected to be able to > present the result in a meaningful manner to the programmer), you can > take an Edebug-style approach where the *source* program is annotated > (maybe on the fly and then recompiled/reoptimized), Yes, ctrace(1), the future in debugging. :-) Andreas. http://www.freebsd.org/cgi/man.cgi?query=3Dctrace&apropos=3D0&sektion=3D1= &manpath=3DSunOS+4.1.3&format=3Dhtml --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."