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
|
@ -779,9 +779,8 @@ maintenance_info_symtabs (const char *regexp, int from_tty)
|
|||
printf_filtered (" debugformat %s\n",
|
||||
cust->debugformat ());
|
||||
printf_filtered (" producer %s\n",
|
||||
COMPUNIT_PRODUCER (cust) != NULL
|
||||
? COMPUNIT_PRODUCER (cust)
|
||||
: "(null)");
|
||||
(cust->producer () != nullptr
|
||||
? cust->producer () : "(null)"));
|
||||
printf_filtered (" dirname %s\n",
|
||||
COMPUNIT_DIRNAME (cust) != NULL
|
||||
? COMPUNIT_DIRNAME (cust)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue