arc: Add "maintenance print arc" command prefix
[deliverable/binutils-gdb.git] / gdb / ax-gdb.c
index cd97585d586da3149c7295e6209fc2d05ac2fc9b..01099f5abaff4dd5f7a21cc06c43dce362525887 100644 (file)
@@ -1,6 +1,6 @@
 /* GDB-specific functions for operating on agent expressions.
 
-   Copyright (C) 1998-2016 Free Software Foundation, Inc.
+   Copyright (C) 1998-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -491,6 +491,7 @@ gen_fetch (struct agent_expr *ax, struct type *type)
     {
     case TYPE_CODE_PTR:
     case TYPE_CODE_REF:
+    case TYPE_CODE_RVALUE_REF:
     case TYPE_CODE_ENUM:
     case TYPE_CODE_INT:
     case TYPE_CODE_CHAR:
@@ -1000,6 +1001,7 @@ gen_cast (struct agent_expr *ax, struct axs_value *value, struct type *type)
     {
     case TYPE_CODE_PTR:
     case TYPE_CODE_REF:
+    case TYPE_CODE_RVALUE_REF:
       /* It's implementation-defined, and I'll bet this is what GCC
          does.  */
       break;
@@ -2555,8 +2557,8 @@ agent_eval_command_one (const char *exp, int eval, CORE_ADDR pc)
   arg = exp;
   if (!eval && strcmp (arg, "$_ret") == 0)
     {
-      agent = std::move (gen_trace_for_return_address (pc, get_current_arch (),
-                                                      trace_string));
+      agent = gen_trace_for_return_address (pc, get_current_arch (),
+                                           trace_string);
     }
   else
     {
@@ -2565,10 +2567,10 @@ agent_eval_command_one (const char *exp, int eval, CORE_ADDR pc)
       if (eval)
        {
          gdb_assert (trace_string == 0);
-         agent = std::move (gen_eval_for_expr (pc, expr.get ()));
+         agent = gen_eval_for_expr (pc, expr.get ());
        }
       else
-       agent = std::move (gen_trace_for_expr (pc, expr.get (), trace_string));
+       agent = gen_trace_for_expr (pc, expr.get (), trace_string);
     }
 
   ax_reqs (agent.get ());
This page took 0.024418 seconds and 4 git commands to generate.