当我调试nasm巫婆gdb时,“找不到调试符号”返回

时间:2018-02-11 03:07:10

标签: debugging assembly x86 gdb nasm

SECTION .DATA
hello:     db 'Hello world!',10
helloLen:  equ $-hello

; Code goes in the text section
SECTION .TEXT
;GLOBAL _start
GLOBAL main

;_start:
main:
mov eax,4            ; 'write' system call = 4
mov ebx,1            ; file descriptor 1 = STDOUT
mov ecx,hello        ; string to write
mov edx,helloLen     ; length of string to write
int 80h              ; call the kernel

; Terminate program
mov eax,1            ; 'exit' system call
mov ebx,0            ; exit with error code 0
int 80h              ; call the kernel

我的命令:nasm -f elf64 hello.asm -g -F stabs;gcc -o hello hello.o -g

gdb仍然给了我Reading symbols from /home/work/code/nasm/hello...(no debugging symbols found)...done并且我设置的断点不起作用

0 个答案:

没有答案