• Yuan Fu's avatar
    Enhance memory address evaluation in gdb-mi · 07e1852c
    Yuan Fu authored
    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)
    07e1852c
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...