aboutsummaryrefslogtreecommitdiff
path: root/backend.h
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-10-16 14:46:24 +0200
committerPetr Machata <pmachata@redhat.com>2013-10-23 01:00:02 +0200
commit9f819d5747dc2b8e0f7ac54b38dc321115de6dda (patch)
tree452c7753ef06db25fa7e0fdba5b2dd620ae171da /backend.h
parent8fdd09b028426f92df614d6ebe5c56d99877febf (diff)
downloadltrace-9f819d5747dc2b8e0f7ac54b38dc321115de6dda.tar.gz
Allow per-OS configuration hooks for struct breakpoint
Diffstat (limited to 'backend.h')
-rw-r--r--backend.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backend.h b/backend.h
index 361ea65..b4b3af1 100644
--- a/backend.h
+++ b/backend.h
@@ -227,6 +227,15 @@ int process_get_entry(struct process *proc,
int arch_elf_init(struct ltelf *lte, struct library *lib);
void arch_elf_destroy(struct ltelf *lte);
+/* The following callbacks have to be implemented in OS backend if
+ * os.h defines OS_HAVE_BREAKPOINT_DATA. Those are used to init,
+ * destroy, and clone SBP->os. os_breakpoint_init and
+ * os_breakpoint_clone return 0 on success or a negative value on
+ * failure. */
+int os_breakpoint_init(struct process *proc, struct breakpoint *sbp);
+void os_breakpoint_destroy(struct breakpoint *sbp);
+int os_breakpoint_clone(struct breakpoint *retp, struct breakpoint *sbp);
+
/* The following callbacks have to be implemented in backend if arch.h
* defines ARCH_HAVE_BREAKPOINT_DATA. Those are used to init,
* destroy, and clone SBP->arch. arch_breakpoint_init and