This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
debugging self made threads / operating systems. Info about adaptation library
- To: gdb at sourceware dot cygnus dot com
- Subject: debugging self made threads / operating systems. Info about adaptation library
- From: Klaus FOERSTER <klaus dot foerster at motorola dot com>
- Date: Wed, 03 Oct 2001 09:56:45 +0200
Hi everybody,
Please forgive me if I'm not always using exactly the right vocabulary. I'm
not
a OS / thread specialist.
We are working with two different software packages, that implement their own
way of
task switching. (One is the C++ library SystemC, which can be used to simulate
electronic circuits and systems)
Both packages have a simple non preemptive task switching mechanism, that
switches tasks only
at specified points of the code.
SystemC is using the QT-threads (quick threads) or a sub set of it.
For the other tool I could probably get more information if required.
DDD with gdb should be able to implement the
info thread
and the
thread
command in order to find out how many threads are active and switch stack
contexts in order to view the
local variables of each thread.
As far as I know there is a support library available, that should help
implementing these commands for
own dedicated threading implementations.
Does anyone have information about it? Is there a document available,
that explains the functions, that have to be implemented?
Any feedback is welcome. As there is no commercial tool available we'd like to
setup something by
ourselves if the efffort is not too high.
bye
Klaus
--
===============================================================
Klaus Foerster ! email: klaus.foerster@motorola.com
System Design Engineer !
Motorola Toulouse !
===============================================================