1 2016-01-14 Yao Qi <yao.qi@linaro.org>
3 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
4 * thread.c (do_captured_thread_select): Cast to const char *.
6 2016-01-14 Yao Qi <yao.qi@linaro.org>
8 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
9 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
10 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
12 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
13 <arm_thumb2_breakpoint>: Remove.
14 <has_thumb2_breakpoint>: New field.
15 (arm_get_next_pcs_ctor): Update declaration.
16 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
17 1 to arm_get_next_pcs_ctor.
18 * arm-tdep.c (arm_software_single_step): Pass 0 to
19 arm_get_next_pcs_ctor.
21 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
23 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
25 2016-01-13 Yao Qi <yao.qi@linaro.org>
27 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
28 byte_order_for_code to read instruction.
30 2016-01-13 Pedro Alves <palves@redhat.com>
32 * NEWS: Mention $_gthread.
33 * gdbthread.h (struct thread_info) <global_num>: Mention
35 * thread.c (thread_num_make_value_helper): New function.
36 (thread_id_make_value): Delete.
37 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
39 (thread_funcs): Adjust.
41 (_initialize_thread): Register $_gthread variable.
43 2016-01-13 Pedro Alves <palves@redhat.com>
45 * NEWS: Mention "info threads -gid".
46 * gdbthread.h (struct thread_info) <global_num>: Mention "info
48 * thread.c (info_threads_command): Handle "-gid".
49 (_initialize_thread): Adjust "info threads" help string to mention
52 2016-01-13 Pedro Alves <palves@redhat.com>
54 * NEWS: Mention InferiorThread.global_num.
55 * python/py-infthread.c (thpy_get_global_num): New function.
56 (thread_object_getset): Register "global_num".
58 2016-01-13 Pedro Alves <palves@redhat.com>
60 * NEWS: Mention that thread IDs are now per inferior and global
62 * Makefile.in (SFILES): Add tid-parse.c.
63 (COMMON_OBS): Add tid-parse.o.
64 (HFILES_NO_SRCDIR): Add tid-parse.h.
65 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
66 * breakpoint.c (insert_breakpoint_locations)
67 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
68 (print_one_breakpoint_location, set_longjmp_breakpoint)
69 (check_longjmp_breakpoint_for_call_dummy)
70 (set_momentary_breakpoint): Adjust to use global IDs.
71 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
72 (until_break_command, longjmp_bkpt_dtor)
73 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
75 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
76 ptid_to_global_thread_id.
77 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
78 * gdbthread.h (struct thread_info): Rename field 'num' to
79 'global_num. Add new fields 'per_inf_num' and 'inf'.
80 (thread_id_to_pid): Rename thread_id_to_pid to
81 global_thread_id_to_ptid.
82 (pid_to_thread_id): Rename to ...
83 (ptid_to_global_thread_id): ... this.
84 (valid_thread_id): Rename to ...
85 (valid_global_thread_id): ... this.
86 (find_thread_id): Rename to ...
87 (find_thread_global_id): ... this.
88 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
89 (print_thread_info): Add comment.
90 * tid-parse.h: New file.
91 * tid-parse.c: New file.
92 * infcmd.c (step_command_fsm_prepare)
93 (step_command_fsm_should_stop): Adjust to use the global thread
95 (until_next_command, until_next_command)
96 (finish_command_fsm_should_stop): Adjust to use the global thread
98 (attach_post_wait): Adjust to check the inferior number too.
99 * inferior.h (struct inferior) <highest_thread_num>: New field.
100 * infrun.c (handle_signal_stop)
101 (insert_exception_resume_breakpoint)
102 (insert_exception_resume_from_probe): Adjust to use the global
104 * record-btrace.c (record_btrace_open): Use global thread IDs.
105 * remote.c (process_initial_stop_replies): Also consider the
107 * target.c (target_pre_inferior): Clear the inferior's highest
109 * thread.c (clear_thread_inferior_resources): Adjust to use the
111 (new_thread): New inferior parameter. Adjust to use it. Set both
112 the thread's global ID and the thread's per-inferior ID.
113 (add_thread_silent): Adjust.
114 (find_thread_global_id): New.
115 (find_thread_id): Make static. Adjust to rename.
116 (valid_thread_id): Rename to ...
117 (valid_global_thread_id): ... this.
118 (pid_to_thread_id): Rename to ...
119 (ptid_to_global_thread_id): ... this.
120 (thread_id_to_pid): Rename to ...
121 (global_thread_id_to_ptid): ... this. Adjust.
122 (first_thread_of_process): Adjust.
123 (do_captured_list_thread_ids): Adjust to use global thread IDs.
124 (should_print_thread): New function.
125 (print_thread_info): Rename to ...
126 (print_thread_info_1): ... this, and add new show_global_ids
127 parameter. Handle it. Iterate over inferiors.
128 (print_thread_info): Reimplement as wrapper around
130 (show_inferior_qualified_tids): New function.
131 (print_thread_id): Use it.
132 (tp_array_compar): Compare inferior numbers too.
133 (thread_apply_command): Use tid_range_parser.
134 (do_captured_thread_select): Use parse_thread_id.
135 (thread_id_make_value): Adjust.
136 (_initialize_thread): Adjust "info threads" help string.
137 * varobj.c (struct varobj_root): Update comment.
138 (varobj_create): Adjust to use global thread IDs.
139 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
140 * windows-tdep.c (display_tib): No longer accept an argument.
141 * cli/cli-utils.c (get_number_trailer): Make extern.
142 * cli/cli-utils.h (get_number_trailer): Declare.
143 (get_number_const): Adjust documentation.
144 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
146 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
147 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
148 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
149 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
151 * python/py-breakpoint.c (bppy_set_thread): Likewise.
152 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
153 * python/py-infthread.c (thpy_get_num): Add comment and return the
154 per-inferior thread ID.
155 (thread_object_getset): Update comment of "num".
157 2016-01-13 Pedro Alves <palves@redhat.com>
159 * breakpoint.c (remove_threaded_breakpoints)
160 (print_one_breakpoint_location): Use print_thread_id.
161 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
162 (btrace_fetch, btrace_clear): Use print_thread_id.
163 * common/print-utils.c (CELLSIZE): Delete.
164 (get_cell): Rename to ...
165 (get_print_cell): ... this and made extern. Adjust call callers.
166 Adjust to use PRINT_CELL_SIZE.
167 * common/print-utils.h (get_print_cell): Declare.
168 (PRINT_CELL_SIZE): New.
169 * gdbthread.h (print_thread_id): Declare.
170 * infcmd.c (signal_command): Use print_thread_id.
171 * inferior.c (print_inferior): Use print_thread_id.
172 * infrun.c (handle_signal_stop)
173 (insert_exception_resume_breakpoint)
174 (insert_exception_resume_from_probe)
175 (print_signal_received_reason): Use print_thread_id.
176 * record-btrace.c (record_btrace_info)
177 (record_btrace_resume_thread, record_btrace_cancel_resume)
178 (record_btrace_step_thread, record_btrace_wait): Use
180 * thread.c (thread_apply_all_command): Use print_thread_id.
181 (print_thread_id): New function.
182 (thread_apply_command): Use print_thread_id.
183 (thread_command, thread_find_command, do_captured_thread_select):
186 2016-01-13 Pedro Alves <palves@redhat.com>
188 * NEWS: Mention InferiorThread.inferior.
189 * python/py-infthread.c (thpy_get_inferior): New.
190 (thread_object_getset): Register "inferior".
192 2016-01-13 Pedro Alves <palves@redhat.com>
194 * NEWS: Mention $_inferior.
195 * inferior.c (inferior_id_make_value): New.
196 (inferior_funcs): New.
197 (_initialize_inferior): Create $_inferior variable.
199 2016-01-13 Pedro Alves <palves@redhat.com>
202 * frame.c (get_current_frame): Use validate_registers_access.
203 * gdbthread.h (validate_registers_access): Declare.
204 * infrun.c (validate_siginfo_access): Delete.
205 (siginfo_value_read, siginfo_value_write): Use
206 validate_registers_access.
207 * thread.c (validate_registers_access): New function.
209 2016-01-12 Josh Stone <jistone@redhat.com>
210 Philippe Waroquiers <philippe.waroquiers@skynet.be>
212 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
213 syscall_entry and syscall_return stop reasons. Mention GDB
214 support for remote catch syscall.
215 * remote.c (PACKET_QCatchSyscalls): New enum.
216 (remote_set_syscall_catchpoint): New function.
217 (remote_protocol_features): New element for QCatchSyscalls.
218 (remote_parse_stop_reply): Parse syscall_entry/return stops.
219 (init_remote_ops): Install remote_set_syscall_catchpoint.
220 (_initialize_remote): Config QCatchSyscalls.
221 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
223 2016-01-12 Yao Qi <yao.qi@linaro.org>
225 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
226 to gdb_byte * and pass to linux_fork_to_function.
228 2016-01-12 Yao Qi <yao.qi@linaro.org>
230 * nat/linux-ptrace.c (linux_fork_to_function): Change type
231 of argument 'function'.
232 (linux_grandchild_function): Change return type to 'int'.
233 Change child_stack's type to 'void *'.
234 (linux_child_function): Likewise.
236 2016-01-12 Pedro Alves <palves@redhat.com>
238 Remove use of the registered trademark symbol throughout.
240 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
242 * reply_mig_hack.awk: Rewrite one regular expression.
244 2016-01-11 Mike Frysinger <vapier@gentoo.org>
246 * acinclude.m4: Include new warning.m4 file.
247 * configure: Regenerated.
248 * configure.ac: Move all warning logic ...
249 * warning.m4: ... here.
251 2016-01-08 Yao Qi <yao.qi@linaro.org>
253 * extension.c: Include target.h.
254 (set_active_ext_lang): Only call install_gdb_sigint_handler,
255 check_quit_flag, and set_quit_flag if target_terminal_is_ours
257 (restore_active_ext_lang): Likewise.
258 * target.c (target_terminal_is_ours): New function.
259 * target.h (target_terminal_is_ours): Declare.
261 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
263 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
264 to `err' in the little-endian leg.
266 2016-01-06 Yao Qi <yao.qi@linaro.org>
268 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
270 (thumb_get_next_pcs_raw): Make it static.
271 (arm_get_next_pcs_raw): Likewise.
272 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
274 (arm_get_next_pcs_raw): Likewise.
276 2016-01-05 Mike Frysinger <vapier@gentoo.org>
278 * version.in: Change cvs to git.
280 2016-01-05 Mike Frysinger <vapier@gentoo.org>
282 * configure.tgt (score-*-*): Delete gdb_sim assignment.
284 2016-01-05 Pedro Alves <palves@redhat.com>
287 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
288 the target is powerpc*.
289 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
291 * configure: Regenerate.
292 * config.in: Regenerate.
294 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
296 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
298 2016-01-02 Mike Frysinger <vapier@gentoo.org>
300 * configure.tgt (powerpc*-*-*): Delete test call and
301 always assign gdb_sim.
303 2016-01-01 Joel Brobecker <brobecker@adacore.com>
305 Update year range in copyright notice of all files.
307 2016-01-01 Joel Brobecker <brobecker@adacore.com>
309 * top.c (print_gdb_version): Change copyright year in version
312 2016-01-01 Joel Brobecker <brobecker@adacore.com>
314 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
316 For older changes see ChangeLog-2015.
322 version-control: never