unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Zhongwei Yao <ashi08104@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Running M-x gdb hangs emacs
Date: Fri, 23 Jan 2015 10:45:08 +0800	[thread overview]
Message-ID: <CAJnfWeHdTxcMr2hnD0hcMqEo_za47tyAV2Rjw69aUnh537sWrg@mail.gmail.com> (raw)
In-Reply-To: <83oapqvlp6.fsf@gnu.org>

Hi, Eli,
gud-gdb works. And my Emacs version is 24.3.1.

But how can I get the fancy gdb interface back in Emacs with gud-gdb?
Thanks!

--
Zhongwei

On Fri, Jan 23, 2015 at 12:12 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 22 Jan 2015 19:52:07 +0800
> > From: Zhongwei Yao <ashi08104@gmail.com>
> >
> > When run M-x gdb with following command:
> >   gdb -i=mi -x ~/.gdb/config
> >
> > and the .gdb/config file are:
> > ==config==
> >   set non-stop off
> >   file /my/path/to/exe-file
> >   target remote 192.168.1.2:5049
> >   break func_foo
> > ==config==
> >
> > emacs returns me a buffer *gud-config* with following content:
> > ==*gud-config* buffer==
> > Current directory is ~/.gdb/
> > GNU gdb (GDB) 7.6
> > Copyright (C) 2013 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 "--host=x86_64-linux-gnu
> > --target=arm-linux-android".
> > For bug reporting instructions, please see:
> > <http://source.android.com/source/report-bugs.html>.
> > warning: Unable to find dynamic linker breakpoint function.
> > GDB will be unable to debug shared library initializers
> > and track explicitly loaded dynamic code.Cannot access memory at address
> 0x0
> > ==*gud-config* buffer==
> >
> > Then emacs will hang there.
>
> Does the problem go away if you invoke GDB like this:
>
>   M-x gud-gdb RET
>
> ?  Also, what version of Emacs is that?
>
>


  reply	other threads:[~2015-01-23  2:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-22 11:52 Running M-x gdb hangs emacs Zhongwei Yao
2015-01-22 16:12 ` Eli Zaretskii
2015-01-23  2:45   ` Zhongwei Yao [this message]
2015-01-23 10:00     ` Eli Zaretskii
2015-01-23 11:15       ` Zhongwei Yao

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAJnfWeHdTxcMr2hnD0hcMqEo_za47tyAV2Rjw69aUnh537sWrg@mail.gmail.com \
    --to=ashi08104@gmail.com \
    --cc=eliz@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).