From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 359 invoked by alias); 26 Apr 2010 16:24:04 -0000 Received: (qmail 32741 invoked by uid 22791); 26 Apr 2010 16:23:59 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Apr 2010 16:23:52 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3QGNRCL022368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 26 Apr 2010 12:23:28 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3QGNRMh032239; Mon, 26 Apr 2010 12:23:27 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o3QGNPQ7029110; Mon, 26 Apr 2010 12:23:26 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 519A7378213; Mon, 26 Apr 2010 10:23:25 -0600 (MDT) From: Tom Tromey To: Eli Zaretskii Cc: Joel Brobecker , gdb@sourceware.org Subject: Re: "set foo" References: <8339yk1skw.fsf@gnu.org> <20100424212118.GW13204@adacore.com> <83y6gbzm4e.fsf@gnu.org> <20100425144347.GA2744@adacore.com> <83sk6jzhzv.fsf@gnu.org> Reply-To: tromey@redhat.com Date: Mon, 26 Apr 2010 16:24:00 -0000 In-Reply-To: <83sk6jzhzv.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Apr 2010 18:09:24 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00143.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Eli> The specific use-case is that GDB does not recognize a certain struct; Eli> for example, "ptype struct foo_t" says "No struct type named foo_t". Eli> But if I type "set foo", where `foo' is a function whose code uses Eli> that struct, GDB magically recognizes the struct afterwards. FWIW, this sounds like a gdb bug to me. I looked at emacs/src/.gdbinit and it seems to me that the types and variables in question are global (in the sense of, not local to a function). So, they should be found without this trick. Tom