This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/492: mips n32 register size incorrect



>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]