This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Problem with pending breakpoints on source files with same name
- From: Thierry <rachma75 at yahoo dot fr>
- To: gdb at sourceware dot org
- Date: Mon, 2 Feb 2009 13:19:11 +0000 (GMT)
- Subject: Problem with pending breakpoints on source files with same name
Hi,
I'm using MingW GDB 6.8.
I'm debugging 2 DLLs "DLL1" and "DLL2", which have one source file with the
same name, but different absolute paths; let's say: "C:\myProject\dummy.c", and
"D:\myProject\dummy.c".
I'm setting a pending breakpoint (i.e. before the DLL is loaded) in
"D:\myProject\dummy.c" using the absolute path.
Now the problem is: if "DLL1" is loaded before "DLL2", GDB is unable to set the
breakpoint. I get the error message:
"Error in re-setting breakpoint 1: Internal: readin dummy.c pst for
'D:\myProject\dummy.c' found when no symtab found."
It looks like that when GDB memorizes the location for the pending breakpoints,
it stores the file's relative path and not the absolute path. Therefore it
mixes up the source files having the same relative path.
Note that when using "normal" (non-pending) breakpoints, everything works well.
Any idea?
Thanks
Thierry