projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: support VMGEXIT
[deliverable/binutils-gdb.git]
/
gdb
/
bfin-linux-tdep.c
diff --git
a/gdb/bfin-linux-tdep.c
b/gdb/bfin-linux-tdep.c
index 773ffd430a68631aad563fbe5966642d1b4391e1..f77f099ccb46d4a631b8de8e39d4f16b9126c255 100644
(file)
--- a/
gdb/bfin-linux-tdep.c
+++ b/
gdb/bfin-linux-tdep.c
@@
-1,6
+1,6
@@
/* Target-dependent code for Analog Devices Blackfin processor, for GDB.
/* Target-dependent code for Analog Devices Blackfin processor, for GDB.
- Copyright (C) 2005-20
13
Free Software Foundation, Inc.
+ Copyright (C) 2005-20
20
Free Software Foundation, Inc.
Contributed by Analog Devices, Inc.
Contributed by Analog Devices, Inc.
@@
-99,7
+99,6
@@
bfin_linux_sigframe_init (const struct tramp_frame *self,
struct trad_frame_cache *this_cache,
CORE_ADDR func)
{
struct trad_frame_cache *this_cache,
CORE_ADDR func)
{
- struct gdbarch *gdbarch = get_frame_arch (this_frame);
CORE_ADDR sp = get_frame_sp (this_frame);
CORE_ADDR pc = get_frame_pc (this_frame);
CORE_ADDR sigcontext = sp + SIGCONTEXT_OFFSET;
CORE_ADDR sp = get_frame_sp (this_frame);
CORE_ADDR pc = get_frame_pc (this_frame);
CORE_ADDR sigcontext = sp + SIGCONTEXT_OFFSET;
@@
-122,16
+121,16
@@
static const struct tramp_frame bfin_linux_sigframe =
{
{ 0x00ADE128, 0xffffffff }, /* P0 = __NR_rt_sigreturn; */
{ 0x00A0, 0xffff }, /* EXCPT 0; */
{
{ 0x00ADE128, 0xffffffff }, /* P0 = __NR_rt_sigreturn; */
{ 0x00A0, 0xffff }, /* EXCPT 0; */
- { TRAMP_SENTINEL_INSN,
-1
},
+ { TRAMP_SENTINEL_INSN,
ULONGEST_MAX
},
},
bfin_linux_sigframe_init,
};
static LONGEST
bfin_linux_get_syscall_number (struct gdbarch *gdbarch,
},
bfin_linux_sigframe_init,
};
static LONGEST
bfin_linux_get_syscall_number (struct gdbarch *gdbarch,
-
ptid_t pti
d)
+
thread_info *threa
d)
{
{
- struct regcache *regcache = get_thread_regcache (
pti
d);
+ struct regcache *regcache = get_thread_regcache (
threa
d);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
/* The content of a register. */
gdb_byte buf[4];
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
/* The content of a register. */
gdb_byte buf[4];
@@
-141,7
+140,7
@@
bfin_linux_get_syscall_number (struct gdbarch *gdbarch,
/* Getting the system call number from the register.
When dealing with Blackfin architecture, this information
is stored at %p0 register. */
/* Getting the system call number from the register.
When dealing with Blackfin architecture, this information
is stored at %p0 register. */
- regcache
_cooked_read (regcache,
BFIN_P0_REGNUM, buf);
+ regcache
->cooked_read (
BFIN_P0_REGNUM, buf);
ret = extract_signed_integer (buf, 4, byte_order);
ret = extract_signed_integer (buf, 4, byte_order);
@@
-157,16
+156,14
@@
bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &bfin_linux_sigframe);
/* Functions for 'catch syscall'. */
tramp_frame_prepend_unwinder (gdbarch, &bfin_linux_sigframe);
/* Functions for 'catch syscall'. */
- set_xml_syscall_file_name ("syscalls/bfin-linux.xml");
+ set_xml_syscall_file_name (
gdbarch,
"syscalls/bfin-linux.xml");
set_gdbarch_get_syscall_number (gdbarch,
bfin_linux_get_syscall_number);
}
set_gdbarch_get_syscall_number (gdbarch,
bfin_linux_get_syscall_number);
}
-/* Provide a prototype to silence -Wmissing-prototypes. */
-extern initialize_file_ftype _initialize_bfin_linux_tdep;
-
+void _initialize_bfin_linux_tdep ();
void
void
-_initialize_bfin_linux_tdep (
void
)
+_initialize_bfin_linux_tdep ()
{
gdbarch_register_osabi (bfd_arch_bfin, 0, GDB_OSABI_LINUX,
bfin_linux_init_abi);
{
gdbarch_register_osabi (bfd_arch_bfin, 0, GDB_OSABI_LINUX,
bfin_linux_init_abi);
This page took
0.02523 seconds
and
4
git commands to generate.