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 209784 Details for
Bug 369168
threadOSId is not extracted for non-pthread programs
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]
Fix
z.pthreads.patch (text/plain), 1.79 KB, created by
Marc Khouzam
on 2012-01-19 21:59:11 EST
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Marc Khouzam
Created:
2012-01-19 21:59:11 EST
Size:
1.79 KB
patch
obsolete
>From 2eddd49b379f9d084493171afe3cfcaaa905a7cd Thu, 19 Jan 2012 21:36:27 -0500 >From: Marc Khouzam <marc.khouzam@ericsson.com> >Date: Thu, 19 Jan 2012 21:35:48 -0500 >Subject: [PATCH] Fix for not pthreads > >diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIThread.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIThread.java >index f718950..caf4351 100644 >--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIThread.java >+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/command/output/MIThread.java >@@ -124,6 +124,7 @@ > private static Pattern fgOsIdPattern1 = Pattern.compile("([Tt][Hh][Rr][Ee][Aa][Dd]\\s*)(0x[0-9a-fA-F]+|-?\\d+)(\\s*\\([Ll][Ww][Pp]\\s*)(\\d*)", 0); //$NON-NLS-1$ > private static Pattern fgOsIdPattern2 = Pattern.compile("[Tt][Hh][Rr][Ee][Aa][Dd]\\s*\\d+\\.(\\d+)", 0); //$NON-NLS-1$ > private static Pattern fgOsIdPattern3 = Pattern.compile("[Tt][Hh][Rr][Ee][Aa][Dd]\\s*(\\S+)", 0); //$NON-NLS-1$ >+ private static Pattern fgOsIdPattern4 = Pattern.compile("[Pp][Rr][Oo][Cc][Ee][Ss][Ss]\\s*(\\S+)", 0); //$NON-NLS-1$ > > static String parseOsId(String str) { > // General format: >@@ -132,6 +133,8 @@ > // "Thread 162.32942" > // ^^^^^ > // "thread abc123" >+ // >+ // "process 12345" => Linux without pthread. The process as one thread, the process thread. > // ^^^^^^ > // PLEASE UPDATE MIThreadTests.java IF YOU TWEAK THIS CODE > >@@ -150,6 +153,11 @@ > return matcher.group(1); > } > >+ matcher = fgOsIdPattern4.matcher(str); >+ if (matcher.find()) { >+ return matcher.group(1); >+ } >+ > return null; > } >
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
Flags:
marc.khouzam
:
iplog-
Actions:
View
|
Diff
Attachments on
bug 369168
: 209784