From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8268 invoked by alias); 14 Jul 2004 04:25:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8258 invoked from network); 14 Jul 2004 04:25:53 -0000 Received: from unknown (HELO web90110.mail.scd.yahoo.com) (66.218.94.81) by sourceware.org with SMTP; 14 Jul 2004 04:25:53 -0000 Message-ID: <20040714042552.78356.qmail@web90110.mail.scd.yahoo.com> Received: from [210.118.108.254] by web90110.mail.scd.yahoo.com via HTTP; Tue, 13 Jul 2004 21:25:52 PDT Date: Wed, 14 Jul 2004 04:50:00 -0000 From: karthik bala guru Subject: Re: compiling a large program without gdb To: ramana.radhakrishnan@codito.com Cc: gdb@sources.redhat.com In-Reply-To: <3185.203.145.159.41.1089778937.squirrel@203.145.159.41> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-07/txt/msg00127.txt.bz2 Hi, I get the following error - when i invoke gdb by using 'gdb sender' and type 'run' in gdb prompt where sender is ./climber (application prg). -----> (gdb) run Starting program: /root/7/Source/climber /bin/bash: line 1: /root/7/Source/climber: cannot execute binary file /bin/bash: line 1: /root/7/Source/climber: Success Program exited with code 01. You can't do that without a process to debug. (gdb) -----> where is the problem ? kindly let me know and give ideas. Thanks & Regards, karthik bala guru --- Ramana Radhakrishnan wrote: > Karthik, > > > I have got a 'little' but 'quite-big' code with me > > in linux 'c'. > > It has many makefiles and more than 25 source > files > > and some 9 header files. These were all compiled > > without gdb settings. > > It depends on the compiler you use. Use the debug > option while compiling > your code. Using gcc the debug options are usually > -g . Try checking the > debug options for your compiler. > > > cheers > Ramana > > > ---- > Ramana Radhakrishnan > Codito Technologies > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail