Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question is it possible to call gdb commands from C process?


    I usually debug my programs with gdb ( DDD ), and it works fine.
    But now I would like to do same process with my own app.
    Anybody known how to invoke gdb (or gdb commands ) from a C process?
    is it possible

    Best regards.

  2. #2
    Just Joined! ShadowCat8's Avatar
    Join Date
    Sep 2005
    San Gabriel Valley, CA

    To the best of my knowledge, it's why you would want to set a breakpoint in your app/within gdb when you run your app within a gdb instance.

    That way, you stop at the point where you need to test/check on your app to make sure everything is happening as expected. And, it gives you the gdb console to work with at that point.

    HTH. Let us know.

Posting Permissions

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