Fix omission of VM frames from backtrace
authorNeil Jerram <neil@ossau.uklinux.net>
Wed, 16 Sep 2009 23:14:16 +0000 (00:14 +0100)
committerNeil Jerram <neil@ossau.uklinux.net>
Wed, 16 Sep 2009 23:19:47 +0000 (00:19 +0100)
commitba20f78a6c91e0535d205f7f5291d860c1bcbc27
tree86df1d3f6e5b5fa88d57e96660ef355c1db20a17
parent931c82f5b02213c8e9e1cca2b21672b809970e18
Fix omission of VM frames from backtrace

From the time when a #<program> was a SMOB, really_make_boot_program
in vm.c was still using SCM_SET_SMOB_FLAGS to set the
SCM_F_PROGRAM_IS_BOOT flag - which meant that it was setting flag
1<<32 :-) which obviously was then missed by the SCM_PROGRAM_IS_BOOT
calls in stacks.c.

* libguile/programs.h (SCM_F_PROGRAM_IS_BOOT): Use a less significant
  bit for this flag, now that programs use a tc7 type.

* libguile/vm.c (really_make_boot_program): Don't use
  SCM_SET_SMOB_FLAGS, now that programs aren't SMOBs.
libguile/programs.h
libguile/vm.c