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.