1 2018-03-26 Tom Tromey <tom@tromey.com>
4 * stack.c (backtrace_command): Parse "hide" argument.
5 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
6 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
9 2018-03-26 Tom Tromey <tom@tromey.com>
11 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
13 (backtrace_command): Remove "fulltrace", add "flags".
15 2018-03-26 Tom Tromey <tom@tromey.com>
17 * stack.c (backtrace_command): Rewrite command line parsing.
19 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
21 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
23 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
25 * filename-seen-cache.h: Add include guard.
27 2018-03-26 Keith Seitz <keiths@redhat.com>
29 * symfile.c (place_section): Remove "struct" from section_addr_info
31 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
32 "struct" keyword from section_addr_info.
34 2018-03-26 Alan Hayward <alan.hayward@arm.com>
36 * regformats/regdef.h (reg): Add constructors.
38 2018-03-25 Pedro Alves <palves@redhat.com>
40 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
41 if then/else bodies in var_func_name extraction.
43 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
45 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
46 lookup_minimal_symbol() to find symbol entry.
47 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
49 2018-03-23 Keith Seitz <keiths@redhat.com>
52 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
53 nested type definitions for C++, too.
55 2018-03-23 Tom Tromey <tom@tromey.com>
57 * machoread.c (struct oso_el): Add a constructor. Don't define as
59 (macho_register_oso): Remove.
60 (macho_symtab_read): Take a std::vector.
61 (oso_el_compare_name): Now a std::sort comparator.
62 (macho_symfile_read_all_oso): Take a std::vector.
63 (macho_symfile_read): Use std::vector. Remove cleanups.
65 2018-03-22 Tom Tromey <tom@tromey.com>
67 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
68 (record_full_goto_bookmark): Use std::string.
70 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
73 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
76 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
78 * rs6000-tdep.c (store_insn_p): New function.
79 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
80 and cr_reg to their unshifted values. Use store_insn_p to
81 match LR saves using either R1 or fdata->alloca_reg. Use
82 store_insn_p to match CR saves. Set alloca_reg_offset
83 when alloca_reg and framep are set. Remove lr_reg shift
84 when assigning to fdata->lr_register.
86 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
88 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
89 command line args instead of emitting a warning.
91 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
93 * tracepoint.h (struct static_tracepoint_marker): Initialize
94 fields, define default constructor, move constructor and move
95 assignment, disable the rest.
96 <str_id, extra>: Make std::string.
97 (release_static_tracepoint_marker): Remove.
98 (free_current_marker): Remove.
99 * tracepoint.c (free_current_marker): Remove.
100 (parse_static_tracepoint_marker_definition): Adjust to
101 std::string, use new hex2str overload.
102 (release_static_tracepoint_marker): Remove.
103 (print_one_static_tracepoint_marker): Get marker by reference
104 and adjust to std::string.
105 (info_static_tracepoint_markers_command): Adjust to std::vector
107 * target.h (static_tracepoint_marker_p): Remove typedef.
108 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
109 (struct target_ops) <to_static_tracepoint_marker_at>: Return
111 <to_static_tracepoint_markers_by_strid>: Return std::vector.
113 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
114 (target_debug_print_std_vector_static_tracepoint_marker): New.
115 (target_debug_print_struct_static_tracepoint_marker_p): Rename
117 (target_debug_print_static_tracepoint_marker_p): ... this.
118 * target-delegates.c: Re-generate.
119 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
121 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
122 (decode_static_tracepoint_spec): Adjust to std::vector.
123 (tracepoint_print_one_detail): Adjust to std::string.
124 (strace_marker_decode_location): Adjust to std::string.
125 (update_static_tracepoint): Adjust to std::string, remove call
126 to release_static_tracepoint_marker.
127 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
128 Adjust to std::vector.
129 * remote.c (remote_static_tracepoint_marker_at): Return bool.
130 (remote_static_tracepoint_markers_by_strid): Adjust to
132 * common/rsp-low.h (hex2str): New overload with explicit count
134 * common/rsp-low.c (hex2str): New overload with explicit count
136 * unittests/rsp-low-selftests.c (test_hex2str): New function.
137 (_initialize_rsp_low_selftests): Add test_hex2str test.
138 * unittests/tracepoint-selftests.c
139 (test_parse_static_tracepoint_marker_definition): Adjust to
142 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
144 * tracepoint.c (parse_static_tracepoint_marker_definition):
145 Consider case where the definition is followed by more
147 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
148 tracepoint-selftests.c.
149 * unittests/tracepoint-selftests.c: New.
151 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
153 * MAINTAINERS (Write After Approval): Add Pedro Franco de
156 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
158 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
160 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
162 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
164 2018-03-19 Tom Tromey <tom@tromey.com>
166 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
169 2018-03-19 Pedro Alves <palves@redhat.com>
170 Tom Tromey <tom@tromey.com>
172 * unittests/observable-selftests.c: New file.
173 * common/observable.h: New file.
174 * observable.h: New file.
175 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
176 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
177 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
178 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
179 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
180 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
181 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
182 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
183 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
184 python/py-breakpoint.c, python/py-finishbreakpoint.c,
185 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
186 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
187 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
188 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
189 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
190 tui/tui-interp.c, valops.c: Update all users.
191 * tui/tui-hooks.c (tui_bp_created_observer)
192 (tui_bp_deleted_observer, tui_bp_modified_observer)
193 (tui_inferior_exit_observer, tui_before_prompt_observer)
194 (tui_normal_stop_observer, tui_register_changed_observer):
196 (tui_observers_token): New global.
197 (attach_or_detach, tui_attach_detach_observers): New functions.
198 (tui_install_hooks, tui_remove_hooks): Use
199 tui_attach_detach_observers.
200 * record-btrace.c (record_btrace_thread_observer): Remove.
201 (record_btrace_thread_observer_token): New global.
202 * observer.sh: Remove.
203 * observer.c: Rename to observable.c.
204 * observable.c (namespace gdb_observers): Define new objects.
205 (observer_debug): Move into gdb_observers namespace.
206 (struct observer, struct observer_list, xalloc_observer_list_node)
207 (xfree_observer_list_node, generic_observer_attach)
208 (generic_observer_detach, generic_observer_notify): Remove.
209 (_initialize_observer): Update.
210 Don't include observer.inc.
211 * Makefile.in (generated_files): Remove observer.h, observer.inc.
212 (clean mostlyclean): Likewise.
213 (observer.h, observer.inc): Remove targets.
214 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
215 (COMMON_SFILES): Use observable.c, not observer.c.
216 * .gitignore: Remove observer.h.
218 2018-03-18 Tom Tromey <tom@tromey.com>
220 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
222 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
224 2018-03-17 Tom Tromey <tom@tromey.com>
226 * auto-load.c (auto_load_objfile_script_1): Use std::string.
228 2018-03-17 Tom Tromey <tom@tromey.com>
230 * target.c (class scoped_target_fd): New.
231 (target_fileio_close_cleanup): Remove.
232 (target_fileio_read_alloc_1): Use scoped_target_fd.
234 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
236 * silent-rules.mk: New.
237 * Makefile.in: Include silent-rules.mk
238 (srcdir, VPATH, top_srcdir): Move up.
239 (COMPILE): Add ECHO_CXX.
240 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
241 (init.c): Add ECHO_INIT_C.
242 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
243 (version.c): Add ECHO_GEN.
244 (printcmd.o): Add ECHO_CXX.
245 (target-float.o): Add ECHO_CXX.
246 (ada-exp.o): Add ECHO_CXX.
247 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
248 (insight$(EXEEXT)): Add ECHO_CXXLD.
249 * gnulib/configure.ac: Add AM_SILENT_RULES.
250 * gnulib/aclocal.m4: Re-generate.
251 * gnulib/configure: Re-generate.
252 * gnulib/import/Makefile.in: Re-generate.
254 2018-03-16 Tom Tromey <tom@tromey.com>
256 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
257 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
258 * utils.c (do_free_section_addr_info)
259 (make_cleanup_free_section_addr_info): Remove.
260 * symfile.h (struct other_sections): Add constructor.
261 (struct section_addr_info): Remove.
262 (section_addr_info): New typedef.
263 (struct sym_fns) <sym_offsets>: Change type of parameter.
264 (build_section_addr_info_from_objfile)
265 (relative_addr_info_to_section_offsets, addr_info_make_relative)
266 (default_symfile_offsets, symbol_file_add)
267 (symbol_file_add_from_bfd)
268 (build_section_addr_info_from_section_table): Update.
269 (alloc_section_addr_info, free_section_addr_info): Don't declare.
270 * symfile.c (alloc_section_addr_info): Remove.
271 (build_section_addr_info_from_section_table): Change return type.
273 (build_section_addr_info_from_bfd)
274 (build_section_addr_info_from_objfile): Likewise.
275 (free_section_addr_info): Remove.
276 (relative_addr_info_to_section_offsets): Change type of "addrs".
277 (addrs_section_compar): Now a std::sort comparator.
278 (addrs_section_sort): Change return type.
279 (addr_info_make_relative): Change type of "addrs". Update.
280 (default_symfile_offsets, syms_from_objfile_1)
281 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
282 (symbol_file_add_separate): Update.
283 (symbol_file_add): Change type of "addrs". Update.
284 (add_symbol_file_command): Update. Remove cleanups.
285 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
287 * symfile-debug.c (debug_sym_offsets): Change type of "info".
288 * solib.c (solib_read_symbols): Update.
289 * objfiles.c (objfile_relocate): Update. Remove cleanups.
290 * machoread.c (macho_symfile_offsets): Update.
291 * jit.c (jit_bfd_try_read_symtab): Update.
293 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
296 unittests/utils-selftests.c.
297 * unittests/utils-selftests.c: New file.
299 2018-03-14 Tom Tromey <tom@tromey.com>
302 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
305 2018-03-14 Tom Tromey <tom@tromey.com>
308 * printcmd.c (printf_pointer): Allow "-" in format.
310 2018-03-14 Tom Tromey <tom@tromey.com>
312 * printcmd.c (_initialize_printcmd): Add usage to printf.
314 2018-03-14 Yao Qi <qiyao@sourceware.org>
316 * MAINTAINERS: Update my email address.
318 2018-03-13 Tom Tromey <tom@tromey.com>
320 * machoread.c (macho_check_dsym): Change filenamep to a
322 (macho_symfile_read): Update.
323 * symfile.c (load_command): Use std::string.
325 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
327 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
328 to error message string.
329 (riscv_register_name): Use xsnprintf instead of sprintf.
330 (riscv_insn::fetch_instruction): Use gdb_assert instead of
332 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
334 (riscv_push_dummy_call): Likewise.
336 2018-03-12 Tom Tromey <tom@tromey.com>
338 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
339 Use gdb::byte_vector.
340 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
342 2018-03-12 Yao Qi <yao.qi@linaro.org>
344 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
345 parameter type to readable_regcache.
346 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
349 2018-03-11 Tom Tromey <tom@tromey.com>
351 * dwarf2read.c (struct nextfield): Add initializers.
352 (struct nextfnfield): Remove.
353 (struct fnfieldlist): Add initializers. Remove "length" and
354 "head", use std::vector.
355 (struct decl_field_list): Remove.
356 (struct field_info): Add initializers.
357 <fields, baseclasses>: Now std::vector.
358 <nbaseclasses, nfnfields, typedef_field_list_count,
359 nested_types_list_count>: Remove.
360 (dwarf2_add_field, dwarf2_add_type_defn)
361 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
362 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
363 (process_structure_scope): Update.
365 2018-03-11 Tom Tromey <tom@tromey.com>
367 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
368 for use by std::sort.
369 (build_type_psymtabs_1): Use std::vector.
371 2018-03-09 Eli Zaretskii <eliz@gnu.org>
373 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
374 and LIBMPFR in the printed configuration.
376 2018-03-08 Tom Tromey <tom@tromey.com>
378 * source.c (get_filename_and_charpos): Use scoped_fd.
379 * nto-procfs.c (procfs_open_1): Use scoped_fd.
380 (procfs_pidlist): Likewise.
381 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
382 (iterate_over_mappings): Likewise.
384 2018-03-08 Tom Tromey <tom@tromey.com>
386 * infcall.c (struct call_return_meta_info)
387 <stack_temporaries_enabled>: Remove.
388 (get_call_return_value, call_function_by_hand_dummy): Update.
389 * thread.c (disable_thread_stack_temporaries): Remove.
390 (enable_thread_stack_temporaries): Remove.
391 (thread_stack_temporaries_enabled_p): Return bool.
392 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
393 (get_last_thread_stack_temporary): Update.
394 * eval.c (evaluate_subexp): Update.
395 * gdbthread.h (class enable_thread_stack_temporaries): Now a
396 class, not a function.
397 (value_ptr, value_vec): Remove typedefs.
398 (class thread_info) <stack_temporaries_enabled>: Now bool.
399 <stack_temporaries>: Now a std::vector.
400 (thread_stack_temporaries_enabled_p)
401 (value_in_thread_stack_temporaries): Return bool.
403 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
405 * remote.c (putpkt_binary): Fix omitted bytes reporting.
406 (getpkt_or_notif_sane_1): Likewise.
408 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
410 * build-id.c (build_id_to_debug_bfd): Use std::string.
412 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
414 * build-id.c (find_separate_debug_file_by_buildid): Return
416 * build-id.h (find_separate_debug_file_by_buildid): Return
418 * coffread.c (coff_symfile_read): Adjust to std::string.
419 * elfread.c (elf_symfile_read): Adjust to std::string.
420 * symfile.c (separate_debug_file_exists): Change parameter to
422 (find_separate_debug_file): Return std::string.
423 (find_separate_debug_file_by_debuglink): Return std::string.
424 * symfile.h (find_separate_debug_file_by_debuglink): Return
427 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
429 * common/xml-utils.c (xml_escape_text): Move code to...
430 (xml_escape_text_append): ... this new function.
431 * common/xml-utils.h (xml_escape_text_append): New declaration.
432 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
434 (_initialize_xml_utils): register test_xml_escape_text_append as
437 2018-03-07 Alan Hayward <alan.hayward@arm.com>
439 * defs.h: Remove MAX_REGISTER_SIZE.
440 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
442 * python/py-unwind.c (pyuw_sniffer): Likewise.
444 2018-03-07 Tom Tromey <tom@tromey.com>
446 * linux-tdep.c (linux_info_proc): Update.
447 * target.h (struct target_ops) <to_fileio_readlink>: Return
449 (target_fileio_readlink): Return optional<string>.
450 * remote.c (remote_hostio_readlink): Return optional<string>.
451 * inf-child.c (inf_child_fileio_readlink): Return
453 * target.c (target_fileio_readlink): Return optional<string>.
455 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
457 * regcache.c (cooked_read_test): Add riscv to the list of
458 architectures that have a save_reggroup.
460 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
462 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
463 value is not a dynamic class object.
465 2018-03-06 Tom Tromey <tom@tromey.com>
467 * rust-exp.y: Formatting fixes.
469 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
471 * riscv-tdep.c (riscv_register_name): Remove target description
473 (riscv_gdbarch_init): Remove target description check.
475 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
477 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
479 * riscv-tdep.h: Likewise.
481 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
483 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
484 (riscv_pseudo_register_write): Delete.
485 (riscv_gdbarch_init): Remove all use of pseudo registers.
487 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
489 * record-btrace.c (btrace_print_lines): Replace cleanup
490 parameter with RAII equivalents.
491 (btrace_insn_history): Replace cleanup with RAII equivalents.
492 * ui-out.h (make_cleanup_ui_out_list_begin_end,
493 make_cleanup_ui_out_tuple_begin_end): Remove.
494 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
495 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
496 make_cleanup_ui_out_list_begin_end): Remove.
498 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
500 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
501 parameter types to std::vector. Use bool.
502 (record_btrace_wait): Replace VEC(tp_t) with
503 std::vector<thread_info *>.
504 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
506 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
508 * record-btrace.c (record_btrace_disable_callback): Remove.
509 (struct scoped_btrace_disable): New.
510 (record_btrace_open): Use scoped_btrace_disable.
512 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
514 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
515 reading values from registers.
517 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
519 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
522 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
524 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
525 change parameter type. Use GDB's print functions, and use
526 core_addr_to_string where appropriate.
527 (riscv_push_dummy_call): Use core_addr_to_string where
528 appropriate, update call to riscv_print_arg_location, and reindent
530 (riscv_return_value): Update call to riscv_print_arg_location.
532 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
533 Tim Newsome <tim@sifive.com>
534 Albert Ou <a0u@eecs.berkeley.edu>
535 Darius Rad <darius@bluespec.com>
537 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
538 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
539 (ALLDEPFILES): Add riscv-tdep.c
540 * configure.tgt: Add riscv support.
541 * riscv-tdep.c: New file.
542 * riscv-tdep.h: New file.
543 * NEWS: Mention new target.
544 * MAINTAINERS: Add entry for riscv.
546 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
548 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
549 fields within aggregates.
551 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
553 * record-btrace.c (btrace_print_lines): Change type of flags to
554 gdb_disassembly_flags.
556 2018-03-04 John Baldwin <jhb@FreeBSD.org>
558 * fbsd-nat.c: Include "inf-ptrace.h".
559 (USE_SIGTRAP_SIGINFO): Conditionally define.
560 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
561 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
562 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
564 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
566 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
568 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
569 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
570 "supports_stopped_by_hw_breakpoint" target methods.
572 2018-03-04 John Baldwin <jhb@FreeBSD.org>
574 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
575 * fbsd-nat.c (debug_fbsd_nat): New variable.
576 (show_fbsd_nat_debug): New function.
577 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
578 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
580 2018-03-04 John Baldwin <jhb@FreeBSD.org>
582 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
583 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
585 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
586 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
589 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
591 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
592 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
594 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
596 * charset.c (struct charset_vector): New.
597 (charsets): Change type to charset_vector.
598 (find_charset_names): Adjust.
600 (_initialize_charset): Adjust.
602 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
604 * progspace.h (struct program_space) <deleted_solibs>: Change
605 type to std::vector<std::string>.
606 * progspace.c (clear_program_space_solib_cache): Adjust.
607 * breakpoint.c (print_solib_event): Adjust.
608 (check_status_catch_solib): Adjust.
609 * solib.c (update_solib_list): Adjust.
610 * ui-out.h (class ui_out) <field_string>: New overload.
611 * ui-out.c (ui_out::field_string): New overload.
613 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
615 * progspace.h (struct program_space): Add constructor and
616 destructor, initialize fields.
617 (add_program_space): Remove.
618 * progspace.c (add_program_space): Rename to...
619 (program_space::program_space): ... this.
620 (release_program_space): Rename to...
621 (program_space::~program_space): ... this.
622 (delete_program_space): Use delete to delete program_space.
623 (initialize_progspace): Use new to allocate program_space.
624 * inferior.c (add_inferior_with_spaces): Likewise.
625 (clone_inferior_command): Likewise.
626 * infrun.c (follow_fork_inferior): Likewise.
627 (handle_vfork_child_exec_or_exit): Likewise.
629 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
631 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
632 (delim_string_to_char_ptr_vec): Return std::vector of
633 gdb::unique_xmalloc_ptr.
634 (dirnames_to_char_ptr_vec_append): Take std::vector of
635 gdb::unique_xmalloc_ptr.
636 (dirnames_to_char_ptr_vec): Return std::vector of
637 gdb::unique_xmalloc_ptr.
638 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
639 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
640 (delim_string_to_char_ptr_vec): Return an std::vector of
641 gdb::unique_xmalloc_ptr, adjust the code.
642 (dirnames_to_char_ptr_vec_append): Take an std::vector of
643 gdb::unique_xmalloc_ptr, adjust the code.
644 (dirnames_to_char_ptr_vec): Return an std::vector of
645 gdb::unique_xmalloc_ptr, adjust the code.
646 * auto-load.c (auto_load_safe_path_vec): Change type to
647 std::vector of gdb::unique_xmalloc_ptr.
648 (auto_load_expand_dir_vars): Return an std::vector of
649 gdb::unique_xmalloc_ptr, adjust the code.
650 (auto_load_safe_path_vec_update): Adjust.
651 (filename_is_in_auto_load_safe_path_vec): Adjust.
652 (auto_load_objfile_script_1): Adjust.
653 * build-id.c (build_id_to_debug_bfd): Adjust.
654 * linux-thread-db.c (thread_db_load_search): Adjust.
655 * source.c (add_path): Adjust.
657 * symfile.c (find_separate_debug_file): Adjust.
658 * utils.c (do_free_char_ptr_vec): Remove.
659 (make_cleanup_free_char_ptr_vec): Remove.
661 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
664 * common/pathstuff.c: Conditionally include "<windows.h>".
666 2018-03-01 Georg Sauthoff <mail@georg.so>
669 * gcore.in: Quote variables and switch interpreter to bash.
671 2018-03-01 Tom Tromey <tom@tromey.com>
673 * dwarf2read.c (alloc_discriminant_info): Fix default_index
674 assertion. Add assertion for discriminant_index.
675 (quirk_rust_enum): Use correct base type name in univariant case.
677 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
679 * record.c (get_call_history_modifiers): Return a
681 (cmd_record_call_history): Adjust.
682 * record-btrace.c (record_btrace_call_history): Adjust.
683 (record_btrace_call_history_range): Adjust.
684 (record_btrace_call_history_from): Adjust.
685 * target-debug.h (target_debug_print_record_print_flags): New.
686 * target-delegates.c: Re-generate.
687 * target.c (target_call_history): Change flags type.
688 (target_call_history_from): Likewise.
689 (target_call_history_range): Likewise.
690 * target.h (struct target_ops) <target_call_history>: Likewise.
691 (target_call_history_from): Likewise.
692 (target_call_history_range): Likewise.
694 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
695 Simon Marchi <simon.marchi@polymtl.ca>
697 * common/common-utils.c: Include "sys/stat.h".
698 (is_regular_file): Move here from "source.c"; change return
700 * common/common-utils.h (is_regular_file): New prototype.
701 * common/pathstuff.c (contains_dir_separator): New function.
702 * common/pathstuff.h (contains_dir_separator): New prototype.
703 * source.c: Don't include "sys/stat.h".
704 (is_regular_file): Move to "common/common-utils.c".
706 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
708 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
709 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
710 * auto-load.c: Include "common/pathstuff.h".
711 * common/common-def.h (current_directory): Move here.
712 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
714 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
716 * common/pathstuff.c: New file.
717 * common/pathstuff.h: New file.
718 * compile/compile.c: Include "common/pathstuff.h".
719 * defs.h (current_directory): Move to "common/common-defs.h".
720 * dwarf2read.c: Include "common/pathstuff.h".
722 * guile/scm-safe-call.c: Likewise.
723 * linux-thread-db.c: Likewise.
725 * nto-tdep.c: Likewise.
726 * objfiles.c: Likewise.
727 * source.c: Likewise.
728 * symtab.c: Likewise.
729 * utils.c: Include "common/pathstuff.h".
730 (gdb_realpath): Move to "common/pathstuff.c".
731 (gdb_realpath_keepfile): Likewise.
732 (gdb_abspath): Likewise.
733 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
734 (gdb_realpath_keepfile): Likewise.
735 (gdb_abspath): Likewise.
737 2018-02-28 John Baldwin <jhb@FreeBSD.org>
739 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
740 wildcard process pid for super_resume for kernels with a
743 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
745 * compile/compile.c (get_args): Add additional comments
748 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
749 Tom Tromey <tom@tromey.com>
751 * target.h (memory_write_request_s): Remove typedef. Don't define
753 (target_write_memory_blocks): Change argument to std::vector.
754 (struct memory_write_request): Add constructor.
755 * target-memory.c (compare_block_starting_address): Return bool.
756 Change argument types.
757 (claim_memory): Change arguments to use std::vector.
758 (split_regular_and_flash_blocks, blocks_to_erase)
759 (compute_garbled_blocks): Likewise.
760 (cleanup_request_data, cleanup_write_requests_vector): Remove.
761 (target_write_memory_blocks): Change argument to std::vector.
762 * symfile.c (struct load_section_data): Add constructor and
763 destructor. Use std::vector for "requests".
764 (struct load_progress_data): Add initializers.
765 (load_section_callback): Update. Use "new".
766 (clear_memory_write_data): Remove.
767 (generic_load): Update.
769 2018-02-27 Alan Hayward <alan.hayward@arm.com>
771 * arch/aarch64.h: Use common/tdesc.h.
773 2018-02-26 Maciej W. Rozycki <macro@mips.com>
775 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
776 architecture with a 64-bit ABI.
778 2018-02-26 Maciej W. Rozycki <macro@mips.com>
780 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
781 ahead of target description loading.
783 2018-02-26 Tom Tromey <tom@tromey.com>
785 * stack.c (backtrace_command_1): Update.
786 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
788 * python/py-framefilter.c (py_print_frame)
789 (gdbpy_apply_frame_filter): Change type of "flags".
790 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
792 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
793 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
794 * extension.h (enum frame_filter_flag): Rename from
796 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
797 (apply_ext_lang_frame_filter): Change type of "flags".
798 * extension.c (apply_ext_lang_frame_filter): Change type of
800 * extension-priv.h (struct extension_language_ops)
801 <apply_frame_filter>: Change type of "flags".
803 2018-02-26 Tom Tromey <tom@tromey.com>
806 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
807 off-by-one in py_end computation.
808 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
810 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
813 2018-02-26 Tom Tromey <tom@tromey.com>
815 * dwarf2read.c (struct variant_field): New.
816 (struct nextfield) <variant>: New field.
817 (dwarf2_add_field): Handle DW_TAG_variant_part.
818 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
820 (read_structure_type): Handle DW_TAG_variant_part.
821 (handle_struct_member_die): New function, extracted from
822 process_structure_scope. Handle DW_TAG_variant.
823 (process_structure_scope): Handle discriminated unions. Call
824 handle_struct_member_die.
826 2018-02-26 Tom Tromey <tom@tromey.com>
828 * rust-lang.h (rust_last_path_segment): Declare.
829 * rust-lang.c (rust_last_path_segment): Now public. Change
831 (struct disr_info): Remove.
832 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
833 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
834 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
835 (rust_enum_p, rust_enum_variant): New function.
836 (rust_underscore_fields): Remove "offset" parameter.
837 (rust_print_enum): New function.
838 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
839 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
840 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
842 (rust_internal_print_type): New function, from rust_print_type.
844 (rust_print_type): Call rust_internal_print_type.
845 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
846 Update enum handling.
847 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
848 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
849 (rust_union_quirks): New functions.
850 (process_full_comp_unit, process_full_type_unit): Call
852 (process_structure_scope): Update rust_unions if necessary.
854 2018-02-26 Tom Tromey <tom@tromey.com>
856 * value.h (value_union_variant): Declare.
857 * valops.c (value_union_variant): New function.
858 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
859 (struct discriminant_info): New.
860 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
862 (struct main_type) <flag_discriminated_union>: New field.
864 2018-02-26 Tom Tromey <tom@tromey.com>
866 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
867 unittests/unpack-selftests.c.
868 * unittests/unpack-selftests.c: New file.
869 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
871 2018-02-26 Yao Qi <yao.qi@linaro.org>
873 * dwarf2read.c (struct partial_die_info) <read>: New method.
874 (read_partial_die): Remove the declaration.
875 (load_partial_dies): Update.
876 (partial_die_info::partial_die_info):
877 (read_partial_die): Change it to partial_die_info::read.
879 2018-02-26 Yao Qi <yao.qi@linaro.org>
881 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
882 (fixup_partial_die): Remove declaration.
883 (scan_partial_symbols): Update.
884 (partial_die_parent_scope): Likewise.
885 (partial_die_full_name): Likewise.
886 (fixup_partial_die): Change it to partial_die_info::fixup.
888 2018-02-26 Yao Qi <yao.qi@linaro.org>
890 * dwarf2read.c (read_partial_die): Update the declaration.
891 (load_partial_dies): Caller update.
892 (read_partial_die): Remove one argument abbrev_len.
894 2018-02-26 Yao Qi <yao.qi@linaro.org>
896 * dwarf2read.c (struct partial_die_info): Add ctor, delete
898 (load_partial_dies): Use ctor and copy ctor.
899 (read_partial_die): Update.
900 (dwarf2_cu::find_partial_die): Use ctor.
902 2018-02-26 Yao Qi <yao.qi@linaro.org>
904 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
905 (find_partial_die_in_comp_unit): Change it to
906 dwarf2_cu::find_partial_die.
907 (find_partial_die): Update.
909 2018-02-26 Yao Qi <yao.qi@linaro.org>
911 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
914 2018-02-26 Yao Qi <yao.qi@linaro.org>
916 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
918 2018-02-26 Alan Hayward <alan.hayward@arm.com>
920 * arch/amd64.h: Use common/tdesc.h.
921 * arch/i386.c: Likewise.
922 * arch/i386.h: Likewise.
923 * arch/tic6x.c: Likewise.
924 * arch/tdesc.h: Move file from here...
925 * common/tdesc.h: ...to here.
926 * features/aarch64-core.c: Regenerate.
927 * features/aarch64-fpu.c: Regenerate.
928 * features/i386/32bit-avx.c: Regenerate.
929 * features/i386/32bit-avx512.c: Regenerate.
930 * features/i386/32bit-core.c: Regenerate.
931 * features/i386/32bit-linux.c: Regenerate.
932 * features/i386/32bit-mpx.c: Regenerate.
933 * features/i386/32bit-pkeys.c: Regenerate.
934 * features/i386/32bit-sse.c: Regenerate.
935 * features/i386/64bit-avx.c: Regenerate.
936 * features/i386/64bit-avx512.c: Regenerate.
937 * features/i386/64bit-core.c: Regenerate.
938 * features/i386/64bit-linux.c: Regenerate.
939 * features/i386/64bit-mpx.c: Regenerate.
940 * features/i386/64bit-pkeys.c: Regenerate.
941 * features/i386/64bit-segments.c: Regenerate.
942 * features/i386/64bit-sse.c: Regenerate.
943 * features/i386/x32-core.c: Regenerate.
944 * features/tic6x-c6xp.c: Regenerate.
945 * features/tic6x-core.c: Regenerate.
946 * features/tic6x-gp.c: Regenerate.
947 * target-descriptions.c: Use common/tdesc.h.
948 * target-descriptions.h: Likewise.
950 2018-02-24 Tom Tromey <tom@tromey.com>
952 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
953 (try_thread_db_load_from_dir, thread_db_load_search): Use
955 (info_auto_load_libthread_db_compare): Return bool. Change
957 (info_auto_load_libthread_db): Use std::vector, std::string.
960 2018-02-24 Tom Tromey <tom@tromey.com>
962 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
964 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
966 * gdbarch.c: Rebuild.
967 * gdbarch.h: Rebuild.
968 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
969 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
970 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
973 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
975 * gdbtypes.h (sect_offset): Change type to uint64_t.
976 (sect_offset_str): New function.
977 * dwarf2read.c (create_addrmap_from_aranges): Use
979 (error_check_comp_unit_head): Likewise.
980 (create_debug_type_hash_table): Likewise.
981 (read_cutu_die_from_dwo): Likewise.
982 (init_cutu_and_read_dies): Likewise.
983 (init_cutu_and_read_dies_no_follow): Likewise.
984 (process_psymtab_comp_unit_reader): Likewise.
985 (partial_die_parent_scope): Likewise.
986 (peek_die_abbrev): Likewise.
987 (process_queue): Likewise.
988 (dwarf2_physname): Likewise.
989 (read_namespace_alias): Likewise.
990 (read_import_statement): Likewise.
991 (create_dwo_cu_reader): Likewise.
992 (create_cus_hash_table): Likewise.
993 (lookup_dwo_cutu): Likewise.
994 (inherit_abstract_dies): Likewise.
995 (read_func_scope): Likewise.
996 (read_call_site_scope): Likewise.
997 (dwarf2_add_member_fn): Likewise.
998 (read_common_block): Likewise.
999 (read_module_type): Likewise.
1000 (read_typedef): Likewise.
1001 (read_subrange_type): Likewise.
1002 (load_partial_dies): Likewise.
1003 (read_partial_die): Likewise.
1004 (find_partial_die): Likewise.
1005 (read_str_index): Likewise.
1006 (dwarf2_string_attr): Likewise.
1007 (build_error_marker_type): Likewise.
1008 (lookup_die_type): Likewise.
1009 (dump_die_shallow): Likewise.
1010 (follow_die_ref): Likewise.
1011 (dwarf2_fetch_die_loc_sect_off): Likewise.
1012 (dwarf2_fetch_constant_bytes): Likewise.
1013 (follow_die_sig): Likewise.
1014 (get_signatured_type): Likewise.
1015 (get_DW_AT_signature_type): Likewise.
1016 (dwarf2_find_containing_comp_unit): Likewise.
1017 (set_die_type): Likewise.
1019 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1021 * arch/aarch64.c: Include "common-defs.h".
1022 * arch/amd64.c: Likewise.
1023 * arch/i386.c: Likewise.
1025 2018-02-21 Tom Tromey <tom@tromey.com>
1027 * value.h: (extract_field_op): Update.
1028 * eval.c (extract_field_op): Return a const char *.
1029 * expression.h (parse_expression_for_completion): Update.
1030 * completer.c (complete_expression): Update.
1031 (add_struct_fields): Make fieldname const.
1032 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1033 (mark_completion_tag, parse_exp_in_context_1): Update.
1034 (parse_expression_for_completion): Change "name" to
1035 unique_xmalloc_ptr*.
1037 2018-02-21 Tom Tromey <tom@tromey.com>
1039 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1041 2018-02-21 Yao Qi <yao.qi@linaro.org>
1043 * avr-tdep.c (avr_read_pc): Change parameter type to
1045 * gdbarch.sh (read_pc): Likewise.
1046 * gdbarch.c: Re-generated.
1047 * gdbarch.h: Re-generated.
1048 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1050 * ia64-tdep.c (ia64_read_pc): Likewise.
1051 * mips-tdep.c (mips_read_pc): Likewise.
1052 * spu-tdep.c (spu_read_pc): Likewise.
1054 2018-02-21 Yao Qi <yao.qi@linaro.org>
1056 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1057 * regcache-dump.c: New file.
1058 * regcache.c: Move register_dump to regcache-dump.c.
1059 (maintenance_print_registers): Likewise.
1060 (maintenance_print_raw_registers): Likewise.
1061 (maintenance_print_cooked_registers): Likewise.
1062 (maintenance_print_register_groups): Likewise.
1063 (maintenance_print_remote_registers): Likewise.
1064 (_initialize_regcache): Likewise.
1065 * regcache.h (register_dump): Moved from regcache.c.
1067 2018-02-21 Yao Qi <yao.qi@linaro.org>
1069 * regcache.c (regcache::regcache): Update.
1070 (regcache::invalidate): Move it to detached_regcache::invalidate.
1071 (get_thread_arch_aspace_regcache): Update.
1072 (regcache::raw_update): Update.
1073 (regcache::cooked_read): Remove some code.
1074 (regcache::cooked_read_value): Likewise.
1075 (regcache::raw_write): Remove assert on m_readonly_p.
1076 (regcache::raw_supply_integer): Move it to
1077 detached_regcache::raw_supply_integer.
1078 (regcache::raw_supply_zeroed): Likewise.
1079 * regcache.h (detached_regcache) <raw_supply_integer>: New
1081 <raw_supply_zeroed, invalidate>: Likewise.
1082 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1083 <invalidate>: Likewise.
1084 <m_readonly_p>: Removed.
1086 2018-02-21 Yao Qi <yao.qi@linaro.org>
1088 * infcmd.c (get_return_value): Let stop_regs point to
1089 get_current_regcache.
1090 * regcache.c (regcache::regcache): Remove.
1091 (register_dump_reg_buffer): New class.
1092 (regcache_print): Adjust.
1093 * regcache.h (regcache): Remove constructors.
1095 2018-02-21 Yao Qi <yao.qi@linaro.org>
1097 * regcache.c (class register_dump): New class.
1098 (register_dump_regcache, register_dump_none): New class.
1099 (register_dump_remote, register_dump_groups): New class.
1100 (regcache_print): Update.
1101 * regcache.h (regcache_dump_what): Move it to regcache.c.
1102 (regcache) <dump>: Remove.
1104 2018-02-21 Yao Qi <yao.qi@linaro.org>
1106 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1108 (jit_unwind_reg_set_impl): Call raw_supply.
1109 (jit_frame_sniffer): Use reg_buffer_rw.
1110 * record-full.c (record_full_core_regbuf): Change its type.
1111 (record_full_core_open_1): Use reg_buffer_rw.
1112 (record_full_close): Likewise.
1113 (record_full_core_fetch_registers): Use regcache->raw_supply.
1114 (record_full_core_store_registers): Likewise.
1115 * regcache.c (regcache::get_register_status): Move it to
1117 (regcache_raw_set_cached_value): Remove.
1118 (regcache::raw_set_cached_value): Remove.
1119 (regcache::raw_write): Call raw_supply.
1120 (regcache::raw_supply): Move it to reg_buffer_rw.
1121 * regcache.h (regcache_raw_set_cached_value): Remove.
1122 (reg_buffer_rw): New class.
1124 2018-02-21 Yao Qi <yao.qi@linaro.org>
1126 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1127 readonly_detached_regcache.
1128 (dummy_frame_prev_register): Use regcache->cooked_read.
1129 * frame.c (frame_save_as_regcache): Change return type.
1130 (frame_pop): Update.
1131 * frame.h (frame_save_as_regcache): Update declaration.
1132 * inferior.h (get_infcall_suspend_state_regcache): Update
1134 * infrun.c (infcall_suspend_state) <registers>: use
1135 readonly_detached_regcache.
1136 (save_infcall_suspend_state): Don't use regcache_dup.
1137 (get_infcall_suspend_state_regcache): Change return type.
1138 * linux-fork.c (struct fork_info) <savedregs>: Change to
1139 readonly_detached_regcache.
1141 (fork_save_infrun_state): Don't use regcache_dup.
1142 (info_checkpoints_command): Adjust.
1143 * mi/mi-main.c (register_changed_p): Update declaration.
1144 (mi_cmd_data_list_changed_registers): Use
1145 readonly_detached_regcache.
1146 (register_changed_p): Change parameter type to
1147 readonly_detached_regcache.
1148 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1149 readonly_detached_regcache.
1150 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1151 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1153 (regcache::save): Move it to reg_buffer.
1154 (regcache::restore): Change parameter type.
1155 (regcache_dup): Remove.
1156 * regcache.h (reg_buffer) <save>: New method.
1157 (readonly_detached_regcache): New class.
1158 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1159 readonly_detached_regcache.
1160 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1162 2018-02-21 Yao Qi <yao.qi@linaro.org>
1164 * frame.c (frame_save_as_regcache): Use regcache method save.
1165 (frame_pop): Use regcache method restore.
1166 * infrun.c (restore_infcall_suspend_state): Likewise.
1167 * linux-fork.c (fork_load_infrun_state): Likewise.
1168 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1170 * regcache.c (regcache_save): Remove.
1171 (regcache::restore): More asserts.
1172 (regcache_cpy): Remove.
1173 * regcache.h (regcache_save): Remove the declaration.
1174 (regcache::restore): Move from private to public.
1175 Remove the friend declaration of regcache_cpy.
1176 (regcache_cpy): Remove declaration.
1178 2018-02-21 Yao Qi <yao.qi@linaro.org>
1180 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1181 parameter type to 'readable_regcache *'.
1182 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1183 * arm-tdep.c (arm_neon_quad_read): Likewise.
1184 (arm_pseudo_read): Likewise.
1185 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1186 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1187 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1188 * gdbarch.c: Re-generated.
1189 * gdbarch.h: Re-generated.
1190 * gdbarch.sh (pseudo_register_read): Change parameter type to
1191 'readable_regcache *'.
1192 (pseudo_register_read_value): Likewise.
1193 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1194 (h8300_pseudo_register_read): Likewise.
1195 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1196 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1197 (i386_pseudo_register_read_into_value): Likewise.
1198 (i386_pseudo_register_read_value): Likewise.
1199 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1201 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1202 * m32c-tdep.c (m32c_raw_read): Likewise.
1203 (m32c_read_flg): Likewise.
1204 (m32c_banked_register): Likewise.
1205 (m32c_banked_read): Likewise.
1206 (m32c_sb_read): Likewise.
1207 (m32c_part_read): Likewise.
1208 (m32c_cat_read): Likewise.
1209 (m32c_r3r2r1r0_read): Likewise.
1210 (m32c_pseudo_register_read): Likewise.
1211 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1212 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1213 (mep_pseudo_cr64_read): Likewise.
1214 (mep_pseudo_register_read): Likewise.
1215 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1216 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1217 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1218 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1219 (regcache::cooked_read): Likewise.
1220 (regcache::cooked_read_value): Likewise.
1221 (regcache_cooked_read_signed):
1222 (regcache::cooked_read): Likewise.
1223 * regcache.h (readable_regcache): New class.
1224 (regcache): Inherit readable_regcache. Move some methods to
1226 * rl78-tdep.c (rl78_pseudo_register_read): Change
1227 parameter type to 'readable_regcache *'.
1228 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1229 (e500_pseudo_register_read): Change parameter type to
1230 'readable_regcache *'.
1231 (dfp_pseudo_register_read): Likewise.
1232 (vsx_pseudo_register_read): Likewise.
1233 (efpr_pseudo_register_read): Likewise.
1234 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1235 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1236 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1237 (sh64_pseudo_register_read): Likewise.
1238 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1239 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1240 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1241 (spu_pseudo_register_read): Likewise.
1242 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1243 (xtensa_pseudo_register_read): Likewise.
1245 2018-02-21 Yao Qi <yao.qi@linaro.org>
1247 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1248 (regcache::arch): Move it to reg_buffer::arch.
1249 (regcache::register_buffer): Likewise.
1250 (regcache::assert_regnum): Likewise.
1251 (regcache::num_raw_registers): Likewise.
1252 * regcache.h (reg_buffer): New class.
1253 (regcache): Inherit reg_buffer.
1255 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1257 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1258 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1260 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1262 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1264 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1266 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1267 (SFILES): Remove common/*.c files.
1268 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1269 * common/common.host: Add common reference.
1270 * configure.ac: Likewise.
1271 * configure: Regenerate.
1273 2018-02-16 Yao Qi <yao.qi@linaro.org>
1275 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1276 (block_initialize_namespace): Use new.
1277 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1278 (dwarf2_free_objfile): Use delete.
1279 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1280 (copy_type_recursive): Use new.
1281 * gdb_obstack.h (allocate_on_obstack): New.
1283 2018-02-15 Yao Qi <yao.qi@linaro.org>
1286 * inferior.c (exit_inferior_1): Reset inf->control.
1288 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1290 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1293 2018-02-14 Pedro Alves <palves@redhat.com>
1295 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1296 frame_cleanup_after_sniffer on exception.
1298 2018-02-14 Tom Tromey <tom@tromey.com>
1300 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1302 (solib_bfd_open): Make pathname const.
1303 * solib.c (solib_bfd_open): Make pathname const.
1304 * solib-spu.c (spu_bfd_fopen): Make name const.
1305 (spu_bfd_open): Make pathname const.
1306 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1307 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1309 2018-02-14 Tom Tromey <tom@tromey.com>
1311 * symfile.c (symfile_bfd_open): Update.
1312 * source.h (openp, source_full_path_of, find_and_open_source):
1313 Change argument type to unique_xmalloc_ptr.
1314 * source.c (openp): Take a unique_xmalloc_ptr.
1315 (source_full_path_of, find_and_open_source): Likewise.
1316 (open_source_file, symtab_to_fullname): Update.
1317 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1319 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1320 (exec_file_find): Update.
1321 * psymtab.c (psymtab_to_fullname): Update.
1322 * nto-tdep.h (nto_find_and_open_solib): Update.
1323 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1325 * exec.c (exec_file_attach): Update.
1326 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1327 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1329 2018-02-14 Tom Tromey <tom@tromey.com>
1331 * solib.c: Include source.h.
1332 * nto-tdep.c: Include source.h.
1333 * mi/mi-cmd-env.c: Include source.h.
1334 * infcmd.c: Include source.h.
1335 * exec.c: Include source.h.
1336 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1337 (add_path, directory_switch, source_path, init_source_path): Move
1339 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1340 (add_path, directory_switch, source_path, init_source_path):
1343 2018-02-14 Tom Tromey <tom@tromey.com>
1345 * solist.h (exec_file_find, solib_find): Return
1347 (solib_bfd_fopen): Take a const char *.
1348 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1349 (exec_file_find, solib_find): Likewise.
1350 (solib_bfd_fopen): Do not take ownership of "pathname".
1351 (solib_bfd_open): Use unique_xmalloc_ptr.
1352 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1353 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1354 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1355 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1357 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1359 * ada-lang.c (name_match_type_from_name): Remove reference to
1360 ada_name_for_lookup in function's documentation.
1361 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1363 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1365 * defs.h (enum openp_flags): New enum.
1366 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1367 Move to enum openp_flags.
1368 (openp_flags): New enum flags.
1369 (openp): Change parameter type to openp_flags.
1370 * source.c (openp): Change parameter type to openp_flags.
1371 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1372 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1374 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1376 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1379 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1383 (class dwarf2_queue_guard): ...the destructor of this new class.
1384 (dw2_do_instantiate_symtab): Create instance of the new class
1385 dwarf2_queue_guard, remove cleanup.
1387 2018-02-09 Tom Tromey <tom@tromey.com>
1389 * source.c (find_source_lines): Don't reference past the end of
1392 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1394 * remote.c (remote_btrace_maybe_reopen): Change error message.
1395 * btrace.c (btrace_enable): Likewise.
1396 (parse_xml_btrace): Likewise.
1397 (parse_xml_btrace_conf): Likewise.
1399 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1401 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1402 (linux_enable_pt, linux_enable_bts): Call
1403 diagnose_perf_event_open_fail.
1405 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1407 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1408 Remove parameter and change return type. Update callers. Move it.
1409 (linux_enable_bts, linux_enable_pt): Improve error message.
1410 (linux_enable_pt): Remove zero buffer size check.
1411 (linux_enable_btrace): Improve error messages. Remove NULL return
1414 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1416 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1417 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1418 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1419 (linux_supports_pt, linux_supports_btrace): Remove.
1420 (linux_enable_bts): Call cpu_supports_bts.
1421 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1422 * remote.c (remote_supports_btrace): Remove.
1423 (init_remote_ops): Remove remote_supports_btrace.
1424 * target-delegates.c: Regenerated.
1425 * target.c (target_supports_btrace): Remove.
1426 * target.h (target_ops) <to_supports_btrace>: Remove
1427 (target_supports_btrace): Remove.
1428 * x86-linux-nat.c (x86_linux_create_target): Remove
1429 linux_supports_btrace.
1431 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1433 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1435 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1436 exception and use message in own exception.
1438 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1440 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1441 (perf_event_pt_event_type): Use gdb_file_up.
1442 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1443 scoped_fd, and scoped_mmap.
1445 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1447 * common/scoped_mmap.h: New.
1448 * unittests/scoped_mmap-selftest.c: New.
1449 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1450 unittests/scoped_mmap-selftest.c.
1452 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1454 * common/scoped_fd.h: New.
1455 * unittests/scoped_fd-selftest.c: New.
1456 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1457 unittests/scoped_fd-selftest.c.
1459 2018-02-09 Tom Tromey <tom@tromey.com>
1461 * auto-load.c (auto_load_section_scripts): Use
1462 gdb::unique_xmalloc_ptr.
1464 2018-02-09 Tom Tromey <tom@tromey.com>
1466 * auto-load.c (execute_script_contents): Use std::string.
1468 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1470 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1471 Python function, rather than a new command.
1473 2018-02-08 Tom Tromey <tom@tromey.com>
1475 * solib.c (solib_find_1): Use std::string.
1476 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1478 2018-02-08 Tom Tromey <tom@tromey.com>
1480 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1482 2018-02-08 Tom Tromey <tom@tromey.com>
1484 * source.c (find_source_lines): Use gdb::def_vector.
1486 2018-02-08 Tom Tromey <tom@tromey.com>
1488 * macrocmd.c (struct temporary_macro_definition): New.
1489 (macro_define_command): Use temporary_macro_definition. Remove
1491 (free_macro_definition_ptr): Remove.
1493 2018-02-08 Tom Tromey <tom@tromey.com>
1495 * macroexp.c (maybe_expand): Use std::string.
1497 2018-02-08 Tom Tromey <tom@tromey.com>
1499 * macroexp.c (struct macro_buffer): Add initializers for some
1501 (init_buffer, init_shared_buffer, free_buffer)
1502 (free_buffer_return_text): Remove.
1503 (macro_buffer): New constructors.
1504 (~macro_buffer): New destructor.
1505 (macro_buffer::set_shared): New method.
1506 (macro_buffer::resize_buffer, macro_buffer::appendc)
1507 (macro_buffer::appendmem): Now methods, not free functions.
1508 (set_token, append_tokens_without_splicing, stringify)
1509 (macro_stringify): Update.
1510 (gather_arguments): Change return type. Remove argc_p argument,
1511 add args_ptr argument. Use std::vector.
1512 (substitute_args): Remove argc argument. Accept std::vector.
1513 (expand): Update. Use std::vector.
1514 (scan, macro_expand, macro_expand_next): Update.
1516 2018-02-08 Tom Tromey <tom@tromey.com>
1518 * symtab.c (default_collect_symbol_completion_matches_break_on):
1519 Use unique_xmalloc_ptr.
1520 * macroscope.h: (sal_macro_scope, user_macro_scope)
1521 (default_macro_scope): Return unique_xmalloc_ptr.
1522 * macroscope.c (sal_macro_scope, user_macro_scope)
1523 (default_macro_scope): Return unique_xmalloc_ptr.
1524 * macroexp.h (macro_expand, macro_expand_once): Return
1526 * macroexp.c (macro_expand, macro_expand_once): Return
1528 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1529 (info_macro_command, info_macros_command): Use
1531 * compile/compile-c-support.c (write_macro_definitions): Use
1533 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1535 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1537 * value.c (value_static_field): Assign field type instead of
1538 containing type when returning an optimized out value.
1540 2018-02-06 Yao Qi <yao.qi@linaro.org>
1542 * ft32-tdep.c (ft32_read_pc): Remove.
1543 (ft32_write_pc): Remove.
1544 (ft32_gdbarch_init): Update.
1545 * m32r-tdep.c (m32r_read_pc): Remove.
1546 (m32r_gdbarch_init): Update.
1547 * mep-tdep.c (mep_read_pc): Remove.
1548 (mep_gdbarch_init): Update.
1549 * microblaze-tdep.c (microblaze_write_pc): Remove.
1550 (microblaze_gdbarch_init): Update.
1551 * mn10300-tdep.c (mn10300_read_pc): Remove.
1552 (mn10300_write_pc): Remove.
1553 (mn10300_gdbarch_init): Update.
1554 * moxie-tdep.c (moxie_read_pc): Remove.
1555 (moxie_write_pc): Remove.
1556 (moxie_gdbarch_init): Update.
1558 2018-02-06 Yao Qi <yao.qi@linaro.org>
1560 * expprint.c (print_subexp_standard): Handle
1561 OP_F77_UNDETERMINED_ARGLIST.
1562 (dump_subexp_body_standard): Likewise.
1564 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1566 * target-descriptions.c (tdesc_element_visitor) Add empty
1568 (tdesc_type): Move make_gdb_type from here.
1569 (tdesc_type_builtin): Likewise.
1570 (tdesc_type_vector): Likewise.
1571 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1572 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1573 (make_gdb_type_union): Likewise.
1574 (make_gdb_type_flags): Likewise.
1575 (make_gdb_type_enum): Likewise.
1576 (make_gdb_type): New function.
1577 (tdesc_register_type): Use static make_gdb_type.
1579 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1581 * infcmd.c (default_print_one_register_info): Align natural-format
1582 column values consistently one under another.
1583 (pad_to_column): New function.
1585 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1587 * dwarf2read.c (dwarf2_physname): Move commment.
1589 2018-02-01 Leszek Swirski <leszeks@google.com>
1591 * varobj.c (varobj_formatted_print_options): Allow recursive
1592 pretty printing if pretty printing is enabled.
1594 2018-02-01 Leszek Swirski <leszeks@google.com>
1596 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1597 names after a structop as a filename.
1599 2018-02-01 Yao Qi <yao.qi@linaro.org>
1601 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1602 (arm_record_coproc_data_proc): Likewise.
1604 2018-02-01 Yao Qi <yao.qi@linaro.org>
1606 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1608 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1610 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1611 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1613 2018-01-31 Pedro Alves <palves@redhat.com>
1615 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1616 * inflow.c (child_terminal_save_inferior): Wrap reference to
1617 tcgetpgrp in HAVE_TERMIOS_H.
1618 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1620 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1621 always iterate over all inferiors.
1622 (gdbsim_cntrl_c): Adjust.
1623 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1625 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1627 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1628 index type is objfile-owned if the element type is as well.
1630 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1634 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1636 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1637 "features/s390x-linux64.c".
1638 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1639 s390_linux32 and s390x_linux64.
1640 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1642 * s390-tdep.c: Include "features/s390-linux32.c" and
1643 "features/s390x-linux64.c".
1644 (s390_tdesc_valid): Add check for tdesc_has_registers.
1645 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1646 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1647 tdesc_s390x_linux64.
1648 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1649 tdesc_s390x_linux64 to...
1650 * s390-tdep.h: ...here.
1652 2018-01-30 Pedro Alves <palves@redhat.com>
1655 * config.in, configure: Regenerate.
1656 * configure.ac: Check for getpgid.
1657 * go32-nat.c (go32_pass_ctrlc): New.
1658 (go32_target): Install it.
1659 * inf-child.c (inf_child_target): Install
1660 child_terminal_save_inferior, child_pass_ctrlc and
1662 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1663 (inf_ptrace_target): No longer install it.
1664 * infcmd.c (interrupt_target_1): Adjust.
1665 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1666 (child_interrupt): Declare.
1667 (inferior::terminal_state): New.
1668 * inflow.c (struct terminal_info): Update comments.
1669 (inferior_process_group): Delete.
1670 (terminal_is_ours): Delete.
1671 (gdb_tty_state): New.
1672 (child_terminal_init): Adjust.
1673 (is_gdb_terminal, sharing_input_terminal_1)
1674 (sharing_input_terminal): New functions.
1675 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1676 Set the process's actual process group in the foreground if
1677 possible. Handle is_ours_for_output/is_ours distinction. Don't
1678 mark terminal as the inferior's if not sharing GDB's terminal.
1679 Don't check attach_flag.
1680 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1681 pass down a target_terminal_state.
1682 (child_terminal_save_inferior): New, factored out from ...
1683 (child_terminal_ours_1): ... this. Handle
1684 target_terminal_state::is_ours_for_output.
1685 (child_interrupt, child_pass_ctrlc): New.
1686 (inflow_inferior_exit): Clear the inferior's terminal_state.
1687 (copy_terminal_info): Copy the inferior's terminal state.
1688 (_initialize_inflow): Remove reference to terminal_is_ours.
1689 * inflow.h (inferior_process_group): Delete.
1690 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1691 * procfs.c (procfs_target): Don't install procfs_interrupt.
1692 (procfs_interrupt): Delete.
1693 * remote.c (remote_serial_quit_handler): Adjust.
1694 (remote_interrupt): Remove ptid parameter. Adjust.
1695 * target-delegates.c: Regenerate.
1696 * target.c: Include "terminal.h".
1697 (target_terminal::terminal_state): Rename to ...
1698 (target_terminal::m_terminal_state): ... this.
1699 (target_terminal::init): Adjust.
1700 (target_terminal::inferior): Adjust to per-inferior
1702 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1703 (target_terminal::ours, target_terminal::ours_for_output): Use
1704 target_terminal_is_ours_kind.
1705 (target_interrupt): Remove ptid parameter. Adjust.
1706 (default_target_pass_ctrlc): Adjust.
1707 * target.h (target_ops::to_terminal_save_inferior): New field.
1708 (target_ops::to_interrupt): Remove ptid_t parameter.
1709 (target_interrupt): Remove ptid_t parameter. Update comment.
1710 (target_pass_ctrlc): Update comment.
1711 * target/target.h (target_terminal_state): New scoped enum,
1713 (target_terminal::terminal_state): ... here.
1714 (target_terminal::inferior): Update comments.
1715 (target_terminal::restore_inferior): New.
1716 (target_terminal::is_inferior, target_terminal::is_ours)
1717 (target_terminal::is_ours_for_output): Adjust.
1718 (target_terminal::scoped_restore_terminal_state): Adjust to
1719 rename, and call restore_inferior() instead of inferior().
1720 (target_terminal::scoped_restore_terminal_state::m_state): Change
1722 (target_terminal::terminal_state): Rename to ...
1723 (target_terminal::m_terminal_state): ... this and change type.
1725 2018-01-30 Pedro Alves <palves@redhat.com>
1727 * linux-nat.c (wait_for_signal): New function.
1728 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1730 (async_terminal_is_ours)
1731 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1732 (linux_nat_add_target): Don't override
1733 to_terminal_inferior/to_terminal_ours.
1735 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1737 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1739 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1741 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1742 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1743 dwarf2_per_objfile_free here.
1744 (dwarf2_per_objfile_free): Remove.
1745 (_initialize_dwarf2_read): Don't register
1746 dwarf2_per_objfile_free as a registry cleanup.
1748 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1750 Avoid compilation errors in MinGW native builds
1752 The error is triggered by including python-internal.h, and the
1755 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1756 from build-gnulib/import/math.h:27,
1757 from d:/usr/Python26/include/pyport.h:235,
1758 from d:/usr/Python26/include/Python.h:58,
1759 from python/python-internal.h:94,
1760 from python/py-arch.c:24:
1761 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1765 This happens because Python headers define 'hypot' to expand t
1766 '_hypot' in the Windows builds.
1767 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1768 'hypoth'. This avoids a compilation error.
1770 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1772 * MAINTAINERS (Write After Approval): Fix ordering.
1774 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1776 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1778 2018-01-26 Alan Modra <amodra@gmail.com>
1780 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1781 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1782 Remove nop. Make const. Comment.
1783 (powerpc32_plt_stub_so_2): New.
1784 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1785 Correct count. Update uses.
1786 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1787 Move common code reading PLT entry word. Correct
1788 powerpc32_plt_stub PLT address calculation.
1789 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1790 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1791 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1792 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1793 (ppc64_standard_linkage8): Likewise.
1794 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1795 Correct insns description.
1796 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1798 2018-01-24 Pedro Alves <palves@redhat.com>
1800 GCC PR libstdc++/83906
1801 * gdbtypes.c (operator==(const dynamic_prop &,
1802 const dynamic_prop &)): New.
1803 (operator==(const range_bounds &, const range_bounds &)): New.
1804 (check_types_equal): Use them instead of memcmp.
1805 * gdbtypes.h (operator==(const dynamic_prop &,
1806 const dynamic_prop &)): Declare.
1807 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1808 (operator==(const range_bounds &, const range_bounds &)): Declare.
1809 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1811 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1813 * s390-linux-tdep.c (s390_record_address_mask)
1814 (s390_record_calc_disp_common, s390_record_calc_disp)
1815 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1816 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1817 (s390_process_record): Move to s390-tdep.c.
1818 (s390_linux_init_abi_any): Adjust.
1819 * s390-tdep.c (s390_record_address_mask)
1820 (s390_record_calc_disp_common, s390_record_calc_disp)
1821 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1822 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1823 (s390_process_record): Moved from s390-linux-tdep.c
1824 (s390_gdbarch_init): Adjust.
1826 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1828 * s390-linux-nat.c (s390-tdep.h): New include.
1829 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1830 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1831 (ALLDEPFILES): Add s390-tdep.c.
1832 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1833 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1834 * s390-tdep.h: ...this. New file.
1835 * s390-linux-tdep.c (s390-tdep.h): New include.
1836 (_initialize_s390_tdep): Rename to...
1837 (_initialize_s390_linux_tdep): ...this and adjust.
1838 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1839 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1841 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1842 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1843 (s390_is_partial_instruction, s390_software_single_step)
1844 (is_non_branch_ril, s390_displaced_step_copy_insn)
1845 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1846 (s390_prologue_data, s390_addr, s390_store, s390_load)
1847 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1848 (s390_register_call_saved, s390_guess_tracepoint_registers)
1849 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1850 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1851 (s390_pseudo_register_name, s390_pseudo_register_type)
1852 (s390_pseudo_register_read, s390_pseudo_register_write)
1853 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1854 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1855 (s390_addr_bits_remove, s390_address_class_type_flags)
1856 (s390_address_class_type_flags_to_name)
1857 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1858 (s390_function_arg_float, s390_function_arg_vector)
1859 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1860 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1861 (s390_frame_align, s390_register_return_value, s390_return_value)
1862 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1863 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1864 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1865 (s390_trad_frame_prev_register, s390_unwind_cache)
1866 (s390_prologue_frame_unwind_cache)
1867 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1868 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1869 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1870 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1871 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1872 (s390_frame_base_address, s390_local_base_address)
1873 (s390_frame_base, s390_gcc_target_options)
1874 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1875 (s390_validate_reg_range, s390_tdesc_valid)
1876 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1877 * s390-tdep.c: ...this. New file.
1879 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1881 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1882 (s390_process_record, s390_gdbarch_tdep_alloc)
1883 (s390_linux_init_abi_any): Use/set new hook.
1885 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1887 * s390-linux-tdep.c (osabi.h): New include.
1888 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1889 (s390_linux_init_abi_any): New functions.
1890 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1892 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1894 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1895 tdesc_has_registers check
1897 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1899 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1900 (s390_validate_reg_range): New macro.
1901 (s390_gdbarch_init): Adjust.
1903 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1905 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1906 (s390_gdbarch_tdep_alloc): Adjust.
1907 (s390_gdbarch_init): Adjust.
1909 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1911 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1912 <have_tdb>: Change type to bool.
1913 (s390_gdbarch_tdep_alloc): Adjust.
1914 (s390_gdbarch_init): Adjust.
1916 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1918 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1919 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1920 (s390_gdbarch_tdep_alloc): New function.
1921 (s390_gdbarch_init): Allocate tdep at start and use its fields
1922 instead of separate variables.
1924 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1926 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1927 when looking for cached gdbarch and add comment for remaining.
1929 2018-01-22 Pedro Alves <palves@redhat.com>
1930 Sergio Durigan Junior <sergiodj@redhat.com>
1932 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1935 2018-01-22 Maciej W. Rozycki <macro@mips.com>
1937 * MAINTAINERS: Update my company e-mail address.
1939 2018-01-22 Yao Qi <yao.qi@linaro.org>
1941 * regcache.c (cooked_write_test): New function.
1942 (_initialize_regcache): Register the test.
1944 2018-01-22 Yao Qi <yao.qi@linaro.org>
1946 * ia64-tdep.c (ia64_pseudo_register_read): Call
1947 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1948 * m32c-tdep.c (m32c_cat_read): Likewise.
1949 (m32c_r3r2r1r0_read): Likewise.
1950 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1951 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1953 2018-01-22 Yao Qi <yao.qi@linaro.org>
1955 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1956 method raw_read instead of regcache_raw_read.
1957 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1958 * arm-tdep.c (arm_neon_quad_read): Likewise.
1959 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1960 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1961 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1962 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1963 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1964 (i386_pseudo_register_read_into_value): Likewise.
1965 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1966 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1967 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1968 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1969 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1970 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1971 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1972 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1973 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1975 2018-01-22 Yao Qi <yao.qi@linaro.org>
1977 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1978 * configure.tgt: Remove target mt.
1979 * mt-tdep.c: Remove.
1980 * regcache.c (cooked_read_test): Remove the check for mt.
1982 2018-01-22 Yao Qi <yao.qi@linaro.org>
1984 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1985 instead of gdbarch_pseudo_register_read_value.
1987 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1989 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1992 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1994 * linespec.c (create_sals_line_offset): Remove code that preserved
1995 the symtab_and_line's line number.
1997 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1999 * varobj.c (varobj_create): Don't set valid_block when creating a
2002 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2004 * varobj.c (varobj_create): Remove out of date comment.
2006 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2009 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2010 updating innermost block.
2011 * parse.c (innermost_block_tracker::update): Take extra type
2012 parameter, and check types match before updating innermost block.
2013 (write_dollar_variable): Update innermost block for registers.
2014 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2015 (innermost_block_tracker::innermost_block_tracker): Initialise
2017 (innermost_block_tracker::reset): Take type parameter.
2018 (innermost_block_tracker::update): Take type parameter, and pass
2019 type through as needed.
2020 (innermost_block_tracker::m_types): New member.
2021 * varobj.c (varobj_create): Pass type when reseting innermost
2024 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2026 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2027 * ada-lang.c (resolve_subexp): Likewise.
2028 * breakpoint.c (set_breakpoint_condition) Likewise.
2029 (watch_command_1) Likewise.
2030 * c-exp.y (variable): Likewise.
2031 * d-exp.y (PrimaryExpression): Likewise.
2032 * f-exp.y (variable): Likewise.
2033 * go-exp.y (variable): Likewise.
2034 * m2-exp.y (variable): Likewise.
2035 * objfiles.c (objfile::~objfile): Likewise.
2036 * p-exp.y (variable): Likewise.
2037 * parse.c (innermost_block): Change type.
2038 * parser-defs.h (class innermost_block_tracker): New.
2039 (innermost_block): Change to innermost_block_tracker.
2040 * printcmd.c (display_command): Switch to innermost_block API.
2041 (do_one_display): Likewise.
2042 * rust-exp.y (do_one_display): Likewise.
2043 * symfile.c (clear_symtab_users): Likewise.
2044 * varobj.c (varobj_create): Switch to innermost_block API, replace
2045 use of innermost_block with block stored on varobj object.
2047 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2049 * expression.h (innermost_block): Remove declaration.
2050 * varobj.c: Add 'parser-defs.h' include.
2052 2018-01-19 Tom Tromey <tom@tromey.com>
2054 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2055 symbols in the static and global blocks.
2057 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2059 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2060 gdb_ptrace.h, and move including gdb_wait.h ...
2061 * nat/linux-ptrace.h: ... to here.
2063 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2065 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2066 inf_ptrace_detach_success.
2067 (inf_ptrace_detach_success): Add inferior parameter, use it
2068 instead of inferior_ptid, pass it to detach_inferior.
2069 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2071 * inferior.c (detach_inferior): Add overload that takes an
2073 * inferior.h (detach_inferior): Likewise.
2074 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2075 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2076 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2078 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2080 * target.h (struct target_ops) <to_detach>: Add inferior
2082 (target_detach): Likewise.
2083 * target.c (dispose_inferior): Pass inferior down.
2084 (target_detach): Pass inferior down. Assert that it is equal to
2085 the current inferior.
2086 * aix-thread.c (aix_thread_detach): Pass inferior down.
2087 * corefile.c (core_file_command): Pass current_inferior() down.
2088 * corelow.c (core_detach): Add inferior parameter.
2089 * darwin-nat.c (darwin_detach): Likewise.
2090 * gnu-nat.c (gnu_detach): Likewise.
2091 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2092 * infcmd.c (detach_command): Pass current_inferior() down to
2094 * infrun.c (follow_fork_inferior): Pass parent_inf to
2096 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2098 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2099 * linux-thread-db.c (thread_db_detach): Likewise.
2100 * nto-procfs.c (procfs_detach): Likewise.
2101 * procfs.c (procfs_detach): Likewise.
2102 * record.c (record_detach): Likewise.
2103 * record.h (struct inferior): Forward-declare.
2104 (record_detach): Add inferior parameter.
2105 * remote-sim.c (gdbsim_detach): Likewise.
2106 * remote.c (remote_detach_1): Likewise.
2107 (remote_detach): Likewise.
2108 (extended_remote_detach): Likewise.
2109 * sol-thread.c (sol_thread_detach): Likewise.
2110 * target-debug.h (target_debug_print_inferior_p): New macro.
2111 * target-delegates.c: Re-generate.
2112 * top.c (kill_or_detach): Pass inferior down to target_detach.
2113 * windows-nat.c (windows_detach): Add inferior parameter.
2115 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2117 * target.h (struct target_ops) <to_detach>: Remove args
2119 (target_detach): Likewise.
2120 * target.c (dispose_inferior): Adjust.
2121 (target_detach): Remove args parameter, adjust.
2122 * aix-thread.c (aix_thread_detach): Adjust.
2123 * corefile.c (core_file_command): Adjust.
2124 * corelow.c (core_detach): Adjust.
2125 * darwin-nat.c (darwin_detach): Adjust.
2126 * gnu-nat.c (gnu_detach): Adjust.
2127 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2128 * infcmd.c (detach_command): Adjust
2129 * infrun.c (follow_fork_inferior): Adjust.
2130 (handle_vfork_child_exec_or_exit): Adjust.
2131 * linux-fork.c (linux_fork_detach): Remove args parameter.
2132 * linux-fork.h (linux_fork_detach): Likewise.
2133 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2134 * linux-thread-db.c (thread_db_detach): Likewise.
2135 * nto-procfs.c (procfs_detach): Likewise.
2136 * procfs.c (procfs_detach): Likewise.
2137 (do_detach): Remove signo parameter.
2138 * record.c (record_detach): Remove args parameter.
2139 * record.h (record_detach): Likewise.
2140 * remote-sim.c (gdbsim_detach): Likewise.
2141 * remote.c (remote_detach_1): Likewise.
2142 (remote_detach): Likewise.
2143 (extended_remote_detach): Likewise.
2144 * sol-thread.c (sol_thread_detach): Likewise.
2145 * target-delegates.c: Re-generate.
2146 * top.c (struct qt_args) <args>: Remove field.
2147 (kill_or_detach): Don't pass args.
2148 (quit_force): Don't set args.
2149 * windows-nat.c (windows_detach): Remove args parameter.
2151 2018-01-19 Yao Qi <yao.qi@linaro.org>
2153 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2154 (arm_linux_init_abi): Install it.
2156 2018-01-19 Yao Qi <yao.qi@linaro.org>
2158 * osabi.c (gdb_osabi_names): Extend the regexp for
2159 arm-linux-gnueabihf.
2161 2018-01-18 Yao Qi <yao.qi@linaro.org>
2163 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2165 (abbrev_table::add_abbrev): Update.
2166 (abbrev_table::lookup_abbrev): Update.
2168 2018-01-18 Yao Qi <yao.qi@linaro.org>
2170 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2172 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2174 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2177 2018-01-17 Tom Tromey <tom@tromey.com>
2179 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2181 2018-01-17 Tom Tromey <tom@tromey.com>
2183 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2184 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2185 (create_array_type_with_stride): Update.
2186 * dwarf2read.c (set_die_type): Update.
2188 2018-01-17 Tom Tromey <tom@tromey.com>
2190 * dwarf2read.c (delayed_method_info): Remove typedef.
2191 (dwarf2_cu::method_info): Now a std::vector.
2192 (add_to_method_list): Update.
2193 (free_delayed_list): Remove.
2194 (compute_delayed_physnames): Update.
2195 (process_full_comp_unit, process_full_type_unit): Clear the method
2196 list. Remove cleanups.
2197 (psymtab_include_file_name): Add name_holder parameter. Use
2199 (dwarf_decode_lines): Update.
2201 2018-01-17 Tom Tromey <tom@tromey.com>
2202 Simon Marchi <simon.marchi@ericsson.com>
2204 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2205 (dwarf2_per_objfile::free_cached_comp_units)
2206 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2207 (init_cutu_and_read_dies_no_follow): Update.
2208 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2209 (dwarf2_cu::~dwarf2_cu): New.
2210 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2211 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2213 2018-01-17 Tom Tromey <tom@tromey.com>
2214 Simon Marchi <simon.marchi@ericsson.com>
2216 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2217 (struct die_reader_specs) <abbrev_table>: New member.
2218 (struct abbrev_table): Add constructor.
2219 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2220 <abbrev_obstack>: Now an auto_obstack.
2221 (abbrev_table_up): New typedef.
2222 (init_cu_die_reader): Add abbrev_table parameter.
2223 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2224 Add result_dwo_abbrev_table.
2225 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2226 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2228 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2230 (skip_children): Update.
2231 (abbrev_table::alloc_abbrev): Rename from
2232 abbrev_table_alloc_abbrev.
2233 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2234 (abbrev_table::lookup_abbrev): Rename from
2235 abbrev_table_lookup_abbrev.
2236 (abbrev_table_read_table): Return abbrev_table_up.
2237 (abbrev_table_free, abbrev_table_free_cleanup)
2238 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2239 (load_partial_dies): Update.
2241 2018-01-17 Tom Tromey <tom@tromey.com>
2243 * dwarf2read.c (dwarf2_compute_name): Update comment.
2244 (read_func_scope, read_variable): Update.
2245 (new_symbol): Remove.
2246 (new_symbol_full): Rename to new_symbol.
2248 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2251 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2252 a warning instead of throwing an error, set section size to 0 and return
2254 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2256 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2258 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2260 (linux_ptrace_attach_fail_reason_string): Likewise.
2261 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2263 (linux_ptrace_attach_fail_reason_string): Likewise.
2264 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2266 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2268 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2270 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2273 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2274 checking for fs_base/gs_base fields in struct user_regs_struct.
2275 * configure: Regenerate.
2277 2018-01-17 Yao Qi <yao.qi@linaro.org>
2279 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2281 (aarch64_linux_init_abi): Install it to gdbarch hook
2284 2018-01-15 Pedro Alves <palves@redhat.com>
2286 * common/signals-state-save-restore.c
2287 (save_original_signals_state): Fix typos.
2289 2017-01-12 Tom Tromey <tom@tromey.com>
2290 Sergio Durigan Junior <sergiodj@redhat.com>
2292 * Makefile.in (install-only): Install gdb-add-index.
2294 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2296 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2298 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2300 * infrun.c (keep_going_pass_signal): Clear step-over info when
2301 insert_breakpoints fails.
2303 2018-01-11 Pedro Alves <palves@redhat.com>
2306 * infrun.c (resume): Rename to ...
2307 (resume_1): ... this.
2308 (resume): Reimplement as wrapper around resume_1.
2310 2018-01-11 Pedro Alves <palves@redhat.com>
2313 * remote.c (remote_parse_stop_reply): Default to the last-set
2314 general thread instead of to 'magic_null_ptid'.
2316 2018-01-10 Pedro Alves <palves@redhat.com>
2318 * language.h (language_get_symbol_name_matcher): Rename ...
2319 (get_symbol_name_matcher): ... this.
2320 * language.c (language_get_symbol_name_matcher): Ditto.
2321 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2324 2018-01-10 Pedro Alves <palves@redhat.com>
2328 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2329 Adjust to use language_get_symbol_name_matcher instead of
2330 language_defn::la_get_symbol_name_matcher.
2331 * language.c (language_get_symbol_name_matcher): If in Ada mode
2332 and the lookup name is a verbatim match, return Ada's matcher.
2333 * language.h (language_get_symbol_name_matcher): Adjust comment.
2334 (ada_lookup_name_info::verbatim_p):: New method.
2336 2018-01-10 Pedro Alves <palves@redhat.com>
2339 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2340 minsym's language is language_auto or language_cplus, pass down
2341 language_ada instead.
2342 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2344 2018-01-10 Pedro Alves <palves@redhat.com>
2347 * minsyms.c (linkage_name_str): New function.
2348 (iterate_over_minimal_symbols): Use it.
2350 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2352 * NEWS: Document that 'info proc' now works on FreeBSD.
2354 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2356 * configure.ac: Check for kinfo_getfile in libutil.
2357 * configure: Regenerate.
2358 * config.in: Regenerate.
2359 * fbsd-nat.c: Include "fbsd-tdep.h".
2360 (fbsd_fetch_cmdline): New.
2361 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2362 rather than calling error.
2363 (fbsd_info_proc): New.
2364 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2365 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2366 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2368 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2370 * fbsd-nat.c (struct free_deleter): Remove.
2371 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2373 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2375 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2376 NULL for an empty pathname.
2378 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2380 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2381 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2382 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2383 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2384 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2385 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2386 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2387 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2388 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2389 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2390 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2391 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2392 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2393 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2394 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2396 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2398 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2399 (gnu_xfer_auxv): New function.
2400 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2403 2018-01-08 Yao Qi <yao.qi@linaro.org>
2404 Simon Marchi <simon.marchi@ericsson.com>
2406 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2408 (COMMON_OBS): Remove selftest.o.
2409 * configure.ac: Append selftest-arch.c and common/selftest.c to
2410 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2411 * configure: Re-generated.
2412 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2414 (maintenance_info_selftests): Likewise.
2416 2018-01-08 Xavier Roirand <roirand@adacore.com>
2418 * ada-valprint.c (val_print_packed_array_elements): Use
2419 proper number of elements when printing an array indexed
2420 by an enumeration type.
2422 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2424 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2425 (dw2_get_file_names_reader): Adjust.
2426 (lookup_dwo_signatured_type): Adjust.
2427 (lookup_dwp_signatured_type): Adjust.
2428 (lookup_signatured_type): Adjust.
2429 (create_type_unit_group): Adjust.
2430 (get_type_unit_group): Adjust.
2431 (process_psymtab_comp_unit_reader): Adjust.
2432 (build_type_psymtabs_reader): Adjust.
2433 (scan_partial_symbols): Adjust.
2434 (add_partial_symbol): Adjust.
2435 (add_partial_subprogram): Adjust.
2436 (peek_die_abbrev): Adjust.
2437 (fixup_go_packaging): Adjust.
2438 (process_imported_unit_die): Adjust.
2439 (dwarf2_compute_name): Adjust.
2440 (dwarf2_physname): Adjust.
2441 (read_import_statement): Adjust.
2442 (handle_DW_AT_stmt_list): Adjust.
2443 (read_file_scope): Adjust.
2444 (read_func_scope): Adjust.
2445 (read_lexical_block_scope): Adjust.
2446 (read_call_site_scope): Adjust.
2447 (read_variable): Adjust.
2448 (dwarf2_rnglists_process): Adjust.
2449 (dwarf2_ranges_process): Adjust.
2450 (dwarf2_ranges_read): Adjust.
2451 (dwarf2_get_pc_bounds): Adjust.
2452 (dwarf2_record_block_ranges): Adjust.
2453 (dwarf2_add_field): Adjust.
2454 (dwarf2_add_member_fn): Adjust.
2455 (read_structure_type): Adjust.
2456 (process_structure_scope): Adjust.
2457 (read_enumeration_type): Adjust.
2458 (read_array_type): Adjust.
2459 (mark_common_block_symbol_computed): Adjust.
2460 (read_common_block): Adjust.
2461 (read_namespace_type): Adjust.
2462 (read_namespace): Adjust.
2463 (read_module_type): Adjust.
2464 (read_tag_pointer_type): Adjust.
2465 (read_tag_ptr_to_member_type): Adjust.
2466 (read_tag_string_type): Adjust.
2467 (read_subroutine_type): Adjust.
2468 (read_typedef): Adjust.
2469 (read_base_type): Adjust.
2470 (attr_to_dynamic_prop): Adjust.
2471 (read_subrange_type): Adjust.
2472 (read_unspecified_type): Adjust.
2473 (dwarf2_read_abbrevs): Adjust.
2474 (load_partial_dies): Adjust.
2475 (read_partial_die): Adjust.
2476 (find_partial_die): Adjust.
2477 (guess_partial_die_structure_name): Adjust.
2478 (fixup_partial_die): Adjust.
2479 (read_attribute_value): Adjust.
2480 (read_addr_index): Adjust.
2481 (read_addr_index_from_leb128): Adjust.
2482 (read_str_index): Adjust.
2483 (dwarf2_string_attr): Adjust.
2484 (get_debug_line_section): Adjust.
2485 (dwarf_decode_line_header): Adjust.
2486 (lnp_state_machine::check_line_address): Adjust.
2487 (dwarf_decode_lines_1): Adjust.
2488 (dwarf_decode_lines): Adjust.
2489 (dwarf2_start_symtab): Adjust.
2490 (var_decode_location): Adjust.
2491 (new_symbol_full): Adjust.
2492 (dwarf2_const_value_data): Adjust.
2493 (dwarf2_const_value_attr): Adjust.
2494 (dwarf2_const_value): Adjust.
2496 (die_containing_type): Adjust.
2497 (build_error_marker_type): Adjust.
2498 (lookup_die_type): Adjust.
2499 (guess_full_die_structure_name): Adjust.
2500 (anonymous_struct_prefix): Adjust.
2501 (determine_prefix): Adjust.
2502 (dwarf2_name): Adjust.
2503 (follow_die_ref_or_sig): Adjust.
2504 (follow_die_offset): Adjust.
2505 (follow_die_ref): Adjust.
2506 (follow_die_sig_1): Adjust.
2507 (follow_die_sig): Adjust.
2508 (get_signatured_type): Adjust.
2509 (get_DW_AT_signature_type): Adjust.
2510 (decode_locdesc): Adjust.
2511 (dwarf_decode_macros): Adjust.
2512 (cu_debug_loc_section): Adjust.
2513 (fill_in_loclist_baton): Adjust.
2514 (dwarf2_symbol_mark_computed): Adjust.
2515 (init_one_comp_unit): Don't assign
2516 dwarf2_cu::dwarf2_per_objfile.
2517 (set_die_type): Adjust.
2519 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2521 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2522 <dwarf2_per_objfile>: New field.
2523 (dwarf2_per_objfile): Remove global.
2524 (get_dwarf2_per_objfile): New function.
2525 (set_dwarf2_per_objfile): New function.
2526 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2528 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2529 (read_abbrev_offset): Likewise.
2530 (read_indirect_string): Likewise.
2531 (read_indirect_line_string): Likewise.
2532 (read_indirect_string_at_offset): Likewise.
2533 (read_indirect_string_from_dwz): Likewise.
2534 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2536 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2537 (create_all_comp_units): Change objfile parameter to
2539 (create_all_type_units): Likewise.
2540 (process_queue): Add dwarf2_per_objfile parameter.
2541 (read_and_check_comp_unit_head): Likewise.
2542 (lookup_dwo_unit_in_dwp): Likewise.
2543 (get_dwp_file): Likewise.
2544 (process_cu_includes): Likewise.
2545 (struct free_dwo_file_cleanup_data): New struct.
2546 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2547 set_dwarf2_per_objfile.
2548 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2549 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2550 context, adjust calls.
2551 (dw2_instantiate_symtab): Likewise.
2552 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2553 (dw2_get_cu): Likewise.
2554 (create_cu_from_index_list): Change objfile parameter to
2556 (create_cus_from_index_list): Get dwarf2_per_objfile from
2557 context, adjust calls.
2558 (create_cus_from_index): Likewise.
2559 (create_signatured_type_table_from_index): Change objfile
2560 parameter to dwarf2_per_objfile.
2561 (create_signatured_type_table_from_debug_names): Change objfile
2562 parameter to dwarf2_per_objfile.
2563 (create_addrmap_from_index): Likewise.
2564 (create_addrmap_from_aranges): Likewise.
2565 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2566 (dw2_setup): Remove.
2567 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2569 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2570 get_dwarf2_per_objfile.
2571 (dw2_forget_cached_source_info): Likewise.
2572 (dw2_map_symtabs_matching_filename): Likewise.
2573 (struct dw2_symtab_iterator) <index>: Remove.
2574 <dwarf2_per_objfile>: New field.
2575 (dw2_symtab_iter_init): Replace index parameter with
2577 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2578 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2579 (dw2_print_stats): Likewise.
2580 (dw2_dump): Likewise.
2581 (dw2_expand_symtabs_for_function): Likewise.
2582 (dw2_expand_all_symtabs): Likewise.
2583 (dw2_expand_symtabs_with_fullname): Likewise.
2584 (dw2_expand_marked_cus): Replace index and objfile parameters
2585 with dwarf2_per_objfile.
2586 (dw_expand_symtabs_matching_file_matcher): Add
2587 dwarf2_per_objfile parameter and adjust calls.
2588 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2590 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2591 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2593 (create_cus_from_debug_names_list): Replace objfile parameter
2594 with dwarf2_per_objfile and adjust calls.
2595 (create_cus_from_debug_names): Likewise.
2596 (dwarf2_read_debug_names): Likewise.
2597 (mapped_debug_names::namei_to_name): Adjust call.
2598 (dw2_debug_names_iterator::next): Likewise.
2599 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2600 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2601 (dw2_debug_names_dump): Likewise.
2602 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2603 (dw2_debug_names_expand_symtabs_matching): Likewise.
2604 (dwarf2_initialize_objfile): Likewise.
2605 (dwarf2_build_psymtabs): Likewise.
2606 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2608 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2609 (read_and_check_comp_unit_head): Likewise.
2610 (read_abbrev_offset): Likewise.
2611 (create_debug_type_hash_table): Likewise.
2612 (create_debug_types_hash_table): Likewise.
2613 (create_all_type_units): Replace objfile parameter with
2615 (add_type_unit): Add dwarf2_per_objfile parameter.
2616 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2617 with dwarf2_per_objfile.
2618 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2619 (lookup_dwp_signatured_type): Likewise.
2620 (lookup_signatured_type): Likewise.
2621 (read_cutu_die_from_dwo): Likewise.
2622 (init_tu_and_read_dwo_dies): Likewise.
2623 (init_cutu_and_read_dies): Likewise.
2624 (init_cutu_and_read_dies_no_follow): Likewise.
2625 (allocate_type_unit_groups_table): Add objfile parameter.
2626 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2627 (get_type_unit_group): Likewise.
2628 (process_psymtab_comp_unit): Update call.
2629 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2630 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2631 (print_tu_stats): Likewise.
2632 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2634 (build_type_psymtabs): Change objfile parameter to
2636 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2637 passed in void* parameter.
2638 (process_skeletonless_type_units): Change objfile parameter to
2640 (set_partial_user): Likewise.
2641 (dwarf2_build_psymtabs_hard): Likewise.
2642 (read_comp_units_from_section): Likewise.
2643 (create_all_comp_units): Likewise.
2644 (scan_partial_symbols): Update calls.
2645 (add_partial_symbol): Likewise.
2646 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2647 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2648 (process_queue): Add dwarf2_per_objfile parameter.
2649 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2650 (compute_compunit_symtab_includes): Likewise.
2651 (process_cu_includes): Add dwarf2_per_objfile parameter.
2652 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2653 (process_full_type_unit): Likewise.
2654 (process_imported_unit_die): Update call.
2655 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2656 (read_file_scope): Likewise.
2657 (allocate_dwo_file_hash_table): Add objfile parameter.
2658 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2659 (create_cus_hash_table): Likewise.
2660 (create_dwp_hash_table): Likewise.
2661 (create_dwo_unit_in_dwp_v1): Likewise.
2662 (create_dwp_v2_section): Likewise.
2663 (create_dwo_unit_in_dwp_v2): Likewise.
2664 (lookup_dwo_unit_in_dwp): Likewise.
2665 (try_open_dwop_file): Likewise.
2666 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2667 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2668 cleanup to include a reference to dwarf2_per_objfile.
2669 (open_dwp_file): Add dwarf2_per_objfile parameter.
2670 (open_and_init_dwp_file): Likewise.
2671 (get_dwp_file): Likewise.
2672 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2673 (queue_and_load_all_dwo_tus): Update call.
2674 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2676 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2677 (dwarf2_ranges_process): Likewise.
2678 (dwarf2_get_pc_bounds): Likewise.
2679 (mark_common_block_symbol_computed): Likewise.
2680 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2681 (dwarf2_read_abbrevs): Update call.
2682 (read_partial_die): Use dwarf2_per_objfile from cu.
2683 (find_partial_die): Likewise.
2684 (fixup_partial_die): Likewise.
2685 (read_attribute_value): Likewise.
2686 (read_indirect_string_at_offset_from): Add objfile parameter.
2687 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2689 (read_indirect_string_from_dwz): Add objfile parameter.
2690 (read_indirect_string): Add objfile parameter.
2691 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2692 (read_addr_index): Use dwarf2_per_objfile from cu.
2693 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2695 (read_str_index): Use dwarf2_per_objfile from cu.
2696 (get_debug_line_section): Likewise.
2697 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2698 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2699 (new_symbol_full): Use dwarf2_per_objfile from cu.
2700 (build_error_marker_type): Likewise.
2701 (lookup_die_type): Likewise.
2702 (determine_prefix): Likewise.
2703 (follow_die_offset): Likewise.
2704 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2705 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2706 (dwarf2_fetch_die_type_sect_off): Likewise.
2707 (dwarf2_get_die_type): Likewise.
2708 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2709 (get_signatured_type): Likewise.
2710 (get_DW_AT_signature_type): Likewise.
2711 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2712 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2713 (cu_debug_loc_section): Likewise.
2714 (fill_in_loclist_baton): Likewise.
2715 (dwarf2_symbol_mark_computed): Likewise.
2716 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2718 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2720 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2721 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2722 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2723 (set_die_type): Use dwarf2_free_objfile from cu.
2724 (get_die_type_at_offset): Likewise.
2725 (dwarf2_per_objfile_free): Don't assign global variable.
2726 (debug_names) <constructor>: Add dwarf2_per_objfile
2727 parameter, update m_debugstrlookup construction.
2728 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2730 <m_dwarf2_per_objfile>: New field.
2731 <lookup>: Use m_dwarf2_per_objfile.
2732 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2733 (psyms_seen_size): Likewise.
2734 (write_gdbindex): Replace objfile parameter with
2736 (write_debug_names): Likewise.
2737 (write_psymtabs_to_index): Likewise.
2738 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2741 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2743 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2744 <dwarf2_per_objfile>: New field.
2745 (struct dwarf2_per_cu_data) <objfile>: Remove.
2746 <dwarf2_per_objfile>: New field.
2747 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2749 (create_signatured_type_table_from_index): Likewise.
2750 (create_debug_type_hash_table): Likewise.
2751 (fill_in_sig_entry_from_dwo_entry): Likewise.
2752 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2753 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2755 (create_partial_symtab): Access objfile through
2757 (process_psymtab_comp_unit_reader): Likewise.
2758 (read_comp_units_from_section): Likewise.
2759 (scan_partial_symbols): Likewise.
2760 (add_partial_symbol): Likewise.
2761 (add_partial_subprogram): Likewise.
2762 (peek_die_abbrev): Likewise.
2763 (fixup_go_packaging): Likewise.
2764 (process_full_comp_unit): Likewise.
2765 (process_full_type_unit): Likewise.
2766 (process_imported_unit_die): Likewise.
2767 (dwarf2_compute_name): Likewise.
2768 (dwarf2_physname): Likewise.
2769 (read_import_statement): Likewise.
2770 (create_cus_hash_table): Assign dwarf2_physname instead of
2772 (read_func_scope): Access objfile through dwarf2_per_objfile.
2773 (read_lexical_block_scope): Likewise.
2774 (read_call_site_scope): Likewise.
2775 (read_variable): Likewise.
2776 (dwarf2_rnglists_process): Likewise.
2777 (dwarf2_ranges_process): Likewise.
2778 (dwarf2_ranges_read): Likewise.
2779 (dwarf2_record_block_ranges): Likewise.
2780 (dwarf2_add_field): Likewise.
2781 (dwarf2_add_member_fn): Likewise.
2782 (read_structure_type): Likewise.
2783 (process_structure_scope): Likewise.
2784 (read_enumeration_type): Likewise.
2785 (read_array_type): Likewise.
2786 (read_common_block): Likewise.
2787 (read_namespace_type): Likewise.
2788 (read_namespace): Likewise.
2789 (read_module_type): Likewise.
2790 (read_tag_pointer_type): Likewise.
2791 (read_tag_ptr_to_member_type): Likewise.
2792 (read_tag_string_type): Likewise.
2793 (read_subroutine_type): Likewise.
2794 (read_typedef): Likewise.
2795 (read_base_type): Likewise.
2796 (attr_to_dynamic_prop): Likewise.
2797 (read_subrange_type): Likewise.
2798 (read_unspecified_type): Likewise.
2799 (load_partial_dies): Likewise.
2800 (read_partial_die): Likewise.
2801 (find_partial_die): Likewise.
2802 (guess_partial_die_structure_name): Likewise.
2803 (fixup_partial_die): Likewise.
2804 (read_attribute_value): Likewise.
2805 (read_addr_index_from_leb128): Likewise.
2806 (dwarf2_read_addr_index): Likewise.
2807 (dwarf2_string_attr): Likewise.
2808 (lnp_state_machine::check_line_address): Likewise.
2809 (dwarf_decode_lines_1): Likewise.
2810 (dwarf_decode_lines): Likewise.
2811 (dwarf2_start_symtab): Likewise.
2812 (var_decode_location): Likewise.
2813 (new_symbol_full): Likewise.
2814 (dwarf2_const_value_data): Likewise.
2815 (dwarf2_const_value_attr): Likewise.
2816 (dwarf2_const_value): Likewise.
2817 (die_type): Likewise.
2818 (die_containing_type): Likewise.
2819 (lookup_die_type): Likewise.
2820 (guess_full_die_structure_name): Likewise.
2821 (anonymous_struct_prefix): Likewise.
2822 (dwarf2_name): Likewise.
2823 (follow_die_ref_or_sig): Likewise.
2824 (follow_die_offset): Likewise.
2825 (follow_die_ref): Likewise.
2826 (dwarf2_fetch_die_loc_sect_off): Likewise.
2827 (dwarf2_fetch_constant_bytes): Likewise.
2828 (dwarf2_fetch_die_type_sect_off): Likewise.
2829 (dwarf2_get_die_type): Likewise.
2830 (follow_die_sig): Likewise.
2831 (decode_locdesc): Likewise.
2832 (dwarf2_per_cu_objfile): Likewise.
2833 (dwarf2_per_cu_text_offset): Likewise.
2834 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2836 (set_die_type): Access objfile through
2839 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2841 * valprint.c (converted_character_d): Remove typedef.
2842 (DEF_VEC_O (converted_character_d)): Remove.
2843 (count_next_character): Use std::vector.
2844 (print_converted_chars_to_obstack): Likewise.
2845 (generic_printstr): Likewise.
2847 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2849 * xml-support.h (struct gdb_xml_value): Add constructor.
2850 <value>: Change type to unique_xmalloc_ptr.
2851 (gdb_xml_value_s): Remove typedef.
2852 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2853 (gdb_xml_element_start_handler): Change parameter type to
2855 (xml_find_attribute): Likewise.
2856 * xml-support.c (xml_find_attribute): Change parameter type to
2857 std::vector and adjust.
2858 (gdb_xml_values_cleanup): Remove.
2859 (gdb_xml_parser::start_element): Adjust to std::vector.
2860 (xinclude_start_include): Change paraeter type to std::vector
2862 * btrace.c (check_xml_btrace_version): Likewise.
2863 (parse_xml_btrace_block): Likewise.
2864 (parse_xml_btrace_pt_config_cpu): Likewise.
2865 (parse_xml_btrace_pt): Likewise.
2866 (parse_xml_btrace_conf_bts): Likewise.
2867 (parse_xml_btrace_conf_pt): Likewise.
2868 * memory-map.c (memory_map_start_memory): Likewise.
2869 (memory_map_start_property): Likewise.
2870 * osdata.c (osdata_start_osdata): Likewise.
2871 (osdata_start_item): Likewise.
2872 (osdata_start_column): Likewise.
2873 * remote.c (start_thread): Likewise.
2874 * solib-aix.c (library_list_start_library): Likewise.
2875 (library_list_start_list): Likewise.
2876 * solib-svr4.c (library_list_start_library): Likewise.
2877 (svr4_library_list_start_list): Likewise.
2878 * solib-target.c (library_list_start_segment): Likewise.
2879 (library_list_start_section): Likewise.
2880 (library_list_start_library): Likewise.
2881 (library_list_start_list): Likewise.
2882 * tracepoint.c (traceframe_info_start_memory): Likewise.
2883 (traceframe_info_start_tvar): Likewise.
2884 * xml-syscall.c (syscall_start_syscall): Likewise.
2885 * xml-tdesc.c (tdesc_start_target): Likewise.
2886 (tdesc_start_feature): Likewise.
2887 (tdesc_start_reg): Likewise.
2888 (tdesc_start_union): Likewise.
2889 (tdesc_start_struct): Likewise.
2890 (tdesc_start_flags): Likewise.
2891 (tdesc_start_enum): Likewise.
2892 (tdesc_start_field): Likewise.
2893 (tdesc_start_enum_value): Likewise.
2894 (tdesc_start_vector): Likewise.
2896 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2898 * extension.h (struct xmethod_worker) <clone>: Remove.
2899 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2901 (python_xmethod_worker::clone): Remove.
2902 * valops.c (find_overload_match): Use std::move instead of
2905 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2907 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2908 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2909 <free_xmethod_worker_data>: Remove.
2910 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2911 <get_xmethod_arg_types>: Remove.
2912 <get_xmethod_result_type>: Remove.
2913 <invoke_xmethod>: Remove.
2914 * extension.c (new_xmethod_worker): Remove.
2915 (clone_xmethod_worker): Remove.
2916 (get_matching_xmethod_workers): Return void, pass std::vector by
2918 (get_xmethod_arg_types): Rename to...
2919 (xmethod_worker::get_arg_types): ... this, and adjust.
2920 (get_xmethod_result_type): Rename to...
2921 (xmethod_worker::get_result_type): ... this, and adjust.
2922 (invoke_xmethod): Remove.
2923 (free_xmethod_worker): Remove.
2924 (free_xmethod_worker_vec): Remove.
2925 * extension.h (enum ext_lang_rc): Move here from
2927 (struct xmethod_worker): Add constructor and destructor.
2930 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2931 virtual pure methods.
2932 <get_arg_types, get_result_type>: New methods.
2933 (xmethod_worker_ptr): Remove typedef.
2934 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2935 (xmethod_worker_vec): Remove typedef.
2936 (xmethod_worker_up): New typedef.
2937 (invoke_xmethod): Remove.
2938 (clone_xmethod_worker): Remove.
2939 (free_xmethod_worker): Remove.
2940 (free_xmethod_worker_vec): Remove.
2941 (get_xmethod_arg_types): Remove.
2942 (get_xmethod_result_type): Remove.
2943 * valops.c (find_method_list): Use std::vector, don't use
2944 intermediate vector.
2945 (value_find_oload_method_list): Use std::vector.
2946 (find_overload_match): Use std::vector.
2947 (find_oload_champ): Use std::vector.
2948 * value.c (value_free): Use operator delete.
2949 (value_of_xmethod): Rename to...
2950 (value_from_xmethod): ... this. Don't assign
2951 xmethod_worker::value, take rvalue-reference.
2952 (result_type_of_xmethod): Adjust.
2953 (call_xmethod): Adjust.
2954 * value.h: Include extension.h.
2955 (struct xmethod_worker): Don't forward-declare.
2956 (value_of_xmethod): Rename to...
2957 (value_from_xmethod): ... this, take rvalue-reference.
2958 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2959 (struct python_xmethod_worker): ... this, add constructor and
2961 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2962 (gdbpy_free_xmethod_worker_data): Rename to...
2963 (python_xmethod_worker::~python_xmethod_worker): ... this and
2965 (gdbpy_clone_xmethod_worker_data): Rename to...
2966 (python_xmethod_worker::clone): ... this and adjust.
2967 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2969 (gdbpy_get_xmethod_arg_types): Rename to...
2970 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2971 (gdbpy_get_xmethod_result_type): Rename to...
2972 (python_xmethod_worker::do_get_result_type): ... this and
2974 (gdbpy_invoke_xmethod): Rename to...
2975 (python_xmethod_worker::invoke): ... this and adjust.
2976 (new_python_xmethod_worker): Rename to...
2977 (python_xmethod_worker::python_xmethod_worker): ... this and
2979 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2981 (gdbpy_free_xmethod_worker_data): Remove.
2982 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2983 (gdbpy_get_xmethod_arg_types): Remove.
2984 (gdbpy_get_xmethod_result_type): Remove.
2985 (gdbpy_invoke_xmethod): Remove.
2986 * python/python.c (python_extension_ops): Remove obsolete
2989 2018-01-05 Pedro Alves <palves@redhat.com>
2992 * common/signals-state-save-restore.c
2993 (save_original_signals_state): New parameter 'quiet'. Warn if we
2994 find a custom handler preinstalled, instead of internal erroring.
2995 But only warn if !quiet.
2996 * common/signals-state-save-restore.h
2997 (save_original_signals_state): New parameter 'quiet'.
2998 * main.c (captured_main_1): Move save_original_signals_state call
2999 after option handling, and pass QUIET.
3001 2018-01-05 Pedro Alves <palves@redhat.com>
3003 * spu-tdep.c (spu_catch_start): Pass
3004 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3006 2018-01-05 Pedro Alves <palves@redhat.com>
3009 * ada-lang.c (literal_symbol_name_matcher): New function.
3010 (ada_get_symbol_name_matcher): Use it for
3011 symbol_name_match_type::SEARCH_NAME.
3012 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3013 it down instead of assuming symbol_name_match_type::FULL.
3014 * block.h (block_lookup_symbol): New parameter 'match_type'.
3015 * c-valprint.c (print_unpacked_pointer): Use
3016 lookup_symbol_search_name instead of lookup_symbol.
3017 * compile/compile-object-load.c (get_out_value_type): Pass down
3018 symbol_name_match_type::SEARCH_NAME.
3019 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3020 symbol_name_match_type::FULL.
3021 * cp-support.c (cp_get_symbol_name_matcher): Handle
3022 symbol_name_match_type::SEARCH_NAME.
3023 * infrun.c (insert_exception_resume_breakpoint): Use
3024 lookup_symbol_search_name.
3025 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3026 * psymtab.c (maintenance_check_psymtabs): Use
3027 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3028 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3030 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3031 if symbol_name_match_type::SEARCH_NAME.
3032 (lookup_symbol_in_language): Pass down
3033 symbol_name_match_type::FULL.
3034 (lookup_symbol_search_name): New.
3035 (lookup_language_this): Pass down
3036 symbol_name_match_type::SEARCH_NAME.
3037 (lookup_symbol_aux, lookup_local_symbol): New parameter
3038 'match_type'. Pass it down.
3039 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3040 (lookup_symbol_search_name): New declaration.
3041 (lookup_symbol_in_block): New 'match_type' parameter.
3043 2018-01-05 Pedro Alves <palves@redhat.com>
3046 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3048 (ada_lookup_symbol): Reimplement in terms of
3049 ada_lookup_symbol_list, bits factored out from
3050 ada_lookup_encoded_symbol.
3052 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3054 * ada-exp.y (write_object_renaming): When subscripting an array
3055 using a symbol as the index, pass the block in call to
3056 ada_lookup_encoded_symbol when looking that symbol up.
3058 2018-01-05 Jerome Guitton <guitton@adacore.com>
3060 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3063 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3065 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3066 the case where VALUE_LVAL (val0) is not lval_memory.
3068 2018-01-05 Xavier Roirand <roirand@adacore.com>
3070 * ada-valprint.c (print_optional_low_bound): Handle
3071 character-indexed array printing like boolean-indexed array
3074 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3076 * NEWS: Create a new section for the next release branch.
3077 Rename the section of the current branch, now that it has
3080 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3082 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3083 * version.in: Bump version to 8.1.50.DATE-git.
3085 2018-01-03 Xavier Roirand <roirand@adacore.com>
3087 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3089 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3091 (default_exception_support_info) <catch_handlers_sym>: Add field.
3092 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3093 (ada_exception_name_addr_1): Add "catch handlers" handling.
3094 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3096 (create_excep_cond_exprs) <ex>: Add parameter.
3097 (re_set_exception): Update create_excep_cond_exprs call.
3098 (print_it_exception, print_one_exception, print_mention_exception)
3099 (print_recreate_exception): Add "catch handler" handling.
3100 (allocate_location_catch_handlers, re_set_catch_handlers)
3101 (check_status_catch_handlers, print_it_catch_handlers)
3102 (print_one_catch_handlers, print_mention_catch_handlers)
3103 (print_recreate_catch_handlers): New function.
3104 (catch_handlers_breakpoint_ops): New variable.
3105 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3106 Add parameter. Add "catch handler" handling.
3107 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3108 Add "catch handler" handling.
3109 (ada_exception_catchpoint_cond_string): Add "catch handler"
3111 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3113 (catch_ada_handlers_command): New function.
3114 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3115 operations structure.
3116 (_initialize_ada_language): Add "catch handlers" command entry.
3117 * NEWS: Document "catch handlers" feature.
3119 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3121 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3122 account when creating the array type of the slice.
3123 (ada_value_slice): Likewise.
3125 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3127 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3129 (create_array_type_with_stride): Add byte_stride_prop parameter.
3130 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3131 New parameter. Update all callers in this file.
3132 (array_type_has_dynamic_stride): New function.
3133 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3134 of arrays with dynamic byte strides.
3135 * dwarf2read.c (read_array_type): Add support for dynamic
3136 DW_AT_byte_stride attributes.
3138 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3140 * dwarf2read.c (read_unspecified_type): Treat
3141 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3143 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3145 Update copyright year range in all GDB files.
3147 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3149 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3150 and gdb/testsuite/gdb.base/step-line.c.
3152 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3154 * copyright.py (main): Dump the contents of
3155 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3156 even if BY_HAND is empty.
3158 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3160 * top.c (print_gdb_version): Update Copyright year in version
3163 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3165 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3167 For older changes see ChangeLog-2017.
3173 version-control: never