Get rid of -Wodr warning (PR build/23399)
[deliverable/binutils-gdb.git] / gdb / common / agent.h
index 66b693791e23f14fda216ce4a8eacdec3237bd17..5be07b845be6ecabcef296d8c3bb94ddf7f97c32 100644 (file)
@@ -27,10 +27,15 @@ int agent_run_command (int pid, const char *cmd, int len);
 int agent_look_up_symbols (void *);
 
 #define IPA_SYM_EXPORTED_NAME(SYM) gdb_agent_ ## SYM
+
+/* Define an entry in an IPA symbol list array.  If IPA_SYM is used, the macro
+   IPA_SYM_STRUCT_NAME must be defined to the structure name holding the IPA
+   symbol addresses in that particular file, before including
+   common/agent.h.  */
 #define IPA_SYM(SYM)                                   \
   {                                                    \
-    STRINGIFY (IPA_SYM_EXPORTED_NAME (SYM)),           \
-    offsetof (struct ipa_sym_addresses, addr_ ## SYM)  \
+    STRINGIFY (IPA_SYM_EXPORTED_NAME (SYM)),           \
+    offsetof (IPA_SYM_STRUCT_NAME, addr_ ## SYM)       \
   }
 
 /* The size in bytes of the buffer used to talk to the IPA helper
This page took 0.02496 seconds and 4 git commands to generate.