aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-04-25 21:20:58 +0000
committerAndrew Cagney <cagney@redhat.com>2003-04-25 21:20:58 +0000
commitf75493ed72fbb8122921a3ef4380bb338c11b231 (patch)
tree0a63264a7f625e711eb6cba92b37dc19c035fd7b /gdb/frame.h
parent2202b100e879be88328b3f76993d10c9cb69c0f0 (diff)
downloadgdb-f75493ed72fbb8122921a3ef4380bb338c11b231.zip
gdb-f75493ed72fbb8122921a3ef4380bb338c11b231.tar.gz
gdb-f75493ed72fbb8122921a3ef4380bb338c11b231.tar.bz2
2003-04-25 Andrew Cagney <cagney@redhat.com>
* d10v-tdep.c (d10v_extract_return_value): Delete call to printf. (_initialize_d10v_tdep): Use add_setshow_boolean_cmd. (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC. (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ... (nr_dmap_regs, a0_regnum): ... new functions. (d10v_print_registers_info): Use a0_regnum, use register_size. (d10v_register_byte): Delete function. (d10v_register_raw_size): Delete function. (d10v_register_type): Use a0_regnum. (d10v_print_registers_info): Use a0_regnum. (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM. (d10v_gdbarch_init): Do not set register_byte or register_raw_size, use D10V_SP_REGNUM to set sp_regnum. (d10v_pointer_to_address): Use extract_unsigned_integer instead of extract_address. (trace_command): Use XCALLOC. (print_insn): Delete reference to tm_print_insn. (saved_regs_unwinder): Use store_unsigned_integer instead of store_address. * frame.h (FRAME_OBSTACK_CALLOC): Define
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index f33755a..b4db944 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -369,6 +369,7 @@ enum print_what
extern void *frame_obstack_zalloc (unsigned long size);
#define FRAME_OBSTACK_ZALLOC(TYPE) ((TYPE *) frame_obstack_zalloc (sizeof (TYPE)))
+#define FRAME_OBSTACK_CALLOC(NUMBER,TYPE) ((TYPE *) frame_obstack_zalloc ((NUMBER) * sizeof (TYPE)))
/* If legacy_frame_chain_valid() returns zero it means that the given
frame is the outermost one and has no caller.