diff options
author | Roland McGrath <roland@redhat.com> | 2005-11-17 03:16:00 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2005-11-17 03:16:00 +0000 |
commit | e47ab76f02c2a4f4d802ec298969ba67956435fe (patch) | |
tree | 39dccb25273f15a488632c952738909f860c4b71 /libdwfl/libdwfl.h | |
parent | d7f8d0caa7a357f9f4765e5dc93255f5057eba2e (diff) | |
download | elfutils-e47ab76f02c2a4f4d802ec298969ba67956435fe.tar.gz |
Update new test after merge.
Diffstat (limited to 'libdwfl/libdwfl.h')
-rw-r--r-- | libdwfl/libdwfl.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index 64e38d59..8b069e27 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -328,8 +328,21 @@ extern const char *dwfl_lineinfo (Dwfl_Line *line, Dwarf_Addr *addr, /* Find the symbol that ADDRESS lies inside, and return its name. */ -const char *dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr address); +extern const char *dwfl_module_addrname (Dwfl_Module *mod, GElf_Addr address); +/* Return location expression to find return value given a + DW_TAG_subprogram, DW_TAG_subroutine_type, or similar DIE describing + function itself (whose DW_AT_type attribute describes its return type). + The given DIE must come from the given module. Returns -1 for errors. + Returns zero if the function has no return value (e.g. "void" in C). + Otherwise, *LOCOPS gets a location expression to find the return value, + and returns the number of operations in the expression. The pointer is + permanently allocated at least as long as the module is live. */ +extern int dwfl_module_return_value_location (Dwfl_Module *mod, + Dwarf_Die *functypedie, + const Dwarf_Op **locops); + + #endif /* libdwfl.h */ |