From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21492 invoked by alias); 2 Mar 2009 21:28:03 -0000 Received: (qmail 21472 invoked by uid 48); 2 Mar 2009 21:28:02 -0000 Date: Mon, 02 Mar 2009 21:28:00 -0000 Message-ID: <20090302212802.21471.qmail@sourceware.org> From: "seb dot sfo at free dot fr" To: gdb-prs@sourceware.org In-Reply-To: <20080720111801.9583.seb.sfo@free.fr> References: <20080720111801.9583.seb.sfo@free.fr> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug mi/9583] -break-insert failed when several source files have the same name X-Bugzilla-Reason: CC 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 X-SW-Source: 2009-q1/txt/msg00315.txt.bz2 ------- Additional Comments From seb dot sfo at free dot fr 2009-03-02 21:28 ------- Created an attachment (id=3786) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3786&action=view) A fix for this bug I have made some investigations. In linespec.c:decode_line_1, symtab_from_filename get the right file, but then it goes through decode_all_digits, calling find_line_symtab, which returns the wrong one. In symtab.c:find_line_symtab. Only the filename (without its path) is compared so it can return completely unrelated symbols. This patch tries to use the full path name if possible and fix the issue here. There is another very similar piece of code in symtab.c:expand_line_sal. I haven't change it because I don't know exactly when this code is executed. But it probably has exactly the same problem as only the file names are compared. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9583 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.