This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/492: mips n32 register size incorrect
- From: rth at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 16 Apr 2002 22:46:06 -0000
- Subject: gdb/492: mips n32 register size incorrect
- Reply-to: rth at redhat dot com
>Number: 492
>Category: gdb
>Synopsis: mips n32 register size incorrect
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 16 15:48:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Richard Henderson
>Release: 2002-04-15-cvs
>Organization:
>Environment:
mips-sgi-irix6.5
>Description:
config/mips/tm-irix5.h is under the impression that n32
implies 32-bit registers. In reality, n32 implies mips3
and 64-bit registers.
>How-To-Repeat:
$ gcc -O -g z.c
$ gdb a.out
(gdb) b foo
(gdb) run
(gdb) p/x y
$1 = 0x345678907fff2f34
instead of the expected 0x1234567890.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="z.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="z.c"
bG9uZyBsb25nIHg7CnZvaWQgZm9vKGxvbmcgbG9uZyB5KQp7CiAgeCA9IHk7Cn0KCm1haW4oKQp7
CiAgZm9vKDB4MTIzNDU2Nzg5MCk7Cn0K