aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-11-15 19:54:21 +0000
committerPedro Alves <palves@redhat.com>2016-11-15 19:54:21 +0000
commitb22e99fdaf2efe58161c382bbd55f4572ba49eef (patch)
treecd655e8a447f98e450a1781f0b68250bc17be191 /gdb/cli
parentb7f38fdae7c75e1d13abd455b3931950db28d22b (diff)
downloadbinutils-b22e99fdaf2efe58161c382bbd55f4572ba49eef.zip
binutils-b22e99fdaf2efe58161c382bbd55f4572ba49eef.tar.gz
binutils-b22e99fdaf2efe58161c382bbd55f4572ba49eef.tar.bz2
gdb::{unique_ptr,move} -> std::{unique_ptr,move}
Now that we require C++11, use std::unique_ptr and std::move directly. gdb/ChangeLog: 2016-11-15 Pedro Alves <palves@redhat.com> * ada-lang.c (create_excep_cond_exprs): Use std::move instead of gdb::move. * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::unique_ptr instead of gdb::unique_ptr. * breakpoint.c (watch_command_1): Use std::move instead of gdb::move. * cli/cli-dump.c (dump_memory_to_file, restore_binary_file): Use std::unique_ptr instead of gdb::unique_ptr. * dtrace-probe.c (dtrace_process_dof_probe): Use std::move instead of gdb::move. * elfread.c (elf_read_minimal_symbols): Use std::unique_ptr instead of gdb::unique_ptr. * mi/mi-main.c (mi_cmd_data_read_memory): Use std::unique_ptr instead of gdb::unique_ptr. * parse.c (parse_expression_for_completion): Use std::move instead of gdb::move. * printcmd.c (display_command): std::move instead of gdb::move.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index eb7f69d..781c638 100644
--- a/gdb/cli/cli-dump.c
+++ b/gdb/cli/cli-dump.c
@@ -236,7 +236,7 @@ dump_memory_to_file (const char *cmd, const char *mode, const char *file_format)
/* FIXME: Should use read_memory_partial() and a magic blocking
value. */
- gdb::unique_ptr<gdb_byte[]> buf (new gdb_byte[count]);
+ std::unique_ptr<gdb_byte[]> buf (new gdb_byte[count]);
read_memory (lo, buf.get (), count);
/* Have everything. Open/write the data. */
@@ -550,7 +550,7 @@ restore_binary_file (const char *filename, struct callback_data *data)
perror_with_name (filename);
/* Now allocate a buffer and read the file contents. */
- gdb::unique_ptr<gdb_byte[]> buf (new gdb_byte[len]);
+ std::unique_ptr<gdb_byte[]> buf (new gdb_byte[len]);
if (fread (buf.get (), 1, len, file) != len)
perror_with_name (filename);