diff options
author | Andy Wingo <wingo@pobox.com> | 2013-11-08 10:03:48 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-11-08 10:11:48 +0100 |
commit | 0e3a59f75050041f4f6b423a53193609335f708d (patch) | |
tree | ae27d016e349331db5814c33708c3a1c59c21670 /libguile/programs.c | |
parent | 1ab116f39075f8dcf1b6c8084d9afc547f9a85b7 (diff) | |
download | guile-0e3a59f75050041f4f6b423a53193609335f708d.tar.gz |
Fix reading and writing arities into DWARF.
* libguile/gsubr.h:
* libguile/gsubr.c (scm_i_primitive_call_ip):
* libguile/programs.c (scm_primitive_call_ip): Adapt to return an
absolute address.
* module/system/vm/assembler.scm (write-arity-headers): Adapt to write
byte addresses (relative to the text base).
* module/system/vm/debug.scm (arity-low-pc, arity-high-pc): Return
absolute addresses, instead of word offsets relative to the text
base.
(find-first-arity): Adapt for absolute addresses.
* module/system/vm/program.scm (program-arguments-alist): Adapt for
arity-low-pc / arity-high-pc absolute addresses.
Diffstat (limited to 'libguile/programs.c')
-rw-r--r-- | libguile/programs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/programs.c b/libguile/programs.c index 3e228f79c..f74e4ed5c 100644 --- a/libguile/programs.c +++ b/libguile/programs.c @@ -248,7 +248,7 @@ SCM_DEFINE (scm_primitive_call_ip, "primitive-call-ip", 1, 0, 0, { SCM_MAKE_VALIDATE (1, prim, PRIMITIVE_P); - return scm_from_int (scm_i_primitive_call_ip (prim)); + return scm_from_uintptr_t (scm_i_primitive_call_ip (prim)); } #undef FUNC_NAME |