From 48390b53f76b1497b5ce1408f3fb83c6581f9ecf Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sun, 20 Dec 2009 14:34:31 -0500 Subject: [PATCH] dwarf probes: skip inlined instances with null (buggy) entrypc * dwflpp.cxx (resolve_prologue_endings): Skip entrypc=0. --- dwflpp.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dwflpp.cxx b/dwflpp.cxx index 0e8a352d9..d3cecc447 100644 --- a/dwflpp.cxx +++ b/dwflpp.cxx @@ -1282,6 +1282,16 @@ dwflpp::resolve_prologue_endings (func_info_map_t & funcs) continue; } + if (entrypc == 0) + { + if (sess.verbose > 2) + clog << "null entrypc dwarf line record for function '" + << it->name << "'\n"; + // This is probably an inlined function. We'll skip this instance; + // it is messed up. + continue; + } + if (sess.verbose>2) clog << "prologue searching function '" << it->name << "'" << " 0x" << hex << entrypc << "-0x" << highpc << dec -- 2.43.5