Can you confirm from photos that problem is borers? Can tree be saved and continue to bear good fruit? Or is it time to remove tree completely?
Apricot Tree Borers at Base of Trunk
Certified GKH Gardening Expert
This could be a canker, Peach tree borer, or even sun scald damage.
Piles of saw dust are generally found at the base of the tree trunk if it is infected with Peach tree borer.
Here are some links to help you.