aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-04-24 11:26:42 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-05-28 17:08:29 +0100
commit6c33b742ce19cc2fd226d84f2991572239199a62 (patch)
treeb6ef5f9c4b2aa6d1c4a716a4e279c9d6a7222c1d /include
parentc499eb6896cd803d26da8c719bfac9c03e596c08 (diff)
downloadgdb-6c33b742ce19cc2fd226d84f2991572239199a62.zip
gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.gz
gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.bz2
libctf: library version enforcement
This old Solaris standard allows callers to specify that they are expecting one particular API and/or CTF file format from the library. libctf/ * ctf-impl.h (_libctf_version): New declaration. * ctf-subr.c (_libctf_version): Define it. (ctf_version): New. include/ * ctf-api.h (ctf_version): New.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/ctf-api.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 4be07a5..56922ad 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,9 @@
2019-05-28 Nick Alcock <nick.alcock@oracle.com>
+ * ctf-api.h (ctf_version): New.
+
+2019-05-28 Nick Alcock <nick.alcock@oracle.com>
+
* ctf-api.h (ctf_func_info): New.
(ctf_func_args): Likewise.
(ctf_lookup_by_symbol): Likewise.
diff --git a/include/ctf-api.h b/include/ctf-api.h
index 045d8af..6ab754a 100644
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -269,6 +269,7 @@ extern void *ctf_getspecific (ctf_file_t *);
extern int ctf_errno (ctf_file_t *);
extern const char *ctf_errmsg (int);
+extern int ctf_version (int);
extern int ctf_func_info (ctf_file_t *, unsigned long, ctf_funcinfo_t *);
extern int ctf_func_args (ctf_file_t *, unsigned long, uint32_t, ctf_id_t *);