Results 1 to 4 of 4
Hello everyone,
I would like to create a debugger program for C/C++ applications and I want to monitor the mutex variables.
Do you know a way on how to monitor ...
- 11-09-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 4
Monitor variables C/C++
Hello everyone,
I would like to create a debugger program for C/C++ applications and I want to monitor the mutex variables.
Do you know a way on how to monitor variables during runtime inside a C/C++ program. Is this possible even though the source code of the C/C++ is not provided.
Thanks in advance.
- 11-09-2007 #2
- 11-09-2007 #3
Well, first off, have you checked out gdb? It's basically the standard for debuggers on Linux.
Anyway, gdb achieves this by using debugging symbols. By adding extra information to the binary, it is able to interact with the source and understand exactly what's going on. I suppose you could read up on those symbols and write a debugger that could parse them, but it seems rather wasteful.DISTRO=Arch
Registered Linux User #388732
- 11-12-2007 #4Just Joined!
- Join Date
- Jun 2007
- Posts
- 4
I would like to check the gdb implementation and somehow copy the algorithm that they used to detect mutexes but I guess it can take some time.
Thanks for the help anyway.


Reply With Quote