From: Adam Fedor Date: Sat, 12 Oct 2002 03:06:01 +0000 (+0000) Subject: printcmd.c (address_info): Print 'self' for ObjC. X-Git-Tag: jimb-dwarf-compression-021023-branchpoint~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2b23ee9228eda96f94006d4caf05d0bcaf4de17;p=thirdparty%2Fbinutils-gdb.git printcmd.c (address_info): Print 'self' for ObjC. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0f014135a3d..cef3f18cc06 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-10-11 Adam Fedor + + * printcmd.c (address_info): Print 'self' for ObjC. + 2002-10-11 Adam Fedor * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 8542b8a9a5b..c5487a2b677 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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; }