一、常用快捷键命令 简写形式 说明backtrace bt、where 显示backtracebreak b 设置断点continue c、cont 继续执行delete d 删除断点finish 运行到函数结束info breakpoints 显示断点信息next n 执行下一行print p 显示表达式run r 运行程序step s 一次执行一行,包括函数内部x 显示内存内容until
首先我们要都知道, &表示按位与,只有两个位同时为1,才能得到1, 0x代表16进制数,0xff表示的数二进制1111 1111 占一个字节.和其进行&操作的数,最低8位,不会发生变化.下面着重来说说&0xff都有哪些应用:1.只是为了取得低八位通常配合移位操作符>>使用例如:java socket通信中基于长度的成帧方法中,如果发送的信息长度小于65535字节,长度信息的字节定义为两个字节长度。这时候将两个字节长的长度信息,以Big-Endian的方式写到内存中out.write((message.length>>8)&0xff);//取高八位写入地址out.write(message.length&0xff);//取低八位写入高地址中例如,有个数字 0x1234,如果只想将低8位写入到内存中 0x1234&0xff0x1234 表示为二进制 00010010001101000xff 表示为二进制 11111111两个数做与操作,显然将0xff补充到16位,就是高位补0此时0xff 为 0000000011111111与操作 1&0 =0 1&1 =1 这样
1.OD(1)视图、查看相关:Alt+l 记录Alt+e 可执行模块Alt+m 内存Alt+c cpu(反汇编视图)Ctrl+p 补丁Alt+k 调用堆栈Alt+b 断点Alt+f5 设置窗口总在最前Alt+o 调试选项Alt+F3 - 关闭当前窗口。Ctrl+F4 - 关闭当前窗口。F5 - 最大化当前窗口或将当前窗口大小改为正常化。F6 - 切换到下一个窗口。Shift+F6 - 切换到前一个窗口。F10 - 打开与当前窗口或面板相关的快捷菜单。左方向键 - 显示窗口左方一个字节宽度的内容阿。Ctrl+左方向键 - 显示窗口左方一栏的内容。右方向键 - 显示窗口右方一个字节宽度的内容Ctrl+右方向键 - 显示窗口右方一栏的内容(2)调试、断点相关:f9 运行Ctrl+f9 执行到返回(retn指令处)Alt+f9 执行到用户代码f12 暂停f2 设断点Ctrl+f2 重新开始Alt+f2 关闭Shift+f2 设置条件断点f7 单步步入Ctrl+f7 自动步入Ctrl+f11 跟踪步入f8 单步步过Ctrl+f8 自动步过Ctrl+f12 跟踪步过Ctrl+t 设置run跟踪
Norman1z