TypechoJoeTheme

安逸

统计
登录
用户名
密码

最新文章

2023-11-08

汇编与机器码

汇编与机器码
一、单字节指令06     push es    (注:以下的 es cs ss ds 都是段寄存器) 07     pop es 0e     push cs 16     push ss 17     pop ss 1e     push ds 1f      pop ds 26     es 27     daa            (注:加法后的十进制调整) 2e     cs 2f      das            (注:减法后的十进制调整) 36     ss 37     aaa            (注:加法后的ASCII调整) 3e     ds 3f     aas             (注:减法后的ASCII调整) 40     inc eax 41     inc ecx 42     inc edx 43     inc ebx 44     inc esp 45     inc ebp 46     inc esi 47     inc edi 48     dec eax 49     dec ecx 4a     dec edx 4b...
2023年11月08日
124 阅读
0 评论
2023-09-08

GDB与LLDB常用调试指令

GDB与LLDB常用调试指令
LLDBlldb启动lldb 启动到文件上file xxxx 执行run 单步s 单步进入 si 单指令 f 结束 c 继续 n 下一步,不进入子函数 反汇编dis dis -p dis -c 10 dis -p -c 10 断点b --n functionname 用函数名称加断点x b --f filenmae --l xx 用文件的多少行加断点 b fun.cpp:32 b list b -a 0x100004207 栈帧f 0 查看栈0 f 3 倒数第3层 寄存器re r 查看寄储器 re r rax 查看内存memory read 0xXXXXX 查看内存 m read 0xXXXX 查看变量p xxxxx 查看变量 p *infoPtr expr -f bin -- infoPtr->reRIP expr -f hex -- infoPtr->reRIP GDB断点b core.h:41 b test.cpp:48 if(aiTest == 18 && biTest == 19) 条件断点,if (xxx),其中 if 与(最好有空格) b...
2023年09月08日
142 阅读
0 评论
2023-09-01

shell脚本中的if 参数-a至-z

shell脚本中的if 参数-a至-z
shell脚本中的if 参数-a至-z[-a file] 如果file存在则为真 不过貌似有时候-a表示为and:条件与在[] 表达式中,常见的>,<需要加转义字符,表示字符串大小比较,以acill码 位置作为比较。 不直接支持<>运算符,还有逻辑运算符|| && 它需要用-a[and] –o[or]表示[-b file] 如果file存在且是一个块特殊文件则为真 [-c file] 如果file存在且是一个字特殊文件则为真 [-d file] 如果file文件存在且是一个目录则为真 -d前的!是逻辑非 例如: if [ ! -d $lcd_path/$par_date ] 表示后面的那个目录不存在,则执行后面的then操作 [-e file] 如果file文件存在则为真 [-f file] 如果file存在且是一个普通文件则为真 [-g file] 如果file存在且已经设置了SGID则为真(SUID 是 Set User ID, SGID 是 Set Group ID的意思) [-h file] 如果file存在且是一个符号连接则为真 [-k file...
2023年09月01日
152 阅读
0 评论
2022-07-26

debian11编译buildroot老版本错误记录

debian11编译buildroot老版本错误记录
1.root权限编译host-tar checking whether mknod can create fifo without root privileges... configure: error export FORCE_UNSAFE_CONFIGURE=1 2.gnulib版本不匹配 #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib." 进入对应文件夹sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h 3.gcc版本大于10 dtc-parser.tab.o:(.bss+0x10): multiple definition...
2022年07月26日
3,283 阅读
0 评论