X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fgtk%2Femugtk.c;h=0c1ca49dcd68e9e8062f1159f56d2514c4c68512;hb=71c48441ed7bf5c1570b677e7a17f65ba9b01688;hp=b5ef13fbb353a800d6a0506af2189a36eb1549a1;hpb=1eb382f72510d50b3636fb88c4bfaf17183672b6;p=emu8051.git diff --git a/src/gtk/emugtk.c b/src/gtk/emugtk.c index b5ef13f..0c1ca49 100644 --- a/src/gtk/emugtk.c +++ b/src/gtk/emugtk.c @@ -89,11 +89,14 @@ emugtk_stop_running() static gboolean emugtk_running(gpointer data) { - cpu8051_Exec(); - if (IsBreakpoint(cpu8051.pc)) { - log_info("Breakpoint Hit"); + int breakpoint_hit; + + (void) data; /* Remove compiler warning about unused variable. */ + + breakpoint_hit = cpu8051_run(1, NULL); + + if (breakpoint_hit) emugtk_stop_running(); - } return TRUE; } @@ -139,6 +142,11 @@ emugtk_Reset(void) static void emugtk_ResetEvent(GtkWidget *widget, GdkEvent *event, gpointer data) { + /* Remove compiler warning about unused variables. */ + (void) widget; + (void) event; + (void) data; + log_info("ResetEvent()"); emugtk_stop_running(); emugtk_Reset(); @@ -156,6 +164,11 @@ emugtk_Step(void) static void emugtk_RunEvent(GtkWidget *widget, GdkEvent *event, gpointer data) { + /* Remove compiler warning about unused variables. */ + (void) widget; + (void) event; + (void) data; + log_info("RunEvent()"); if (running) @@ -168,6 +181,11 @@ emugtk_RunEvent(GtkWidget *widget, GdkEvent *event, gpointer data) static void emugtk_StopEvent(GtkWidget *widget, GdkEvent *event, gpointer data) { + /* Remove compiler warning about unused variables. */ + (void) widget; + (void) event; + (void) data; + log_info("StopEvent()"); emugtk_stop_running(); } @@ -176,6 +194,11 @@ emugtk_StopEvent(GtkWidget *widget, GdkEvent *event, gpointer data) static void emugtk_StepEvent(GtkWidget *widget, GdkEvent *event, gpointer data) { + /* Remove compiler warning about unused variables. */ + (void) widget; + (void) event; + (void) data; + log_info("StepEvent()"); emugtk_stop_running(); emugtk_Step(); @@ -241,6 +264,10 @@ AddMenu(void) static int mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data) { + /* Remove compiler warning about unused variables. */ + (void) window; + (void) data; + cfg->win_width = event->configure.width; cfg->win_height = event->configure.height; @@ -257,6 +284,10 @@ hpaned_notify_event(GtkWindow *window, GdkEvent *event, gpointer data) { GtkWidget *paned = data; + /* Remove compiler warning about unused variables. */ + (void) window; + (void) event; + cfg->hpane_pos = gtk_paned_get_position(GTK_PANED(paned)); } @@ -265,6 +296,10 @@ vpaned_notify_event(GtkWindow *window, GdkEvent *event, gpointer data) { GtkWidget *paned = data; + /* Remove compiler warning about unused variables. */ + (void) window; + (void) event; + cfg->vpane_pos = gtk_paned_get_position(GTK_PANED(paned)); } @@ -273,6 +308,10 @@ main_paned_notify_event(GtkWindow *window, GdkEvent *event, gpointer data) { GtkWidget *paned = data; + /* Remove compiler warning about unused variables. */ + (void) window; + (void) event; + cfg->main_pane_pos = gtk_paned_get_position(GTK_PANED(paned)); }