From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13092 invoked by alias); 5 Apr 2003 17:24:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13082 invoked from network); 5 Apr 2003 17:24:20 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 5 Apr 2003 17:24:20 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id EBC7F2B23; Sat, 5 Apr 2003 12:24:15 -0500 (EST) Message-ID: <3E8F113F.4030007@redhat.com> Date: Sat, 05 Apr 2003 17:24:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nick Roberts Cc: bob_rossi@cox.net, gdb@sources.redhat.com Subject: Re: Add fullname to breakpoint output References: <16013.56871.250844.888037@nick.uklinux.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00055.txt.bz2 >> > (gdb) -break-insert main >> > ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y", >> > addr="0x080483c3",func="main",fullname="/home/bob/cvs/src/gdb/test.c", >> > file="test.c",line="8",times="0"} >> > (gdb) > > >> > I would like confirmation on this before I go through the effort to >> > fix the testsuite. > > > The CLI output doesn't give the absolute pathname: Just FYI, this is an MI only change. The CLI will not be affected. Andrew > (gdb) break main > Breakpoint 1 at 0x804856c: file mytest.c, line 36. > > so doesn't this add to the inconsistency? Since, as has been said before, on > stopping CLI gives the absolute pathname: > > (gdb) run > Starting program: /home/nick/mytest > > Breakpoint 1, main (argc=1, argv=0xbffff7d4) at mytest.c:36 > ^Z^Z/home/nick/mytest.c:36:466:beg:0x804856c > (gdb) > > while MI gives the relative pathname: > > -exec-run > ^running > (gdb) > *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x0804856c",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff7d4"}],file="mytest.c",line="36"} > > I don't think any of this would matter much if the search path for source > files could be accessed by the front-end. Currently, however, unlike `path', > `dir' resets rather than lists the current setting and the front-end can't > (easily) access $cdir. > > Would it be a good idea to make the source path, $cdir, $cwd read-only > convenience variables? > > Nick >