From 7a747a28b138ec771d9c9629e3b1c9d2a8cba6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 31 May 2018 13:32:24 +0200 Subject: [PATCH] Add a `get_pid` field to `struct unw_accessors` --- include/libunwind-common.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/libunwind-common.h.in b/include/libunwind-common.h.in index fa753ba1..eb156018 100644 --- a/include/libunwind-common.h.in +++ b/include/libunwind-common.h.in @@ -180,6 +180,11 @@ typedef struct unw_accessors NULL. */ int (*get_proc_name) (unw_addr_space_t, unw_word_t, char *, size_t, unw_word_t *, void *); + + /* Retrieve the PID of the process this memory belongs to. + Returns 0 for local memory or when undefined. + This must be non-zero for init_remote. */ + int (*get_pid) (void *); } unw_accessors_t;