Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » GDB error in eclipse: Invalid thread id: 1
GDB error in eclipse: Invalid thread id: 1 [message #1850914] Tue, 22 March 2022 07:44
Dirk Freitag is currently offline Dirk FreitagFriend
Messages: 5
Registered: March 2022
Junior Member
I try to debug an out-file with gdb in eclipse Version: Version: 2021-12 (4.22.0)
Build id: 20211202-1639. With using gdb (11.2) in a command shell I could start the gdb and set breakpoints without any errors. In the output I could see that several threads are created:


[New Thread 8200.0x2188]
[New Thread 8200.0x4274]
[New Thread 8200.0x276c]
[New Thread 8200.0x2a4c

But if I try to start the debugger in eclipse I always got the error message msg="Invalid thread id:

678,005 2-gdb-version
678,008 ~"GNU gdb (GDB) 11.2\n"
678,008 ~"Copyright (C) 2022 Free Software Foundation, Inc.\n"
678,008 ~"License GPLv3+: GNU GPL version 3 or later
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law."
678,008 ~"\nType \"show copying\" and \"show warranty\" for details.\n"
678,008 ~"This GDB was configured as \"x86_64-w64-mingw32\".\n"
678,008 ~"Type \"show configuration\" for configuration details.\n"
678,009 ~"For bug reporting instructions, please see:\n"
678,009 ~"<../gdb/bugs/>.\n"
678,009 ~"Find the GDB manual and other documentation resources online at:\n <...gnu.org/\
software/gdb/documentation/>."
678,009 ~"\n\n"
678,009 ~"For help, type \"help\".\n"
678,009 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
678,009 2^done
678,009 (gdb)
678,010 3-environment-cd "C:/Projects/03_SourceCode"
678,024 3^done
678,024 (gdb)
678,025 4-gdb-set breakpoint pending on
678,039 4^done
678,039 (gdb)
678,040 5-enable-pretty-printing
678,055 5^done
678,055 (gdb)
678,055 6-gdb-set python print-stack none
678,071 6^done
678,071 (gdb)
678,071 7-gdb-set print object on
678,086 7^done
678,086 (gdb)
678,087 8-gdb-set print sevenbit-strings on
678,101 8^done
678,101 (gdb)
678,101 9-gdb-set charset ISO-8859-1
678,117 9^done
678,117 (gdb)
678,118 10-gdb-set dprintf-style gdb
678,132 10^done
678,132 (gdb)
678,133 11source .gdbinit
678,148 &"source .gdbinit\n"
678,148 &".gdbinit: No such file or directory.\n"
678,148 11^error,msg=".gdbinit: No such file or directory."
678,149 (gdb)
678,149 12-gdb-set target-async off
678,164 ~"Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.\n"
678,164 ~"Use 'set mi-async'.\n\n"
678,164 12^done
678,164 (gdb)
678,165 13-gdb-set auto-solib-add on
678,180 13^done
678,180 (gdb)
678,182 14-file-exec-file C:\\Temp\\test_Bdrv_Generic.out
678,197 14^done
678,197 (gdb)
678,197 15-gdb-show --thread-group i1 language
678,211 15^done,value="auto"
678,211 (gdb)
678,211 16-gdb-set --thread-group i1 language c
678,227 16^done
678,227 (gdb)
678,227 17-interpreter-exec --thread-group i1 console "p/x (char)-1"
678,242 ~"$1 = 0xff\n"
678,242 17^done
678,242 (gdb)
678,243 18-data-evaluate-expression --thread-group i1 "sizeof (void*)"
678,257 18^done,value="8"
678,257 (gdb)
678,257 19-gdb-set --thread-group i1 language auto
678,273 19^done
678,273 (gdb)
678,274 20-interpreter-exec --thread-group i1 console "show endian"
678,289 ~"The target endianness is set automatically (currently little endian).\n"
678,289 20^done
678,289 (gdb)
678,290 21-break-list
678,290 22-stack-info-depth --thread 1
678,291 23-list-thread-groups
678,304 21^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="nu\
mber",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="\
-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width\
="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",col\
hdr="What"}],body=[]}
678,304 (gdb)
678,304 22^error,msg="Invalid thread id: 1"
678,305 (gdb)
678,305 23^done,groups=[{id="i1",type="process",executable="C:\\Temp\\test_Bdrv_Generic.out"}]
678,305 (gdb)
678,305 24-stack-list-frames --thread 1
678,320 24^error,msg="Invalid thread id: 1"
678,320 (gdb)


Do you have any idea, what is going wrong here, or is it a bug?

Thanks for your help!!

Best regards
Dirk

Previous Topic:Java stack overflow error
Next Topic:recognizing .proto extensions
Goto Forum:
  


Current Time: Thu Apr 25 04:21:16 GMT 2024

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

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

Back to the top