当前位置: 首页 > news >正文

郑州中原影视城湖南seo优化推荐

郑州中原影视城,湖南seo优化推荐,怎样在网上做网站,国外域名备案tags: gdb categories: [Debug] 写在前面 gdb 的更新好快啊… 之前的选项都有改动了, 比如 logging… 需要屏幕重定向不能简单设置: set logging on set logging redirect on了, 而是要多开一个配置, 踩坑了 方法 在此之前先看一下我的 gdbinit 配置: set debuginfod e…

tags: gdb
categories: [Debug]

写在前面

gdb 的更新好快啊…

之前的选项都有改动了, 比如 logging…

需要屏幕重定向不能简单设置:

set logging on
set logging redirect on

了, 而是要多开一个配置, 踩坑了

方法

在此之前先看一下我的 gdbinit 配置:

set debuginfod enabled off
set pagination off

分别用于设置自动下载 Debug 信息和禁止分页(否则显示完一页之后就结束了)

步骤

[arch@archlinux gdb_test]$ gdb /bin/ls
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:<http://www.gnu.org/software/gdb/documentation/>.For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /bin/ls...
(No debugging symbols found in /bin/ls)
(gdb) b *0x555555559fa0
Breakpoint 1 at 0x555555559fa0
(gdb) set logging enabled on
Copying output to gdb.txt.
Copying debug output to gdb.txt.
(gdb) set logging redirect on
warning: Currently logging to gdb.txt.  Turn the logging off and on to make the new setting effective.
(gdb) set logging debugredirect on
warning: Currently logging to gdb.txt.  Turn the logging off and on to make the new setting effective.
(gdb) set logging enabled off
Done logging to gdb.txt.
(gdb) set logging enabled on
Redirecting output to gdb.txt.
Redirecting debug output to gdb.txt.
(gdb) r
(gdb) display /i $pc
(gdb) while 1>si>end

这里的测试脚本参考 了二进制分析实战一书.

上面的脚本内容就是从 entry point 进入程序, 然后单指令执行并打印 pc 指针的值(display 为自动变量)

需要注意的是, 上面的:

b *0x555555559fa0

不是随便指定的, 而是通过 startii files 查看的.

starti是跳到第一个指令的位置并暂停的新命令, 主要用于strip 之后的程序的进入点查询(例如本次测试用到的/bin/ls系统程序的调试)

核心步骤就是:

  • set logging enabled on
  • set logging redirect on
  • set logging debugredirect on
  • set logging enabled off # 用于刷新设置
  • show logging # 查看当前的 logging 设置, 非必要
  • set logging enabled on # 重新开启 logging 记录, 此时屏幕不会有任何输出

然后就可以通过 watch 监控或者 tail -f 监控来实现内容获取了, 这里还可以指定 logging 的文件名, 默认就是打开 gdb 的目录下的 gdb.txt 文件.

http://www.fp688.cn/news/155011.html

相关文章:

  • 泰安市人民政府网站四种基本营销模式
  • 做网站公司职务深圳关键词排名推广
  • 网站IcP在哪查怎么推广自己的微信
  • 广州网页设计网站郑州全域静态管理
  • app怎样下载安装seo关键词优化排名
  • 哪个酒店网站做的好看的找一个免费域名的网站
  • 新媒体营销案例分析黑帽seo排名优化
  • 他们怎么做的刷赞网站想建立自己的网站
  • 芜湖做网站优化附子seo教程
  • 网站内容采编怎么做天津网络推广seo
  • 图书网站开发背景百度权重是什么
  • 做淘客的网站关键词有哪些seo查询平台
  • 安全的企业网站开发潍坊百度seo公司
  • 请问做网站和编程哪个容易些山东服务好的seo公司
  • 佛山键讯科技有限公司百度谷歌seo优化
  • 做外汇看哪个网站电商网站设计论文
  • 建设b2b网站需要多少钱百度权重高的网站有哪些
  • 公司制作网站怎么做免费收录网站推广
  • 成都网站建设服务平台网络推广和竞价怎么做
  • 迪奥生物做图网站百度seo优化
  • 龙华网站建设服务百度网盘网页版登录首页
  • 江津哪里找做网站的ios aso优化工具
  • 一做特卖的网站白云区最新疫情
  • 网站规划的一般步骤什么是网络推广营销
  • 表白网站制作模板搜索引擎营销包括
  • 如何把网站一个栏目做301跳转百度电话怎么转人工客服
  • dz网站数据备份恢复西安建站推广
  • 小红书网站开发费用seo关键词词库
  • 邵阳做网站的公司企业公司网站建设
  • 郑州的网站建设网络搜索关键词排名