From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4379 invoked by alias); 9 Oct 2002 00:07:55 -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 4370 invoked from network); 9 Oct 2002 00:07:54 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 9 Oct 2002 00:07:54 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g98NmDX19933 for ; Tue, 8 Oct 2002 19:48:13 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g9907ql01700; Tue, 8 Oct 2002 20:07:52 -0400 Received: from redhat.com (dhcp-172-16-25-149.sfbay.redhat.com [172.16.25.149]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g9907qN30106; Tue, 8 Oct 2002 17:07:52 -0700 Message-ID: <3DA37311.B376CF44@redhat.com> Date: Tue, 08 Oct 2002 17:07:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Adam Fedor CC: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Objective-C language support. References: <3D889A97.90202@doc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00196.txt.bz2 Adam Fedor wrote: > > This patch adds Objective-C language support to gdb based upon a patch > provided by Apple Computer Inc from their version of gdb. Note that the > patch only contains changes to existing files. New files (objc-lang.h, > objc-lang.c, objc-exp.y) and a gdb.objc testsuite directory are located at > > ftp://ftp.gnustep.org/pub/gnustep/contrib/gdb-objc-patch.tar.gz Adam, this is a pretty obvious change, please check it in as soon as the defs.h change goes in. > * printfcmd.c (address_info): Print 'self' for ObjC. > Index: gdb/printcmd.c > =================================================================== > RCS file: /cvs/src/src/gdb/printcmd.c,v > retrieving revision 1.41 > diff -u -p -r1.41 printcmd.c > --- gdb/printcmd.c 10 Sep 2002 02:04:38 -0000 1.41 > +++ gdb/printcmd.c 17 Sep 2002 19:30:55 -0000 > @@ -1104,7 +1104,11 @@ address_info (char *exp, int from_tty) > printf_filtered ("Symbol \""); > fprintf_symbol_filtered (gdb_stdout, exp, > current_language->la_language, DMGL_ANSI); > - printf_filtered ("\" is a field of the local class variable `this'\n"); > + printf_filtered ("\" is a field of the local class variable "); > + if (current_language->la_language == language_objc) > + printf_filtered ("'self'\n"); /* ObjC equivalent of "this" */ > + else > + printf_filtered ("'this'\n"); > return; > } >