Hi,
is there any example how to implement the callbacks for remote
unwinding? I tried this so far (pseudo code):
as = unw_create_addr_space(callbacks)
unw_init_remote(as, cursor)
unw_step(cursor)
first i get a callback to access_reg which i respond with the current
IP and SP registers
then i get a callback to get_dyn_info_list_addr which i respond with
UNW_ENOINFO due to the lack of any generated code
next is an infinite loop of access_mem with address 0xf 0x17 0xf 0x17
etc...
not exactly sure why libunwind thinks it needs to access those
addresses. they're not in the processes address space, and they are in
neither IP nor SP.
_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel