Filenames of your source have to be unique, because gdb sometimes gets the whole relative path in the stackframe and sometimes not!