Re: [PATCH] Objective-C language support.

Michael Snyder
2002-10-08T23:45:55Z

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);
>