X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fbfin-linux-tdep.c;h=3fc6b6a6586d89997298067cbc8763afa47135ad;hb=401e101e0274d401e90e50cd8280a9ff36006477;hp=cd877699b58eae8908550e637f106d84521f3e87;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/bfin-linux-tdep.c b/gdb/bfin-linux-tdep.c index cd877699b5..3fc6b6a658 100644 --- 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. - Copyright (C) 2005-2017 Free Software Foundation, Inc. + Copyright (C) 2005-2019 Free Software Foundation, Inc. Contributed by Analog Devices, Inc. @@ -121,16 +121,16 @@ static const struct tramp_frame bfin_linux_sigframe = { { 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, - ptid_t ptid) + thread_info *thread) { - struct regcache *regcache = get_thread_regcache (ptid); + struct regcache *regcache = get_thread_regcache (thread); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); /* The content of a register. */ gdb_byte buf[4]; @@ -140,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. */ - regcache_cooked_read (regcache, BFIN_P0_REGNUM, buf); + regcache->cooked_read (BFIN_P0_REGNUM, buf); ret = extract_signed_integer (buf, 4, byte_order); @@ -161,9 +161,6 @@ bfin_linux_init_abi (struct gdbarch_info info, struct gdbarch *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) {