diff options
author | Ian Lance Taylor <iant@google.com> | 2012-10-10 04:37:06 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-10-10 04:37:06 +0000 |
commit | ce8aa074367f364f59edc373597c716e2adbf49e (patch) | |
tree | 60bb16452a8ce14de9c8a07375c076e0032896f6 /libbacktrace | |
parent | f298688cb7abbdfc858995bfc208d59592e23d08 (diff) | |
download | gcc-ce8aa074367f364f59edc373597c716e2adbf49e.zip gcc-ce8aa074367f364f59edc373597c716e2adbf49e.tar.gz gcc-ce8aa074367f364f59edc373597c716e2adbf49e.tar.bz2 |
dwarf.c (dwarf_fileline): Add cast to avoid warning.
* dwarf.c (dwarf_fileline): Add cast to avoid warning.
(backtrace_dwarf_add): Likewise.
From-SVN: r192288
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 f9d6862..f6fc888 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 1b28a8f..b198dea 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) { |