gdb中汇编代码的含义
再会! 我有一个核心文件,我反汇编了(使用 gdb)该方法 崩溃了,我被告知分配给下面的 r44 的值 导致崩溃。
我不太熟悉汇编,所以我想问一下什么是 0x480偏移量的意思以及如何定位它的值?/地址?通过使用 gdb 中的核心文件。
假设 0x480 位于函数中是否安全 MovePage()?
;;; 1052 if( MovePage( len ) == FALSE ) {
0xc00000000c0c55c0:2 <TMF::PrintLog(char*)+0x32>: adds r44=0x480,r32;;
0xc00000000c0c55d0:0 <TMF::PrintLog(char*)+0x40>: ld8 r43=[ret2]
0xc00000000c0c55d0:1 <TMF::PrintLog(char*)+0x41>: (p6) st4 [r35]=ret3
提前致谢。
Good day!
I have a core file, and I disassembled (using gdb) the method that
crashed and I was told that the the value assigned to r44 below
causes the crash.
I am not well verse with assembly so I would like to ask what does
0x480 offset mean and how to locate its value?/address? by using
the core file in gdb.
Is it safe to assume that 0x480 is located in the function
MovePage()?
;;; 1052 if( MovePage( len ) == FALSE ) {
0xc00000000c0c55c0:2 <TMF::PrintLog(char*)+0x32>: adds r44=0x480,r32;;
0xc00000000c0c55d0:0 <TMF::PrintLog(char*)+0x40>: ld8 r43=[ret2]
0xc00000000c0c55d0:1 <TMF::PrintLog(char*)+0x41>: (p6) st4 [r35]=ret3
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为
r44
赋值几乎肯定不会导致崩溃。请编辑您的问题以提供 GDB
where
、disas
和info registers
命令的输出。然后我们应该能够准确地告诉您它崩溃的位置(以及可能的原因)。Assigning a value to
r44
almost certainly does not cause a crash.Please edit your question to supply output from GDB
where
,disas
andinfo registers
commands. Then we should be able to tell you precisely where it crashed (and possibly why).