error (_("This architecture has no method to collect a return address."));
}
-int
+bool
default_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
struct type *type)
{
extern const char *default_auto_wide_charset (void);
-extern int default_return_in_first_hidden_param_p (struct gdbarch *,
- struct type *);
+extern bool default_return_in_first_hidden_param_p (struct gdbarch *,
+ struct type *);
extern int default_insn_is_call (struct gdbarch *, CORE_ADDR);
extern int default_insn_is_ret (struct gdbarch *, CORE_ADDR);
gdbarch->update_call_site_pc = update_call_site_pc;
}
-int
+bool
gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type)
{
gdb_assert (gdbarch != NULL);
implement it to a target-dependent feature. So that we need such hook here
to be aware of this in GDB. */
-typedef int (gdbarch_return_in_first_hidden_param_p_ftype) (struct gdbarch *gdbarch, struct type *type);
-extern int gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type);
+typedef bool (gdbarch_return_in_first_hidden_param_p_ftype) (struct gdbarch *gdbarch, struct type *type);
+extern bool gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, struct type *type);
extern void set_gdbarch_return_in_first_hidden_param_p (struct gdbarch *gdbarch, gdbarch_return_in_first_hidden_param_p_ftype *return_in_first_hidden_param_p);
typedef CORE_ADDR (gdbarch_skip_prologue_ftype) (struct gdbarch *gdbarch, CORE_ADDR ip);
implement it to a target-dependent feature. So that we need such hook here
to be aware of this in GDB.
""",
- type="int",
+ type="bool",
name="return_in_first_hidden_param_p",
params=[("struct type *", "type")],
predefault="default_return_in_first_hidden_param_p",
/* This is the implementation of gdbarch method
return_in_first_hidden_param_p. */
-static int
+static bool
m68k_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
struct type *type)
{
- return 0;
+ return false;
}
/* System V Release 4 (SVR4). */
/* This is the implementation of gdbarch method
return_in_first_hidden_param_p. */
-static int
+static bool
sh_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
struct type *type)
{
- return 0;
+ return false;
}
\f
/* This is the implementation of gdbarch method
return_in_first_hidden_param_p. */
-static int
+static bool
tic6x_return_in_first_hidden_param_p (struct gdbarch *gdbarch,
struct type *type)
{
- return 0;
+ return false;
}
static struct gdbarch *