diff options
author | Doug Evans <dje@google.com> | 2013-06-20 21:58:57 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-06-20 21:58:57 +0000 |
commit | 128c4f26098823e2f0253ca8d24d46fe14691877 (patch) | |
tree | 9d0e70754d9902741b8ee81ba31f950c415f037b /gdb/dwarf2read.c | |
parent | f114db4d2eba0fba283c82ec1bd9d882bc49ce9b (diff) | |
download | gdb-128c4f26098823e2f0253ca8d24d46fe14691877.tar.gz |
* dwarf2read.c (struct dwp_file): Fix comment.
(open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 555698a0800..32d33f02cc4 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -813,7 +813,7 @@ struct dwp_file /* Name of the file. */ const char *name; - /* The bfd, when the file is open. Otherwise this is NULL. */ + /* The bfd. */ bfd *dbfd; /* Section info for this file. */ @@ -9596,8 +9596,7 @@ open_and_init_dwp_file (void) return NULL; } dwp_file = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct dwp_file); - dwp_file->name = obstack_copy0 (&objfile->objfile_obstack, - dwp_name, strlen (dwp_name)); + dwp_file->name = bfd_get_filename (dbfd); dwp_file->dbfd = dbfd; do_cleanups (cleanups); |