mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 04:52:53 +01:00
(main): Set di.end_ip based on the region's insn_count (old value for di.end_ip was
too small when using ECC). (Logical change 1.70)
This commit is contained in:
parent
5907edf946
commit
6bf5cdd335
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ main (int argc, char *argv[])
|
|||
|
||||
memset (&di, 0, sizeof (di));
|
||||
di.start_ip = (long) mem;
|
||||
di.end_ip = (long) mem + 256;
|
||||
di.end_ip = (long) mem + 16*region->insn_count/3;
|
||||
di.gp = get_gp (fdesc);
|
||||
di.format = UNW_INFO_FORMAT_DYNAMIC;
|
||||
di.u.pi.name_ptr = (unw_word_t) "copy_of_template";
|
||||
|
|
Loading…
Reference in a new issue