old-cross-binutils/gdb/testsuite
Joel Brobecker 4ae24af054 wrong language used when re-setting breakpoint
The debugger sometimes fails to re-set a breakpoint as follow,
causing it to become disabled:

    (gdb) b nested_sub
    Breakpoint 1 at 0x401cec: file foo.adb, line 7.
    (gdb) b do_nothing
    Breakpoint 2 at 0x401cdc: file pck.adb, line 4.
    (gdb) run
    Starting program: /[...]/foo
    Error in re-setting breakpoint 1: Function "nested_sub" not defined.

    Breakpoint 2, pck.do_nothing () at pck.adb:4
    4             null;

This only happens on machines where the debug-file-directory is
a valid directory name.

The reason behind the error is that the linespec code that re-sets
the breakpoints uses the current_language global when iterating
over a symtab's symbols. However, the that global gets switched from
Ada to C during the startup phase, probably as a side-effect of stopping
in some system code for which debugging info is available. The fix
is to make sure that we use the correct language.

gdb/ChangeLog:

        * linespec.c (iterate_over_all_matching_symtabs): Use the correct
        language when iterating over symbols.

gdb/testsuite/ChangeLog:

        * gdb.ada/bp_reset: New testcase.
2012-09-18 16:52:19 +00:00
..
boards * boards/fission.exp: Explicitly mark "board" as not remote. 2012-09-10 17:48:11 +00:00
config 2012-07-19 Pedro Alves <palves@redhat.com> 2012-07-19 20:00:59 +00:00
gdb.ada wrong language used when re-setting breakpoint 2012-09-18 16:52:19 +00:00
gdb.arch gdb/ 2012-09-17 07:15:48 +00:00
gdb.asm * gdb.asm/asm-source.exp: Use standard_output_file, 2012-06-25 20:11:43 +00:00
gdb.base gdb/ 2012-09-17 08:42:14 +00:00
gdb.cell * lib/gdb.exp (skip_altivec_tests, skip_vsx_tests) 2012-06-21 20:46:25 +00:00
gdb.cp gdb/testsuite/ 2012-09-16 17:30:48 +00:00
gdb.disasm * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.dwarf2 * gdb.dwarf2/fission-base.S: Include gdb.dwarf2/ in dwo_name. 2012-09-11 16:42:09 +00:00
gdb.fortran * gdb.fortran/subarray.exp: Use standard_testfile, 2012-06-25 20:51:35 +00:00
gdb.gdb 2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-09-08 05:29:21 +00:00
gdb.go * gdb.go/package.exp: Partially revert earlier patch; use 2012-06-28 13:52:51 +00:00
gdb.hp * gdb.hp/gdb.aCC/exception.exp: Remove. 2012-08-21 19:36:47 +00:00
gdb.java * lib/gdb.exp (skip_unwinder_tests): New proc. 2012-08-22 14:27:49 +00:00
gdb.linespec * linespec.c (linespec_lex_number): A number followed 2012-07-30 17:45:37 +00:00
gdb.mi gdb/ 2012-08-09 12:53:46 +00:00
gdb.modula2 * gdb.modula2/unbounded-array.exp: Use standard_testfile, 2012-06-25 20:28:23 +00:00
gdb.multi * gdb.multi/watchpoint-multi.exp: Use standard_testfile. 2012-06-25 21:07:32 +00:00
gdb.objc * Makefile.in (SFILES): Remove objc-exp.y. 2012-07-26 20:11:10 +00:00
gdb.opencl * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.opt * gdb.opt/clobbered-registers-O2.exp: Use standard_testfile, 2012-06-25 20:24:57 +00:00
gdb.pascal * gdb.pascal/integers.exp: Use standard_testfile, clean_restart. 2012-06-25 20:43:40 +00:00
gdb.python Refactor Python "gdb" module into a proper Python package, by introducing 2012-09-13 21:49:32 +00:00
gdb.reverse gdb/ 2012-09-17 07:15:48 +00:00
gdb.server * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.stabs * gdb.stabs/weird.exp: Remove directory-checking code. Use 2012-06-26 17:32:44 +00:00
gdb.threads * gdb.base/annota1.exp: Accept no frames-invalid notification 2012-08-02 15:59:59 +00:00
gdb.trace gdb/doc: 2012-09-18 12:09:28 +00:00
gdb.xml http://sourceware.org/ml/gdb-patches/2012-09/msg00015.html 2012-09-14 21:23:45 +00:00
lib * lib/gdb.exp (skip_unwinder_tests): Don't leave 'ok' set if 2012-08-24 15:26:23 +00:00
aclocal.m4
ChangeLog wrong language used when re-setting breakpoint 2012-09-18 16:52:19 +00:00
configure Initial pass at Go language support. 2012-04-25 14:07:23 +00:00
configure.ac Initial pass at Go language support. 2012-04-25 14:07:23 +00:00
dg-extract-results.sh * dg-extract-results.sh: Handle KFAILs. 2012-03-18 04:17:16 +00:00
Makefile.in * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
TODO