Skip to content

Commit

Permalink
CLI: Introduce -gdbstub [addr:port] argument
Browse files Browse the repository at this point in the history
  • Loading branch information
LekKit committed Dec 22, 2024
1 parent d44831f commit 74d5162
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include "rvvm_isolation.h"
#include "utils.h"
#include "dlib.h"
#include "gdbstub.h"

#include "devices/clint.h"
#include "devices/plic.h"
Expand Down Expand Up @@ -220,6 +221,10 @@ static int rvvm_cli_main(int argc, char** argv)
rtc_goldfish_init_auto(machine);
syscon_init_auto(machine);

if (rvvm_has_arg("gdbstub")) {
gdbstub_init(machine, rvvm_getarg("gdbstub"));
}

if (!rvvm_has_arg("serial")) {
ns16550a_init_term_auto(machine);
}
Expand Down

0 comments on commit 74d5162

Please sign in to comment.