diff options
author | Alain Magloire | 2003-01-16 03:11:43 +0000 |
---|---|---|
committer | Alain Magloire | 2003-01-16 03:11:43 +0000 |
commit | 4a3dab250c29ac531e1759c9511014fa2948b094 (patch) | |
tree | 7d269da6f5ae53e8705473381af0ae54297b834b | |
parent | c713d81de0b214fb3f9a17b52e21035ed8fced6f (diff) | |
download | org.eclipse.cdt-4a3dab250c29ac531e1759c9511014fa2948b094.tar.gz org.eclipse.cdt-4a3dab250c29ac531e1759c9511014fa2948b094.tar.xz org.eclipse.cdt-4a3dab250c29ac531e1759c9511014fa2948b094.zip |
New file to send "info sharedlibrary"
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MIInfoSharedLibrary.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MIInfoSharedLibrary.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MIInfoSharedLibrary.java new file mode 100644 index 00000000000..a8ecd873a58 --- /dev/null +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MIInfoSharedLibrary.java @@ -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; + } +} |