A Portland, Ore. -- man accused of threatening to kill President Obama has pleaded guilty.
Darryl James Swanson told U.S. District Judge Anna Brown on Thursday that he was "in a terrible mental state" when he made the threats last year.
The Oregonian reports Swanson pleaded guilty to one count of threatening the president. The charge carries a maximum sentence of five years in prison.
Prosecutors say the 46-year-old made multiple phone calls to government officials and news organizations.
According to court records, Swanson called the Seattle bureau of The Associated Press on May 2, 2011, and said he might have to get a machine gun "and blast (his) way into the White House, leaving the president and the first lady in caskets full of blood."
Swanson acknowledged he is being treated for mental illness.
Sentencing is set for Dec. 12.
Separately, a former U.S. serviceman arrested in Honolulu for sending emails from Thailand threatening to kill Vice President Biden has pleaded guilty.
Justin Alan Woodward withdrew his not guilty plea during a hearing in federal court Thursday.
Assistant U.S. Attorney Thomas Brady says Woodward faces a maximum sentence of five years in prison and a $250,000 fine when he's sentenced in January.
Woodward was arrested last year at the Honolulu airport when he arrived on a flight from Bangkok.
According to the criminal complaint, he told agents he wrote the threatening messages, including one sent to the White House website. The IP address was traced to a public Wi-Fi access point in Chiang Mai, Thailand.
He told officials he was discharged from the U.S Marine Corps for bipolar disorder.