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