gdb: remove SYMTAB_DIRNAME macro

Remove the macro, replace with an equivalent method.

Change-Id: I46ec36b91bb734331138eb9cd086b2db01635aed
This commit is contained in:
Simon Marchi
2021-11-20 22:24:54 -05:00
parent cdc22ffbf5
commit 3574a7b3f1
4 changed files with 19 additions and 13 deletions

View File

@@ -2046,8 +2046,8 @@ ambiguous_line_spec (gdb::array_view<const symtab_and_line> sals,
static int
cmp_symtabs (const symtab_and_line &sala, const symtab_and_line &salb)
{
const char *dira = SYMTAB_DIRNAME (sala.symtab);
const char *dirb = SYMTAB_DIRNAME (salb.symtab);
const char *dira = sala.symtab->dirname ();
const char *dirb = salb.symtab->dirname ();
int r;
if (dira == NULL)