From 955925b709fcf1aeaa667423ed7b639dcfd94478 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 10 Feb 2009 15:05:22 -0500 Subject: fix segv that sometimes occurs on buildok/nfs-all-probes.stp on 2.6.29ish kernels --- ChangeLog | 5 +++++ tapsets.cxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8152ed3..97fa419b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-02-10 Frank Ch. Eigler + + * tapsets.cxx (find_variable_and_frame_base): Tolerate -1 return + value from dwarf_getscope_die. + 2009-02-07 Josh Stone * buildrun.cxx (compile_pass): Pull in autoconf options in a header diff --git a/tapsets.cxx b/tapsets.cxx index c8742fbd..615ba07b 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1761,7 +1761,7 @@ struct dwflpp if (sidx == nscopes) nscopes = dwarf_getscopes_die (scope_die, &scopes); - if (nscopes == 0) + if (nscopes <= 0) { throw semantic_error ("unable to find any scopes containing " + lex_cast_hex(pc) -- cgit