Use unique_xmalloc_ptr for read_string
[deliverable/binutils-gdb.git] / gdb / valprint.h
index 16f53f0e7126cac0cd28eccc9c199c873daff81b..81638d41f9677bebd089ff39c1ce21ee062b5577 100644 (file)
@@ -150,7 +150,8 @@ extern void print_function_pointer_address (const struct value_print_options *op
 
 extern int read_string (CORE_ADDR addr, int len, int width,
                        unsigned int fetchlimit,
-                       enum bfd_endian byte_order, gdb_byte **buffer,
+                       enum bfd_endian byte_order,
+                       gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
                        int *bytes_read);
 
 extern void val_print_optimized_out (const struct value *val,
This page took 0.028046 seconds and 4 git commands to generate.