[Top] [All Lists]

Re: gdb disassemble bug

To: Daniel Jacobowitz <>
Subject: Re: gdb disassemble bug
From: Florian Lohoff <>
Date: Fri, 8 Feb 2002 23:18:49 +0100
In-reply-to: <>
Organization: rfc822 - pure communication
References: <> <>
User-agent: Mutt/1.3.27i
On Fri, Feb 08, 2002 at 05:10:51PM -0500, Daniel Jacobowitz wrote:
> On Fri, Feb 08, 2002 at 10:58:51PM +0100, Florian Lohoff wrote:
> > 0x88166b58 <probe_scache+188>:      mtc0    zero,gp
> > 0x88166b5c <probe_scache+192>:      nop
> > 0x88166b60 <probe_scache+196>:      mtc0    zero,sp
> > 0x88166b64 <probe_scache+200>:      nop
> > 
> > mtc0/mfc0 do not address cpu registers but CP0 registers. The decoding
> > as "gp" or "sp" is not correct. These are "TagLo" and "TagHi".
>   - what version of GDB?
>   - does objdump do the same thing?

reset:~# gdb --version
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "mips-linux".
reset:~# dpkg -l gdb
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
ii  gdb            5.1-1          The GNU Debugger

Objdump does seem to get this right:

88166b58:       4080e000        mtc0    zero,$28
88166b60:       4080e800        mtc0    zero,$29

Florian Lohoff                     +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpvViZ9HCps4.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>