From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: stefasab@gmail.com Newsgroups: gmane.emacs.help Subject: Problem with GDB/GUD (emacs BZR) Date: Mon, 28 Jun 2010 13:41:59 +0200 Message-ID: <20100628114159.GA3045@geppetto> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277772600 19843 80.91.229.12 (29 Jun 2010 00:50:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Jun 2010 00:50:00 +0000 (UTC) To: help-gnu-emacs Mailing List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 29 02:49:55 2010 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.69) (envelope-from ) id 1OTP1M-000087-Mp for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jun 2010 02:49:52 +0200 Original-Received: from localhost ([127.0.0.1]:42554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTOsb-0004n5-F9 for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Jun 2010 20:40:49 -0400 Original-Received: from [140.186.70.92] (port=39356 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTCjc-0007ev-T5 for help-gnu-emacs@gnu.org; Mon, 28 Jun 2010 07:42:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTCjb-0005DG-CG for help-gnu-emacs@gnu.org; Mon, 28 Jun 2010 07:42:44 -0400 Original-Received: from relay-pt2.poste.it ([62.241.5.253]:51934) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTCjb-0005Cw-6y for help-gnu-emacs@gnu.org; Mon, 28 Jun 2010 07:42:43 -0400 Original-Received: from ssabatini.reitek.com (78.15.181.187) by relay-pt2.poste.it (8.5.121.01) (authenticated as stefano.sabatini-lala@poste.it) id 4C27D871000112AF for help-gnu-emacs@gnu.org; Mon, 28 Jun 2010 13:42:40 +0200 Original-Received: from stefano by ssabatini.reitek.com with local (Exim 4.71) (envelope-from ) id 1OTCit-0004cl-Lw for help-gnu-emacs@gnu.org; Mon, 28 Jun 2010 13:41:59 +0200 Mail-Followup-To: help-gnu-emacs Mailing List Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Mailman-Approved-At: Mon, 28 Jun 2010 20:39:45 -0400 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:74002 Archived-At: Hi all, ~/s/emacs.bzr> emacs --version GNU Emacs 24.0.50.1 Copyright (C) 2010 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. ~/s/emacs.bzr> gdb --version GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: . I'm having big problems at using gdb, I tried various combinations (using gdb --annotate=3D3, gdb -i=3Dmi) but gdb is always mibehaving. For example this is what I see in the *gud* buffer with M-x gbd -> gdb --an= notate=3D3: ---------------------------------------------------8<------------------- = =1A=1Apre-prompt =1A=1Aprompt [...] = =1A=1Apost-prompt =1A=1Aerror-begin Undefined command: "1-inferior-tty-set". Try "help". =1A=1Apre-prompt =1A=1Aprompt ---------------------------------------------------8<------------------- If I try to use gdb -i=3Dmi I got something of the kind: ---------------------------------------------------8<------------------- (gdb) file hello r b main Breakpoint 1 at 0x8048542: file hello.c, line 5. (gdb) r n n (gdb)=20 ---------------------------------------------------8<------------------- No prompt is shown and the pointer in the source code buffer is not updated as I step over/into. Finally if I don't specify the gdb flags I got something of the kind: ---------------------------------------------------8<------------------- Current directory is /home/stefano/src/Sandbox/C/ GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/stefano/src/Sandbox/C/hello...done. (gdb) Undefined command: "1-inferior-tty-set". Try "help". (gdb) Undefined command: "2-gdb-set". Try "help". (gdb) Undefined command: "3-gdb-set". Try "help". (gdb) Undefined command: "4-file-list-exec-source-files". Try "help". (gdb) Undefined command: "5-file-list-exec-source-file". Try "help". (gdb) Undefined command: "6-gdb-show". Try "help". (gdb) Undefined command: "7-stack-info-frame". Try "help". (gdb) Undefined command: "8-thread-info". Try "help". (gdb) Undefined command: "9-break-list". Try "help". (gdb) Undefined command: "-interpreter-exec". Try "help". help (gdb) Undefined command: "-interpreter-exec". Try "help". r (gdb) Undefined command: "-interpreter-exec". Try "help". help (gdb) Undefined command: "-interpreter-exec". Try "help". ---------------------------------------------------8<------------------- So I'm badly stucked here, up to the point that I cannot to debug code =66rom emacs. Can you give some guidance, or at least provide some hint regarding how should I debug this problem? Up to now I didn't find anything useful by googling, help is much appreciated. Regards.