projects
/
platform
/
upstream
/
elfutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.165
[platform/upstream/elfutils.git]
/
libdwfl
/
dwfl_frame.c
diff --git
a/libdwfl/dwfl_frame.c
b/libdwfl/dwfl_frame.c
index
f6f86c0
..
d639939
100644
(file)
--- a/
libdwfl/dwfl_frame.c
+++ b/
libdwfl/dwfl_frame.c
@@
-57,7
+57,7
@@
state_fetch_pc (Dwfl_Frame *state)
__libdwfl_seterrno (DWFL_E_LIBEBL_BAD);
return false;
}
__libdwfl_seterrno (DWFL_E_LIBEBL_BAD);
return false;
}
- state->pc = state->regs[ra];
+ state->pc = state->regs[ra]
+ ebl_ra_offset (ebl)
;
state->pc_state = DWFL_FRAME_STATE_PC_SET;
}
return true;
state->pc_state = DWFL_FRAME_STATE_PC_SET;
}
return true;
@@
-143,7
+143,8
@@
dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
/* Reset any previous error, we are just going to try again. */
dwfl->attacherr = DWFL_E_NOERROR;
/* Reset any previous error, we are just going to try again. */
dwfl->attacherr = DWFL_E_NOERROR;
- if (thread_callbacks == NULL || thread_callbacks->next_thread == NULL
+ /* thread_callbacks is declared NN */
+ if (thread_callbacks->next_thread == NULL
|| thread_callbacks->set_initial_registers == NULL)
{
dwfl->attacherr = DWFL_E_INVALID_ARGUMENT;
|| thread_callbacks->set_initial_registers == NULL)
{
dwfl->attacherr = DWFL_E_INVALID_ARGUMENT;