printcmd.c (address_info): Print 'self' for ObjC.
authorAdam Fedor <fedor@gnu.org>
Sat, 12 Oct 2002 03:06:01 +0000 (03:06 +0000)
committerAdam Fedor <fedor@gnu.org>
Sat, 12 Oct 2002 03:06:01 +0000 (03:06 +0000)
gdb/ChangeLog
gdb/printcmd.c

index 0f014135a3df219777275066fb5f84c840485396..cef3f18cc060df72e37d5b5d4daa0a03a635c55f 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-11  Adam Fedor  <fedor@gnu.org>
+
+       * printcmd.c (address_info): Print 'self' for ObjC.
+
 2002-10-11  Adam Fedor  <fedor@gnu.org>
 
        * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
index 8542b8a9a5b3464b4b538edbe4c4e30e89a27ec6..c5487a2b677bc791070f63f5b6db347c2821050e 100644 (file)
@@ -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;
        }