This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1843: gdb produces incorrect disassmbly for powerpc load/stores
- From: desrt at desrt dot ca
- To: gdb-gnats at sources dot redhat dot com
- Cc: wolfgang dot thaller at gmx dot net
- Date: 10 Jan 2005 23:01:05 -0000
- Subject: gdb/1843: gdb produces incorrect disassmbly for powerpc load/stores
- Reply-to: desrt at desrt dot ca
>Number: 1843
>Category: gdb
>Synopsis: gdb produces incorrect disassmbly for powerpc load/stores
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 10 23:08:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator: desrt@desrt.ca
>Release: 6.0, 6.1
>Organization:
>Environment:
PowerPC 64 and 32, running Linux
>Description:
On powerpc with immediate indexed loads and stores, an instruction of the format:
lwz r3, 8(r4)
Will load from memory location r4 + 8 into register r3.
However, in the event that you give "0" as the memory offset register, it means literal 0, not r0 and is shown:
lwz r3, 8(0)
(to mean load 'r3' from address 0x00000008)
gdb gets this wrong, and displays:
0x10000094 <_start+0>: lwz r3,8(r0)
Similarly, for the register-indexed load/stores (like 'stwx'):
0x10000094 <_start+0>: stwx r3,r0,r24
should be 'stwx r3, 0, 24'.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: