Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gdb arm-m arch support #66

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/vcml/debugging/gdbarch.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ struct gdbarch {

static const gdbarch AARCH64;
static const gdbarch ARM;
static const gdbarch ARM_M;
static const gdbarch OR1K;
static const gdbarch RISCV;
};
Expand Down
8 changes: 8 additions & 0 deletions src/vcml/debugging/gdbarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ const gdbarch gdbarch::ARM = gdbarch(
"d11", "d12", "d13", "d14", "d15", "fpscr" } },
});

const gdbarch gdbarch::ARM_M = gdbarch(
"arm-m", "arm", "none",
{
{ "org.gnu.gdb.arm.m-profile",
{ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10",
"r11", "r12", "sp", "lr", "pc", "xpsr" } },
});

const gdbarch gdbarch::OR1K = gdbarch(
"or1k", "or1k", "none",
{
Expand Down