diff options
author | Tom Tromey <tromey@adacore.com> | 2022-09-12 07:04:21 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-10-31 09:04:11 -0600 |
commit | 7807dfae36d5c0435ac58711a5028f217800db60 (patch) | |
tree | 2a6ab1d179d22f1a31afadddec893750e453418f /gdb/gdbarch-gen.h | |
parent | 6c8912c64bcbfd109af0500577409690074e9d27 (diff) | |
download | fsf-binutils-gdb-7807dfae36d5c0435ac58711a5028f217800db60.zip fsf-binutils-gdb-7807dfae36d5c0435ac58711a5028f217800db60.tar.gz fsf-binutils-gdb-7807dfae36d5c0435ac58711a5028f217800db60.tar.bz2 |
Use enum for gdbarch's call_dummy_location
This changes gdbarch to use an enum for call_dummy_location, providing
a little more type safety.
Diffstat (limited to 'gdb/gdbarch-gen.h')
-rw-r--r-- | gdb/gdbarch-gen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbarch-gen.h b/gdb/gdbarch-gen.h index 840de58..e0d7a08 100644 --- a/gdb/gdbarch-gen.h +++ b/gdb/gdbarch-gen.h @@ -331,8 +331,8 @@ typedef CORE_ADDR (gdbarch_push_dummy_call_ftype) (struct gdbarch *gdbarch, stru extern CORE_ADDR gdbarch_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, function_call_return_method return_method, CORE_ADDR struct_addr); extern void set_gdbarch_push_dummy_call (struct gdbarch *gdbarch, gdbarch_push_dummy_call_ftype *push_dummy_call); -extern int gdbarch_call_dummy_location (struct gdbarch *gdbarch); -extern void set_gdbarch_call_dummy_location (struct gdbarch *gdbarch, int call_dummy_location); +extern enum call_dummy_location_type gdbarch_call_dummy_location (struct gdbarch *gdbarch); +extern void set_gdbarch_call_dummy_location (struct gdbarch *gdbarch, enum call_dummy_location_type call_dummy_location); extern bool gdbarch_push_dummy_code_p (struct gdbarch *gdbarch); |