/* Native-dependent code for FreeBSD.
- Copyright (C) 2004-2018 Free Software Foundation, Inc.
+ Copyright (C) 2004-2019 Free Software Foundation, Inc.
This file is part of GDB.
#define FBSD_NAT_H
#include "inf-ptrace.h"
+#include <sys/proc.h>
#ifdef TRAP_BRKPT
/* MIPS does not set si_code for SIGTRAP. sparc64 reports
public:
char *pid_to_exec_file (int pid) override;
- int find_memory_regions (find_memory_region_ftype func, void *data);
+ int find_memory_regions (find_memory_region_ftype func, void *data) override;
- bool info_proc (const char *, enum info_proc_what);
+ bool info_proc (const char *, enum info_proc_what) override;
-#ifdef KERN_PROC_AUXV
enum target_xfer_status xfer_partial (enum target_object object,
const char *annex,
gdb_byte *readbuf,
const gdb_byte *writebuf,
ULONGEST offset, ULONGEST len,
ULONGEST *xfered_len) override;
-#endif
#ifdef PT_LWPINFO
bool thread_alive (ptid_t ptid) override;
- const char *pid_to_str (ptid_t) override;
+ std::string pid_to_str (ptid_t) override;
#ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME
const char *thread_name (struct thread_info *) override;