This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgo patch committed: runtime.Caller should succeed without debug info


Further testing uncovered a small bug in the change to use the
libbacktrace library.  The runtime.Caller function should succeed if we
get the PC, even if we don't have any debug info.  Bootstrapped and ran
Go testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

diff -r dff305030965 libgo/runtime/go-caller.c
--- a/libgo/runtime/go-caller.c	Fri Sep 28 07:26:19 2012 -0700
+++ b/libgo/runtime/go-caller.c	Fri Sep 28 08:49:33 2012 -0700
@@ -172,7 +172,8 @@
   if (n < 1)
     return ret;
   ret.pc = pc;
-  ret.ok = __go_file_line (pc, &fn, &ret.file, &ret.line);
+  __go_file_line (pc, &fn, &ret.file, &ret.line);
+  ret.ok = 1;
   return ret;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]