aboutsummaryrefslogtreecommitdiff
path: root/gdb/darwin-nat.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-01-17 10:00:07 -0800
committerDoug Evans <dje@google.com>2014-01-17 10:00:07 -0800
commitdf049a5831c7c573698b98bfd4bc0ec8dc854c1f (patch)
tree61be8d087595fb6b54328f8db7e9e0f950cb28f6 /gdb/darwin-nat.h
parentea38d2a92e349df1f6438c1bd7b899f4cd951321 (diff)
downloadgdb-df049a5831c7c573698b98bfd4bc0ec8dc854c1f.zip
gdb-df049a5831c7c573698b98bfd4bc0ec8dc854c1f.tar.gz
gdb-df049a5831c7c573698b98bfd4bc0ec8dc854c1f.tar.bz2
Move ASSERT_FUNCTION to FUNCTION_NAME.
* common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION, and moved here ... * common/gdb_assert.h (ASSERT_FUNCTION): ... from here. #include "common-utils.h". (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update. * common/vec.h (VEC_ASSERT_PASS): Update. * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h. (MACH_CHECK_ERROR): Update.
Diffstat (limited to 'gdb/darwin-nat.h')
-rw-r--r--gdb/darwin-nat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/darwin-nat.h b/gdb/darwin-nat.h
index 6d42a3b..84f4be1 100644
--- a/gdb/darwin-nat.h
+++ b/gdb/darwin-nat.h
@@ -18,7 +18,7 @@
#define __DARWIN_NAT_H__
#include <mach/mach.h>
-#include "gdb_assert.h"
+#include "common-utils.h" /* For FUNCTION_NAME. */
/* Describe the mach exception handling state for a task. This state is saved
before being changed and restored when a process is detached.
@@ -136,10 +136,10 @@ extern mach_port_t darwin_port_set;
/* A copy of mach_host_self (). */
extern mach_port_t darwin_host_self;
-/* ASSERT_FUNCTION is defined in gdb_assert.h (or not). */
-#ifdef ASSERT_FUNCTION
+/* FUNCTION_NAME is defined in common-utils.h (or not). */
+#ifdef FUNCTION_NAME
#define MACH_CHECK_ERROR(ret) \
- mach_check_error (ret, __FILE__, __LINE__, ASSERT_FUNCTION)
+ mach_check_error (ret, __FILE__, __LINE__, FUNCTION_NAME)
#else
#define MACH_CHECK_ERROR(ret) \
mach_check_error (ret, __FILE__, __LINE__, "??")