* c compiling and running in emacs
@ 2005-02-12 8:20 voip technocrat
2005-02-12 10:38 ` Peter Dyballa
[not found] ` <mailman.1859.1108205561.2841.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: voip technocrat @ 2005-02-12 8:20 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]
hello friends,
i have downloaded and installed gnu-emacs -21.2.1
my aim is to see the source file line by line along while running with gdb
i.e while debugging tracking line by line
the steps which i done is
i have a sample file called hello.c which contains
#include <stdio.h>
main()
{
printf("hello1 \n");
printf("hello2 \n");
printf("hello3 \n");
}
compiled with cc hello.c -o hello.o
and in emacs i opend the file file - > open through menu bar i.e hello.c
and then i preseed M-x gdb
then i got
run gdb (like this): gdb hello.o
it show s directly the gdb buffer / screen not the source file with pointing
line by line so how to achive this
when i say run in the gdb screen it s running properly.
help me in this
with regards
rama kanth
Yahoo! India Matrimony: Find your life partneronline.
[-- Attachment #1.2: Type: text/html, Size: 1702 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c compiling and running in emacs
2005-02-12 8:20 c compiling and running in emacs voip technocrat
@ 2005-02-12 10:38 ` Peter Dyballa
[not found] ` <mailman.1859.1108205561.2841.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2005-02-12 10:38 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 12.02.2005 um 09:20 schrieb voip technocrat:
> compiled with cc hello.c -o hello.o
Shouldn't you better compile *with* debugging information?
--
Greetings
Pete
"If builders built buildings the way programmers write programs, then
the first woodpecker that came along would destroy civilization."
-- Weinberg's Second Law.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c compiling and running in emacs
[not found] ` <mailman.1859.1108205561.2841.help-gnu-emacs@gnu.org>
@ 2005-02-14 13:28 ` giglio robbo' d'acciaio
0 siblings, 0 replies; 3+ messages in thread
From: giglio robbo' d'acciaio @ 2005-02-14 13:28 UTC (permalink / raw)
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
>> compiled with cc hello.c -o hello.o
>
> Shouldn't you better compile *with* debugging information?
like this "cc -ggdb hello.c -o hello.o"
--
Non capisco tutta questa eccitazione per il multitasking: io sono anni
che leggo in bagno.
-- Carlo Landini
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-14 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-12 8:20 c compiling and running in emacs voip technocrat
2005-02-12 10:38 ` Peter Dyballa
[not found] ` <mailman.1859.1108205561.2841.help-gnu-emacs@gnu.org>
2005-02-14 13:28 ` giglio robbo' d'acciaio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).