From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26024 invoked by alias); 27 Mar 2007 11:16:43 -0000 Received: (qmail 26015 invoked by uid 22791); 27 Mar 2007 11:16:43 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Mar 2007 12:16:35 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 9350D4B267; Tue, 27 Mar 2007 06:16:33 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id 6955E4B262; Tue, 27 Mar 2007 06:16:28 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HW9f9-0003wQ-JE; Tue, 27 Mar 2007 07:16:27 -0400 Date: Tue, 27 Mar 2007 11:16:00 -0000 From: Daniel Jacobowitz To: qinwei@sunnorth.com.cn Cc: gdb@sourceware.org Subject: Re: How to avoid "but contains no code." in command "info line"? Message-ID: <20070327111627.GA15136@caradoc.them.org> Mail-Followup-To: qinwei@sunnorth.com.cn, gdb@sourceware.org References: <20070323115751.GB27943@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14+cvs20070313 (2007-03-13) 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: 2007-03/txt/msg00324.txt.bz2 On Tue, Mar 27, 2007 at 12:08:26PM +0800, qinwei@sunnorth.com.cn wrote: > Hi, I tested this on x86: > > 1, compile & dump: > gcc -o t -gstabs+ s2.s tp_bt1.c > objdump -dhs t &>log1 > objdump -G t &>log2 You're using stabs. Don't! DWARF-2 works much better, especially for strange ranges and multiple sections. If it still happens with DWARF-2 I can look into it, but I'm not interested in trying to fix this for stabs. -- Daniel Jacobowitz CodeSourcery