Commit Graph

930 Commits

Author SHA1 Message Date
aedf9ee585 Merge pull request #623 from nasa/print-target
#603 restored 'make print-%' in sim directory
2018-05-22 15:05:07 -05:00
23fef115c8 #603 #623 2018-05-22 14:55:47 -05:00
9a2bab0df2 #603 #623 2018-05-22 14:53:10 -05:00
bd0cfec731 #603 #623 2018-05-22 14:36:46 -05:00
d764a67709 #603 restored 'make print-%' in sim directory 2018-05-22 14:01:32 -05:00
6ce60cb2ec Is Trick ICG missing some uses of TRICK_ICG #608
Some functions changed signatures in 3.5, others in 3.7.
2018-05-18 08:38:28 -05:00
f7567aa9be Add lqueue.h lstack.h, and dllist.h to the list of Trick files that are ICG'ed. #614. (#621) 2018-05-17 11:23:44 -05:00
b6f06e01c1 Ignore unordered_map in convert_swig
Fixes #620
2018-05-16 14:20:25 -05:00
a8314b1497 Merge pull request #615 from nasa/framelog_fix
#588 top_of_frame and _end_of_frame fix for scheduled threads
2018-05-16 09:16:36 -05:00
bf1ab16793 Merge pull request #617 from iamthad/pr_set_ptracer
Fix debugger attach when ptrace is restricted
2018-05-16 09:16:14 -05:00
1e783fb49c When we are copying recorded data into a buffer we use a pointer to track the
buffer position.  This pointer wasn't used in DR_Changes_Step and was corrupting
the pointer initialization later in the write function.
2018-05-16 09:08:39 -05:00
0212ed1650 #588 top_of_frame and _end_of_frame for child threads 2018-05-11 09:49:17 -05:00
54fe22684a Fix debugger attach when ptrace is restricted
Trick's backtrace or attach functionality fails on systems like Ubuntu
where the use of ptrace(2) is restricted. Where it is defined, use the
PR_SET_PTRACER prctl with the argument PR_SET_PTRACER_ANY to allow any
process to attach.
2018-05-10 07:19:30 -05:00
be6f9dc855 Trick will not compile with llvm 6.0 and Xcode 9.2 on the mac. #579
Found a new language option we need to set in ICG when llvm >= 6.0 to parse
header files correctly.  The option is DoubleSquareBracketAttributes.
2018-05-07 16:26:20 -05:00
62f95e784f Default exit confirmation dialog to off
Worst feature ever.

