aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2018-08-28 13:29:32 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2018-08-28 17:23:16 -0400
commitad202fcc2277f351d41d4d4e897ad4f6d7c9f043 (patch)
treec26bf79e57c584e66195e2527eb5033224ba2b97 /gdb/gdbserver
parentead9aa39bfc80007336bc96c6374df7f79341485 (diff)
downloadbinutils-ad202fcc2277f351d41d4d4e897ad4f6d7c9f043.zip
binutils-ad202fcc2277f351d41d4d4e897ad4f6d7c9f043.tar.gz
binutils-ad202fcc2277f351d41d4d4e897ad4f6d7c9f043.tar.bz2
Get rid of -Wodr warning (PR build/23399)
The PR reports that building with -Wodr -flto complains about different versions of struct ipa_sym_addresses, in common/agent.c and gdbserver/tracepoint.c. This patch renames the version in common to ipa_sym_addresses_common to avoid the name clash. Because the IPA_SYM assumed the name ipa_sym_addresses, it now requires the includer to define the IPA_SYM_STRUCT_NAME macro to define the name of the structure holding the IPA symbol addresses. gdb/ChangeLog: PR build/23399 * common/agent.c (IPA_SYM_STRUCT_NAME): Define. (struct ipa_sym_addresses): Rename to... (struct ipa_sym_addresses_common): ... this. * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. gdb/gdbserver/ChangeLog: PR build/23399 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/tracepoint.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index cdc8afd..cd0318c 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR build/23399
+ * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
+
2018-08-27 Tom Tromey <tom@tromey.com>
PR build/23087:
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index ad2a801..9959d05 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -19,7 +19,6 @@
#include "server.h"
#include "tracepoint.h"
#include "gdbthread.h"
-#include "agent.h"
#include "rsp-low.h"
#include <ctype.h>
@@ -30,6 +29,9 @@
#include "ax.h"
#include "tdesc.h"
+#define IPA_SYM_STRUCT_NAME ipa_sym_addresses
+#include "agent.h"
+
#define DEFAULT_TRACE_BUFFER_SIZE 5242880 /* 5*1024*1024 */
/* This file is built for both GDBserver, and the in-process