projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skip gdb.base/branch-to-self.exp if gdb,nosignals exists
[deliverable/binutils-gdb.git]
/
gdb
/
score-tdep.c
diff --git
a/gdb/score-tdep.c
b/gdb/score-tdep.c
index 9cd50380e8e7d0f2a911c473478f09b284476520..9b7008cb3efe9ca5fd9b24867efe52455d40b934 100644
(file)
--- a/
gdb/score-tdep.c
+++ b/
gdb/score-tdep.c
@@
-1,7
+1,7
@@
/* Target-dependent code for the S+core architecture, for GDB,
the GNU Debugger.
/* Target-dependent code for the S+core architecture, for GDB,
the GNU Debugger.
- Copyright (C) 2006-201
5
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
6
Free Software Foundation, Inc.
Contributed by Qinwei (qinwei@sunnorth.com.cn)
Contributed by Ching-Peng Lin (cplin@sunplus.com)
Contributed by Qinwei (qinwei@sunnorth.com.cn)
Contributed by Ching-Peng Lin (cplin@sunplus.com)
@@
-737,8
+737,10
@@
score3_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
return pc;
}
return pc;
}
+/* Implement the stack_frame_destroyed_p gdbarch method. */
+
static int
static int
-score7_
in_function_epilogue
_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
+score7_
stack_frame_destroyed
_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
{
inst_t *inst = score7_fetch_inst (gdbarch, cur_pc, NULL);
{
inst_t *inst = score7_fetch_inst (gdbarch, cur_pc, NULL);
@@
-761,8
+763,10
@@
score7_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
return 0;
}
return 0;
}
+/* Implement the stack_frame_destroyed_p gdbarch method. */
+
static int
static int
-score3_
in_function_epilogue
_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
+score3_
stack_frame_destroyed
_p (struct gdbarch *gdbarch, CORE_ADDR cur_pc)
{
CORE_ADDR pc = cur_pc;
inst_t *inst
{
CORE_ADDR pc = cur_pc;
inst_t *inst
@@
-821,7
+825,7
@@
score7_malloc_and_get_memblock (CORE_ADDR addr, CORE_ADDR size)
else if (size == 0)
return NULL;
else if (size == 0)
return NULL;
- memblock = xmalloc (size);
+ memblock =
(gdb_byte *)
xmalloc (size);
memset (memblock, 0, size);
ret = target_read_memory (addr & ~0x3, memblock, size);
if (ret)
memset (memblock, 0, size);
ret = target_read_memory (addr & ~0x3, memblock, size);
if (ret)
@@
-1318,7
+1322,7
@@
score_make_prologue_cache (struct frame_info *this_frame, void **this_cache)
struct score_frame_cache *cache;
if ((*this_cache) != NULL)
struct score_frame_cache *cache;
if ((*this_cache) != NULL)
- return (*this_cache);
+ return (
struct score_frame_cache *) (
*this_cache);
cache = FRAME_OBSTACK_ZALLOC (struct score_frame_cache);
(*this_cache) = cache;
cache = FRAME_OBSTACK_ZALLOC (struct score_frame_cache);
(*this_cache) = cache;
@@
-1334,15
+1338,17
@@
score_make_prologue_cache (struct frame_info *this_frame, void **this_cache)
return cache;
if (target_mach == bfd_mach_score3)
return cache;
if (target_mach == bfd_mach_score3)
- score3_analyze_prologue (start_addr, pc, this_frame, *this_cache);
+ score3_analyze_prologue (start_addr, pc, this_frame,
+ (struct score_frame_cache *) *this_cache);
else
else
- score7_analyze_prologue (start_addr, pc, this_frame, *this_cache);
+ score7_analyze_prologue (start_addr, pc, this_frame,
+ (struct score_frame_cache *) *this_cache);
}
/* Save SP. */
trad_frame_set_value (cache->saved_regs, SCORE_SP_REGNUM, cache->base);
}
/* Save SP. */
trad_frame_set_value (cache->saved_regs, SCORE_SP_REGNUM, cache->base);
- return (*this_cache);
+ return (
struct score_frame_cache *) (
*this_cache);
}
static void
}
static void
@@
-1494,8
+1500,8
@@
score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
case bfd_mach_score7:
set_gdbarch_breakpoint_from_pc (gdbarch, score7_breakpoint_from_pc);
set_gdbarch_skip_prologue (gdbarch, score7_skip_prologue);
case bfd_mach_score7:
set_gdbarch_breakpoint_from_pc (gdbarch, score7_breakpoint_from_pc);
set_gdbarch_skip_prologue (gdbarch, score7_skip_prologue);
- set_gdbarch_
in_function_epilogue
_p (gdbarch,
-
score7_in_function_epilogue
_p);
+ set_gdbarch_
stack_frame_destroyed
_p (gdbarch,
+
score7_stack_frame_destroyed
_p);
set_gdbarch_register_name (gdbarch, score7_register_name);
set_gdbarch_num_regs (gdbarch, SCORE7_NUM_REGS);
/* Core file support. */
set_gdbarch_register_name (gdbarch, score7_register_name);
set_gdbarch_num_regs (gdbarch, SCORE7_NUM_REGS);
/* Core file support. */
@@
-1506,8
+1512,8
@@
score_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
case bfd_mach_score3:
set_gdbarch_breakpoint_from_pc (gdbarch, score3_breakpoint_from_pc);
set_gdbarch_skip_prologue (gdbarch, score3_skip_prologue);
case bfd_mach_score3:
set_gdbarch_breakpoint_from_pc (gdbarch, score3_breakpoint_from_pc);
set_gdbarch_skip_prologue (gdbarch, score3_skip_prologue);
- set_gdbarch_
in_function_epilogue
_p (gdbarch,
-
score3_in_function_epilogue
_p);
+ set_gdbarch_
stack_frame_destroyed
_p (gdbarch,
+
score3_stack_frame_destroyed
_p);
set_gdbarch_register_name (gdbarch, score3_register_name);
set_gdbarch_num_regs (gdbarch, SCORE3_NUM_REGS);
break;
set_gdbarch_register_name (gdbarch, score3_register_name);
set_gdbarch_num_regs (gdbarch, SCORE3_NUM_REGS);
break;
This page took
0.025729 seconds
and
4
git commands to generate.