FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    ManOntheMoon Guest

    Debugging into non-C files

    Hi, my question is not directly related to Fedora, but will be grateful if somebody answers it anyway. I want to know if it's possible to debug into file that does not have a .c extension, but contains valid C code and is part of a C compilation. I want to step inside some functions in that file, so that the program counter is visible there (as is the case with .c files). Is there any way in which I can do this? I am using ddd for debugging.

    Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    4,046
    Assuming you compile those files with gcc -g , what error do you get when you try to use ddd on such a file?

    At first, I didn't see how to make an example of your question without using an #include, but after looking at
    info gcc
    I now understand that if you name your program main.bubby instead of main.c you must do:
    gcc -g -x c main.bubby
    But ddd should still run on a.out
    "Never let the task you are trying to accomplish distract you from the study of computers."

Similar Threads

  1. Debugging kde
    By lhorace in forum Using Fedora
    Replies: 5
    Last Post: 24th August 2009, 03:32 AM
  2. Best log files to begin debugging FP problems???
    By vfulco in forum Using Fedora
    Replies: 0
    Last Post: 17th November 2008, 04:44 AM
  3. Question about debugging help
    By txcrittr in forum Using Fedora
    Replies: 2
    Last Post: 6th February 2006, 07:56 PM
  4. PHP debugging
    By Flatron in forum Programming & Packaging
    Replies: 1
    Last Post: 19th December 2005, 05:57 AM
  5. Can not step in while debugging in Kdevelop for some files
    By nsw_wani in forum Programming & Packaging
    Replies: 1
    Last Post: 25th March 2005, 03:27 PM

Tags for this Thread

Posting Permissions

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