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