aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-18 09:28:32 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-18 09:28:32 -0800
commitee6f8984bbdbf340816a7f2aebe736f100601b22 (patch)
treec72d2b7fa498e90ac7f679a9ba48e940f523dfa5 /gdb/symmisc.c
parenteb822aa6d0f2cdc1a3125da084b96c5bbe32cb86 (diff)
downloadgdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.zip
gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.tar.gz
gdb-ee6f8984bbdbf340816a7f2aebe736f100601b22.tar.bz2
SYMTAB_DIRNAME: New macro.
gdb/ChangeLog: * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member symtab.dirname updated to use it.
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 623bcb3..323ebd5 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -297,9 +297,9 @@ dump_symtab_1 (struct objfile *objfile, struct symtab *symtab,
fprintf_filtered (outfile, "\nSymtab for file %s\n",
symtab_to_filename_for_display (symtab));
- if (symtab->dirname)
+ if (SYMTAB_DIRNAME (symtab) != NULL)
fprintf_filtered (outfile, "Compilation directory is %s\n",
- symtab->dirname);
+ SYMTAB_DIRNAME (symtab));
fprintf_filtered (outfile, "Read from object file %s (",
objfile_name (objfile));
gdb_print_host_address (objfile, outfile);
@@ -753,7 +753,8 @@ maintenance_info_symtabs (char *regexp, int from_tty)
printf_filtered ("((struct symtab *) %s)\n",
host_address_to_string (symtab));
printf_filtered (" dirname %s\n",
- symtab->dirname ? symtab->dirname : "(null)");
+ SYMTAB_DIRNAME (symtab) != NULL
+ ? SYMTAB_DIRNAME (symtab) : "(null)");
printf_filtered (" fullname %s\n",
symtab->fullname ? symtab->fullname : "(null)");
printf_filtered (" "