detail.php
OW2 Forge: Detail: 311806 Fix the debug feature that permited to trace within the java code the creators of all generated C code

Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
THINK
          
 
 
Summary
Tracker
Lists
Tasks
News
CVS
Files
SVN
                
 

Tracker: Nuptse

Submit New | Browse | Admin | ExportToXml

[ #311806 ] Fix the debug feature that permited to trace within the java code the creators of all generated C code

Date:
2008-11-14 11:26
Priority:
5
Submitted By:
Marc Poulhies (poulhies)
Assigned To:
Nobody (None)
Category:
build
State:
Open
Summary:
Fix the debug feature that permited to trace within the java code the creators of all generated C code

Detailed description:
Previously, codegen/nuptse was able to add comments in generated C code that tracks back to the java code that created it. It is very convenient to debug faulty generated code. This feature was disabled and not maintained. It should not be very hard to fix it and provide a way for the user to use it or not (it had an impact on execution time and generated code size).

Add A Comment:

Please login

Followup

Message
Date: 2009-01-12 15:29
Sender: lobryol
Logged In: YES 
user_id=743

The feature was disabled because it was very time consuming as
the method
relies on java instrospection.

Supporting again ths feature is however to necessarily hard to
do :
 - in codegen, make configurable the static variable 
CodeGenHelper::handleCreator 
 - in codegen CGenerator visitor : for each visited node add
a call to
CodeGenWriter::pushCreator(node->getCreator())
 - add a compilation option in think to toggle the generation
of the creator
index

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Resource id #66listtable
resolution_id
Field Old Value Date By
resolution_idNone2009-01-12 15:29lobryol

Copyright © 1999-2008, OW2 Consortium | contact | You have a difficulty, a problem ? Please report an issue using your OW2 forge account credentials