Add full display feature to dwarf-mode.el
authorTom Tromey <tromey@adacore.com>
Thu, 9 Feb 2023 20:33:21 +0000 (13:33 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 9 Feb 2023 20:50:21 +0000 (13:50 -0700)
commit93c8054387a7f0ba7ca1f1dcc671a1b5c0c0db07
tree150e4307b0bfd9ba2537d6e564a9e1ea900b895e
parent8e77fff268d4aab7951f4d19af9e2f9046c9c0a0
Add full display feature to dwarf-mode.el

I've found that I often use dwarf-mode with relatively small test
files.  In this situation, it's handy to be able to expand all the
DWARF, rather than moving to each "..." separately and using C-u C-m.

This patch implements this feature.  It also makes a couple of other
minor changes:

* I removed a stale FIXME from dwarf-mode.  In practice I find I often
  use "g" to restore the buffer to a pristine state; checking the file
  mtime would work against this.

* I tightened the regexp in dwarf-insert-substructure.  This prevents
  the C-m binding from trying to re-read a DIE which has already been
  expanded.

* Finally, I've bumped the dwarf-mode version number so that this
  version can easily be installed using package.el.

2023-02-09  Tom Tromey  <tromey@adacore.com>

* dwarf-mode.el: Bump version to 1.8.
(dwarf-insert-substructure): Tighten regexp.
(dwarf-refresh-all): New defun.
(dwarf-mode-map): Bind "A" to dwarf-refresh-all.
(dwarf-mode): Remove old FIXME.
binutils/ChangeLog
binutils/dwarf-mode.el