From 3cde5c42d1c1ddcf8bbde5c47233c644370c959c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 8 Nov 2016 15:26:47 +0000 Subject: Eliminate agent_expr_p; VEC -> std::vector in struct bp_target_info After the previous patch, we end up with these two types with quite similar, and potentially confusing names: typedef gdb::unique_ptr agent_expr_up; /* Pointer to an agent_expr structure. */ typedef struct agent_expr *agent_expr_p; The latter is only necessary to put agent_expr pointers in VECs. So just eliminate it and use std::vector instead. gdb/ChangeLog: 2016-11-08 Pedro Alves * ax.h (agent_expr_p): Delete. (DEF_VEC_P (agent_expr_p)): Delete. * breakpoint.c (build_target_condition_list) (build_target_command_list): Adjust to use of std::vector. (bp_location_dtor): Remove now unnecessary VEC_free calls. * breakpoint.h: Include . (struct bp_target_info) : Now std::vector's. * remote.c (remote_add_target_side_condition): bp_tgt->conditions is now a std::vector; adjust. (remote_add_target_side_commands, remote_insert_breakpoint): bp_tgt->tcommands is now a std::vector; adjust. --- gdb/ax.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gdb/ax.h') diff --git a/gdb/ax.h b/gdb/ax.h index 4b90229..85d2943 100644 --- a/gdb/ax.h +++ b/gdb/ax.h @@ -170,12 +170,6 @@ struct agent_expr /* An agent_expr owning pointer. */ typedef gdb::unique_ptr agent_expr_up; -/* Pointer to an agent_expr structure. */ -typedef struct agent_expr *agent_expr_p; - -/* Vector of pointers to agent expressions. */ -DEF_VEC_P (agent_expr_p); - /* The actual values of the various bytecode operations. */ enum agent_op -- cgit v1.1