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