aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-04-11 01:18:49 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-04-11 01:18:49 +0000
commit07293be44859c607a36c313e51bec2dcdcd3c243 (patch)
tree8fc60b36ede6c20b1e811260daceb930f2cb5f1d /gdb/solib.c
parent117548399af5963d8325805937dbd3be7a876b7e (diff)
downloadfsf-binutils-gdb-07293be44859c607a36c313e51bec2dcdcd3c243.zip
fsf-binutils-gdb-07293be44859c607a36c313e51bec2dcdcd3c243.tar.gz
fsf-binutils-gdb-07293be44859c607a36c313e51bec2dcdcd3c243.tar.bz2
Do not overwrite so_list's so_name in solib_map_sections
gdb/ChangeLog: * solib.c (solib_map_sections): Remove code overwriting SO->SO_NAME with the bfd's filename.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 8129c0f..6978677 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -465,12 +465,6 @@ solib_map_sections (struct so_list *so)
/* Leave bfd open, core_xfer_memory and "info files" need it. */
so->abfd = abfd;
- /* copy full path name into so_name, so that later symbol_file_add
- can find it. */
- if (strlen (bfd_get_filename (abfd)) >= SO_NAME_MAX_PATH_SIZE)
- error (_("Shared library file name is too long."));
- strcpy (so->so_name, bfd_get_filename (abfd));
-
if (build_section_table (abfd, &so->sections, &so->sections_end))
{
error (_("Can't find the file sections in `%s': %s"),