From 422f1ea279deea8530b679e4770e97f669797543 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 19 Nov 2021 21:49:53 -0500 Subject: gdb: remove COMPUNIT_DEBUGFORMAT macro, add getter/setter Add a getter and a setter for a compunit_symtab's debugformat. Remove the corresponding macro and adjust all callers. Change-Id: I1667b02d5322346f8e23abd9f8a584afbcd75975 --- gdb/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/source.c') diff --git a/gdb/source.c b/gdb/source.c index 2160619..3f04746 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -727,7 +727,7 @@ info_source_command (const char *ignore, int from_tty) COMPUNIT_PRODUCER (cust) != NULL ? COMPUNIT_PRODUCER (cust) : _("unknown")); printf_filtered (_("Compiled with %s debugging format.\n"), - COMPUNIT_DEBUGFORMAT (cust)); + cust->debugformat ()); printf_filtered (_("%s preprocessor macro info.\n"), COMPUNIT_MACRO_TABLE (cust) != NULL ? "Includes" : "Does not include"); -- cgit v1.1