64ac55869186e69f9ef331933925be2eab6b13e6
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
2
3 * common/common-utils.c (skip_spaces): Fix comment.
4 (skip_to_space_const): Likewise.
5
6 2016-01-25 Yao Qi <yao.qi@linaro.org>
7
8 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
10 (arm_deal_with_atomic_sequence_raw): Likewise.
11 (thumb_get_next_pcs_raw): Likewise.
12 (arm_get_next_pcs_raw): Likewise.
13 (arm_get_next_pcs): Remove argument pc. Callers updated.
14 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
15
16 2016-01-25 Mark Wielaard <mjw@redhat.com>
17
18 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
19 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
20 if statement.
21 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
22 statement block by introducing an else.
23 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
24 of return statements.
25 (record_linux_msghdr): Likewise.
26
27 2016-01-25 Pedro Alves <palves@redhat.com>
28
29 PR threads/19461
30 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
31 parent/child running states.
32
33 2016-01-25 Pedro Alves <palves@redhat.com>
34
35 PR gdb/19494
36 * linux-nat.c (kill_one_lwp): New, factored out from ...
37 (kill_callback): ... this.
38 (kill_wait_callback): New, factored out from ...
39 (kill_wait_one_lwp): ... this.
40 (kill_unfollowed_fork_children): New function.
41 (linux_nat_kill): Use it.
42
43 2016-01-22 John Baldwin <jhb@FreeBSD.org>
44
45 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
46
47 2016-01-22 Yao Qi <yao.qi@linaro.org>
48
49 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
50 instead of warning.
51 (store_fpregs, fetch_regs, store_regs): Likewise.
52 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
53 (fetch_vfp_regs, store_vfp_regs): Likewise.
54
55 2016-01-21 Doug Evans <dje@google.com>
56
57 * breakpoint.c (init_breakpoint_sal): Add comment.
58
59 2016-01-21 Marcin Koƛcielnicki <koriakin@0x04.net>
60
61 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
62
63 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * disasm.c (maybe_add_dis_line_entry): Rename to...
66 (add_dis_line_entry): ...this, and update header comment.
67 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
68
69 2016-01-21 Pedro Alves <palves@redhat.com>
70
71 * Makefile.in (COMPILER_CFLAGS): New.
72 (CXXFLAGS): Get it from configure.
73 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
74 instead of CFLAGS.
75 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
76 COMPILER_CFLAGS.
77 * configure: Regenerate.
78
79 2016-01-21 Joel Brobecker <brobecker@adacore.com>
80
81 * location.h (new_address_location): Add new parameters
82 "addr_string" and "addr_string_len".
83 (get_address_string_location): Add declaration.
84 * location.c (new_address_location): Add new parameters
85 "addr_string" and "addr_string_len". If not NULL, store
86 a copy of the addr_string in the new location as well.
87 (get_address_string_location): New function.
88 (string_to_event_location): Update call to new_address_location.
89 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
90 Save the event location in the parser's state before
91 passing it to convert_address_location_to_sals.
92 * breakpoint.c (create_thread_event_breakpoint): Update call
93 to new_address_location.
94 (init_breakpoint_sal): Get the event location's string, if any,
95 and use it to update call to new_address_location.
96 * python/py-finishbreakpoint.c (bpfinishpy_init):
97 Update call to new_address_location.
98 * spu-tdep.c (spu_catch_start): Likewise.
99
100 * config/djgpp/fnchange.lst: Add entries for
101 gdb/testsuite/gdb.base/break-fun-addr1.c and
102 gdb/testsuite/gdb.base/break-fun-addr2.c.
103
104 2016-01-21 Yao Qi <yao.qi@linaro.org>
105
106 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
107 is_thumb and set it according to CPSR saved on the stack.
108 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
109 arm_linux_sigreturn_next_pc.
110
111 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
114 Fix enumerators sort key function.
115
116 2016-01-20 Joel Brobecker <brobecker@adacore.com>
117
118 * printcmd.c (print_scalar_formatted): Move binary operator from
119 end of line to beginning of next line. Adjust formatting
120 accordingly.
121
122 2016-01-19 John Baldwin <jhb@FreeBSD.org>
123
124 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
125 "len" with sysctl.
126
127 2016-01-19 John Baldwin <jhb@FreeBSD.org>
128
129 * fbsd-tdep.c (find_stop_signal): Remove.
130 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
131 <stop_signal>: New field.
132 <abort_iteration>: New field.
133 (fbsd_collect_regset_section_cb): Use new fields.
134 (fbsd_collect_thread_registers): New function.
135 (struct fbsd_corefile_thread_data): New structure.
136 (fbsd_corefile_thread): New function.
137 (fbsd_make_corefile_notes): Use new function to dump notes for each
138 non-exited thread in a process.
139
140 2016-01-19 John Baldwin <jhb@FreeBSD.org>
141
142 * configure.ac: Check for support for LWP names on FreeBSD.
143 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
144 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
145 (fbsd_fetch_kinfo_proc): Move function earlier.
146 [PT_LWPINFO] (fbsd_thread_alive): New function.
147 [PT_LWPINFO] (fbsd_pid_to_str): New function.
148 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
149 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
150 [PT_LWPINFO] (fbsd_add_threads): New function.
151 [PT_LWPINFO] (fbsd_update_thread_list): New function.
152 [PT_LWPINFO] New variable super_resume.
153 [PT_LWPINFO] (resume_one_thread_cb): New function.
154 [PT_LWPINFO] (resume_all_threads_cb): New function.
155 [PT_LWPINFO] (fbsd_resume): New function.
156 (fbsd_remember_child): Save full ptid instead of plain pid.
157 (fbsd_is_child_pending): Return ptid of saved child process.
158 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
159 first stop.
160 [PT_LWP_EVENTS] Handle LWP events.
161 [TDP_RFPPWAIT] Include LWP in child ptid.
162 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
163 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
164 Add threads for existing processes.
165 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
166 "fbsd_thread_alive".
167 Set "to_pid_to_str" to "fbsd_pid_to_str".
168 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
169 "fbsd_thread_name".
170 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
171 Set "to_has_thread_control" to "tc_schedlock".
172 Set "to_resume" to "fbsd_resume".
173 (_initialize_fbsd_nat): New function.
174 * configure: Regenerate.
175 * config.in: Regenerate.
176
177 2016-01-19 John Baldwin <jhb@FreeBSD.org>
178
179 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
180 get_ptrace_pid.
181 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
182 (amd64bsd_dr_get): Use get_ptrace_pid.
183 (amd64bsd_dr_set): Use get_ptrace_pid.
184 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
185 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
186 (i386bsd_dr_get): Use get_ptrace_pid.
187 (i386bsd_dr_set): Use get_ptrace_pid.
188 * inf-ptrace.c (get_ptrace_pid): Export.
189 * inf-ptrace.h (get_ptrace_pid): Declare.
190 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
191 (ppcfbsd_store_inferior_registers): Use lwp id.
192
193 2016-01-19 John Baldwin <jhb@FreeBSD.org>
194
195 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
196 (fbsd_core_thread_name): New function.
197 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
198 Add "core_thread_name" gdbarch method.
199
200 2016-01-19 John Baldwin <jhb@FreeBSD.org>
201
202 * corelow.c (core_thread_name): New function.
203 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
204 target op.
205 * gdbarch.sh (core_thread_name): New gdbarch callback.
206 * gdbarch.h: Re-generate.
207 * gdbarch.c: Re-generate.
208
209 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
210
211 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
212 convert gdb.Value to integer type using int().
213
214 2016-01-19 John Baldwin <jhb@FreeBSD.org>
215
216 * configure.ac: Include <sys/types.h when checking for "r_fs" in
217 "struct reg".
218 * configure: Regenerate.
219
220 2016-01-19 Pedro Alves <palves@redhat.com>
221
222 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
223 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
224 current program space down to linespec decoding and breakpoint
225 location updating.
226 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
227 decode_line_full.
228 (until_break_command): Adjust calls to decode_line_1.
229 (base_breakpoint_decode_location, bkpt_decode_location): Add
230 'search_pspace' parameter. Pass it along.
231 (bkpt_probe_create_sals_from_location): Adjust calls to
232 parse_probes.
233 (tracepoint_decode_location, tracepoint_probe_decode_location)
234 (strace_marker_decode_location): Add 'search_pspace' parameter.
235 Pass it along.
236 (all_locations_are_pending): Rewrite to take a breakpoint and
237 program space as arguments instead.
238 (hoist_existing_locations): New function.
239 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
240 hoist_existing_locations instead of always removing all locations,
241 and adjust to all_locations_are_pending change.
242 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
243 Don't disable the breakpoint if there are other locations in
244 another program space.
245 (breakpoint_re_set_default): Adjust to pass down the current
246 program space as filter program space.
247 (decode_location_default): Add 'search_pspace' parameter and pass
248 it along.
249 (prepare_re_set_context): Don't switch program space here.
250 (breakpoint_re_set): Use save_current_space_and_thread instead of
251 save_current_program_space.
252 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
253 'search_pspace' parameter.
254 (update_breakpoint_locations): Add 'filter_pspace' parameter.
255 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
256 decode_line_1.
257 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
258 program space as filter program space.
259 * linespec.c (struct linespec_state) <search_pspace>: New field.
260 (create_sals_line_offset, convert_explicit_location_to_sals)
261 (parse_linespec): Pass the search program space down.
262 (linespec_state_constructor): Add 'search_pspace' parameter.
263 Store it.
264 (linespec_parser_new): Add 'search_pspace' parameter and pass it
265 along.
266 (linespec_lex_to_end): Adjust.
267 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
268 and pass it along.
269 (decode_line_with_last_displayed): Adjust.
270 (collect_symtabs_from_filename, symtabs_from_filename): New
271 'search_pspace' parameter. Use it.
272 (find_function_symbols): Pass the search program space down.
273 * linespec.h (decode_line_1, decode_line_full): Add
274 'search_pspace' parameter.
275 * probe.c (parse_probes_in_pspace): New function, factored out
276 from ...
277 (parse_probes): ... this. Add 'search_pspace' parameter and use
278 it.
279 * probe.h (parse_probes): Add pspace' parameter.
280 * python/python.c (gdbpy_decode_line): Adjust.
281 * tracepoint.c (scope_info): Adjust.
282
283 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
284
285 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
286 instruction support.
287 (micromips_next_pc): Likewise.
288 (micromips_scan_prologue): Likewise.
289 (micromips_deal_with_atomic_sequence): Likewise.
290 (micromips_stack_frame_destroyed_p): Likewise.
291 (mips_breakpoint_from_pc): Likewise.
292
293 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
294
295 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
296 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
297
298 2016-01-18 Pedro Alves <palves@redhat.com>
299
300 * NEWS: Mention that GDB now displays the ID and name of the
301 thread that hit a breakpoint or received a signal.
302 * break-catch-sig.c (signal_catchpoint_print_it): Use
303 maybe_print_thread_hit_breakpoint.
304 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
305 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
306 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
307 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
308 (print_it_catch_exec, print_it_ranged_breakpoint)
309 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
310 Use maybe_print_thread_hit_breakpoint.
311 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
312 * gdbthread.h (show_thread_that_caused_stop): Declare.
313 * infrun.c (print_signal_received_reason): Print which thread
314 received signal.
315 * thread.c (show_thread_that_caused_stop): New function.
316
317 2016-01-18 Gary Benson <gbenson@redhat.com>
318
319 * nat/linux-namespaces.c (do_fork): New function.
320 (linux_mntns_get_helper): Use the above.
321
322 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
323
324 Pushed by Joel Brobecker <brobecker@adacore.com>.
325 PR gdb/19208
326 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
327 if the function has no name.
328
329 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
330
331 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
332 Conditionalize for Windows host.
333 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
334 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
335 (phony_iconv_open): Handle both UTF-32 endiannesses.
336 (phony_iconv): Likewise. Check for output overflow and clean up
337 out-of-input cases. Correct adjustment to input buffer pointer.
338 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
339 phony_iconv_open.
340
341 2016-01-15 Pedro Alves <palves@redhat.com>
342
343 * NEWS: Mention star wildcard ranges.
344 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
345 (number_range_setup_range): New function.
346 * cli/cli-utils.h (number_range_setup_range): New declaration.
347 * thread.c (thread_apply_command): Support star TID ranges.
348 * tid-parse.c (tid_range_parser_finished)
349 (tid_range_parser_string, tid_range_parser_skip)
350 (get_tid_or_range, get_tid_or_range): Handle
351 TID_RANGE_STATE_STAR_RANGE.
352 (tid_range_parser_star_range): New function.
353 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
354 New value.
355 (tid_range_parser_star_range): New declaration.
356
357 2016-01-15 Pedro Alves <palves@redhat.com>
358
359 * thread.c (thread_apply_command): Use the tid range parser to
360 advance past the thread ID list.
361 * tid-parse.c (get_positive_number_trailer): New function.
362 (parse_thread_id): Use it.
363 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
364 thread ID error.
365 (get_tid_or_range): Detect negative values. Return 0 instead of
366 throwing invalid thread ID error.
367
368 2016-01-14 Yao Qi <yao.qi@linaro.org>
369
370 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
371 Declare.
372 (arm_linux_get_next_pcs_ops): Install
373 arm_linux_get_next_pcs_syscall_next_pc.
374 (arm_linux_syscall_next_pc): Change to ...
375 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
376 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
377 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
378 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
379 call tdep->syscall_next_pc.
380 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
381 (arm_get_next_pcs_syscall_next_pc): Remove.
382
383 2016-01-14 Yao Qi <yao.qi@linaro.org>
384
385 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
386 * thread.c (do_captured_thread_select): Cast to const char *.
387
388 2016-01-14 Yao Qi <yao.qi@linaro.org>
389
390 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
391 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
392 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
393 instead.
394 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
395 <arm_thumb2_breakpoint>: Remove.
396 <has_thumb2_breakpoint>: New field.
397 (arm_get_next_pcs_ctor): Update declaration.
398 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
399 1 to arm_get_next_pcs_ctor.
400 * arm-tdep.c (arm_software_single_step): Pass 0 to
401 arm_get_next_pcs_ctor.
402
403 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
404
405 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
406
407 2016-01-13 Yao Qi <yao.qi@linaro.org>
408
409 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
410 byte_order_for_code to read instruction.
411
412 2016-01-13 Pedro Alves <palves@redhat.com>
413
414 * NEWS: Mention $_gthread.
415 * gdbthread.h (struct thread_info) <global_num>: Mention
416 $_gthread.
417 * thread.c (thread_num_make_value_helper): New function.
418 (thread_id_make_value): Delete.
419 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
420 New.
421 (thread_funcs): Adjust.
422 (gthread_funcs): New.
423 (_initialize_thread): Register $_gthread variable.
424
425 2016-01-13 Pedro Alves <palves@redhat.com>
426
427 * NEWS: Mention "info threads -gid".
428 * gdbthread.h (struct thread_info) <global_num>: Mention "info
429 threads -gid".
430 * thread.c (info_threads_command): Handle "-gid".
431 (_initialize_thread): Adjust "info threads" help string to mention
432 -gid.
433
434 2016-01-13 Pedro Alves <palves@redhat.com>
435
436 * NEWS: Mention InferiorThread.global_num.
437 * python/py-infthread.c (thpy_get_global_num): New function.
438 (thread_object_getset): Register "global_num".
439
440 2016-01-13 Pedro Alves <palves@redhat.com>
441
442 * NEWS: Mention that thread IDs are now per inferior and global
443 thread IDs.
444 * Makefile.in (SFILES): Add tid-parse.c.
445 (COMMON_OBS): Add tid-parse.o.
446 (HFILES_NO_SRCDIR): Add tid-parse.h.
447 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
448 * breakpoint.c (insert_breakpoint_locations)
449 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
450 (print_one_breakpoint_location, set_longjmp_breakpoint)
451 (check_longjmp_breakpoint_for_call_dummy)
452 (set_momentary_breakpoint): Adjust to use global IDs.
453 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
454 (until_break_command, longjmp_bkpt_dtor)
455 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
456 to use global IDs.
457 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
458 ptid_to_global_thread_id.
459 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
460 * gdbthread.h (struct thread_info): Rename field 'num' to
461 'global_num. Add new fields 'per_inf_num' and 'inf'.
462 (thread_id_to_pid): Rename thread_id_to_pid to
463 global_thread_id_to_ptid.
464 (pid_to_thread_id): Rename to ...
465 (ptid_to_global_thread_id): ... this.
466 (valid_thread_id): Rename to ...
467 (valid_global_thread_id): ... this.
468 (find_thread_id): Rename to ...
469 (find_thread_global_id): ... this.
470 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
471 (print_thread_info): Add comment.
472 * tid-parse.h: New file.
473 * tid-parse.c: New file.
474 * infcmd.c (step_command_fsm_prepare)
475 (step_command_fsm_should_stop): Adjust to use the global thread
476 ID.
477 (until_next_command, until_next_command)
478 (finish_command_fsm_should_stop): Adjust to use the global thread
479 ID.
480 (attach_post_wait): Adjust to check the inferior number too.
481 * inferior.h (struct inferior) <highest_thread_num>: New field.
482 * infrun.c (handle_signal_stop)
483 (insert_exception_resume_breakpoint)
484 (insert_exception_resume_from_probe): Adjust to use the global
485 thread ID.
486 * record-btrace.c (record_btrace_open): Use global thread IDs.
487 * remote.c (process_initial_stop_replies): Also consider the
488 inferior number.
489 * target.c (target_pre_inferior): Clear the inferior's highest
490 thread num.
491 * thread.c (clear_thread_inferior_resources): Adjust to use the
492 global thread ID.
493 (new_thread): New inferior parameter. Adjust to use it. Set both
494 the thread's global ID and the thread's per-inferior ID.
495 (add_thread_silent): Adjust.
496 (find_thread_global_id): New.
497 (find_thread_id): Make static. Adjust to rename.
498 (valid_thread_id): Rename to ...
499 (valid_global_thread_id): ... this.
500 (pid_to_thread_id): Rename to ...
501 (ptid_to_global_thread_id): ... this.
502 (thread_id_to_pid): Rename to ...
503 (global_thread_id_to_ptid): ... this. Adjust.
504 (first_thread_of_process): Adjust.
505 (do_captured_list_thread_ids): Adjust to use global thread IDs.
506 (should_print_thread): New function.
507 (print_thread_info): Rename to ...
508 (print_thread_info_1): ... this, and add new show_global_ids
509 parameter. Handle it. Iterate over inferiors.
510 (print_thread_info): Reimplement as wrapper around
511 print_thread_info_1.
512 (show_inferior_qualified_tids): New function.
513 (print_thread_id): Use it.
514 (tp_array_compar): Compare inferior numbers too.
515 (thread_apply_command): Use tid_range_parser.
516 (do_captured_thread_select): Use parse_thread_id.
517 (thread_id_make_value): Adjust.
518 (_initialize_thread): Adjust "info threads" help string.
519 * varobj.c (struct varobj_root): Update comment.
520 (varobj_create): Adjust to use global thread IDs.
521 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
522 * windows-tdep.c (display_tib): No longer accept an argument.
523 * cli/cli-utils.c (get_number_trailer): Make extern.
524 * cli/cli-utils.h (get_number_trailer): Declare.
525 (get_number_const): Adjust documentation.
526 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
527 thread IDs.
528 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
529 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
530 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
531 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
532 Likewise.
533 * python/py-breakpoint.c (bppy_set_thread): Likewise.
534 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
535 * python/py-infthread.c (thpy_get_num): Add comment and return the
536 per-inferior thread ID.
537 (thread_object_getset): Update comment of "num".
538
539 2016-01-13 Pedro Alves <palves@redhat.com>
540
541 * breakpoint.c (remove_threaded_breakpoints)
542 (print_one_breakpoint_location): Use print_thread_id.
543 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
544 (btrace_fetch, btrace_clear): Use print_thread_id.
545 * common/print-utils.c (CELLSIZE): Delete.
546 (get_cell): Rename to ...
547 (get_print_cell): ... this and made extern. Adjust call callers.
548 Adjust to use PRINT_CELL_SIZE.
549 * common/print-utils.h (get_print_cell): Declare.
550 (PRINT_CELL_SIZE): New.
551 * gdbthread.h (print_thread_id): Declare.
552 * infcmd.c (signal_command): Use print_thread_id.
553 * inferior.c (print_inferior): Use print_thread_id.
554 * infrun.c (handle_signal_stop)
555 (insert_exception_resume_breakpoint)
556 (insert_exception_resume_from_probe)
557 (print_signal_received_reason): Use print_thread_id.
558 * record-btrace.c (record_btrace_info)
559 (record_btrace_resume_thread, record_btrace_cancel_resume)
560 (record_btrace_step_thread, record_btrace_wait): Use
561 print_thread_id.
562 * thread.c (thread_apply_all_command): Use print_thread_id.
563 (print_thread_id): New function.
564 (thread_apply_command): Use print_thread_id.
565 (thread_command, thread_find_command, do_captured_thread_select):
566 Use print_thread_id.
567
568 2016-01-13 Pedro Alves <palves@redhat.com>
569
570 * NEWS: Mention InferiorThread.inferior.
571 * python/py-infthread.c (thpy_get_inferior): New.
572 (thread_object_getset): Register "inferior".
573
574 2016-01-13 Pedro Alves <palves@redhat.com>
575
576 * NEWS: Mention $_inferior.
577 * inferior.c (inferior_id_make_value): New.
578 (inferior_funcs): New.
579 (_initialize_inferior): Create $_inferior variable.
580
581 2016-01-13 Pedro Alves <palves@redhat.com>
582
583 PR breakpoints/19388
584 * frame.c (get_current_frame): Use validate_registers_access.
585 * gdbthread.h (validate_registers_access): Declare.
586 * infrun.c (validate_siginfo_access): Delete.
587 (siginfo_value_read, siginfo_value_write): Use
588 validate_registers_access.
589 * thread.c (validate_registers_access): New function.
590
591 2016-01-12 Josh Stone <jistone@redhat.com>
592 Philippe Waroquiers <philippe.waroquiers@skynet.be>
593
594 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
595 syscall_entry and syscall_return stop reasons. Mention GDB
596 support for remote catch syscall.
597 * remote.c (PACKET_QCatchSyscalls): New enum.
598 (remote_set_syscall_catchpoint): New function.
599 (remote_protocol_features): New element for QCatchSyscalls.
600 (remote_parse_stop_reply): Parse syscall_entry/return stops.
601 (init_remote_ops): Install remote_set_syscall_catchpoint.
602 (_initialize_remote): Config QCatchSyscalls.
603 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
604
605 2016-01-12 Yao Qi <yao.qi@linaro.org>
606
607 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
608 to gdb_byte * and pass to linux_fork_to_function.
609
610 2016-01-12 Yao Qi <yao.qi@linaro.org>
611
612 * nat/linux-ptrace.c (linux_fork_to_function): Change type
613 of argument 'function'.
614 (linux_grandchild_function): Change return type to 'int'.
615 Change child_stack's type to 'void *'.
616 (linux_child_function): Likewise.
617
618 2016-01-12 Pedro Alves <palves@redhat.com>
619
620 Remove use of the registered trademark symbol throughout.
621
622 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
623
624 * reply_mig_hack.awk: Rewrite one regular expression.
625
626 2016-01-11 Mike Frysinger <vapier@gentoo.org>
627
628 * acinclude.m4: Include new warning.m4 file.
629 * configure: Regenerated.
630 * configure.ac: Move all warning logic ...
631 * warning.m4: ... here.
632
633 2016-01-08 Yao Qi <yao.qi@linaro.org>
634
635 * extension.c: Include target.h.
636 (set_active_ext_lang): Only call install_gdb_sigint_handler,
637 check_quit_flag, and set_quit_flag if target_terminal_is_ours
638 returns false.
639 (restore_active_ext_lang): Likewise.
640 * target.c (target_terminal_is_ours): New function.
641 * target.h (target_terminal_is_ours): Declare.
642
643 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
644
645 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
646 to `err' in the little-endian leg.
647
648 2016-01-06 Yao Qi <yao.qi@linaro.org>
649
650 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
651 lines below.
652 (thumb_get_next_pcs_raw): Make it static.
653 (arm_get_next_pcs_raw): Likewise.
654 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
655 declaration.
656 (arm_get_next_pcs_raw): Likewise.
657
658 2016-01-05 Mike Frysinger <vapier@gentoo.org>
659
660 * version.in: Change cvs to git.
661
662 2016-01-05 Mike Frysinger <vapier@gentoo.org>
663
664 * configure.tgt (score-*-*): Delete gdb_sim assignment.
665
666 2016-01-05 Pedro Alves <palves@redhat.com>
667
668 PR sim/13418
669 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
670 the target is powerpc*.
671 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
672 of WITH_SIM.
673 * configure: Regenerate.
674 * config.in: Regenerate.
675
676 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
677
678 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
679
680 2016-01-02 Mike Frysinger <vapier@gentoo.org>
681
682 * configure.tgt (powerpc*-*-*): Delete test call and
683 always assign gdb_sim.
684
685 2016-01-01 Joel Brobecker <brobecker@adacore.com>
686
687 Update year range in copyright notice of all files.
688
689 2016-01-01 Joel Brobecker <brobecker@adacore.com>
690
691 * top.c (print_gdb_version): Change copyright year in version
692 message.
693
694 2016-01-01 Joel Brobecker <brobecker@adacore.com>
695
696 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
697
698 For older changes see ChangeLog-2015.
699 \f
700 Local Variables:
701 mode: change-log
702 left-margin: 8
703 fill-column: 74
704 version-control: never
705 coding: utf-8
706 End:
This page took 0.042855 seconds and 4 git commands to generate.