projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix aarch64 ftrace JIT condition testcase
[deliverable/binutils-gdb.git]
/
gdb
/
rl78-tdep.c
diff --git
a/gdb/rl78-tdep.c
b/gdb/rl78-tdep.c
index a5861d82611921ba1ff04a1f10bd7c7c989f24e2..420ee868fa340a72cf60443ea8e5e1b3473674ab 100644
(file)
--- a/
gdb/rl78-tdep.c
+++ b/
gdb/rl78-tdep.c
@@
-1,6
+1,6
@@
/* Target-dependent code for the Renesas RL78 for GDB, the GNU debugger.
/* Target-dependent code for the Renesas RL78 for GDB, the GNU debugger.
- Copyright (C) 2011-201
5
Free Software Foundation, Inc.
+ Copyright (C) 2011-201
6
Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
Contributed by Red Hat, Inc.
@@
-851,7
+851,8
@@
opc_reg_to_gdb_regnum (int opcreg)
static int
rl78_get_opcode_byte (void *handle)
{
static int
rl78_get_opcode_byte (void *handle)
{
- struct rl78_get_opcode_byte_handle *opcdata = handle;
+ struct rl78_get_opcode_byte_handle *opcdata
+ = (struct rl78_get_opcode_byte_handle *) handle;
int status;
gdb_byte byte;
int status;
gdb_byte byte;
@@
-1104,10
+1105,11
@@
rl78_analyze_frame_prologue (struct frame_info *this_frame,
if (!func_start)
stop_addr = func_start;
if (!func_start)
stop_addr = func_start;
- rl78_analyze_prologue (func_start, stop_addr, *this_prologue_cache);
+ rl78_analyze_prologue (func_start, stop_addr,
+ (struct rl78_prologue *) *this_prologue_cache);
}
}
- return *this_prologue_cache;
+ return
(struct rl78_prologue *)
*this_prologue_cache;
}
/* Given a frame and a prologue cache, return this frame's base. */
}
/* Given a frame and a prologue cache, return this frame's base. */
@@
-1215,9
+1217,7
@@
rl78_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
else if (reg == 37)
return RL78_PC_REGNUM;
else
else if (reg == 37)
return RL78_PC_REGNUM;
else
- internal_error (__FILE__, __LINE__,
- _("Undefined dwarf2 register mapping of reg %d"),
- reg);
+ return -1;
}
/* Implement the `register_sim_regno' gdbarch method. */
}
/* Implement the `register_sim_regno' gdbarch method. */
@@
-1396,7
+1396,7
@@
rl78_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 =
(struct gdbarch_tdep *) xmalloc (sizeof (struct gdbarch_tdep)
);
+ tdep =
XNEW (struct gdbarch_tdep
);
gdbarch = gdbarch_alloc (&info, tdep);
tdep->elf_flags = elf_flags;
gdbarch = gdbarch_alloc (&info, tdep);
tdep->elf_flags = elf_flags;
This page took
0.032284 seconds
and
4
git commands to generate.