From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FpaWh-0001bh-2s for qemu-devel@nongnu.org; Sun, 11 Jun 2006 20:43:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FpaWf-0001bF-Bf for qemu-devel@nongnu.org; Sun, 11 Jun 2006 20:43:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FpaWf-0001bC-8y for qemu-devel@nongnu.org; Sun, 11 Jun 2006 20:43:29 -0400 Received: from [66.93.172.17] (helo=nevyn.them.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FpafG-0002RW-W5 for qemu-devel@nongnu.org; Sun, 11 Jun 2006 20:52:23 -0400 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FpaWd-0003lX-9Y for qemu-devel@nongnu.org; Sun, 11 Jun 2006 20:43:27 -0400 Date: Sun, 11 Jun 2006 20:43:27 -0400 From: Daniel Jacobowitz Subject: Re: [Qemu-devel] setting MIPS gdb breakpoints have wrong offsets Message-ID: <20060612004327.GA14441@nevyn.them.org> References: <448C218D.7040802@gmail.com> <448C8393.8060802@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <448C8393.8060802@mail.berlios.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sun, Jun 11, 2006 at 10:56:51PM +0200, Stefan Weil wrote: > Hi Dirk, > > when I set a breakpoint to address 0x80000180 ("b *0x80000180"), this > works as expected. So do breakpoints to symbolic addresses in the > Linux kernel. > > "info breakpoints" shows address 0xffffffff80000180 for the first example. > > Maybe "b *0xbfc00380" works for your case. If it does, your mips-gdb > is somehow strange. This means that GDB has (mistakenly) decided that the first assembly instruction in the function is part of a standard function prologue; feel free to report a GDB bug. -- Daniel Jacobowitz CodeSourcery