void gtk_debugger_display(void) { WND_TMR_START(); // display debugger windows (if not) if(options3.dbg_dock) { dbgdock_display_window(); dbgiop_display_window(); dbgpclog_display_window(); } else { dbgregs_display_window(); dbgmem_display_window(); dbgbkpts_display_window(); dbgpclog_display_window(); dbgstack_display_window(); dbgheap_display_window(); dbgiop_display_window(); dbgcode_display_window(); // the last has focus } WND_TMR_STOP("Display Time"); }
void dbgmem_refresh_window(void) { WND_TMR_START(); if(!options3.mem.closed) { GtkNotebook *nb = GTK_NOTEBOOK(notebook); gint page = gtk_notebook_get_current_page(nb); refresh_page(page, 0); } WND_TMR_STOP("Memory Refresh Time"); }
// create windows but don't show them yet void gtk_debugger_preload(void) { WND_TMR_START(); dbgw.regs = dbgregs_create_window(); dbgw.mem = dbgmem_create_window(); dbgw.bkpts = dbgbkpts_create_window(); dbgw.pclog = dbgpclog_create_window(); dbgw.stack = dbgstack_create_window(); dbgw.heap = dbgheap_create_window(); dbgw.iop = dbgiop_create_window(); dbgw.code = dbgcode_create_window(); if(options3.dbg_dock) //must be launched as last dbgw.dock = dbgdock_create_window(); dbg_load = !0; WND_TMR_STOP("Debugger Preload Time"); }
void gtk_debugger_refresh(void) { WND_TMR_START(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.regs)) dbgregs_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.mem)) dbgmem_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.bkpts)) dbgbkpts_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.pclog)) dbgpclog_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.code)) dbgcode_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.stack)) dbgstack_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.heap)) dbgheap_refresh_window(); if(options3.dbg_dock || GTK_WIDGET_VISIBLE(dbgw.iop)) dbgiop_refresh_window(); WND_TMR_STOP("Debugger Refresh Time"); printf("\n"); }