I think it really depends on the person and situation, but a good rule to go by is realize you can't always solve someone's problems nor should you ever feel like you should solve someone's problems. However, you can be a good listener and show your support that way.
[Written]