It depends on how the woman feels about the man. If they are close friends, then when a man confides in a woman, she must be a trusted friend
If they are in a relationship, then first of all, it depends on the man's way of confiding in her, which can never be too blunt
The second thing is the level of affection the woman has for the man.
Secondly, it depends on the woman's love for the man. If the love is genuine, I think everyone has a past, but some people are just a little bit more special
Since we've decided to be together, then why should we care about the past
But the most important thing is that we have to trust each other, and if we don't have that, then we'll have a hard time in the future.
At least the man should make sure that this past will not make him suffer again, and the woman should have a wider heart to tolerate all these things, and not let the past become a shackle after each other!
The above is purely a personal opinion, the most important attitude is still in your own!