Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 129741 Details for
Bug 269838
CDT gdb/mi fails to parse result of gdb cmd "thread info"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
A patch which WFM.
CDT_Bug_269838_GDB_doesnot_show_threads.patch (text/plain), 2.41 KB, created by
Tobias Hahn
on 2009-03-24 15:06:43 EDT
(
hide
)
Description:
A patch which WFM.
Filename:
MIME Type:
Creator:
Tobias Hahn
Created:
2009-03-24 15:06:43 EDT
Size:
2.41 KB
patch
obsolete
>--- org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java 2009-03-24 20:00:00.000000000 +0100 >+++ org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java 2009-03-24 19:05:46.000000000 +0100 >@@ -88,6 +88,7 @@ > import org.eclipse.cdt.debug.mi.core.command.MIExecUntil; > import org.eclipse.cdt.debug.mi.core.command.MIGDBShowEndian; > import org.eclipse.cdt.debug.mi.core.command.MITargetDetach; >+import org.eclipse.cdt.debug.mi.core.command.MIThreadListIds; > import org.eclipse.cdt.debug.mi.core.command.MIThreadSelect; > import org.eclipse.cdt.debug.mi.core.event.MIDetachedEvent; > import org.eclipse.cdt.debug.mi.core.event.MIThreadCreatedEvent; >@@ -98,6 +99,7 @@ > import org.eclipse.cdt.debug.mi.core.output.MIFrame; > import org.eclipse.cdt.debug.mi.core.output.MIGDBShowEndianInfo; > import org.eclipse.cdt.debug.mi.core.output.MIInfo; >+import org.eclipse.cdt.debug.mi.core.output.MIThreadListIdsInfo; > import org.eclipse.cdt.debug.mi.core.output.MIThreadSelectInfo; > > /** >@@ -331,23 +333,21 @@ > rxThread.setEnableConsole(false); > try { > CommandFactory factory = miSession.getCommandFactory(); >- CLIInfoThreads tids = factory.createCLIInfoThreads(); >- // HACK/FIXME: gdb/mi thread-list-ids does not >- // show any newly create thread, we workaround by >- // issuing "info threads" instead. >- // MIThreadListIds tids = factory.createMIThreadListIds(); >- // MIThreadListIdsInfo info = tids.getMIThreadListIdsInfo(); >- miSession.postCommand(tids); >- CLIInfoThreadsInfo info = tids.getMIInfoThreadsInfo(); >+ CLIInfoThreads cliInfoThreads = factory.createCLIInfoThreads(); >+ miSession.postCommand(cliInfoThreads); >+ CLIInfoThreadsInfo infoThreads = cliInfoThreads.getMIInfoThreadsInfo(); >+ MIThreadListIds tids = factory.createMIThreadListIds(); >+ miSession.postCommand(tids); >+ MIThreadListIdsInfo infoTids = tids.getMIThreadListIdsInfo(); > int[] ids; > String[] names; >- if (info == null) { >+ if (infoTids == null) { > ids = new int[0]; > names = new String[0]; > } else { >- ids = info.getThreadIds(); >- names = info.getThreadNames(); >- currentThreadId = info.getCurrentThread(); >+ ids = infoTids.getThreadIds(); >+ names = infoThreads.getThreadNames(); >+ currentThreadId = infoThreads.getCurrentThread(); > } > if (ids != null && ids.length > 0) { > cthreads = new Thread[ids.length];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 269838
:
129741
|
129886
|
151905
|
151906
|
155392
|
155393
|
156477
|
157863
|
157865
|
158135
|
158393
|
158394