From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24381 invoked by alias); 24 Jul 2008 20:39:34 -0000 Received: (qmail 24366 invoked by uid 22791); 24 Jul 2008 20:39:32 -0000 X-Spam-Check-By: sourceware.org Received: from smtp7-g19.free.fr (HELO smtp7-g19.free.fr) (212.27.42.64) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 Jul 2008 20:39:12 +0000 Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id 3373CB00E6 for ; Thu, 24 Jul 2008 22:39:10 +0200 (CEST) Received: from [192.168.0.11] (cvl92-3-82-247-217-100.fbx.proxad.net [82.247.217.100]) by smtp7-g19.free.fr (Postfix) with ESMTP id 9AD8BB0134 for ; Thu, 24 Jul 2008 22:39:09 +0200 (CEST) Message-ID: <4888E89A.8090704@free.fr> Date: Thu, 24 Jul 2008 21:44:00 -0000 From: =?ISO-8859-1?Q?S=E9bastien_Granjoux?= User-Agent: Thunderbird 2.0.0.12 (X11/20080305) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Breakpoint doesn't take in account full name in gdb 6.8 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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/msg00259.txt.bz2 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 ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="", pending="/home/seb/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232", times="0"} (gdb) -exec-run ^running (gdb) *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"} (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"}]} I have tried without using mi2 commands and get the same result. Tell me if you need more information about this bug. Sébastien