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 breakpoints/11746] Be able to set breakpoints using partialsource paths


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

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-03-20
                 CC|                            |keiths at redhat dot com
   Target Milestone|7.1                         |7.5
     Ever Confirmed|0                           |1

--- Comment #2 from Keith Seitz <keiths at redhat dot com> 2012-03-20 22:43:11 UTC ---
I believe Tom fixed this:

2012-01-16  Tom Tromey  <tromey@redhat.com>

        * NEWS: Add item.
        * symtab.h (compare_filenames_for_search): Declare.
        * symtab.c (compare_filenames_for_search): New function.
        (iterate_over_some_symtabs): Use it.
        * symfile.h (struct quick_symbol_functions)
        <map_symtabs_matching_filename>: Change spec.
        * psymtab.c (partial_map_symtabs_matching_filename): Use
        compare_filenames_for_search.  Update for new spec.
        * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
        compare_filenames_for_search.  Update for new spec.
        * breakpoint.c (clear_command): Use compare_filenames_for_search.

$ ./gdb -nx -q foobar 
Reading symbols from /home/keiths/tmp/foobar...done.
(gdb) b foo/x.c:5
Breakpoint 1 at 0x400478: file foo/x.c, line 5.
(gdb) b bar/x.c:1
Breakpoint 2 at 0x400484: file bar/x.c, line 1.
(gdb) inf br
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   0x0000000000400478 in main at foo/x.c:5
2       breakpoint     keep y   0x0000000000400484 in foo at bar/x.c:1

Doug, do you want to verify/confirm and close (if appropriate)?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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