From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: gdb emacs help newbie Date: Wed, 28 Feb 2007 10:22:25 +1300 Message-ID: <17892.41233.289608.101906@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172611382 5625 80.91.229.12 (27 Feb 2007 21:23:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2007 21:23:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: avinashu@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 27 22:22:55 2007 Return-path: Envelope-to: geh-help-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 1HM9mh-0000lg-A6 for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Feb 2007 22:22:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HM9mg-0005PO-OM for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Feb 2007 16:22:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HM9mQ-0005P1-0I for help-gnu-emacs@gnu.org; Tue, 27 Feb 2007 16:22:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HM9mO-0005OH-Kn for help-gnu-emacs@gnu.org; Tue, 27 Feb 2007 16:22:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HM9mO-0005OE-HD for help-gnu-emacs@gnu.org; Tue, 27 Feb 2007 16:22:36 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HM9mN-0001dA-Qu for help-gnu-emacs@gnu.org; Tue, 27 Feb 2007 16:22:36 -0500 Original-Received: from kahikatea.snap.net.nz (189.60.255.123.dynamic.snap.net.nz [123.255.60.189]) by viper.snap.net.nz (Postfix) with ESMTP id 384053D9E17; Wed, 28 Feb 2007 10:22:29 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 87C224F6E0; Wed, 28 Feb 2007 10:22:27 +1300 (NZDT) X-Mailer: VM 7.19 under Emacs 22.0.94.2 X-detected-kernel: Linux 2.4-2.6 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 Xref: news.gmane.org gmane.emacs.help:41505 Archived-At: > these are the commands I type out > emacs > [ESC] x gdb [ENTER] > gdb a.out > break 6 > run > Now the screen has split into 2 and and u see the code of the cpp file > in the top window and gdb command line in the botton > window > I type n and then n to go to the next lines > The cursor is on line 8 now > When I try to set a breakpoint using: > C-c C-b I get the following message "wrong type argument, sequencep,8" > I get the same message with C-x [SPC] > I get the same message for other lines and other files i tried > Any help would be appreciated!!!! This is a bug with Emacs 21 which is not present in soon-to-be-released Emacs 22. But anyway, if you place the cursor in the _source_ buffer at the line where you want your program to stop, and do `C-x SPC' or `C-x C-a C-b' then it should work as you want. -- Nick http://www.inet.net.nz/~nickrob