X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=docs%2Fdeveloper%2Fbuild-run-debug%2Fgdb_examples.rst;fp=docs%2Fgettingstarted%2Fdevelopers%2Fgdb_examples.rst;h=2a33f17f4da5ffde867f711b3e9678d95fb231f7;hb=9ad39c026c8a3c945a7003c4aa4f5cb1d4c80160;hp=893987796cfa578768d534ae487ff7e8dbc457a5;hpb=f47122e07e1ecd0151902a3cabe46c60a99bee8e;p=vpp.git diff --git a/docs/gettingstarted/developers/gdb_examples.rst b/docs/developer/build-run-debug/gdb_examples.rst similarity index 98% rename from docs/gettingstarted/developers/gdb_examples.rst rename to docs/developer/build-run-debug/gdb_examples.rst index 893987796cf..2a33f17f4da 100644 --- a/docs/gettingstarted/developers/gdb_examples.rst +++ b/docs/developer/build-run-debug/gdb_examples.rst @@ -59,7 +59,7 @@ List the breakpoints already set: 1 breakpoint keep y 0x00007ffff6b9c00b in ip4_icmp_input at /scratch/vpp-master/build-data/../src/vnet/ip/icmp4.c:142 breakpoint already hit 3 times 2 breakpoint keep y 0x00007ffff6b9c00b in ip4_icmp_input at /scratch/vpp-master/build-data/../src/vnet/ip/icmp4.c:142 - 3 breakpoint keep y 0x00007ffff640f646 in tw_timer_expire_timers_internal_1t_3w_1024sl_ov + 3 breakpoint keep y 0x00007ffff640f646 in tw_timer_expire_timers_internal_1t_3w_1024sl_ov at /scratch/vpp-master/build-data/../src/vppinfra/tw_timer_template.c:775 Delete a breakpoint: @@ -71,7 +71,7 @@ Delete a breakpoint: Num Type Disp Enb Address What 1 breakpoint keep y 0x00007ffff6b9c00b in ip4_icmp_input at /scratch/vpp-master/build-data/../src/vnet/ip/icmp4.c:142 breakpoint already hit 3 times - 3 breakpoint keep y 0x00007ffff640f646 in tw_timer_expire_timers_internal_1t_3w_1024sl_ov + 3 breakpoint keep y 0x00007ffff640f646 in tw_timer_expire_timers_internal_1t_3w_1024sl_ov at /scratch/vpp-master/build-data/../src/vppinfra/tw_timer_template.c:775 Step/Next/List @@ -90,10 +90,10 @@ Step through the code using (s)tep into, (n)ext, and list some lines before and (gdb) list 202 vlib_put_next_frame (vm, node, next, n_left_to_next); 203 } - 204 + 204 205 return frame->n_vectors; 206 } - 207 + 207 208 /* *INDENT-OFF* */ 209 VLIB_REGISTER_NODE (ip4_icmp_input_node,static) = { 210 .function = ip4_icmp_input, @@ -122,7 +122,7 @@ For example in this code look at the ip packet: as_u16 = {0xa, 0xa00}, as_u32 = 0xa00000a}}}}, {checksum_data_64 = {0x40704954000045, 0x200000a2ddd0140}, checksum_data_64_32 = {0xa00000a}}, {checksum_data_32 = {0x54000045, 0x407049, 0x2ddd0140, 0x200000a, 0xa00000a}}} - + Then the icmp header .. code-block:: console