aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:15:30 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:18 -0500
commit0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9 (patch)
tree1e26fd55ddf025d4587b6f89178a07c3baff0e83 /gdb/symmisc.c
parentab5f850eed6aba84050d075e8c8a2cb16a876b15 (diff)
downloadgdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.zip
gdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.tar.gz
gdb-0d9acb4531cfe336b2b335fbaa1f2ef878a6e4d9.tar.bz2
gdb: remove COMPUNIT_DIRNAME macro, add getter/setter
Add a getter and a setter for a compunit_symtab's dirname. Remove the corresponding macro and adjust all callers. Change-Id: If2f39b295fd26822586485e04a8b8b5aa5cc9b2e
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index b946fc8..9c882a4 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -782,9 +782,8 @@ maintenance_info_symtabs (const char *regexp, int from_tty)
(cust->producer () != nullptr
? cust->producer () : "(null)"));
printf_filtered (" dirname %s\n",
- COMPUNIT_DIRNAME (cust) != NULL
- ? COMPUNIT_DIRNAME (cust)
- : "(null)");
+ (cust->dirname () != NULL
+ ? cust->dirname () : "(null)"));
printf_filtered (" blockvector"
" ((struct blockvector *) %s)\n",
host_address_to_string