help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c compiling and running in emacs


From: voip technocrat
Subject: c compiling and running in emacs
Date: Sat, 12 Feb 2005 08:20:31 +0000 (GMT)

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 partner online.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]