projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[AArch64][PATCH 2/3] Adjust a utility function for floating point values.
[deliverable/binutils-gdb.git]
/
gdb
/
mt-tdep.c
diff --git
a/gdb/mt-tdep.c
b/gdb/mt-tdep.c
index 22e1cbc093f06cba666465583ab4e5093bcd07a3..44983f0692af9acd5404a8ff518ab5b5b55dbab6 100644
(file)
--- a/
gdb/mt-tdep.c
+++ b/
gdb/mt-tdep.c
@@
-1,6
+1,6
@@
/* Target-dependent code for Morpho mt processor, for GDB.
/* Target-dependent code for Morpho mt processor, for GDB.
- Copyright (C) 2005-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2005-201
5
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-27,7
+27,6
@@
#include "dis-asm.h"
#include "arch-utils.h"
#include "gdbtypes.h"
#include "dis-asm.h"
#include "arch-utils.h"
#include "gdbtypes.h"
-#include "gdb_string.h"
#include "regcache.h"
#include "reggroups.h"
#include "gdbcore.h"
#include "regcache.h"
#include "reggroups.h"
#include "gdbcore.h"
@@
-35,7
+34,6
@@
#include "inferior.h"
#include "dwarf2-frame.h"
#include "infcall.h"
#include "inferior.h"
#include "dwarf2-frame.h"
#include "infcall.h"
-#include "gdb_assert.h"
#include "language.h"
#include "valprint.h"
#include "language.h"
#include "valprint.h"
@@
-202,7
+200,7
@@
mt_register_name (struct gdbarch *gdbarch, int regnum)
array_names[regnum] = stub;
return stub;
}
array_names[regnum] = stub;
return stub;
}
- name = xmalloc (30);
+ name =
(char *)
xmalloc (30);
sprintf (name, "copro_%d_%d_%s", dim_1, dim_2, stub);
array_names[regnum] = name;
return name;
sprintf (name, "copro_%d_%d_%s", dim_1, dim_2, stub);
array_names[regnum] = name;
return name;
@@
-417,7
+415,7
@@
mt_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
struct symbol *sym;
/* Found a function. */
struct symbol *sym;
/* Found a function. */
- sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL);
+ sym = lookup_symbol (func_name, NULL, VAR_DOMAIN, NULL)
.symbol
;
if (sym && SYMBOL_LANGUAGE (sym) != language_asm)
{
/* Don't use this trick for assembly source files. */
if (sym && SYMBOL_LANGUAGE (sym) != language_asm)
{
/* Don't use this trick for assembly source files. */
@@
-682,8
+680,8
@@
mt_registers_info (struct gdbarch *gdbarch,
regsize = register_size (gdbarch, regnum);
regsize = register_size (gdbarch, regnum);
- buff = alloca (regsize);
- bytes =
alloca (regsize * sizeof (*bytes)
);
+ buff =
(unsigned char *)
alloca (regsize);
+ bytes =
XALLOCAVEC (unsigned int, regsize
);
deprecated_frame_register_read (frame, regnum, buff);
deprecated_frame_register_read (frame, regnum, buff);
@@
-709,7
+707,7
@@
mt_registers_info (struct gdbarch *gdbarch,
gdb_byte *buf;
struct value_print_options opts;
gdb_byte *buf;
struct value_print_options opts;
- buf = alloca (register_size (gdbarch, MT_COPRO_REGNUM));
+ buf =
(gdb_byte *)
alloca (register_size (gdbarch, MT_COPRO_REGNUM));
deprecated_frame_register_read (frame, MT_COPRO_REGNUM, buf);
/* And print. */
regnum = MT_COPRO_PSEUDOREG_REGNUM;
deprecated_frame_register_read (frame, MT_COPRO_REGNUM, buf);
/* And print. */
regnum = MT_COPRO_PSEUDOREG_REGNUM;
@@
-851,7
+849,7
@@
mt_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* Right-justify the value in an aligned-length buffer. */
typelen = TYPE_LENGTH (value_type (args[j]));
slacklen = (wordsize - (typelen % wordsize)) % wordsize;
/* Right-justify the value in an aligned-length buffer. */
typelen = TYPE_LENGTH (value_type (args[j]));
slacklen = (wordsize - (typelen % wordsize)) % wordsize;
- val = xmalloc (typelen + slacklen);
+ val =
(gdb_byte *)
xmalloc (typelen + slacklen);
back_to = make_cleanup (xfree, val);
memcpy (val, contents, typelen);
memset (val + typelen, 0, slacklen);
back_to = make_cleanup (xfree, val);
memcpy (val, contents, typelen);
memset (val + typelen, 0, slacklen);
@@
-917,7
+915,7
@@
mt_frame_unwind_cache (struct frame_info *this_frame,
ULONGEST sp, fp;
if ((*this_prologue_cache))
ULONGEST sp, fp;
if ((*this_prologue_cache))
- return (*this_prologue_cache);
+ return (
struct mt_unwind_cache *) (
*this_prologue_cache);
gdbarch = get_frame_arch (this_frame);
info = FRAME_OBSTACK_ZALLOC (struct mt_unwind_cache);
gdbarch = get_frame_arch (this_frame);
info = FRAME_OBSTACK_ZALLOC (struct mt_unwind_cache);
@@
-1149,7
+1147,7
@@
mt_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* None found, create a new architecture from the information
provided. */
/* None found, create a new architecture from the information
provided. */
- tdep = XC
ALLOC (1,
struct gdbarch_tdep);
+ tdep = XC
NEW (
struct gdbarch_tdep);
gdbarch = gdbarch_alloc (&info, tdep);
set_gdbarch_float_format (gdbarch, floatformats_ieee_single);
gdbarch = gdbarch_alloc (&info, tdep);
set_gdbarch_float_format (gdbarch, floatformats_ieee_single);
This page took
0.026337 seconds
and
4
git commands to generate.