Navigation



Ignore:
Timestamp:
Dec 14, 2010, 11:52:28 AM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Improvements to usability, still work ongoing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/dbg_interactive/dbg_interactive.c

    r624 r625  
    5757        TRACE_ENTRY("%p", arg);
    5858       
    59         fd_log_threadname ( "[dbg_interactive python interpreter]" );
     59        fd_log_threadname ( "fDpy" );
    6060       
    61         sleep(1);
    62         fd_log_debug("\nStarting python interpreter [experimental].\n");
    63         fd_log_debug("Example syntax:\n>>> print fd_config_cnf_diamid_get(cvar.fd_g_config)\n\n");
     61        CHECK_FCT_DO(fd_wait_initialization_complete(), goto end);
     62       
     63        fd_log_debug("\nStarting interactive python interpreter [experimental].\n");
     64        if (!arg)
     65                fd_log_debug("Example syntax:\n   >>> print cvar.fd_g_config.cnf_diamid\n   '%s'\n", fd_g_config->cnf_diamid);
    6466        Py_Main(arg ? 2 : 1, dum);
    6567       
     68end:   
    6669        /* Upon exit, issue the order of terminating to fD */
    6770        CHECK_FCT_DO(fd_event_send(fd_g_config->cnf_main_ev, FDEV_TERMINATE, 0, NULL), );
     
    100103                free(shadow_hlp);
    101104               
    102        
    103         if (TRACE_BOOL(INFO)) {
    104                 PyRun_SimpleString("print \"[dbg_interactive] \",FD_PROJECT_NAME,FD_PROJECT_VERSION_MAJOR,FD_PROJECT_VERSION_MINOR,FD_PROJECT_VERSION_REV\n");
    105         }
    106        
    107105        CHECK_POSIX( pthread_create(&pyinterp, NULL, myinterp, conffile) );
    108106 
Note: See TracChangeset for help on using the changeset viewer.