aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorAdam Fedor <fedor@gnu.org>2002-10-12 03:06:01 +0000
committerAdam Fedor <fedor@gnu.org>2002-10-12 03:06:01 +0000
commite2b23ee9228eda96f94006d4caf05d0bcaf4de17 (patch)
tree2cf6d1c49616529a215fd0202d0285e7d5e860d5 /gdb/printcmd.c
parentb01ab485c7bee5c75a49211ab3422dfbd6dce474 (diff)
downloadgdb-e2b23ee9228eda96f94006d4caf05d0bcaf4de17.zip
gdb-e2b23ee9228eda96f94006d4caf05d0bcaf4de17.tar.gz
gdb-e2b23ee9228eda96f94006d4caf05d0bcaf4de17.tar.bz2
printcmd.c (address_info): Print 'self' for ObjC.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 8542b8a..c5487a2 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;
}