diff options
author | David Smith <dsmith@redhat.com> | 2001-04-06 17:53:39 +0000 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2001-04-06 17:53:39 +0000 |
commit | e02bc4cc30e0425abebd623e4decd1bf37b9e3da (patch) | |
tree | c5adb383a78c39a2db58c5bed0ee16fa06be484d /gdb/gdbarch.h | |
parent | 1b2b2c1600019ff8869bb0d0bc9b1e42913c8c17 (diff) | |
download | gdb-e02bc4cc30e0425abebd623e4decd1bf37b9e3da.zip gdb-e02bc4cc30e0425abebd623e4decd1bf37b9e3da.tar.gz gdb-e02bc4cc30e0425abebd623e4decd1bf37b9e3da.tar.bz2 |
2001-04-06 David Smith <dsmith@redhat.com>
* arch-utils.c (default_prepare_to_proceed)
(generic_prepare_to_proceed): Added new functions.
* arch-utils.h: New function declarations for
default_prepare_to_proceed() and generic_prepare_to_proceed().
* gdbarch.sh: Added PREPARE_TO_PROCEED.
* gdbarch.c: Regenerated.
* gdbarch.h: Regenerated.
* inferior.h: Added get_last_target_status() declaration.
* infrun.c (get_last_target_status): Added new function.
(handle_inferior_event): Saves last pid and waitstatus, which will
get returned by get_last_target_status().
* hppa-tdep.c (prepare_to_proceed): Added comment stating that
prepare_to_proceed() is potentially redundant since
default_prepare_to_proceed() has been added.
* linux-thread.c (prepare_to_proceed): Ditto.
* lin-lwp.c (prepare_to_proceed): Ditto.
* m3-nat.c (prepare_to_proceed): Ditto.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 34891a4..548d5a0 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1215,6 +1215,20 @@ extern void set_gdbarch_decr_pc_after_break (struct gdbarch *gdbarch, CORE_ADDR #endif #endif +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (PREPARE_TO_PROCEED) +#define PREPARE_TO_PROCEED(select_it) (default_prepare_to_proceed (select_it)) +#endif + +typedef int (gdbarch_prepare_to_proceed_ftype) (int select_it); +extern int gdbarch_prepare_to_proceed (struct gdbarch *gdbarch, int select_it); +extern void set_gdbarch_prepare_to_proceed (struct gdbarch *gdbarch, gdbarch_prepare_to_proceed_ftype *prepare_to_proceed); +#if GDB_MULTI_ARCH +#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (PREPARE_TO_PROCEED) +#define PREPARE_TO_PROCEED(select_it) (gdbarch_prepare_to_proceed (current_gdbarch, select_it)) +#endif +#endif + extern CORE_ADDR gdbarch_function_start_offset (struct gdbarch *gdbarch); extern void set_gdbarch_function_start_offset (struct gdbarch *gdbarch, CORE_ADDR function_start_offset); #if GDB_MULTI_ARCH |