From: brobecke Date: Tue, 30 Sep 2008 20:14:13 +0000 (+0000) Subject: * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5024fad1334ca0e9fe80925c17b4600b414ca354;p=pf3gnuchains%2Fpf3gnuchains3x.git * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update the code accordingly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eb6adddf8c..9b8d0f488b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2008-09-30 Joel Brobecker + * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update + the code accordingly. + +2008-09-30 Joel Brobecker + * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange treatment of expect_type. Return the correct type when dereferencing an integer. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 02a20b4daa..2b73bdbdab 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -57,10 +57,6 @@ #include "observer.h" #include "vec.h" -#ifndef ADA_RETAIN_DOTS -#define ADA_RETAIN_DOTS 0 -#endif - /* Define whether or not the C operator '/' truncates towards zero for differently signed operands (truncation direction is undefined in C). Copied from valarith.c. */ @@ -814,7 +810,7 @@ ada_encode (const char *decoded) k = 0; for (p = decoded; *p != '\0'; p += 1) { - if (!ADA_RETAIN_DOTS && *p == '.') + if (*p == '.') { encoding_buffer[k] = encoding_buffer[k + 1] = '_'; k += 2; @@ -1136,8 +1132,7 @@ ada_decode (const char *encoded) if (i < len0) goto Suppress; } - else if (!ADA_RETAIN_DOTS - && i < len0 - 2 && encoded[i] == '_' && encoded[i + 1] == '_') + else if (i < len0 - 2 && encoded[i] == '_' && encoded[i + 1] == '_') { /* Replace '__' by '.'. */ decoded[j] = '.';