MCPcopy Create free account
hub / github.com/boostorg/build / check_breakpoint_fn_args

Function check_breakpoint_fn_args

src/engine/debugger.cpp:1412–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1410}
1411
1412int check_breakpoint_fn_args( int argc, const char * * argv )
1413{
1414 if ( argc < 2 )
1415 {
1416 debug_error( "Missing argument to %s.", argv[ 0 ] );
1417 return 0;
1418 }
1419 else if ( argc > 2 )
1420 {
1421 debug_error( "Too many arguments to %s.", argv[ 0 ] );
1422 return 0;
1423 }
1424 else
1425 {
1426 char * end;
1427 long x = strtol( argv[ 1 ], &end, 10 );
1428 if ( *end )
1429 {
1430 debug_error( "Invalid breakpoint number %s.", argv[ 1 ] );
1431 return 0;
1432 }
1433 if ( x < 1 || x > num_breakpoints || breakpoints[ x - 1 ].status == BREAKPOINT_DELETED )
1434 {
1435 debug_error( "Unknown breakpoint %s.", argv[ 1 ] );
1436 return 0;
1437 }
1438 }
1439 return 1;
1440}
1441
1442static void debug_parent_disable( int argc, const char * * argv )
1443{

Callers 3

debug_parent_disableFunction · 0.85
debug_parent_enableFunction · 0.85
debug_parent_deleteFunction · 0.85

Calls 1

debug_errorFunction · 0.85

Tested by

no test coverage detected