This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How tu run GDB for large C Application


 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]