From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16006 invoked by alias); 20 Jul 2008 23:37:50 -0000 Received: (qmail 15996 invoked by uid 22791); 20 Jul 2008 23:37:49 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 20 Jul 2008 23:37:32 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 692153B77D; Sun, 20 Jul 2008 16:37:30 -0700 (PDT) Subject: Re: Is add-symbol-files broken on 64bit? (Need help!!!) From: Michael Snyder To: Neo Jia Cc: gdb@gnu.org, gdb@sourceware.org In-Reply-To: <5d649bdb0807180102l6d453ed0rb2ba277812095e12@mail.gmail.com> References: <5d649bdb0807180100u58ec702g2a79a43173736dc8@mail.gmail.com> <5d649bdb0807180102l6d453ed0rb2ba277812095e12@mail.gmail.com> Content-Type: text/plain Date: Mon, 21 Jul 2008 00:26:00 -0000 Message-Id: <1216597050.3549.442.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit 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: 2008-07/txt/msg00230.txt.bz2 I have a vague recollection to the effect that kernel modules can be debugged in somewhat the same manner as shared libraries, but a quick google search didn't turn up anything very useful. Never done it myself, don't know anything more specific than that. On Fri, 2008-07-18 at 01:02 -0700, Neo Jia wrote: > Sorry, re-send with plain-text. > > Thanks, > Neo > > On Fri, Jul 18, 2008 at 1:00 AM, Neo Jia wrote: > > > > hi, > > > > I am using the gdb to debug Linux kernel module on x86-64 bit with a patched kernel (kgdb). Everything works fine for the kernel itself, I can break on any functions, and see the sources. But, I can't break on the symbols in the kernel module after it is loaded. I used the "add-symbol-files" to add the sections for that loadable module. > > > > The same setup works fine for 32bit and I even can see the symbols/sources by running gdb directly against the 64bit .ko file. > > > > Any suggestions? I am struggling with this question for a long time. > > > > Thanks, > > Neo > > > > -- > > I would remember that if researchers were not ambitious > > probably today we haven't the technology we are using! > > > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using!