diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 22:24:54 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 3574a7b3f1251bfc7d1dd429ae33da07897f5b4b (patch) | |
tree | cae13e26aa9e6fe2460f57a9bfe890a43caba135 /gdb/symtab.h | |
parent | cdc22ffbf5c76b9fb907bdec700c19d350abb226 (diff) | |
download | gdb-3574a7b3f1251bfc7d1dd429ae33da07897f5b4b.zip gdb-3574a7b3f1251bfc7d1dd429ae33da07897f5b4b.tar.gz gdb-3574a7b3f1251bfc7d1dd429ae33da07897f5b4b.tar.bz2 |
gdb: remove SYMTAB_DIRNAME macro
Remove the macro, replace with an equivalent method.
Change-Id: I46ec36b91bb734331138eb9cd086b2db01635aed
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 5ef4bda..88dab00 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1409,6 +1409,8 @@ struct symtab program_space *pspace () const; + const char *dirname () const; + /* Unordered chain of all filetabs in the compunit, with the exception that the "main" source file is the first entry in the list. */ @@ -1441,8 +1443,6 @@ struct symtab using symtab_range = next_range<symtab>; -#define SYMTAB_DIRNAME(symtab) ((symtab)->compunit ()->dirname ()) - /* Compunit symtabs contain the actual "symbol table", aka blockvector, as well as the list of all source files (what gdb has historically associated with the term "symtab"). @@ -1696,6 +1696,12 @@ symtab::objfile () const return this->compunit ()->objfile (); } +inline const char * +symtab::dirname () const +{ + return this->compunit ()->dirname (); +} + /* Return the language of CUST. */ extern enum language compunit_language (const struct compunit_symtab *cust); |