summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-04-08 17:56:41 +0000
committerfche <fche>2006-04-08 17:56:41 +0000
commit35f5f0910846ea40cf5231584cc510a3ca3eda4f (patch)
tree0a8bcd7788aed03d648584064255739315bf3c8b /tapsets.cxx
parent34ca7d84b495e97a756cb09db579ff9997af4fda (diff)
downloadsystemtap-steved-35f5f0910846ea40cf5231584cc510a3ca3eda4f.tar.gz
systemtap-steved-35f5f0910846ea40cf5231584cc510a3ca3eda4f.tar.xz
systemtap-steved-35f5f0910846ea40cf5231584cc510a3ca3eda4f.zip
* paranoid error check
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 55221347..62e58449 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -972,7 +972,7 @@ dwflpp
unsigned postprologue_srcline_idx = entrypc_srcline_idx;
bool ranoff_end = false;
- while (1)
+ while (postprologue_srcline_idx < nlines)
{
Dwarf_Addr postprologue_addr;
Dwarf_Line *lr = dwarf_onesrcline(lines, postprologue_srcline_idx);