1 2016-02-10 Joel Brobecker <brobecker@adacore.com>
3 GDB 7.11 branch created (9ef9e6a6a0dd8f948708cb67c9afcfd0be40cb0a):
4 * version.in: Bump version to 7.11.50.DATE-git.
6 2016-02-09 Keith Seitz <keiths@redhat.com>
9 * breakpoint.c (breakpoint_event_location_empty_p): New function.
10 (update_breakpoints_after_exec, bkpt_re_set): Use this new function
11 instead of event_location_empty_p.
13 2016-02-09 Keith Seitz <keiths@redhat.com>
15 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Use
16 string_to_event_location_basic instead of string_to_event_location.
18 2016-02-09 Keith Seitz <keiths@redhat.com>
20 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Skip
21 leading whitespace and use string_to_event_location_basic instead
22 of new_linespec_location.
24 2016-02-09 Keith Seitz <keiths@redhat.com>
27 * python/py-breakpoint.c (bppy_init): Use
28 string_to_event_location_basic instead of new_linespec_location.
30 2016-02-09 Keith Seitz <keiths@redhat.com>
32 * location.c (string_to_explicit_location): Note that "-p" is
33 reserved for probe locations and return NULL for any input
34 that starts with that.
35 (string_to_event_location): Move "legacy" linespec code to ...
36 (string_to_event_location_basic): ... here.
37 * location.h (string_to_event_location): Update comment.
38 (string_to_event_location_basic): New function.
40 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
42 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
43 to AC_OUTPUT. Remove "exit 0" at the end.
44 * configure: Regenerate.
46 2016-02-09 Pedro Alves <palves@redhat.com>
49 * breakpoint.c (create_overlay_event_breakpoint): Don't update
50 global location list here.
51 (create_longjmp_master_breakpoint)
52 (create_std_terminate_master_breakpoint)
53 (create_exception_master_breakpoint, create_jit_event_breakpoint)
54 (update_breakpoint_locations):
55 (breakpoint_re_set): Update global location list after all
56 breakpoints are re-set.
58 2016-02-08 Simon Marchi <simon.marchi@ericsson.com>
60 * remote.c (remote_register_number_and_offset): Remove unused
62 (remote_thread_always_alive): Likewise.
63 (remote_update_thread_list): Likewise.
64 (process_initial_stop_replies): Likewise.
65 (remote_start_remote): Likewise.
66 (remote_check_symbols): Likewise.
67 (discard_pending_stop_replies): Likewise.
68 (process_stop_reply): Likewise.
69 (putpkt_binary): Likewise.
71 (remote_add_target_side_condition): Likewise.
72 (remote_insert_breakpoint): Likewise.
73 (remote_supports_stopped_by_sw_breakpoint): Likewise.
74 (remote_supports_stopped_by_hw_breakpoint): Likewise.
75 (remote_xfer_partial): Likewise.
76 (remote_read_btrace): Likewise.
77 (remote_async_serial_handler): Likewise.
78 (remote_thread_events): Likewise.
79 (_initialize_remote): Likewise.
81 2016-02-07 Simon Marchi <simon.marchi@polymtl.ca>
83 * varobj.h (varobj_delete): Remove dellist parameter, update and
84 move documentation here.
85 * varobj.c (struct cpstack, cppush, cppop): Remove.
86 (delete_variable): Remove resultp (first) parameter.
87 (delete_variable_1): Likewise.
88 (varobj_delete): Remove dellist parameter and unused code.
89 (update_dynamic_varobj_children): Adjust varobj_delete call.
90 (update_type_if_necessary): Likewise.
91 (varobj_set_visualizer): Likewise.
92 (varobj_update): Likewise.
93 (value_of_root): Likewise.
94 (varobj_invalidate_iter): Likewise.
95 * mi/mi-cmd-var.c (mi_cmd_var_delete): Likewise.
97 2016-02-04 Yao Qi <yao.qi@linaro.org>
99 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to
100 0 before handling 'F' and set it back afterwards.
102 2016-02-02 Simon Marchi <simon.marchi@ericsson.com>
104 * ui-out.c (MAX_UI_OUT_LEVELS): Remove.
106 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
108 * amd64-linux-siginfo.c (nat_siginfo_t, nat_sigval_t, nat_timeval):
110 (compat_siginfo): New bound fields added.
111 (compat_x32_siginfo): New field added.
112 (cpt_si_addr_lsb): New define.
113 (compat_siginfo_from_siginfo): Use nat_siginfo.
114 (siginfo_from_compat_siginfo): Use nat_siginfo.
115 (compat_x32_siginfo_from_siginfo): Likewise.
116 (siginfo_from_compat_x32_siginfo): Likewise.
118 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
120 * linux-tdep.c (linux_get_siginfo_type): Add the _addr_bnd
121 structure to the siginfo if extra_fields contains
122 LINUX_SIGINFO_FIELD_ADDR_BND.
124 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
126 * linux-tdep.h (linux_get_siginfo_type_with_fields): Make extern.
127 * linux-tdep.c (linux_get_siginfo_type_with_fields): Make extern.
128 * i386-linux-tdep.h (x86_linux_get_siginfo_type): New
130 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Add
131 x86_linux_get_siginfo_type for the amd64 abi.
132 * i386-linux-tdep.c (x86_linux_get_siginfo_type): New
134 (i386_linux_init_abi): Add new function at the i386 ABI
137 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
139 * linux-tdep.h (linux_siginfo_extra_field_values): New enum values.
140 (linux_siginfo_extra_fields): New enum type.
141 * linux-tdep.c (linux_get_siginfo_type_with_fields): New function.
142 (linux_get_siginfo_type): Use new function.
144 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
146 * nat/amd64-linux-siginfo.c: New file.
147 * nat/amd64-linux-siginfo.h: New file.
148 * Makefile.in (HFILES_NO_SRCDIR): Add nat/amd64-linux-siginfo.h.
149 (amd64-linux-siginfo.o): New rule.
150 * config/i386/linux64.mh (NATDEPFILES): Add amd64-linux-siginfo.o.
151 * amd64-linux-nat.c (nat/amd64-linux-siginfo.h): New include.
152 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
153 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
154 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
155 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
156 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
157 (cpt_si_fd, si_timerid, si_overrun): Move to nat/amd64-linux-siginfo.c.
159 2016-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
161 * value.c (max_value_size): New variable.
162 (MIN_VALUE_FOR_MAX_VALUE_SIZE): New define.
163 (set_max_value_size): New function.
164 (show_max_value_size): New function.
165 (check_type_length_before_alloc): New function.
166 (allocate_value_contents): Call check_type_length_before_alloc.
167 (set_value_enclosing_type): Likewise.
168 (_initialize_values): Add set/show handler for max-value-size.
169 * NEWS: Mention new set/show command.
171 2016-01-31 Simon Marchi <simon.marchi@polymtl.ca>
173 * varobj.h (struct varobj): Fix typos in comments.
174 (struct lang_varobj_ops): Likewise.
175 * varobj.c (VAROBJ_TABLE_SIZE): Likewise.
176 (varobj_create): Move misplaced comment.
178 2016-01-29 Simon Marchi <simon.marchi@ericsson.com>
180 * aarch64-tdep.c (aarch64_record_asimd_load_store): Add braces
181 to for include additional lines.
182 * xcoffread.c (scan_xcoff_symtab): Remove unnecessary braces.
184 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
186 * gnulib/import/Makefile.am: Regenerate.
187 * gnulib/import/Makefile.in: Regenerate.
188 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
189 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add rawmemchr.
191 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
193 * remote.c (skip_to_semicolon): Remove.
194 (remote_parse_stop_reply): Use strchrnul instead of
196 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
198 * gnulib/aclocal.m4: Regenerate.
199 * gnulib/config.in: Regenerate.
200 * gnulib/configure: Regenerate.
201 * gnulib/import/Makefile.am: Regenerate.
202 * gnulib/import/Makefile.in: Regenerate.
203 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
204 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
205 * gnulib/import/m4/rawmemchr.m4: New file.
206 * gnulib/import/m4/strchrnul.m4: New file.
207 * gnulib/import/rawmemchr.c: New file.
208 * gnulib/import/rawmemchr.valgrind: New file.
209 * gnulib/import/strchrnul.c: New file.
210 * gnulib/import/strchrnul.valgrind: New file.
212 2016-01-28 Yao Qi <yao.qi@linaro.org>
214 * breakpoint.c (build_target_command_list): Don't call continue
216 (build_target_condition_list): Likewise.
218 2016-01-27 Kevin Buettner <kevinb@redhat.com>
220 * rx-tdep.c (rx_push_dummy_call): Treat scalars larger than 8
223 2016-01-27 Joel Brobecker <brobecker@adacore.com>
225 * MAINTAINERS (Responsible Maintainers): Add Keith Seitz as
226 Linespec Maintainers.
228 2016-01-26 Simon Marchi <simon.marchi@ericsson.com>
230 * common/common-utils.c (skip_spaces): Fix comment.
231 (skip_to_space_const): Likewise.
233 2016-01-25 Yao Qi <yao.qi@linaro.org>
235 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
236 Remove argument pc. Get pc by regcache_read_pc. Callers updated.
237 (arm_deal_with_atomic_sequence_raw): Likewise.
238 (thumb_get_next_pcs_raw): Likewise.
239 (arm_get_next_pcs_raw): Likewise.
240 (arm_get_next_pcs): Remove argument pc. Callers updated.
241 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Update declaration.
243 2016-01-25 Mark Wielaard <mjw@redhat.com>
245 * ada-lang.c (ada_evaluate_subexp): Add proper else block.
246 * c-typeprint.c (c_type_print_base): Fix misleading indentation of
248 * inflow.c (child_terminal_ours_1): Fix misleading indentation of
249 statement block by introducing an else.
250 * linux-record.c (record_linux_sockaddr): Fix misleading indentation
251 of return statements.
252 (record_linux_msghdr): Likewise.
254 2016-01-25 Pedro Alves <palves@redhat.com>
257 * infrun.c (handle_inferior_event_1) <fork/vfork>: Update
258 parent/child running states.
260 2016-01-25 Pedro Alves <palves@redhat.com>
263 * linux-nat.c (kill_one_lwp): New, factored out from ...
264 (kill_callback): ... this.
265 (kill_wait_callback): New, factored out from ...
266 (kill_wait_one_lwp): ... this.
267 (kill_unfollowed_fork_children): New function.
268 (linux_nat_kill): Use it.
270 2016-01-22 John Baldwin <jhb@FreeBSD.org>
272 * fbsd-nat.c (fbsd_pid_to_str): Adjust string format.
274 2016-01-22 Yao Qi <yao.qi@linaro.org>
276 * arm-linux-nat.c (fetch_fpregs): Call perror_with_name
278 (store_fpregs, fetch_regs, store_regs): Likewise.
279 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
280 (fetch_vfp_regs, store_vfp_regs): Likewise.
282 2016-01-21 Doug Evans <dje@google.com>
284 * breakpoint.c (init_breakpoint_sal): Add comment.
286 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
288 * ax-gdb.c (gen_traced_pop): Use gen_fetch for string collection.
290 2016-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
292 * disasm.c (maybe_add_dis_line_entry): Rename to...
293 (add_dis_line_entry): ...this, and update header comment.
294 (do_mixed_source_and_assembly): Now use add_dis_line_entry.
296 2016-01-21 Pedro Alves <palves@redhat.com>
298 * Makefile.in (COMPILER_CFLAGS): New.
299 (CXXFLAGS): Get it from configure.
300 (INTERNAL_CFLAGS_BASE, INTERNAL_LDFLAGS): Use COMPILER_CFLAGS
302 * build-with-cxx.m4 (GDB_AC_BUILD_WITH_CXX): Set and AC_SUBST
304 * configure: Regenerate.
306 2016-01-21 Joel Brobecker <brobecker@adacore.com>
308 * location.h (new_address_location): Add new parameters
309 "addr_string" and "addr_string_len".
310 (get_address_string_location): Add declaration.
311 * location.c (new_address_location): Add new parameters
312 "addr_string" and "addr_string_len". If not NULL, store
313 a copy of the addr_string in the new location as well.
314 (get_address_string_location): New function.
315 (string_to_event_location): Update call to new_address_location.
316 * linespec.c (event_location_to_sals) <ADDRESS_LOCATION>:
317 Save the event location in the parser's state before
318 passing it to convert_address_location_to_sals.
319 * breakpoint.c (create_thread_event_breakpoint): Update call
320 to new_address_location.
321 (init_breakpoint_sal): Get the event location's string, if any,
322 and use it to update call to new_address_location.
323 * python/py-finishbreakpoint.c (bpfinishpy_init):
324 Update call to new_address_location.
325 * spu-tdep.c (spu_catch_start): Likewise.
327 * config/djgpp/fnchange.lst: Add entries for
328 gdb/testsuite/gdb.base/break-fun-addr1.c and
329 gdb/testsuite/gdb.base/break-fun-addr2.c.
331 2016-01-21 Yao Qi <yao.qi@linaro.org>
333 * arm-linux-tdep.c (arm_linux_sigreturn_next_pc): Add parameter
334 is_thumb and set it according to CPSR saved on the stack.
335 (arm_linux_get_next_pcs_syscall_next_pc): Pass is_thumb to
336 arm_linux_sigreturn_next_pc.
338 2016-01-20 Simon Marchi <simon.marchi@polymtl.ca>
340 * python/lib/gdb/printing.py (FlagEnumerationPrinter.__call__):
341 Fix enumerators sort key function.
343 2016-01-20 Joel Brobecker <brobecker@adacore.com>
345 * printcmd.c (print_scalar_formatted): Move binary operator from
346 end of line to beginning of next line. Adjust formatting
349 2016-01-19 John Baldwin <jhb@FreeBSD.org>
351 * fbsd-nat.c (fbsd_pid_to_exec_file): Use new "buflen" instead of
354 2016-01-19 John Baldwin <jhb@FreeBSD.org>
356 * fbsd-tdep.c (find_stop_signal): Remove.
357 (struct fbsd_collect_regset_section_cb) <lwp>: New field.
358 <stop_signal>: New field.
359 <abort_iteration>: New field.
360 (fbsd_collect_regset_section_cb): Use new fields.
361 (fbsd_collect_thread_registers): New function.
362 (struct fbsd_corefile_thread_data): New structure.
363 (fbsd_corefile_thread): New function.
364 (fbsd_make_corefile_notes): Use new function to dump notes for each
365 non-exited thread in a process.
367 2016-01-19 John Baldwin <jhb@FreeBSD.org>
369 * configure.ac: Check for support for LWP names on FreeBSD.
370 * fbsd-nat.c [PT_LWPINFO] New variable debug_fbsd_lwp.
371 [TDP_RFPPWAIT || HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]
372 (fbsd_fetch_kinfo_proc): Move function earlier.
373 [PT_LWPINFO] (fbsd_thread_alive): New function.
374 [PT_LWPINFO] (fbsd_pid_to_str): New function.
375 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME] (fbsd_thread_name): New function.
376 [PT_LWP_EVENTS] (fbsd_enable_lwp_events): New function.
377 [PT_LWPINFO] (fbsd_add_threads): New function.
378 [PT_LWPINFO] (fbsd_update_thread_list): New function.
379 [PT_LWPINFO] New variable super_resume.
380 [PT_LWPINFO] (resume_one_thread_cb): New function.
381 [PT_LWPINFO] (resume_all_threads_cb): New function.
382 [PT_LWPINFO] (fbsd_resume): New function.
383 (fbsd_remember_child): Save full ptid instead of plain pid.
384 (fbsd_is_child_pending): Return ptid of saved child process.
385 (fbsd_wait): Include lwp in returned ptid and switch to LWP ptid on
387 [PT_LWP_EVENTS] Handle LWP events.
388 [TDP_RFPPWAIT] Include LWP in child ptid.
389 (fbsd_post_startup_inferior) [PT_LWP_EVENTS]: Enable LWP events.
390 (fbsd_post_attach) [PT_LWP_EVENTS]: Enable LWP events.
391 Add threads for existing processes.
392 (fbsd_nat_add_target) [PT_LWPINFO]: Set "to_thread_alive" to
394 Set "to_pid_to_str" to "fbsd_pid_to_str".
395 [HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME]: Set "to_thread_name" to
397 [PT_LWPINFO]: Set "to_update_thread_list" to "fbsd_update_thread_list".
398 Set "to_has_thread_control" to "tc_schedlock".
399 Set "to_resume" to "fbsd_resume".
400 (_initialize_fbsd_nat): New function.
401 * configure: Regenerate.
402 * config.in: Regenerate.
404 2016-01-19 John Baldwin <jhb@FreeBSD.org>
406 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
408 (amd64bsd_store_inferior_registers): Use get_ptrace_pid.
409 (amd64bsd_dr_get): Use get_ptrace_pid.
410 (amd64bsd_dr_set): Use get_ptrace_pid.
411 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Use get_ptrace_pid.
412 (i386bsd_store_inferior_registers): Use get_ptrace_pid.
413 (i386bsd_dr_get): Use get_ptrace_pid.
414 (i386bsd_dr_set): Use get_ptrace_pid.
415 * inf-ptrace.c (get_ptrace_pid): Export.
416 * inf-ptrace.h (get_ptrace_pid): Declare.
417 * ppcfbsd-nat.c (ppcfbsd_fetch_inferior_registers): Use lwp id.
418 (ppcfbsd_store_inferior_registers): Use lwp id.
420 2016-01-19 John Baldwin <jhb@FreeBSD.org>
422 * fbsd_tdep.c (fbsd_core_pid_to_str): New function.
423 (fbsd_core_thread_name): New function.
424 (fbsd_init_abi): Add "core_pid_to_str" gdbarch method.
425 Add "core_thread_name" gdbarch method.
427 2016-01-19 John Baldwin <jhb@FreeBSD.org>
429 * corelow.c (core_thread_name): New function.
430 (init_core_ops): Use "core_thread_name" for the "to_thread_name"
432 * gdbarch.sh (core_thread_name): New gdbarch callback.
433 * gdbarch.h: Re-generate.
434 * gdbarch.c: Re-generate.
436 2016-01-19 Simon Marchi <simon.marchi@polymtl.ca>
438 * python/lib/gdb/printing.py (_EnumInstance.to_string): Explicitly
439 convert gdb.Value to integer type using int().
441 2016-01-19 John Baldwin <jhb@FreeBSD.org>
443 * configure.ac: Include <sys/types.h when checking for "r_fs" in
445 * configure: Regenerate.
447 2016-01-19 Pedro Alves <palves@redhat.com>
449 * ax-gdb.c (agent_command_1): Adjust call to decode_line_full.
450 * break-catch-throw.c (re_set_exception_catchpoint): Pass the
451 current program space down to linespec decoding and breakpoint
453 * breakpoint.c (parse_breakpoint_sals): Adjust calls to
455 (until_break_command): Adjust calls to decode_line_1.
456 (base_breakpoint_decode_location, bkpt_decode_location): Add
457 'search_pspace' parameter. Pass it along.
458 (bkpt_probe_create_sals_from_location): Adjust calls to
460 (tracepoint_decode_location, tracepoint_probe_decode_location)
461 (strace_marker_decode_location): Add 'search_pspace' parameter.
463 (all_locations_are_pending): Rewrite to take a breakpoint and
464 program space as arguments instead.
465 (hoist_existing_locations): New function.
466 (update_breakpoint_locations): Add 'filter_pspace' parameter. Use
467 hoist_existing_locations instead of always removing all locations,
468 and adjust to all_locations_are_pending change.
469 (location_to_sals): Add 'search_pspace' parameter. Pass it along.
470 Don't disable the breakpoint if there are other locations in
471 another program space.
472 (breakpoint_re_set_default): Adjust to pass down the current
473 program space as filter program space.
474 (decode_location_default): Add 'search_pspace' parameter and pass
476 (prepare_re_set_context): Don't switch program space here.
477 (breakpoint_re_set): Use save_current_space_and_thread instead of
478 save_current_program_space.
479 * breakpoint.h (struct breakpoint_ops) <decode_location>: Add
480 'search_pspace' parameter.
481 (update_breakpoint_locations): Add 'filter_pspace' parameter.
482 * cli/cli-cmds.c (edit_command, list_command): Adjust calls to
484 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the current
485 program space as filter program space.
486 * linespec.c (struct linespec_state) <search_pspace>: New field.
487 (create_sals_line_offset, convert_explicit_location_to_sals)
488 (parse_linespec): Pass the search program space down.
489 (linespec_state_constructor): Add 'search_pspace' parameter.
491 (linespec_parser_new): Add 'search_pspace' parameter and pass it
493 (linespec_lex_to_end): Adjust.
494 (decode_line_full, decode_line_1): Add 'search_pspace' parameter
496 (decode_line_with_last_displayed): Adjust.
497 (collect_symtabs_from_filename, symtabs_from_filename): New
498 'search_pspace' parameter. Use it.
499 (find_function_symbols): Pass the search program space down.
500 * linespec.h (decode_line_1, decode_line_full): Add
501 'search_pspace' parameter.
502 * probe.c (parse_probes_in_pspace): New function, factored out
504 (parse_probes): ... this. Add 'search_pspace' parameter and use
506 * probe.h (parse_probes): Add pspace' parameter.
507 * python/python.c (gdbpy_decode_line): Adjust.
508 * tracepoint.c (scope_info): Adjust.
510 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
512 * mips-tdep.c (mips_insn_size): Remove 48-bit microMIPS
514 (micromips_next_pc): Likewise.
515 (micromips_scan_prologue): Likewise.
516 (micromips_deal_with_atomic_sequence): Likewise.
517 (micromips_stack_frame_destroyed_p): Likewise.
518 (mips_breakpoint_from_pc): Likewise.
520 2016-01-18 Maciej W. Rozycki <macro@imgtec.com>
522 * mips-tdep.c (micromips_insn_at_pc_has_delay_slot): Pass
523 unshifted 16-bit microMIPS instruction word to `mips_insn_size'.
525 2016-01-18 Pedro Alves <palves@redhat.com>
527 * NEWS: Mention that GDB now displays the ID and name of the
528 thread that hit a breakpoint or received a signal.
529 * break-catch-sig.c (signal_catchpoint_print_it): Use
530 maybe_print_thread_hit_breakpoint.
531 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
532 * break-catch-throw.c (print_it_exception_catchpoint): Likewise.
533 * breakpoint.c (maybe_print_thread_hit_breakpoint): New function.
534 (print_it_catch_fork, print_it_catch_vfork, print_it_catch_solib)
535 (print_it_catch_exec, print_it_ranged_breakpoint)
536 (print_it_watchpoint, print_it_masked_watchpoint, bkpt_print_it):
537 Use maybe_print_thread_hit_breakpoint.
538 * breakpoint.h (maybe_print_thread_hit_breakpoint): Declare.
539 * gdbthread.h (show_thread_that_caused_stop): Declare.
540 * infrun.c (print_signal_received_reason): Print which thread
542 * thread.c (show_thread_that_caused_stop): New function.
544 2016-01-18 Gary Benson <gbenson@redhat.com>
546 * nat/linux-namespaces.c (do_fork): New function.
547 (linux_mntns_get_helper): Use the above.
549 2016-01-17 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de> (tiny change)
551 Pushed by Joel Brobecker <brobecker@adacore.com>.
553 * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
554 if the function has no name.
556 2016-01-15 Sandra Loosemore <sandra@codesourcery.com>
558 * charset.c [PHONY_ICONV] (GDB_DEFAULT_HOST_CHARSET):
559 Conditionalize for Windows host.
560 (GDB_DEFAULT_TARGET_CHARSET): Match GDB_DEFAULT_HOST_CHARSET.
561 (GDB_DEFAULT_TARGET_WIDE_CHARSET): Use UTF-32.
562 (phony_iconv_open): Handle both UTF-32 endiannesses.
563 (phony_iconv): Likewise. Check for output overflow and clean up
564 out-of-input cases. Correct adjustment to input buffer pointer.
565 (set_be_le_names) [PHONY_ICONV]: Use hard-wired names to match
568 2016-01-15 Pedro Alves <palves@redhat.com>
570 * NEWS: Mention star wildcard ranges.
571 * cli/cli-utils.c (get_number_or_range): Check state->in_range first.
572 (number_range_setup_range): New function.
573 * cli/cli-utils.h (number_range_setup_range): New declaration.
574 * thread.c (thread_apply_command): Support star TID ranges.
575 * tid-parse.c (tid_range_parser_finished)
576 (tid_range_parser_string, tid_range_parser_skip)
577 (get_tid_or_range, get_tid_or_range): Handle
578 TID_RANGE_STATE_STAR_RANGE.
579 (tid_range_parser_star_range): New function.
580 * tid-parse.h (enum tid_range_state) <TID_RANGE_STATE_STAR_RANGE>:
582 (tid_range_parser_star_range): New declaration.
584 2016-01-15 Pedro Alves <palves@redhat.com>
586 * thread.c (thread_apply_command): Use the tid range parser to
587 advance past the thread ID list.
588 * tid-parse.c (get_positive_number_trailer): New function.
589 (parse_thread_id): Use it.
590 (get_tid_or_range): Use it. Return 0 instead of throwing invalid
592 (get_tid_or_range): Detect negative values. Return 0 instead of
593 throwing invalid thread ID error.
595 2016-01-14 Yao Qi <yao.qi@linaro.org>
597 * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
599 (arm_linux_get_next_pcs_ops): Install
600 arm_linux_get_next_pcs_syscall_next_pc.
601 (arm_linux_syscall_next_pc): Change to ...
602 (arm_linux_get_next_pcs_syscall_next_pc): ... it.
603 (arm_linux_init_abi): Don't set tdep->syscall_next_pc.
604 * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Declare.
605 (arm_get_next_pcs_syscall_next_pc): Make it static. Don't
606 call tdep->syscall_next_pc.
607 * arm-tdep.h (struct gdbarch_tdep) <syscall_next_pc>: Remove.
608 (arm_get_next_pcs_syscall_next_pc): Remove.
610 2016-01-14 Yao Qi <yao.qi@linaro.org>
612 * remote.c (remote_set_syscall_catchpoint): Cast to char *.
613 * thread.c (do_captured_thread_select): Cast to const char *.
615 2016-01-14 Yao Qi <yao.qi@linaro.org>
617 * arch/arm-get-next-pcs.c (arm_get_next_pcs_ctor): Change
618 argument arm_thumb2_breakpoint to has_thumb2_breakpoint.
619 (thumb_get_next_pcs_raw): Check has_thumb2_breakpoint
621 * arch/arm-get-next-pcs.h (struct arm_get_next_pcs)
622 <arm_thumb2_breakpoint>: Remove.
623 <has_thumb2_breakpoint>: New field.
624 (arm_get_next_pcs_ctor): Update declaration.
625 * arm-linux-tdep.c (arm_linux_software_single_step): Pass
626 1 to arm_get_next_pcs_ctor.
627 * arm-tdep.c (arm_software_single_step): Pass 0 to
628 arm_get_next_pcs_ctor.
630 2016-01-13 Ulrich Weigand <uweigand@de.ibm.com>
632 * MAINTAINERS: Add Andreas Arnez as s390 target maintainer.
634 2016-01-13 Yao Qi <yao.qi@linaro.org>
636 * arch/arm-get-next-pcs.c (arm_get_next_pcs_raw): Use
637 byte_order_for_code to read instruction.
639 2016-01-13 Pedro Alves <palves@redhat.com>
641 * NEWS: Mention $_gthread.
642 * gdbthread.h (struct thread_info) <global_num>: Mention
644 * thread.c (thread_num_make_value_helper): New function.
645 (thread_id_make_value): Delete.
646 (thread_id_per_inf_num_make_value, global_thread_id_make_value):
648 (thread_funcs): Adjust.
649 (gthread_funcs): New.
650 (_initialize_thread): Register $_gthread variable.
652 2016-01-13 Pedro Alves <palves@redhat.com>
654 * NEWS: Mention "info threads -gid".
655 * gdbthread.h (struct thread_info) <global_num>: Mention "info
657 * thread.c (info_threads_command): Handle "-gid".
658 (_initialize_thread): Adjust "info threads" help string to mention
661 2016-01-13 Pedro Alves <palves@redhat.com>
663 * NEWS: Mention InferiorThread.global_num.
664 * python/py-infthread.c (thpy_get_global_num): New function.
665 (thread_object_getset): Register "global_num".
667 2016-01-13 Pedro Alves <palves@redhat.com>
669 * NEWS: Mention that thread IDs are now per inferior and global
671 * Makefile.in (SFILES): Add tid-parse.c.
672 (COMMON_OBS): Add tid-parse.o.
673 (HFILES_NO_SRCDIR): Add tid-parse.h.
674 * ada-tasks.c: Adjust to use ptid_to_global_thread_id.
675 * breakpoint.c (insert_breakpoint_locations)
676 (remove_threaded_breakpoints, bpstat_check_breakpoint_conditions)
677 (print_one_breakpoint_location, set_longjmp_breakpoint)
678 (check_longjmp_breakpoint_for_call_dummy)
679 (set_momentary_breakpoint): Adjust to use global IDs.
680 (find_condition_and_thread, watch_command_1): Use parse_thread_id.
681 (until_break_command, longjmp_bkpt_dtor)
682 (breakpoint_re_set_thread, insert_single_step_breakpoint): Adjust
684 * dummy-frame.c (pop_dummy_frame_bpt): Adjust to use
685 ptid_to_global_thread_id.
686 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
687 * gdbthread.h (struct thread_info): Rename field 'num' to
688 'global_num. Add new fields 'per_inf_num' and 'inf'.
689 (thread_id_to_pid): Rename thread_id_to_pid to
690 global_thread_id_to_ptid.
691 (pid_to_thread_id): Rename to ...
692 (ptid_to_global_thread_id): ... this.
693 (valid_thread_id): Rename to ...
694 (valid_global_thread_id): ... this.
695 (find_thread_id): Rename to ...
696 (find_thread_global_id): ... this.
697 (ALL_THREADS, ALL_THREADS_BY_INFERIOR): Declare.
698 (print_thread_info): Add comment.
699 * tid-parse.h: New file.
700 * tid-parse.c: New file.
701 * infcmd.c (step_command_fsm_prepare)
702 (step_command_fsm_should_stop): Adjust to use the global thread
704 (until_next_command, until_next_command)
705 (finish_command_fsm_should_stop): Adjust to use the global thread
707 (attach_post_wait): Adjust to check the inferior number too.
708 * inferior.h (struct inferior) <highest_thread_num>: New field.
709 * infrun.c (handle_signal_stop)
710 (insert_exception_resume_breakpoint)
711 (insert_exception_resume_from_probe): Adjust to use the global
713 * record-btrace.c (record_btrace_open): Use global thread IDs.
714 * remote.c (process_initial_stop_replies): Also consider the
716 * target.c (target_pre_inferior): Clear the inferior's highest
718 * thread.c (clear_thread_inferior_resources): Adjust to use the
720 (new_thread): New inferior parameter. Adjust to use it. Set both
721 the thread's global ID and the thread's per-inferior ID.
722 (add_thread_silent): Adjust.
723 (find_thread_global_id): New.
724 (find_thread_id): Make static. Adjust to rename.
725 (valid_thread_id): Rename to ...
726 (valid_global_thread_id): ... this.
727 (pid_to_thread_id): Rename to ...
728 (ptid_to_global_thread_id): ... this.
729 (thread_id_to_pid): Rename to ...
730 (global_thread_id_to_ptid): ... this. Adjust.
731 (first_thread_of_process): Adjust.
732 (do_captured_list_thread_ids): Adjust to use global thread IDs.
733 (should_print_thread): New function.
734 (print_thread_info): Rename to ...
735 (print_thread_info_1): ... this, and add new show_global_ids
736 parameter. Handle it. Iterate over inferiors.
737 (print_thread_info): Reimplement as wrapper around
739 (show_inferior_qualified_tids): New function.
740 (print_thread_id): Use it.
741 (tp_array_compar): Compare inferior numbers too.
742 (thread_apply_command): Use tid_range_parser.
743 (do_captured_thread_select): Use parse_thread_id.
744 (thread_id_make_value): Adjust.
745 (_initialize_thread): Adjust "info threads" help string.
746 * varobj.c (struct varobj_root): Update comment.
747 (varobj_create): Adjust to use global thread IDs.
748 (value_of_root_1): Adjust to use global_thread_id_to_ptid.
749 * windows-tdep.c (display_tib): No longer accept an argument.
750 * cli/cli-utils.c (get_number_trailer): Make extern.
751 * cli/cli-utils.h (get_number_trailer): Declare.
752 (get_number_const): Adjust documentation.
753 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Adjust to use global
755 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
756 (mi_on_normal_stop, mi_output_running_pid, mi_on_resume):
757 * mi/mi-main.c (mi_execute_command, mi_cmd_execute): Likewise.
758 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_thread_x):
760 * python/py-breakpoint.c (bppy_set_thread): Likewise.
761 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
762 * python/py-infthread.c (thpy_get_num): Add comment and return the
763 per-inferior thread ID.
764 (thread_object_getset): Update comment of "num".
766 2016-01-13 Pedro Alves <palves@redhat.com>
768 * breakpoint.c (remove_threaded_breakpoints)
769 (print_one_breakpoint_location): Use print_thread_id.
770 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
771 (btrace_fetch, btrace_clear): Use print_thread_id.
772 * common/print-utils.c (CELLSIZE): Delete.
773 (get_cell): Rename to ...
774 (get_print_cell): ... this and made extern. Adjust call callers.
775 Adjust to use PRINT_CELL_SIZE.
776 * common/print-utils.h (get_print_cell): Declare.
777 (PRINT_CELL_SIZE): New.
778 * gdbthread.h (print_thread_id): Declare.
779 * infcmd.c (signal_command): Use print_thread_id.
780 * inferior.c (print_inferior): Use print_thread_id.
781 * infrun.c (handle_signal_stop)
782 (insert_exception_resume_breakpoint)
783 (insert_exception_resume_from_probe)
784 (print_signal_received_reason): Use print_thread_id.
785 * record-btrace.c (record_btrace_info)
786 (record_btrace_resume_thread, record_btrace_cancel_resume)
787 (record_btrace_step_thread, record_btrace_wait): Use
789 * thread.c (thread_apply_all_command): Use print_thread_id.
790 (print_thread_id): New function.
791 (thread_apply_command): Use print_thread_id.
792 (thread_command, thread_find_command, do_captured_thread_select):
795 2016-01-13 Pedro Alves <palves@redhat.com>
797 * NEWS: Mention InferiorThread.inferior.
798 * python/py-infthread.c (thpy_get_inferior): New.
799 (thread_object_getset): Register "inferior".
801 2016-01-13 Pedro Alves <palves@redhat.com>
803 * NEWS: Mention $_inferior.
804 * inferior.c (inferior_id_make_value): New.
805 (inferior_funcs): New.
806 (_initialize_inferior): Create $_inferior variable.
808 2016-01-13 Pedro Alves <palves@redhat.com>
811 * frame.c (get_current_frame): Use validate_registers_access.
812 * gdbthread.h (validate_registers_access): Declare.
813 * infrun.c (validate_siginfo_access): Delete.
814 (siginfo_value_read, siginfo_value_write): Use
815 validate_registers_access.
816 * thread.c (validate_registers_access): New function.
818 2016-01-12 Josh Stone <jistone@redhat.com>
819 Philippe Waroquiers <philippe.waroquiers@skynet.be>
821 * NEWS (Changes since GDB 7.10): Mention QCatchSyscalls and the
822 syscall_entry and syscall_return stop reasons. Mention GDB
823 support for remote catch syscall.
824 * remote.c (PACKET_QCatchSyscalls): New enum.
825 (remote_set_syscall_catchpoint): New function.
826 (remote_protocol_features): New element for QCatchSyscalls.
827 (remote_parse_stop_reply): Parse syscall_entry/return stops.
828 (init_remote_ops): Install remote_set_syscall_catchpoint.
829 (_initialize_remote): Config QCatchSyscalls.
830 * linux-nat.h (struct lwp_info) <syscall_state>: Comment typo.
832 2016-01-12 Yao Qi <yao.qi@linaro.org>
834 * nat/linux-ptrace.c (linux_child_function): Cast child_stack
835 to gdb_byte * and pass to linux_fork_to_function.
837 2016-01-12 Yao Qi <yao.qi@linaro.org>
839 * nat/linux-ptrace.c (linux_fork_to_function): Change type
840 of argument 'function'.
841 (linux_grandchild_function): Change return type to 'int'.
842 Change child_stack's type to 'void *'.
843 (linux_child_function): Likewise.
845 2016-01-12 Pedro Alves <palves@redhat.com>
847 Remove use of the registered trademark symbol throughout.
849 2016-01-12 Thomas Schwinge <thomas@codesourcery.com>
851 * reply_mig_hack.awk: Rewrite one regular expression.
853 2016-01-11 Mike Frysinger <vapier@gentoo.org>
855 * acinclude.m4: Include new warning.m4 file.
856 * configure: Regenerated.
857 * configure.ac: Move all warning logic ...
858 * warning.m4: ... here.
860 2016-01-08 Yao Qi <yao.qi@linaro.org>
862 * extension.c: Include target.h.
863 (set_active_ext_lang): Only call install_gdb_sigint_handler,
864 check_quit_flag, and set_quit_flag if target_terminal_is_ours
866 (restore_active_ext_lang): Likewise.
867 * target.c (target_terminal_is_ours): New function.
868 * target.h (target_terminal_is_ours): Declare.
870 2016-01-07 Maciej W. Rozycki <macro@imgtec.com>
872 * mips-tdep.c (mips_breakpoint_from_pc): Rename local `status'
873 to `err' in the little-endian leg.
875 2016-01-06 Yao Qi <yao.qi@linaro.org>
877 * arch/arm-get-next-pcs.c (arm_get_next_pcs): Move it to some
879 (thumb_get_next_pcs_raw): Make it static.
880 (arm_get_next_pcs_raw): Likewise.
881 * arch/arm-get-next-pcs.h (thumb_get_next_pcs_raw): Remove the
883 (arm_get_next_pcs_raw): Likewise.
885 2016-01-05 Mike Frysinger <vapier@gentoo.org>
887 * version.in: Change cvs to git.
889 2016-01-05 Mike Frysinger <vapier@gentoo.org>
891 * configure.tgt (score-*-*): Delete gdb_sim assignment.
893 2016-01-05 Pedro Alves <palves@redhat.com>
896 * configure.ac: Define WITH_PPC_SIM when linking in the sim and
897 the target is powerpc*.
898 * rs6000-tdep.c (init_sim_regno_table): Check WITH_PPC_SIM instead
900 * configure: Regenerate.
901 * config.in: Regenerate.
903 2016-01-04 Markus Metzger <markus.t.metzger@intel.com>
905 * btrace.c (btrace_pt_readmem_callback): Do not return in TRY/CATCH.
907 2016-01-02 Mike Frysinger <vapier@gentoo.org>
909 * configure.tgt (powerpc*-*-*): Delete test call and
910 always assign gdb_sim.
912 2016-01-01 Joel Brobecker <brobecker@adacore.com>
914 Update year range in copyright notice of all files.
916 2016-01-01 Joel Brobecker <brobecker@adacore.com>
918 * top.c (print_gdb_version): Change copyright year in version
921 2016-01-01 Joel Brobecker <brobecker@adacore.com>
923 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2015.
925 For older changes see ChangeLog-2015.
931 version-control: never