gdb/solib: Refactor scan_dyntag
authorAaron Merey <amerey@redhat.com>
Wed, 11 Aug 2021 02:05:44 +0000 (22:05 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 19 Aug 2021 02:24:18 +0000 (22:24 -0400)
commit8ddf46454aa981246f9611b1897f41fabd2a108d
tree17b1d9632a2f2e5d8627b7d50585d13690630b10
parent76bed1fdbd7256228847962770bdc5832c53172c
gdb/solib: Refactor scan_dyntag

scan_dyntag is unnecessarily duplicated in solib-svr4.c and solib-dsbt.c.

Move this function to solib.c and rename it to gdb_bfd_scan_elf_dyntag.
Also add it to solib.h so it is included in both solib-svr4 and solib-dsbt.
gdb/solib-dsbt.c
gdb/solib-svr4.c
gdb/solib.c
gdb/solib.h