1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[225996] Sort the output of -thread-list-ids to show threads that were created first at the top

This commit is contained in:
Marc Khouzam 2010-02-26 16:25:39 +00:00
parent 1a93dc7ced
commit 1908d66ca6

View file

@ -11,6 +11,8 @@
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command.output;
import java.util.Arrays;
/**
* GDB/MI thread list parsing.
*/
@ -47,6 +49,8 @@ public class MIThreadListIdsInfo extends MIInfo {
public String[] getStrThreadIds() {
if (strThreadIds == null) {
parse();
// Make sure the threads are in order for the debug view
Arrays.sort(strThreadIds);
}
return strThreadIds;
}