This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tdep/21003] New: GDB crashed on disassembly when arch is set to ARC601


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

            Bug ID: 21003
           Summary: GDB crashed on disassembly when arch is set to ARC601
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: qiyao at gcc dot gnu.org
  Target Milestone: ---

I build GDB on x86_64-linux with all targets enabled,

(gdb) file ../../x86_64/gdb/testsuite/outputs/gdb.base/break/break
Reading symbols from
../../x86_64/gdb/testsuite/outputs/gdb.base/break/break...done.
(gdb) set architecture ARC
ARC600  ARC601  ARC700  ARCv2   
(gdb) set architecture ARC601 
warning: A handler for the OS ABI "GNU/Linux" is not built into this
configuration
of GDB.  Attempting to continue with the default ARC601 settings.

The target architecture is assumed to be ARC601
(gdb) disassemble main
Dump of assembler code for function main:
   0x00400666 <+0>:     
Program received signal SIGABRT, Aborted.
0x00007ffff63c3c37 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt 10
#0  0x00007ffff63c3c37 in __GI_raise (sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff63c7028 in __GI_abort () at abort.c:89
#2  0x00000000007db776 in arc_insn_length (msb=72 'H', lsb=85 'U',
info=0x7fffffffd920) at /home/yao/SourceCode/gnu/gdb/git/opcodes/arc-dis.c:593
#3  0x00000000007dbff8 in print_insn_arc (memaddr=4195942, info=0x7fffffffd920)
at /home/yao/SourceCode/gnu/gdb/git/opcodes/arc-dis.c:900
#4  0x00000000006711d2 in gdb_disassembler::print_insn (this=0x7fffffffd920,
memaddr=<optimised out>) at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:938
#5  0x000000000067145b in gdb_disassembler::pretty_print_insn
(this=this@entry=0x7fffffffd920, uiout=uiout@entry=0x2193490,
insn=insn@entry=0x7fffffffd7f0, 
    flags=flags@entry=4) at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:291
#6  0x0000000000671593 in dump_insns (uiout=uiout@entry=0x2193490,
di=di@entry=0x7fffffffd920, low=low@entry=4195942, high=high@entry=4196112, 
    how_many=how_many@entry=-1, flags=flags@entry=4, end_pc=0x0) at
/home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:443
#7  0x000000000067209d in do_assembly_only (flags=4, how_many=-1, high=4196112,
low=4195942, di=0x7fffffffd920, uiout=0x2193490)
    at /home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:886
#8  gdb_disassembly (gdbarch=gdbarch@entry=0x270aba0, uiout=0x2193490,
file_string=file_string@entry=0x0, flags=flags@entry=4,
how_many=how_many@entry=-1, 
    low=low@entry=4195942, high=4196112) at
/home/yao/SourceCode/gnu/gdb/git/gdb/disasm.c:979
#9  0x000000000058e0cb in print_disassembly (gdbarch=0x270aba0, name=<optimised
out>, low=4195942, high=4196112, flags=4)
    at /home/yao/SourceCode/gnu/gdb/git/gdb/cli/cli-cmds.c:1151

arc-dis.c:arc_insn_length doesn't handle bfd_mach_arc_arc601.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]