Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352888 - Add two new "done" methods to RequestMonitor and DataRequestMonitor
Summary: Add two new "done" methods to RequestMonitor and DataRequestMonitor
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Marc Khouzam CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-22 12:34 EDT by Eugene Ostroukhov CLA
Modified: 2014-01-29 22:55 EST (History)
2 users (show)

See Also:
marc.khouzam: review? (pawel.1.piech)


Attachments
Suggested changes (v1) (3.48 KB, patch)
2011-07-22 12:34 EDT, Eugene Ostroukhov CLA
no flags Details | Diff
Suggested changes (v2) (4.03 KB, patch)
2011-08-22 13:39 EDT, Eugene Ostroukhov CLA
cdtdoug: iplog+
Details | Diff
Patch to commit (6.07 KB, patch)
2011-08-30 15:23 EDT, Marc Khouzam CLA
marc.khouzam: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Ostroukhov CLA 2011-07-22 12:34:16 EDT
Created attachment 200216 [details]
Suggested changes (v1)

I have been building DSF-based debugger for weeks now but I still forget to call done() method after setData/setStatus. Usually this results in a debug session from hell so I would like to suggest adding two new done methods that will combine setStatus/setData and done call.

This is a trivial change that does not require any changes in the existing client code.
Comment 1 Marc Khouzam CLA 2011-07-22 13:12:27 EDT
I like it.
Comment 2 Pawel Piech CLA 2011-07-22 13:24:55 EDT
+1 
I don't see why not.  Although, I don't think it'll really help much in avoiding the debug session from hell async programming syndrome :-(
Comment 3 Marc Khouzam CLA 2011-08-03 10:07:45 EDT
Eugene, can you confirm:
1- you wrote 100% of the code
2- you have the right to contribute the code to Eclipse

Also, can you add a line to the top of the file, under Contributors saying:

Eugene Ostroukhov (<company name if any>) - New Done method.  Bug 352888.

Thanks
Comment 4 Eugene Ostroukhov CLA 2011-08-08 18:56:18 EDT
1. Yes.
2. Do I need some paperwork from my employer? I recall there was something for a committer but I don't know if it is same for single patch. I can't find a page that would describe this process.
Comment 5 Marc Khouzam CLA 2011-08-22 13:21:47 EDT
(In reply to comment #4)
> 1. Yes.
> 2. Do I need some paperwork from my employer? I recall there was something for
> a committer but I don't know if it is same for single patch. I can't find a
> page that would describe this process.

I believe that going through bugzilla for a patch less than 250 lines is enough:

http://www.eclipse.org/projects/dev_process/ip-process-in-cartoons.php
http://www.eclipse.org/legal/EclipseLegalProcessPoster.pdf
Comment 6 Eugene Ostroukhov CLA 2011-08-22 13:39:20 EDT
Created attachment 201942 [details]
Suggested changes (v2)

Attached is a patch with contributor info.

1. This patch was created entirely by me.
2. I have a permision from management to contribute this patch to Eclipse CDT project.
Comment 7 Marc Khouzam CLA 2011-08-30 15:23:31 EDT
Created attachment 202454 [details]
Patch to commit

This is the patch I will commit.

1- It has the changes from Eugene: "Suggested changes (v2)".
2- It ups the org.eclipse.cdt.dsf plugin version to 2.3.0
3- It adds the @since tags
4- It makes use of the two new done(...) methods in JUnit tests to have them tested regularly.

I'll commit to master.
Comment 8 Marc Khouzam CLA 2011-08-30 15:25:07 EDT
Committed.
Pawel, can you review?
Comment 9 Marc Khouzam CLA 2011-08-30 15:25:32 EDT
Thanks Eugene for the contribution.
Comment 10 CDT Genie CLA 2011-08-30 16:23:03 EDT
*** cdt git genie on behalf of Eugene Ostroukhov ***

    Bug 352888: Add two new &quot;done&quot; methods to RequestMonitor and DataRequestMonitor

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=97d0869a9a9c5f10a9e52dcdf7dfd5b2b115a023