Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
c18e0346
Commit
c18e0346
authored
May 23, 2019
by
Alexander David Hellwig
Browse files
Fix stacktrace output: .emam:line) instead of ).emam:line
parent
5bec6c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/template/logging/Log.ftl
View file @
c18e0346
...
...
@@ -3,7 +3,7 @@ void logStart(){
__
S
tacktraceFile
.open
(
"stacktrace.log"
,
std
::
ios_base
::
out
|
std
::
ios_base
::
app
)
;
__
S
tacktraceFile
<<
"Breakpoint reached"
<<
std
::
endl
;
<#
list
viewModel
.getInstanceStack
()
as
curSym
>
__
S
tacktraceFile
<<
"
\t
at ${curSym.getFullName()}(${curSym.getComponentType().getReferencedSymbol().getFullName()?replace("
.
","
/
")}
)
.emam:1"
<<
std
::
endl
;
__
S
tacktraceFile
<<
"
\t
at ${curSym.getFullName()}(${curSym.getComponentType().getReferencedSymbol().getFullName()?replace("
.
","
/
")}.emam:1
)
"
<<
std
::
endl
;
</#
list
>
__
S
tacktraceFile
<<
"#tick "
<<
__
EXECCOUNTER
<<
std
::
endl
;
...
...
@@ -25,7 +25,7 @@ void logEnd(){
<#
else
>
<#
assign
line
=
"1"
/>
</#
if
>
__
S
tacktraceFile
<<
"
\t
at ${curSym.getFullName()}(${curSym.getComponentType().getReferencedSymbol().getFullName()?replace("
.
","
/
")}
)
.emam:${line}"
<<
std
::
endl
;
__
S
tacktraceFile
<<
"
\t
at ${curSym.getFullName()}(${curSym.getComponentType().getReferencedSymbol().getFullName()?replace("
.
","
/
")}.emam:${line}
)
"
<<
std
::
endl
;
</#
list
>
__
S
tacktraceFile
<<
"#tick "
<<
__
EXECCOUNTER
<<
std
::
endl
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment