summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-01-15 01:28:14 +0000
committerCary Coutant <ccoutant@google.com>2009-01-15 01:28:14 +0000
commit0cfdf12ebb79fbe02ef38ba04ebf72e70209fe84 (patch)
tree3275f1dbeda0311d41b36da0f323d37d4b5a4e3a /include
parentc6bf25e6e5ea9e480d09dfafd68b2748aca7b5a7 (diff)
downloadgdb-0cfdf12ebb79fbe02ef38ba04ebf72e70209fe84.tar.gz
* plugin-api.h (LDPS_BAD_HANDLE): New constant.
(ld_plugin_get_input_file): New typedef. (ld_plugin_release_input_file): New typedef. (LDPT_GET_INPUT_FILE, LDPT_RELEASE_INPUT_FILE): New constants. (struct ld_plugin_tv): Add two new fields.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog8
-rw-r--r--include/plugin-api.h21
2 files changed, 28 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index d9fae8232f6..ccfc77665e1 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-01 Cary Coutant <ccoutant@google.com>
+
+ * plugin-api.h (LDPS_BAD_HANDLE): New constant.
+ (ld_plugin_get_input_file): New typedef.
+ (ld_plugin_release_input_file): New typedef.
+ (LDPT_GET_INPUT_FILE, LDPT_RELEASE_INPUT_FILE): New constants.
+ (struct ld_plugin_tv): Add two new fields.
+
2008-12-23 Jon Beniston <jon@beniston.com>
* dis-asm.h: Add LM32 disassembler function prototype.
diff --git a/include/plugin-api.h b/include/plugin-api.h
index a90fa23185d..f536d57d751 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -40,6 +40,7 @@ enum ld_plugin_status
{
LDPS_OK = 0,
LDPS_NO_SYMS, /* Attempt to get symbols that haven't been added. */
+ LDPS_BAD_HANDLE, /* No claimed object associated with given handle. */
LDPS_ERR
/* Additional Error codes TBD. */
};
@@ -165,6 +166,20 @@ enum ld_plugin_status
(*ld_plugin_add_symbols) (void *handle, int nsyms,
const struct ld_plugin_symbol *syms);
+/* The linker's interface for getting the input file information with
+ an open (possibly re-opened) file descriptor. */
+
+typedef
+enum ld_plugin_status
+(*ld_plugin_get_input_file) (const void *handle,
+ struct ld_plugin_input_file *file);
+
+/* The linker's interface for releasing the input file. */
+
+typedef
+enum ld_plugin_status
+(*ld_plugin_release_input_file) (const void *handle);
+
/* The linker's interface for retrieving symbol resolution information. */
typedef
@@ -207,7 +222,9 @@ enum ld_plugin_tag
LDPT_ADD_SYMBOLS,
LDPT_GET_SYMBOLS,
LDPT_ADD_INPUT_FILE,
- LDPT_MESSAGE
+ LDPT_MESSAGE,
+ LDPT_GET_INPUT_FILE,
+ LDPT_RELEASE_INPUT_FILE
};
/* The plugin transfer vector. */
@@ -226,6 +243,8 @@ struct ld_plugin_tv
ld_plugin_get_symbols tv_get_symbols;
ld_plugin_add_input_file tv_add_input_file;
ld_plugin_message tv_message;
+ ld_plugin_get_input_file tv_get_input_file;
+ ld_plugin_release_input_file tv_release_input_file;
} tv_u;
};