aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-09-30 20:14:13 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-09-30 20:14:13 +0000
commitcdc7bb92c7632624063844c7bcaa4aca90e2a622 (patch)
tree87aa7c53d9d09d1cdf03c0778ba0a15cc6980861 /gdb/ada-lang.c
parentc587b3f982b6d2e31c94f54f36756ff38480afa7 (diff)
downloadgdb-cdc7bb92c7632624063844c7bcaa4aca90e2a622.zip
gdb-cdc7bb92c7632624063844c7bcaa4aca90e2a622.tar.gz
gdb-cdc7bb92c7632624063844c7bcaa4aca90e2a622.tar.bz2
* ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
the code accordingly.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 02a20b4..2b73bdb 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] = '.';