Other GDB tui mode does not work

samun

New Member


Messages: 2

Good afternoon!
I used the small program for nasm x86
Code:
section .data
  hello:     db 'Hello world!',10    ; 'Hello world!' plus a linefeed character
  helloLen:  equ $-hello             ; Length of the 'Hello world!' string
                                     ; (I'll explain soon)
section .text
global _start
_start:

mov eax, 4          ; sys_write system call
push dword helloLen         ; output length
push dword hello  ; memory address
push dword 1         ; write to standard output
push eax
int 0x80

mov eax,1            ; The system call for exit (sys_exit)
push dword 0            ; Exit with return code of 0 (no error)
push eax
int 0x80

Compiled
Code:
nasm -f elf V02_H.asm
ld -s -o V02_H  V02_H.o
./V02_H

6084

I would like to execute step-by-step debugging the program to see as it works (as I did it in AFDPro)
for this purpose I made as shown in video video GDB tui mode (1:45 c)
Code:
gdb -q ./V02_H -tui
6085


if I execute the run command that the program works as it is necessary
6086


when I do as on video
Code:
break _start

I give an error message
Code:
No symbol table is loaded.  Use the "file" command.
6087


What am I doing wrong?
 
Last edited by a moderator:
Top