bug-gdb
[Top][All Lists]
Advanced

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

Confusing ARM Disassembly, gdb-5.0


From: Frank Yellin
Subject: Confusing ARM Disassembly, gdb-5.0
Date: Fri, 13 Jul 2001 11:29:02 -0700 (PDT)

Chris Plummer of Sun Microsystems discovered the following bug in the gdb
disassembler for ARM.

If your assembler code contains:
       ldr   r0, [r0, #16]
       ldr   r1, [pc, #16]

The gdb dissassembler will print out
       ldr   r0, [r0, #16]
       ldr   r1, [pc, #10]  ; <actual address>

This is clearly confusing.  The first offset is decimal, while the second
is hexadecimal.  Yet there is no indication of this.

There are three occurrences of the printf format #%x in arm-dis.c.  
All three should either be changed either to #%d  or to #0x%x

== Frank Yellin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]