/* Core dump and executable file functions below target vector, for GDB.
- Copyright (C) 1986-1987, 1989, 1991-2001, 2003-2012 Free Software
- Foundation, Inc.
+ Copyright (C) 1986-2013 Free Software Foundation, Inc.
This file is part of GDB.
static void core_detach (struct target_ops *ops, char *, int);
-static void core_close (int);
+static void core_close (void);
static void core_close_cleanup (void *ignore);
stack spaces as empty. */
static void
-core_close (int quitting)
+core_close (void)
{
- char *name;
-
if (core_bfd)
{
int pid = ptid_get_pid (inferior_ptid);
static void
core_close_cleanup (void *ignore)
{
- core_close (0/*ignored*/);
+ core_close ();
}
/* Look for sections whose names start with `.reg/' so that we can
get_core_siginfo (bfd *abfd, gdb_byte *readbuf, ULONGEST offset, LONGEST len)
{
asection *section;
- long pid;
char *section_name;
const char *name = ".note.linuxcore.siginfo";