| 408 | } |
| 409 | |
| 410 | void debuggerWin_t::bpListUpdate(void) |
| 411 | { |
| 412 | GtkTreeIter iter; |
| 413 | char line[256], addrStr[32], flags[16], enable; |
| 414 | |
| 415 | gtk_tree_store_clear( bp_store ); |
| 416 | |
| 417 | for (int i=0; i<numWPs; i++) |
| 418 | { |
| 419 | gtk_tree_store_append (bp_store, &iter, NULL); // aquire iter |
| 420 | |
| 421 | if ( watchpoint[i].endaddress > 0 ) |
| 422 | { |
| 423 | sprintf( addrStr, "$%04X-%04X:", watchpoint[i].address, watchpoint[i].endaddress ); |
| 424 | } |
| 425 | else |
| 426 | { |
| 427 | sprintf( addrStr, "$%04X:", watchpoint[i].address ); |
| 428 | } |
| 429 | |
| 430 | flags[0] = (watchpoint[i].flags & WP_E) ? 'E' : '-'; |
| 431 | |
| 432 | if ( watchpoint[i].flags & BT_P ) |
| 433 | { |
| 434 | flags[1] = 'P'; |
| 435 | } |
| 436 | else if ( watchpoint[i].flags & BT_S ) |
| 437 | { |
| 438 | flags[1] = 'S'; |
| 439 | } |
| 440 | else |
| 441 | { |
| 442 | flags[1] = 'C'; |
| 443 | } |
| 444 | |
| 445 | flags[2] = (watchpoint[i].flags & WP_R) ? 'R' : '-'; |
| 446 | flags[3] = (watchpoint[i].flags & WP_W) ? 'W' : '-'; |
| 447 | flags[4] = (watchpoint[i].flags & WP_X) ? 'X' : '-'; |
| 448 | flags[5] = (watchpoint[i].flags & WP_F) ? 'F' : '-'; |
| 449 | flags[6] = 0; |
| 450 | |
| 451 | enable = (watchpoint[i].flags & WP_E) ? 1 : 0; |
| 452 | |
| 453 | strcpy( line, addrStr ); |
| 454 | strcat( line, flags ); |
| 455 | |
| 456 | if (watchpoint[i].desc ) |
| 457 | { |
| 458 | strcat( line, " "); |
| 459 | strcat( line, watchpoint[i].desc); |
| 460 | strcat( line, " "); |
| 461 | } |
| 462 | |
| 463 | if (watchpoint[i].condText ) |
| 464 | { |
| 465 | strcat( line, " Condition:"); |
| 466 | strcat( line, watchpoint[i].condText); |
| 467 | strcat( line, " "); |
no outgoing calls
no test coverage detected