<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
When I to use gdb to check whether <font color="#3333ff">qemuMonitorJSONIOProcessEvent
</font>processes the Event that I expect.<br>
<br>
but the gdb works abnormally.<br>
I list the the position of the source file by gdb. It is the correct
function<font color="#3333ff"> qemuMonitorJSONIOProcessEvent</font>.<br>
However I set break point on this position. then "info b", it is
the wrong function <font color="#333399">qemuMonitorJSONIOProcess.<br>
<br>
</font>I debug my libvirt on Ubuntu 11.10 this time.But I have set
a break point at this function on redhat 6.0 before, it can work
well. <br>
<br>
My gcc version is: gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1<br>
My gdb version is: GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08<br>
<br>
here is the info:<br>
<br>
(gdb) list qemu/qemu_monitor_json.c:88<br>
83 <font color="#3333ff">qemuMonitorJSONIOProcessEvent</font>(qemuMonitorPtr
mon,<br>
84 virJSONValuePtr obj)<br>
85 {<br>
86 const char *type;<br>
87 int i;<br>
88 int findEventFlag = -1;<br>
89 VIR_DEBUG("mon=%p obj=%p", mon, obj);<br>
90 <br>
91 type = virJSONValueObjectGetString(obj, "event");<br>
92 if (!type) {<br>
<br>
<br>
<br>
(gdb) b qemu/qemu_monitor_json.c:88<br>
Breakpoint 5 at 0x4a18d4: file qemu/qemu_monitor_json.c, line 88.<br>
(gdb) info b<br>
Num Type Disp Enb Address What<br>
5 breakpoint keep y 0x00000000004a18d4 in <font
color="#333399">qemuMonitorJSONIOProcess</font> at
qemu/qemu_monitor_json.c:88<br>
(gdb) <br>
<br>
</body>
</html>