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
This commit is contained in:
parent
f298688cb7
commit
ce8aa07436
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user