From: karthik bala guru <bluekarthik@yahoo.com>
To: ramana.radhakrishnan@codito.com
Cc: gdb@sources.redhat.com
Subject: Re: compiling a large program without gdb
Date: Wed, 14 Jul 2004 04:50:00 -0000 [thread overview]
Message-ID: <20040714042552.78356.qmail@web90110.mail.scd.yahoo.com> (raw)
In-Reply-To: <3185.203.145.159.41.1089778937.squirrel@203.145.159.41>
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
next prev parent reply other threads:[~2004-07-14 4:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-14 4:06 karthik bala guru
2004-07-14 4:25 ` Ramana Radhakrishnan
2004-07-14 4:50 ` karthik bala guru [this message]
2004-07-14 7:45 ` arm-linux-gcc and gdb .. ! karthik bala guru
2004-07-14 9:02 ` Arm linux GDB Debugger karthik bala guru
2004-07-14 6:23 ` Debugging Multi-threaded Programs using GDB karthik bala guru
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040714042552.78356.qmail@web90110.mail.scd.yahoo.com \
--to=bluekarthik@yahoo.com \
--cc=gdb@sources.redhat.com \
--cc=ramana.radhakrishnan@codito.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox