| 1209 | } |
| 1210 | |
| 1211 | static 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 | |
| 1248 | static void DeleteBreak(int sel) |
| 1249 | { |
nothing calls this directly
no test coverage detected