diff options
| author | Nick Roberts | 2009-09-01 23:53:48 +0000 |
|---|---|---|
| committer | Nick Roberts | 2009-09-01 23:53:48 +0000 |
| commit | f6db4734d7e805dfff6006aa6f6aaa946451c0c3 (patch) | |
| tree | 54f22e048f9c2129bad4fede05f49056f927cde8 | |
| parent | ed17efec53ba3a4797d1dcf3612adf867ef58d87 (diff) | |
| download | emacs-f6db4734d7e805dfff6006aa6f6aaa946451c0c3.tar.gz emacs-f6db4734d7e805dfff6006aa6f6aaa946451c0c3.zip | |
(gdb-current-context-command): Move the
space ...
(gdb-gud-context-call): ... to here for pre GDB 7.0 when there is
no "--thread" option.
(gdb-stopped): Don't print "Switched to thread" message when it is
unchanged.
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 43cb614632e..781bd98f872 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -579,9 +579,8 @@ CMD1 and CMD2. NOALL is the same as in `gdb-gud-context-command'. | |||
| 579 | 579 | ||
| 580 | NOARG must be t when this macro is used outside `gud-def'" | 580 | NOARG must be t when this macro is used outside `gud-def'" |
| 581 | `(gud-call | 581 | `(gud-call |
| 582 | (concat | 582 | (concat (gdb-gud-context-command ,cmd1 ,noall) " " ,cmd2) |
| 583 | (gdb-gud-context-command ,cmd1 ,noall) | 583 | ,(when (not noarg) 'arg))) |
| 584 | ,cmd2) ,(when (not noarg) 'arg))) | ||
| 585 | 584 | ||
| 586 | ;;;###autoload | 585 | ;;;###autoload |
| 587 | (defun gdb (command-line) | 586 | (defun gdb (command-line) |
| @@ -1609,7 +1608,7 @@ then no --frame option is added." | |||
| 1609 | ;; gdb-frame-number may be nil while gdb-thread-number is non-nil | 1608 | ;; gdb-frame-number may be nil while gdb-thread-number is non-nil |
| 1610 | ;; (when current thread is running) | 1609 | ;; (when current thread is running) |
| 1611 | (if gdb-thread-number | 1610 | (if gdb-thread-number |
| 1612 | (concat command " --thread " gdb-thread-number " ") | 1611 | (concat command " --thread " gdb-thread-number) |
| 1613 | command)) | 1612 | command)) |
| 1614 | 1613 | ||
| 1615 | (defun gdb-current-context-buffer-name (name) | 1614 | (defun gdb-current-context-buffer-name (name) |
| @@ -1921,9 +1920,9 @@ current thread and update GDB buffers." | |||
| 1921 | ;; reasons | 1920 | ;; reasons |
| 1922 | (if (or (eq gdb-switch-reasons t) | 1921 | (if (or (eq gdb-switch-reasons t) |
| 1923 | (member reason gdb-switch-reasons)) | 1922 | (member reason gdb-switch-reasons)) |
| 1924 | (progn | 1923 | (when (not (string-equal gdb-thread-number thread-id)) |
| 1925 | (gdb-setq-thread-number thread-id) | 1924 | (message (concat "Switched to thread " thread-id)) |
| 1926 | (message (concat "Switched to thread " thread-id))) | 1925 | (gdb-setq-thread-number thread-id)) |
| 1927 | (message (format "Thread %s stopped" thread-id))))) | 1926 | (message (format "Thread %s stopped" thread-id))))) |
| 1928 | 1927 | ||
| 1929 | ;; Print "(gdb)" to GUD console | 1928 | ;; Print "(gdb)" to GUD console |