* compiling a large program without gdb
@ 2004-07-14 4:06 karthik bala guru
2004-07-14 4:25 ` Ramana Radhakrishnan
0 siblings, 1 reply; 6+ messages in thread
From: karthik bala guru @ 2004-07-14 4:06 UTC (permalink / raw)
To: gdb
Hi,
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.
That is, they were not compiled by having GDB in
mind. It has no gdb enable settings in it.
How to simultaneously enable GDB feature in
all of these files and use GDB to debug the
resultant application ?
Any tricks to make the files that were 'without
gdb enabled compilation' to be run under gdb ?
How to enable them by some shortcut methods ?
Kindly let me know and give some ideas too.
Thanks & regards,
karthik bala guru
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compiling a large program without gdb
2004-07-14 4:06 compiling a large program without gdb karthik bala guru
@ 2004-07-14 4:25 ` Ramana Radhakrishnan
2004-07-14 4:50 ` karthik bala guru
2004-07-14 6:23 ` Debugging Multi-threaded Programs using GDB karthik bala guru
0 siblings, 2 replies; 6+ messages in thread
From: Ramana Radhakrishnan @ 2004-07-14 4:25 UTC (permalink / raw)
To: karthik bala guru; +Cc: gdb
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: compiling a large program without gdb
2004-07-14 4:25 ` Ramana Radhakrishnan
@ 2004-07-14 4:50 ` karthik bala guru
2004-07-14 7:45 ` arm-linux-gcc and gdb .. ! karthik bala guru
2004-07-14 6:23 ` Debugging Multi-threaded Programs using GDB karthik bala guru
1 sibling, 1 reply; 6+ messages in thread
From: karthik bala guru @ 2004-07-14 4:50 UTC (permalink / raw)
To: ramana.radhakrishnan; +Cc: 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Debugging Multi-threaded Programs using GDB
2004-07-14 4:25 ` Ramana Radhakrishnan
2004-07-14 4:50 ` karthik bala guru
@ 2004-07-14 6:23 ` karthik bala guru
1 sibling, 0 replies; 6+ messages in thread
From: karthik bala guru @ 2004-07-14 6:23 UTC (permalink / raw)
To: ramana.radhakrishnan; +Cc: gdb
Hi,
Is it not possible to debug multi-threaded
programs using GDB ??
Does this support ?
Kindly let me know,
karthik bala guru
sdcckarthik@yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 6+ messages in thread
* arm-linux-gcc and gdb .. ! ..
2004-07-14 4:50 ` karthik bala guru
@ 2004-07-14 7:45 ` karthik bala guru
2004-07-14 9:02 ` Arm linux GDB Debugger karthik bala guru
0 siblings, 1 reply; 6+ messages in thread
From: karthik bala guru @ 2004-07-14 7:45 UTC (permalink / raw)
To: karthik bala guru, ramana.radhakrishnan; +Cc: gdb
Hi,
I would like to know if the normal
'gdb' can be used to
debug the 'arm-linux-gcc' compiled programs/apps .
should i need to have anyother special
debugger for debugging 'arm-linux-gcc' based
apps/programs ?
Or
Should i need to set some options in normal gdb
invokation ?
Or
Should i need to set some options while compilation ?
In short --->>>>
How to debug 'arm-linux-gcc' compiled programs/apps
in GDB ??????
Kindly let me know.
Thanx & Regards,
karthik bala guru
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 6+ messages in thread
* Arm linux GDB Debugger
2004-07-14 7:45 ` arm-linux-gcc and gdb .. ! karthik bala guru
@ 2004-07-14 9:02 ` karthik bala guru
0 siblings, 0 replies; 6+ messages in thread
From: karthik bala guru @ 2004-07-14 9:02 UTC (permalink / raw)
To: karthik bala guru, ramana.radhakrishnan; +Cc: gdb
hi,
Does anyone have a link to one of the following to
allow me to trace,debug and develop a arm-linux-gcc
compiled program.
1) a prebuilt native ARM linux gdb debugger
2) a prebuilt cross debugger
3) instructions on how to successfully build (1) or
(2)
And I am working on a i386 machine.
It would be fine if the
debugger is of cross platform support -
that is debugging a arm-linux-gcc program
from a normal i386 machine.
A link and A HoWTO will also be fine !!!
kindly let me know,
karthik bala guru
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-07-14 7:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-14 4:06 compiling a large program without gdb karthik bala guru
2004-07-14 4:25 ` Ramana Radhakrishnan
2004-07-14 4:50 ` karthik bala guru
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox