@@ -914,17 +914,17 @@ HAS-CHILDREN should be t when this node has children."
914
914
return buffer
915
915
finally return nil ))
916
916
917
- (defmacro gdb--simple-get-buffer (type update-func name important &rest body )
917
+ (defmacro gdb--simple-get-buffer (type update-func name important hidden &rest body )
918
918
" Simple buffer creator/fetcher, for buffers that should be unique in a session."
919
919
(declare (indent defun ) (debug (sexp sexp body)))
920
920
(unless (memq type gdb--buffer-types) (error " Type %s does not exist " (symbol-name type)))
921
921
`(defun ,(intern (concat (symbol-name type) " -get-buffer" )) (session)
922
922
,(concat " Creator and fetcher of buffer with type `" (symbol-name type) " '" )
923
923
(cond ((gdb--get-buffer-with-type session ', type ))
924
- (t (let ((buffer (generate-new-buffer " *GDB Temporary Name*" )))
924
+ (t (let ((buffer (generate-new-buffer " *GDB Temporary Name*" )))
925
925
(push buffer (gdb--session-buffers session))
926
926
(with-current-buffer buffer
927
- (gdb--rename-buffer , name (gdb--session-debuggee-path session))
927
+ (gdb--rename-buffer , name , hidden (gdb--session-debuggee-path session))
928
928
(setq gdb--buffer-info (make-gdb--buffer-info :session session :type ', type
929
929
:update-func #' , update-func ))
930
930
,@body
@@ -960,9 +960,9 @@ HAS-CHILDREN should be t when this node has children."
960
960
(setf (gdb--session-buffers-to-update session) nil
961
961
(gdb--session-buffer-types-to-update session) nil ))))
962
962
963
- (defmacro gdb--rename-buffer (&optional specific-str debuggee-path )
963
+ (defmacro gdb--rename-buffer (&optional specific-str hidden debuggee-path )
964
964
`(save-match-data
965
- (rename-buffer (concat ,(concat " *GDB" (when specific-str (concat " : " specific-str)))
965
+ (rename-buffer (concat ,(concat ( and hidden " " ) " *GDB" (when specific-str (concat " : " specific-str)))
966
966
(when , debuggee-path (concat " - " (file-name-nondirectory , debuggee-path )))
967
967
" *" )
968
968
t )))
@@ -1127,7 +1127,7 @@ HAS-CHILDREN should be t when this node has children."
1127
1127
(setq-local comint-preoutput-filter-functions '(gdb--output-filter))
1128
1128
(setq-local completion-at-point-functions '(gdb--comint-completion-at-point)))
1129
1129
1130
- (gdb--simple-get-buffer gdb--comint ignore " Comint" t
1130
+ (gdb--simple-get-buffer gdb--comint ignore " Comint" t t
1131
1131
(setq gdb--omit-console-output nil )
1132
1132
(gdb-comint-mode)
1133
1133
(let ((process-connection-type nil ))
@@ -1317,7 +1317,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1317
1317
" Major mode for interacting with the inferior."
1318
1318
:syntax-table nil :abbrev-table nil )
1319
1319
1320
- (gdb--simple-get-buffer gdb--inferior-io ignore " Inferior I/O" t
1320
+ (gdb--simple-get-buffer gdb--inferior-io ignore " Inferior I/O" t nil
1321
1321
(gdb-inferior-io-mode )
1322
1322
(gdb--inferior-io-initialization))
1323
1323
@@ -1399,7 +1399,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1399
1399
(buffer-disable-undo )
1400
1400
(font-lock-mode -1 ))
1401
1401
1402
- (gdb--simple-get-buffer gdb--threads gdb--threads-update " Threads" nil
1402
+ (gdb--simple-get-buffer gdb--threads gdb--threads-update " Threads" nil t
1403
1403
(gdb-threads-mode ))
1404
1404
1405
1405
(defun gdb--threads-update ()
@@ -1448,7 +1448,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1448
1448
(buffer-disable-undo )
1449
1449
(font-lock-mode -1 ))
1450
1450
1451
- (gdb--simple-get-buffer gdb--frames gdb--frames-update " Stack Frames" nil
1451
+ (gdb--simple-get-buffer gdb--frames gdb--frames-update " Stack Frames" nil t
1452
1452
(gdb-frames-mode ))
1453
1453
1454
1454
(defun gdb--frames-update ()
@@ -1494,7 +1494,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1494
1494
(buffer-disable-undo )
1495
1495
(font-lock-mode -1 ))
1496
1496
1497
- (gdb--simple-get-buffer gdb--breakpoints gdb--breakpoints-update " Breakpoints" nil
1497
+ (gdb--simple-get-buffer gdb--breakpoints gdb--breakpoints-update " Breakpoints" nil t
1498
1498
(gdb-breakpoints-mode ))
1499
1499
1500
1500
(defun gdb--breakpoints-update ()
@@ -1542,7 +1542,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1542
1542
(buffer-disable-undo )
1543
1543
(font-lock-mode -1 ))
1544
1544
1545
- (gdb--simple-get-buffer gdb--variables gdb--variables-update " Variables" nil
1545
+ (gdb--simple-get-buffer gdb--variables gdb--variables-update " Variables" nil t
1546
1546
(gdb-variables-mode))
1547
1547
1548
1548
(defun gdb--variables-update ()
@@ -1585,7 +1585,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1585
1585
(buffer-disable-undo )
1586
1586
(font-lock-mode -1 ))
1587
1587
1588
- (gdb--simple-get-buffer gdb--watchers gdb--watchers-update " Watchers" nil
1588
+ (gdb--simple-get-buffer gdb--watchers gdb--watchers-update " Watchers" nil t
1589
1589
(gdb-watchers-mode))
1590
1590
1591
1591
(defun gdb--watcher-toggle-chilren ()
@@ -1689,7 +1689,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1689
1689
(buffer-disable-undo )
1690
1690
(font-lock-mode -1 ))
1691
1691
1692
- (gdb--simple-get-buffer gdb--registers gdb--registers-update " Registers" nil
1692
+ (gdb--simple-get-buffer gdb--registers gdb--registers-update " Registers" nil t
1693
1693
(gdb-registers-mode ))
1694
1694
1695
1695
(defun gdb--registers-update ()
@@ -1743,7 +1743,7 @@ stopped thread before running the command. If FORCE-STOPPED is
1743
1743
(setq-local buffer-read-only t )
1744
1744
(buffer-disable-undo ))
1745
1745
1746
- (gdb--simple-get-buffer gdb--disassembly gdb--disassembly-update " Disassembly" nil
1746
+ (gdb--simple-get-buffer gdb--disassembly gdb--disassembly-update " Disassembly" nil t
1747
1747
(gdb-disassembly-mode )
1748
1748
(setf (gdb--buffer-info-data gdb--buffer-info) (make-gdb--disassembly-data))
1749
1749
(gdb--disassembly-fetch (gdb--session-selected-frame session)))
0 commit comments