gdb: remove push_target free functions
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Mar 2021 13:50:35 +0000 (09:50 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 23 Mar 2021 13:50:35 +0000 (09:50 -0400)
commit02980c5645e355833b989e9551befddd54e75640
tree9cdcf5e5ceb0fece771f1cc5084dc7343556e9fc
parentfadf6add3028d477457c809f60f07643964d7fd2
gdb: remove push_target free functions

Same as the previous patch, but for the push_target functions.

The implementation of the move variant is moved to a new overload of
inferior::push_target.

gdb/ChangeLog:

* target.h (push_target): Remove, update callers to use
inferior::push_target.
* target.c (push_target): Remove.
* inferior.h (class inferior) <push_target>: New overload.

Change-Id: I5a95496666278b8f3965e5e8aecb76f54a97c185
30 files changed:
gdb/ChangeLog
gdb/aix-thread.c
gdb/bsd-kvm.c
gdb/bsd-uthread.c
gdb/corelow.c
gdb/darwin-nat.c
gdb/exec.c
gdb/gnu-nat.c
gdb/go32-nat.c
gdb/inf-child.c
gdb/inf-ptrace.c
gdb/inferior.c
gdb/inferior.h
gdb/infrun.c
gdb/linux-thread-db.c
gdb/nto-procfs.c
gdb/procfs.c
gdb/ravenscar-thread.c
gdb/record-btrace.c
gdb/record-full.c
gdb/regcache.c
gdb/remote-sim.c
gdb/remote.c
gdb/scoped-mock-context.h
gdb/sol-thread.c
gdb/target.c
gdb/target.h
gdb/tracectf.c
gdb/tracefile-tfile.c
gdb/windows-nat.c