Commit ce8aa074 by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent f298688c
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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment