aboutsummaryrefslogtreecommitdiff
path: root/proc.h
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar@axis.com>2012-10-09 12:15:20 +0200
committerEdgar E. Iglesias <edgar@axis.com>2012-10-15 09:33:10 +0200
commitcc77b0e0e735d598f4bc746f8e79b6cd342bd606 (patch)
tree156d6cec1f8b80d87b1b6eb0af329b3edc50f2fe /proc.h
parent9f4a41340383c105f7d57a176a1f3d511ab77e1d (diff)
downloadltrace-cc77b0e0e735d598f4bc746f8e79b6cd342bd606.tar.gz
Export find_dynamic_entry_addr
Export find_dynamic_entry_addr as proc_find_dynamic_entry_addr. Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index 9864e1b..b1b22b5 100644
--- a/proc.h
+++ b/proc.h
@@ -237,4 +237,9 @@ void *proc_each_breakpoint(struct Process *proc, void *start,
void *data),
void *data);
+/* Iterate through the dynamic section at src_addr looking for D_TAG.
+ * If tag is found, fill it's value in RET and return 0.
+ * If tag is not found, return a negative value. */
+int proc_find_dynamic_entry_addr(struct Process *proc, arch_addr_t src_addr,
+ int d_tag, arch_addr_t *ret);
#endif /* _PROC_H_ */