The suspected gunman who unleashed a torrent of bullets at Philadelphia police while barricaded indoors was charged Saturday with attempted murder, court records show.