projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require always-non-stop for multi-target resumptions
[deliverable/binutils-gdb.git]
/
bfd
/
ptrace-core.c
diff --git
a/bfd/ptrace-core.c
b/bfd/ptrace-core.c
index 77eaaeb46a1a51d5c81247150cab71dd2361f5ef..ae8d747c2be80634e0499c57988d9c9d82876895 100644
(file)
--- a/
bfd/ptrace-core.c
+++ b/
bfd/ptrace-core.c
@@
-1,6
+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 1993, 1994, 1995, 1996, 1998, 1999, 2001, 2002, 2003, 2004,
- 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1993-2020 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.
@@
-35,31
+34,29
@@
#include <sys/ptrace.h>
struct trad_core_struct
#include <sys/ptrace.h>
struct trad_core_struct
-
{
-
asection *data_section;
-
asection *stack_section;
-
asection *reg_section;
-
struct ptrace_user u;
-
};
+{
+ asection *data_section;
+ asection *stack_section;
+ asection *reg_section;
+ struct ptrace_user u;
+};
-#define core_upage(bfd) (&((bfd)->tdata.trad_core_data->u))
-#define core_datasec(bfd) ((bfd)->tdata.trad_core_data->data_section)
+#define core_upage(bfd)
(&((bfd)->tdata.trad_core_data->u))
+#define core_datasec(bfd)
((bfd)->tdata.trad_core_data->data_section)
#define core_stacksec(bfd) ((bfd)->tdata.trad_core_data->stack_section)
#define core_stacksec(bfd) ((bfd)->tdata.trad_core_data->stack_section)
-#define core_regsec(bfd) ((bfd)->tdata.trad_core_data->reg_section)
+#define core_regsec(bfd)
((bfd)->tdata.trad_core_data->reg_section)
/* forward declarations */
/* forward declarations */
-const bfd_target *ptrace_unix_core_file_p
PARAMS ((bfd *abfd)
);
-char * ptrace_unix_core_file_failing_command
PARAMS ((bfd *abfd)
);
-int ptrace_unix_core_file_failing_signal
PARAMS ((bfd *abfd)
);
+const bfd_target *ptrace_unix_core_file_p
(bfd *abfd
);
+char * ptrace_unix_core_file_failing_command
(bfd *abfd
);
+int ptrace_unix_core_file_failing_signal
(bfd *abfd
);
#define ptrace_unix_core_file_matches_executable_p generic_core_file_matches_executable_p
#define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid
#define ptrace_unix_core_file_matches_executable_p generic_core_file_matches_executable_p
#define ptrace_unix_core_file_pid _bfd_nocore_core_file_pid
-static void swap_abort
PARAMS ((void)
);
+static void swap_abort
(void
);
const bfd_target *
const bfd_target *
-ptrace_unix_core_file_p (abfd)
- bfd *abfd;
-
+ptrace_unix_core_file_p (bfd *abfd)
{
int val;
struct ptrace_user u;
{
int val;
struct ptrace_user u;
@@
-137,10
+134,10
@@
ptrace_unix_core_file_p (abfd)
}
char *
}
char *
-ptrace_unix_core_file_failing_command (abfd)
- bfd *abfd;
+ptrace_unix_core_file_failing_command (bfd *abfd)
{
char *com = abfd->tdata.trad_core_data->u.pt_comm;
{
char *com = abfd->tdata.trad_core_data->u.pt_comm;
+
if (*com)
return com;
else
if (*com)
return com;
else
@@
-148,15
+145,14
@@
ptrace_unix_core_file_failing_command (abfd)
}
int
}
int
-ptrace_unix_core_file_failing_signal (abfd)
- bfd *abfd;
+ptrace_unix_core_file_failing_signal (bfd *abfd)
{
return abfd->tdata.trad_core_data->u.pt_sigframe.sig_num;
}
\f
/* If somebody calls any byte-swapping routines, shoot them. */
static void
{
return abfd->tdata.trad_core_data->u.pt_sigframe.sig_num;
}
\f
/* If somebody calls any byte-swapping routines, shoot them. */
static void
-swap_abort ()
+swap_abort (
void
)
{
abort (); /* This way doesn't require any declaration for ANSI to fuck up */
}
{
abort (); /* This way doesn't require any declaration for ANSI to fuck up */
}
@@
-168,7
+164,7
@@
swap_abort ()
#define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort)
#define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort)
#define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort)
#define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort)
-const bfd_target
ptrace_cor
e_vec =
+const bfd_target
core_ptrac
e_vec =
{
"trad-core",
bfd_target_unknown_flavour,
{
"trad-core",
bfd_target_unknown_flavour,
@@
-178,7
+174,7
@@
const bfd_target ptrace_core_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 */
@@
-195,12
+191,12
@@
const bfd_target ptrace_core_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),
@@
-215,7
+211,7
@@
const bfd_target ptrace_core_vec =
NULL,
NULL,
-
(PTR) 0
/* backend_data */
+
NULL
/* backend_data */
};
#endif /* PTRACE_CORE */
};
#endif /* PTRACE_CORE */
This page took
0.029278 seconds
and
4
git commands to generate.