From: S Boucher <stbya@yahoo.com>
To: Chun Zhang <chun.zhang.cz@gmail.com>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: problems in gud under emacs
Date: Tue, 18 Oct 2011 08:13:39 -0700 (PDT) [thread overview]
Message-ID: <1318950819.49823.YahooMailNeo@web161605.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CALTPr5uAM4_6eDVd1RUsQ517t0CX8FZ_Bse2WCHUd=s1w_0Z=w@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1734 bytes --]
Try running gdb outside of emacs, and use the --nx gdb command line option.
gdb --nx myprogram
and in emacs:
gdb --nx --annotate=3 myprogram
gud (emacs gdb) is not super robust. It can get confused about the state of gdb when gdb has weird output.
Your "Current directory ...." should really be the first line. Certainly, there shouldn't be anything after (gdb). So, gud may well be confused.
>________________________________
>From: Chun Zhang <chun.zhang.cz@gmail.com>
>To: help-gnu-emacs@gnu.org
>Sent: Tuesday, October 18, 2011 7:06:24 AM
>Subject: problems in gud under emacs
>
>
>Hi all,
>I'm running into problems debugging c++ under emacs. When I start the debugging command:
>M-x gdb --annotate=3 myprogram
>The gdb shell does not prompt. Instead it stuck after showing "(gdb) Current directory is ~/programs/small/" as pasted below. I can't type any debug command then... However the status bar shows no error messages. Does any body know how to fix it? Thank you!
>GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
>Copyright (C) 2010 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 "x86_64-linux-gnu".
>For bug reporting instructions, please see:
>http://www.gnu.org/software/gdb/bugs/...
>Reading symbols from /home/chzhang/programs/small/loop...done.
>(gdb) Current directory is ~/programs/small/
>
>
>
>
>--
>Best Regards,
>
>======================
>Chun Zhang
>chun.zhang.cz@gmail.com
>
>
>
[-- Attachment #2: Type: text/html, Size: 4488 bytes --]
next prev parent reply other threads:[~2011-10-18 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 11:06 problems in gud under emacs Chun Zhang
2011-10-18 15:13 ` S Boucher [this message]
2011-10-18 15:21 ` Chun Zhang
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=1318950819.49823.YahooMailNeo@web161605.mail.bf1.yahoo.com \
--to=stbya@yahoo.com \
--cc=chun.zhang.cz@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.