summary refs log tree commit diff stats
path: root/results/classifier/105/mistranslation/895
diff options
context:
space:
mode:
Diffstat (limited to 'results/classifier/105/mistranslation/895')
-rw-r--r--results/classifier/105/mistranslation/89551
1 files changed, 51 insertions, 0 deletions
diff --git a/results/classifier/105/mistranslation/895 b/results/classifier/105/mistranslation/895
new file mode 100644
index 00000000..ed21bd46
--- /dev/null
+++ b/results/classifier/105/mistranslation/895
@@ -0,0 +1,51 @@
+mistranslation: 0.936
+vnc: 0.861
+graphic: 0.733
+device: 0.723
+semantic: 0.587
+instruction: 0.412
+KVM: 0.391
+other: 0.374
+network: 0.364
+boot: 0.309
+socket: 0.255
+assembly: 0.149
+
+can't find table device while call qemu_input_is_absolute function
+Description of problem:
+vnc service can‘t run with mouse absolute mode
+Steps to reproduce:
+1.create a virtual machine with vnc service via virt-manager.
+
+2.delete mouse and table device  if exists.
+
+3.add table devices first,next add mouse device.
+
+4.gdb attach corresponding qemu thread, run command 
+print "%d",qemu_input_is_absolute()
+display function return false ,so I can't use mouse with absolute mode.
+Additional information:
+code in  qemu_input_is_absolute() is
+```
+bool qemu_input_is_absolute(void)
+{
+    QemuInputHandlerState *s;
+
+    s = qemu_input_find_handler(INPUT_EVENT_MASK_REL | INPUT_EVENT_MASK_ABS,
+                                NULL);
+    return (s != NULL) && (s->handler->mask & INPUT_EVENT_MASK_ABS);
+}
+```
+qemu_input_find_handler function find a handler INPUT_EVENT_MASK_REL or INPUT_EVENT_MASK_ABS,but just compare with INPUT_EVENT_MASK_ABS,
+I think it should be 
+```
+bool qemu_input_is_absolute(void)
+{
+    QemuInputHandlerState *s;
+
+    s = qemu_input_find_handler(INPUT_EVENT_MASK_ABS,
+                                NULL);
+    return (s != NULL) && (s->handler->mask & INPUT_EVENT_MASK_ABS);
+}
+```
+thanks for your help.