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

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to