From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7736 invoked by alias); 29 Sep 2007 01:28:40 -0000 Received: (qmail 7728 invoked by uid 22791); 29 Sep 2007 01:28:39 -0000 X-Spam-Check-By: sourceware.org Received: from rwcrmhc15.comcast.net (HELO rwcrmhc15.comcast.net) (204.127.192.85) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 29 Sep 2007 01:28:37 +0000 Received: from [192.168.74.20] (c-71-62-243-179.hsd1.va.comcast.net[71.62.243.179]) by comcast.net (rwcrmhc15) with ESMTP id <20070929012834m1500c6dk5e>; Sat, 29 Sep 2007 01:28:35 +0000 Message-ID: <46FDAA42.6060105@ringle.org> Date: Sat, 29 Sep 2007 02:06:00 -0000 From: Jon Ringle User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Jim Blandy , 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> <46FD72CE.9080603@ringle.org> <20070929002707.GA6310@caradoc.them.org> In-Reply-To: <20070929002707.GA6310@caradoc.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00262.txt.bz2 Daniel Jacobowitz wrote: > On Fri, Sep 28, 2007 at 04:49:43PM -0700, Jim Blandy wrote: > >> Okay. Some of the line table entries have been relocated into the >> module's actual range (0xbf13100 on up), but others still look to me >> like offsets within the .ko. Can you post the output from running >> 'readelf -wil' on your .ko file? >> > > add-symbol-file doesn't relocate everything. You have to give it a > separate value for every section. > > So, do I need to put all the sections that I find in /sys/module/dstdrv/sections/.[a-z]* on the target or is there a specific subset of this that would suffice? [root@isc1 ~]# ls /sys/module/dstdrv/sections/.[a-z]* /sys/module/dstdrv/sections/.bss /sys/module/dstdrv/sections/.rodata /sys/module/dstdrv/sections/.data /sys/module/dstdrv/sections/.rodata.str1.8 /sys/module/dstdrv/sections/.exit.text /sys/module/dstdrv/sections/.strtab /sys/module/dstdrv/sections/.gnu.linkonce.this_module /sys/module/dstdrv/sections/.symtab /sys/module/dstdrv/sections/.init.text /sys/module/dstdrv/sections/.text