[Bug gdb/25124] [ARM] regression: thumb-bx-pc.exp

luis.machado at linaro dot org sourceware-bugzilla@sourceware.org
Mon Oct 28 20:56:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25124

--- Comment #1 from Luis Machado <luis.machado at linaro dot org> ---
I've reproduced this with gdb master.

(gdb) disass main
Dump of assembler code for function main:
   0x00010400 <+0>:     push    {r7, lr}
   0x00010402 <+2>:     sub     sp, #8
   0x00010404 <+4>:     add     r7, sp, #0
   0x00010406 <+6>:     str     r0, [r7, #4]
   0x00010408 <+8>:     str     r1, [r7, #0]
   0x0001040a <+10>:    ldr     r3, [pc, #16]   ; (0x1041c <main+28>)
   0x0001040c <+12>:    movs    r0, r3
   0x0001040e <+14>:    bl      0x102dc <puts@plt>
   0x00010412 <+18>:    movs    r3, #0
   0x00010414 <+20>:    movs    r0, r3
   0x00010416 <+22>:    mov     sp, r7
   0x00010418 <+24>:    add     sp, #8
   0x0001041a <+26>:    pop     {r7, pc}
   0x0001041c <+28>:    muleq   r1, r0, r4
End of assembler dump.
(gdb) file hello_arm
Load new symbol table from "hello_arm"? (y or n) y
Reading symbols from hello_arm...
(gdb) disass main
Dump of assembler code for function main:
   0x00010400 <+0>:     push    {r7, lr}
   0x00010402 <+2>:     sub     sp, #8
   0x00010404 <+4>:     add     r7, sp, #0
   0x00010406 <+6>:     str     r0, [r7, #4]
   0x00010408 <+8>:     str     r1, [r7, #0]
   0x0001040a <+10>:    ldr     r3, [pc, #16]   ; (0x1041c <main+28>)
   0x0001040c <+12>:    movs    r0, r3
   0x0001040e <+14>:    bl      0x102dc <puts@plt>
   0x00010412 <+18>:    movs    r3, #0
   0x00010414 <+20>:    movs    r0, r3
   0x00010416 <+22>:    mov     sp, r7
   0x00010418 <+24>:    add     sp, #8
   0x0001041a <+26>:    pop     {r7, pc}
   0x0001041c <+28>:    lsls    r0, r2, #18
   0x0001041e <+30>:    movs    r1, r0
End of assembler dump.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list