diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-10-25 12:40:36 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-10-31 13:42:07 +0100 |
commit | a78c6141bc1a34622894af3cee45f350e3b629ac (patch) | |
tree | 95c92d1285e5c5f716f9938e7ebf58d79e1f87a0 /test/lisp/emacs-lisp/cl-preloaded-tests.el | |
parent | 7f30bf72066514db44cf00b20f807bb360e1b968 (diff) | |
download | emacs-a78c6141bc1a34622894af3cee45f350e3b629ac.tar.gz emacs-a78c6141bc1a34622894af3cee45f350e3b629ac.tar.bz2 emacs-a78c6141bc1a34622894af3cee45f350e3b629ac.zip |
Parse GDB/MI results directly instead of going via JSON (bug#44173)
Translating GDB/MI into JSON is an unnecessary and fragile detour
that made it hard to deal with octal escapes in strings correctly.
Parse GDB/MI directly instead.
* lisp/progmodes/gdb-mi.el (gdb-mi-decode-strings): Adjust doc string.
(gdb-mi-decode, gud-gdbmi-marker-filter): Remove gdb-mi-decode.
(gdb-jsonify-buffer): Remove.
(gdb-mi--parse-tuple-or-list, gdb-mi--parse-c-string)
(gdb-mi--parse-value, gdb-mi--parse-result-or-value)
(gdb-mi--parse-results, gdb-mi--fix-key, gdb-mi--extend-fullname)
(gdb-mi--c-string-from-string): New functions.
(gdb-json-read-buffer, gdb-json-string, gdb-json-partial-output):
Rename to gdb-mi--read-buffer, gdb-mi--from-string and
gdb-mi--partial-output respectively. Remove useless FIX-LIST
argument. FIX-KEY is now a symbol, not a string. All callers updated.
(gdb-tooltip-print, gdbmi-bnf-log-stream-output, gdb-internals)
(gdb-console, gdb-done-or-error, gdb-get-source-file-list)
(gdb-get-prompt, gdb-get-source-file):
Use gdb-mi--c-string-from-string instead of 'read'.
* test/lisp/progmodes/gdb-mi-tests.el: New file.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-preloaded-tests.el')
0 files changed, 0 insertions, 0 deletions