Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] gdb-mi.el
Date: Sun, 14 May 2006 13:28:00 -0000	[thread overview]
Message-ID: <17510.56701.965583.334539@farnswood.snap.net.nz> (raw)


A few more changes to keep in sync.

OK to commit?

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


2006-05-14  Nick Roberts  <nickrob@snap.net.nz>

	* mi/gdb-mi.el (gdbmi-send): Correct regexp for repeat commands.
	(gdbmi): Use new variable name gdb-pc-address.
	(gdbmi-frame-handler):  Use new variable name gdb-pc-address.
	Check that a match has been found.


*** gdb-mi.el	31 Mar 2006 12:46:48 +1200	1.7
--- gdb-mi.el	21 Apr 2006 03:12:45 +1200	
***************
*** 170,176 ****
    (setq comint-input-sender 'gdbmi-send)
    ;;
    ;; (re-)initialise
!   (setq gdb-frame-address (if gdb-show-main "main" nil)
          gdb-previous-frame-address nil
          gdb-memory-address "main"
          gdb-previous-frame nil
--- 170,176 ----
    (setq comint-input-sender 'gdbmi-send)
    ;;
    ;; (re-)initialise
!   (setq gdb-pc-address (if gdb-show-main "main" nil)
          gdb-previous-frame-address nil
          gdb-memory-address "main"
          gdb-previous-frame nil
***************
*** 225,231 ****
      (setq gdb-output-sink 'user)
      (setq gdb-prompting nil)
      ;; mimic <RET> key to repeat previous command in GDB
!     (if (string-match "^\\S+$" string)
  	(setq gdb-last-command string)
        (if gdb-last-command (setq string gdb-last-command)))
      (if gdb-enable-debug
--- 225,231 ----
      (setq gdb-output-sink 'user)
      (setq gdb-prompting nil)
      ;; mimic <RET> key to repeat previous command in GDB
!     (if (not (string-match "^\\s+$" string))
  	(setq gdb-last-command string)
        (if gdb-last-command (setq string gdb-last-command)))
      (if gdb-enable-debug
***************
*** 563,584 ****
      (goto-char (point-min))
      (when (re-search-forward gdb-stack-list-frames-regexp nil t)
        (setq gdb-frame-number (match-string 1))
!       (setq gdb-frame-address (match-string 2))
        (setq gdb-selected-frame (match-string 3))
!       (setq gud-last-frame
! 	    (cons (match-string 4) (string-to-number (match-string 5))))
!       (gud-display-frame)
!       (if gud-overlay-arrow-position
! 	  (let ((buffer (marker-buffer gud-overlay-arrow-position))
! 		(position (marker-position gud-overlay-arrow-position)))
! 	    (when buffer
! 	      (with-current-buffer buffer
! 		(setq fringe-indicator-alist
! 		      (if (string-equal gdb-frame-number "0")
! 			  nil
! 			'((overlay-arrow . hollow-right-triangle))))
! 		(setq gud-overlay-arrow-position (make-marker))
! 		(set-marker gud-overlay-arrow-position position)))))
        (if (gdb-get-buffer 'gdb-locals-buffer)
  	  (with-current-buffer (gdb-get-buffer 'gdb-locals-buffer)
  	    (setq mode-name (concat "Locals:" gdb-selected-frame))))
--- 563,585 ----
      (goto-char (point-min))
      (when (re-search-forward gdb-stack-list-frames-regexp nil t)
        (setq gdb-frame-number (match-string 1))
!       (setq gdb-pc-address (match-string 2))
        (setq gdb-selected-frame (match-string 3))
!       (when (match-string 4)
! 	(setq gud-last-frame
! 	      (cons (match-string 4) (string-to-number (match-string 5))))
! 	(gud-display-frame)
! 	(if gud-overlay-arrow-position
! 	    (let ((buffer (marker-buffer gud-overlay-arrow-position))
! 		  (position (marker-position gud-overlay-arrow-position)))
! 	      (when buffer
! 		(with-current-buffer buffer
! 		  (setq fringe-indicator-alist
! 			(if (string-equal gdb-frame-number "0")
! 			    nil
! 			  '((overlay-arrow . hollow-right-triangle))))
! 		  (setq gud-overlay-arrow-position (make-marker))
! 		  (set-marker gud-overlay-arrow-position position))))))
        (if (gdb-get-buffer 'gdb-locals-buffer)
  	  (with-current-buffer (gdb-get-buffer 'gdb-locals-buffer)
  	    (setq mode-name (concat "Locals:" gdb-selected-frame))))


             reply	other threads:[~2006-05-14  7:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-14 13:28 Nick Roberts [this message]
2006-05-14 20:07 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2006-08-22 21:04 Nick Roberts
2006-08-22 21:32 ` Daniel Jacobowitz
2006-03-25  8:19 Nick Roberts
2006-03-25 10:14 ` Eli Zaretskii
2006-02-10  4:02 Nick Roberts
2006-02-10  5:34 ` Daniel Jacobowitz
2006-02-10  6:22   ` Nick Roberts
2005-11-14 11:34 Nick Roberts
2005-11-17 10:04 ` Daniel Jacobowitz
2005-10-27 12:10 Nick Roberts
2005-10-27 16:54 ` Daniel Jacobowitz

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=17510.56701.965583.334539@farnswood.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb-patches@sources.redhat.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox