From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24675 invoked by alias); 22 Feb 2002 19:07:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24570 invoked from network); 22 Feb 2002 19:07:29 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 22 Feb 2002 19:07:29 -0000 Received: by fw-cam.cambridge.arm.com; id TAA19866; Fri, 22 Feb 2002 19:07:28 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma019584; Fri, 22 Feb 02 19:06:49 GMT Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id TAA07921; Fri, 22 Feb 2002 19:06:48 GMT Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id TAA07621; Fri, 22 Feb 2002 19:06:48 GMT Message-Id: <200202221906.TAA07621@cam-mail2.cambridge.arm.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Daniel Jacobowitz cc: Richard.Earnshaw@arm.com, gdb-patches@sources.redhat.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: Infinite loop in make_cv_type In-reply-to: Your message of "Fri, 22 Feb 2002 18:45:29 GMT." <200202221845.SAA06227@cam-mail2.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 22 Feb 2002 11:07:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-02/txt/msg00628.txt.bz2 This gets even more bizarre. I set a some breakpoints, one on make_cv_type, and another on dbx_next_symbol_text. Now at the point of making the cv variant for the first time the previous call to dbx_next_symbol_text had returned $736 = 0x509b43 "__comp_ctor::811:_ZNSt14_STL_auto_lockC1ERSt15_STL_mutex_l ock;2A.;__base_dtor::813=#810,21,812,21;:_ZNSt14_STL_auto_lockD2Ev;2A.;\\" (top-gdb) But going up the stack from make_cv_type we find: (top-gdb) up #1 0x000dac20 in read_type (pp=0xefbfca04, objfile=0x297000) at /nfs/sun18/work/rearnsha/gnusrc/src/gdb/src/gdb/stabsread.c:2682 2682 type = make_cv_type (TYPE_CONST (type), 1, type, (top-gdb) p *pp $737 = 0x509c1d ",21;:_ZNSt14_STL_auto_lockaSERKS_;0A.;\\" But this is part of the text that is returned by the next call to dbx_next_symbol_text... (top-gdb) c Continuing. Breakpoint 12, dbx_next_symbol_text (objfile=0x297000) at /nfs/sun18/work/rearnsha/gnusrc/src/gdb/src/gdb/dbxread.c:999 999 } $738 = 0x509bc6 "__comp_dtor::813:_ZNSt14_STL_auto_lockD1Ev;2A.;operator=:: 814=#810,21,812,815=&816=k810,21;:_ZNSt14_STL_auto_lockaSERKS_;0A.;\\" Any suggestions as to how the stabs reader might be getting ahead of itself? Is there another function that might be returning the stabs string? I don't think dbx_next_symbol_text has ever returned this earlier... R.