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

Miguel Angel Ajo mangelajo at redhat.com
Tue Aug 25 07:53:12 UTC 2015


Did you recompile/install openvswitch with debug info and
provided the path to the executable file via the gdb file 
command as gdb is suggesting?

The breakpoint is pending because gdb cannot map the function name
to the code address space until it's able to read the debug info for vswitchd.

openvswitcher wrote:
> 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.
>
>
>
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list