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