From ab5f850eed6aba84050d075e8c8a2cb16a876b15 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 19 Nov 2021 22:09:25 -0500 Subject: gdb: remove COMPUNIT_PRODUCER macro, add getter/setter Add a getter and a setter for a compunit_symtab's producer. Remove the corresponding macro and adjust all callers. Change-Id: Ia1d6d8a0e247a08a21af23819d71e49b37d8931b --- gdb/compile/compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/compile') diff --git a/gdb/compile/compile.c b/gdb/compile/compile.c index 6794c93..7bd6ac8 100644 --- a/gdb/compile/compile.c +++ b/gdb/compile/compile.c @@ -561,11 +561,11 @@ get_selected_pc_producer_options (void) struct compunit_symtab *symtab = find_pc_compunit_symtab (pc); const char *cs; - if (symtab == NULL || symtab->producer == NULL - || !startswith (symtab->producer, "GNU ")) + if (symtab == NULL || symtab->producer () == NULL + || !startswith (symtab->producer (), "GNU ")) return NULL; - cs = symtab->producer; + cs = symtab->producer (); while (*cs != 0 && *cs != '-') cs = skip_spaces (skip_to_space (cs)); if (*cs != '-') -- cgit v1.1