From: Nick Roberts <nickrob@snap.net.nz>
To: gdb-patches@sourceware.org
Subject: [PATCH] gdb-mi.el
Date: Fri, 10 Feb 2006 04:02:00 -0000 [thread overview]
Message-ID: <17388.4131.96092.609264@kahikatea.snap.net.nz> (raw)
Emacs 22 hasn't been released yet and so is still changing. OK to commit?
Nick
2005-10-27 Nick Roberts <nickrob@snap.net.nz>
* mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50
*** gdb-mi.el 10 Feb 2006 16:57:10 +1300 1.4
--- gdb-mi.el 09 Feb 2006 23:50:50 +1300
***************
*** 43,50 ****
;; GUD buffer you must not use run, step, next or continue etc but their MI
;; counterparts through gud-run, gud-step etc, e.g clicking on the appropriate
;; icon in the toolbar.
- ;;
;; 2) Some commands send extra prompts to the GUD buffer.
;;
;; TODO:
;; 1) Prefix MI commands with a token instead of queueing commands.
--- 43,50 ----
;; GUD buffer you must not use run, step, next or continue etc but their MI
;; counterparts through gud-run, gud-step etc, e.g clicking on the appropriate
;; icon in the toolbar.
;; 2) Some commands send extra prompts to the GUD buffer.
+ ;; 3) Doesn't list catchpoints in breakpoints buffer.
;;
;; TODO:
;; 1) Prefix MI commands with a token instead of queueing commands.
***************
*** 216,221 ****
--- 216,222 ----
(gdb-enqueue-input
(list "-gdb-show prompt\n" 'gdb-get-prompt))
;;
+ (setq gdb-locals-font-lock-keywords gdb-locals-font-lock-keywords-2)
(run-hooks 'gdbmi-mode-hook))
; Force nil till fixed.
***************
*** 467,473 ****
(defconst gdb-break-list-regexp
"number=\"\\(.*?\\)\",type=\"\\(.*?\\)\",disp=\"\\(.*?\\)\",enabled=\"\\(.\\)\",\
! addr=\"\\(.*?\\)\",func=\"\\(.*?\\)\",file=\"\\(.*?\\)\",line=\"\\(.*?\\)\"")
(defun gdb-break-list-handler ()
(setq gdb-pending-triggers (delq 'gdbmi-invalidate-breakpoints
--- 468,475 ----
(defconst gdb-break-list-regexp
"number=\"\\(.*?\\)\",type=\"\\(.*?\\)\",disp=\"\\(.*?\\)\",enabled=\"\\(.\\)\",\
! addr=\"\\(.*?\\)\",func=\"\\(.*?\\)\",file=\"\\(.*?\\)\",fullname=\".*?\",\
! line=\"\\(.*?\\)\"")
(defun gdb-break-list-handler ()
(setq gdb-pending-triggers (delq 'gdbmi-invalidate-breakpoints
***************
*** 553,566 ****
(end-of-line)))
(if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom)))
! (defvar gdb-source-file-regexp "fullname=\"\\(.*?\\)\"")
(defun gdbmi-get-location (bptno line flag)
"Find the directory containing the relevant source file.
Put in buffer and place breakpoint icon."
(goto-char (point-min))
(catch 'file-not-found
! (if (re-search-forward gdb-source-file-regexp nil t)
(delete (cons bptno "File not found") gdb-location-alist)
(push (cons bptno (match-string 1)) gdb-location-alist)
(gdb-resync)
--- 555,568 ----
(end-of-line)))
(if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom)))
! (defvar gdbmi-source-file-regexp "fullname=\"\\(.*?\\)\"")
(defun gdbmi-get-location (bptno line flag)
"Find the directory containing the relevant source file.
Put in buffer and place breakpoint icon."
(goto-char (point-min))
(catch 'file-not-found
! (if (re-search-forward gdbmi-source-file-regexp nil t)
(delete (cons bptno "File not found") gdb-location-alist)
(push (cons bptno (match-string 1)) gdb-location-alist)
(gdb-resync)
***************
*** 773,779 ****
"Find the source file where the program starts and display it with related
buffers, if required."
(goto-char (point-min))
! (if (re-search-forward gdb-source-file-regexp nil t)
(setq gdb-main-file (match-string 1)))
(if gdb-many-windows
(gdb-setup-windows)
--- 775,781 ----
"Find the source file where the program starts and display it with related
buffers, if required."
(goto-char (point-min))
! (if (re-search-forward gdbmi-source-file-regexp nil t)
(setq gdb-main-file (match-string 1)))
(if gdb-many-windows
(gdb-setup-windows)
***************
*** 785,791 ****
(defun gdb-get-source-file-list ()
"Create list of source files for current GDB session."
(goto-char (point-min))
! (while (re-search-forward gdb-source-file-regexp nil t)
(push (match-string 1) gdb-source-file-list)))
(defun gdbmi-get-selected-frame ()
--- 787,793 ----
(defun gdb-get-source-file-list ()
"Create list of source files for current GDB session."
(goto-char (point-min))
! (while (re-search-forward gdbmi-source-file-regexp nil t)
(push (match-string 1) gdb-source-file-list)))
(defun gdbmi-get-selected-frame ()
next reply other threads:[~2006-02-10 4:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-10 4:02 Nick Roberts [this message]
2006-02-10 5:34 ` Daniel Jacobowitz
2006-02-10 6:22 ` Nick Roberts
-- strict thread matches above, loose matches on Subject: below --
2006-08-22 21:04 Nick Roberts
2006-08-22 21:32 ` Daniel Jacobowitz
2006-05-14 13:28 Nick Roberts
2006-05-14 20:07 ` Eli Zaretskii
2006-03-25 8:19 Nick Roberts
2006-03-25 10:14 ` Eli Zaretskii
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=17388.4131.96092.609264@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sourceware.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