2011-06-22 Pedro Alves <pedro@codesourcery.com>

* breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
	* breakpoint.c (init_raw_breakpoint_without_location): Remove
	reference to exec_pathname.
	(struct exec_catchpoint): New type.
	(dtor_catch_exec): New function.
	(insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
	(catch_exec_breakpoint_ops): Install dtor_catch_syscall.
	(catch_exec_command_1): Adjust to use init_catchpoint.
	(delete_breakpoint): Remove reference to exec_pathname.
This commit is contained in:
Pedro Alves
2011-06-22 17:15:06 +00:00
parent be5c67c19c
commit b4d900402c
3 changed files with 61 additions and 16 deletions

View File

@@ -608,11 +608,6 @@ struct breakpoint
aborting, so you can back up to just before the abort. */
int hit_count;
/* Filename of a program whose exec triggered this catchpoint.
This field is only valid immediately after this catchpoint has
triggered. */
char *exec_pathname;
/* Methods associated with this breakpoint. */
struct breakpoint_ops *ops;