From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11523 invoked by alias); 6 Sep 2007 21:48:06 -0000 Received: (qmail 11515 invoked by uid 22791); 6 Sep 2007 21:48:05 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Sep 2007 21:48:01 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l86Llxuq012856 for ; Thu, 6 Sep 2007 17:47:59 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l86Llwfa019196 for ; Thu, 6 Sep 2007 17:47:58 -0400 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l86LlugR016757 for ; Thu, 6 Sep 2007 23:47:57 +0200 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.1/8.13.8) with ESMTP id l86LltdZ008625; Thu, 6 Sep 2007 23:47:55 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.1/8.14.1/Submit) id l86LlsrT008624; Thu, 6 Sep 2007 23:47:54 +0200 Date: Fri, 07 Sep 2007 01:17:00 -0000 From: Jan Kratochvil To: treul Cc: gdb@sources.redhat.com Subject: Re: symbol address problem (debugging linux kernel with gdb) Message-ID: <20070906214754.GA8517@host0.dyn.jankratochvil.net> References: <6a6ca2180709060139led36680r7132789d915f4a18@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6a6ca2180709060139led36680r7132789d915f4a18@mail.gmail.com> User-Agent: Mutt/1.5.14 (2007-02-12) 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/msg00062.txt.bz2 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