* server.h (struct emit_ops): Add compare-goto fields.
authorStan Shebs <shebs@codesourcery.com>
Thu, 15 Sep 2011 22:54:13 +0000 (22:54 +0000)
committerStan Shebs <shebs@codesourcery.com>
Thu, 15 Sep 2011 22:54:13 +0000 (22:54 +0000)
commit6b9801d456c0851563f41b87cfdf00b141257578
treefd691b193012068d6a970e4a15bb0b582d7a0da4
parent5af65ec072edf782b67169fd3ea1b91b8255d30f
* server.h (struct emit_ops): Add compare-goto fields.
* tracepoint.c (gdb_agent_op_sizes): New table.
(emit_eq_goto): New function.
(emit_ne_goto): New function.
(emit_lt_goto): New function.
(emit_le_goto): New function.
(emit_gt_goto): New function.
(emit_ge_goto): New function.
(is_goto_target): New function.
(compile_bytecodes): Recognize special cases of compare-goto
combinations and call specialized emitters for them.
* linux-x86-low.c (amd64_emit_eq_goto): New function.
(amd64_emit_ne_goto): New function.
(amd64_emit_lt_goto): New function.
(amd64_emit_le_goto): New function.
(amd64_emit_gt_goto): New function.
(amd64_emit_ge_goto): New function.
(amd64_emit_ops): Add the new functions.
(i386_emit_eq_goto): New function.
(i386_emit_ne_goto): New function.
(i386_emit_lt_goto): New function.
(i386_emit_le_goto): New function.
(i386_emit_gt_goto): New function.
(i386_emit_ge_goto): New function.
(i386_emit_ops): Add the new functions.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-x86-low.c
gdb/gdbserver/server.h
gdb/gdbserver/tracepoint.c