mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
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.
This commit is contained in:
parent
bf8328ec16
commit
c4c098e355
7 changed files with 179 additions and 8 deletions
|
@ -136,6 +136,18 @@ scm_i_rtl_program_documentation (SCM program)
|
|||
return scm_call_1 (scm_variable_ref (rtl_program_documentation), program);
|
||||
}
|
||||
|
||||
SCM
|
||||
scm_i_rtl_program_properties (SCM program)
|
||||
{
|
||||
static SCM rtl_program_properties = SCM_BOOL_F;
|
||||
|
||||
if (scm_is_false (rtl_program_properties) && scm_module_system_booted_p)
|
||||
rtl_program_properties =
|
||||
scm_c_private_variable ("system vm program", "rtl-program-properties");
|
||||
|
||||
return scm_call_1 (scm_variable_ref (rtl_program_properties), program);
|
||||
}
|
||||
|
||||
void
|
||||
scm_i_program_print (SCM program, SCM port, scm_print_state *pstate)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue