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