Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
dmt
Commits
7d9e7db0
Commit
7d9e7db0
authored
Feb 09, 2019
by
Thanassis Tsiodras
Browse files
Remove pdb (debugger) call at the end of execution.
parent
1b9d9314
Changes
1
Hide whitespace changes
Inline
Side-by-side
dmt/B_mappers/simulink_B_mapper.py
View file @
7d9e7db0
...
...
@@ -42,7 +42,7 @@ from ..commonPy.asnAST import (
AsnInt
,
AsnReal
,
AsnBool
,
AsnEnumerated
,
isSequenceVariable
,
sourceSequenceLimit
,
AsnOctetString
,
AsnSequenceOrSet
,
AsnSequenceOrSetOf
,
AsnChoice
,
AsnNode
,
AsnSequenceOf
,
AsnSetOf
,
AsnSequence
,
AsnSet
,
AsnMetaMember
)
from
..commonPy.aadlAST
import
AadlPort
,
AadlParameter
,
ApLevelContainer
,
Param
,
InParam
,
OutParam
from
..commonPy.aadlAST
import
AadlPort
,
AadlParameter
,
ApLevelContainer
,
Param
,
OutParam
from
..commonPy.asnParser
import
AST_Lookup
,
AST_Leaftypes
from
..commonPy.recursiveMapper
import
RecursiveMapper
...
...
@@ -526,7 +526,6 @@ def computeBambuDeclarations(node: AsnNode, asnTypename: str, prefix: str, names
elif
isinstance
(
node
,
(
AsnSequenceOf
,
AsnSetOf
)):
if
not
node
.
_range
:
panicWithCallStack
(
"need a SIZE constraint or else we can't generate C code (%s)!
\n
"
%
node
.
Location
())
# pragma: no cover
isMappedToPrimitive
=
IsElementMappedToPrimitive
(
node
,
names
)
lines
=
[]
# type: List[str]
for
i
in
range
(
0
,
node
.
_range
[
-
1
]):
lines
.
extend
(
...
...
@@ -569,4 +568,3 @@ def EmitBambuBridge(sp: ApLevelContainer):
simulinkBackend
.
C_SourceFile
.
write
(
') {
\n
'
)
simulinkBackend
.
C_SourceFile
.
write
(
'}
\n\n
'
)
simulinkBackend
.
C_SourceFile
.
write
(
"#endif
\n\n
"
)
import
pdb
;
pdb
.
set_trace
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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