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
This commit is contained in:
parent
422f1ea279
commit
ab5f850eed
10 changed files with 33 additions and 25 deletions
|
@ -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 != '-')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue