This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Objective-C language support.
- From: Michael Snyder <msnyder at redhat dot com>
- To: Adam Fedor <fedor at doc dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 08 Oct 2002 16:44:35 -0700
- Subject: Re: [PATCH] Objective-C language support.
- Organization: Red Hat, Inc.
- References: <3D889A97.90202@doc.com>
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, once the defs.h change is in, this can go in too (barring objections):
> * language.h (CAST_IS_CONVERSION): Add language_objc.
> Index: gdb/language.h
> ===================================================================
> RCS file: /cvs/src/src/gdb/language.h,v
> retrieving revision 1.11
> diff -u -p -r1.11 language.h
> --- gdb/language.h 1 Aug 2002 17:18:32 -0000 1.11
> +++ gdb/language.h 17 Sep 2002 19:30:36 -0000
> @@ -288,7 +288,8 @@ language_mode;
> /* "cast" really means conversion */
> /* FIXME -- should be a setting in language_defn */
> #define CAST_IS_CONVERSION (current_language->la_language == language_c || \
> - current_language->la_language == language_cplus)
> + current_language->la_language == language_cplus || \
> + current_language->la_language == language_objc)
>
> extern void language_info (int);
>