diff options
author | Tom Tromey <tromey@adacore.com> | 2022-03-04 11:58:27 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-04 12:35:33 -0700 |
commit | c836575a6f0f45b1eddf5eefc6e300420f1b2aec (patch) | |
tree | c0e2e90ac2b06e5d2542966c40f58a4e135ff9d2 /gdb/symfile-mem.c | |
parent | 84a9f1953047dee70f45ae8ac276ea3d8293351d (diff) | |
download | gdb-c836575a6f0f45b1eddf5eefc6e300420f1b2aec.zip gdb-c836575a6f0f45b1eddf5eefc6e300420f1b2aec.tar.gz gdb-c836575a6f0f45b1eddf5eefc6e300420f1b2aec.tar.bz2 |
Mark vDSO as not a file
The vDSO objfile is not a real file, so mark it as such. I noticed
this because, when playing with debuginfod, I saw:
Downloading 0.01 MB separate debug info for /tmp/system-supplied DSO at 0x7ffff7fc9000
That "/tmp" is wrong -- it's just gdb's cwd. This patch corrects the
problem, resulting in:
Downloading 0.01 MB separate debug info for system-supplied DSO at 0x7ffff7fc9000
Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/symfile-mem.c')
-rw-r--r-- | gdb/symfile-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index b4c359c..73c5ee3 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -88,7 +88,7 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr, struct bfd *nbfd; struct bfd_section *sec; bfd_vma loadbase; - symfile_add_flags add_flags = 0; + symfile_add_flags add_flags = SYMFILE_NOT_FILENAME; if (bfd_get_flavour (templ) != bfd_target_elf_flavour) error (_("add-symbol-file-from-memory not supported for this target")); |