Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    4

    Post 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.

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    You can make it read memory adresses but not Variables as you can in VB.
    Since C++ is compile to Device Language.
    So you can make a memory adress scanner. Like all the cheat engines.
    Hope that helps.

    Cheers,
    Robin
    New Users, please read this..
    Google first, then ask..

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    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

  4. #4
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...