pdb output changed to ostream