Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 43:0cf3e339cc59
prev30:89b30313d757
next45:f99236f0632e
author nkeynes
date Mon Dec 26 11:47:15 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Add sh4 + arm breakpoints
Hook up break button in GUI
Enable ARM slice in main loop
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Sun Dec 25 05:57:00 2005 +0000
1.2 +++ b/src/gui/callbacks.c Mon Dec 26 11:47:15 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: callbacks.c,v 1.10 2005-12-25 05:57:00 nkeynes Exp $
1.6 + * $Id: callbacks.c,v 1.11 2005-12-26 11:47:15 nkeynes Exp $
1.7 *
1.8 * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 *
1.10 @@ -26,11 +26,12 @@
1.11 #include "gui/interface.h"
1.12 #include "gui/gui.h"
1.13 #include "sh4core.h"
1.14 -#include "asic.h"
1.15 +#include "mem.h"
1.16 #include "dreamcast.h"
1.17 #include "loader.h"
1.18
1.19 int selected_pc = -1;
1.20 +int selected_row = -1;
1.21
1.22 void
1.23 on_new_file1_activate (GtkMenuItem *menuitem,
1.24 @@ -148,7 +149,8 @@
1.25 on_break_btn_clicked (GtkButton *button,
1.26 gpointer user_data)
1.27 {
1.28 -
1.29 + debug_info_t data = get_debug_info(GTK_WIDGET(button));
1.30 + debug_win_toggle_breakpoint( data, selected_row, BREAK_KEEP );
1.31 }
1.32
1.33
1.34 @@ -171,6 +173,7 @@
1.35 {
1.36 debug_info_t data = get_debug_info(GTK_WIDGET(clist));
1.37 selected_pc = row_to_address(data, row);
1.38 + selected_row = row;
1.39 }
1.40
1.41
.