From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 445 invoked by alias); 21 Aug 2007 14:00:18 -0000 Received: (qmail 32754 invoked by uid 22791); 21 Aug 2007 14:00:15 -0000 X-Spam-Check-By: sourceware.org Received: from smtp2.global.net.uk (HELO smtp2.global.net.uk) (80.189.94.52) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Aug 2007 14:00:09 +0000 Received: from [80.189.249.164] (helo=NTHOME) by smtp2.global.net.uk with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1INUH8-000GJz-Sw for gdb@sources.redhat.com; Tue, 21 Aug 2007 15:00:07 +0100 From: "Spen" To: Subject: Breakpoint function address Date: Tue, 21 Aug 2007 14:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Message-Id: Authenticated-Sender: 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: 2007-08/txt/msg00150.txt.bz2 Hi, I have just updated to using gdb 6.6 from 6.5 (actually using insight). Part of my startup script is to set a breakpoint @ main: thb main This has been fine under 6.5 but seems to have broken under 6.6 (also tried cvs head). The problem occurs if I link with the gc-sections option, removing this option the breakpoints are set correctly. With gc-secions thb main will set the breakpoint @ 0x00000004 gdb 6.6 (gdb head does not) reports the following when loading the file: misplaced first line number at 0x48 for 'VICITCmd' Without gc-sections thb main set to 0x0000028c as expected. print main produces (with/without gc-sections). $1 = {int (void)} 0x27c
My target is remote arm-elf (using openocd) running under cygwin. The same problem occurs if building under gcc 3.4.6 or 4.2. Any help would be greatly appreciated. Cheers Spen