GDB support: add frame annotators and filters
authorAndy Wingo <wingo@pobox.com>
Tue, 17 Feb 2015 10:02:52 +0000 (11:02 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 17 Feb 2015 10:02:52 +0000 (11:02 +0100)
commit47612fd68ae93815c08a92b504f9334b224c557e
tree3a379addc5699314d78d379652949ac5527ae014
parentef52b3992c95be4a891dc147990145e3656b0e62
GDB support: add frame annotators and filters

These features depend on a patch to GDB that has not been merged yet.
If GDB doesn't support the annotator/filter interface, the code have no
effect.

* libguile/libguile-2.2-gdb.scm (compile-time-cond): New helper.
  (snarfy-frame-annotator): Simple annotator that gives subr names for
  snarfed gsubrs.
  (vm-frame-filter): New filter that interleaves Scheme frames with C
  frames on the stack when the user asks for a backtrace.
libguile/libguile-2.2-gdb.scm