public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/50317] New: [4.7 Regression] missing DW_OP_GNU_implicit_pointer
@ 2011-09-07 10:57 jan.kratochvil at redhat dot com
  2011-09-07 14:13 ` [Bug debug/50317] " jakub at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-09-07 10:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50317

             Bug #: 50317
           Summary: [4.7 Regression] missing DW_OP_GNU_implicit_pointer
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jan.kratochvil@redhat.com
            Target: i686-unknown-linux-gnu


PASS: gcc (GCC) 4.6.2 20110907 (prerelease)
 <2><5e>: Abbrev Number: 5 (DW_TAG_variable)
    <5f>   DW_AT_name        : p        
    <67>   DW_AT_location    : 16 byte block: f2 44 0 0 0 0 93 4 f2 51 0 0 0 0
93 4     (DW_OP_GNU_implicit_pointer: <0x44> 0; DW_OP_piece: 4;
DW_OP_GNU_implicit_pointer: <0x51> 0; DW_OP_piece: 4)
(gdb) print *p[1]
$1 = 23

FAIL: gcc (GCC) 4.7.0 20110907 (experimental)
 <2><5b>: Abbrev Number: 5 (DW_TAG_variable)
    <5c>   DW_AT_name        : p        
    <64>   DW_AT_location    : 10 byte block: f2 45 0 0 0 0 93 4 93 4  
(DW_OP_GNU_implicit_pointer: <0x45> 0; DW_OP_piece: 4; DW_OP_piece: 4)
(gdb) print *p[1]
Cannot access memory at address 0x0

GNU gdb (GDB) 7.3.50.20110907-cvs
(gdb) break foo
(gdb) run
(gdb) print *p[1]

static __attribute__((noinline, noclone)) int foo (int i)
{
  int j = i;
  int *p[2] = { &i, &j };
  return *p[0] + *p[1];
}
int main (void)
{
  return foo (23);
}

That p[1] content definition is missing.

There are many incompletele debug info cases around, filing it because it is a
regression (visible on GDB testcase gdb.dwarf2/implptr.exp).


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

end of thread, other threads:[~2011-12-03 16:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-07 10:57 [Bug debug/50317] New: [4.7 Regression] missing DW_OP_GNU_implicit_pointer jan.kratochvil at redhat dot com
2011-09-07 14:13 ` [Bug debug/50317] " jakub at gcc dot gnu.org
2011-09-07 14:23 ` jakub at gcc dot gnu.org
2011-10-27 10:18 ` rguenth at gcc dot gnu.org
2011-10-27 13:58 ` jan.kratochvil at redhat dot com
2011-11-28 13:25 ` jakub at gcc dot gnu.org
2011-11-28 13:43 ` jakub at gcc dot gnu.org
2011-11-28 14:18 ` matz at gcc dot gnu.org
2011-11-28 14:22 ` jakub at gcc dot gnu.org
2011-11-28 14:48 ` jakub at gcc dot gnu.org
2011-11-28 15:18 ` matz at gcc dot gnu.org
2011-11-28 15:41 ` jakub at gcc dot gnu.org
2011-11-28 21:06 ` jakub at gcc dot gnu.org
2011-12-01 19:13 ` jakub at gcc dot gnu.org
2011-12-01 19:18 ` jakub at gcc dot gnu.org
2011-12-03 16:40 ` jakub at gcc dot gnu.org

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