From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: voip technocrat Newsgroups: gmane.emacs.help Subject: c compiling and running in emacs Date: Sat, 12 Feb 2005 08:20:31 +0000 (GMT) Message-ID: <20050212082031.19734.qmail@web8304.mail.in.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0496432150==" X-Trace: sea.gmane.org 1108200678 3823 80.91.229.2 (12 Feb 2005 09:31:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 Feb 2005 09:31:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 12 10:31:17 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Cztc2-0002zg-9K for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Feb 2005 10:30:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cztr8-0004tx-C8 for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Feb 2005 04:46:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CztEX-0002wU-2C for help-gnu-emacs@gnu.org; Sat, 12 Feb 2005 04:06:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CztEP-0002uD-7v for help-gnu-emacs@gnu.org; Sat, 12 Feb 2005 04:06:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Czt4O-0001Sd-Gz for help-gnu-emacs@gnu.org; Sat, 12 Feb 2005 03:56:04 -0500 Original-Received: from [202.43.219.216] (helo=web8304.mail.in.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1CzsW3-000228-NE for help-gnu-emacs@gnu.org; Sat, 12 Feb 2005 03:20:36 -0500 Original-Received: (qmail 19736 invoked by uid 60001); 12 Feb 2005 08:20:31 -0000 Original-Received: from [61.11.96.242] by web8304.mail.in.yahoo.com via HTTP; Sat, 12 Feb 2005 08:20:31 GMT Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24047 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24047 --===============0496432150== Content-Type: multipart/alternative; boundary="0-2041829255-1108196431=:10007" Content-Transfer-Encoding: 8bit --0-2041829255-1108196431=:10007 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 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. --0-2041829255-1108196431=:10007 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
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. --0-2041829255-1108196431=:10007-- --===============0496432150== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0496432150==--