Chad Gaudin threw seven sharp innings, Brett Pill and Brandon Crawford hit homers, and the San Francisco Giants snapped a five-game losing streak with a 9-2 victory over the Philadelphia Phillies on Wednesday night.