diff options
author | Tommi Rantala <tt.rantala@gmail.com> | 2012-08-24 12:58:52 +0300 |
---|---|---|
committer | Tommi Rantala <tt.rantala@gmail.com> | 2012-09-04 13:26:13 +0300 |
commit | a745ac2f60b995fc23479daa5da9ca6226b01949 (patch) | |
tree | 7d02e8208b5da31442665c444556c0e26d3969fa /src/ppc | |
parent | 8f94f1e6c01648ff41dec9b44bd7a8b6a230671e (diff) | |
download | libunwind-a745ac2f60b995fc23479daa5da9ca6226b01949.tar.gz |
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.
Diffstat (limited to 'src/ppc')
-rw-r--r-- | src/ppc/Gget_proc_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppc/Gget_proc_info.c b/src/ppc/Gget_proc_info.c index 21be70c4..ff08d1b8 100644 --- a/src/ppc/Gget_proc_info.c +++ b/src/ppc/Gget_proc_info.c @@ -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; } |