summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2019-10-05 22:42:07 -0400
committerEli Zaretskii <eliz@gnu.org>2020-02-08 11:46:54 +0200
commit07e1852c9b58ffa86443f61705e3dae4af0736f7 (patch)
treeef450586552bae025758d31d865939939b8ed207 /test/lisp/emacs-lisp
parent30abcda54e1b0e15fc10b3db1c2b9f89ca521bfa (diff)
downloademacs-07e1852c9b58ffa86443f61705e3dae4af0736f7.tar.gz
emacs-07e1852c9b58ffa86443f61705e3dae4af0736f7.tar.bz2
emacs-07e1852c9b58ffa86443f61705e3dae4af0736f7.zip
Enhance memory address evaluation in gdb-mi
Before, the memory buffer evaluated the expression as address and used the fixed result in each stop. This change store the expression itself and reevaluates it in each stop to yield an address. We also add a warning (a red bold exclamation mark) on the header line when the content of the page doesn't represent the memory location user requested for. That happends when some error occurs in evaluating the address, and we display the last successfully displayed memory page. * lisp/progmodes/gdb-mi.el (gdb-memory-address-expression) (gdb--memory-display-warning): New variables. (gdb-memory-address): Change default value to nil; add docstring. (def-gdb-trigger-and-handler, gdb-invalidate-memory) (gdb-memory-set-address): Replace 'gdb-memory-address' with 'gdb-memory-address-expression'. (gdb-memory-header): Add code to display 'gdb-memory-address-expression' on header line. Move the mouse event from address to expression. Add code to display the warning. (gdb-memory-header): Fix the error from 'propertize' when 'gdb-memory-address-expression' or 'gdb-memory-address' is nil. (gdb-read-memory-custom): Change 'error' to 'user-error'. Add code to display the warning. (Bug#39180)
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions