Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#65 wiring dump incomplete for abstracts

closed-fixed
nobody
None
5
2012-07-05
2012-01-13
Daniel Minder
No

When using -fnesc-dump=wiring the resulting XML file does not contain loc attributes for wire elements for instances of abstract configurations/modules. The reason is that instantiate_cg() in nesc-abstract.c copies the edges without location information. Is there any reason for this? For automated analysis of the wiring it's sometimes necessary to have the loc attribute.

I attached a patch which copies the location information of the edges as well. Since I don't know if I can simply reuse the location of the old edge it creates new locations. Please change this if it can be done in a simpler way.

I tested it with TinyOS programs. nesc/gcc generates the same app.c with and without patch, so it does not affect code generation. But the XML output is now complete and contains all wiring locations.

Discussion

  • Daniel Minder
    Daniel Minder
    2012-01-13

    Patch for nesc-1.3.3

     
    Attachments
  • David Gay
    David Gay
    2012-07-05

    Thanks, useful change.

     
  • David Gay
    David Gay
    2012-07-05

    • status: open --> closed-fixed