Fix ax.c:gdb_eval_agent_expr
authorPedro Alves <palves@redhat.com>
Fri, 21 Aug 2015 22:59:33 +0000 (23:59 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 21 Aug 2015 22:59:33 +0000 (23:59 +0100)
In C++ mode:

 src/gdb/gdbserver/ax.c: In function ‘eval_result_type gdb_eval_agent_expr(eval_agent_expr_context*, agent_expr*, ULONGEST*)’:
 src/gdb/gdbserver/ax.c:1335:11: error: invalid conversion from ‘int’ to ‘eval_result_type’ [-fpermissive]
     return 1;
    ^

"1" as an enum eval_result_type is expr_eval_empty_expression, but
clearly this wants to return expr_eval_unhandled_opcode.

gdb/gdbserver/ChangeLog:
2015-08-21  Pedro Alves  <palves@redhat.com>

* ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
instead of literal 1.

gdb/gdbserver/ChangeLog
gdb/gdbserver/ax.c

index 61032872c6a829fcfc513e52fd508795fb8d186e..cd5e046ce52b866e8505422f68e931a3f9046c0d 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-21  Pedro Alves  <palves@redhat.com>
+
+       * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
+       instead of literal 1.
+
 2015-08-21  Pedro Alves  <palves@redhat.com>
 
        * tdesc.c (default_description): Explicitly zero-initialize.
index c5b65fad62feb8977387cf6e133c31854dacad70..f94a27d96bb7aa2935c1e794bd7cfc72bc1ba880 100644 (file)
@@ -1332,7 +1332,7 @@ gdb_eval_agent_expr (struct eval_agent_expr_context *ctx,
                    op);
          /* If ever GDB generates any of these, we don't have the
             option of ignoring.  */
-         return 1;
+         return expr_eval_unhandled_opcode;
 
        default:
          ax_debug ("Agent expression op 0x%x not recognized", op);
This page took 0.049128 seconds and 4 git commands to generate.