Hello
Actually I try to make a little dbg on MeOS, (im begginner) at first, I wanna to start a process from terminal. Ez task, but I want to print a number on terminal (processID), after to print buffer or string.
buffer:
db "Process launched succesfully", 10,13
db "PID: ",0
buffer_end:
....
code
....
mov rax, 256 ; syscall to start process
mov rbx, filename
mov rcx, 0
syscall
cmp rax, 0
jnz errr
mov [debugee_pid], rbx
mov rdx, buffer
mov r8, buffer_end - buffer
call send_line_to_terminal
How to match the buffer and pid. I dont know how to do.
To convert pid to ascii? How to do it ?
Someone that can help me.
Where to search more info about debuggers ?
thanks in advance...Sorry my bad english.