diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 04:37:06 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 04:37:06 +0000 |
commit | bbcd37bcae409d013f3d1744e623031ad33c9f6f (patch) | |
tree | 60bb16452a8ce14de9c8a07375c076e0032896f6 /libbacktrace | |
parent | d3cb8b936e82644d3a416fdec57fdd3a319a67c8 (diff) | |
download | gcc-bbcd37bcae409d013f3d1744e623031ad33c9f6f.tar.gz |
* dwarf.c (dwarf_fileline): Add cast to avoid warning.
(backtrace_dwarf_add): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192288 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 5 | ||||
-rw-r--r-- | libbacktrace/dwarf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index f9d68627767..f6fc888faf8 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,5 +1,10 @@ 2012-10-09 Ian Lance Taylor <iant@google.com> + * dwarf.c (dwarf_fileline): Add cast to avoid warning. + (backtrace_dwarf_add): Likewise. + +2012-10-09 Ian Lance Taylor <iant@google.com> + Add support for tracing through shared libraries. * configure.ac: Check for link.h and dl_iterate_phdr. * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c index 1b28a8f09b8..b198dea38dc 100644 --- a/libbacktrace/dwarf.c +++ b/libbacktrace/dwarf.c @@ -2763,7 +2763,7 @@ dwarf_fileline (struct backtrace_state *state, uintptr_t pc, { struct dwarf_data **pp; - pp = (struct dwarf_data **) &state->fileline_data; + pp = (struct dwarf_data **) (void *) &state->fileline_data; while (1) { ddata = *pp; @@ -2884,7 +2884,7 @@ backtrace_dwarf_add (struct backtrace_state *state, { struct dwarf_data **pp; - for (pp = (struct dwarf_data **) &state->fileline_data; + for (pp = (struct dwarf_data **) (void *) &state->fileline_data; *pp != NULL; pp = &(*pp)->next) ; @@ -2896,7 +2896,7 @@ backtrace_dwarf_add (struct backtrace_state *state, { struct dwarf_data **pp; - pp = (struct dwarf_data **) &state->fileline_data; + pp = (struct dwarf_data **) (void *) &state->fileline_data; while (1) { |