Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324010

Summary: edc - Registers.java writing empty "OK" messages to Error Log
Product: [Tools] CDT Reporter: Kirk Beitz <kirk.beitz>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: cdtdoug, ling.5.wang
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch to check if status is "OK" before logging to error log
none
patch to check rm.isSuccess() prior to attempting to log result cdtdoug: iplog+, kirk.beitz: review?

Description Kirk Beitz CLA 2010-08-30 14:32:29 EDT
Created attachment 177762 [details]
patch to check if status is "OK" before logging to error log

when operating the edc debugger, it regularly writes empty "OK" messages to the Error Log view, cluttering it unnecessarily.

i tracked this to Registers.java ... see the attached patch for the suggested fix.

Ling, i've CC:ed you because you are the last one to submit changes to this file.  can you take this and review it and commit it to help ken from having to do so much of my commit work?
Comment 1 Ling Wang CLA 2010-08-30 15:55:03 EDT
Kirk, it may be better to just use "if (! rm.isSuccess())" as the check condition.
Comment 2 Kirk Beitz CLA 2010-08-30 16:49:54 EDT
Created attachment 177786 [details]
patch to check rm.isSuccess() prior to attempting to log result

(In reply to comment #1)
> Kirk, it may be better to just use "if (! rm.isSuccess())" as the check
> condition.

ok, Ling, the updated patch now reflects this.
Comment 3 Ling Wang CLA 2010-08-30 17:43:07 EDT
Committed the patch to head.
Comment 4 CDT Genie CLA 2010-08-30 18:23:02 EDT
*** cdt cvs genie on behalf of lwang ***
Bug 324010: edc - Registers.java writing empty &quot;OK&quot; messages to Error Log

[*] Registers.java 1.11 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/services/Registers.java?root=Tools_Project&r1=1.10&r2=1.11