diff options
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 72156fd..39e8eb5 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -840,6 +840,15 @@ default_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, return 1; } +const gdb_byte * +default_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, + int *lenptr) +{ + int kind = gdbarch_breakpoint_kind_from_pc (gdbarch, pcptr); + + return gdbarch_sw_breakpoint_from_kind (gdbarch, kind, lenptr); +} + void default_gen_return_address (struct gdbarch *gdbarch, struct agent_expr *ax, struct axs_value *value, |