What IDE version and more specific which gdb are you using?
The thing is that this message comes from a bug of gdb: in most cases you can simply ignore it. I had it too, and usually it has no impact.
But if in case you are not able to debug that file, what helped me is to create a new file with a text editor, and copy the file content into it.
I hope this helps,
Erich