all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: stefasab@gmail.com
To: help-gnu-emacs Mailing List <help-gnu-emacs@gnu.org>
Subject: Problem with GDB/GUD (emacs BZR)
Date: Mon, 28 Jun 2010 13:41:59 +0200	[thread overview]
Message-ID: <20100628114159.GA3045@geppetto> (raw)

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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.

I'm having big problems at using gdb, I tried various combinations
(using gdb --annotate=3, gdb -i=mi) but gdb is always mibehaving.

For example this is what I see in the *gud* buffer with M-x gbd -> gdb --annotate=3:
---------------------------------------------------8<-------------------

                                                                                    \x1a\x1apre-prompt
       \x1a\x1aprompt
[...]                                                                                    \x1a\x1apost-prompt
\x1a\x1aerror-begin
Undefined command: "1-inferior-tty-set".  Try "help".
\x1a\x1apre-prompt
       \x1a\x1aprompt
---------------------------------------------------8<-------------------

If I try to use gdb -i=mi 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) 
---------------------------------------------------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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>...
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
from 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.



                 reply	other threads:[~2010-06-28 11:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100628114159.GA3045@geppetto \
    --to=stefasab@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.