diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/NM.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/NM.java index 210959bec73..c49be635805 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/NM.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/NM.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 QNX Software Systems and others. + * Copyright (c) 2000, 2009 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -46,10 +46,22 @@ public class NM { private static Pattern undef_pattern = null; private static Pattern normal_pattern = null; - private List undef_symbols; - private List text_symbols; - private List bss_symbols; - private List data_symbols; + /** + * @since 5.1 + */ + protected List undef_symbols; + /** + * @since 5.1 + */ + protected List text_symbols; + /** + * @since 5.1 + */ + protected List bss_symbols; + /** + * @since 5.1 + */ + protected List data_symbols; private void parseOutput(InputStream stream) throws IOException { @@ -130,9 +142,10 @@ public class NM { if (params == null || params.length == 0) { args = new String[] {command, "-C", file}; //$NON-NLS-1$ } else { - args = new String[params.length + 1]; + args = new String[params.length + 2]; args[0] = command; System.arraycopy(params, 0, args, 1, params.length); + args[params.length+1] = file; } undef_symbols = new ArrayList();