From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17872 invoked by alias); 13 Apr 2006 19:58:52 -0000 Received: (qmail 17856 invoked from network); 13 Apr 2006 19:58:46 -0000 Received: from unknown (192.220.74.81) by sourceware.org with QMTP; 13 Apr 2006 19:58:46 -0000 Received: (qmail 99040 invoked by uid 19025); 13 Apr 2006 19:58:45 -0000 Date: Thu, 13 Apr 2006 19:58:00 -0000 From: Jason Molenda To: Frederic RISS Cc: GDB Patches Subject: Re: [RFC] Don't loose compilation directory in Dwarf2 line-tables Message-ID: <20060413125845.A98448@molenda.com> References: <1144927446.14807.561.camel@crx549.cro.st.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1144927446.14807.561.camel@crx549.cro.st.com>; from frederic.riss@st.com on Thu, Apr 13, 2006 at 01:24:06PM +0200 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00170.txt.bz2 Frederic, For what it's worth, I fixed the same bug yesterday. Our changes are similar - in dwarf2_start_subfile I used this code at the end of the function: /* APPLE LOCAL: If FILENAME isn't an absolute path and DIRNAME is either NULL or a relative path, prepend COMP_DIR on there to get an absolute path. */ if (!IS_ABSOLUTE_PATH (filename) && dirname == NULL) dirname = comp_dir; else if (!IS_ABSOLUTE_PATH (filename) && !IS_ABSOLUTE_PATH (dirname)) { dirname = concat (comp_dir, SLASH_STRING, dirname, (char *) NULL); make_cleanup (xfree, dirname); } start_subfile (filename, dirname); do_cleanups (clean); (with 'cleanup' initialized to a null_cleanup at the top of the file, naturally.) J