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/10738] Cannot set breakpoint on inlined function


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

--- Comment #17 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-03-16 16:47:41 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    gary@sourceware.org    2012-03-16 16:47:34

Modified files:
    gdb            : ChangeLog NEWS dwarf2read.c linespec.c main.c 
                     symfile.h 
    gdb/doc        : ChangeLog gdb.texinfo 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: annota1.exp async-shell.exp 
    gdb/testsuite/lib: mi-support.exp 
Added files:
    gdb/testsuite/gdb.dwarf2: dw2-inline-break.S 
                              dw2-inline-break.exp 
    gdb/testsuite/gdb.opt: inline-break.c inline-break.exp 

Log message:
    gdb:
    PR breakpoints/10738
    * dwarf2read.c (use_deprecated_index_sections): New global.
    (struct partial_die_info): New member may_be_inlined.
    (read_partial_die): Set may_be_inlined where appropriate.
    (add_partial_subprogram): Add partial symbols for partial
    DIEs that may be inlined.
    (new_symbol_full): Add inlined subroutines to the current
    scope.
    (write_psymtabs_to_index): Bump version number.
    (dwarf2_read_index): Read only version 6 indices unless
    use_deprecated_index_sections is set.
    * linespec.c (symbol_and_data_callback): New structure.
    (iterate_inline_only): New function.
    (iterate_over_all_matching_symtabs): New argument
    "include_inline".  If nonzero, also call the callback for
    symbols representing inlined subroutines.
    (lookup_prefix_sym): Pass extra argument to the above.
    (find_function_symbols): Likewise.
    (add_matching_symbols_to_info): Likewise.
    * NEWS: Mention that GDB can now set breakpoints on inlined
    functions.

    gdb/doc:
    PR breakpoints/10738
    * gdb.texinfo (Inline Functions): Remove the now-unnecessary @item
    stating that GDB cannot set breakpoints on inlined functions.
    (Mode Options): Document --use-deprecated-index-sections.
    (Index Section Format): Document new index section version format.

    gdb/testsuite:
    PR breakpoints/10738
    * gdb.opt/inline-break.exp: New file.
    * gdb.opt/inline-break.c: Likewise.
    * gdb.dwarf2/inline-break.exp: Likewise.
    * gdb.dwarf2/inline-break.S: Likewise.
    * gdb.base/annota1.exp: Cope with old .gdb_index warnings.
    * gdb.base/async-shell.exp: Likewise.
    * lib/mi-support.exp (library_loaded_re): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14019&r2=1.14020
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.499&r2=1.500
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.624&r2=1.625
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.152&r2=1.153
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/main.c.diff?cvsroot=src&r1=1.101&r2=1.102
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symfile.h.diff?cvsroot=src&r1=1.105&r2=1.106
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1286&r2=1.1287
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.933&r2=1.934
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3140&r2=1.3141
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/annota1.exp.diff?cvsroot=src&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/async-shell.exp.diff?cvsroot=src&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-inline-break.S.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-inline-break.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.opt/inline-break.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.opt/inline-break.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/mi-support.exp.diff?cvsroot=src&r1=1.109&r2=1.110

-- 
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]