From df049a5831c7c573698b98bfd4bc0ec8dc854c1f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 17 Jan 2014 10:00:07 -0800 Subject: 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. --- gdb/common/vec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/common/vec.h') diff --git a/gdb/common/vec.h b/gdb/common/vec.h index 9874573..7bae2ff 100644 --- a/gdb/common/vec.h +++ b/gdb/common/vec.h @@ -398,7 +398,7 @@ extern void *vec_o_reserve (void *, int, size_t, size_t); #define VEC_ASSERT_PASS ,file_,line_ #define vec_assert(expr, op) \ ((void)((expr) ? 0 : (gdb_assert_fail (op, file_, line_, \ - ASSERT_FUNCTION), 0))) + FUNCTION_NAME), 0))) #define VEC(T) VEC_##T #define VEC_OP(T,OP) VEC_##T##_##OP -- cgit v1.1