From e09e6ce1ad753017313688eafc466656c322f9d0 Mon Sep 17 00:00:00 2001 From: "com[davidm]!masbock" Date: Tue, 31 Aug 2004 13:59:37 +0000 Subject: [PATCH] x86-64: fix unw_get_proc_info() (Logical change 1.260) --- src/x86_64/Gget_proc_info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/x86_64/Gget_proc_info.c b/src/x86_64/Gget_proc_info.c index a380f19a..5130f5a7 100644 --- a/src/x86_64/Gget_proc_info.c +++ b/src/x86_64/Gget_proc_info.c @@ -31,6 +31,11 @@ PROTECTED int unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi) { struct cursor *c = (struct cursor *) cursor; + int ret; - return dwarf_make_proc_info (&c->dwarf); + if (ret = dwarf_make_proc_info (&c->dwarf)) + return ret; + + *pi = c->dwarf.pi; + return 0; }