diff --git a/SOURCES/gdb-gnat-dwarf-crash-1of3.patch b/SOURCES/gdb-gnat-dwarf-crash-1of3.patch new file mode 100644 index 0000000..bc08098 --- /dev/null +++ b/SOURCES/gdb-gnat-dwarf-crash-1of3.patch @@ -0,0 +1,451 @@ +commit adde2bff0757e89175ede493f03b86953d0d9352 +Author: Doug Evans +Date: Thu Feb 20 09:13:53 2014 -0800 + + Fix PR symtab/16581 + + * dwarf2read.c (struct die_info): New member in_process. + (reset_die_in_process): New function. + (process_die): Set it at the start, reset when returning. + (inherit_abstract_dies): Only call process_die if origin_child_die + not already being processed. + + testsuite/ + * gdb.dwarf2/dw2-icycle.S: New file. + * gdb.dwarf2/dw2-icycle.c: New file. + * gdb.dwarf2/dw2-icycle.exp: New file. + +### a/gdb/ChangeLog +### b/gdb/ChangeLog +## -1,3 +1,14 @@ ++2014-02-20 lin zuojian ++ Joel Brobecker ++ Doug Evans ++ ++ PR symtab/16581 ++ * dwarf2read.c (struct die_info): New member in_process. ++ (reset_die_in_process): New function. ++ (process_die): Set it at the start, reset when returning. ++ (inherit_abstract_dies): Only call process_die if origin_child_die ++ not already being processed. ++ + 2014-02-20 Joel Brobecker + + * windows-nat.c (handle_unload_dll): Add function documentation. +--- a/gdb/dwarf2read.c ++++ b/gdb/dwarf2read.c +@@ -1225,6 +1225,9 @@ struct die_info + type derived from this DIE. */ + unsigned char building_fullname : 1; + ++ /* True if this die is in process. PR 16581. */ ++ unsigned char in_process : 1; ++ + /* Abbrev number */ + unsigned int abbrev; + +@@ -8008,11 +8011,28 @@ process_imported_unit_die (struct die_info *die, struct dwarf2_cu *cu) + } + } + ++/* Reset the in_process bit of a die. */ ++ ++static void ++reset_die_in_process (void *arg) ++{ ++ struct die_info *die = arg; ++ die->in_process = 0; ++} ++ + /* Process a die and its children. */ + + static void + process_die (struct die_info *die, struct dwarf2_cu *cu) + { ++ struct cleanup *in_process; ++ ++ /* We should only be processing those not already in process. */ ++ gdb_assert (!die->in_process); ++ ++ die->in_process = 1; ++ in_process = make_cleanup (reset_die_in_process,die); ++ + switch (die->tag) + { + case DW_TAG_padding: +@@ -7278,6 +7298,8 @@ process_die (struct die_info *die, struc + new_symbol (die, NULL, cu); + break; + } ++ ++ do_cleanups (in_process); + } + + /* A helper function for dwarf2_compute_name which determines whether DIE +@@ -10967,8 +10989,12 @@ inherit_abstract_dies (struct die_info *die, struct dwarf2_cu *cu) + if (offsetp >= offsets_end + || offsetp->sect_off > origin_child_die->offset.sect_off) + { +- /* Found that ORIGIN_CHILD_DIE is really not referenced. */ +- process_die (origin_child_die, origin_cu); ++ /* Found that ORIGIN_CHILD_DIE is really not referenced. ++ Check whether we're already processing ORIGIN_CHILD_DIE. ++ This can happen with mutually referenced abstract_origins. ++ PR 16581. */ ++ if (!origin_child_die->in_process) ++ process_die (origin_child_die, origin_cu); + } + origin_child_die = sibling_die (origin_child_die); + } +### a/gdb/testsuite/ChangeLog +### b/gdb/testsuite/ChangeLog +## -1,3 +1,12 @@ ++2014-02-20 lin zuojian ++ Joel Brobecker ++ Doug Evans ++ ++ PR symtab/16581 ++ * gdb.dwarf2/dw2-icycle.S: New file. ++ * gdb.dwarf2/dw2-icycle.c: New file. ++ * gdb.dwarf2/dw2-icycle.exp: New file. ++ + 2014-02-19 Siva Chandra Reddy + + * gdb.python/py-value-cc.cc: Improve test case to enable testing +--- /dev/null ++++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S +@@ -0,0 +1,258 @@ ++/* This testcase is part of GDB, the GNU debugger. ++ ++ Copyright 2014 Free Software Foundation, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 3 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program. If not, see . */ ++ ++ .text ++ ++.Ltext0: ++ .type p__top__middle__inside.3062, @function ++p__top__middle__inside.3062: ++.LFB4: ++ .file 1 "p.adb" ++ .4byte 0 ++.LBE6: ++ ++ .globl p__top ++ .type p__top, @function ++p__top: ++.LFB2: ++ .4byte 0 ++.LFE2: ++.Letext0: ++ ++ .section .debug_info,"",@progbits ++.Ldebug_info0: ++ .4byte .Ledebug_info0 - .Lsdebug_info0 /* Length of CU Info */ ++.Lsdebug_info0: ++ .2byte 0x4 /* DWARF version number */ ++ .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */ ++ .byte 0x4 /* Pointer Size (in bytes) */ ++ .uleb128 0x1 /* (DIE (0xb) DW_TAG_compile_unit) */ ++ .ascii "GNU Ada 4.9.0 20140126\0" /* DW_AT_producer */ ++ .byte 0xd /* DW_AT_language */ ++ .ascii "p.adb\0" /* DW_AT_name */ ++ .ascii "/tmp\0" /* DW_AT_comp_dir */ ++ .4byte .Ltext0 /* DW_AT_low_pc */ ++ .4byte .Letext0-.Ltext0 /* DW_AT_high_pc */ ++.S0x142: ++ .uleb128 0x8 /* (DIE (0x142) DW_TAG_base_type) */ ++ .byte 0x4 /* DW_AT_byte_size */ ++ .byte 0x5 /* DW_AT_encoding */ ++ .ascii "integer\0" /* DW_AT_name */ ++ ++ .uleb128 0x13 /* (DIE (0x1b4) DW_TAG_subprogram) */ ++ /* DW_AT_external */ ++ .ascii "p__top\0" /* DW_AT_name */ ++ .byte 0x1 /* DW_AT_decl_file (p.adb) */ ++ .byte 0x3 /* DW_AT_decl_line */ ++ .4byte .LFB2 /* DW_AT_low_pc */ ++ .4byte .LFE2-.LFB2 /* DW_AT_high_pc */ ++ .uleb128 0x1 /* DW_AT_frame_base */ ++ .byte 0x9c /* DW_OP_call_frame_cfa */ ++ /* DW_AT_GNU_all_call_sites */ ++ .4byte .S0x4fc - .Ldebug_info0 /* DW_AT_sibling */ ++.S0x1e0: ++ .uleb128 0x15 /* (DIE (0x1e0) DW_TAG_subprogram) */ ++ .ascii "p__top__middle\0" /* DW_AT_name */ ++ .byte 0x1 /* DW_AT_decl_file (p.adb) */ ++ .byte 0x4 /* DW_AT_decl_line */ ++ .byte 0x1 /* DW_AT_inline */ ++ .4byte .S0x374 - .Ldebug_info0 /* DW_AT_sibling */ ++.S0x202: ++ .uleb128 0x15 /* (DIE (0x202) DW_TAG_subprogram) */ ++ .ascii "p__top__middle__inside\0" /* DW_AT_name */ ++ .byte 0x1 /* DW_AT_decl_file (p.adb) */ ++ .byte 0x5 /* DW_AT_decl_line */ ++ .byte 0x1 /* DW_AT_inline */ ++ .4byte .S0x225 - .Ldebug_info0 /* DW_AT_sibling */ ++ .byte 0 /* end of children of DIE 0x202 */ ++.S0x225: ++ .uleb128 0x18 /* (DIE (0x225) DW_TAG_subprogram) */ ++ .4byte .S0x202 - .Ldebug_info0 /* DW_AT_abstract_origin */ ++ .4byte .LFB4 /* DW_AT_low_pc */ ++ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ ++ .uleb128 0x1 /* DW_AT_frame_base */ ++ .byte 0x9c /* DW_OP_call_frame_cfa */ ++ .uleb128 0x1 /* DW_AT_static_link */ ++ .byte 0x56 /* DW_OP_reg6 */ ++ /* DW_AT_GNU_all_call_sites */ ++ .uleb128 0x1a /* (DIE (0x247) DW_TAG_inlined_subroutine) */ ++ .4byte .S0x1e0 - .Ldebug_info0 /* DW_AT_abstract_origin */ ++ .4byte .LFB4 /* DW_AT_low_pc */ ++ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ ++ .byte 0x1 /* DW_AT_call_file (p.adb) */ ++ .byte 0x14 /* DW_AT_call_line */ ++ .4byte .S0x374 - .Ldebug_info0 /* DW_AT_sibling */ ++ .byte 0 /* end of children of DIE 0x247 */ ++ .byte 0 /* end of children of DIE 0x225 */ ++ .byte 0 /* end of children of DIE 0x1e0 */ ++.S0x374: ++ .uleb128 0x23 /* (DIE (0x382) DW_TAG_inlined_subroutine) */ ++ .4byte .S0x1e0 - .Ldebug_info0 /* DW_AT_abstract_origin */ ++ .4byte .LFB4 /* DW_AT_low_pc */ ++ .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ ++ .byte 0x1 /* DW_AT_call_file (p.adb) */ ++ .byte 0x1d /* DW_AT_call_line */ ++ .byte 0 /* end of children of DIE 0x382 */ ++ .byte 0 /* end of children of DIE 0x1b4 */ ++.S0x4fc: ++ .uleb128 0x28 /* (DIE (0x52e) DW_TAG_subprogram) */ ++ /* DW_AT_external */ ++ .ascii "__gnat_rcheck_PE_Explicit_Raise\0" /* DW_AT_name */ ++ /* DW_AT_artificial */ ++ /* DW_AT_declaration */ ++ .byte 0 /* end of children of DIE 0x52e */ ++ .byte 0 /* end of children of DIE 0xb */ ++.Ledebug_info0: ++ ++ .section .debug_abbrev,"",@progbits ++.Ldebug_abbrev0: ++ .uleb128 0x1 /* (abbrev code) */ ++ .uleb128 0x11 /* (TAG: DW_TAG_compile_unit) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x25 /* (DW_AT_producer) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x13 /* (DW_AT_language) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x3 /* (DW_AT_name) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x1b /* (DW_AT_comp_dir) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x11 /* (DW_AT_low_pc) */ ++ .uleb128 0x1 /* (DW_FORM_addr) */ ++ .uleb128 0x12 /* (DW_AT_high_pc) */ ++ .uleb128 0x6 /* (DW_FORM_data4) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x8 /* (abbrev code) */ ++ .uleb128 0x24 /* (TAG: DW_TAG_base_type) */ ++ .byte 0 /* DW_children_no */ ++ .uleb128 0xb /* (DW_AT_byte_size) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x3e /* (DW_AT_encoding) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x3 /* (DW_AT_name) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x13 /* (abbrev code) */ ++ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x3f /* (DW_AT_external) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .uleb128 0x3 /* (DW_AT_name) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x3a /* (DW_AT_decl_file) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x3b /* (DW_AT_decl_line) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x11 /* (DW_AT_low_pc) */ ++ .uleb128 0x1 /* (DW_FORM_addr) */ ++ .uleb128 0x12 /* (DW_AT_high_pc) */ ++ .uleb128 0x6 /* (DW_FORM_data4) */ ++ .uleb128 0x40 /* (DW_AT_frame_base) */ ++ .uleb128 0x18 /* (DW_FORM_exprloc) */ ++ .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .uleb128 0x1 /* (DW_AT_sibling) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x15 /* (abbrev code) */ ++ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x3 /* (DW_AT_name) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x3a /* (DW_AT_decl_file) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x3b /* (DW_AT_decl_line) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x20 /* (DW_AT_inline) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x1 /* (DW_AT_sibling) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x18 /* (abbrev code) */ ++ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x31 /* (DW_AT_abstract_origin) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .uleb128 0x11 /* (DW_AT_low_pc) */ ++ .uleb128 0x1 /* (DW_FORM_addr) */ ++ .uleb128 0x12 /* (DW_AT_high_pc) */ ++ .uleb128 0x6 /* (DW_FORM_data4) */ ++ .uleb128 0x40 /* (DW_AT_frame_base) */ ++ .uleb128 0x18 /* (DW_FORM_exprloc) */ ++ .uleb128 0x48 /* (DW_AT_static_link) */ ++ .uleb128 0x18 /* (DW_FORM_exprloc) */ ++ .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x1a /* (abbrev code) */ ++ .uleb128 0x1d /* (TAG: DW_TAG_inlined_subroutine) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x31 /* (DW_AT_abstract_origin) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .uleb128 0x11 /* (DW_AT_low_pc) */ ++ .uleb128 0x1 /* (DW_FORM_addr) */ ++ .uleb128 0x12 /* (DW_AT_high_pc) */ ++ .uleb128 0x6 /* (DW_FORM_data4) */ ++ .uleb128 0x58 /* (DW_AT_call_file) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x59 /* (DW_AT_call_line) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x1 /* (DW_AT_sibling) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x23 /* (abbrev code) */ ++ .uleb128 0x1d /* (TAG: DW_TAG_inlined_subroutine) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x31 /* (DW_AT_abstract_origin) */ ++ .uleb128 0x13 /* (DW_FORM_ref4) */ ++ .uleb128 0x11 /* (DW_AT_low_pc) */ ++ .uleb128 0x1 /* (DW_FORM_addr) */ ++ .uleb128 0x12 /* (DW_AT_high_pc) */ ++ .uleb128 0x6 /* (DW_FORM_data4) */ ++ .uleb128 0x58 /* (DW_AT_call_file) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .uleb128 0x59 /* (DW_AT_call_line) */ ++ .uleb128 0xb /* (DW_FORM_data1) */ ++ .byte 0 ++ .byte 0 ++ .uleb128 0x28 /* (abbrev code) */ ++ .uleb128 0x2e /* (TAG: DW_TAG_subprogram) */ ++ .byte 0x1 /* DW_children_yes */ ++ .uleb128 0x3f /* (DW_AT_external) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .uleb128 0x3 /* (DW_AT_name) */ ++ .uleb128 0x8 /* (DW_FORM_string) */ ++ .uleb128 0x34 /* (DW_AT_artificial) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .uleb128 0x3c /* (DW_AT_declaration) */ ++ .uleb128 0x19 /* (DW_FORM_flag_present) */ ++ .byte 0 ++ .byte 0 ++ .byte 0 ++ .byte 0 ++ .byte 0 ++ ++ .section .debug_line ++.Lline1_begin: ++ .byte 0 ++ +--- /dev/null ++++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.c +@@ -0,0 +1,24 @@ ++/* This testcase is part of GDB, the GNU debugger. ++ ++ Copyright 2004-2014 Free Software Foundation, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 3 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program. If not, see . */ ++ ++/* Dummy main function. */ ++ ++int ++main() ++{ ++ return 0; ++} +--- /dev/null ++++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.exp +@@ -0,0 +1,46 @@ ++# Copyright 2014 Free Software Foundation, Inc. ++ ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 3 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++# This test exercises PR 16581. ++ ++load_lib dwarf.exp ++ ++# This test can only be run on targets which support DWARF-2 and use gas. ++if {![dwarf2_support]} { ++ return 0 ++} ++ ++standard_testfile .S .c ++ ++if { [prepare_for_testing ${testfile}.exp ${testfile} \ ++ [list $srcfile $srcfile2] {nodebug}] } { ++ return -1 ++} ++ ++# We are trying to verify that the partial symtab to symtab expansion ++# for the debugging info hand-coded in our assembly file does not cause ++# the debugger to crash (infinite recursion). To facilitate the test, ++# start the debugger with -readnow. This force expansion as soon as ++# the objfile is loaded. ++ ++set saved_gdbflags $GDBFLAGS ++set GDBFLAGS "$GDBFLAGS -readnow" ++clean_restart ${testfile} ++set GDBFLAGS $saved_gdbflags ++ ++# And just to be sure that the debugger did not crash after having ++# expanded our symbols, do a life-check. ++ ++gdb_test "echo life check\\n" "life check" diff --git a/SOURCES/gdb-gnat-dwarf-crash-2of3.patch b/SOURCES/gdb-gnat-dwarf-crash-2of3.patch new file mode 100644 index 0000000..32f0259 --- /dev/null +++ b/SOURCES/gdb-gnat-dwarf-crash-2of3.patch @@ -0,0 +1,125 @@ +http://sourceware.org/ml/gdb-patches/2014-02/msg00729.html +Subject: [patch] [testsuite] Fix dw2-icycle.exp -fsanitize=address GDB crash + + +--WIyZ46R2i8wDzkSu +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline + +Hi Doug, + +in fact obvious, I will check it in. + +binutils readelf -wi: + <4>: Abbrev Number: 26 (DW_TAG_inlined_subroutine) + DW_AT_abstract_origin: <0x5a> + DW_AT_low_pc : 0x400590 + DW_AT_high_pc : 0x4 + DW_AT_call_file : 1 + DW_AT_call_line : 20 + DW_AT_sibling : <0xb8> + <2>: Abbrev Number: 35 (DW_TAG_inlined_subroutine) + DW_AT_abstract_origin: <0x5a> + DW_AT_low_pc : 0x400590 + DW_AT_high_pc : 0x4 + DW_AT_call_file : 1 + DW_AT_call_line : 29 + + DW_AT_sibling points to the next DIE - but that DIE is 2 levels +upwards - definitely not a sibling. This confuses GDB up to a crash: + +==32143== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6024000198ac at pc 0xb4d104 bp 0x7fff63e96e70 sp 0x7fff63e96e60 +READ of size 1 at 0x6024000198ac thread T0 + #0 0xb4d103 in read_unsigned_leb128 (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb4d103) + #1 0xb15f3c in peek_die_abbrev (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb15f3c) + #2 0xb46185 in load_partial_dies (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb46185) + #3 0xb103fb in process_psymtab_comp_unit_reader (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb103fb) + #4 0xb0d2a9 in init_cutu_and_read_dies (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb0d2a9) + #5 0xb1115f in process_psymtab_comp_unit (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb1115f) + #6 0xb1235f in dwarf2_build_psymtabs_hard (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb1235f) + #7 0xb05536 in dwarf2_build_psymtabs (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0xb05536) + #8 0x86d5a5 in read_psyms (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0x86d5a5) + #9 0x9b1c37 in require_partial_symbols (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0x9b1c37) + #10 0x9bf2d0 in read_symbols (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0x9bf2d0) + #11 0x9c014c in syms_from_objfile_1 (/home/jkratoch/redhat/gdb-clean/gdb/gdb+0x9c014c) + +I have added === Delete all DW_AT_sibling ===: + https://sourceware.org/gdb/wiki/GDBTestcaseCookbook?action=diff&rev2=31&rev1=30 + + +Jan + +--WIyZ46R2i8wDzkSu +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline; filename="sibling.patch" + +gdb/testsuite/ +2014-02-24 Jan Kratochvil + + Fix dw2-icycle.exp -fsanitize=address GDB crash. + * gdb.dwarf2/dw2-icycle.S: Remove all DW_AT_sibling. + +diff --git a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S +index 1f84e4a..938ff20 100644 +--- a/gdb/testsuite/gdb.dwarf2/dw2-icycle.S ++++ b/gdb/testsuite/gdb.dwarf2/dw2-icycle.S +@@ -63,21 +63,18 @@ p__top: + .uleb128 0x1 /* DW_AT_frame_base */ + .byte 0x9c /* DW_OP_call_frame_cfa */ + /* DW_AT_GNU_all_call_sites */ +- .4byte .S0x4fc - .Ldebug_info0 /* DW_AT_sibling */ + .S0x1e0: + .uleb128 0x15 /* (DIE (0x1e0) DW_TAG_subprogram) */ + .ascii "p__top__middle\0" /* DW_AT_name */ + .byte 0x1 /* DW_AT_decl_file (p.adb) */ + .byte 0x4 /* DW_AT_decl_line */ + .byte 0x1 /* DW_AT_inline */ +- .4byte .S0x374 - .Ldebug_info0 /* DW_AT_sibling */ + .S0x202: + .uleb128 0x15 /* (DIE (0x202) DW_TAG_subprogram) */ + .ascii "p__top__middle__inside\0" /* DW_AT_name */ + .byte 0x1 /* DW_AT_decl_file (p.adb) */ + .byte 0x5 /* DW_AT_decl_line */ + .byte 0x1 /* DW_AT_inline */ +- .4byte .S0x225 - .Ldebug_info0 /* DW_AT_sibling */ + .byte 0 /* end of children of DIE 0x202 */ + .S0x225: + .uleb128 0x18 /* (DIE (0x225) DW_TAG_subprogram) */ +@@ -95,7 +92,6 @@ p__top: + .4byte .LBE6-.LFB4 /* DW_AT_high_pc */ + .byte 0x1 /* DW_AT_call_file (p.adb) */ + .byte 0x14 /* DW_AT_call_line */ +- .4byte .S0x374 - .Ldebug_info0 /* DW_AT_sibling */ + .byte 0 /* end of children of DIE 0x247 */ + .byte 0 /* end of children of DIE 0x225 */ + .byte 0 /* end of children of DIE 0x1e0 */ +@@ -167,8 +163,6 @@ p__top: + .uleb128 0x18 /* (DW_FORM_exprloc) */ + .uleb128 0x2117 /* (DW_AT_GNU_all_call_sites) */ + .uleb128 0x19 /* (DW_FORM_flag_present) */ +- .uleb128 0x1 /* (DW_AT_sibling) */ +- .uleb128 0x13 /* (DW_FORM_ref4) */ + .byte 0 + .byte 0 + .uleb128 0x15 /* (abbrev code) */ +@@ -182,8 +176,6 @@ p__top: + .uleb128 0xb /* (DW_FORM_data1) */ + .uleb128 0x20 /* (DW_AT_inline) */ + .uleb128 0xb /* (DW_FORM_data1) */ +- .uleb128 0x1 /* (DW_AT_sibling) */ +- .uleb128 0x13 /* (DW_FORM_ref4) */ + .byte 0 + .byte 0 + .uleb128 0x18 /* (abbrev code) */ +@@ -216,8 +208,6 @@ p__top: + .uleb128 0xb /* (DW_FORM_data1) */ + .uleb128 0x59 /* (DW_AT_call_line) */ + .uleb128 0xb /* (DW_FORM_data1) */ +- .uleb128 0x1 /* (DW_AT_sibling) */ +- .uleb128 0x13 /* (DW_FORM_ref4) */ + .byte 0 + .byte 0 + .uleb128 0x23 /* (abbrev code) */ + +--WIyZ46R2i8wDzkSu-- + diff --git a/SOURCES/gdb-gnat-dwarf-crash-3of3.patch b/SOURCES/gdb-gnat-dwarf-crash-3of3.patch new file mode 100644 index 0000000..3f57fd3 --- /dev/null +++ b/SOURCES/gdb-gnat-dwarf-crash-3of3.patch @@ -0,0 +1,58 @@ +http://sourceware.org/ml/gdb-patches/2014-02/msg00731.html +Subject: [patch] gdb_assert -> complaint for weird DWARF + + +--6TrnltStXW4iwmi0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline + +Hi, + +PR 16581: + GDB crash on inherit_abstract_dies infinite recursion + https://sourceware.org/bugzilla/show_bug.cgi?id=16581 + +fixed crash from an infinite recursion. But in rare cases the new code can +now gdb_assert() due to weird DWARF file. + +I do not yet fully understand why the DWARF is as it is but just GDB should +never crash due to invalid DWARF anyway. The "invalid" DWARF I see only in +Fedora GCC build, not in FSF GCC build, more info at: + https://bugzilla.redhat.com/show_bug.cgi?id=1069382 + http://people.redhat.com/jkratoch/gcc-debuginfo-4.8.2-7.fc20.x86_64-gnatbind.debug + + +Thanks, +Jan + +--6TrnltStXW4iwmi0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline; filename="complaint.patch" + +gdb/ +2014-02-24 Jan Kratochvil + + * dwarf2read.c (process_die): Change gdb_assert to complaint. + +diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c +index 3eaa0b1..71f5d34 100644 +--- a/gdb/dwarf2read.c ++++ b/gdb/dwarf2read.c +@@ -8029,7 +8029,13 @@ process_die (struct die_info *die, struct dwarf2_cu *cu) + struct cleanup *in_process; + + /* We should only be processing those not already in process. */ +- gdb_assert (!die->in_process); ++ if (die->in_process) ++ { ++ complaint (&symfile_complaints, ++ _("DIE at 0x%x attempted to be processed twice"), ++ die->offset.sect_off); ++ return; ++ } + + die->in_process = 1; + in_process = make_cleanup (reset_die_in_process,die); + +--6TrnltStXW4iwmi0-- + diff --git a/SOURCES/gdb-implicit-this.patch b/SOURCES/gdb-implicit-this.patch new file mode 100644 index 0000000..ded6dc7 --- /dev/null +++ b/SOURCES/gdb-implicit-this.patch @@ -0,0 +1,299 @@ +Index: gdb-7.6.1/gdb/c-exp.y +=================================================================== +--- gdb-7.6.1.orig/gdb/c-exp.y 2013-11-09 17:29:19.336729300 +0100 ++++ gdb-7.6.1/gdb/c-exp.y 2013-11-09 17:29:21.935727454 +0100 +@@ -2890,6 +2890,30 @@ classify_inner_name (const struct block + { + case LOC_BLOCK: + case LOC_LABEL: ++ { ++ struct field_of_this_result fot; ++ ++ /* We might have erroneously found a constructor where we wanted ++ a type name. The trick is ascertaining what the user wanted. ++ If cp_lookup_nested_symbol found a constructor, but it is for a ++ different type than CONTEXT, then this is really a type, not a ++ constructor. Look for the type and return that. */ ++ memset (&fot, 0, sizeof (fot)); ++ check_field (type, copy, &fot); ++ if (fot.fn_field != NULL ++ && TYPE_FN_FIELD_CONSTRUCTOR (fot.fn_field->fn_fields, 0) ++ && !types_equal (type, fot.type)) ++ { ++ struct symbol *sym; ++ ++ sym = lookup_symbol (copy, block, STRUCT_DOMAIN, NULL); ++ if (sym != NULL) ++ { ++ yylval.tsym.type = SYMBOL_TYPE (sym); ++ return TYPENAME; ++ } ++ } ++ } + return ERROR; + + case LOC_TYPEDEF: +Index: gdb-7.6.1/gdb/symtab.c +=================================================================== +--- gdb-7.6.1.orig/gdb/symtab.c 2013-11-09 17:29:19.338729298 +0100 ++++ gdb-7.6.1/gdb/symtab.c 2013-11-09 17:29:21.936727453 +0100 +@@ -1260,7 +1260,7 @@ lookup_language_this (const struct langu + return 1 if the component named NAME from the ultimate target + structure/union is defined, otherwise, return 0. */ + +-static int ++int + check_field (struct type *type, const char *name, + struct field_of_this_result *is_a_field_of_this) + { +Index: gdb-7.6.1/gdb/symtab.h +=================================================================== +--- gdb-7.6.1.orig/gdb/symtab.h 2013-11-09 17:29:19.339729298 +0100 ++++ gdb-7.6.1/gdb/symtab.h 2013-11-09 17:27:11.329820268 +0100 +@@ -1318,4 +1318,9 @@ void iterate_over_symbols (const struct + struct cleanup *demangle_for_lookup (const char *name, enum language lang, + const char **result_name); + ++/* See comment in symtab.c. */ ++ ++int check_field (struct type *type, const char *name, ++ struct field_of_this_result *is_a_field_of_this); ++ + #endif /* !defined(SYMTAB_H) */ +Index: gdb-7.6.1/gdb/valops.c +=================================================================== +--- gdb-7.6.1.orig/gdb/valops.c 2013-11-09 17:29:19.340729297 +0100 ++++ gdb-7.6.1/gdb/valops.c 2013-11-09 17:28:02.417784136 +0100 +@@ -3401,10 +3401,35 @@ value_struct_elt_for_reference (struct t + return value_from_longest + (lookup_memberptr_type (TYPE_FIELD_TYPE (t, i), domain), + offset + (TYPE_FIELD_BITPOS (t, i) >> 3)); +- else if (noside == EVAL_AVOID_SIDE_EFFECTS) ++ else if (noside != EVAL_NORMAL) + return allocate_value (TYPE_FIELD_TYPE (t, i)); + else +- error (_("Cannot reference non-static field \"%s\""), name); ++ { ++ /* Try to evaluate NAME as a qualified name with implicit ++ this pointer. In this case, attempt to return the ++ equivalent to `this->*(&TYPE::NAME)'. */ ++ v = value_of_this_silent (current_language); ++ if (v != NULL) ++ { ++ struct value *ptr; ++ long mem_offset; ++ struct type *type, *tmp; ++ ++ ptr = value_aggregate_elt (domain, name, NULL, 1, noside); ++ type = check_typedef (value_type (ptr)); ++ gdb_assert (type != NULL ++ && TYPE_CODE (type) == TYPE_CODE_MEMBERPTR); ++ tmp = lookup_pointer_type (TYPE_DOMAIN_TYPE (type)); ++ v = value_cast_pointers (tmp, v, 1); ++ mem_offset = value_as_long (ptr); ++ tmp = lookup_pointer_type (TYPE_TARGET_TYPE (type)); ++ result = value_from_pointer (tmp, ++ value_as_long (v) + mem_offset); ++ return value_ind (result); ++ } ++ ++ error (_("Cannot reference non-static field \"%s\""), name); ++ } + } + } + +Index: gdb-7.6.1/gdb/testsuite/gdb.cp/impl-this.cc +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ gdb-7.6.1/gdb/testsuite/gdb.cp/impl-this.cc 2013-11-09 17:29:21.938727452 +0100 +@@ -0,0 +1,96 @@ ++/* This testcase is part of GDB, the GNU debugger. ++ ++ Copyright 2013 Free Software Foundation, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 3 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program. If not, see . */ ++ ++#ifdef DEBUG ++#include ++#endif ++ ++class A ++{ ++public: ++ int i; ++ int z; ++ A () : i (1), z (10) {} ++}; ++ ++class B : public virtual A ++{ ++public: ++ int i; ++ B () : i (2) {} ++}; ++ ++class C : public virtual A ++{ ++public: ++ int i; ++ int c; ++ C () : i (3), c (30) {} ++}; ++ ++class D : public B, public C ++{ ++public: ++ int i; ++ int x; ++ D () : i (4), x (40) {} ++ ++#ifdef DEBUG ++#define SUM(X) \ ++ do \ ++ { \ ++ sum += (X); \ ++ printf ("" #X " = %d\n", (X)); \ ++ } \ ++ while (0) ++#else ++#define SUM(X) sum += (X) ++#endif ++ ++int ++f (void) ++ { ++ int sum = 0; ++ ++ SUM (i); ++ SUM (D::i); ++ SUM (D::B::i); ++ SUM (B::i); ++ SUM (D::C::i); ++ SUM (C::i); ++ SUM (D::B::A::i); ++ SUM (B::A::i); ++ SUM (A::i); ++ SUM (D::C::A::i); ++ SUM (C::A::i); ++ SUM (D::x); ++ SUM (x); ++ SUM (D::C::c); ++ SUM (C::c); ++ SUM (c); ++ ++ return sum; ++ } ++}; ++ ++int ++main (void) ++{ ++ D d; ++ ++ return d.f (); ++} +Index: gdb-7.6.1/gdb/testsuite/gdb.cp/impl-this.exp +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ gdb-7.6.1/gdb/testsuite/gdb.cp/impl-this.exp 2013-11-09 17:29:21.939727451 +0100 +@@ -0,0 +1,89 @@ ++# Copyright 2013 Free Software Foundation, Inc. ++ ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 3 of the License, or ++# (at your option) any later version. ++# ++# This program is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++# GNU General Public License for more details. ++# ++# You should have received a copy of the GNU General Public License ++# along with this program. If not, see . ++ ++# This file is part of the gdb testsuite ++ ++# Test expressions which assume an implicit "this" with a qualified ++# name. ++ ++if {[skip_cplus_tests]} { continue } ++ ++standard_testfile .cc ++ ++if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { ++ return -1 ++} ++ ++# First test expressions when there is no context. ++gdb_test "print i" "No symbol \"i\" in current context." ++gdb_test "print D::i" "Cannot reference non-static field \"i\"" ++gdb_test "print D::B::i" "Cannot reference non-static field \"i\"" ++gdb_test "print B::i" "Cannot reference non-static field \"i\"" ++gdb_test "print D::C::i" "Cannot reference non-static field \"i\"" ++gdb_test "print C::i" "Cannot reference non-static field \"i\"" ++gdb_test "print D::B::A::i" "Cannot reference non-static field \"i\"" ++gdb_test "print B::A::i" "Cannot reference non-static field \"i\"" ++gdb_test "print A::i" "Cannot reference non-static field \"i\"" ++gdb_test "print D::C::A::i" "Cannot reference non-static field \"i\"" ++gdb_test "print C::A::i" "Cannot reference non-static field \"i\"" ++gdb_test "print D::x" "Cannot reference non-static field \"x\"" ++gdb_test "print x" "No symbol \"x\" in current context." ++gdb_test "print D::C::c" "Cannot reference non-static field \"c\"" ++gdb_test "print C::c" "Cannot reference non-static field \"c\"" ++gdb_test "print c" "No symbol \"c\" in current context." ++ ++# Run to D::f. ++if {![runto_main]} { ++ perror "couldn't run to main" ++ continue ++} ++ ++gdb_breakpoint "D::f" ++gdb_continue_to_breakpoint "run to D::f" ++ ++# Now test valid expressions in the class hierarchy for D. ++gdb_test "print i" "= 4" ++gdb_test "print D::i" "= 4" ++gdb_test "print D::B::i" "= 2" ++gdb_test "print B::i" "= 2" ++gdb_test "print D::C::i" "= 3" ++gdb_test "print C::i" "= 3" ++gdb_test "print D::B::A::i" "= 1" ++gdb_test "print B::A::i" "= 1" ++gdb_test "print A::i" "= 1" ++gdb_test "print D::C::A::i" "= 1" ++gdb_test "print C::A::i" "= 1" ++gdb_test "print D::x" "= 40" ++gdb_test "print x" "= 40" ++gdb_test "print D::C::c" "= 30" ++gdb_test "print C::c" "= 30" ++gdb_test "print c" "= 30" ++ ++# Test some invalid expressions ++gdb_test "print D::B::c" "There is no field named c" ++gdb_test "print D::B::A::c" "There is no field named c" ++gdb_test "print D::C::A::c" "There is no field named c" ++gdb_test "print B::c" "There is no field named c" ++gdb_test "print B::A::c" "There is no field named c" ++gdb_test "print C::A::c" "There is no field named c" ++gdb_test "print D::B::x" "There is no field named x" ++gdb_test "print D::B::A::x" "There is no field named x" ++gdb_test "print B::x" "There is no field named x" ++gdb_test "print B::A::x" "There is no field named x" ++gdb_test "print D::C::x" "There is no field named x" ++gdb_test "print C::x" "There is no field named x" ++gdb_test "print D::C::A::x" "There is no field named x" ++gdb_test "print C::A::x" "There is no field named x" ++ diff --git a/SOURCES/gdb-upstream.patch b/SOURCES/gdb-upstream.patch index 848b198..49ea5d5 100644 --- a/SOURCES/gdb-upstream.patch +++ b/SOURCES/gdb-upstream.patch @@ -1327,3 +1327,129 @@ index 8e66425..bcfcce2 100644 set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); + + + +pre-req for: +[PATCH, AArch64] Fix bug in hardware watchpoint/breakpoint handling +commit c623a6ef72a8d7dbbb646345f75646710cb9bb68 +Author: Will Newton +Date: Mon Sep 16 14:22:19 2013 +0000 + + gdbserver, aarch64: Zero out regs in aarch64_linux_set_debug_regs. + + Apply the same fix that was applied to aarch64-linux-nat.c. + + 2013-09-16 Will Newton + + * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero + out regs. + +diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog +index 73191f4..1082e78 100644 +### a/gdb/gdbserver/ChangeLog +### b/gdb/gdbserver/ChangeLog +## -1,3 +1,8 @@ ++2013-09-16 Will Newton ++ ++ * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero ++ out regs. ++ + 2013-09-06 Pedro Alves + + * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h) +diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c +index e37f602..93246b3 100644 +--- a/gdb/gdbserver/linux-aarch64-low.c ++++ b/gdb/gdbserver/linux-aarch64-low.c +@@ -600,6 +600,7 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state, + const CORE_ADDR *addr; + const unsigned int *ctrl; + ++ memset (®s, 0, sizeof (regs)); + iov.iov_base = ®s; + iov.iov_len = sizeof (regs); + count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs; + + + +[PATCH, AArch64] Fix bug in hardware watchpoint/breakpoint handling +https://sourceware.org/ml/gdb-patches/2013-12/msg00707.html +commit f45c82da381e0ce5ce51b7fb24d0d28611d266b8 +Author: Yufeng Zhang +Date: Wed Dec 18 16:47:33 2013 +0000 + + gdb/ + + * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set + iov.iov_len with the real length in use. + + gdb/gdbserver/ + + * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set + iov.iov_len with the real length in use. + +diff --git a/gdb/ChangeLog b/gdb/ChangeLog +index 7d9308f..513c593 100644 +### a/gdb/ChangeLog +### b/gdb/ChangeLog +## -1,3 +1,8 @@ ++2013-12-18 Yufeng Zhang ++ ++ * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Set ++ iov.iov_len with the real length in use. ++ + 2013-12-18 Yao Qi + + * target.h (target_xfer_partial_ftype): New typedef. +diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c +index 256725b..7d76833 100644 +--- a/gdb/aarch64-linux-nat.c ++++ b/gdb/aarch64-linux-nat.c +@@ -314,10 +314,13 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state, + + memset (®s, 0, sizeof (regs)); + iov.iov_base = ®s; +- iov.iov_len = sizeof (regs); + count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs; + addr = watchpoint ? state->dr_addr_wp : state->dr_addr_bp; + ctrl = watchpoint ? state->dr_ctrl_wp : state->dr_ctrl_bp; ++ if (count == 0) ++ return; ++ iov.iov_len = (offsetof (struct user_hwdebug_state, dbg_regs[count - 1]) ++ + sizeof (regs.dbg_regs [count - 1])); + + for (i = 0; i < count; i++) + { +diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog +index c73840f..2847796 100644 +### a/gdb/gdbserver/ChangeLog +### b/gdb/gdbserver/ChangeLog +## -1,3 +1,8 @@ ++2013-12-18 Yufeng Zhang ++ ++ * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set ++ iov.iov_len with the real length in use. ++ + 2013-12-13 Joel Brobecker + + * Makefile.in (safe-ctype.o, lbasename.o): New rules. +diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c +index 93246b3..c2d271a 100644 +--- a/gdb/gdbserver/linux-aarch64-low.c ++++ b/gdb/gdbserver/linux-aarch64-low.c +@@ -602,10 +602,13 @@ aarch64_linux_set_debug_regs (const struct aarch64_debug_reg_state *state, + + memset (®s, 0, sizeof (regs)); + iov.iov_base = ®s; +- iov.iov_len = sizeof (regs); + count = watchpoint ? aarch64_num_wp_regs : aarch64_num_bp_regs; + addr = watchpoint ? state->dr_addr_wp : state->dr_addr_bp; + ctrl = watchpoint ? state->dr_ctrl_wp : state->dr_ctrl_bp; ++ if (count == 0) ++ return; ++ iov.iov_len = (offsetof (struct user_hwdebug_state, dbg_regs[count - 1]) ++ + sizeof (regs.dbg_regs [count - 1])); + + for (i = 0; i < count; i++) + { diff --git a/SPECS/gdb.spec b/SPECS/gdb.spec index e6f4920..7d9c2d8 100644 --- a/SPECS/gdb.spec +++ b/SPECS/gdb.spec @@ -37,7 +37,7 @@ Version: 7.6.1 # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 45%{?dist} +Release: 51%{?dist} License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain Group: Development/Debuggers @@ -592,6 +592,14 @@ Patch843: gdb-enable-count-crash.patch # RH BZ 1013453). Patch844: gdb-rhbz1013453-value-struct-elt-memory-leak.patch +# Fix explicit Class:: inside class scope (BZ 874817, Keith Seitz). +Patch845: gdb-implicit-this.patch + +# Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211). +Patch850: gdb-gnat-dwarf-crash-1of3.patch +Patch851: gdb-gnat-dwarf-crash-2of3.patch +Patch852: gdb-gnat-dwarf-crash-3of3.patch + %if 0%{!?rhel:1} || 0%{?rhel} > 6 # RL_STATE_FEDORA_GDB would not be found for: # Patch642: gdb-readline62-ask-more-rh.patch @@ -658,7 +666,10 @@ ExclusiveArch: noarch i386 x86_64 ppc ppc64 ia64 s390 s390x BuildRequires: sharutils dejagnu # gcc-objc++ is not covered by the GDB testsuite. -BuildRequires: gcc gcc-c++ gcc-gfortran gcc-java gcc-objc +BuildRequires: gcc gcc-c++ gcc-gfortran gcc-objc +%if 0%{!?rhel:1} || 0%{?rhel} < 7 +BuildRequires: gcc-java libgcj%{bits_local} libgcj%{bits_other} +%endif %if 0%{!?rhel:1} || 0%{?rhel} > 6 BuildRequires: gcc-go %endif @@ -689,7 +700,6 @@ BuildRequires: glibc-devel%{bits_local} glibc-devel%{bits_other} BuildRequires: libgcc%{bits_local} libgcc%{bits_other} # libstdc++-devel of matching bits is required only for g++ -static. BuildRequires: libstdc++%{bits_local} libstdc++%{bits_other} -BuildRequires: libgcj%{bits_local} libgcj%{bits_other} %if 0%{!?rhel:1} || 0%{?rhel} > 6 BuildRequires: libgo-devel%{bits_local} libgo-devel%{bits_other} %endif @@ -919,6 +929,10 @@ find -name "*.info*"|xargs rm -f %patch841 -p1 %patch843 -p1 %patch844 -p1 +%patch845 -p1 +%patch850 -p1 +%patch851 -p1 +%patch852 -p1 %patch836 -p1 %patch837 -p1 @@ -1066,6 +1080,7 @@ $(: It breaks RHEL-5 by %{_target_platform} being noarch-redhat-linux-gnu ) \ %ifarch noarch $(:) %else + --enable-targets=s390-linux-gnu,powerpc-linux-gnu \ %{_target_platform} %endif %endif @@ -1447,6 +1462,30 @@ fi %endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch" %changelog +* Mon Feb 24 2014 Jan Kratochvil - 7.6.1-51.el7 +- Merge from Fedora 19. + +* Mon Feb 24 2014 Jan Kratochvil - 7.6.1-50.fc19 +- Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211). + +* Fri Jan 24 2014 Daniel Mach - 7.6.1-50.el7 +- Mass rebuild 2014-01-24 + +* Thu Jan 23 2014 Jan Kratochvil - 7.6.1-49.fc19 +- [s390*,ppc*] Enable secondary targets s390* and ppc* (BZ 1056259). + +* Fri Dec 27 2013 Daniel Mach - 7.6.1-46.el7 +- Mass rebuild 2013-12-27 + +* Wed Dec 25 2013 Jan Kratochvil - 7.6.1-48.fc19 +- [aarch64] Backport two breakpoint/watchpoint fixes. + +* Mon Nov 18 2013 Jan Kratochvil - 7.6.1-47.fc19 +- [rhel7] [--with testsuite] Remove gcc-java&co. BuildRequires. + +* Sat Nov 9 2013 Jan Kratochvil - 7.6.1-46.fc19 +- Fix explicit Class:: inside class scope (BZ 874817, Keith Seitz). + * Tue Nov 5 2013 Jan Kratochvil - 7.6.1-45.fc19 - [aarch64] Backport two fixes (BZ 1026484).