[PATCH] Objective-C language support.

Michael Snyder msnyder@redhat.com
Tue Oct 8 17:34:00 GMT 2002


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, 

Being just a comment, this change can go in immediately.

>         * source.c (print_source_lines): Update comments.

> Index: gdb/source.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/source.c,v
> retrieving revision 1.29
> diff -u -p -r1.29 source.c
> --- gdb/source.c        11 Jun 2002 20:36:51 -0000      1.29
> +++ gdb/source.c        17 Sep 2002 19:30:56 -0000
> @@ -1114,8 +1114,9 @@ print_source_lines (struct symtab *s, in
> 
>  /* Print a list of files and line numbers which a user may choose from
>     in order to list a function which was specified ambiguously (as with
> -   `list classname::overloadedfuncname', for example).  The vector in
> -   SALS provides the filenames and line numbers.  */
> +   `list classname::overloadedfuncname', or 'list objectiveCSelector:).
> +   The vector in SALS provides the filenames and line numbers.
> +   NOTE: some of the SALS may have no filename or line information! */
> 
>  static void
>  ambiguous_line_spec (struct symtabs_and_lines *sals)



More information about the Gdb-patches mailing list