English 中文(简体)
• 如何减少集合方案?
原标题:How to debug an assembled program?

我有一份书面文件,显示有一部分故障。 http://www.ohchr.org。

我的问题是,如何与亚洲开发银行一道缩减一个组装语言方案?

当我试图在亚洲开发银行管理并做回事时,我得不到有意义的信息。 (Just hexlacks)

我怎么能够辩论方案?

(在乌兰巴托使用国家宇宙航行局,如果这样做有帮助的话。)

最佳回答

我只是将它直接装入<条码>gdb,并通过它指示,监测所有登记和记忆内容。

我确信,我不告诉你你你不知道什么,但该方案似乎很简单,足以证明采取这种做法。 我将留下像背道(甚至破碎点)那样的 de滴滴滴滴滴滴滴滴滴滴,用于制定更为复杂的法典。

关于具体问题(以下简称编码):

        extern   printf

        SECTION  .data
format: db       "%d",0

        SECTION  .bss
v_0:    resb      4

        SECTION  .text
        global main
main:
        push      5
        pop       eax
        mov       [v_0], eax
        mov       eax, v_0
        push      eax
        call      printf

你似乎只是把5条推到记忆中后面的5条地址(v_0)。 如果你想要打上<条码>f<>印/代码>,我很有理由相信,如果你想说的话,你将不得不在某个时候推介显示格式的地址。 这样做不会是为了得到一种流ogue的形式。

阁下:

mov eax, v_0

应:

mov eax, format

和I m假设<>,在打电话到后,你就不再进口(否则,如果返回,你就永远不会去土地)。

问题回答

您在将编码(与电离层)联系起来时仍然能够与Stabs标识组。

I reccomend using YASM, and assembling with -dstabs Options:

$ yasm -felf64 -mamd64 -dstabs file.asm

这就是我如何召集我的大会方案。

《国家宇宙航行安全法》和《国际宇宙航行科学院法典》在大部分方面是可相互交流的(国际宇宙航行科学院有一些延伸,但每个《国家宇宙航行安全法》都与亚马斯大体共同组成)。

我利用电能把我所收集的物体档案连接在一起,或与C或C++编码进行汇编。 在使用gcc时,我使用-gstabs+将其编成标记。





相关问题
tell gdb to disassemble "unknown" code

is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a ...

C++ Netbeans debugging issues

I installed netbeans6.7.1 ide for c/c++ also i have mingw/msys cygwin installed and i have given C:Msysin as environment variable path.It has gdb7 version.However wheni run dbugging thru netbeans ...

setting strings in gdb

c++: int main() { string a = "a"; ... ... } when i debug in gdb: (gdb) set var a = "ok" Invalid cast I run the program and pause at a break point after string a has been ...

How to debug programms written in fasm under linux using gdb?

I wrote simple "hello, world" in fasm, and its works, but how i can generate debug info for gdb and edb (Evan s Debugger)? Fasm compiler could only produce debugging symbols in its specific format - "...

How can I display Unicode strings while debugging on linux?

I have been working for some years now as C++ Developer using MS Visual Studio as working platform. Since I privately prefer to use linux, I recently took the chance to move my working environment to ...

Continue to debug after failed assertion on Linux?

When an assertion fails with Visual C++ on Windows, the debugger stops, displays the message, and then lets you continue (or, if no debugging session is running, offers to launch visual studio for you)...