X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fbfin-tdep.c;h=4532e1b8535027ed28673a295ce1a693e4c76788;hb=32b40af94e919e235c21486110311647cbeecf2e;hp=6d4859a082b3092f968663d8aecfa57f9bc08df2;hpb=8f8a23a2c397294ab562c6cf7020679f85b921ec;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c index 6d4859a082..4532e1b853 100644 --- a/gdb/bfin-tdep.c +++ b/gdb/bfin-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for Analog Devices Blackfin processor, for GDB. - Copyright (C) 2005-2012 Free Software Foundation, Inc. + Copyright (C) 2005-2015 Free Software Foundation, Inc. Contributed by Analog Devices, Inc. @@ -20,7 +20,6 @@ along with this program. If not, see . */ #include "defs.h" -#include "gdb_string.h" #include "inferior.h" #include "gdbcore.h" #include "arch-utils.h" @@ -30,7 +29,6 @@ #include "frame-base.h" #include "trad-frame.h" #include "dis-asm.h" -#include "gdb_assert.h" #include "sim-regno.h" #include "gdb/sim-bfin.h" #include "dwarf2-frame.h" @@ -503,7 +501,7 @@ bfin_push_dummy_call (struct gdbarch *gdbarch, { enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - char buf[4]; + gdb_byte buf[4]; int i; long reg_r0, reg_r1, reg_r2; int total_len = 0; @@ -574,11 +572,11 @@ bfin_reg_to_regnum (struct gdbarch *gdbarch, int reg) return map_gcc_gdb[reg]; } -/* This function implements the BREAKPOINT_FROM_PC macro. It returns - a pointer to a string of bytes that encode a breakpoint instruction, - stores the length of the string to *lenptr, and adjusts the program - counter (if necessary) to point to the actual memory location where - the breakpoint should be inserted. */ +/* This function implements the 'breakpoint_from_pc' gdbarch method. + It returns a pointer to a string of bytes that encode a breakpoint + instruction, stores the length of the string to *lenptr, and + adjusts the program counter (if necessary) to point to the actual + memory location where the breakpoint should be inserted. */ static const unsigned char * bfin_breakpoint_from_pc (struct gdbarch *gdbarch, @@ -615,7 +613,7 @@ bfin_extract_return_value (struct type *type, ULONGEST tmp; int regno = BFIN_R0_REGNUM; - gdb_assert (TYPE_LENGTH (type) <= 8); + gdb_assert (len <= 8); while (len > 0) { @@ -643,7 +641,7 @@ bfin_store_return_value (struct type *type, int len = TYPE_LENGTH (type); int regno = BFIN_R0_REGNUM; - gdb_assert (TYPE_LENGTH (type) <= 8); + gdb_assert (len <= 8); while (len > 0) { @@ -818,7 +816,7 @@ bfin_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return arches->gdbarch; } - tdep = XMALLOC (struct gdbarch_tdep); + tdep = XNEW (struct gdbarch_tdep); gdbarch = gdbarch_alloc (&info, tdep); tdep->bfin_abi = abi;