From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31141 invoked by alias); 15 May 2013 21:22:17 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 31114 invoked by uid 48); 15 May 2013 21:22:17 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug mi/15472] New: Printing of "fullname" when the file is missing is causing problems for Eclipse Date: Wed, 15 May 2013 21:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00271.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15472 Bug #: 15472 Summary: Printing of "fullname" when the file is missing is causing problems for Eclipse Product: gdb Version: 7.6 Status: NEW Severity: normal Priority: P2 Component: mi AssignedTo: unassigned@sourceware.org ReportedBy: dje@google.com Classification: Unclassified We have a bug report where a user is seeing the following: Can't find a source file at "/foo/bar/baz.cc" Locate the file or edit the source lookup path to include its location. The sources are in a different location from where they were originally compiled when this happens. The change in behaviour from 7.5 to 7.6 is that the output now includes "fullname" even if the file isn't found, and I think(!) this is what causes Eclipse trouble. Repro: [I'm using -fdebug-prefix-map and "b main" as a hack. The real example does something different.] cd $HOME gcc -g -fdebug-prefix-map=$HOME=. hello.c cd /tmp gdb -i=mi2 $HOME/a.out [...] b main &"b main\n" ~"Breakpoint 1 at 0x4004f8: file hello.c, line 6.\n" =breakpoint-created,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000000004004f8",func="main",file="hello.c",fullname="./hello.c",line="6",thread-groups=["i1"],times="0",original-location="main"} ^done (gdb) With 7.5 the "fullname" field is elided and Eclipse uses the "file" field to find hello.c. [Eclipse has its own source search path.] -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.