From 4a3dab250c29ac531e1759c9511014fa2948b094 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Thu, 16 Jan 2003 03:11:43 +0000 Subject: [PATCH] New file to send "info sharedlibrary" --- .../mi/core/command/MIInfoSharedLibrary.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MIInfoSharedLibrary.java 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; + } +}