Introduce gdb::byte_vector, add allocator that default-initializes
[deliverable/binutils-gdb.git] / gdb / printcmd.c
index 152c2c6d7cc57a5a75a2ddf27641931e69c1e5f1..f392e6df0988b088e840cf9ef839ae1d318fea0c 100644 (file)
@@ -48,6 +48,7 @@
 #include "cli/cli-script.h"
 #include "format.h"
 #include "source.h"
+#include "common/byte-vector.h"
 
 #ifdef TUI
 #include "tui/tui.h"           /* For tui_active et al.   */
@@ -407,7 +408,7 @@ print_scalar_formatted (const gdb_byte *valaddr, struct type *type,
   /* Historically gdb has printed floats by first casting them to a
      long, and then printing the long.  PR cli/16242 suggests changing
      this to using C-style hex float format.  */
-  std::vector<gdb_byte> converted_float_bytes;
+  gdb::byte_vector converted_float_bytes;
   if (TYPE_CODE (type) == TYPE_CODE_FLT
       && (options->format == 'o'
          || options->format == 'x'
This page took 0.024611 seconds and 4 git commands to generate.