From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17766 invoked by alias); 12 May 2012 16:51:21 -0000 Received: (qmail 17747 invoked by uid 22791); 12 May 2012 16:51:19 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_XG X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 12 May 2012 16:51:06 +0000 From: "xgsa at yandex dot ru" To: gdb-prs@sourceware.org Subject: [Bug mi/14030] No children returned for unitialized pointer to class Date: Sat, 12 May 2012 16:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xgsa at yandex dot ru 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: In-Reply-To: References: 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-q2/txt/msg00115.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14030 --- Comment #3 from Anton 2012-05-12 16:50:59 UTC --- Unfortunately I cannot reproduce the problem with gdb HEAD and gcc-4.6.3. I see the children even if I set the breakpoint on pCUT declaration (certainly they have random values before initialization). I still have children after pCUT is initialized and even after "0" assignment. I am not sure, but it could be a gcc-specific behavior. Could you try a newer gcc? Otherwise we could try to reproduce the problem without relying on uninitialized variable (which could give us random effect). E.g. is the problem is reproducible in your environment if client() will looks like this: void client() { ClassUnderTest *pCUT = 0; // Initialize variable to avoid random effect pCUT = new ClassUnderTest; // breakpoint here -> 0 children, stepping to next line does not help delete pCUT; // breakpoint here -> OK pCUT = 0; } -- 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.