Fix C++ build error by casting void *
[external/binutils.git] / gdb / ChangeLog
1 2016-01-14  Yao Qi  <yao.qi@linaro.org>
2
3         * remote.c (remote_set_syscall_catchpoint): Cast to char *.
4         * thread.c (do_captured_thread_select): Cast to const char *.
5
6 2016-01-14  Yao Qi  <yao.qi@linaro.org>
7
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
11         instead.
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.
20
21 2016-01-13  Ulrich Weigand  <uweigand@de.ibm.com>
22
23         * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
24
25 2016-01-13  Yao Qi  <yao.qi@linaro.org>
26
27         * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
28         byte_order_for_code to read instruction.
29
30 2016-01-13  Pedro Alves  <palves@redhat.com>
31
32         * NEWS: Mention $_gthread.
33         * gdbthread.h (struct thread_info) <global_num>: Mention
34         $_gthread.
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):
38         New.
39         (thread_funcs): Adjust.
40         (gthread_funcs): New.
41         (_initialize_thread): Register $_gthread variable.
42
43 2016-01-13  Pedro Alves  <palves@redhat.com>
44
45         * NEWS: Mention "info threads -gid".
46         * gdbthread.h (struct thread_info) <global_num>: Mention "info
47         threads -gid".
48         * thread.c (info_threads_command): Handle "-gid".
49         (_initialize_thread): Adjust "info threads" help string to mention
50         -gid.
51
52 2016-01-13  Pedro Alves  <palves@redhat.com>
53
54         * NEWS: Mention InferiorThread.global_num.
55         * python/py-infthread.c (thpy_get_global_num): New function.
56         (thread_object_getset): Register "global_num".
57
58 2016-01-13  Pedro Alves  <palves@redhat.com>
59
60         * NEWS: Mention that thread IDs are now per inferior and global
61         thread IDs.
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
74         to use global IDs.
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
94         ID.
95         (until_next_command, until_next_command)
96         (finish_command_fsm_should_stop): Adjust to use the global thread
97         ID.
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
103         thread ID.
104         * record-btrace.c (record_btrace_open): Use global thread IDs.
105         * remote.c (process_initial_stop_replies): Also consider the
106         inferior number.
107         * target.c (target_pre_inferior): Clear the inferior's highest
108         thread num.
109         * thread.c (clear_thread_inferior_resources): Adjust to use the
110         global thread ID.
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
129         print_thread_info_1.
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
145         thread IDs.
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):
150         Likewise.
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".
156
157 2016-01-13  Pedro Alves  <palves@redhat.com>
158
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
179         print_thread_id.
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):
184         Use print_thread_id.
185
186 2016-01-13  Pedro Alves  <palves@redhat.com>
187
188         * NEWS: Mention InferiorThread.inferior.
189         * python/py-infthread.c (thpy_get_inferior): New.
190         (thread_object_getset): Register "inferior".
191
192 2016-01-13  Pedro Alves  <palves@redhat.com>
193
194         * NEWS: Mention $_inferior.
195         * inferior.c (inferior_id_make_value): New.
196         (inferior_funcs): New.
197         (_initialize_inferior): Create $_inferior variable.
198
199 2016-01-13  Pedro Alves  <palves@redhat.com>
200
201         PR breakpoints/19388
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.
208
209 2016-01-12  Josh Stone  <jistone@redhat.com>
210             Philippe Waroquiers  <philippe.waroquiers@skynet.be>
211
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.
222
223 2016-01-12  Yao Qi  <yao.qi@linaro.org>
224
225         * nat/linux-ptrace.c (linux_child_function): Cast child_stack
226         to gdb_byte * and pass to linux_fork_to_function.
227
228 2016-01-12  Yao Qi  <yao.qi@linaro.org>
229
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.
235
236 2016-01-12  Pedro Alves  <palves@redhat.com>
237
238         Remove use of the registered trademark symbol throughout.
239
240 2016-01-12  Thomas Schwinge  <thomas@codesourcery.com>
241
242         * reply_mig_hack.awk: Rewrite one regular expression.
243
244 2016-01-11  Mike Frysinger  <vapier@gentoo.org>
245
246         * acinclude.m4: Include new warning.m4 file.
247         * configure: Regenerated.
248         * configure.ac: Move all warning logic ...
249         * warning.m4: ... here.
250
251 2016-01-08  Yao Qi  <yao.qi@linaro.org>
252
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
256         returns false.
257         (restore_active_ext_lang): Likewise.
258         * target.c (target_terminal_is_ours): New function.
259         * target.h (target_terminal_is_ours): Declare.
260
261 2016-01-07  Maciej W. Rozycki  <macro@imgtec.com>
262
263         * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
264         to `err' in the little-endian leg.
265
266 2016-01-06  Yao Qi  <yao.qi@linaro.org>
267
268         * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
269         lines below.
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
273         declaration.
274         (arm_get_next_pcs_raw): Likewise.
275
276 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
277
278         * version.in: Change cvs to git.
279
280 2016-01-05  Mike Frysinger  <vapier@gentoo.org>
281
282         * configure.tgt (score-*-*): Delete gdb_sim assignment.
283
284 2016-01-05  Pedro Alves  <palves@redhat.com>
285
286         PR sim/13418
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
290         of WITH_SIM.
291         * configure: Regenerate.
292         * config.in: Regenerate.
293
294 2016-01-04  Markus Metzger  <markus.t.metzger@intel.com>
295
296         * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
297
298 2016-01-02  Mike Frysinger  <vapier@gentoo.org>
299
300         * configure.tgt (powerpc*-*-*): Delete test call and
301         always assign gdb_sim.
302
303 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
304
305         Update year range in copyright notice of all files.
306
307 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
308
309         * top.c (print_gdb_version): Change copyright year in version
310         message.
311
312 2016-01-01  Joel Brobecker  <brobecker@adacore.com>
313
314         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
315
316 For older changes see ChangeLog-2015.
317 \f
318 Local Variables:
319 mode: change-log
320 left-margin: 8
321 fill-column: 74
322 version-control: never
323 coding: utf-8
324 End: