[ovs-dev] About debug the vswitchd using gdb -p

openvswitcher openvswitcher at 163.com
Tue Aug 25 05:15:31 UTC 2015


Hi, all


  I want to ask about how to make the vswitchd break on the breakpoint by gdb.
  I attached the vswitchd process using 'gdb -p' as bellow:


gdb --pid=31212
(gdb) b dpif_linux.c:dpif_linux_port_add
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (dpif_linux:dpif_linux_port_add) pending.
  (gdb) c
Continuing.


 But when I  used "ovs-vsctl add-port br0 eth1" command, the process had not been broken on the breakpoint. 


Could you tell me how make it OK?


Thanks.







More information about the dev mailing list