aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 21:49:53 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:18 -0500
commit422f1ea279deea8530b679e4770e97f669797543 (patch)
tree24b4b77f180dbaef3ee816c2a17d60429478ae3e /gdb/symmisc.c
parent510860f2787f354d1c294958e4cc5e81256ece58 (diff)
downloadgdb-422f1ea279deea8530b679e4770e97f669797543.zip
gdb-422f1ea279deea8530b679e4770e97f669797543.tar.gz
gdb-422f1ea279deea8530b679e4770e97f669797543.tar.bz2
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
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 61e3eff..4220fd7 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -777,7 +777,7 @@ maintenance_info_symtabs (const char *regexp, int from_tty)
printf_filtered (" { ((struct compunit_symtab *) %s)\n",
host_address_to_string (cust));
printf_filtered (" debugformat %s\n",
- COMPUNIT_DEBUGFORMAT (cust));
+ cust->debugformat ());
printf_filtered (" producer %s\n",
COMPUNIT_PRODUCER (cust) != NULL
? COMPUNIT_PRODUCER (cust)