package owee

  1. Overview
  2. Docs
OCaml library to work with DWARF format

Install

dune-project
 Dependency

Authors

Maintainers

Sources

owee-0.8.tbz
sha256=064f6245f5995d5d2f4f1f9c6d2992e2fdbe3dde328216baec7cfabd4857940d
sha512=c79cdaeedbd08ee58784e965a2865aff94d41013c4f978fd21ebd84df742402aeddaab2f1880bde0d0ff7311fe0565151882e6060590d751119ad0fd9d62a901

doc/owee/Owee_location/index.html

Module Owee_location

type t

An abstract type representing compiled program locations. It is designed to make sampling cheap (see extract), deferring most of the work in the much more expensive lookup function (without guarantee to succeed).

val none : t

A location that can never be resolved

val extract : (_ -> _) -> t

Sample the location from an arbitrary OCaml function. Cheap, appropriate to use on a fast path.

val lookup : t -> (string * int * int) option

Turn a location into an actual position. If it succeeds, the position is returned as a triplet (file, line, column). To succeed, debug information must be available for the location.

This call might be quite expensive.

val locate : (_ -> _) -> (string * int * int) option

Convenience function composing lookup and extract, to immediately turn a function into a position.

val nearest_symbol : t -> string
val demangled_symbol : string -> string
val nearest_demangled_symbol : t -> string