This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/3] gdb lwp_info: Add destructor, initialize fields, use new/delete


Simon Marchi <simon.marchi@ericsson.com> writes:

> gdb/ChangeLog:
>
> 	* linux-nat.h (struct lwp_info): Add constructor, initialize
> 	fields with default values.
> 	<must_set_ptrace_flags, signalled, stopped, resumed, step,
> 	stopped_data_address, ignore_sigint>: Change type to bool.
> 	* linux-nat.c (linux_child_follow_fork): Adapt to type change to
> 	bool.
> 	(lwp_free): Use delete on lp.
> 	(add_initial_lwp): Create lwp_info by calling lwp_info constructor.
> 	(delete_lwp): Likewise.
> 	(find_lwp_pid): Likewise.
> 	(linux_nat_switch_fork): Adapt to type change to bool.
> 	(linux_nat_post_attach_wait): Change type of SIGNALLED parameter
> 	to bool *.
> 	(attach_proc_task_lwp_callback): Adapt to type change to bool.
> 	(linux_nat_attach): Adapt to type change to bool.
> 	(detach_one_lwp): Likewise.
> 	(linux_resume_one_lwp_throw): Likewise.
> 	(resume_clear_callback): Likewise.
> 	(resume_set_callback): Likewise.
> 	(linux_handle_syscall_trap): Likewise.
> 	(linux_handle_extended_wait): Likewise.
> 	(wait_lwp): Likewise.
> 	(stop_callback): Likewise.
> 	(set_ignore_sigint): Likewise.
> 	(maybe_clear_ignore_sigint): Likewise.
> 	(check_stopped_by_watchpoint): Likewise.
> 	(stop_wait_callback): Likewise.
> 	(linux_nat_filter_event): Likewise.
> 	(linux_nat_wait_1): Likewise.

Patch is good to me.

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]