diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-15 23:10:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-15 23:10:55 +0000 |
commit | 10312cc4d25cc384e349900124dacff806955797 (patch) | |
tree | 8374ffa3ffdc22353254f7aa9fc6e3dccb986038 /gdb/gdbarch.h | |
parent | dd80620e6b85a692434015686adb5e0242734089 (diff) | |
download | gdb-10312cc4d25cc384e349900124dacff806955797.zip gdb-10312cc4d25cc384e349900124dacff806955797.tar.gz gdb-10312cc4d25cc384e349900124dacff806955797.tar.bz2 |
Multi-arch INIT_FRAME_PC() and INIT_FRAME_PC_FIRST().
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index ddea0c0..5700e37 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -789,6 +789,34 @@ extern void set_gdbarch_fix_call_dummy (struct gdbarch *gdbarch, gdbarch_fix_cal #endif #endif +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (INIT_FRAME_PC_FIRST) +#define INIT_FRAME_PC_FIRST(fromleaf, prev) (init_frame_pc_noop (fromleaf, prev)) +#endif + +typedef void (gdbarch_init_frame_pc_first_ftype) (int fromleaf, struct frame_info *prev); +extern void gdbarch_init_frame_pc_first (struct gdbarch *gdbarch, int fromleaf, struct frame_info *prev); +extern void set_gdbarch_init_frame_pc_first (struct gdbarch *gdbarch, gdbarch_init_frame_pc_first_ftype *init_frame_pc_first); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (INIT_FRAME_PC_FIRST) +#define INIT_FRAME_PC_FIRST(fromleaf, prev) (gdbarch_init_frame_pc_first (current_gdbarch, fromleaf, prev)) +#endif +#endif + +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (INIT_FRAME_PC) +#define INIT_FRAME_PC(fromleaf, prev) (init_frame_pc_noop (fromleaf, prev)) +#endif + +typedef void (gdbarch_init_frame_pc_ftype) (int fromleaf, struct frame_info *prev); +extern void gdbarch_init_frame_pc (struct gdbarch *gdbarch, int fromleaf, struct frame_info *prev); +extern void set_gdbarch_init_frame_pc (struct gdbarch *gdbarch, gdbarch_init_frame_pc_ftype *init_frame_pc); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (INIT_FRAME_PC) +#define INIT_FRAME_PC(fromleaf, prev) (gdbarch_init_frame_pc (current_gdbarch, fromleaf, prev)) +#endif +#endif + extern int gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch); extern void set_gdbarch_believe_pcc_promotion (struct gdbarch *gdbarch, int believe_pcc_promotion); #if GDB_MULTI_ARCH |