summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBjörn Svensson <bjorn.a.svensson@est.tech>2021-08-26 14:41:08 +0200
committerDave Watson <dade.watson@gmail.com>2021-11-26 09:00:09 -0800
commita8609062849f8261a40c170941400e6ba0a499c0 (patch)
tree3e8152abd8b86c1bd7433ae3f322ed145a9db1a9 /include
parent8b3832fea8a343ec0888545088c859074aaee20f (diff)
downloadlibunwind-a8609062849f8261a40c170941400e6ba0a499c0.tar.gz
Expose function-pointer-to-name API
The unw_get_proc_name_by_ip() function returns the name of a procedure just like unw_get_proc_name(), except that it's looked up by an instruction-pointer instead of a cursor.
Diffstat (limited to 'include')
-rw-r--r--include/libunwind-common.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libunwind-common.h.in b/include/libunwind-common.h.in
index c2e51782..6791211e 100644
--- a/include/libunwind-common.h.in
+++ b/include/libunwind-common.h.in
@@ -254,6 +254,7 @@ unw_save_loc_t;
#define unw_get_save_loc UNW_OBJ(get_save_loc)
#define unw_is_signal_frame UNW_OBJ(is_signal_frame)
#define unw_get_proc_name UNW_OBJ(get_proc_name)
+#define unw_get_proc_name_by_ip UNW_OBJ(get_proc_name_by_ip)
#define unw_set_caching_policy UNW_OBJ(set_caching_policy)
#define unw_set_cache_size UNW_OBJ(set_cache_size)
#define unw_regname UNW_ARCH_OBJ(regname)
@@ -286,6 +287,8 @@ extern int unw_set_fpreg (unw_cursor_t *, int, unw_fpreg_t);
extern int unw_get_save_loc (unw_cursor_t *, int, unw_save_loc_t *);
extern int unw_is_signal_frame (unw_cursor_t *);
extern int unw_get_proc_name (unw_cursor_t *, char *, size_t, unw_word_t *);
+extern int unw_get_proc_name_by_ip (unw_addr_space_t, unw_word_t, char *,
+ size_t, unw_word_t *, void *);
extern const char *unw_strerror (int);
extern int unw_backtrace (void **, int);