mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 421070 - DwarfReader should scale better for large binaries
Change-Id: I9e085f7fc8e48b265d0e3aa36501e9ae3dadad91 Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com> Reviewed-on: https://git.eclipse.org/r/18081 Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
This commit is contained in:
parent
3e528ebafe
commit
3d9e51d8ae
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2007, 2010 Nokia and others.
|
* Copyright (c) 2007, 2013 Nokia and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Nokia - initial API and implementation
|
* Nokia - initial API and implementation
|
||||||
* Ling Wang (Nokia) bug 201000
|
* Ling Wang (Nokia) bug 201000
|
||||||
|
* Serge Beauchamp (Freescale Semiconductor) - Bug 421070
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.utils.debug.dwarf;
|
package org.eclipse.cdt.utils.debug.dwarf;
|
||||||
|
@ -16,6 +17,7 @@ import java.io.IOException;
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.CCorePlugin;
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
|
@ -44,7 +46,7 @@ public class DwarfReader extends Dwarf implements ISymbolReader {
|
||||||
DWARF_DEBUG_STR // this is optional. Some compilers don't generate it.
|
DWARF_DEBUG_STR // this is optional. Some compilers don't generate it.
|
||||||
};
|
};
|
||||||
|
|
||||||
private final Collection<String> m_fileCollection = new ArrayList<String>();
|
private final Collection<String> m_fileCollection = new HashSet<String>();
|
||||||
private String[] m_fileNames = null;
|
private String[] m_fileNames = null;
|
||||||
private boolean m_parsed = false;
|
private boolean m_parsed = false;
|
||||||
private final ArrayList<Integer> m_parsedLineTableOffsets = new ArrayList<Integer>();
|
private final ArrayList<Integer> m_parsedLineTableOffsets = new ArrayList<Integer>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue