mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
gdb:
* inferior.h (struct inferior): Remove fields any_syscall_count, syscalls_counts and total_syscalls_count. Move them to new struct catch_syscall_inferior_data in breakpoint.c. * breakpoint.c: Call DEF_VEC_I(int). (struct catch_syscall_inferior_data): New. (get_catch_syscall_inferior_data): New. (catch_syscall_inferior_data_cleanup): New. (insert_catch_syscall): Update to access data in struct catch_syscall_inferior_data. (insert_catch_syscall): Likewise. (remove_catch_syscall): Likewise. (remove_catch_syscall): Likewise. (is_syscall_catchpoint_enabled): Likewise. (add_catch_command): Likewise. (_initialize_breakpoint): Register cleanup. * breakpoint.h: Removed DEF_VEC_I(int). * dwarf2loc.c: Call DEF_VEC_I(int). * mi/mi-main.c: Likewise.
This commit is contained in:
@@ -502,20 +502,6 @@ struct inferior
|
||||
int has_exit_code;
|
||||
LONGEST exit_code;
|
||||
|
||||
/* We keep a count of the number of times the user has requested a
|
||||
particular syscall to be tracked, and pass this information to the
|
||||
target. This lets capable targets implement filtering directly. */
|
||||
|
||||
/* Number of times that "any" syscall is requested. */
|
||||
int any_syscall_count;
|
||||
|
||||
/* Count of each system call. */
|
||||
VEC(int) *syscalls_counts;
|
||||
|
||||
/* This counts all syscall catch requests, so we can readily determine
|
||||
if any catching is necessary. */
|
||||
int total_syscalls_count;
|
||||
|
||||
/* Default flags to pass to the symbol reading functions. These are
|
||||
used whenever a new objfile is created. The valid values come
|
||||
from enum symfile_add_flags. */
|
||||
|
||||
Reference in New Issue
Block a user