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