From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: emacs + gdb Date: Sat, 30 Dec 2006 16:02:40 +0200 Message-ID: References: <24723.201.79.198.47.1167334171.squirrel@webmail.cchla.ufpb.br> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1167487447 32463 80.91.229.12 (30 Dec 2006 14:04:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Dec 2006 14:04:07 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 30 15:04:05 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H0eoe-0007yg-IO for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Dec 2006 15:04:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0eoe-0005NI-3p for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Dec 2006 09:04:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H0enU-0004qs-GP for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2006 09:02:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H0enQ-0004nq-PZ for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2006 09:02:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H0enN-0004mV-95 for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2006 09:02:46 -0500 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H0enM-0006nS-Kc for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2006 09:02:44 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-225-74.inter.net.il [84.229.225.74]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BKA96706 (AUTH halo1); Sat, 30 Dec 2006 16:02:39 +0200 (IST) Original-To: laerte@cchla.ufpb.br In-reply-to: <24723.201.79.198.47.1167334171.squirrel@webmail.cchla.ufpb.br> (laerte@cchla.ufpb.br) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15499 Archived-At: > Date: Thu, 28 Dec 2006 16:29:31 -0300 (BRT) > From: laerte@cchla.ufpb.br > > Program exited normally. > (gdb) break 25 > Breakpoint 1 at 0x8048610: file ../sysdeps/i386/elf/start.S, line 25. The last line from GDB tells it all: it put a breakpoint in the startup code, not in your program. The problem is that, since the program has exited, there's no useful value of the ``current source file''. You should say something like this instead: "break main.c:25" This will set a breakpoint on line 25 of the file main.c (change to adapt to your file name). Alternatively, use the `start' command to run the program till the entry to the `main' function, and then use "break 25".