summaryrefslogtreecommitdiff
path: root/libdw/libdw.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2014-04-15 14:31:55 +0200
committerMark Wielaard <mjw@redhat.com>2014-04-24 13:18:33 +0200
commit35e2a765c002374f1b88dc81ce154bed42f9b1d8 (patch)
treed187b267392a32f3dd1e2af10b933fb8c02a024d /libdw/libdw.h
parentefa72a02de8a3bbbc43c8de659697df5d425ea7e (diff)
downloadelfutils-35e2a765c002374f1b88dc81ce154bed42f9b1d8.tar.gz
libdw: Add dwarf_getalt, dwarf_setalt
Signed-off-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'libdw/libdw.h')
-rw-r--r--libdw/libdw.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libdw/libdw.h b/libdw/libdw.h
index 0d94c526..a4654c44 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -260,6 +260,18 @@ extern Dwarf *dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp);
/* Retrieve ELF descriptor used for DWARF access. */
extern Elf *dwarf_getelf (Dwarf *dwarf);
+/* Retrieves the DWARF descriptor for debugaltlink data. Returns NULL
+ if no alternate debug data has been supplied. */
+extern Dwarf *dwarf_getalt (Dwarf *main);
+
+/* Provides the data referenced by the .gnu_debugaltlink section. The
+ caller should check that MAIN and ALT match (i.e., they have the
+ same build ID). It is the responsibility of the caller to ensure
+ that the data referenced by ALT stays valid while it is used by
+ MAIN, until dwarf_setalt is called on MAIN with a different
+ descriptor, or dwarf_end. */
+extern void dwarf_setalt (Dwarf *main, Dwarf *alt);
+
/* Release debugging handling context. */
extern int dwarf_end (Dwarf *dwarf);