pulp-platform / riscv-dbg

RISC-V Debug Support for our PULP RISC-V Cores
Other
218 stars 72 forks source link

Software Breakpoint #121

Closed sriharich20 closed 2 years ago

sriharich20 commented 2 years ago

Can some one explain how ebreak instruction will be replaced in the breakpoint address by GDB. Wheter ebreak is written to breakpoint address by using system bus access (SBA) or using program buffer?

bluewww commented 2 years ago

I think this depends on the debug software you are using. Both ways are possible.

sriharich20 commented 2 years ago

In this implementation how ebreak is replaced at software breakpoints address in instruction memory. How software breakpoints will be implemented if the application code is in flash memory

sriharich20 commented 2 years ago

I think this depends on the debug software you are using. Both ways are possible.

if the ebreak instruction is replaced by debugger configuring the program buffer then hart has to execute the program buffer which contains the instruction writing ebreak to the instruction memory is that possible