c - 如何在 pwndbg 中为使用 -g 选项编译的可执行文件打印更多代码行?
问题描述
我想用于使用选项pwndbg
编译的可执行文件-g
,我想查看pwndbg
. 使用命令context code
仅显示 8 行代码:
1 #include <stdio.h>
2
► 3 int main() {
4 unsigned int a = 4127;
5 int b = -27714;
6 short c = 1475;
7 int v[] = {0xCAFEBABE, 0xDEADBEEF, 0x0B00B135, 0xBAADF00D, 0xDEADC0DE};
8
不幸的是,我需要更多的行,并且该命令context code <number_of_lines>
不起作用。还有其他方法可以打印更多行代码吗?
解决方案
推荐阅读
- python - 如何在 Windows/Anaconda 终端上运行 .py 文件?
- python - 计算 Numpy 数组的 n 长度的滚动平均值
- java - 无法使用 itextpdf 阅读 PDF
- java - java - 如何在具有泛型参数和返回类型方法的java中使用反射获取类的实例?
- flutter - Dart 命名构造函数 vs 静态方法更喜欢什么?
- python - 如何使用 Django Rest Framework 在 CRUD API 中使用其他 URL
- git-lfs - GitAhead 大文件存储
- kubernetes - 如何在 Kubernetes 中为 statefulsets 资源设置适当的权限?
- json - 如何在 file_get_content 的结果中忽略 PHP 通知?
- reactjs - 等待 react-router history.goBack 完成