| 2442 | } |
| 2443 | |
| 2444 | static void debug_mi_stack_list_frames( int argc, const char * * argv ) |
| 2445 | { |
| 2446 | int depth; |
| 2447 | int i; |
| 2448 | |
| 2449 | if ( debug_state == DEBUG_NO_CHILD ) |
| 2450 | { |
| 2451 | debug_mi_format_token(); |
| 2452 | printf( "^error,msg=\"No child\"\n(gdb) \n" ); |
| 2453 | return; |
| 2454 | } |
| 2455 | |
| 2456 | fprintf( command_output, "info depth\n" ); |
| 2457 | fflush( command_output ); |
| 2458 | depth = debug_int_read( command_child ); |
| 2459 | |
| 2460 | debug_mi_format_token(); |
| 2461 | printf( "^done,stack=[" ); |
| 2462 | for ( i = 0; i < depth; ++i ) |
| 2463 | { |
| 2464 | FRAME_INFO frame; |
| 2465 | fprintf( command_output, "info frame %d\n", i ); |
| 2466 | fflush( command_output ); |
| 2467 | if ( i != 0 ) |
| 2468 | { |
| 2469 | printf( "," ); |
| 2470 | } |
| 2471 | debug_frame_read( command_child, &frame ); |
| 2472 | debug_mi_print_frame_info( &frame ); |
| 2473 | } |
| 2474 | printf( "]\n(gdb) \n" ); |
| 2475 | fflush( stdout ); |
| 2476 | } |
| 2477 | |
| 2478 | static void debug_mi_list_target_features( int argc, const char * * argv ) |
| 2479 | { |
nothing calls this directly
no test coverage detected