Adult ADHD affecting their own child's development

With or without treatment, at what point do the behaviors modeled by a parent, with ADHD, negatively impact the development of their own kids? What is best for the child? Divorce with co-parenting or staying together and risk the exposure of learned helplessness?