当前位置:网站首页>如何在gdb里打印unicode 16(utf-16) C#的字符串
如何在gdb里打印unicode 16(utf-16) C#的字符串
2022-07-21 11:30:00 【aerror】
使用调用unity3d的il2cpp的时候,往往需要看看一下字符,但是这个c#的字符串是一个对象来的,并且是一个16bit的方式一个字符的unicode编码。
x/hs addr
效果如下:
(gdb) x/hs 0x779f8e8c
0x779f8e8c: u"I am the unicode strings"
//断点Resources.Load之后,打印一下传入的文件的名字.
Breakpoint 2, Resources_Load_TisRuntimeObject_m2B4657C4B7BB759A295E6F956D014FC1122DD3D8_gshared (___path0=0x7ab587a8, method=0x7bf85500)
//偏移是第一个参数+0xc
(gdb) x/hs $r0+0xc
0x7ab587b4: u"I am the file name"
边栏推荐
- PWN的学习
- System
- [CCF CSP] 201612-1 median
- 数据库原理及应用
- 50 places are limited to open | with the news of oceanbase's annual press conference coming!
- When idea creates a folder, the empty folder of the folder expands and overlaps
- XLNet:运行机制及和Bert的异同比较——摘要总结
- [CCF CSP] 201709-1 dozen soy sauce
- gadget之usb_function
- 3.3栈和队列的应用
猜你喜欢
随机推荐
TCL/TK文件操作
判断是否完全二叉树
Web
Collation of common tools in commons Lang
gadget之usb_function
【CCF CSP】201509-1数列分段
PCIE链路初始化&训练
密码学知识-加密介绍-1
【CCF CSP】201712-1最小差值
UDC of gadget
Collation of tools and methods commonly used by guava
Monai label -- use AI to accelerate your segmentation annotation
PWN的学习
判断是否平衡二叉树
DDR SDRAM板卡设计指南
[CCF CSP] 201604-1 break point count
12306 ticket grabbing artifact
NFTScan 与 Port3 在 NFT 数据领域达成战略合作
shell运算符-数学运算,关系运算,字符串运算,文件检测运算
【CCF CSP】201412-1门禁系统