From cda09ec9f9cbebef06345a5fb768f347267b3d73 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 22 Jan 2021 12:39:08 -0500 Subject: 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/remote.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/remote.h') diff --git a/gdb/remote.h b/gdb/remote.h index 51cdbcc..de582a2 100644 --- a/gdb/remote.h +++ b/gdb/remote.h @@ -24,6 +24,10 @@ struct target_desc; struct remote_target; +/* Debugging level. 0 is off, and non-zero values mean to print some debug + information (higher values, more information). */ +extern int remote_debug; + /* Read a packet from the remote machine, with error checking, and store it in *BUF. Resize *BUF using xrealloc if necessary to hold the result, and update *SIZEOF_BUF. If FOREVER, wait forever -- cgit v1.1