diff options
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 3da3c2713a6..93da7c86ca9 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -38,6 +38,7 @@ #include "annotate.h" #endif #include "regcache.h" +#include "gdb_assert.h" #include "version.h" @@ -322,6 +323,19 @@ cannot_register_not (int regnum) { return 0; } + +/* Legacy version of target_virtual_frame_pointer(). Assumes that + there is an FP_REGNUM and that it is the same, cooked or raw. */ + +void +legacy_virtual_frame_pointer (CORE_ADDR pc, + int *frame_regnum, + LONGEST *frame_offset) +{ + gdb_assert (FP_REGNUM >= 0); + *frame_regnum = FP_REGNUM; + *frame_offset = 0; +} /* Functions to manipulate the endianness of the target. */ |