mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
New file to send "info sharedlibrary"
This commit is contained in:
parent
c713d81de0
commit
4a3dab250c
1 changed files with 40 additions and 0 deletions
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.command;
|
||||
|
||||
import org.eclipse.cdt.debug.mi.core.MIException;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIInfoSharedLibraryInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
|
||||
|
||||
/**
|
||||
*
|
||||
* info threads
|
||||
*
|
||||
*/
|
||||
public class MIInfoSharedLibrary extends CLICommand
|
||||
{
|
||||
public MIInfoSharedLibrary() {
|
||||
super("info sharedlibrary");
|
||||
}
|
||||
|
||||
public MIInfoSharedLibraryInfo getMIInfoSharedLibraryInfo() throws MIException {
|
||||
return (MIInfoSharedLibraryInfo)getMIInfo();
|
||||
}
|
||||
|
||||
public MIInfo getMIInfo() throws MIException {
|
||||
MIInfo info = null;
|
||||
MIOutput out = getMIOutput();
|
||||
if (out != null) {
|
||||
info = new MIInfoSharedLibraryInfo(out);
|
||||
if (info.isError()) {
|
||||
throw new MIException(info.getErrorMsg());
|
||||
}
|
||||
}
|
||||
return info;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue