aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-impl.h
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-04-24 11:15:33 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-05-28 17:08:19 +0100
commitb437bfe0f4cf06559ca4c508a2869383196ddc6b (patch)
tree295fe61f500d0ad7e248c795829384fbbf382e37 /libctf/ctf-impl.h
parent316afdb130346e44622229793d1fb8d391059f8d (diff)
downloadgdb-b437bfe0f4cf06559ca4c508a2869383196ddc6b.zip
gdb-b437bfe0f4cf06559ca4c508a2869383196ddc6b.tar.gz
gdb-b437bfe0f4cf06559ca4c508a2869383196ddc6b.tar.bz2
libctf: lookups by name and symbol
These functions allow you to look up types given a name in a simple subset of C declarator syntax (no function pointers), to look up the types of variables given a name, and to look up the types of data objects and the type signatures of functions given symbol table offsets. (Despite its name, one function in this commit, ctf_lookup_symbol_name(), is for the internal use of libctf only, and does not appear in any public header files.) libctf/ * ctf-lookup.c (isqualifier): New. (ctf_lookup_by_name): Likewise. (struct ctf_lookup_var_key): Likewise. (ctf_lookup_var): Likewise. (ctf_lookup_variable): Likewise. (ctf_lookup_symbol_name): Likewise. (ctf_lookup_by_symbol): Likewise. (ctf_func_info): Likewise. (ctf_func_args): Likewise. include/ * ctf-api.h (ctf_func_info): New. (ctf_func_args): Likewise. (ctf_lookup_by_symbol): Likewise. (ctf_lookup_by_symbol): Likewise. (ctf_lookup_variable): Likewise.
Diffstat (limited to 'libctf/ctf-impl.h')
-rw-r--r--libctf/ctf-impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index cd84505..ff18504 100644
--- a/libctf/ctf-impl.h
+++ b/libctf/ctf-impl.h
@@ -368,6 +368,7 @@ extern void ctf_dprintf (const char *, ...);
extern void libctf_init_debug (void);
extern Elf64_Sym *ctf_sym_to_elf64 (const Elf32_Sym *src, Elf64_Sym *dst);
+extern const char *ctf_lookup_symbol_name (ctf_file_t *fp, unsigned long symidx);
/* Variables, all underscore-prepended. */