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