Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Remote connection closed after "list-thread-groups"(Connection is closed after "list-thread-groups" when connected to SAM-ICE (segger))
Remote connection closed after "list-thread-groups" [message #757507] Fri, 18 November 2011 17:11 Go to next message
larytet  is currently offline larytet Friend
Messages: 2
Registered: November 2011
Junior Member
Hi,

I am trying to work with GDB server which comes with the JTAG SAM-ICE. Linux+Helios

Version: Helios Service Release 2
Build id: 20110218-0911


I am using CDT from download.eclipse.org/tools/cdt/releases/helios 7.0.2 (February 25, 2011)

I am getting "connection closed" after "list-thread-groups" (see below). Should I use different JTAG/server? I will appreciate any tip.

Thank you, Arkady.

254,768 (gdb) 
254,779 6target remote localhost:2331

254,780 &"target remote localhost:2331\n"
254,799 ~"Remote debugging using localhost:2331\n"
254,822 7-list-thread-groups
254,909 =thread-group-started,id="i1",pid="42000"
254,910 =thread-created,id="1",group-id="i1"
254,911 8-list-thread-groups --available
256,174 =thread-group-exited,id="i1"
256,174 &"Remote connection closed\n"
256,174 ~"/scratch/janisjo/arm-eabi-lite/obj/gdb-src-2011.03-42-arm-none-eabi-i686-pc-linux-gnu/gdb/\
thread.c:79: internal-error: inferior_thread: Assertion `tp' failed.\nA problem internal to GDB has \
been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? "
256,174 ~"(y or n) [answered Y; input not from terminal]\n"
256,174 ~"/scratch/janisjo/arm-eabi-lite/obj/gdb-src-2011.03-42-arm-none-eabi-i686-pc-linux-gnu/gdb/\
thread.c:79: internal-error: inferior_thread: Assertion `tp' failed.\nA problem internal to GDB has \
been detected,\nfurther debugging may prove unreliable.\nCreate a core file of GDB? "
256,175 ~"(y or n) [answered Y; input not from terminal]\n"

[Updated on: Fri, 18 November 2011 17:13]

Report message to a moderator

Re: Remote connection closed after "list-thread-groups" [message #757547 is a reply to message #757507] Fri, 18 November 2011 20:51 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
It looks like your JTAG/server does not support the -list-thread-groups --available command. Make sure that the version of GDB you use on the host matches the version of the server on the target. If you have a proprietary server, you have to use the GDB that it was built for.

You can try this by hand by starting GDB like this:

gdb -i mi

and then copy/pasting each command eclipse sends. You will then see
that the problem happens between GDB and the server.

Marc
Re: Remote connection closed after "list-thread-groups" [message #757565 is a reply to message #757547] Sat, 19 November 2011 10:36 Go to previous message
larytet  is currently offline larytet Friend
Messages: 2
Registered: November 2011
Junior Member
Thank you, Mark. This is very likely because GDB and the server are from different packages. Is there any way to prevent GDB to attempt to get a list of threads? I do not have any threads in the system, This is a FreeRTOS based code.
Previous Topic:header and source files?
Next Topic:beginner's input/output problem..
Goto Forum:
  


Current Time: Thu Mar 28 11:32:15 GMT 2024

Powered by FUDForum. Page generated in 0.03431 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top