The debugger's main loop. */
| 2598 | |
| 2599 | /* The debugger's main loop. */ |
| 2600 | int debugger( void ) |
| 2601 | { |
| 2602 | command_array = parent_commands; |
| 2603 | command_input = stdin; |
| 2604 | if ( debug_interface == DEBUG_INTERFACE_MI ) |
| 2605 | printf( "=thread-group-added,id=\"i1\"\n(gdb) \n" ); |
| 2606 | while ( 1 ) |
| 2607 | { |
| 2608 | if ( debug_interface == DEBUG_INTERFACE_CONSOLE ) |
| 2609 | printf("(b2db) "); |
| 2610 | fflush( stdout ); |
| 2611 | read_command(); |
| 2612 | } |
| 2613 | return 0; |
| 2614 | } |
| 2615 | |
| 2616 | |
| 2617 | /* Runs the matching command in the current command_array. */ |