How tu run GDB for large C Application
Sangamesh B
forum.san@gmail.com
Mon Nov 19 06:48:00 GMT 2007
Hi all GDB Users,
I've to debug one application, written in C. It consists of
many files and after compilation creates one executable. It makes use
of two input files and some command line arguments. In the makefile
I've used -g as DEBUG flag.
I'm not getting how to use GDB to debug this application.
For example,
X is the executable created from the following object files.
1.o, -> 1.c
2.o, -> 2.c
3.o, -> 3.c
4.o, -> 4.c
5.o. -> 5.c
To debug with gdb, which one to use? With X or individaully with .o files.
gdb X shows "not in executable format: File format not recognized"
How/Where to give the input files for the program and command
line arguments?
Please help me.
regards,
Sangamesh
Engineer - HPTC
More information about the Gdb
mailing list