mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 09:07:38 +01:00
(do_backtrace): Adjust for new "offset" argument in unw_get_proc_name().
(Logical change 1.45)
This commit is contained in:
parent
5f82f8e557
commit
d20530f7ab
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ do_backtrace (pid_t target_pid)
|
||||||
{
|
{
|
||||||
unw_get_reg (&c, UNW_REG_IP, &ip);
|
unw_get_reg (&c, UNW_REG_IP, &ip);
|
||||||
unw_get_reg (&c, UNW_REG_SP, &sp);
|
unw_get_reg (&c, UNW_REG_SP, &sp);
|
||||||
unw_get_proc_name (&c, buf, sizeof (buf));
|
unw_get_proc_name (&c, buf, sizeof (buf), NULL);
|
||||||
|
|
||||||
printf ("%016lx %-32s (sp=%016lx)\n", (long) ip, buf, (long) sp);
|
printf ("%016lx %-32s (sp=%016lx)\n", (long) ip, buf, (long) sp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue