You are here:

C/How to step through a program using GCC?

Advertisement


Question
Hi,
  I am quite new to GCC. I encountered program abortion whenever I set it to run. So do you happen to know how to step through program as to identify the bug location? The GCC that I have is labelled as JFE and GCC which I downloaded it online. Thank you. :)  

Answer
I use GCC on Solaris (Unix) platform.
I don't use any IDE to use it. Always I use gdb debugger, to debug the problem.

I think the problem you are facing is with the IDE, not GCC.
GCC is just a compiler and it doesn't have the feature of stepiing thru.
You must have also downloaded an IDE and it must be having some problem. You may have to check the settings that you have done in this IDE such as source path, binary path, path to library and header files, etc.

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.