One thing that could be improved in libunwind is to understand if the
signal was generated by a fault or a trap and set the value of
use_prev_instr accordingly. Faults are generated before the IP is
updated to the next instruction and traps are generated after.

Don't know of a generic way for kernel to communicate this piece of
info to libunwind. The other alternative is to have an OS specific
table of signals -> trap/fault boolean.

 -Arun

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to