Bug 8304

Summary: arm simulater crashes with info threads before app has been started
Product: gdb Reporter: Øyvind Harboe <oyvind.harboe>
Component: simAssignee: Nick Clifton <nickc>
Status: RESOLVED FIXED    
Severity: enhancement CC: gdb-prs, vapier
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Host: Target: arm-*
Build: Last reconfirmed:

Description Øyvind Harboe 2003-05-02 11:58:00 UTC
[Converted from Gnats 1199]

This is a significant problem because e.g. Eclipse.org CDT issues "info threads" all the time in order to update the GUI.

This is the only thing that stops Eclipse CDT from running the arm emulator.

Release:
arm-elf-gdb 3.2/3.3

How-To-Repeat:
C:\Temp\foo>arm-elf-gdb
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf".
(gdb) target sim
Connected to the simulator.
(gdb) info threads
   2891 [main] arm-elf-gdb 316 handle_exceptions: Exception: STATUS_ACCESS_VIOLA
TION
   4162 [main] arm-elf-gdb 316 open_stackdumpfile: Dumping stack trace to arm-el
f-gdb.exe.stackdump
Comment 1 Mike Frysinger 2021-10-31 17:15:52 UTC
seems to have been fixed at some point

$ ./gdb/gdb
GNU gdb (GDB) 12.0.50.20210927-git
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-elf".
(gdb) target sim -EL
Connected to the simulator.
(gdb) info threads
No threads.