public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/9977] New: DW_OP_piece used to specify underined part of location is ignored
@ 2009-03-21 22:54 hubicka at gcc dot gnu dot org
  2009-03-22  1:03 ` [Bug gdb/9977] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2009-03-21 22:54 UTC (permalink / raw)
  To: gdb-prs

I am trying to add support to GCC to track SRAed structures and for structure
where some fields are optimized out I am producing following die:

        .uleb128 0x15   # (DIE (0x347) DW_TAG_variable)
        .ascii "a\0"    # DW_AT_name
        .byte   0x1     # DW_AT_decl_file (t.c)
        .byte   0x11    # DW_AT_decl_line
        .long   0x318   # DW_AT_type
        .byte   0x8     # DW_AT_location
        .byte   0x93    # DW_OP_piece
        .uleb128 0x4
        .byte   0x56    # DW_OP_reg6
        .byte   0x93    # DW_OP_piece
        .uleb128 0x4
        .byte   0x50    # DW_OP_reg0
        .byte   0x93    # DW_OP_piece
        .uleb128 0x4
        .byte   0x0     # end of children of DIE 0x2e7

I believe this is correct and identical to example in Example Location
Expression of dwarf3 standard.
But I get the following error:
(gdb) p a
Asked for position 0 of stack, stack only has 0 elements on it.

-- 
           Summary: DW_OP_piece used to specify underined part of location
                    is ignored
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: hubicka at gcc dot gnu dot org
                CC: gdb-prs at sourceware dot org
  GCC host triplet: x86_64-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=9977

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-11 15:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-21 22:54 [Bug gdb/9977] New: DW_OP_piece used to specify underined part of location is ignored hubicka at gcc dot gnu dot org
2009-03-22  1:03 ` [Bug gdb/9977] " tromey at redhat dot com
2010-05-16 17:29 ` tromey at redhat dot com
2010-05-21 21:44 ` tromey at redhat dot com
2010-06-11 15:37 ` tromey at redhat dot com

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).