summaryrefslogtreecommitdiff
path: root/libguile/procprop.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2013-05-17 22:10:16 +0200
committerAndy Wingo <wingo@pobox.com>2013-06-09 23:59:19 +0200
commitc4c098e355bd2edcd3bc66eb7041c5f9cdeefef0 (patch)
treec1a55d1fc2dbe44b4201e3eaa076561e20d6fa05 /libguile/procprop.c
parentbf8328ec16cbe76b7af9703bb41e964865034561 (diff)
downloadguile-c4c098e355bd2edcd3bc66eb7041c5f9cdeefef0.tar.gz
procedure-properties for RTL functions
* module/system/vm/assembler.scm (link-procprops, link-objects): Arrange to write procedure property links out to a separate section. * libguile/procprop.c (scm_procedure_properties): * libguile/programs.h: * libguile/programs.c (scm_i_rtl_program_properties): * module/system/vm/debug.scm (find-program-properties): Wire up procedure-properties for RTL procedures. Yeah! Fistpumps! :) * module/system/vm/debug.scm (find-program-debug-info): Return #f if the string is "", as it is if we don't have a name. Perhaps elf-symbol-name should return #f in that case... * test-suite/tests/rtl.test: Add some tests.
Diffstat (limited to 'libguile/procprop.c')
-rw-r--r--libguile/procprop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/procprop.c b/libguile/procprop.c
index d7ce09b95..2d9e6550b 100644
--- a/libguile/procprop.c
+++ b/libguile/procprop.c
@@ -146,6 +146,8 @@ SCM_DEFINE (scm_procedure_properties, "procedure-properties", 1, 0, 0,
{
if (SCM_PROGRAM_P (proc))
ret = scm_i_program_properties (proc);
+ else if (SCM_RTL_PROGRAM_P (proc))
+ ret = scm_i_rtl_program_properties (proc);
else
ret = SCM_EOL;
}