ca35092c1d
Fix lockup when running Valgrind. Ref #685 ( #699 )
2018-11-09 13:40:11 -06:00
66b3d984ff
Merge branch 'master' into scan-build
2018-11-06 11:24:09 -06:00
21c01a5454
scan-build changes
...
This reverts commit e86027f825
.
2018-11-06 11:23:12 -06:00
d2e81257c2
#687 do not warn or convert unit --
2018-10-30 10:40:46 -05:00
e86027f825
revert scan-build changes, need further testing before merge
2018-10-22 15:11:29 -05:00
389e2837fc
add -std=c++11 to MonteCarlo
2018-10-22 11:40:55 -05:00
bc35e64406
Merge pull request #673 from nasa/#scan-build
...
#671 fix all non memory manager scan-build bugs.
2018-10-20 13:16:35 -05:00
121fa84081
Use correct format specifiers.
...
Used http://www.cplusplus.com/reference/cstdio/printf/ as a reference.
2018-10-11 22:52:04 -05:00
af2575da5b
Remove all unused variables (style warning).
2018-10-11 22:05:50 -05:00
5b63559312
fix error message syntax errors
2018-10-03 15:31:22 -05:00
53886fb54d
add else block for code clarity and to aid static analysis JITInputFile.cpp
2018-10-03 10:49:11 -05:00
8f20710761
replace garbage value on enum error PythonPrint.cpp
2018-10-03 10:45:15 -05:00
d1957c650b
handle garbage values/invalid input ClassicCheckPointAgent
2018-10-03 10:34:11 -05:00
e4dcd42b2b
fix unreachable code MonteVarFile.cpp
2018-10-01 16:22:27 -05:00
28863c58a6
remove memory leaks and garbage return values TrickBinary.cpp
2018-10-01 15:55:04 -05:00
605f5d0f6d
remove dead assignment DataRecordGroup.cpp
2018-10-01 14:16:19 -05:00
0b2218e449
remove dead assignment IPPython.cpp
2018-10-01 13:55:02 -05:00
424043b146
remove 'delete this' double delete in JSONVariableServerThread destructor
2018-10-01 13:33:51 -05:00
2cdd4bf380
free memory leaks MonteVarFile.cpp
2018-10-01 13:24:37 -05:00
7b3b47aa39
init value and style change VariableServerListenThread.cpp
2018-10-01 10:26:17 -05:00
2c43321076
remove dead assignments VariableServerThread_loop
2018-10-01 10:13:39 -05:00
53f3b308f5
Merge branch 'master' of https://github.com/nasa/trick
2018-09-25 10:41:35 -05:00
77e0e73b3f
various static analyser bug fixes
2018-09-25 10:41:14 -05:00
fccf32093b
Explicitly specify void arg for C functions that take no arguments. ( #670 )
...
* Clock empty args to void
* command_line func empty args to void
* DataRecord func empty args to void
* debug_pause func empty args to void
* echojobs func empty args to void
* ExternalApplication func empty args to void
* FrameLog func empty args to void
* MasterSlave func empty args to void
* MonteCarlo func empty args to void
* outdllist func proto empty args to void
* sie func empty args to void
* SimTime func empty args to void
* UnitTest func empty args to void
* var_server func empty args to void
* wcs func empty args to void
2018-09-19 11:25:04 -05:00
7b694931ef
Warning fixes ( #658 )
...
* Suppress expected, benign warnings from Bison and Flex generated code.
* Trick::MessageThreadedCout::thread_body should return NULL.
2018-08-16 16:02:11 -05:00
3ff8fc6bc0
Fix enums in MonteCarlo_test.cpp. REF #650
2018-08-08 14:36:10 -05:00
84f67ef79f
Update all enums in MonteCarlo with prefixes, so as to not conflict with other enums. ( #650 )
2018-07-25 13:05:10 -05:00
a0eaf5b794
#624 Remove invalid delete in empty rec_buffer, checkpoint load no longer crashes.
2018-07-09 09:23:28 -05:00
ed5a5426b1
Revert "Infer TRICK_HOME automatically"
...
This reverts commit 6e18294100
.
Refs #637
2018-06-22 08:12:38 -05:00
6e18294100
Infer TRICK_HOME automatically
...
Refs #358
2018-06-21 11:40:40 -05:00
882b568b86
Fix enums in MonteCarlo ExitStatus to less susceptible to conflict wi… ( #628 )
...
* Fix enums in MonteCarlo ExitStatus to less susceptible to conflict with other code. ref #609
* Add MC_ prefix to ExitStatus enums. Ref #609
2018-06-05 15:10:08 -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
2db059679b
Merge pull request #590 from abrogley/unit-test-return-code
...
Unit test exit code
2018-04-12 08:47:44 -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
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
0d7a082b2f
Adding Trick Unit Test return code functionality.
2018-03-28 10:09:22 -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
37b1e02455
Replace perror with strerror
...
Instead of printing the numeric value of errno, how about we do
something helpful?
2018-03-08 14:50:13 -06:00
1179007fa1
Infer TRICK_HOME automatically
...
Refs #358
2018-03-08 14:44:36 -06:00
2ce53dadd2
Move pymods into share/trick
...
Fixes #574
2018-03-05 15:17:22 -06:00
d97f482219
Allow the FrameLog class to use a different clock #571
...
Added a clock reference that to the FrameLog class that defaults
to the GetTimeOfDay clock. This clock has fast access and is
non intrusive to real-time operations using a different clock.
Added a function to set the clock to something else if desired.
2018-02-28 17:33:09 -06:00
27bf0b030b
Dequeue timed-out runs if the slave later returns
...
Fixes #569
2018-02-28 14:13:05 -06:00
8bdcd28631
Don't use TRICK_HOST_CPU in MonteCarlo SHH command
...
Fixes #564
2018-02-27 09:38:12 -06:00