all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: "hui wang" <newlifehy@gmail.com>
Cc: Markus Grunwald <markus.grunwald@gmx.de>, help-gnu-emacs@gnu.org
Subject: Re: gud : Phase error in gdb-pre-prompt (got pre-emacs)
Date: Thu, 3 Jul 2008 19:35:46 +1200	[thread overview]
Message-ID: <18540.33106.460721.233228@kahikatea.snap.net.nz> (raw)
In-Reply-To: <c1ccd85e0807030016j4b8dcb6ay745d82f432f3b5d3@mail.gmail.com>

 > > Emacs just builds a list of filenames from GDB that were used to build the
 > > executable.  If you specify the name later in the GUD buffer, it doesn't
 > > build
 > > that list.  That makes it quicker but if there are relevant files in
 > > existing
 > > buffers or you visit them they won't be enabled for debugging, e.g., you
 > > won't
 > > be able to click in the fringe to set a breakpoint until execution has
 > > already
 > > stopped there.
 > >
 > How to disable emacs from "builds a list of filenames from GDB?"
 > I have the same problem, and You have given me similiar solution. But it
 > does not work.

If it doesn't work then maybe it's a different problem.  I suspect not though.
What happens if you use Markus' approach below?

    It seems to work when I start gdb without binary and load it from gdb with
    (gdb) file binary.bin
    (gdb) run

 > So now, I prefer emacs not build it. Maybe there should be a flag for it.

As I explained to Markus, I have created a flag, gdb-create-source-file-list,
but you need to checkout Emacs from the CVS repository at Savannah to get it.
Be aware, though, that it works like the patch that I posted to you last time.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




  reply	other threads:[~2008-07-03  7:35 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27  8:52 gud : Phase error in gdb-pre-prompt (got pre-emacs) Markus Grunwald
2008-06-27 10:18 ` Nick Roberts
2008-06-30 11:37   ` Francis Moreau
2008-06-30 22:15     ` Nick Roberts
2008-07-01 14:07       ` Francis Moreau
2008-07-01 22:41         ` Nick Roberts
2008-07-07  7:59           ` Francis Moreau
2008-07-07  9:19             ` Nick Roberts
2008-07-15  7:49               ` Francis Moreau
2008-07-22 14:49               ` Francis Moreau
     [not found] ` <mailman.13892.1214569215.18990.help-gnu-emacs@gnu.org>
2008-06-27 14:23   ` Markus Grunwald
2008-06-27 23:49     ` Nick Roberts
2008-07-03  7:16       ` hui wang
2008-07-03  7:35         ` Nick Roberts [this message]
     [not found]     ` <mailman.13907.1214610613.18990.help-gnu-emacs@gnu.org>
2008-06-30 12:45       ` Markus Grunwald
2008-06-30 13:44         ` Francis Moreau
2008-07-01  2:04         ` Nick Roberts
     [not found]         ` <mailman.14044.1214879193.18990.help-gnu-emacs@gnu.org>
2008-07-02 14:18           ` Markus Grunwald
2008-07-03  0:22             ` Nick Roberts
     [not found]             ` <mailman.14136.1215044558.18990.help-gnu-emacs@gnu.org>
2008-07-03  7:51               ` Markus Grunwald

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=18540.33106.460721.233228@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=help-gnu-emacs@gnu.org \
    --cc=markus.grunwald@gmx.de \
    --cc=newlifehy@gmail.com \
    /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.