diff options
| author | Nick Roberts | 2009-09-24 10:33:23 +0000 |
|---|---|---|
| committer | Nick Roberts | 2009-09-24 10:33:23 +0000 |
| commit | 8d3803dfa7baf0c2f05e39c77a3392ee8ca7d058 (patch) | |
| tree | bafb283058f3761cb7ed080d762371f0f01bb02f | |
| parent | 5463439c2085cbb445289ec9e57db6108ae51482 (diff) | |
| download | emacs-old-branches/EMACS_23_1_RC.tar.gz emacs-old-branches/EMACS_23_1_RC.zip | |
(gdb-jsonify-buffer): Catch log stream output.old-branches/EMACS_23_1_RC
(gdb-init-2): Fortran requires list MAIN__ to find source buffer.
(gdb-jsonify-buffer): Handle case where "=" is part of value string.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index d038f01b0ef..f26eff183e2 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -732,6 +732,7 @@ otherwise do not." | |||
| 732 | ;; Find source file and compilation directory here. | 732 | ;; Find source file and compilation directory here. |
| 733 | ;; Works for C, C++, Fortran and Ada but not Java (GDB 6.4) | 733 | ;; Works for C, C++, Fortran and Ada but not Java (GDB 6.4) |
| 734 | (gdb-enqueue-input (list "server list\n" 'ignore)) | 734 | (gdb-enqueue-input (list "server list\n" 'ignore)) |
| 735 | (gdb-enqueue-input (list "server list MAIN__\n" 'ignore)) | ||
| 735 | (gdb-enqueue-input (list "server info source\n" 'gdb-source-info))) | 736 | (gdb-enqueue-input (list "server info source\n" 'gdb-source-info))) |
| 736 | 737 | ||
| 737 | (defun gdb-get-version () | 738 | (defun gdb-get-version () |
| @@ -1824,7 +1825,6 @@ incompatible with GDB/MI output syntax." | |||
| 1824 | (save-excursion | 1825 | (save-excursion |
| 1825 | (while (re-search-forward (concat "[\\[,]\\(" fix-key "=\\)") nil t) | 1826 | (while (re-search-forward (concat "[\\[,]\\(" fix-key "=\\)") nil t) |
| 1826 | (replace-match "" nil nil nil 1)))) | 1827 | (replace-match "" nil nil nil 1)))) |
| 1827 | ;; Emacs bug #3794 | ||
| 1828 | (when fix-list | 1828 | (when fix-list |
| 1829 | (save-excursion | 1829 | (save-excursion |
| 1830 | ;; Find positions of braces which enclose broken list | 1830 | ;; Find positions of braces which enclose broken list |
| @@ -1842,9 +1842,9 @@ incompatible with GDB/MI output syntax." | |||
| 1842 | (insert "]")))))) | 1842 | (insert "]")))))) |
| 1843 | (goto-char (point-min)) | 1843 | (goto-char (point-min)) |
| 1844 | (insert "{") | 1844 | (insert "{") |
| 1845 | ;; TODO: This breaks badly with foo= inside constants | 1845 | (while (re-search-forward |
| 1846 | (while (re-search-forward "\\([[:alpha:]-_]+\\)=" nil t) | 1846 | "\\([[:alnum:]-_]+\\)=\\(\\[\\|\"\"\\|\".*?[^\\]\"\\)" nil t) |
| 1847 | (replace-match "\"\\1\":" nil nil)) | 1847 | (replace-match "\"\\1\":\\2" nil nil)) |
| 1848 | (goto-char (point-max)) | 1848 | (goto-char (point-max)) |
| 1849 | (insert "}"))) | 1849 | (insert "}"))) |
| 1850 | 1850 | ||