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:
parent
1a93dc7ced
commit
1908d66ca6
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.dsf.mi.service.command.output;
|
package org.eclipse.cdt.dsf.mi.service.command.output;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GDB/MI thread list parsing.
|
* GDB/MI thread list parsing.
|
||||||
*/
|
*/
|
||||||
|
@ -47,6 +49,8 @@ public class MIThreadListIdsInfo extends MIInfo {
|
||||||
public String[] getStrThreadIds() {
|
public String[] getStrThreadIds() {
|
||||||
if (strThreadIds == null) {
|
if (strThreadIds == null) {
|
||||||
parse();
|
parse();
|
||||||
|
// Make sure the threads are in order for the debug view
|
||||||
|
Arrays.sort(strThreadIds);
|
||||||
}
|
}
|
||||||
return strThreadIds;
|
return strThreadIds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue