This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: compiling a large program without gdb
- From: karthik bala guru <bluekarthik at yahoo dot com>
- To: ramana dot radhakrishnan at codito dot com
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 13 Jul 2004 21:25:52 -0700 (PDT)
- Subject: Re: compiling a large program without gdb
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