Lui*_*rzi 5 debugging emacs assembly gdb
我正在尝试使用gdb和Emacs调试汇编程序.我的问题是,当我尝试逐步调试时,它不会在当前执行行显示指针箭头.我正在尝试调试的代码是:
SECTION .data ; Section containing initialised data
EatMsg: db "Eat at Joe's!",10
EatLen: equ $-EatMsg
SECTION .bss ; Section containing uninitialized data
SECTION .text ; Section containing code
global _start ; Linker needs this to find the entry point!
_start:
nop ; This no-op keeps gdb happy...
mov eax,4 ; Specify sys_write call
mov ebx,1 ; Specify File Descriptor 1: Standard Output
mov ecx,EatMsg ; Pass offset of the message
mov edx,EatLen ; Pass the length of the message
int 80H ; Make kernel call
MOV eax,1 ; Code for Exit Syscall
mov ebx,0 ; Return a code of zero
int 80H ; Make kernel call
Run Code Online (Sandbox Code Playgroud)
我正在编译这些行:
nasm -f elf -g -F stabs eatsyscall.asm -l eatsyscall.lst
ld -melf_i386 -o eatsyscall eatsyscall.o
Run Code Online (Sandbox Code Playgroud)
我在Emacs中看到的是那个.在这个截图中,我正在断点之后执行该行,并且没有指向该行的指针.有可能有吗?

| 归档时间: |
|
| 查看次数: |
924 次 |
| 最近记录: |