From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26000 invoked by alias); 21 Mar 2009 22:54:09 -0000 Received: (qmail 25983 invoked by uid 48); 21 Mar 2009 22:54:08 -0000 Date: Sat, 21 Mar 2009 22:54:00 -0000 From: "hubicka at gcc dot gnu dot org" To: gdb-prs@sourceware.org Message-ID: <20090321225408.9977.hubicka@gcc.gnu.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/9977] New: DW_OP_piece used to specify underined part of location is ignored X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00367.txt.bz2 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.