summaryrefslogtreecommitdiff
path: root/libbacktrace/backtrace.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-11-19 15:46:03 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-11-19 15:46:03 +0100
commit1f96a712d15825c10b61db3febb85b7cd4c245dc (patch)
treea719603a47f4d7b58bb0a1113198349a988a2ba4 /libbacktrace/backtrace.h
parente4effef72de27cd0a9b16f9c6190ab7f97e92a5c (diff)
backtrace.h (backtrace_syminfo_callback): Add symsize argument.
* backtrace.h (backtrace_syminfo_callback): Add symsize argument. * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as last argument. * btest.c (struct symdata): Add size field. (callback_three): Add symsize argument. Copy it to the data->size field. (f23): Set symdata.size to 0. (test5): Likewise. If sizeof (int) > 1, lookup address of ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size values. From-SVN: r205028
Diffstat (limited to 'libbacktrace/backtrace.h')
-rw-r--r--libbacktrace/backtrace.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libbacktrace/backtrace.h b/libbacktrace/backtrace.h
index 3be400737c1..33595cf5139 100644
--- a/libbacktrace/backtrace.h
+++ b/libbacktrace/backtrace.h
@@ -169,12 +169,13 @@ extern int backtrace_pcinfo (struct backtrace_state *state, uintptr_t pc,
/* The type of the callback argument to backtrace_syminfo. DATA and
PC are the arguments passed to backtrace_syminfo. SYMNAME is the
name of the symbol for the corresponding code. SYMVAL is the
- value. SYMNAME will be NULL if no error occurred but the symbol
- could not be found. */
+ value and SYMSIZE is the size of the symbol. SYMNAME will be NULL
+ if no error occurred but the symbol could not be found. */
typedef void (*backtrace_syminfo_callback) (void *data, uintptr_t pc,
const char *symname,
- uintptr_t symval);
+ uintptr_t symval,
+ uintptr_t symsize);
/* Given ADDR, an address or program counter in the current program,
call the callback information with the symbol name and value