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

luis.machado at linaro dot org sourceware-bugzilla@sourceware.org
Mon Oct 21 12:30:00 GMT 2019


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

            Bug ID: 25124
           Summary: [ARM] regression: thumb-bx-pc.exp
           Product: gdb
           Version: 8.3.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: luis.machado at linaro dot org
  Target Milestone: ---
            Target: arm thumb

Reported on gdb@... Confirmed on 8.3.1.

---

Hi,
When I was doing a regression test, I found a problem from thumb-bx-pc.exp.  I
load a symbol table by file command, then I use ‘disassemble main’ command and
the result is correct.
When I use file command again to load the same symbol table, the result of
‘disassemble main’ is wrong. Here's the log.

GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-elf-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) file
"/home/juntao_zhao/debugger/test/8_2_repo_sdlc/run/outputs/gdb.arch/thumb-bx-pc/thumb-bx-pc"
Reading symbols from
/home/juntao_zhao/debugger/test/8_2_repo_sdlc/run/outputs/gdb.arch/thumb-bx-pc/thumb-bx-pc...done.
(gdb) disassemble main
Dump of assembler code for function main:
    0x0000821c <+0>:     bx      pc
    0x0000821e <+2>:     nop
    0x00008220 <+4>:     mov     r0, #0
    0x00008224 <+8>:     bx      lr
End of assembler dump.
(gdb) file
"/home/juntao_zhao/debugger/test/8_2_repo_sdlc/run/outputs/gdb.arch/thumb-bx-pc/thumb-bx-pc"
Load new symbol table from
"/home/juntao_zhao/debugger/test/8_2_repo_sdlc/run/outputs/gdb.arch/thumb-bx-pc/thumb-bx-pc"?
(y or n) y
Reading symbols from
/home/juntao_zhao/debugger/test/8_2_repo_sdlc/run/outputs/gdb.arch/thumb-bx-pc/thumb-bx-pc...done.
(gdb) disassemble  main
Dump of assembler code for function main:
    0x0000821c <+0>:     bx      pc
    0x0000821e <+2>:     nop
    0x00008220 <+4>:     movs    r0, r0
    0x00008222 <+6>:     b.n     0x8966
    0x00008224 <+8>:     vrhadd.u16      d14, d14, d31
End of assembler dump.

I'm surprised and I don't know why. Could you give me some advice?

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


More information about the Gdb-prs mailing list