projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update year range in copyright notice of binutils files
[binutils-gdb.git]
/
bfd
/
ptrace-core.c
diff --git
a/bfd/ptrace-core.c
b/bfd/ptrace-core.c
index c55404f845345130d380a7ed07622b97ed7c3fcd..7cf47af10be1accc1c266617237c1ca6097f7a2b 100644
(file)
--- a/
bfd/ptrace-core.c
+++ b/
bfd/ptrace-core.c
@@
-1,5
+1,5
@@
/* BFD backend for core files which use the ptrace_user structure
/* BFD backend for core files which use the ptrace_user structure
- Copyright (C) 1993-20
16
Free Software Foundation, Inc.
+ Copyright (C) 1993-20
21
Free Software Foundation, Inc.
The structure of this file is based on trad-core.c written by John Gilmore
of Cygnus Support.
Modified to work with the ptrace_user structure by Kevin A. Buettner.
The structure of this file is based on trad-core.c written by John Gilmore
of Cygnus Support.
Modified to work with the ptrace_user structure by Kevin A. Buettner.
@@
-55,13
+55,13
@@
int ptrace_unix_core_file_failing_signal (bfd *abfd);
#define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid
static void swap_abort (void);
#define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid
static void swap_abort (void);
-const bfd_target *
+bfd_cleanup
ptrace_unix_core_file_p (bfd *abfd)
{
int val;
struct ptrace_user u;
struct trad_core_struct *rawptr;
ptrace_unix_core_file_p (bfd *abfd)
{
int val;
struct ptrace_user u;
struct trad_core_struct *rawptr;
-
bfd_size_type
amt;
+
size_t
amt;
flagword flags;
val = bfd_bread ((void *)&u, (bfd_size_type) sizeof u, abfd);
flagword flags;
val = bfd_bread ((void *)&u, (bfd_size_type) sizeof u, abfd);
@@
-124,7
+124,7
@@
ptrace_unix_core_file_p (bfd *abfd)
core_datasec (abfd)->alignment_power = 2;
core_regsec (abfd)->alignment_power = 2;
core_datasec (abfd)->alignment_power = 2;
core_regsec (abfd)->alignment_power = 2;
- return
abfd->xvec
;
+ return
_bfd_no_cleanup
;
fail:
bfd_release (abfd, abfd->tdata.any);
fail:
bfd_release (abfd, abfd->tdata.any);
@@
-174,7
+174,7
@@
const bfd_target core_ptrace_vec =
HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
HAS_LINENO | HAS_DEBUG |
HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
(SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */
- 0, /* symbol prefix */
+ 0, /* symbol prefix */
' ', /* ar_pad_char */
16, /* ar_max_namelen */
NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data */
' ', /* ar_pad_char */
16, /* ar_max_namelen */
NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data */
@@
-191,12
+191,12
@@
const bfd_target core_ptrace_vec =
ptrace_unix_core_file_p /* a core file */
},
{ /* bfd_set_format */
ptrace_unix_core_file_p /* a core file */
},
{ /* bfd_set_format */
-
bfd_false
, bfd_false,
-
bfd_false
, bfd_false
+
_bfd_bool_bfd_false_error
, bfd_false,
+
_bfd_bool_bfd_false_error
, bfd_false
},
{ /* bfd_write_contents */
},
{ /* bfd_write_contents */
-
bfd_false
, bfd_false,
-
bfd_false
, bfd_false
+
_bfd_bool_bfd_false_error
, bfd_false,
+
_bfd_bool_bfd_false_error
, bfd_false
},
BFD_JUMP_TABLE_GENERIC (_bfd_generic),
},
BFD_JUMP_TABLE_GENERIC (_bfd_generic),