This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How tu run GDB for large C Application
- From: "Sangamesh B" <forum dot san at gmail dot com>
- To: "GDB Mailing List" <gdb at sourceware dot org>
- Date: Mon, 19 Nov 2007 12:18:43 +0530
- Subject: 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