mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 10:34:21 +08:00
* dwarf2read.c (struct dwp_file): Fix comment.
(open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2013-06-20 Doug Evans <dje@google.com>
|
2013-06-20 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (struct dwp_file): Fix comment.
|
||||||
|
(open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
|
||||||
|
|
||||||
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
|
* source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
|
||||||
better.
|
better.
|
||||||
|
|
||||||
|
@ -813,7 +813,7 @@ struct dwp_file
|
|||||||
/* Name of the file. */
|
/* Name of the file. */
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
/* The bfd, when the file is open. Otherwise this is NULL. */
|
/* The bfd. */
|
||||||
bfd *dbfd;
|
bfd *dbfd;
|
||||||
|
|
||||||
/* Section info for this file. */
|
/* Section info for this file. */
|
||||||
@ -9596,8 +9596,7 @@ open_and_init_dwp_file (void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
dwp_file = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct dwp_file);
|
dwp_file = OBSTACK_ZALLOC (&objfile->objfile_obstack, struct dwp_file);
|
||||||
dwp_file->name = obstack_copy0 (&objfile->objfile_obstack,
|
dwp_file->name = bfd_get_filename (dbfd);
|
||||||
dwp_name, strlen (dwp_name));
|
|
||||||
dwp_file->dbfd = dbfd;
|
dwp_file->dbfd = dbfd;
|
||||||
do_cleanups (cleanups);
|
do_cleanups (cleanups);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user