1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

implements gdb "info threads"

This commit is contained in:
Alain Magloire 2002-08-30 04:59:59 +00:00
parent 25567bf360
commit 13020cbc3c

View file

@ -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.MIInfoThreadsInfo;
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
/**
*
* info threads
*
*/
public class MIInfoThreads extends CLICommand
{
public MIInfoThreads() {
super("info threads");
}
public MIInfoThreadsInfo getMIInfoThreadsInfo() throws MIException {
return (MIInfoThreadsInfo)getMIInfo();
}
public MIInfo getMIInfo() throws MIException {
MIInfo info = null;
MIOutput out = getMIOutput();
if (out != null) {
info = new MIInfoThreadsInfo(out);
if (info.isError()) {
throw new MIException(info.getErrorMsg());
}
}
return info;
}
}