From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17318 invoked by alias); 25 Jul 2008 05:52:19 -0000 Received: (qmail 17308 invoked by uid 22791); 25 Jul 2008 05:52:18 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Jul 2008 05:51:58 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KMGDa-0007io-2y for gdb@sources.redhat.com; Fri, 25 Jul 2008 05:51:54 +0000 Received: from 78.158.192.230 ([78.158.192.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2008 05:51:54 +0000 Received: from vladimir by 78.158.192.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Jul 2008 05:51:54 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Breakpoint doesn't take in account full name in gdb 6.8 Date: Fri, 25 Jul 2008 08:00:00 -0000 Message-ID: References: <4888E89A.8090704@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00265.txt.bz2 Sébastien Granjoux wrote: > Hello, > > Gdb 6.8 breakpoints don't take care of the path of the source files. > > I'm debugging a program which includes several source files having the > same name (in different directories). The program is compiled with > debugging information including the full path and gdb 6.6 was working > fine on this. Now, when I set a breakpoint in one of these files, the > program stopped in the first file found even if I have set the > breakpoint in another file. > > I was using mi2 interpreter and I get the following: > > gdb -interpreter=mi2 /usr/local/bin/anjuta > > (gdb) > -break-insert -f > /home/seb/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232 .... > *stopped,reason="breakpoint-hit",bkptno="1",thread-id="1", > frame={addr="0xb5532c72",func="atp_plugin_class_init", > args=[{name="klass",value="0x8607488"}],file="plugin.c", > fullname="/home/seb/Programmation/Anjuta/anjuta/plugins/tools/plugin.c",line="232"} What functions are at the location where you've set breakpoint, and at the location where GDB has stopped. > (gdb) > -break-list > ^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[ > {width="7",alignment="-1",col_name="number",colhdr="Num"}, > {width="14",alignment="-1",col_name="type",colhdr="Type"}, > {width="4",alignment="-1",col_name="disp",colhdr="Disp"}, > {width="3",alignment="-1",col_name="enabled",colhdr="Enb"}, > {width="10",alignment="-1",col_name="addr",colhdr="Address"}, > {width="40",alignment="2",col_name="what",colhdr="What"}], > body=[bkpt={number="1", type="breakpoint", disp="keep", enabled="y", > addr="", addr="0xb57917dd",times="1"}]} What is the output of "info break"? - Volodya