mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 13:30:26 +02:00
(system vm debug): implement arity-low-pc, arity-high-pc
* module/system/vm/debug.scm (arity-low-pc, arity-high-pc): Implement these exports.
This commit is contained in:
parent
919f304fb2
commit
9dff1df97f
1 changed files with 8 additions and 0 deletions
|
@ -253,6 +253,14 @@ section of the ELF image. Returns an ELF symbol, or @code{#f}."
|
|||
(define (has-keyword-args? flags) (not (zero? (logand flags (ash 1 2)))))
|
||||
(define (is-case-lambda? flags) (not (zero? (logand flags (ash 1 3)))))
|
||||
|
||||
(define (arity-low-pc arity)
|
||||
(arity-low-pc* (elf-bytes (debug-context-elf (arity-context arity)))
|
||||
(arity-header-offset arity)))
|
||||
|
||||
(define (arity-high-pc arity)
|
||||
(arity-high-pc* (elf-bytes (debug-context-elf (arity-context arity)))
|
||||
(arity-header-offset arity)))
|
||||
|
||||
(define (arity-nreq arity)
|
||||
(arity-nreq* (elf-bytes (debug-context-elf (arity-context arity)))
|
||||
(arity-header-offset arity)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue