[pushed] Remove PRINT_LITERAL_FORM

Message ID 20260323173510.2357648-1-tromey@adacore.com
State New
Headers
Series [pushed] Remove PRINT_LITERAL_FORM |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply

Commit Message

Tom Tromey March 23, 2026, 5:35 p.m. UTC
  The PRINT_LITERAL_FORM macro is unused.  This patch removes it.
---
 gdb/language.h | 11 -----------
 1 file changed, 11 deletions(-)


base-commit: d2892f64973a8e611893466a373799a62e62d571
  

Patch

diff --git a/gdb/language.h b/gdb/language.h
index 16ed3568e08..67e6ac438b6 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -767,17 +767,6 @@  typedef void lazily_set_language_ftype ();
 extern void lazily_set_language (lazily_set_language_ftype *fun);
 
 
-/* Test a character to decide whether it can be printed in literal form
-   or needs to be printed in another representation.  For example,
-   in C the literal form of the character with octal value 141 is 'a'
-   and the "other representation" is '\141'.  The "other representation"
-   is program language dependent.  */
-
-#define PRINT_LITERAL_FORM(c)		\
-  ((c) >= 0x20				\
-   && ((c) < 0x7F || (c) >= 0xA0)	\
-   && (!sevenbit_strings || (c) < 0x80))
-
 /* Error messages */
 
 extern void range_error (const char *, ...) ATTRIBUTE_PRINTF (1, 2);