summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-03-02 23:47:37 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-03-02 23:47:49 +0000
commitda8d9885d5bbb1fc0976851ec26d74cb06b0a45c (patch)
tree70f90ee80a0e60aadfa7a109eee4753686d97676 /amiga
parentcd1800187eb44edf76e10a1a64dbf6bf49b236b0 (diff)
downloadnetsurf-da8d9885d5bbb1fc0976851ec26d74cb06b0a45c.tar.gz
netsurf-da8d9885d5bbb1fc0976851ec26d74cb06b0a45c.tar.bz2
debug
Diffstat (limited to 'amiga')
-rw-r--r--amiga/gui.c5
-rwxr-xr-xamiga/schedule.c2
-rw-r--r--amiga/theme.c3
3 files changed, 10 insertions, 0 deletions
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 <pbl.h>
#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 <intuition/pointerclass.h>
#include <workbench/icon.h>
+#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;