I use gdb 6.4 to investigate the core files. The program runs on suse linux. (
While executing 'bt' command to view the stack trace, sometimes I notice that the name of the source file for one of the frames (generally frame no 1 or 2) is wrong. The function name is however correctly displayed. Also when I go to that particular frame for printing the values of local variables, it says that the variable is not in context. The debugging is getting harder and irritating because of this.
Can anyone suggest a solution to this issue? Will an upgrade to a newer version of gdb help? If yes, which is the latest version that I should use?
Please help.

Thanks in advance!

- Rajesh Agroya