projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arc: Add a gdbarch_tdep structure
[deliverable/binutils-gdb.git]
/
gdb
/
arc-tdep.c
diff --git
a/gdb/arc-tdep.c
b/gdb/arc-tdep.c
index 6048ad6874ca4c2d09433e88ede0308517f4dcfc..58de8e9c868d4599de83684c5a068c5a07217c36 100644
(file)
--- a/
gdb/arc-tdep.c
+++ b/
gdb/arc-tdep.c
@@
-574,8
+574,9
@@
arc_return_value (struct gdbarch *gdbarch, struct value *function,
|| TYPE_LENGTH (valtype) > 2 * ARC_REGISTER_SIZE);
if (arc_debug)
|| TYPE_LENGTH (valtype) > 2 * ARC_REGISTER_SIZE);
if (arc_debug)
- debug_printf ("arc: return_value (readbuf = %p, writebuf = %p)\n",
- readbuf, writebuf);
+ debug_printf ("arc: return_value (readbuf = %s, writebuf = %s)\n",
+ host_address_to_string (readbuf),
+ host_address_to_string (writebuf));
if (writebuf != NULL)
{
if (writebuf != NULL)
{
@@
-875,9
+876,6
@@
static struct value *
arc_frame_prev_register (struct frame_info *this_frame,
void **this_cache, int regnum)
{
arc_frame_prev_register (struct frame_info *this_frame,
void **this_cache, int regnum)
{
- if (arc_debug)
- debug_printf ("arc: frame_prev_register (regnum = %d)\n", regnum);
-
if (*this_cache == NULL)
*this_cache = arc_make_frame_cache (this_frame);
struct arc_frame_cache *cache = (struct arc_frame_cache *) (*this_cache);
if (*this_cache == NULL)
*this_cache = arc_make_frame_cache (this_frame);
struct arc_frame_cache *cache = (struct arc_frame_cache *) (*this_cache);
@@
-1161,7
+1159,10
@@
arc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
if (!arc_tdesc_init (info, &tdesc, &tdesc_data))
return NULL;
if (!arc_tdesc_init (info, &tdesc, &tdesc_data))
return NULL;
- struct gdbarch *gdbarch = gdbarch_alloc (&info, NULL);
+ /* Allocate the ARC-private target-dependent information structure, and the
+ GDB target-independent information structure. */
+ struct gdbarch_tdep *tdep = XCNEW (struct gdbarch_tdep);
+ struct gdbarch *gdbarch = gdbarch_alloc (&info, tdep);
/* Data types. */
set_gdbarch_short_bit (gdbarch, 16);
/* Data types. */
set_gdbarch_short_bit (gdbarch, 16);
This page took
0.023241 seconds
and
4
git commands to generate.