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