From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16084 invoked by alias); 6 Oct 2011 20:19:04 -0000 Received: (qmail 16062 invoked by uid 22791); 6 Oct 2011 20:19:01 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Oct 2011 20:18:44 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p96KIigx022138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 6 Oct 2011 16:18:44 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p96KIfuE017646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 6 Oct 2011 16:18:43 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p96KIeId003359; Thu, 6 Oct 2011 22:18:40 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p96KIdcf003358; Thu, 6 Oct 2011 22:18:39 +0200 Date: Thu, 06 Oct 2011 20:19:00 -0000 From: Jan Kratochvil To: Andrew Burgess Cc: "gdb@sourceware.org" Subject: Re: Line Table Problems Message-ID: <20111006201839.GA3114@host1.jankratochvil.net> References: <4E8C4CD2.9070703@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E8C4CD2.9070703@broadcom.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-10/txt/msg00038.txt.bz2 On Wed, 05 Oct 2011 14:25:54 +0200, Andrew Burgess wrote: > My question then is, am I doing something wrong, what could I do > differently to get gdb to give me the full file/line-number > information, or does this look like a gdb bug? I am not posting a fix, just that you guessed the reason right and it is due to that mode `3' you use there: if (mode & 0x1) disasm_flags |= DISASSEMBLY_SOURCE; which is the same as /m for the CLI `disassemble' command which is filed as: [Bug gdb/11833] New: disassemble/m should be PC-driven, not source line driven http://sourceware.org/bugzilla/show_bug.cgi?id=11833 Thanks, Jan