branch: externals/realgud
commit da2a74b50a770a2c1166656a05ba9d132a2a5c73
Merge: 4548392 51979d2
Author: rocky <[email protected]>
Commit: rocky <[email protected]>
Merge branch 'master' of github.com:realgud/realgud
---
realgud/common/cmds.el | 8 ++++++++
realgud/debugger/gdb/core.el | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/realgud/common/cmds.el b/realgud/common/cmds.el
index 594b8a0..0f20535 100644
--- a/realgud/common/cmds.el
+++ b/realgud/common/cmds.el
@@ -110,6 +110,7 @@ with other motion initiated by debugger messages."
(puthash "restart" "run" hash)
(puthash "shell" "shell" hash)
(puthash "step" "step %p" hash)
+ (puthash "tbreak" "tbreak %X:%l" hash)
(puthash "until" "until" hash)
(puthash "up" "up %p" hash)
hash)
@@ -180,6 +181,13 @@ With prefix argument LINE-NUMBER, prompt for line number."
(realgud:cmd--with-line-override line-number
(realgud:cmd-run-command line-number
"break")))
+(defun realgud:cmd-tbreak (&optional line-number)
+ "Set a temporary breakpoint at the current line.
+With prefix argument LINE-NUMBER, prompt for line number."
+ (interactive (realgud:cmd--line-number-from-prefix-arg))
+ (realgud:cmd--with-line-override line-number
+ (realgud:cmd-run-command line-number
"tbreak")))
+
(defun realgud:cmd-clear(&optional line-number)
"Delete breakpoint at the current line.
With prefix argument LINE-NUMBER, prompt for line number."
diff --git a/realgud/debugger/gdb/core.el b/realgud/debugger/gdb/core.el
index 50b8ce3..f53647d 100644
--- a/realgud/debugger/gdb/core.el
+++ b/realgud/debugger/gdb/core.el
@@ -74,7 +74,7 @@ Note that path elements have been expanded via
`expand-file-name'.
;; One dash is added automatically to the below, so
;; h is really -h and -host is really --host.
- (gdb-two-args '("x" "-command" "b" "-exec"
+ (gdb-two-args '("x" "-command" "ex" "-eval-command" "b" "-exec"
"cd" "-pid" "-core" "-directory"
"-annotate"
"i" "-interpreter"