compiling a large program without gdb

karthik bala guru bluekarthik@yahoo.com
Wed Jul 14 04:50:00 GMT 2004


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
<ramana.radhakrishnan@codito.com> 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 



More information about the Gdb mailing list