diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 14:46:03 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-11-19 14:46:03 +0000 |
commit | 32ccb4380da70ad3f450f08a7cdde0852b8cd7a0 (patch) | |
tree | a719603a47f4d7b58bb0a1113198349a988a2ba4 /libbacktrace/backtrace.h | |
parent | 3ebca59c707fedef4f73a76bf01691cfa7c99ccf (diff) | |
download | gcc-32ccb4380da70ad3f450f08a7cdde0852b8cd7a0.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205028 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/backtrace.h')
-rw-r--r-- | libbacktrace/backtrace.h | 7 |
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 |