[Top] [All Lists]

Re: gdb for mips64

To: "Maciej W. Rozycki" <>
Subject: Re: gdb for mips64
From: David Daney <>
Date: Tue, 26 Oct 2010 10:19:37 -0700
Cc: Camm Maguire <>,, Frederick Isaac <>,, linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7
On 10/26/2010 05:47 AM, Maciej W. Rozycki wrote:
On Mon, 25 Oct 2010, David Daney wrote:

I don't think a 32-bit gdb can debug 64-bit processes :-(.

  And it should (assuming ptrace(2) gets things right) -- if what you say
is true, then it's a bug rather than a deliberate design decision.  To add
some irony, MIPS GDB is always 64-bit internally.

(gdb) r
Starting program: /home/camm/gcl-2.6.8pre/unixport/saved_pre_gcl
/home/wingsun/develop/build/gdb/gdb-6.8/gdb/mips-tdep.c:603: internal-error:
bad register size
A problem internal to GDB has been detected,
further debugging may prove unreliable.

  Try a newer version though -- GDB 7.2 has been out for a (short) while
now.  You're missing 2.5 years of development.  If still unsuccessful with
a pristine release from, then file a bug report at

After more though, I think you may have to configure with --enable-64-bit-bfd for a 32-bit gdb to work on 64-bit processes. Although I have not actually tested that. In the past, I have just built a native 64-bit gdb.

David Daney

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