Move gdb-dlfcn.[ch] to gdbsupport/
authorSergio Durigan Junior <sergiodj@redhat.com>
Wed, 21 Aug 2019 20:22:45 +0000 (16:22 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Fri, 23 Aug 2019 17:13:18 +0000 (13:13 -0400)
commit2d41fa1165c0e28d938ee3bae5c32db371dccf29
treef712ad14b44c800d0de74b8da60c0c888fb23db5
parentde8af80891ff0eee61cd219b316e176e9ae88e91
Move gdb-dlfcn.[ch] to gdbsupport/

I need to use 'gdb_dlopen' inside 'gdbsupport/', but it's not yet
supported there.  This commit moves 'gdb-dlfcn.[ch]' to 'gdbsupport/',
which makes it available also on gdbserver.

gdb/ChangeLog:
2019-08-23  Sergio Durigan Junior  <sergiodj@redhat.com>

* configure.ac: Don't check for 'dlfcn.h' (moved to
gdbsupport/common.m4).
* Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
'gdbsupport/'.
(HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
* compile/compile-c-support.c: Include
'gdbsupport/gdb-dlfcn.h'.
* gdbsupport/common.m4: Check for 'dlfcn.h'.
* gdb-dlfcn.c: Move to...
* gdbsupport/gdb-dlfcn.c: ... here.
* gdb-dlfcn.h: Move to...
* gdbsupport/gdb-dlfcn.h: ... here.

gdb/gdbserver/ChangeLog:
2019-08-23  Sergio Durigan Junior  <sergiodj@redhat.com>

* Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
(OBS): Add 'gdbsupport/gdb-dlfcn.o'.
* config.in: Regenerate.
* configure: Regenerate.
15 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/compile/compile-c-support.c
gdb/configure
gdb/configure.ac
gdb/gdb-dlfcn.c [deleted file]
gdb/gdb-dlfcn.h [deleted file]
gdb/gdbserver/ChangeLog
gdb/gdbserver/Makefile.in
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbsupport/common.m4
gdb/gdbsupport/gdb-dlfcn.c [new file with mode: 0644]
gdb/gdbsupport/gdb-dlfcn.h [new file with mode: 0644]
gdb/jit.c