Closes #612
2018-05-07 08:10:31 -05:00
ba2df0757e #604 #490 add java.se.ee to application at runtime. (#605) 17.3.0 2018-04-23 17:10:49 -05:00
f412125715 Is Trick ICG missing some uses of TRICK_ICG #608
Yes, it is, it's missing all of them.  Any clang/llvm version 3.5 and
above.  So it's been broken for a while.  We inherit from a
clang class that processes preprocessing statements.  If we override
virtual functions of a certain signature, we can inject our code into
the preprocessing process.  In this case we're looking for the use
of TRICK_ICG.  Clang changed the function signature in version 3.5.
From 3.5 on our functions were never called, so we never would find
TRICK_ICG.  I created new signatures for the functions post 3.5 so
they will work again.
2018-04-23 16:40:32 -05:00
c44239a382 Merge pull request #606 from pappyvw/configure-fixes
Configure fixes
2018-04-23 08:44:13 -05:00
206ca5710d Fix configure's gcc version check. #593
We don't want to test the gcc version on the mac.  It is clang
underneath and it does not report a version >= 4.8.  On High Sierra
it reports 4.2.1
2018-04-23 08:36:13 -05:00
e313264305 Update configure script based on configure.ac changes.
Relates to: #492, #592, #593
2018-04-21 13:07:18 -05:00
505872c859 Check for minimum clang version > 3.4.2 (#592) 2018-04-21 13:00:30 -05:00
0bf5d4a928 Fix configure's gcc version check. (#593)
The existing AX_GCC_VERSION macro was deprecated. Using
https://stackoverflow.com/questions/7067385/find-the-gcc-version
as a template for an equivalent check.
2018-04-21 12:58:13 -05:00
b5127ab93a Add configure check for 'curl'. (#492) 2018-04-21 12:57:57 -05:00
f6d000ac6e Merge pull request #599 from iamthad/hammen-docs-fix-17
Port Hammen doxygen documentation fix to Trick 17
2018-04-12 08:51:42 -05:00
2db059679b Merge pull request #590 from abrogley/unit-test-return-code
Unit test exit code
2018-04-12 08:47:44 -05:00
1525d2f634 Merge pull request #589 from iamthad/fix-io-63
Only left-shift `FieldDescription::io` when `io_found == true`
2018-04-12 08:46:08 -05:00
8938c3b7b2 Clang no longer supports -Wno-unused-but-set-variable #600
Removed the compile time flag.
2018-04-12 08:41:25 -05:00
9d7ba05c76 Implement Event condition and action lists as array of ptrs to objects rather than contiguous arrays. ref #587 (#597) 2018-04-10 17:17:21 -05:00
333a5d75ef Merge pull request #596 from nasa/Issue595
Issue595 #595
2018-04-10 16:18:47 -05:00
ad05aad2d2 Merge branch 'master' into Issue595 2018-04-10 16:07:46 -05:00
af6727408c Limit log file size (#594)
* #585 create new method to set max file size for DataRecordGroups.  Needs testing and DRD interface function

* #585 dre implementation and other improvements, needs more work

* #585 update dre, add intf for drd max size functions. Still requires better comments, wiki updates, some refactoring, and testing

* #585 refactor trick-dre

* format trick-dre

* improve readability of dre output for set_max_file_size
2018-04-10 16:02:44 -05:00
adf4482135 Update MemoryManager::delete_var to just issue a warning message when debug_level > 0. ref #595 2018-04-10 15:34:06 -05:00
f3be6c9ec0 Add a Memory Manager Test and a MM input parser error msg fix. Ref #587 2018-04-06 15:18:33 -05:00
fb6babd07f Adding comment above write_output() to be complete. 2018-03-28 10:09:46 -05:00
0d7a082b2f Adding Trick Unit Test return code functionality. 2018-03-28 10:09:22 -05:00
ba24d52801 Fixed a code bug and a comment bug in er7_utils, mostly so I can submit a new pull request against Trick 15.2.3. References #416. 2018-03-28 09:48:26 -05:00
7779dc568b Compile clean with clang++ -Wdocumentation.
I made a number of changes to Trick to make it compile clean with
clang++ -Wdocumentation, which checks doxygen comments. The changes
were either to comments or to parameter names in function declarations.
None of the changes have any impact on the compiled code.
2018-03-28 09:44:23 -05:00
db07582616 Only left-shift FieldDescription::io when io_found == true
The `io` field of `FieldDescription` takes a default value of 15. In
`FieldDescription::parseComment`, it may be updated as specified in the comment
text. There are 4 possible cases:

1) Neither IO attributes nor checkpoint IO attributes are found in the comment
2) IO attributes are found in the comment, but checkpoint IO attributes are not
3) Checkpoint IO attributes are found in the comment, but IO attributes are not
4) Both IO attributes and checkpoint IO attributes are found in the comment

In case 2, the IO attributes are copied into the checkpoint IO attributes by the
statement `io |= (io << 2)`. However, this also erroneously runs in case 1,
causing the default value of 15 to change to 63.

By testing `io_found == true`, this logic occurs only in case 2.

Fixes #568
2018-03-27 09:37:26 -05:00
f68950db9f Merge pull request #581 from nasa/java-unit-test
Java GUI unit tests reintegrated with Trick
2018-03-21 09:04:04 -05:00
a1aaf52ce7 #521 preparation for java 10 support for xmls annotation and improved safety of file separator call 2018-03-21 08:27:11 -05:00
c1aff35a6a Don't suppress errno
Refs #583
2018-03-20 15:21:13 -05:00
69d64fb582 Infer TRICK_HOME automatically
Refs #358
2018-03-20 15:09:30 -05:00
c7d95da9a8 Implement function to generate a transformation matrix to rotate a vector to new a new orientation. Ref #582 2018-03-19 18:10:04 -05:00
4030757304 formatting 2018-03-15 15:32:44 -05:00
206a928a98 #521 removed build.xml 2018-03-15 15:22:19 -05:00
f6fa9cdf3e #506 added additional check on run directory to prevent creation as defaul… (#566)
* added additional check on run directory to prevent creation as default output directory

* #506 edited error messages to include strerror
2018-03-14 15:18:37 -05:00
84f15d8361 #521 more makefile editing for java unit tests 2018-03-14 15:01:02 -05:00
eee6b12a6b #521 edit resource locations in test source 2018-03-14 13:33:13 -05:00
8ee0614309 create directory in makefile 2018-03-14 10:55:09 -05:00
86eb23c7de #521 added unit tests to build and 3rd party XML formatter that does not rely on ant 2018-03-14 10:29:44 -05:00