Skip to main content
path: root/elf.h
diff options
authoreutarass2008-06-16 23:33:58 +0000
committereutarass2008-06-16 23:33:58 +0000
commit7782b41661bb21a4553a16849d4c2b15575cddbc (patch)
tree7924a77661220060dc8134d12a003563a934decf /elf.h
parent5b8439433208997be351660c58b45917b9b3bb9d (diff)
1. TCF agent Stack Trace service: fixed handling of PLT entries on Linux.
2. TCF agent Run Control service: fixed suspend reason reporting 3. TCF debugger: implemented source level step into command 4. Multiple fixes/improvement related to source level stepping 5. Better handling of TCF plugins activation/deactivation: start TCF event thread after plugin is fully activated, shutdown the thread when plugin is deactivated
Diffstat (limited to 'elf.h')
1 files changed, 10 insertions, 2 deletions
diff --git a/elf.h b/elf.h
index 64a59b48..dee06fbd 100644
--- a/elf.h
+++ b/elf.h
@@ -16,10 +16,10 @@
#define D_elf
#include "mdep.h"
-/*#include <sys/types.h> */
#if !defined(WIN32)
# include <elf.h>
+#include "context.h"
typedef unsigned char U1_T;
typedef signed char I1_T;
@@ -77,6 +77,14 @@ struct ELF_Section {
extern ELF_File * elf_open(char * file_name);
+ * Open context main module ELF file for reading.
+ * Same file can be opened mutiple times, each call to elf_open() increases reference counter.
+ * File must be closed after usage by calling elf_close().
+ * Returns the file descriptior on success. If error, returns NULL and sets errno.
+ */
+extern ELF_File * elf_open_main(Context * ctx);
* Read section data from ELF file.
* '*rd_len' is set to number of bytes transfered into the buffer.
* Returns zero on success. If error, returns -1 and sets errno.
@@ -94,7 +102,7 @@ extern int elf_load(ELF_Section * section, U1_T ** address);
* Close ELF file.
* Each call of elf_close() decrements reference counter.
- * The file be kept in cache for some time even after all references are closed.
+ * The file will be kept in cache for some time even after all references are closed.
extern void elf_close(ELF_File * file);

Back to the top