From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27514 invoked by alias); 22 May 2017 21:41:15 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 27487 invoked by uid 9674); 22 May 2017 21:41:14 -0000 Date: Mon, 22 May 2017 21:41:00 -0000 Message-ID: <20170522214114.27458.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] users/jkratoch/indexcxx-nameswrite-namesread: . X-Git-Refname: refs/heads/users/jkratoch/indexcxx-nameswrite-namesread X-Git-Reftype: branch X-Git-Oldrev: 2af3f7cc3675de402387152f5d1737df9c266287 X-Git-Newrev: 3bd2320fbad278743efe491edb301caa5abd37e7 X-SW-Source: 2017-q2/txt/msg00027.txt.bz2 List-Id: The branch, users/jkratoch/indexcxx-nameswrite-namesread has been updated via 3bd2320fbad278743efe491edb301caa5abd37e7 (commit) via c33162d9d898a902c28e89ce0ec9f0d855b584e8 (commit) via 8e76921b533ca4e4f103654b2c379164761565cf (commit) from 2af3f7cc3675de402387152f5d1737df9c266287 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 3bd2320fbad278743efe491edb301caa5abd37e7 Author: Jan Kratochvil Date: Mon May 22 23:40:57 2017 +0200 . commit c33162d9d898a902c28e89ce0ec9f0d855b584e8 Author: Jan Kratochvil Date: Mon May 22 23:20:01 2017 +0200 . commit 8e76921b533ca4e4f103654b2c379164761565cf Author: Jan Kratochvil Date: Mon May 22 21:08:17 2017 +0200 . ----------------------------------------------------------------------- Summary of changes: gdb/psymtab.c | 3 +++ gdb/testsuite/gdb.base/maint.exp | 7 +++++-- gdb/testsuite/gdb.dlang/watch-loc.c | 19 +++++++++++++++++++ .../gdb.dwarf2/dw2-case-insensitive-debug.S | 17 +++++++++++++++++ 4 files changed, 44 insertions(+), 2 deletions(-) First 500 lines of diff: diff --git a/gdb/psymtab.c b/gdb/psymtab.c index bb482ee..1681929 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1988,6 +1988,9 @@ maintenance_print_psymbols (char *args, int from_tty) int print_for_objfile = 1; QUIT; + if (objfile->sf->sym_read_psymbols == NULL) + continue; + if (objfile_arg != NULL) print_for_objfile = compare_filenames_for_search (objfile_name (objfile), diff --git a/gdb/testsuite/gdb.base/maint.exp b/gdb/testsuite/gdb.base/maint.exp index 782a21c..8e79451 100644 --- a/gdb/testsuite/gdb.base/maint.exp +++ b/gdb/testsuite/gdb.base/maint.exp @@ -91,8 +91,11 @@ if ![runto_main] then { # If we're using .gdb_index there will be no psymtabs. set have_gdb_index 0 -gdb_test_multiple "maint info sections .gdb_index" "check for .gdb_index" { - -re ": .gdb_index.*$gdb_prompt $" { +gdb_test_multiple "maint info sections .gdb_index .debug_names" "check for .gdb_index" { + -re ": \\.gdb_index .*\r\n$gdb_prompt $" { + set have_gdb_index 1 + } + -re ": \\.debug_names .*\r\n$gdb_prompt $" { set have_gdb_index 1 } -re ".*$gdb_prompt $" { diff --git a/gdb/testsuite/gdb.dlang/watch-loc.c b/gdb/testsuite/gdb.dlang/watch-loc.c index 0ffc377..a1f3caa 100644 --- a/gdb/testsuite/gdb.dlang/watch-loc.c +++ b/gdb/testsuite/gdb.dlang/watch-loc.c @@ -34,3 +34,22 @@ main (void) return _Dmain (); } +// .gdb_index contained this map but .debug_names is generated by GDB +// while it depends on .debug_aranges generated by GCC. +asm ( +" .pushsection .debug_aranges,\"\",@progbits \n" +" .4byte .Laranges_end - .Laranges_start \n" // Length of Address Ranges Info +".Laranges_start: \n" +" .2byte 0x2 \n" // DWARF Version +" .4byte 0 \n" // .Ldebug_info0 - Offset of Compilation Unit Info +" .byte 4 \n" // Size of Address +" .byte 0 \n" // Size of Segment Descriptor +" .2byte 0 \n" // Pad to 16 byte boundary +" .2byte 0 \n" +" .4byte _Dmain \n" // Address +" .4byte 0x1000 \n" // Length +" .4byte 0 \n" +" .4byte 0 \n" +".Laranges_end: \n" +" .popsection \n" +); diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S index 3bbd725..5a968bd 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive-debug.S @@ -57,6 +57,23 @@ .byte 0 /* End of children of CU */ .Lcu1_end: + // .gdb_index contained this map but .debug_names is generated by GDB + // while it depends on .debug_aranges generated by GCC. + .section .debug_aranges,"",@progbits + .4byte .Laranges_end - .Laranges_start // Length of Address Ranges Info +.Laranges_start: + .2byte 0x2 // DWARF Version + .4byte 0 // .Ldebug_info0 - Offset of Compilation Unit Info + .byte PTRBITS / 8 // Size of Address + .byte 0 // Size of Segment Descriptor + .2byte 0 // Pad to 16 byte boundary + .2byte 0 + PTRBYTE cu_text_start // Address + PTRBYTE 0x1000 // cu_text_end - cu_text_start // Length + PTRBYTE 0 + PTRBYTE 0 +.Laranges_end: + /* Abbrev table */ .section .debug_abbrev .Labbrev1_begin: hooks/post-receive -- Repository for Project Archer.