aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/ax.h
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-06-29 12:14:10 +0200
committerTom de Vries <tdevries@suse.de>2020-06-29 12:14:10 +0200
commitf638ed73010c667c86714b3435a5e1f3a06521cd (patch)
treefc77d52fda23b332ff55cc05f8ccbae26b0be8d8 /gdbserver/ax.h
parentb0237c0eab6b71a0051c19150e31adbdb4ad0f61 (diff)
downloadfsf-binutils-gdb-f638ed73010c667c86714b3435a5e1f3a06521cd.zip
fsf-binutils-gdb-f638ed73010c667c86714b3435a5e1f3a06521cd.tar.gz
fsf-binutils-gdb-f638ed73010c667c86714b3435a5e1f3a06521cd.tar.bz2
[gdbserver] Add missing include of gdbsupport/agent.h
The file gdbserver/ax.h contains: ... #ifdef IN_PROCESS_AGENT #define debug_threads debug_agent #endif ... but does not declare debug_agent. Fix this by adding an include of gdbsupport/agent.h. [ If this fix would have been in place before commit 8118159c69 "[gdbserver] Fix Wlto-type-mismatch for debug_agent", we would have simply run into this build breaker with a regular, non-lto build: ... src/gdbserver/ax.cc:28:5: error: conflicting declaration 'int debug_agent' int debug_agent = 0; ^~~~~~~~~~~ In file included from src/gdbserver/ax.h:25:0, from src/gdbserver/ax.cc:20: src/gdbsupport/agent.h:47:13: note: previous declaration as 'bool debug_agent' extern bool debug_agent; ^~~~~~~~~~~ ... ] Tested on x86_64-linux. gdbserver/ChangeLog: 2020-06-29 Tom de Vries <tdevries@suse.de> * ax.h: Include gdbsupport/debug_agent.h.
Diffstat (limited to 'gdbserver/ax.h')
-rw-r--r--gdbserver/ax.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbserver/ax.h b/gdbserver/ax.h
index 1fba69e..b7ff7d8 100644
--- a/gdbserver/ax.h
+++ b/gdbserver/ax.h
@@ -22,6 +22,7 @@
#include "regcache.h"
#ifdef IN_PROCESS_AGENT
+#include "gdbsupport/agent.h"
#define debug_threads debug_agent
#endif