| 259 | } |
| 260 | |
| 261 | static int add_breakpoint( struct breakpoint elem ) |
| 262 | { |
| 263 | if ( num_breakpoints == breakpoints_capacity ) |
| 264 | { |
| 265 | int new_capacity = breakpoints_capacity * 2; |
| 266 | if ( new_capacity == 0 ) new_capacity = 1; |
| 267 | breakpoints = ( struct breakpoint * )realloc( breakpoints, new_capacity * sizeof( struct breakpoint ) ); |
| 268 | breakpoints_capacity = new_capacity; |
| 269 | } |
| 270 | breakpoints[ num_breakpoints++ ] = elem; |
| 271 | return num_breakpoints; |
| 272 | } |
| 273 | |
| 274 | static int add_line_breakpoint( OBJECT * file, int line ) |
| 275 | { |
no outgoing calls
no test coverage detected