Opened 10 years ago
Closed 10 years ago
#3156 closed defect (invalid)
A lot of duplicate debugging lines in the C code ...
Reported by: | Adrian Pop | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Code Generation | Version: | trunk |
Keywords: | Cc: |
Description
We get a lot of the same line in the C code, i.e.:
/* Pattern matching succeeded */ #line 1759 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" _r = omc_FNode_child(threadData, omc_FGraph_lastScopeRef(threadData, _inEnv), _inClassName); #line 789 OMC_FILE #line 1760 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" /* Pattern-matching assignment */ #line 1760 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" tmpMeta[1] = omc_FNode_refData(threadData, _r); #line 1760 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],3,5) == 0) MMC_THROW_INTERNAL(); #line 1760 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3)); #line 1760 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo" _p = tmpMeta[2]; #line 801 OMC_FILE #line 1761 "c:/dev/OpenModelica/Compiler/FFrontEnd/FGraph.mo"
Also, what's up with OMC_FILE lines? Those are lines in the C file?
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Btw, what error do you think is with adding the same line over and over? If you do not do this, the tmpMeta[1] = omc_FNode_refData(threadData, _r);
will be generated with debug info line 1761 (because of C auto-increment).
comment:4 by , 10 years ago
Milestone: | Future |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Yes, OMC_FILE are from the C-file