Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugging a few holes with Sim Control Panel's Step function #1774

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
implemented debug pause with internal executive functions
  • Loading branch information
Mrockwell2 committed Oct 2, 2024
commit c7cd17eb2f80f0831e1c019af05559091791d92f
6 changes: 3 additions & 3 deletions trick_source/sim_services/Executive/Executive_debug_pause.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int Trick::Executive::debug_pause(Trick::JobData * curr_job) {
// Pause for all job classes that are not initialization or for init jobs greater than phase 1.
if ( target_job->job_class_name.compare("initialization") or target_job->phase > 1 ) {

message_publish(MSG_NORMAL, "%12.6f pausing before %s\n" , exec_get_sim_time() ,
message_publish(MSG_NORMAL, "%12.6f pausing before %s\n" , get_sim_time() ,
target_job->name.c_str() ) ;

do {
Expand Down Expand Up @@ -65,7 +65,7 @@ int Trick::Executive::debug_pause_on() {

debug_sem = sem_open(debug_sem_name.c_str(), O_CREAT, S_IRWXU , 0);

exec_instrument_before("trick_sys.sched.debug_pause") ;
instrument_job_before("trick_sys.sched.debug_pause") ;

//TODO: turn off real-time clock if on.

Expand All @@ -80,7 +80,7 @@ int Trick::Executive::debug_pause_off() {
}
debug_pause_flag = false ;

exec_instrument_remove("trick_sys.sched.debug_pause") ;
instrument_job_remove("trick_sys.sched.debug_pause") ;

debug_signal() ;

Expand Down