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
This commit is contained in:
parent
baf2b57f18
commit
cda09ec9f9
@ -1,3 +1,11 @@
|
||||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* 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.
|
||||
|
||||
2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* cli/cli-cmds.c (show_remote_debug): Remove.
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "gdbthread.h"
|
||||
#include "gdbsupport/byte-vector.h"
|
||||
#include "memory-map.h"
|
||||
#include "remote.h"
|
||||
|
||||
/* Prototypes */
|
||||
|
||||
|
@ -87,6 +87,10 @@ Use a remote computer via a serial line, using a gdb-specific protocol.\n\
|
||||
Specify the serial device it is connected to\n\
|
||||
(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).");
|
||||
|
||||
/* See remote.h */
|
||||
|
||||
int remote_debug = 0;
|
||||
|
||||
#define OPAQUETHREADBYTES 8
|
||||
|
||||
/* a 64 bit opaque identifier */
|
||||
|
@ -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
|
||||
|
@ -2473,9 +2473,6 @@ extern gdb::optional<gdb::char_vector> target_get_osdata (const char *type);
|
||||
|
||||
/* Stuff that should be shared among the various remote targets. */
|
||||
|
||||
/* Debugging level. 0 is off, and non-zero values mean to print some debug
|
||||
information (higher values, more information). */
|
||||
extern int remote_debug;
|
||||
|
||||
/* Timeout limit for response from target. */
|
||||
extern int remote_timeout;
|
||||
|
Loading…
Reference in New Issue
Block a user