From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23804 invoked by alias); 28 Sep 2007 21:13:12 -0000 Received: (qmail 23796 invoked by uid 22791); 28 Sep 2007 21:13:12 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Sep 2007 21:13:10 +0000 Received: (qmail 13384 invoked from network); 28 Sep 2007 21:13:09 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Sep 2007 21:13:09 -0000 To: Jon Ringle Cc: Jon Ringle , gdb@sourceware.org Subject: Re: No line number info debugging kernel modules with gdb 6.6.90.20070926-cvs (gdb 6.7 branch) References: <4DD3AF7ECBBC43409BA36508938D01851B00AE@CVAEX1.VERTICAL.COM> <46FC7961.2080706@ringle.org> From: Jim Blandy Date: Fri, 28 Sep 2007 21:32:00 -0000 In-Reply-To: <46FC7961.2080706@ringle.org> (Jon Ringle's message of "Thu, 27 Sep 2007 23:47:45 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-09/txt/msg00254.txt.bz2 Jon Ringle writes: > Jim Blandy wrote: >> Hum. What do 'maint info psymtabs' and 'maint info symtabs' say after >> you've set the breakpoint? >> > Trying to send the attachment again... Okay, I got a copy of that attachment; thanks. Could you start GDB, set the breakpoint and try listing the function again, then do 'maint print symbols SOME-FILE dstchar.c' (or perhaps use the full pathname for dstchar.c), and then post the contents of SOME-FILE? If GDB has line number information for that compilation unit, then find_pc_sect_line ought to be able to find the source line for your function's PC. I'd like to see whether it does have that information.