tmf: Handle spaces in function names in the Callstack View
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / callstack / FunctionNameMapper.java
index 179425167e071786c69567eba500f03d27d022cf..62e908bd84cb5b871a080a767f894deabbb7f2e0 100644 (file)
@@ -52,8 +52,8 @@ class FunctionNameMapper {
         try (FileReader fr = new FileReader(mappingFile);
                 BufferedReader reader = new BufferedReader(fr);) {
             for (String line = reader.readLine(); line != null; line = reader.readLine()) {
-                String[] elems = line.split(" "); //$NON-NLS-1$
                 /* Only lines with 3 elements contain addresses */
+                String[] elems = line.split(" ", 3); //$NON-NLS-1$
                 if (elems.length == 3) {
                     /* Strip the leading zeroes from the address */
                     String address = elems[0].replaceFirst("^0+(?!$)", ""); //$NON-NLS-1$ //$NON-NLS-2$;
This page took 0.042546 seconds and 5 git commands to generate.