PR22348, conflicting global vars in crx and cr16
[deliverable/binutils-gdb.git] / gdb / annotate.h
index a1454a1223cc866754f65cc1b9351ec4d29869d6..8a9a64147df4d5306f1eca68013a657664bdaa07 100644 (file)
@@ -74,6 +74,16 @@ extern void annotate_arg_name_end (void);
 extern void annotate_arg_value (struct type *);
 extern void annotate_arg_end (void);
 
+/* Wrap calls to annotate_arg_begin and annotate_arg_end in an RAII
+   class. */
+struct annotate_arg_emitter
+{
+  annotate_arg_emitter () { annotate_arg_begin (); }
+  ~annotate_arg_emitter () { annotate_arg_end (); }
+
+  DISABLE_COPY_AND_ASSIGN (annotate_arg_emitter);
+};
+
 extern void annotate_source (char *, int, int, int,
                             struct gdbarch *, CORE_ADDR);
 
This page took 0.033314 seconds and 4 git commands to generate.