This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Wrong mapping pc to line numbers when listing coff
- To: ezannoni at redhat dot com
- Subject: Wrong mapping pc to line numbers when listing coff
- From: Andrew Volkov <Andrew dot Volkov at transas dot com>
- Date: Fri, 9 Nov 2001 17:16:52 +0300
- Cc: gdb at sources dot redhat dot com
Hi Elena,
As I understand (may be I wrong :), file gdb/symtab.c belong to you. Well, I
found next bug/incorrectness in find_pc_sect_line function:
When I build coff target from c++ files (with templates) and debugging it,
then find_pc_sect_line return wrong start line number. It's because this
function consider that symbol with lower pc then current pc (argument of
find_pc_sect_line) is belong to first line (or vice versa), this is not
always correct, especcially for functions. In functions first line came
after prologs, and hence, best.pc (and best.line) must be greater then
current pc. I could correct this incorrectness, but it will be better, if
you tell me your ideas about this situation.
Regards,
Andrey