Asynchronous insertion for dwarf-mode.el
authorTom Tromey <tom@tromey.com>
Fri, 6 Oct 2017 20:36:44 +0000 (14:36 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 10 Oct 2017 19:01:42 +0000 (13:01 -0600)
commitc85fa91b5c0dc70641d75d6ab9315ad547487c1f
tree4763730d01a61eb37c8dab69e80226ce7441b350
parente4905c7464d23367248bdd5d8eccaebb495b8274
Asynchronous insertion for dwarf-mode.el

I was recently examining a very large .debug file.  I tried to use
dwarf-mode, but it blocked Emacs for a very long time while reading
output.

This patch changes dwarf-mode to run the objdump process asynchronously.
This way, I can still do other things in Emacs while waiting for the
dumping to finish.

2017-10-10  Tom Tromey  <tom@tromey.com>

* dwarf-mode.el (dwarf--process, dwarf--deletion-region): New
defvar.
(dwarf--check-running, dwarf--sentinel, dwarf--invoke)
(dwarf--filter): New functions.
(dwarf-do-insert-substructure, dwarf-do-refresh): Call
dwarf--check-running, dwarf--invoke.
(dwarf-browse): Initialize new variables.
binutils/ChangeLog
binutils/dwarf-mode.el