Is it possible for replacing the instruction at breakpoint address if the memory is of flash type. If possible can you explain how it is possible.
Per my understanding, you can set memory type for an area as read-only for GDB. Then gdb will use HW breakpoint if PC locates in the area.
From: Jim Wilson <jim.wil...@gmail.com>
Sent: Saturday, December 25, 2021 2:53 AM
To: Srihari Chadalawada <chadalawad...@gmail.com>
Cc: RISC-V SW Dev <sw-...@groups.riscv.org>; tommy_...@hotmail.com <tommy_...@hotmail.com>; dhara...@gmail.com <dhara...@gmail.com>
Subject: Re: [sw-dev] Clarification on setting software breakpoint
|
External email: Use caution opening links or attachments |
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
sw-dev+un...@groups.riscv.org.
To view this discussion on the web visit
https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/CALNwTfy8tVumZTFTfNrdgZtuLK_DDktwb4sTm7aetVqYCHM%2Bew%40mail.gmail.com.
That's correct for OpenOCD but not when using gdb "directly" on the RISC-V platform or via a non OpenOCD gdb server/stub according to what Jim posted earlier.