Tiny Core Extensions > TCE Q&A Forum
Setup dgb for multi-threaded debug
Kurvivor19:
I am trying to compile and debud a multi-threaded program (pthreads). I have compiled it succesfully, however when i try to run it under gdb, i get "threading debug not available" warning every time.
I am using TinyCore, and i have installed gcc and gdb from extension repository, as usual.
What should i do to be able to debug threads under gdb? Are there extra packages i need to install or some settings that need to be enabled?
Juanito:
Do you get this message because the tinycore glibc is stripped?
Kurvivor19:
I do not really know the reason, or to be more precise, i do nt fully understand what these messages mean
Here is the full text of warning messages:
--- Quote ---warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "Set solib-search-path" or "set sysroot"?
warning: File "/tmp/tcloop/glibc_add_lib/lib/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
<skilpped lines about security protection>
warning: Unable to find libthread_db matching inferior's hread library, thread debugging will not be available.
--- End quote ---
Juanito:
You get these messages because the tinycore glibc has the debugging symbols stripped out of it to make it smaller.
Usually this does not impact the debugging of other applications - if you use "threads all" (or whatever the command is in gdb) you should be OK, no?
Kurvivor19:
Well, it is the last message, which is
--- Quote ---warning: Unable to find libthread_db matching inferior's hread library, thread debugging will not be available.
--- End quote ---
is what worries me.
No matter what i do, i seem unable to see anythreads beside main one when i list them. It seems that is expected behaviour when libthread_db and libpthread do not match - but why are they not matching? It is certainly strange for libraries from same repository to fail to match.
Navigation
[0] Message Index
[#] Next page
Go to full version