This is the mail archive of the gdb@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]

Re: DWARF question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Jim Blandy wrote:
>
> As for the fix, it seems to me that if find_line_symtab can't find
> a match in the symtabs currently loaded, it should expand partial
> symbol tables with the same name as the given symtab one by one
> until it either finds one that does have the line we're looking
> for, or it runs out of plausible psymtabs to try.
>
> Even when find_line_common does return a line number, if it sets
> *exact_match is zero, I think find_line_symtab should proceed to
> expand psymtabs.  Otherwise, if the first symtab we happen to find
> has line numbers higher than the one we're looking for, but some
> unread symtab has an exact match, we'll just return the first line
> number in the symtab we've got.
I've written a patch and it worked:

    (gdb) b 25
    Breakpoint 1 at 0x10000670: file fxdb1251-main.f, line 25.
    (gdb) b 31
    Breakpoint 2 at 0x100007cc: file fxdb1251-main.f, line 31.

I'll post it here as soon as I finish my regression tests. Then we can
discuss if the solution is OK.

Regards,

- --
Carlos Eduardo Seo
Software Engineer
IBM Linux Technology Center
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHArt1qvq7Aov/qQARAtlhAKCArtkAFQuj4TEEMcXqwMv/K8IMJgCggWw3
Y3QsndBp5ksZxpDYsr7EAGQ=
=h56m
-----END PGP SIGNATURE-----


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