gdb: move remote_debug to remote.{h,c}
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 22 Jan 2021 17:39:08 +0000 (12:39 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 22 Jan 2021 17:39:08 +0000 (12:39 -0500)
commitcda09ec9f9cbebef06345a5fb768f347267b3d73
treeb6edea162ae49154dc354e1be8c69a41467d693b
parentbaf2b57f18c8669ef3521888a2dee2a545214bcd
gdb: move remote_debug to remote.{h,c}

remote_debug is currently declared in target.h and defined in top.c.
Move them to remote.h and remote.c.

Include remote.h in remote-sim.c, as it uses remote_debug.

gdb/ChangeLog:

* target.h (remote_debug): Move to...
* remote.h (remote_debug): ... here.
* top.c (remote_debug): Move to...
* remote.c (remote_debug): ... here.
* remote-sim.c: Include remote.h.

Change-Id: Iae632d12ff8900b23eee6b2529d6a3cd339a8caa
gdb/ChangeLog
gdb/remote-sim.c
gdb/remote.c
gdb/remote.h
gdb/target.h
gdb/top.c