From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28960 invoked by alias); 5 Oct 2010 23:35:47 -0000 Received: (qmail 28812 invoked by uid 22791); 5 Oct 2010 23:35:46 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-yx0-f169.google.com (HELO mail-yx0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Oct 2010 23:35:41 +0000 Received: by yxk8 with SMTP id 8so3359650yxk.0 for ; Tue, 05 Oct 2010 16:35:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.115.200 with SMTP id l8mr319114icq.144.1286321739610; Tue, 05 Oct 2010 16:35:39 -0700 (PDT) Received: by 10.231.205.129 with HTTP; Tue, 5 Oct 2010 16:35:39 -0700 (PDT) In-Reply-To: <4CABB53A.8000101@vmware.com> References: <4CABB53A.8000101@vmware.com> Date: Tue, 05 Oct 2010 23:35:00 -0000 Message-ID: Subject: Re: disable objective-c stuff when theres no objective-c cu. From: Matt Rice To: Michael Snyder Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00064.txt.bz2 On Tue, Oct 5, 2010 at 4:31 PM, Michael Snyder wrote: > Matt Rice wrote: >> >> this makes it so that a flag is set if either an objective-c >> compilation unit is found, >> or the user goes 'set language objective-c' in the case where debug >> symbols are absent. >> >> 2010-10-05 =A0Matt Rice =A0 >> >> =A0 =A0 =A0 =A0* defs.h: Add comment. >> =A0 =A0 =A0 =A0* dwarf2read.c (set_cu_language): Notice that a language = has been >> =A0 =A0 =A0 =A0seen. >> =A0 =A0 =A0 =A0* language.c (set_language): Ditto. >> =A0 =A0 =A0 =A0(mask_for_language, language_has_cu_loaded): New Function= s. >> =A0 =A0 =A0 =A0(set_language_has_cu_loaded): Ditto. >> =A0 =A0 =A0 =A0* language.h: Declare new functions. >> =A0 =A0 =A0 =A0* linespec.c (decode_line_1): Don't lookup objective-c me= thods >> =A0 =A0 =A0 =A0unless objective-c has been seen. > > Hi Matt, > > Do you have a =A0copyright assignment? Yeah, I do and I should have probably noted that this is a change of behaviour so its kind of an RFC, and I didn't think about stabs, so w/ this they probably require 'set language objective-c' 'set language auto' should restore the old behaviour waiting on the testsuite to run, but it looks like gdb.objc/nondebug.exp is going to require 'set language objective-c'.