X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fdarwin-nat.h;h=733ac7cc058efe9184c9217748085a2925a36b19;hb=e008305278cb42a576107cd8aa9f0b182eea1af2;hp=78b16ab565fdd4af0e6413d9b4aadb65075afbe4;hpb=dda83cd783075941aabe9b0292b004b11f00c831;p=binutils-gdb.git diff --git a/gdb/darwin-nat.h b/gdb/darwin-nat.h index 78b16ab565f..733ac7cc058 100644 --- a/gdb/darwin-nat.h +++ b/gdb/darwin-nat.h @@ -1,5 +1,5 @@ /* Common things used by the various darwin files - Copyright (C) 1995-2020 Free Software Foundation, Inc. + Copyright (C) 1995-2022 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -111,7 +111,7 @@ class darwin_nat_target : public inf_child_target bool supports_multi_process () override; - ptid_t get_ada_task_ptid (long lwp, long thread) override; + ptid_t get_ada_task_ptid (long lwp, ULONGEST thread) override; private: ptid_t wait_1 (ptid_t, struct target_waitstatus *); @@ -200,14 +200,8 @@ extern mach_port_t darwin_port_set; /* A copy of mach_host_self (). */ extern mach_port_t darwin_host_self; -/* FUNCTION_NAME is defined in common-utils.h (or not). */ -#ifdef FUNCTION_NAME #define MACH_CHECK_ERROR(ret) \ - mach_check_error (ret, __FILE__, __LINE__, FUNCTION_NAME) -#else -#define MACH_CHECK_ERROR(ret) \ - mach_check_error (ret, __FILE__, __LINE__, "??") -#endif + mach_check_error (ret, __FILE__, __LINE__, __func__) extern void mach_check_error (kern_return_t ret, const char *file, unsigned int line, const char *func);