public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/25953] [debug-names] Support multiple per-CU indices
Date: Fri, 08 May 2020 16:07:13 +0000	[thread overview]
Message-ID: <bug-25953-4717-9NNRd6m9sY@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-25953-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=25953

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
The section contains two per-CU indices:
...
$ llvm-dwarfdump --all a.out
  ...
.debug_names contents:
Name Index @ 0x0 {
  Header {
    Length: 0x6C
    Version: 5
    Padding: 0x0
    CU count: 1
    Local TU count: 0
    Foreign TU count: 0
    Bucket count: 2
    Name count: 2
    Abbreviations table size: 0xD
    Augmentation: 'LLVM0700'
  }
  Compilation Unit offsets [
    CU[0]: 0x000000c7
  ]
  Abbreviations [
    Abbreviation 0x2e {
      Tag: DW_TAG_subprogram
      DW_IDX_die_offset: DW_FORM_ref4
    }
    Abbreviation 0x24 {
      Tag: DW_TAG_base_type
      DW_IDX_die_offset: DW_FORM_ref4
    }
  ]
  Bucket 0 [
    Name 1 {
      Hash: 0xB888030
      String: 0x00000061 "int"
      Entry @ 0x5d {
        Abbrev: 0x24
        Tag: DW_TAG_base_type
        DW_IDX_die_offset: 0x00000032
      }
    }
    Name 2 {
      Hash: 0x7C9A7F6A
      String: 0x0000020c "main"
      Entry @ 0x66 {
        Abbrev: 0x2E
        Tag: DW_TAG_subprogram
        DW_IDX_die_offset: 0x00000023
      }
    }
  ]
  Bucket 1 [
    EMPTY
  ]
}
Name Index @ 0x70 {
  Header {
    Length: 0x4C
    Version: 5
    Padding: 0x0
    CU count: 1
    Local TU count: 0
    Foreign TU count: 0
    Bucket count: 1
    Name count: 1
    Abbreviations table size: 0x7
    Augmentation: 'LLVM0700'
  }
  Compilation Unit offsets [
    CU[0]: 0x000000fe
  ]
  Abbreviations [
    Abbreviation 0x2e {
      Tag: DW_TAG_subprogram
      DW_IDX_die_offset: DW_FORM_ref4
    }
  ]
  Bucket 0 [
    Name 1 {
      Hash: 0xB887389
      String: 0x00000217 "foo"
      Entry @ 0xb7 {
        Abbrev: 0x2E
        Tag: DW_TAG_subprogram
        DW_IDX_die_offset: 0x00000023
      }
    }
  ]
}
...

But gdb expects a single per-module index.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2020-05-08 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 16:04 [Bug symtab/25953] New: " vries at gcc dot gnu.org
2020-05-08 16:07 ` vries at gcc dot gnu.org [this message]
2023-12-10 15:35 ` [Bug symtab/25953] " tromey at sourceware dot org

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=bug-25953-4717-9NNRd6m9sY@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@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).