1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-05-20 20:05:18 +02:00

PPC: return failure from the unw_get_proc_info() stub

Stop pretending that unw_get_proc_info() works on PPC, and instead give
an error back to the caller. As far as I can tell, none of the libunwind
tests clear out the `unw_proc_info_t' before passing it to
unw_get_proc_info(), so they would end up working on garbage data.
This commit is contained in:
Tommi Rantala 2012-08-24 12:58:52 +03:00
parent 8f94f1e6c0
commit a745ac2f60

View file

@ -30,5 +30,5 @@ PROTECTED int
unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi)
{
/* XXX: empty stub. */
return 0;
return -UNW_EINVAL;
}