This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/9583] -break-insert failed when several source files have the same name


------- Additional Comments From seb dot sfo at free dot fr  2009-03-02 21:28 -------
Created an attachment (id=3786)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3786&action=view)
A fix for this bug

I have made some investigations.

In linespec.c:decode_line_1, symtab_from_filename get the right file, but then
it goes through decode_all_digits, calling find_line_symtab, which returns the
wrong one.

In symtab.c:find_line_symtab. Only the filename (without its path) is compared
so it can return completely unrelated symbols. This patch tries to use the full
path name if possible and fix the issue here.

There is another very similar piece of code in symtab.c:expand_line_sal. I
haven't change it because I don't know exactly when this code is executed. But
it probably has exactly the same problem as only the file names are compared. 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9583

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]