From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: The emacs_backtrace "feature" Date: Sun, 30 Sep 2012 00:24:18 -0700 Organization: UCLA Computer Science Department Message-ID: <5067F3A2.90700@cs.ucla.edu> References: <83lig3yaci.fsf@gnu.org> <505CC1FA.4070300@cs.ucla.edu> <874nmglvp4.fsf@mail.jurta.org> <83zk48egzb.fsf@gnu.org> <83lifsdlsm.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348989860 20466 80.91.229.3 (30 Sep 2012 07:24:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2012 07:24:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 09:24:26 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TIDt3-0006jv-1a for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 09:24:25 +0200 Original-Received: from localhost ([::1]:33591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIDsx-0001Bf-BS for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2012 03:24:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIDsv-0001BV-HR for emacs-devel@gnu.org; Sun, 30 Sep 2012 03:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIDsu-0003He-L8 for emacs-devel@gnu.org; Sun, 30 Sep 2012 03:24:17 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:48111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIDst-0003Ft-7v; Sun, 30 Sep 2012 03:24:15 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 746E539E8015; Sun, 30 Sep 2012 00:24:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uwr8onhriSy2; Sun, 30 Sep 2012 00:24:14 -0700 (PDT) Original-Received: from [192.168.1.3] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id EC3CF39E800E; Sun, 30 Sep 2012 00:24:13 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 In-Reply-To: <83lifsdlsm.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:153732 Archived-At: On 09/30/2012 12:14 AM, Eli Zaretskii wrote: > Sorry, I don't follow: the eassert macro includes the file name and > the line number in the message it prints Stefan's talking about the macro (or function) F that invokes eassert, not eassert itself. If F is a macro, eassert outputs the line number of F's caller. If F is a function, it outputs F's line number. If F is small, he'd often rather see the former. Since the complaint is about the addr2line hassle I expect the problem could be addressed by doing the addr2line work inside Emacs. In the long run that would be better than forcing the use of macros rather than functions purely because of crash debug output.