From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13651 invoked by alias); 10 Oct 2012 17:57:11 -0000 Received: (qmail 13632 invoked by uid 48); 10 Oct 2012 17:57:10 -0000 From: "eager at eagercon dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14696] New: 'info var" incorrect Date: Wed, 10 Oct 2012 17:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: eager at eagercon dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-q4/txt/msg00051.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14696 Bug #: 14696 Summary: 'info var" incorrect Product: gdb Version: HEAD Status: NEW Severity: minor Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: eager@eagercon.com Classification: Unclassified The "info var" command displays a symbol incorrectly when it is a const array of pointers. test.c: int a, b; int * const c[5] = {&a, &a, &a, &a, &a}; int const d[5] = {1, 2, 3, 4, 5}; int main(void) { *c[0] = 4; // c[1] = &b; /* Illegal assignment. */ return 0; } $ gcc -g -o test test.c $gdb test . . . (gdb) info var c All variables matching regular expression "c": File test.c: int * constc[5]; (gdb) info var d All variables matching regular expression "d": File test.c: const int d[5]; -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.