Re: gdb for mips64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ftp.gnu.org, then file a bug report at
http://sourceware.org/gdb/bugs/.


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



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux