Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory include CURSES_LOC compilation terminated. make[1]: * [scripts/kconfig/mconf.o] Error 1 make: * [menuconfig] Error 2
The loop device is a block device that maps its data blocks not to a physical device such as a hard disk or optical disk drive, but to the blocks of a regular file in a filesystem or to another block device. This can be useful for example to provide a block device for a filesystem image stored in a file, so that it can be mounted with the mount(8) command
(gdb) target remote 192.168.43.202:10000 Reading /lib/ld-linux-aarch64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld-linux-aarch64.so.1 from remote target... Reading symbols from target:/lib/ld-linux-aarch64.so.1...(no debugging symbols found)...done. 0x0000ffffbf6d3d00 in ?? () from target:/lib/ld-linux-aarch64.so.1 # 设置一个目录,否则看不到库函数 (gdb) set sysroot /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/ warning: .dynamic section for"/home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1" is not at the expected address (wrong library or version mismatch?) Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. (gdb) b main Breakpoint 1 at 0x4005f4: file main.cpp, line 7. (gdb) b func(int) Breakpoint 2 at 0x400630: file main.cpp, line 16. (gdb) r The "remote" target does not support "run". Try "help target" or "continue". (gdb) c Continuing.
Breakpoint 1, main () at main.cpp:7 7 int i = 25; (gdb) list 2 3 int func(int i); 4 5 int main(void) 6 { 7 int i = 25; 8 int v = func(i); 9 printf("value is %d\n", v); 10 getchar(); 11 return 0; (gdb) c Continuing.
Breakpoint 2, func (i=25) at main.cpp:16 16 int a = 2; (gdb) c Continuing. [Inferior 1 (process 1066) exited normally]
+
+
测试程序
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include<stdio.h> intfunc(int i); intmain(void) { int i = 25; int v = func(i); printf("value is %d\n", v); getchar(); return0; } intfunc(int i) { int a = 2; return a * i; }
pick 0f40286 change call of duty pick ff309fe add h2 style local pick f85bd96 add h2 style
# Rebase 65d78c2..c4f25cd onto 65d78c2 (3 commands) # # Commands: # p, pick <commit> = use commit # r, reword <commit> = use commit, but edit the commit message # e, edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
Memory Walker @memorywalker changed due date to February 22, 2020 11 minutes ago Memory Walker @memorywalker changed milestone to %wireshark数据包分析 11 minutes ago Memory Walker @memorywalker mentioned in commit 57932869 5 minutes ago
只抓包头。一般能抓到包的大小为1514字节,启用了Jumbo Frame之后可达9000字节以上。大多数情况只需要IP或TCP的头就足够了,具体应用数据都是加密的,一般不需要。Capture-->Options中设置Limit each packet to为80字节,这样TCP、网络层、数据链路层的信息都有了。如果还要看应用层的信息,可以适当调大到200字节
netsh interface tcp show global # 查看当前的状态,默认为none,即关闭 netsh interface tcp set global congestionprovider=ctcp # 使用compound netsh interface tcp set global congestionprovider=none # 关闭为none
只抓包头。一般能抓到包的大小为1514字节,启用了Jumbo Frame之后可达9000字节以上。大多数情况只需要IP或TCP的头就足够了,具体应用数据都是加密的,一般不需要。Capture-->Options中设置Limit each packet to为80字节,这样TCP、网络层、数据链路层的信息都有了。如果还要看应用层的信息,可以适当调大到200字节
netsh interface tcp show global # 查看当前的状态,默认为none,即关闭 netsh interface tcp set global congestionprovider=ctcp # 使用compound netsh interface tcp set global congestionprovider=none # 关闭为none
Memory Walker @memorywalker changed due date to February 22, 2020 11 minutes ago Memory Walker @memorywalker changed milestone to %wireshark数据包分析 11 minutes ago Memory Walker @memorywalker mentioned in commit 57932869 5 minutes ago
pick 0f40286 change call of duty pick ff309fe add h2 style local pick f85bd96 add h2 style
# Rebase 65d78c2..c4f25cd onto 65d78c2 (3 commands) # # Commands: # p, pick <commit> = use commit # r, reword <commit> = use commit, but edit the commit message # e, edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory include CURSES_LOC compilation terminated. make[1]: * [scripts/kconfig/mconf.o] Error 1 make: * [menuconfig] Error 2
The loop device is a block device that maps its data blocks not to a physical device such as a hard disk or optical disk drive, but to the blocks of a regular file in a filesystem or to another block device. This can be useful for example to provide a block device for a filesystem image stored in a file, so that it can be mounted with the mount(8) command
(gdb) target remote 192.168.43.202:10000 Reading /lib/ld-linux-aarch64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld-linux-aarch64.so.1 from remote target... Reading symbols from target:/lib/ld-linux-aarch64.so.1...(no debugging symbols found)...done. 0x0000ffffbf6d3d00 in ?? () from target:/lib/ld-linux-aarch64.so.1 # 设置一个目录,否则看不到库函数 (gdb) set sysroot /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/ warning: .dynamic section for"/home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1" is not at the expected address (wrong library or version mismatch?) Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. (gdb) b main Breakpoint 1 at 0x4005f4: file main.cpp, line 7. (gdb) b func(int) Breakpoint 2 at 0x400630: file main.cpp, line 16. (gdb) r The "remote" target does not support "run". Try "help target" or "continue". (gdb) c Continuing.
Breakpoint 1, main () at main.cpp:7 7 int i = 25; (gdb) list 2 3 int func(int i); 4 5 int main(void) 6 { 7 int i = 25; 8 int v = func(i); 9 printf("value is %d\n", v); 10 getchar(); 11 return 0; (gdb) c Continuing.
Breakpoint 2, func (i=25) at main.cpp:16 16 int a = 2; (gdb) c Continuing. [Inferior 1 (process 1066) exited normally]
+
+
测试程序
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include<stdio.h> intfunc(int i); intmain(void) { int i = 25; int v = func(i); printf("value is %d\n", v); getchar(); return0; } intfunc(int i) { int a = 2; return a * i; }
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
只抓包头。一般能抓到包的大小为1514字节,启用了Jumbo Frame之后可达9000字节以上。大多数情况只需要IP或TCP的头就足够了,具体应用数据都是加密的,一般不需要。Capture-->Options中设置Limit each packet to为80字节,这样TCP、网络层、数据链路层的信息都有了。如果还要看应用层的信息,可以适当调大到200字节
netsh interface tcp show global # 查看当前的状态,默认为none,即关闭 netsh interface tcp set global congestionprovider=ctcp # 使用compound netsh interface tcp set global congestionprovider=none # 关闭为none
Memory Walker @memorywalker changed due date to February 22, 2020 11 minutes ago Memory Walker @memorywalker changed milestone to %wireshark数据包分析 11 minutes ago Memory Walker @memorywalker mentioned in commit 57932869 5 minutes ago
pick 0f40286 change call of duty pick ff309fe add h2 style local pick f85bd96 add h2 style
# Rebase 65d78c2..c4f25cd onto 65d78c2 (3 commands) # # Commands: # p, pick <commit> = use commit # r, reword <commit> = use commit, but edit the commit message # e, edit <commit> = use commit, but stop for amending # s, squash <commit> = use commit, but meld into previous commit # f, fixup <commit> = like "squash", but discard this commit's log message # x, exec <command> = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop <commit> = remove commit # l, label <label> = label current HEAD with a name # t, reset <label> = reset HEAD to a label # m, merge [-C <commit> | -c <commit>] <label> [# <oneline>]
In file included from scripts/kconfig/mconf.c:23:0: scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory include CURSES_LOC compilation terminated. make[1]: * [scripts/kconfig/mconf.o] Error 1 make: * [menuconfig] Error 2
The loop device is a block device that maps its data blocks not to a physical device such as a hard disk or optical disk drive, but to the blocks of a regular file in a filesystem or to another block device. This can be useful for example to provide a block device for a filesystem image stored in a file, so that it can be mounted with the mount(8) command
Process /mnt/code/all created; pid = 1066 Listening on port 10000 Remote debugging from host 192.168.43.210, port 51730
+
+
主机host run:
+
/home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gdb all
+
in gdb console, connect to the guest gdbserver:
+
(gdb) target remote 192.168.43.202:10000 Reading /lib/ld-linux-aarch64.so.1 from remote target... warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead. Reading /lib/ld-linux-aarch64.so.1 from remote target... Reading symbols from target:/lib/ld-linux-aarch64.so.1...(no debugging symbols found)...done. 0x0000ffffbf6d3d00 in ?? () from target:/lib/ld-linux-aarch64.so.1 # 设置一个目录,否则看不到库函数 (gdb) set sysroot /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/ warning: .dynamic section for"/home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1" is not at the expected address (wrong library or version mismatch?) Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. Reading symbols from /home/edison/develop/arm/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/lib/ld-linux-aarch64.so.1...done. (gdb) b main Breakpoint 1 at 0x4005f4: file main.cpp, line 7. (gdb) b func(int) Breakpoint 2 at 0x400630: file main.cpp, line 16. (gdb) r The "remote" target does not support "run". Try "help target" or "continue". (gdb) c Continuing.
Breakpoint 1, main () at main.cpp:7 7 int i = 25; (gdb) list 2 3 int func(int i); 4 5 int main(void) 6 { 7 int i = 25; 8 int v = func(i); 9 printf("value is %d\n", v); 10 getchar(); 11 return 0; (gdb) c Continuing.
Breakpoint 2, func (i=25) at main.cpp:16 16 int a = 2; (gdb) c Continuing. [Inferior 1 (process 1066) exited normally]
+
+
测试程序
#include<stdio.h> intfunc(int i); intmain(void) { int i = 25; int v = func(i); printf("value is %d\n", v); getchar(); return0; } intfunc(int i) { int a = 2; return a * i; }
+]]>
+
+ blog
+
+
+
+ Hello World
+ /2016/03/29/hello-world/
+ Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
+