From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: [bug #29817] `define*' procedures get invalid source info [1.9.10] Date: Sat, 05 Jun 2010 17:51:05 +0000 Message-ID: <20100605-175105.sv20118.25116@savannah.gnu.org> References: <20100507-094831.sv15145.86664@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1275760277 16180 80.91.229.12 (5 Jun 2010 17:51:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Jun 2010 17:51:17 +0000 (UTC) To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= , Andy Wingo , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jun 05 19:51:15 2010 connect(): No such file or directory Return-path: Envelope-to: guile-bugs@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 1OKxWd-0006lJ-GN for guile-bugs@m.gmane.org; Sat, 05 Jun 2010 19:51:15 +0200 Original-Received: from localhost ([127.0.0.1]:46894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKxWc-0004ZJ-Rq for guile-bugs@m.gmane.org; Sat, 05 Jun 2010 13:51:14 -0400 Original-Received: from [140.186.70.92] (port=59297 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKxWX-0004Xq-0S for bug-guile@gnu.org; Sat, 05 Jun 2010 13:51:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKxWW-0003p9-1K for bug-guile@gnu.org; Sat, 05 Jun 2010 13:51:08 -0400 Original-Received: from colonialone.fsf.org ([140.186.70.51]:42962 helo=internal.in.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKxWU-0003oX-Hi; Sat, 05 Jun 2010 13:51:06 -0400 Original-Received: from [10.1.0.103] (helo=frontend.in.savannah.gnu.org) by internal.in.savannah.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKxWT-0006Ma-RS; Sat, 05 Jun 2010 17:51:05 +0000 Original-Received: from www-data by frontend.in.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKxWT-0005q5-Ph; Sat, 05 Jun 2010 17:51:05 +0000 X-Savane-Server: savannah.gnu.org:443 [10.1.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 29817 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-2.fc12 Firefox/3.5.9 X-Apparently-From: 80.24.4.74 (Savane authenticated user wingo) In-Reply-To: <20100507-094831.sv15145.86664@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4611 Archived-At: Update of bug #29817 (project guile): Status: None => Fixed Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #1: Source location with IP 25 is not actually invalid, as IP 23 is actually the IP just before the tail-call; 25 is the IP afterwards, where source location info is associated. That part is correct, giving the right location for the procedure call. The fact that there is no source location associated with the definition was a bug in which output introduced by a macro would have no source location information. Logically it actually has at least two source locations: the location of the macro definition, and that of the use. Usually the use location is more useful, which is fortunate as we don't actually have a way to record locations in macro definitions (due to lack of needed fields in syntax objects). So, the solution was to associate the source location of use with output introduced by the macro (i.e. define*). This has been checked into master. _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/