From: nickrob@snap.net.nz (Nick Roberts)
To: Miles Bader <miles@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Dmitry Dzhus <dima@sphinx.net.ru>,
emacs-devel@gnu.org
Subject: Re: other weird gdb-mi problems
Date: Thu, 27 Aug 2009 16:52:58 +1200 [thread overview]
Message-ID: <19094.4394.535184.630878@totara.tehura.co.nz> (raw)
In-Reply-To: <878wh6gh48.fsf@catnip.gol.com>
> p.s. What about emacs showing the wrong source file?
Actually, I take back what I said earlier. Previously, "-stack-info-frame"
was actually used to query for the current frame but I see now that after
Dmitry's changes it now gets sent as, e.g.,
"-stack-info-frame --thread 1 -frame --0"
which resets the frame. The change below seems to fix this for the problem
you reported with "up" and "down" by just specifying the thread,
"-stack-info-frame --thread 1"
but this might breaks things in a multi-threaded situation where Emacs might
want send a GDB command that operates on a different frame to the selected
one.
Dmitry, what do you think?
--
Nick http://www.inet.net.nz/~nickrob
*** gdb-mi.el.~1.36.~ 2009-08-25 09:58:16.000000000 +1200
--- gdb-mi.el 2009-08-27 16:35:02.000000000 +1200
*************** then no --frame option is added."
*** 1605,1614 ****
;; gdb-frame-number may be nil while gdb-thread-number is non-nil
;; (when current thread is running)
(if gdb-thread-number
! (concat command " --thread " gdb-thread-number
! (if (not (or noframe (not gdb-frame-number)))
! (concat " --frame " gdb-frame-number) "")
! " ")
command))
(defun gdb-current-context-buffer-name (name)
--- 1605,1611 ----
;; gdb-frame-number may be nil while gdb-thread-number is non-nil
;; (when current thread is running)
(if gdb-thread-number
! (concat command " --thread " gdb-thread-number)
command))
(defun gdb-current-context-buffer-name (name)
next prev parent reply other threads:[~2009-08-27 4:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 7:49 other weird gdb-mi problems Miles Bader
2009-08-26 17:19 ` Eli Zaretskii
2009-08-26 23:27 ` Nick Roberts
2009-08-27 1:49 ` Miles Bader
2009-08-27 1:50 ` Miles Bader
2009-08-27 4:52 ` Nick Roberts [this message]
2009-08-27 9:42 ` Miles Bader
2009-08-28 3:05 ` Nick Roberts
2009-08-27 13:57 ` Dmitry Dzhus
2009-08-27 23:36 ` Nick Roberts
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=19094.4394.535184.630878@totara.tehura.co.nz \
--to=nickrob@snap.net.nz \
--cc=dima@sphinx.net.ru \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=miles@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.