
Debug
hushui
Coding Since 1998
展开
-
Chrome inside command through web/Debug
chrome://versionchrome://gpuchrome://inspect/#devices原创 2018-07-01 10:44:24 · 190 阅读 · 0 评论 -
Base64 File transfer over a serial line/tty/linux
Target ARM/Linux with opensslHost/Encoder:openssl enc -base64 <file.bin > file.b64Target/Decode:cat > file.b64yourfileXXXXCtrl+Dopenssl enc -base64 -d <file.b64 > file.bin原创 2022-03-16 18:22:42 · 826 阅读 · 0 评论 -
gdb uboot relocation/symbol aarch64
[U-Boot] README.arm-relocation: get relocated address in gdb - Patchwork原创 2022-01-26 15:07:51 · 337 阅读 · 0 评论 -
Google C++ Unit test sample
[lake@localhost source]$ git clone -b v1.8.x --depth 1 https://github.com/google/googletest.gitCloning into 'googletest'...remote: Enumerating objects: 369, done.remote: Counting objects: 100% (369/369), done.remote: Compressing objects:...原创 2021-09-14 14:50:09 · 644 阅读 · 0 评论 -
Jtag/TI/XDS110 manually command check/Windows/CCS
C:\>c:\ti\ccsv7\ccs_base\common\uscif\dbgjtag.exe The utility build date was 'Jul 21 2017'. The utility build time was '19:39:14'. The utility package version is '7.0.48.0'. The utility co...原创 2019-04-29 15:27:55 · 842 阅读 · 0 评论 -
patch/lib without LD_LIBBRARY_PATH
Question:Buildroot does not allowLD_LIBBRARY_PATHBuild/make user does not have root provilege.Buildroot needs some extra so/lib for host side tool/QT buildSolution[lake@localhost rk3399_linux_release_v2.5.1_20210301]$ ldd /data/sdb/lake/sou..原创 2021-07-21 17:38:47 · 147 阅读 · 0 评论 -
vscode-cpptools/gdb/linux 远程调试的限制
https://github.com/microsoft/vscode-cpptools1.pipeTransport /miDebuggerServerAddress 冲突 不可同时使用 https://github.com/Microsoft/vscode-cpptools/issues/5282. pipeTransport可以attach ("request"/"attach") 远程process/Linux 但必须指定processId和debugger...原创 2021-03-29 17:13:52 · 637 阅读 · 0 评论 -
gdb non-stop/target-async remote debug
## target / # gdbserver --multi localhost:1234Listening on port 1234Remote debugging from host 10.213.0.8Attached; pid = 379 <<<<<<<< gdb client connect [lake@localhost]$ cat ~/.gdbinitset target-asy..原创 2021-03-26 16:32:10 · 394 阅读 · 0 评论 -
patchelf to change ld-linux-xxx with new glibc on old system/Centos7-RHEL7.x
####### patchelf## Change ld-linux-XXXX.so### Change with new glibc version [lake@Centos7 hello]$ pwd/home/lake/extra/source/hello### Centos7/RHEL7.x glibc is 2.17 NOT 2.18/2.19 [lake@Centos7 hello]$ rpm -qf /lib64/libc.so.6glibc-2.17-78.el7..原创 2021-01-21 16:48:20 · 378 阅读 · 0 评论 -
sqldiff /sqlite-tools-win32-x86-3340000
### sqldiff /sqlite-tools-win32-x86-3340000ExamplePS C:\work\> ..\..\sqlite-tools-win32-x86-3340000\sqldiff.exe .\0clear\recordings.db .\1-boot-nostart\recordings.dbINSERT INTO Bookings(bookingId,segmentId,type) VALUES(31,5,1);INSERT I...原创 2021-01-08 15:32:29 · 500 阅读 · 0 评论 -
readelf string from .text code
examplecat hello.c#include <stdio.h>int main(){ printf("Hello world \n"); return 1 ;}$ readelf -p .rodata hello-x86String dump of section '.rodata': [ 10] Hello worldExample with toolchaine...原创 2020-08-25 10:28:03 · 252 阅读 · 0 评论 -
vscode ARM GDBserver reference
https://github.com/microsoft/vscode/issues/90288https://medium.com/@karel.l.vermeiren/cross-architecture-remote-debugging-using-gdb-with-visual-studio-code-vscode-on-linux-c0572794b4efhttps://medium.com/@spe_/debugging-c-c-programs-remotely-using-visua原创 2020-07-31 17:45:28 · 243 阅读 · 0 评论 -
Postman example
POST https://XXXXXX/api/portrait/get==> Body => raw ==> JSON==> Header Content-Type:application/jsonBody==> JSON(application/json){ "deviceIds": [ "XXXXX" ], "schoolId": "XXXXX", "accessToken": "string", "pageNum...原创 2020-06-19 09:13:35 · 373 阅读 · 0 评论 -
FolderTimeUpdate util for Windows
http://www.nirsoft.net/https://www.nirsoft.net/utils/folder_time_update.htmlFolderTimeUpdate v1.55 Copyright (c) 2014 - 2019 Nir Sofer DescriptionFolderTimeUpdate is a simple...转载 2019-12-13 11:46:25 · 156 阅读 · 0 评论 -
CMake build 32bit on 64bit platform
+# Uncomment the following line to debug the make system:+set(CMAKE_VERBOSE_MAKEFILE ON)diff --git a/CMakeLists.txt b/CMakeLists.txt+add_compile_options("-m32")+add_link_options("-m32")原创 2019-11-27 12:12:51 · 671 阅读 · 0 评论 -
RunAOSP-Emulator-Qemu-system-x86_64 for normal Linux_x86_64bit
jhula@ShSwDev2:~/software/qemu/x86-64bit$ /home/lake/git-aosp-AndroidN7.1.x/prebuilts/android-emulator/linux-x86_64/qemu/linux-x86_64/qemu-system-x86_64 -L /home/jhula/usr/share/qemu -kernel ./x86-...原创 2019-11-18 13:57:59 · 1075 阅读 · 0 评论 -
adb exec-out/binary transfer directly to host instead of tty/pty mangle
Unlike adb shell the adb exec-out command doesn't use pty which mangles the binary output. So you can doadb exec-out screencap -p > test.pnghttps://android.googlesource.com/platform/system/core/...原创 2019-11-14 14:37:04 · 334 阅读 · 0 评论 -
Winreshark filter
1. IPV4 only ip2. IPV4 only bacnet without dnsip && bacnet && (!dns)3. only 192.168.3.31ip && bacnet && (!dns) && (ip.addr == 192.168.3.31)4. Sin...原创 2019-11-13 16:06:57 · 299 阅读 · 0 评论 -
gcc -v -Werror -I$HOME/usr/include -Wl,--verbose y.c -L$HOME/lib -llua -ldl -
gcc -v -Werror -I$HOME/usr/include -Wl,--verbose your.c -L/home/lake/usr/lib -llua -ldl -lmNote1. -v print complie detail2. -Wl,--verbose print link detail3. -c compile on...原创 2019-11-08 16:43:17 · 267 阅读 · 0 评论 -
ADB/Android debug bridge command line-remote forward update app
1. make sure adb is listening on tcp port on device$host$ adb shellsetprop service.adb.tcp.port 5555restart adbd on device$host$ adb shell netstat -an -t Active Internet connections (se...原创 2019-10-31 13:50:34 · 159 阅读 · 0 评论 -
Kernel debug printk
$ cat /proc/sys/kernel/printk 7 4 1 7 current default minimum boot-time-defaultThe first integer shows you your current console_loglevel; the second the default log level that ...原创 2019-10-25 13:07:55 · 268 阅读 · 0 评论 -
Android debug bridge command line-adb shell tips -logcat filter /am/pm/dumpsys
## by grep, get rid of RMAPPadb logcat |grep --invert-match RMAPP## print tag of "ORE-CORE" only , others will be silent.adb logcat ORE-CORE:I *:S## print tag of "ORE-CORE" only fr...原创 2018-03-29 11:10:05 · 523 阅读 · 0 评论 -
Android/Kernel TP Debug Sleep-suspend/Wakeup
Android/TP/debug130|peony:/ # getevent -ladd device 1: /dev/input/event1 name: "qpnp_pon"could not get driver version for /dev/input/mice, Not a typewriteradd device 2: /dev/input/event0...原创 2019-10-18 10:15:50 · 2285 阅读 · 0 评论