[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 05/19] PPC: return failure from the unw_get_pro
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 05/19] PPC: return failure from the unw_get_proc_info() stub |
Date: |
Wed, 5 Sep 2012 14:50:13 +0300 |
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.
---
src/ppc/Gget_proc_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ppc/Gget_proc_info.c b/src/ppc/Gget_proc_info.c
index 21be70c..ff08d1b 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;
}
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/19] misc fixes, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 04/19] PPC: add missing debug level in Debug() calls in Gstep.c, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 02/19] Check __builtin___clear_cache() at configuration time, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 03/19] HPPA: fix common_init() bitrot, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 01/19] Annotate unused argument in mark_as_used() to avoid -Wextra compiler noise, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 05/19] PPC: return failure from the unw_get_proc_info() stub,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 06/19] Remove free() NULL pointer checks in load_debug_frame() error path, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 08/19] Rename `backtrace' to `do_backtrace' in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 07/19] Eliminate one heap allocation in dwarf_find_debug_frame(), Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 09/19] Check correct variable for offset in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 11/19] Do not print garbage proc info in tests/Gtest-bt.c, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 14/19] Provide manual page for `unw_backtrace()', Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 12/19] Avoid LLVM -Wunused-value warning in src/dwarf/Gexpr.c, Tommi Rantala, 2012/09/05