Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2006-11-28 02:47:23 -0500
committerKen Ryall2006-11-28 02:47:23 -0500
commiteeabe5a24ea986b46e385f062a61c008f19779b4 (patch)
tree1802f6c48e74c74c0085fb3d39c4f656e74775f0
parenta5e931f3dfbb90b6a57dd2b89840457d2ffae421 (diff)
downloadorg.eclipse.cdt-eeabe5a24ea986b46e385f062a61c008f19779b4.tar.gz
org.eclipse.cdt-eeabe5a24ea986b46e385f062a61c008f19779b4.tar.xz
org.eclipse.cdt-eeabe5a24ea986b46e385f062a61c008f19779b4.zip
Fix bug 155400.
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java
index 0afca3dbba1..4016817f186 100644
--- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java
+++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java
@@ -219,7 +219,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader {
m_leb128Size = 0;
while (true) {
b = (short) data[offset++];
- if (b == -1)
+ if (data.length == offset)
break; //throw new IOException("no more data");
m_leb128Size++;
result |= ((long) (b & 0x7f) << shift);

Back to the top