Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2018-08-14 16:04:28 -0400
committerJeff Johnston2018-08-14 17:56:44 -0400
commit7e7ab4d2f4d69e042084c8b627338a452c5796a5 (patch)
tree8fef8d27d237e65058c03ade53340428707b3afa
parentd2325a89210b7bcd33adb7d95f738587c8f36335 (diff)
downloadorg.eclipse.linuxtools-7e7ab4d2f4d69e042084c8b627338a452c5796a5.tar.gz
org.eclipse.linuxtools-7e7ab4d2f4d69e042084c8b627338a452c5796a5.tar.xz
org.eclipse.linuxtools-7e7ab4d2f4d69e042084c8b627338a452c5796a5.zip
Bug 537946 - CoreException in GcdaRecordsParser.parseGcdaRecord
- remove assertion for length being 2 * number of blocks when processing an arcs counter in GcdaRecordsParser Change-Id: I5ed2d3a26a57468cfc5ede7ad0ba117a6761d7cb Reviewed-on: https://git.eclipse.org/r/127432 Tested-by: CI Bot Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcdaRecordsParser.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcdaRecordsParser.java b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcdaRecordsParser.java
index 636a9eda82..852482882d 100644
--- a/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcdaRecordsParser.java
+++ b/gcov/org.eclipse.linuxtools.gcov.core/src/org/eclipse/linuxtools/internal/gcov/parser/GcdaRecordsParser.java
@@ -1,6 +1,6 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 STMicroelectronics and others.
- *
+ *
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
@@ -144,12 +144,6 @@ public class GcdaRecordsParser {
throw new CoreException(status);
}
- if (length != 2 * (currentFnctn.getNumCounts())) {
- String message = Messages.GcdaRecordsParser_content_inconsistent;
- Status status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, message);
- throw new CoreException(status);
- }
-
ArrayList<Block> fnctnBlcks = currentFnctn.getFunctionBlocks();
if (fnctnBlcks.isEmpty()) {
String message = Messages.GcdaRecordsParser_func_block_empty;

Back to the top