public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  users/jkratoch/indexcxx-nameswrite-namesread: .
Date: Mon, 22 May 2017 21:41:00 -0000	[thread overview]
Message-ID: <20170522214114.27458.qmail@sourceware.org> (raw)

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 <jan.kratochvil@redhat.com>
Date:   Mon May 22 23:40:57 2017 +0200

    .

commit c33162d9d898a902c28e89ce0ec9f0d855b584e8
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon May 22 23:20:01 2017 +0200

    .

commit 8e76921b533ca4e4f103654b2c379164761565cf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
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.


             reply	other threads:[~2017-05-22 21:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-22 21:41 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-05-24  8:46 jkratoch
2017-04-30 18:28 jkratoch
2017-04-29 22:28 jkratoch
2017-04-23 20:23 jkratoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170522214114.27458.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).