From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8868 invoked by alias); 8 Jan 2008 20:28:55 -0000 Received: (qmail 8854 invoked by uid 22791); 8 Jan 2008 20:28:54 -0000 X-Spam-Check-By: sourceware.org Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 20:28:27 +0000 Received: by nimbus.ott.qnx.com with Internet Mail Service (5.5.2653.19) id ; Tue, 8 Jan 2008 15:28:21 -0500 Message-ID: <2F6320727174C448A52CEB63D85D11F40A6D@nova.ott.qnx.com> From: Aleksandar Ristovski To: Daniel Jacobowitz Cc: dje@google.com, gdb-patches@sourceware.org Subject: RE: [RFA] patch for DW_AT_comp_dir/DW_AT_name vs .debug_line inco nsistencies Date: Tue, 08 Jan 2008 20:28:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00158.txt.bz2 > Your original example had > "c:/QNXTau/eclipse/ide-4.5-workspace/testManagedCC/main.cc" for the > name, "c:/QNXTau/eclipse/ide-4.5-workspace/testManagedCC/Debug" for > the compilation directory, and ".." and "main.c" in .debug_line. > So .debug_info said > "c:/QNXTau/eclipse/ide-4.5-workspace/testManagedCC/main.cc" and > .debug_line said > "c:/QNXTau/eclipse/ide-4.5-workspace/testManagedCC/Debug/../main.cc". > If there had been a symlink involved, those would have been different > files; they are different paths. > > The compiler should never do this. I still say that this is a bug in > the compiler. Does a more recent version of GCC still do so? GCC > 3.3.5 predates an official FSF port to native Windows. Ok, I finally tried carefully with 4.2.1. It turns out that it outputs different info. Now it really looks like a gcc (3.3.5 on windows) bug: DW_AT_name : ..\main.cc>~~~~$ DW_AT_comp_dir : C:\QNXTau\eclipse\ide-4.5-workspace\testManagedCC\Debug> DW_AT_name : ..\main.cc>~~~~$ DW_AT_comp_dir : C:\QNXTau\eclipse\ide-4.5-workspace\testManagedCC\Debug> I was mislead with the fact that if I debug binary compiled with gcc 4.2.1 on linux gdb, it is still failing to set a breakpoint: +b main.cc:12 No source file named main.cc. But now it is failing for different reasons, most probably due to IS_ABSOLUTE_PATH stuff. Thanks, Aleksandar Ristovski