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

Function debug_add_breakpoint

src/engine/debugger.cpp:575–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575static int debug_add_breakpoint( const char * name )
576{
577 const char * file_ptr = name;
578 const char * ptr = strrchr( file_ptr, ':' );
579 if ( ptr )
580 {
581 char * end;
582 long line = strtoul( ptr + 1, &end, 10 );
583 if ( line > 0 && line <= INT_MAX && end != ptr + 1 && *end == 0 )
584 {
585 OBJECT * file = object_new_range( file_ptr, int32_t(ptr - file_ptr) );
586 return add_line_breakpoint( file, line );
587 }
588 else
589 {
590 OBJECT * name = object_new( file_ptr );
591 return add_function_breakpoint( name );
592 }
593 }
594 else
595 {
596 OBJECT * name = object_new( file_ptr );
597 return add_function_breakpoint( name );
598 }
599}
600
601static void debug_child_break( int argc, const char * * argv )
602{

Callers 3

debug_child_breakFunction · 0.85
debug_parent_breakFunction · 0.85
debug_mi_break_insertFunction · 0.85

Calls 4

object_new_rangeFunction · 0.85
add_line_breakpointFunction · 0.85
object_newFunction · 0.85
add_function_breakpointFunction · 0.85

Tested by

no test coverage detected