Article View: gnu.gdb.bug
Article #9960GDB/EMACS break interface
From: cire|eric
Date: Sat, 11 Aug 1990 01:06
Date: Sat, 11 Aug 1990 01:06
44 lines
2083 bytes
2083 bytes
The command gdb-break is used to set a break point
when using gdb under emacs. It didn't allow setting
a temporary breakpoint. Does now. Here are the
changes.
*** /tmp/,RCSt1a07088 Fri Aug 10 17:47:05 1990
--- gdb.el Fri Aug 10 17:43:21 1990
***************
*** 339,353 ****
(delete-region (point) start)
(setq gdb-delete-prompt-marker nil))))
! (defun gdb-break ()
! "Set GDB breakpoint at this source line."
! (interactive)
(let ((file-name (file-name-nondirectory buffer-file-name))
(line (save-restriction
(widen)
(1+ (count-lines 1 (point))))))
(send-string (get-buffer-process current-gdb-buffer)
! (concat "break " file-name ":" line "\n"))))
(defun gdb-read-address()
"Return a string containing the core-address found in the buffer at point."
--- 339,356 ----
(delete-region (point) start)
(setq gdb-delete-prompt-marker nil))))
! (defun gdb-break (temp)
! "Set GDB breakpoint at this source line. With ARG set temporary breakpoint"
! (interactive "P")
(let ((file-name (file-name-nondirectory buffer-file-name))
(line (save-restriction
(widen)
(1+ (count-lines 1 (point))))))
(send-string (get-buffer-process current-gdb-buffer)
! (concat (if temp
! "tbreak "
! "break ")
! file-name ":" line "\n"))))
(defun gdb-read-address()
"Return a string containing the core-address found in the buffer at point."
Technical Details
Message-ID:
<9008110107.AA14546@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!CISCO.COM!cireShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,7604a8d626bff1b4,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-08-11 02:27:37 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!CISCO.COM!cire From: cire@CISCO.COM (cire|eric) Newsgroups: gnu.gdb.bug Subject: GDB/EMACS break interface Message-ID: <9008110107.AA14546@life.ai.mit.edu> Date: 11 Aug 90 01:06:57 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 44 Posted: Sat Aug 11 02:06:57 1990