gdb中汇编代码的含义

发布于 2024-12-10 08:58:31 字数 583 浏览 4 评论 0原文

再会! 我有一个核心文件,我反汇编了(使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹雨成花 2024-12-17 08:58:31

r44 赋值几乎肯定不会导致崩溃。

请编辑您的问题以提供 GDB wheredisasinfo registers 命令的输出。然后我们应该能够准确地告诉您它崩溃的位置(以及可能的原因)。

Assigning a value to r44 almost certainly does not cause a crash.

Please edit your question to supply output from GDB where, disas and info registers commands. Then we should be able to tell you precisely where it crashed (and possibly why).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文