1 2016-01-13 Pedro Alves <palves@redhat.com>
3 * NEWS: Mention that thread IDs are now per inferior and global
5 * Makefile.in (SFILES): Add tid-parse.c.
6 (COMMON_OBS): Add tid-parse.o.
7 (HFILES_NO_SRCDIR): Add tid-parse.h.
8 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
9 * breakpoint.c (insert_breakpoint_locations)
10 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
11 (print_one_breakpoint_location, set_longjmp_breakpoint)
12 (check_longjmp_breakpoint_for_call_dummy)
13 (set_momentary_breakpoint): Adjust to use global IDs.
14 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
15 (until_break_command, longjmp_bkpt_dtor)
16 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
18 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
19 ptid_to_global_thread_id.
20 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
21 * gdbthread.h (struct thread_info): Rename field 'num' to
22 'global_num. Add new fields 'per_inf_num' and 'inf'.
23 (thread_id_to_pid): Rename thread_id_to_pid to
24 global_thread_id_to_ptid.
25 (pid_to_thread_id): Rename to ...
26 (ptid_to_global_thread_id): ... this.
27 (valid_thread_id): Rename to ...
28 (valid_global_thread_id): ... this.
29 (find_thread_id): Rename to ...
30 (find_thread_global_id): ... this.
31 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
32 (print_thread_info): Add comment.
33 * tid-parse.h: New file.
34 * tid-parse.c: New file.
35 * infcmd.c (step_command_fsm_prepare)
36 (step_command_fsm_should_stop): Adjust to use the global thread
38 (until_next_command, until_next_command)
39 (finish_command_fsm_should_stop): Adjust to use the global thread
41 (attach_post_wait): Adjust to check the inferior number too.
42 * inferior.h (struct inferior) <highest_thread_num>: New field.
43 * infrun.c (handle_signal_stop)
44 (insert_exception_resume_breakpoint)
45 (insert_exception_resume_from_probe): Adjust to use the global
47 * record-btrace.c (record_btrace_open): Use global thread IDs.
48 * remote.c (process_initial_stop_replies): Also consider the
50 * target.c (target_pre_inferior): Clear the inferior's highest
52 * thread.c (clear_thread_inferior_resources): Adjust to use the
54 (new_thread): New inferior parameter. Adjust to use it. Set both
55 the thread's global ID and the thread's per-inferior ID.
56 (add_thread_silent): Adjust.
57 (find_thread_global_id): New.
58 (find_thread_id): Make static. Adjust to rename.
59 (valid_thread_id): Rename to ...
60 (valid_global_thread_id): ... this.
61 (pid_to_thread_id): Rename to ...
62 (ptid_to_global_thread_id): ... this.
63 (thread_id_to_pid): Rename to ...
64 (global_thread_id_to_ptid): ... this. Adjust.
65 (first_thread_of_process): Adjust.
66 (do_captured_list_thread_ids): Adjust to use global thread IDs.
67 (should_print_thread): New function.
68 (print_thread_info): Rename to ...
69 (print_thread_info_1): ... this, and add new show_global_ids
70 parameter. Handle it. Iterate over inferiors.
71 (print_thread_info): Reimplement as wrapper around
73 (show_inferior_qualified_tids): New function.
74 (print_thread_id): Use it.
75 (tp_array_compar): Compare inferior numbers too.
76 (thread_apply_command): Use tid_range_parser.
77 (do_captured_thread_select): Use parse_thread_id.
78 (thread_id_make_value): Adjust.
79 (_initialize_thread): Adjust "info threads" help string.
80 * varobj.c (struct varobj_root): Update comment.
81 (varobj_create): Adjust to use global thread IDs.
82 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
83 * windows-tdep.c (display_tib): No longer accept an argument.
84 * cli/cli-utils.c (get_number_trailer): Make extern.
85 * cli/cli-utils.h (get_number_trailer): Declare.
86 (get_number_const): Adjust documentation.
87 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
89 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
90 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
91 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
92 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
94 * python/py-breakpoint.c (bppy_set_thread): Likewise.
95 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
96 * python/py-infthread.c (thpy_get_num): Add comment and return the
97 per-inferior thread ID.
98 (thread_object_getset): Update comment of "num".
100 2016-01-13 Pedro Alves <palves@redhat.com>
102 * breakpoint.c (remove_threaded_breakpoints)
103 (print_one_breakpoint_location): Use print_thread_id.
104 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
105 (btrace_fetch, btrace_clear): Use print_thread_id.
106 * common/print-utils.c (CELLSIZE): Delete.
107 (get_cell): Rename to ...
108 (get_print_cell): ... this and made extern. Adjust call callers.
109 Adjust to use PRINT_CELL_SIZE.
110 * common/print-utils.h (get_print_cell): Declare.
111 (PRINT_CELL_SIZE): New.
112 * gdbthread.h (print_thread_id): Declare.
113 * infcmd.c (signal_command): Use print_thread_id.
114 * inferior.c (print_inferior): Use print_thread_id.
115 * infrun.c (handle_signal_stop)
116 (insert_exception_resume_breakpoint)
117 (insert_exception_resume_from_probe)
118 (print_signal_received_reason): Use print_thread_id.
119 * record-btrace.c (record_btrace_info)
120 (record_btrace_resume_thread, record_btrace_cancel_resume)
121 (record_btrace_step_thread, record_btrace_wait): Use
123 * thread.c (thread_apply_all_command): Use print_thread_id.
124 (print_thread_id): New function.
125 (thread_apply_command): Use print_thread_id.
126 (thread_command, thread_find_command, do_captured_thread_select):
129 2016-01-13 Pedro Alves <palves@redhat.com>
131 * NEWS: Mention InferiorThread.inferior.
132 * python/py-infthread.c (thpy_get_inferior): New.
133 (thread_object_getset): Register "inferior".
135 2016-01-13 Pedro Alves <palves@redhat.com>
137 * NEWS: Mention $_inferior.
138 * inferior.c (inferior_id_make_value): New.
139 (inferior_funcs): New.
140 (_initialize_inferior): Create $_inferior variable.
142 2016-01-13 Pedro Alves <palves@redhat.com>
145 * frame.c (get_current_frame): Use validate_registers_access.
146 * gdbthread.h (validate_registers_access): Declare.
147 * infrun.c (validate_siginfo_access): Delete.
148 (siginfo_value_read, siginfo_value_write): Use
149 validate_registers_access.
150 * thread.c (validate_registers_access): New function.
152 2016-01-12 Josh Stone <jistone@redhat.com>
153 Philippe Waroquiers <philippe.waroquiers@skynet.be>
155 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
156 syscall_entry and syscall_return stop reasons. Mention GDB
157 support for remote catch syscall.
158 * remote.c (PACKET_QCatchSyscalls): New enum.
159 (remote_set_syscall_catchpoint): New function.
160 (remote_protocol_features): New element for QCatchSyscalls.
161 (remote_parse_stop_reply): Parse syscall_entry/return stops.
162 (init_remote_ops): Install remote_set_syscall_catchpoint.
163 (_initialize_remote): Config QCatchSyscalls.
164 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
166 2016-01-12 Yao Qi <yao.qi@linaro.org>
168 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
169 to gdb_byte * and pass to linux_fork_to_function.
171 2016-01-12 Yao Qi <yao.qi@linaro.org>
173 * nat/linux-ptrace.c (linux_fork_to_function): Change type
174 of argument 'function'.
175 (linux_grandchild_function): Change return type to 'int'.
176 Change child_stack's type to 'void *'.
177 (linux_child_function): Likewise.
179 2016-01-12 Pedro Alves <palves@redhat.com>
181 Remove use of the registered trademark symbol throughout.
183 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
185 * reply_mig_hack.awk: Rewrite one regular expression.
187 2016-01-11 Mike Frysinger <vapier@gentoo.org>
189 * acinclude.m4: Include new warning.m4 file.
190 * configure: Regenerated.
191 * configure.ac: Move all warning logic ...
192 * warning.m4: ... here.
194 2016-01-08 Yao Qi <yao.qi@linaro.org>
196 * extension.c: Include target.h.
197 (set_active_ext_lang): Only call install_gdb_sigint_handler,
198 check_quit_flag, and set_quit_flag if target_terminal_is_ours
200 (restore_active_ext_lang): Likewise.
201 * target.c (target_terminal_is_ours): New function.
202 * target.h (target_terminal_is_ours): Declare.
204 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
206 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
207 to `err' in the little-endian leg.
209 2016-01-06 Yao Qi <yao.qi@linaro.org>
211 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
213 (thumb_get_next_pcs_raw): Make it static.
214 (arm_get_next_pcs_raw): Likewise.
215 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
217 (arm_get_next_pcs_raw): Likewise.
219 2016-01-05 Mike Frysinger <vapier@gentoo.org>
221 * version.in: Change cvs to git.
223 2016-01-05 Mike Frysinger <vapier@gentoo.org>
225 * configure.tgt (score-*-*): Delete gdb_sim assignment.
227 2016-01-05 Pedro Alves <palves@redhat.com>
230 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
231 the target is powerpc*.
232 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
234 * configure: Regenerate.
235 * config.in: Regenerate.
237 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
239 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
241 2016-01-02 Mike Frysinger <vapier@gentoo.org>
243 * configure.tgt (powerpc*-*-*): Delete test call and
244 always assign gdb_sim.
246 2016-01-01 Joel Brobecker <brobecker@adacore.com>
248 Update year range in copyright notice of all files.
250 2016-01-01 Joel Brobecker <brobecker@adacore.com>
252 * top.c (print_gdb_version): Change copyright year in version
255 2016-01-01 Joel Brobecker <brobecker@adacore.com>
257 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
259 For older changes see ChangeLog-2015.
265 version-control: never