Thank you for responding, Himanshu.
Actually I wanted to check the value of registers, in order to verify if I am able to correctly load the program to the qemu.
I used the command you recommended.
Using the "-S -s" command opens the qemu window with a black screen, with the word "PAUSED" written in the title bar. After that when I run riscv-gdb and do target remote, I get the following lines
>> Remote debugging using :1234
>> 0x0000000000001000 in ?? ()
And if I try to do run, I get the following error
>> The "remote" target does not support "run". Try "help target" or "continue".
Typing "continue", leads to the terminal printing "Continuing.", followed by no blinking cursor (what looks like an infinite loop or pause).