diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:09:25 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:18 -0500 |
commit | ab5f850eed6aba84050d075e8c8a2cb16a876b15 (patch) | |
tree | 05057981c94964184fbeca51093765525eeb01b2 /gdb/symmisc.c | |
parent | 422f1ea279deea8530b679e4770e97f669797543 (diff) | |
download | binutils-ab5f850eed6aba84050d075e8c8a2cb16a876b15.zip binutils-ab5f850eed6aba84050d075e8c8a2cb16a876b15.tar.gz binutils-ab5f850eed6aba84050d075e8c8a2cb16a876b15.tar.bz2 |
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
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 4220fd7..b946fc8 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -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) |