From da8d9885d5bbb1fc0976851ec26d74cb06b0a45c Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 2 Mar 2016 23:47:37 +0000 Subject: debug --- amiga/gui.c | 5 +++++ amiga/schedule.c | 2 ++ amiga/theme.c | 3 +++ 3 files changed, 10 insertions(+) diff --git a/amiga/gui.c b/amiga/gui.c index 29b40bafb..ef3d9f4f8 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2777,6 +2777,7 @@ void ami_get_msg(void) (max_fd != -1)) { /* max_fd is the highest fd in use, but waitselect() needs to know how many * are in use, so we add 1. */ + if (waitselect(max_fd + 1, &read_fd_set, &write_fd_set, &except_fd_set, NULL, (unsigned int *)&signalmask) != -1) { signal = signalmask; @@ -4751,6 +4752,8 @@ static void amiga_window_reformat(struct gui_window *gw) { struct IBox *bbox; + LOG("reformat window %p", gw); + if (gw != NULL) { if(ami_gui_get_space_box((Object *)gw->shared->objects[GID_BROWSER], &bbox) != NSERROR_OK) { warn_user("NoMemory", ""); @@ -5692,6 +5695,8 @@ int main(int argc, char** argv) AddPart(script, nsoption_charp(arexx_startup), 1024); ami_arexx_execute(script); + LOG("Entering main loop"); + while (!ami_quit) { ami_get_msg(); } diff --git a/amiga/schedule.c b/amiga/schedule.c index a8061a7b3..e34c00017 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -27,6 +27,7 @@ #include #include "utils/errors.h" +#include "utils/log.h" #include "amiga/misc.h" #include "amiga/schedule.h" @@ -243,6 +244,7 @@ static void ami_scheduler_run(void) pblHeapRemoveFirst(schedule_list); ami_misc_itempool_free(pool_nscb, nscb, sizeof(struct nscallback)); + LOG("Running scheduled callback %p with arg %p", callback, p); callback(p); return; diff --git a/amiga/theme.c b/amiga/theme.c index 6a0d5dac0..13a16c889 100644 --- a/amiga/theme.c +++ b/amiga/theme.c @@ -36,6 +36,7 @@ #include #include +#include "utils/log.h" #include "utils/messages.h" #include "utils/nsoption.h" #include "utils/utils.h" @@ -462,6 +463,8 @@ void gui_window_stop_throbber(struct gui_window *g) static void ami_throbber_update(void *p) { + LOG("Update throbber %p", p); + struct gui_window *g = (struct gui_window *)p; struct IBox *bbox; int frame = 0; -- cgit v1.2.3