mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 11:33:45 +08:00
printcmd.c (address_info): Print 'self' for ObjC.
This commit is contained in:
parent
b01ab485c7
commit
e2b23ee922
@ -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>
|
2002-10-11 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
|
* expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
|
||||||
|
@ -1104,7 +1104,11 @@ address_info (char *exp, int from_tty)
|
|||||||
printf_filtered ("Symbol \"");
|
printf_filtered ("Symbol \"");
|
||||||
fprintf_symbol_filtered (gdb_stdout, exp,
|
fprintf_symbol_filtered (gdb_stdout, exp,
|
||||||
current_language->la_language, DMGL_ANSI);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user