printf("-1/2 = %d\n", i);
No core image # Warning message from sdb
*/^div2 # Search for procedure "div2"
6: div2(i) { # It starts at line 6
*z # Print the next few lines
*div2:b # Place a breakpoint at beginning of div2
div2:8 b # Sdb echoes proc name and line number
Breakpoint at # Execution stops just before line 8
*t # Print trace of subroutine calls
main(1,2147483380,2147483388) [testdiv2.c:3]
div2:9: return(j); # Execution stops just before line 9
*8d # Delete the breakpoint
*div2(1)/ # Try running div2 with different args