From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16346 invoked by alias); 7 Sep 2007 03:39:16 -0000 Received: (qmail 16336 invoked by uid 22791); 7 Sep 2007 03:39:16 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.191) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Sep 2007 03:39:12 +0000 Received: by rv-out-0910.google.com with SMTP id l15so295437rvb for ; Thu, 06 Sep 2007 20:39:11 -0700 (PDT) Received: by 10.141.20.7 with SMTP id x7mr548065rvi.1189136350758; Thu, 06 Sep 2007 20:39:10 -0700 (PDT) Received: by 10.141.51.19 with HTTP; Thu, 6 Sep 2007 20:39:10 -0700 (PDT) Message-ID: <6a6ca2180709062039y4a49e197y88a2e3454971693b@mail.gmail.com> Date: Fri, 07 Sep 2007 05:43:00 -0000 From: treul To: "Jan Kratochvil" Subject: Re: symbol address problem (debugging linux kernel with gdb) Cc: gdb@sources.redhat.com In-Reply-To: <20070906214754.GA8517@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6a6ca2180709060139led36680r7132789d915f4a18@mail.gmail.com> <20070906214754.GA8517@host0.dyn.jankratochvil.net> 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/msg00066.txt.bz2 Hi, Jan Thank you very much! You pointed me in the right direction. I've solved this problem. Regards, -treul 2007/9/7, Jan Kratochvil : > Hi, > > not sure if it is the case but you may be looking for: > http://marc.info/?l=linux-kernel&m=118578550722404 > > the patch is now pending upstream to be rewritten according to: > http://sourceware.org/ml/gdb/2006-08/msg00144.html > > > Regards, > Jan > > > On Thu, 06 Sep 2007 10:39:38 +0200, treul wrote: > > Hi, all > > > > > > I'm using virtual machine to debug linux kernel. > > > > By "nm vmlinux", I find the address of the function do_IRQ() is at > > 0xc0105835. But when I "b do_IRQ", gdb says "Breakpoint 2 at > > 0x80205835: file arch/i386/kernel/irq.c, line 55." The gap of all > > other normal symbols is the same - 0x3ff00000. > > > > In addition, see following: > > ------------------------------------------------------------------ > > (gdb) info symbol 0xc0105835 > > do_IRQ in section .text > > (gdb) info address do_IRQ > > Symbol "do_IRQ" is a function at address 0x80205835. > > ------------------------------------------------------------------ > > > > I don't know why... Please help me on this matter, thank you very much!! > > > > > > -treul >