MCPcopy Create free account
hub / github.com/TASEmulators/fceux / enableBreakpointCB

Function enableBreakpointCB

src/drivers/sdl/debugger.cpp:1211–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209}
1210
1211static void enableBreakpointCB (GtkCellRendererToggle * renderer,
1212 gchar * pathStr, debuggerWin_t * dw)
1213{
1214 GtkTreePath *path;
1215 int depth;
1216 int *indexArray;
1217
1218 path = gtk_tree_path_new_from_string (pathStr);
1219
1220 if (path == NULL)
1221 {
1222 printf ("Error: gtk_tree_path_new_from_string failed\n");
1223 return;
1224 }
1225
1226 depth = gtk_tree_path_get_depth (path);
1227 indexArray = gtk_tree_path_get_indices (path);
1228
1229 if (depth > 0)
1230 {
1231 if ( !gtk_cell_renderer_toggle_get_active(renderer) )
1232 {
1233 //printf("Toggle: %i On\n", indexArray[0] );
1234 watchpoint[indexArray[0]].flags |= WP_E;
1235 }
1236 else
1237 {
1238 //printf("Toggle: %i Off\n", indexArray[0] );
1239 watchpoint[indexArray[0]].flags &= ~WP_E;
1240 }
1241 }
1242
1243 gtk_tree_path_free (path);
1244
1245 dw->bpListUpdate();
1246}
1247
1248static void DeleteBreak(int sel)
1249{

Callers

nothing calls this directly

Calls 1

bpListUpdateMethod · 0.45

Tested by

no test coverage detected