1
/*******************************************************************************
2
* Copyright (c) 2009 Ericsson and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Ericsson - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.dsf.mi.service.command.commands;
13
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
17
* -gdb-set solib-search-path COLON-SEPARATED-PATH
20
public class MIGDBSetSolibSearchPath extends MIGDBSet
25
public MIGDBSetSolibSearchPath(ICommandControlDMContext ctx, String[] paths) {
27
// Overload the parameter
28
String sep = System.getProperty("path.separator", ":"); //$NON-NLS-1$ //$NON-NLS-2$
29
StringBuffer buffer = new StringBuffer();
30
for (int i = 0; i < paths.length; i++) {
31
if (buffer.length() == 0) {
32
buffer.append(paths[i]);
34
buffer.append(sep).append(paths[i]);
37
String[] p = new String [] {"solib-search-path", buffer.toString()}; //$NON-NLS-1$
b'\\ No newline at end of file'