X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ffbsd-nat.h;h=b0c9eb16c7754f6b2353838b837d4a9671dfc373;hb=ff8577f64987a898e1dc5eb6afb66a404fb7bb16;hp=7792d4524af64aac685993c5cab3cfb4ef656bf9;hpb=f6ac5f3d63e03a81c4ff3749aba234961cc9090e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h index 7792d4524a..b0c9eb16c7 100644 --- a/gdb/fbsd-nat.h +++ b/gdb/fbsd-nat.h @@ -1,6 +1,6 @@ /* 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. @@ -21,6 +21,7 @@ #define FBSD_NAT_H #include "inf-ptrace.h" +#include #ifdef TRAP_BRKPT /* MIPS does not set si_code for SIGTRAP. sparc64 reports @@ -37,22 +38,20 @@ class fbsd_nat_target : public inf_ptrace_target 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 - int thread_alive (ptid_t ptid) override; - const char *pid_to_str (ptid_t) override; + bool thread_alive (ptid_t ptid) override; + std::string pid_to_str (ptid_t) override; #ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME const char *thread_name (struct thread_info *) override; @@ -71,8 +70,8 @@ public: void post_attach (int) override; #ifdef USE_SIGTRAP_SIGINFO - int supports_stopped_by_sw_breakpoint () override; - int stopped_by_sw_breakpoint () override; + bool supports_stopped_by_sw_breakpoint () override; + bool stopped_by_sw_breakpoint () override; #endif #ifdef TDP_RFPPWAIT