1 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
3 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
5 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
7 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
9 2018-03-19 Tom Tromey <tom@tromey.com>
11 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
14 2018-03-19 Pedro Alves <palves@redhat.com>
15 Tom Tromey <tom@tromey.com>
17 * unittests/observable-selftests.c: New file.
18 * common/observable.h: New file.
19 * observable.h: New file.
20 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
21 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
22 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
23 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
24 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
25 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
26 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
27 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
28 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
29 python/py-breakpoint.c, python/py-finishbreakpoint.c,
30 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
31 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
32 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
33 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
34 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
35 tui/tui-interp.c, valops.c: Update all users.
36 * tui/tui-hooks.c (tui_bp_created_observer)
37 (tui_bp_deleted_observer, tui_bp_modified_observer)
38 (tui_inferior_exit_observer, tui_before_prompt_observer)
39 (tui_normal_stop_observer, tui_register_changed_observer):
41 (tui_observers_token): New global.
42 (attach_or_detach, tui_attach_detach_observers): New functions.
43 (tui_install_hooks, tui_remove_hooks): Use
44 tui_attach_detach_observers.
45 * record-btrace.c (record_btrace_thread_observer): Remove.
46 (record_btrace_thread_observer_token): New global.
47 * observer.sh: Remove.
48 * observer.c: Rename to observable.c.
49 * observable.c (namespace gdb_observers): Define new objects.
50 (observer_debug): Move into gdb_observers namespace.
51 (struct observer, struct observer_list, xalloc_observer_list_node)
52 (xfree_observer_list_node, generic_observer_attach)
53 (generic_observer_detach, generic_observer_notify): Remove.
54 (_initialize_observer): Update.
55 Don't include observer.inc.
56 * Makefile.in (generated_files): Remove observer.h, observer.inc.
57 (clean mostlyclean): Likewise.
58 (observer.h, observer.inc): Remove targets.
59 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
60 (COMMON_SFILES): Use observable.c, not observer.c.
61 * .gitignore: Remove observer.h.
63 2018-03-18 Tom Tromey <tom@tromey.com>
65 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
67 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
69 2018-03-17 Tom Tromey <tom@tromey.com>
71 * auto-load.c (auto_load_objfile_script_1): Use std::string.
73 2018-03-17 Tom Tromey <tom@tromey.com>
75 * target.c (class scoped_target_fd): New.
76 (target_fileio_close_cleanup): Remove.
77 (target_fileio_read_alloc_1): Use scoped_target_fd.
79 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
81 * silent-rules.mk: New.
82 * Makefile.in: Include silent-rules.mk
83 (srcdir, VPATH, top_srcdir): Move up.
84 (COMPILE): Add ECHO_CXX.
85 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
86 (init.c): Add ECHO_INIT_C.
87 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
88 (version.c): Add ECHO_GEN.
89 (printcmd.o): Add ECHO_CXX.
90 (target-float.o): Add ECHO_CXX.
91 (ada-exp.o): Add ECHO_CXX.
92 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
93 (insight$(EXEEXT)): Add ECHO_CXXLD.
94 * gnulib/configure.ac: Add AM_SILENT_RULES.
95 * gnulib/aclocal.m4: Re-generate.
96 * gnulib/configure: Re-generate.
97 * gnulib/import/Makefile.in: Re-generate.
99 2018-03-16 Tom Tromey <tom@tromey.com>
101 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
102 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
103 * utils.c (do_free_section_addr_info)
104 (make_cleanup_free_section_addr_info): Remove.
105 * symfile.h (struct other_sections): Add constructor.
106 (struct section_addr_info): Remove.
107 (section_addr_info): New typedef.
108 (struct sym_fns) <sym_offsets>: Change type of parameter.
109 (build_section_addr_info_from_objfile)
110 (relative_addr_info_to_section_offsets, addr_info_make_relative)
111 (default_symfile_offsets, symbol_file_add)
112 (symbol_file_add_from_bfd)
113 (build_section_addr_info_from_section_table): Update.
114 (alloc_section_addr_info, free_section_addr_info): Don't declare.
115 * symfile.c (alloc_section_addr_info): Remove.
116 (build_section_addr_info_from_section_table): Change return type.
118 (build_section_addr_info_from_bfd)
119 (build_section_addr_info_from_objfile): Likewise.
120 (free_section_addr_info): Remove.
121 (relative_addr_info_to_section_offsets): Change type of "addrs".
122 (addrs_section_compar): Now a std::sort comparator.
123 (addrs_section_sort): Change return type.
124 (addr_info_make_relative): Change type of "addrs". Update.
125 (default_symfile_offsets, syms_from_objfile_1)
126 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
127 (symbol_file_add_separate): Update.
128 (symbol_file_add): Change type of "addrs". Update.
129 (add_symbol_file_command): Update. Remove cleanups.
130 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
132 * symfile-debug.c (debug_sym_offsets): Change type of "info".
133 * solib.c (solib_read_symbols): Update.
134 * objfiles.c (objfile_relocate): Update. Remove cleanups.
135 * machoread.c (macho_symfile_offsets): Update.
136 * jit.c (jit_bfd_try_read_symtab): Update.
138 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
140 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
141 unittests/utils-selftests.c.
142 * unittests/utils-selftests.c: New file.
144 2018-03-14 Tom Tromey <tom@tromey.com>
147 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
150 2018-03-14 Tom Tromey <tom@tromey.com>
153 * printcmd.c (printf_pointer): Allow "-" in format.
155 2018-03-14 Tom Tromey <tom@tromey.com>
157 * printcmd.c (_initialize_printcmd): Add usage to printf.
159 2018-03-14 Yao Qi <qiyao@sourceware.org>
161 * MAINTAINERS: Update my email address.
163 2018-03-13 Tom Tromey <tom@tromey.com>
165 * machoread.c (macho_check_dsym): Change filenamep to a
167 (macho_symfile_read): Update.
168 * symfile.c (load_command): Use std::string.
170 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
172 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
173 to error message string.
174 (riscv_register_name): Use xsnprintf instead of sprintf.
175 (riscv_insn::fetch_instruction): Use gdb_assert instead of
177 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
179 (riscv_push_dummy_call): Likewise.
181 2018-03-12 Tom Tromey <tom@tromey.com>
183 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
184 Use gdb::byte_vector.
185 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
187 2018-03-12 Yao Qi <yao.qi@linaro.org>
189 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
190 parameter type to readable_regcache.
191 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
194 2018-03-11 Tom Tromey <tom@tromey.com>
196 * dwarf2read.c (struct nextfield): Add initializers.
197 (struct nextfnfield): Remove.
198 (struct fnfieldlist): Add initializers. Remove "length" and
199 "head", use std::vector.
200 (struct decl_field_list): Remove.
201 (struct field_info): Add initializers.
202 <fields, baseclasses>: Now std::vector.
203 <nbaseclasses, nfnfields, typedef_field_list_count,
204 nested_types_list_count>: Remove.
205 (dwarf2_add_field, dwarf2_add_type_defn)
206 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
207 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
208 (process_structure_scope): Update.
210 2018-03-11 Tom Tromey <tom@tromey.com>
212 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
213 for use by std::sort.
214 (build_type_psymtabs_1): Use std::vector.
216 2018-03-09 Eli Zaretskii <eliz@gnu.org>
218 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
219 and LIBMPFR in the printed configuration.
221 2018-03-08 Tom Tromey <tom@tromey.com>
223 * source.c (get_filename_and_charpos): Use scoped_fd.
224 * nto-procfs.c (procfs_open_1): Use scoped_fd.
225 (procfs_pidlist): Likewise.
226 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
227 (iterate_over_mappings): Likewise.
229 2018-03-08 Tom Tromey <tom@tromey.com>
231 * infcall.c (struct call_return_meta_info)
232 <stack_temporaries_enabled>: Remove.
233 (get_call_return_value, call_function_by_hand_dummy): Update.
234 * thread.c (disable_thread_stack_temporaries): Remove.
235 (enable_thread_stack_temporaries): Remove.
236 (thread_stack_temporaries_enabled_p): Return bool.
237 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
238 (get_last_thread_stack_temporary): Update.
239 * eval.c (evaluate_subexp): Update.
240 * gdbthread.h (class enable_thread_stack_temporaries): Now a
241 class, not a function.
242 (value_ptr, value_vec): Remove typedefs.
243 (class thread_info) <stack_temporaries_enabled>: Now bool.
244 <stack_temporaries>: Now a std::vector.
245 (thread_stack_temporaries_enabled_p)
246 (value_in_thread_stack_temporaries): Return bool.
248 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
250 * remote.c (putpkt_binary): Fix omitted bytes reporting.
251 (getpkt_or_notif_sane_1): Likewise.
253 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
255 * build-id.c (build_id_to_debug_bfd): Use std::string.
257 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
259 * build-id.c (find_separate_debug_file_by_buildid): Return
261 * build-id.h (find_separate_debug_file_by_buildid): Return
263 * coffread.c (coff_symfile_read): Adjust to std::string.
264 * elfread.c (elf_symfile_read): Adjust to std::string.
265 * symfile.c (separate_debug_file_exists): Change parameter to
267 (find_separate_debug_file): Return std::string.
268 (find_separate_debug_file_by_debuglink): Return std::string.
269 * symfile.h (find_separate_debug_file_by_debuglink): Return
272 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
274 * common/xml-utils.c (xml_escape_text): Move code to...
275 (xml_escape_text_append): ... this new function.
276 * common/xml-utils.h (xml_escape_text_append): New declaration.
277 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
279 (_initialize_xml_utils): register test_xml_escape_text_append as
282 2018-03-07 Alan Hayward <alan.hayward@arm.com>
284 * defs.h: Remove MAX_REGISTER_SIZE.
285 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
287 * python/py-unwind.c (pyuw_sniffer): Likewise.
289 2018-03-07 Tom Tromey <tom@tromey.com>
291 * linux-tdep.c (linux_info_proc): Update.
292 * target.h (struct target_ops) <to_fileio_readlink>: Return
294 (target_fileio_readlink): Return optional<string>.
295 * remote.c (remote_hostio_readlink): Return optional<string>.
296 * inf-child.c (inf_child_fileio_readlink): Return
298 * target.c (target_fileio_readlink): Return optional<string>.
300 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
302 * regcache.c (cooked_read_test): Add riscv to the list of
303 architectures that have a save_reggroup.
305 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
307 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
308 value is not a dynamic class object.
310 2018-03-06 Tom Tromey <tom@tromey.com>
312 * rust-exp.y: Formatting fixes.
314 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
316 * riscv-tdep.c (riscv_register_name): Remove target description
318 (riscv_gdbarch_init): Remove target description check.
320 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
322 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
324 * riscv-tdep.h: Likewise.
326 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
328 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
329 (riscv_pseudo_register_write): Delete.
330 (riscv_gdbarch_init): Remove all use of pseudo registers.
332 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
334 * record-btrace.c (btrace_print_lines): Replace cleanup
335 parameter with RAII equivalents.
336 (btrace_insn_history): Replace cleanup with RAII equivalents.
337 * ui-out.h (make_cleanup_ui_out_list_begin_end,
338 make_cleanup_ui_out_tuple_begin_end): Remove.
339 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
340 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
341 make_cleanup_ui_out_list_begin_end): Remove.
343 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
345 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
346 parameter types to std::vector. Use bool.
347 (record_btrace_wait): Replace VEC(tp_t) with
348 std::vector<thread_info *>.
349 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
351 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
353 * record-btrace.c (record_btrace_disable_callback): Remove.
354 (struct scoped_btrace_disable): New.
355 (record_btrace_open): Use scoped_btrace_disable.
357 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
359 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
360 reading values from registers.
362 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
364 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
367 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
369 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
370 change parameter type. Use GDB's print functions, and use
371 core_addr_to_string where appropriate.
372 (riscv_push_dummy_call): Use core_addr_to_string where
373 appropriate, update call to riscv_print_arg_location, and reindent
375 (riscv_return_value): Update call to riscv_print_arg_location.
377 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
378 Tim Newsome <tim@sifive.com>
379 Albert Ou <a0u@eecs.berkeley.edu>
380 Darius Rad <darius@bluespec.com>
382 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
383 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
384 (ALLDEPFILES): Add riscv-tdep.c
385 * configure.tgt: Add riscv support.
386 * riscv-tdep.c: New file.
387 * riscv-tdep.h: New file.
388 * NEWS: Mention new target.
389 * MAINTAINERS: Add entry for riscv.
391 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
393 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
394 fields within aggregates.
396 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
398 * record-btrace.c (btrace_print_lines): Change type of flags to
399 gdb_disassembly_flags.
401 2018-03-04 John Baldwin <jhb@FreeBSD.org>
403 * fbsd-nat.c: Include "inf-ptrace.h".
404 (USE_SIGTRAP_SIGINFO): Conditionally define.
405 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
406 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
407 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
409 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
411 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
413 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
414 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
415 "supports_stopped_by_hw_breakpoint" target methods.
417 2018-03-04 John Baldwin <jhb@FreeBSD.org>
419 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
420 * fbsd-nat.c (debug_fbsd_nat): New variable.
421 (show_fbsd_nat_debug): New function.
422 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
423 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
425 2018-03-04 John Baldwin <jhb@FreeBSD.org>
427 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
428 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
430 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
431 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
434 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
436 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
437 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
439 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
441 * charset.c (struct charset_vector): New.
442 (charsets): Change type to charset_vector.
443 (find_charset_names): Adjust.
445 (_initialize_charset): Adjust.
447 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
449 * progspace.h (struct program_space) <deleted_solibs>: Change
450 type to std::vector<std::string>.
451 * progspace.c (clear_program_space_solib_cache): Adjust.
452 * breakpoint.c (print_solib_event): Adjust.
453 (check_status_catch_solib): Adjust.
454 * solib.c (update_solib_list): Adjust.
455 * ui-out.h (class ui_out) <field_string>: New overload.
456 * ui-out.c (ui_out::field_string): New overload.
458 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
460 * progspace.h (struct program_space): Add constructor and
461 destructor, initialize fields.
462 (add_program_space): Remove.
463 * progspace.c (add_program_space): Rename to...
464 (program_space::program_space): ... this.
465 (release_program_space): Rename to...
466 (program_space::~program_space): ... this.
467 (delete_program_space): Use delete to delete program_space.
468 (initialize_progspace): Use new to allocate program_space.
469 * inferior.c (add_inferior_with_spaces): Likewise.
470 (clone_inferior_command): Likewise.
471 * infrun.c (follow_fork_inferior): Likewise.
472 (handle_vfork_child_exec_or_exit): Likewise.
474 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
476 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
477 (delim_string_to_char_ptr_vec): Return std::vector of
478 gdb::unique_xmalloc_ptr.
479 (dirnames_to_char_ptr_vec_append): Take std::vector of
480 gdb::unique_xmalloc_ptr.
481 (dirnames_to_char_ptr_vec): Return std::vector of
482 gdb::unique_xmalloc_ptr.
483 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
484 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
485 (delim_string_to_char_ptr_vec): Return an std::vector of
486 gdb::unique_xmalloc_ptr, adjust the code.
487 (dirnames_to_char_ptr_vec_append): Take an std::vector of
488 gdb::unique_xmalloc_ptr, adjust the code.
489 (dirnames_to_char_ptr_vec): Return an std::vector of
490 gdb::unique_xmalloc_ptr, adjust the code.
491 * auto-load.c (auto_load_safe_path_vec): Change type to
492 std::vector of gdb::unique_xmalloc_ptr.
493 (auto_load_expand_dir_vars): Return an std::vector of
494 gdb::unique_xmalloc_ptr, adjust the code.
495 (auto_load_safe_path_vec_update): Adjust.
496 (filename_is_in_auto_load_safe_path_vec): Adjust.
497 (auto_load_objfile_script_1): Adjust.
498 * build-id.c (build_id_to_debug_bfd): Adjust.
499 * linux-thread-db.c (thread_db_load_search): Adjust.
500 * source.c (add_path): Adjust.
502 * symfile.c (find_separate_debug_file): Adjust.
503 * utils.c (do_free_char_ptr_vec): Remove.
504 (make_cleanup_free_char_ptr_vec): Remove.
506 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
509 * common/pathstuff.c: Conditionally include "<windows.h>".
511 2018-03-01 Georg Sauthoff <mail@georg.so>
514 * gcore.in: Quote variables and switch interpreter to bash.
516 2018-03-01 Tom Tromey <tom@tromey.com>
518 * dwarf2read.c (alloc_discriminant_info): Fix default_index
519 assertion. Add assertion for discriminant_index.
520 (quirk_rust_enum): Use correct base type name in univariant case.
522 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
524 * record.c (get_call_history_modifiers): Return a
526 (cmd_record_call_history): Adjust.
527 * record-btrace.c (record_btrace_call_history): Adjust.
528 (record_btrace_call_history_range): Adjust.
529 (record_btrace_call_history_from): Adjust.
530 * target-debug.h (target_debug_print_record_print_flags): New.
531 * target-delegates.c: Re-generate.
532 * target.c (target_call_history): Change flags type.
533 (target_call_history_from): Likewise.
534 (target_call_history_range): Likewise.
535 * target.h (struct target_ops) <target_call_history>: Likewise.
536 (target_call_history_from): Likewise.
537 (target_call_history_range): Likewise.
539 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
540 Simon Marchi <simon.marchi@polymtl.ca>
542 * common/common-utils.c: Include "sys/stat.h".
543 (is_regular_file): Move here from "source.c"; change return
545 * common/common-utils.h (is_regular_file): New prototype.
546 * common/pathstuff.c (contains_dir_separator): New function.
547 * common/pathstuff.h (contains_dir_separator): New prototype.
548 * source.c: Don't include "sys/stat.h".
549 (is_regular_file): Move to "common/common-utils.c".
551 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
553 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
554 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
555 * auto-load.c: Include "common/pathstuff.h".
556 * common/common-def.h (current_directory): Move here.
557 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
559 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
561 * common/pathstuff.c: New file.
562 * common/pathstuff.h: New file.
563 * compile/compile.c: Include "common/pathstuff.h".
564 * defs.h (current_directory): Move to "common/common-defs.h".
565 * dwarf2read.c: Include "common/pathstuff.h".
567 * guile/scm-safe-call.c: Likewise.
568 * linux-thread-db.c: Likewise.
570 * nto-tdep.c: Likewise.
571 * objfiles.c: Likewise.
572 * source.c: Likewise.
573 * symtab.c: Likewise.
574 * utils.c: Include "common/pathstuff.h".
575 (gdb_realpath): Move to "common/pathstuff.c".
576 (gdb_realpath_keepfile): Likewise.
577 (gdb_abspath): Likewise.
578 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
579 (gdb_realpath_keepfile): Likewise.
580 (gdb_abspath): Likewise.
582 2018-02-28 John Baldwin <jhb@FreeBSD.org>
584 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
585 wildcard process pid for super_resume for kernels with a
588 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
590 * compile/compile.c (get_args): Add additional comments
593 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
594 Tom Tromey <tom@tromey.com>
596 * target.h (memory_write_request_s): Remove typedef. Don't define
598 (target_write_memory_blocks): Change argument to std::vector.
599 (struct memory_write_request): Add constructor.
600 * target-memory.c (compare_block_starting_address): Return bool.
601 Change argument types.
602 (claim_memory): Change arguments to use std::vector.
603 (split_regular_and_flash_blocks, blocks_to_erase)
604 (compute_garbled_blocks): Likewise.
605 (cleanup_request_data, cleanup_write_requests_vector): Remove.
606 (target_write_memory_blocks): Change argument to std::vector.
607 * symfile.c (struct load_section_data): Add constructor and
608 destructor. Use std::vector for "requests".
609 (struct load_progress_data): Add initializers.
610 (load_section_callback): Update. Use "new".
611 (clear_memory_write_data): Remove.
612 (generic_load): Update.
614 2018-02-27 Alan Hayward <alan.hayward@arm.com>
616 * arch/aarch64.h: Use common/tdesc.h.
618 2018-02-26 Maciej W. Rozycki <macro@mips.com>
620 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
621 architecture with a 64-bit ABI.
623 2018-02-26 Maciej W. Rozycki <macro@mips.com>
625 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
626 ahead of target description loading.
628 2018-02-26 Tom Tromey <tom@tromey.com>
630 * stack.c (backtrace_command_1): Update.
631 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
633 * python/py-framefilter.c (py_print_frame)
634 (gdbpy_apply_frame_filter): Change type of "flags".
635 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
637 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
638 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
639 * extension.h (enum frame_filter_flag): Rename from
641 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
642 (apply_ext_lang_frame_filter): Change type of "flags".
643 * extension.c (apply_ext_lang_frame_filter): Change type of
645 * extension-priv.h (struct extension_language_ops)
646 <apply_frame_filter>: Change type of "flags".
648 2018-02-26 Tom Tromey <tom@tromey.com>
651 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
652 off-by-one in py_end computation.
653 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
655 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
658 2018-02-26 Tom Tromey <tom@tromey.com>
660 * dwarf2read.c (struct variant_field): New.
661 (struct nextfield) <variant>: New field.
662 (dwarf2_add_field): Handle DW_TAG_variant_part.
663 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
665 (read_structure_type): Handle DW_TAG_variant_part.
666 (handle_struct_member_die): New function, extracted from
667 process_structure_scope. Handle DW_TAG_variant.
668 (process_structure_scope): Handle discriminated unions. Call
669 handle_struct_member_die.
671 2018-02-26 Tom Tromey <tom@tromey.com>
673 * rust-lang.h (rust_last_path_segment): Declare.
674 * rust-lang.c (rust_last_path_segment): Now public. Change
676 (struct disr_info): Remove.
677 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
678 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
679 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
680 (rust_enum_p, rust_enum_variant): New function.
681 (rust_underscore_fields): Remove "offset" parameter.
682 (rust_print_enum): New function.
683 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
684 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
685 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
687 (rust_internal_print_type): New function, from rust_print_type.
689 (rust_print_type): Call rust_internal_print_type.
690 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
691 Update enum handling.
692 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
693 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
694 (rust_union_quirks): New functions.
695 (process_full_comp_unit, process_full_type_unit): Call
697 (process_structure_scope): Update rust_unions if necessary.
699 2018-02-26 Tom Tromey <tom@tromey.com>
701 * value.h (value_union_variant): Declare.
702 * valops.c (value_union_variant): New function.
703 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
704 (struct discriminant_info): New.
705 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
707 (struct main_type) <flag_discriminated_union>: New field.
709 2018-02-26 Tom Tromey <tom@tromey.com>
711 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
712 unittests/unpack-selftests.c.
713 * unittests/unpack-selftests.c: New file.
714 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
716 2018-02-26 Yao Qi <yao.qi@linaro.org>
718 * dwarf2read.c (struct partial_die_info) <read>: New method.
719 (read_partial_die): Remove the declaration.
720 (load_partial_dies): Update.
721 (partial_die_info::partial_die_info):
722 (read_partial_die): Change it to partial_die_info::read.
724 2018-02-26 Yao Qi <yao.qi@linaro.org>
726 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
727 (fixup_partial_die): Remove declaration.
728 (scan_partial_symbols): Update.
729 (partial_die_parent_scope): Likewise.
730 (partial_die_full_name): Likewise.
731 (fixup_partial_die): Change it to partial_die_info::fixup.
733 2018-02-26 Yao Qi <yao.qi@linaro.org>
735 * dwarf2read.c (read_partial_die): Update the declaration.
736 (load_partial_dies): Caller update.
737 (read_partial_die): Remove one argument abbrev_len.
739 2018-02-26 Yao Qi <yao.qi@linaro.org>
741 * dwarf2read.c (struct partial_die_info): Add ctor, delete
743 (load_partial_dies): Use ctor and copy ctor.
744 (read_partial_die): Update.
745 (dwarf2_cu::find_partial_die): Use ctor.
747 2018-02-26 Yao Qi <yao.qi@linaro.org>
749 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
750 (find_partial_die_in_comp_unit): Change it to
751 dwarf2_cu::find_partial_die.
752 (find_partial_die): Update.
754 2018-02-26 Yao Qi <yao.qi@linaro.org>
756 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
759 2018-02-26 Yao Qi <yao.qi@linaro.org>
761 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
763 2018-02-26 Alan Hayward <alan.hayward@arm.com>
765 * arch/amd64.h: Use common/tdesc.h.
766 * arch/i386.c: Likewise.
767 * arch/i386.h: Likewise.
768 * arch/tic6x.c: Likewise.
769 * arch/tdesc.h: Move file from here...
770 * common/tdesc.h: ...to here.
771 * features/aarch64-core.c: Regenerate.
772 * features/aarch64-fpu.c: Regenerate.
773 * features/i386/32bit-avx.c: Regenerate.
774 * features/i386/32bit-avx512.c: Regenerate.
775 * features/i386/32bit-core.c: Regenerate.
776 * features/i386/32bit-linux.c: Regenerate.
777 * features/i386/32bit-mpx.c: Regenerate.
778 * features/i386/32bit-pkeys.c: Regenerate.
779 * features/i386/32bit-sse.c: Regenerate.
780 * features/i386/64bit-avx.c: Regenerate.
781 * features/i386/64bit-avx512.c: Regenerate.
782 * features/i386/64bit-core.c: Regenerate.
783 * features/i386/64bit-linux.c: Regenerate.
784 * features/i386/64bit-mpx.c: Regenerate.
785 * features/i386/64bit-pkeys.c: Regenerate.
786 * features/i386/64bit-segments.c: Regenerate.
787 * features/i386/64bit-sse.c: Regenerate.
788 * features/i386/x32-core.c: Regenerate.
789 * features/tic6x-c6xp.c: Regenerate.
790 * features/tic6x-core.c: Regenerate.
791 * features/tic6x-gp.c: Regenerate.
792 * target-descriptions.c: Use common/tdesc.h.
793 * target-descriptions.h: Likewise.
795 2018-02-24 Tom Tromey <tom@tromey.com>
797 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
798 (try_thread_db_load_from_dir, thread_db_load_search): Use
800 (info_auto_load_libthread_db_compare): Return bool. Change
802 (info_auto_load_libthread_db): Use std::vector, std::string.
805 2018-02-24 Tom Tromey <tom@tromey.com>
807 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
809 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
811 * gdbarch.c: Rebuild.
812 * gdbarch.h: Rebuild.
813 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
814 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
815 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
818 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
820 * gdbtypes.h (sect_offset): Change type to uint64_t.
821 (sect_offset_str): New function.
822 * dwarf2read.c (create_addrmap_from_aranges): Use
824 (error_check_comp_unit_head): Likewise.
825 (create_debug_type_hash_table): Likewise.
826 (read_cutu_die_from_dwo): Likewise.
827 (init_cutu_and_read_dies): Likewise.
828 (init_cutu_and_read_dies_no_follow): Likewise.
829 (process_psymtab_comp_unit_reader): Likewise.
830 (partial_die_parent_scope): Likewise.
831 (peek_die_abbrev): Likewise.
832 (process_queue): Likewise.
833 (dwarf2_physname): Likewise.
834 (read_namespace_alias): Likewise.
835 (read_import_statement): Likewise.
836 (create_dwo_cu_reader): Likewise.
837 (create_cus_hash_table): Likewise.
838 (lookup_dwo_cutu): Likewise.
839 (inherit_abstract_dies): Likewise.
840 (read_func_scope): Likewise.
841 (read_call_site_scope): Likewise.
842 (dwarf2_add_member_fn): Likewise.
843 (read_common_block): Likewise.
844 (read_module_type): Likewise.
845 (read_typedef): Likewise.
846 (read_subrange_type): Likewise.
847 (load_partial_dies): Likewise.
848 (read_partial_die): Likewise.
849 (find_partial_die): Likewise.
850 (read_str_index): Likewise.
851 (dwarf2_string_attr): Likewise.
852 (build_error_marker_type): Likewise.
853 (lookup_die_type): Likewise.
854 (dump_die_shallow): Likewise.
855 (follow_die_ref): Likewise.
856 (dwarf2_fetch_die_loc_sect_off): Likewise.
857 (dwarf2_fetch_constant_bytes): Likewise.
858 (follow_die_sig): Likewise.
859 (get_signatured_type): Likewise.
860 (get_DW_AT_signature_type): Likewise.
861 (dwarf2_find_containing_comp_unit): Likewise.
862 (set_die_type): Likewise.
864 2018-02-21 John Baldwin <jhb@FreeBSD.org>
866 * arch/aarch64.c: Include "common-defs.h".
867 * arch/amd64.c: Likewise.
868 * arch/i386.c: Likewise.
870 2018-02-21 Tom Tromey <tom@tromey.com>
872 * value.h: (extract_field_op): Update.
873 * eval.c (extract_field_op): Return a const char *.
874 * expression.h (parse_expression_for_completion): Update.
875 * completer.c (complete_expression): Update.
876 (add_struct_fields): Make fieldname const.
877 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
878 (mark_completion_tag, parse_exp_in_context_1): Update.
879 (parse_expression_for_completion): Change "name" to
882 2018-02-21 Tom Tromey <tom@tromey.com>
884 * infcall.c (call_function_by_hand_dummy): Use std::vector.
886 2018-02-21 Yao Qi <yao.qi@linaro.org>
888 * avr-tdep.c (avr_read_pc): Change parameter type to
890 * gdbarch.sh (read_pc): Likewise.
891 * gdbarch.c: Re-generated.
892 * gdbarch.h: Re-generated.
893 * hppa-tdep.c (hppa_read_pc): Change parameter type to
895 * ia64-tdep.c (ia64_read_pc): Likewise.
896 * mips-tdep.c (mips_read_pc): Likewise.
897 * spu-tdep.c (spu_read_pc): Likewise.
899 2018-02-21 Yao Qi <yao.qi@linaro.org>
901 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
902 * regcache-dump.c: New file.
903 * regcache.c: Move register_dump to regcache-dump.c.
904 (maintenance_print_registers): Likewise.
905 (maintenance_print_raw_registers): Likewise.
906 (maintenance_print_cooked_registers): Likewise.
907 (maintenance_print_register_groups): Likewise.
908 (maintenance_print_remote_registers): Likewise.
909 (_initialize_regcache): Likewise.
910 * regcache.h (register_dump): Moved from regcache.c.
912 2018-02-21 Yao Qi <yao.qi@linaro.org>
914 * regcache.c (regcache::regcache): Update.
915 (regcache::invalidate): Move it to detached_regcache::invalidate.
916 (get_thread_arch_aspace_regcache): Update.
917 (regcache::raw_update): Update.
918 (regcache::cooked_read): Remove some code.
919 (regcache::cooked_read_value): Likewise.
920 (regcache::raw_write): Remove assert on m_readonly_p.
921 (regcache::raw_supply_integer): Move it to
922 detached_regcache::raw_supply_integer.
923 (regcache::raw_supply_zeroed): Likewise.
924 * regcache.h (detached_regcache) <raw_supply_integer>: New
926 <raw_supply_zeroed, invalidate>: Likewise.
927 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
928 <invalidate>: Likewise.
929 <m_readonly_p>: Removed.
931 2018-02-21 Yao Qi <yao.qi@linaro.org>
933 * infcmd.c (get_return_value): Let stop_regs point to
934 get_current_regcache.
935 * regcache.c (regcache::regcache): Remove.
936 (register_dump_reg_buffer): New class.
937 (regcache_print): Adjust.
938 * regcache.h (regcache): Remove constructors.
940 2018-02-21 Yao Qi <yao.qi@linaro.org>
942 * regcache.c (class register_dump): New class.
943 (register_dump_regcache, register_dump_none): New class.
944 (register_dump_remote, register_dump_groups): New class.
945 (regcache_print): Update.
946 * regcache.h (regcache_dump_what): Move it to regcache.c.
947 (regcache) <dump>: Remove.
949 2018-02-21 Yao Qi <yao.qi@linaro.org>
951 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
953 (jit_unwind_reg_set_impl): Call raw_supply.
954 (jit_frame_sniffer): Use reg_buffer_rw.
955 * record-full.c (record_full_core_regbuf): Change its type.
956 (record_full_core_open_1): Use reg_buffer_rw.
957 (record_full_close): Likewise.
958 (record_full_core_fetch_registers): Use regcache->raw_supply.
959 (record_full_core_store_registers): Likewise.
960 * regcache.c (regcache::get_register_status): Move it to
962 (regcache_raw_set_cached_value): Remove.
963 (regcache::raw_set_cached_value): Remove.
964 (regcache::raw_write): Call raw_supply.
965 (regcache::raw_supply): Move it to reg_buffer_rw.
966 * regcache.h (regcache_raw_set_cached_value): Remove.
967 (reg_buffer_rw): New class.
969 2018-02-21 Yao Qi <yao.qi@linaro.org>
971 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
972 readonly_detached_regcache.
973 (dummy_frame_prev_register): Use regcache->cooked_read.
974 * frame.c (frame_save_as_regcache): Change return type.
976 * frame.h (frame_save_as_regcache): Update declaration.
977 * inferior.h (get_infcall_suspend_state_regcache): Update
979 * infrun.c (infcall_suspend_state) <registers>: use
980 readonly_detached_regcache.
981 (save_infcall_suspend_state): Don't use regcache_dup.
982 (get_infcall_suspend_state_regcache): Change return type.
983 * linux-fork.c (struct fork_info) <savedregs>: Change to
984 readonly_detached_regcache.
986 (fork_save_infrun_state): Don't use regcache_dup.
987 (info_checkpoints_command): Adjust.
988 * mi/mi-main.c (register_changed_p): Update declaration.
989 (mi_cmd_data_list_changed_registers): Use
990 readonly_detached_regcache.
991 (register_changed_p): Change parameter type to
992 readonly_detached_regcache.
993 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
994 readonly_detached_regcache.
995 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
996 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
998 (regcache::save): Move it to reg_buffer.
999 (regcache::restore): Change parameter type.
1000 (regcache_dup): Remove.
1001 * regcache.h (reg_buffer) <save>: New method.
1002 (readonly_detached_regcache): New class.
1003 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1004 readonly_detached_regcache.
1005 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1007 2018-02-21 Yao Qi <yao.qi@linaro.org>
1009 * frame.c (frame_save_as_regcache): Use regcache method save.
1010 (frame_pop): Use regcache method restore.
1011 * infrun.c (restore_infcall_suspend_state): Likewise.
1012 * linux-fork.c (fork_load_infrun_state): Likewise.
1013 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1015 * regcache.c (regcache_save): Remove.
1016 (regcache::restore): More asserts.
1017 (regcache_cpy): Remove.
1018 * regcache.h (regcache_save): Remove the declaration.
1019 (regcache::restore): Move from private to public.
1020 Remove the friend declaration of regcache_cpy.
1021 (regcache_cpy): Remove declaration.
1023 2018-02-21 Yao Qi <yao.qi@linaro.org>
1025 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1026 parameter type to 'readable_regcache *'.
1027 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1028 * arm-tdep.c (arm_neon_quad_read): Likewise.
1029 (arm_pseudo_read): Likewise.
1030 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1031 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1032 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1033 * gdbarch.c: Re-generated.
1034 * gdbarch.h: Re-generated.
1035 * gdbarch.sh (pseudo_register_read): Change parameter type to
1036 'readable_regcache *'.
1037 (pseudo_register_read_value): Likewise.
1038 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1039 (h8300_pseudo_register_read): Likewise.
1040 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1041 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1042 (i386_pseudo_register_read_into_value): Likewise.
1043 (i386_pseudo_register_read_value): Likewise.
1044 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1046 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1047 * m32c-tdep.c (m32c_raw_read): Likewise.
1048 (m32c_read_flg): Likewise.
1049 (m32c_banked_register): Likewise.
1050 (m32c_banked_read): Likewise.
1051 (m32c_sb_read): Likewise.
1052 (m32c_part_read): Likewise.
1053 (m32c_cat_read): Likewise.
1054 (m32c_r3r2r1r0_read): Likewise.
1055 (m32c_pseudo_register_read): Likewise.
1056 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1057 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1058 (mep_pseudo_cr64_read): Likewise.
1059 (mep_pseudo_register_read): Likewise.
1060 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1061 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1062 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1063 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1064 (regcache::cooked_read): Likewise.
1065 (regcache::cooked_read_value): Likewise.
1066 (regcache_cooked_read_signed):
1067 (regcache::cooked_read): Likewise.
1068 * regcache.h (readable_regcache): New class.
1069 (regcache): Inherit readable_regcache. Move some methods to
1071 * rl78-tdep.c (rl78_pseudo_register_read): Change
1072 parameter type to 'readable_regcache *'.
1073 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1074 (e500_pseudo_register_read): Change parameter type to
1075 'readable_regcache *'.
1076 (dfp_pseudo_register_read): Likewise.
1077 (vsx_pseudo_register_read): Likewise.
1078 (efpr_pseudo_register_read): Likewise.
1079 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1080 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1081 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1082 (sh64_pseudo_register_read): Likewise.
1083 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1084 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1085 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1086 (spu_pseudo_register_read): Likewise.
1087 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1088 (xtensa_pseudo_register_read): Likewise.
1090 2018-02-21 Yao Qi <yao.qi@linaro.org>
1092 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1093 (regcache::arch): Move it to reg_buffer::arch.
1094 (regcache::register_buffer): Likewise.
1095 (regcache::assert_regnum): Likewise.
1096 (regcache::num_raw_registers): Likewise.
1097 * regcache.h (reg_buffer): New class.
1098 (regcache): Inherit reg_buffer.
1100 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1102 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1103 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1105 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1107 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1109 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1111 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1112 (SFILES): Remove common/*.c files.
1113 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1114 * common/common.host: Add common reference.
1115 * configure.ac: Likewise.
1116 * configure: Regenerate.
1118 2018-02-16 Yao Qi <yao.qi@linaro.org>
1120 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1121 (block_initialize_namespace): Use new.
1122 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1123 (dwarf2_free_objfile): Use delete.
1124 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1125 (copy_type_recursive): Use new.
1126 * gdb_obstack.h (allocate_on_obstack): New.
1128 2018-02-15 Yao Qi <yao.qi@linaro.org>
1131 * inferior.c (exit_inferior_1): Reset inf->control.
1133 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1135 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1138 2018-02-14 Pedro Alves <palves@redhat.com>
1140 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1141 frame_cleanup_after_sniffer on exception.
1143 2018-02-14 Tom Tromey <tom@tromey.com>
1145 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1147 (solib_bfd_open): Make pathname const.
1148 * solib.c (solib_bfd_open): Make pathname const.
1149 * solib-spu.c (spu_bfd_fopen): Make name const.
1150 (spu_bfd_open): Make pathname const.
1151 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1152 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1154 2018-02-14 Tom Tromey <tom@tromey.com>
1156 * symfile.c (symfile_bfd_open): Update.
1157 * source.h (openp, source_full_path_of, find_and_open_source):
1158 Change argument type to unique_xmalloc_ptr.
1159 * source.c (openp): Take a unique_xmalloc_ptr.
1160 (source_full_path_of, find_and_open_source): Likewise.
1161 (open_source_file, symtab_to_fullname): Update.
1162 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1164 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1165 (exec_file_find): Update.
1166 * psymtab.c (psymtab_to_fullname): Update.
1167 * nto-tdep.h (nto_find_and_open_solib): Update.
1168 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1170 * exec.c (exec_file_attach): Update.
1171 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1172 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1174 2018-02-14 Tom Tromey <tom@tromey.com>
1176 * solib.c: Include source.h.
1177 * nto-tdep.c: Include source.h.
1178 * mi/mi-cmd-env.c: Include source.h.
1179 * infcmd.c: Include source.h.
1180 * exec.c: Include source.h.
1181 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1182 (add_path, directory_switch, source_path, init_source_path): Move
1184 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1185 (add_path, directory_switch, source_path, init_source_path):
1188 2018-02-14 Tom Tromey <tom@tromey.com>
1190 * solist.h (exec_file_find, solib_find): Return
1192 (solib_bfd_fopen): Take a const char *.
1193 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1194 (exec_file_find, solib_find): Likewise.
1195 (solib_bfd_fopen): Do not take ownership of "pathname".
1196 (solib_bfd_open): Use unique_xmalloc_ptr.
1197 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1198 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1199 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1200 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1202 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1204 * ada-lang.c (name_match_type_from_name): Remove reference to
1205 ada_name_for_lookup in function's documentation.
1206 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1208 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1210 * defs.h (enum openp_flags): New enum.
1211 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1212 Move to enum openp_flags.
1213 (openp_flags): New enum flags.
1214 (openp): Change parameter type to openp_flags.
1215 * source.c (openp): Change parameter type to openp_flags.
1216 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1217 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1219 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1221 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1224 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1226 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1228 (class dwarf2_queue_guard): ...the destructor of this new class.
1229 (dw2_do_instantiate_symtab): Create instance of the new class
1230 dwarf2_queue_guard, remove cleanup.
1232 2018-02-09 Tom Tromey <tom@tromey.com>
1234 * source.c (find_source_lines): Don't reference past the end of
1237 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1239 * remote.c (remote_btrace_maybe_reopen): Change error message.
1240 * btrace.c (btrace_enable): Likewise.
1241 (parse_xml_btrace): Likewise.
1242 (parse_xml_btrace_conf): Likewise.
1244 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1246 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1247 (linux_enable_pt, linux_enable_bts): Call
1248 diagnose_perf_event_open_fail.
1250 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1252 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1253 Remove parameter and change return type. Update callers. Move it.
1254 (linux_enable_bts, linux_enable_pt): Improve error message.
1255 (linux_enable_pt): Remove zero buffer size check.
1256 (linux_enable_btrace): Improve error messages. Remove NULL return
1259 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1261 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1262 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1263 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1264 (linux_supports_pt, linux_supports_btrace): Remove.
1265 (linux_enable_bts): Call cpu_supports_bts.
1266 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1267 * remote.c (remote_supports_btrace): Remove.
1268 (init_remote_ops): Remove remote_supports_btrace.
1269 * target-delegates.c: Regenerated.
1270 * target.c (target_supports_btrace): Remove.
1271 * target.h (target_ops) <to_supports_btrace>: Remove
1272 (target_supports_btrace): Remove.
1273 * x86-linux-nat.c (x86_linux_create_target): Remove
1274 linux_supports_btrace.
1276 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1278 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1280 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1281 exception and use message in own exception.
1283 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1285 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1286 (perf_event_pt_event_type): Use gdb_file_up.
1287 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1288 scoped_fd, and scoped_mmap.
1290 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1292 * common/scoped_mmap.h: New.
1293 * unittests/scoped_mmap-selftest.c: New.
1294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1295 unittests/scoped_mmap-selftest.c.
1297 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1299 * common/scoped_fd.h: New.
1300 * unittests/scoped_fd-selftest.c: New.
1301 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1302 unittests/scoped_fd-selftest.c.
1304 2018-02-09 Tom Tromey <tom@tromey.com>
1306 * auto-load.c (auto_load_section_scripts): Use
1307 gdb::unique_xmalloc_ptr.
1309 2018-02-09 Tom Tromey <tom@tromey.com>
1311 * auto-load.c (execute_script_contents): Use std::string.
1313 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1315 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1316 Python function, rather than a new command.
1318 2018-02-08 Tom Tromey <tom@tromey.com>
1320 * solib.c (solib_find_1): Use std::string.
1321 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1323 2018-02-08 Tom Tromey <tom@tromey.com>
1325 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1327 2018-02-08 Tom Tromey <tom@tromey.com>
1329 * source.c (find_source_lines): Use gdb::def_vector.
1331 2018-02-08 Tom Tromey <tom@tromey.com>
1333 * macrocmd.c (struct temporary_macro_definition): New.
1334 (macro_define_command): Use temporary_macro_definition. Remove
1336 (free_macro_definition_ptr): Remove.
1338 2018-02-08 Tom Tromey <tom@tromey.com>
1340 * macroexp.c (maybe_expand): Use std::string.
1342 2018-02-08 Tom Tromey <tom@tromey.com>
1344 * macroexp.c (struct macro_buffer): Add initializers for some
1346 (init_buffer, init_shared_buffer, free_buffer)
1347 (free_buffer_return_text): Remove.
1348 (macro_buffer): New constructors.
1349 (~macro_buffer): New destructor.
1350 (macro_buffer::set_shared): New method.
1351 (macro_buffer::resize_buffer, macro_buffer::appendc)
1352 (macro_buffer::appendmem): Now methods, not free functions.
1353 (set_token, append_tokens_without_splicing, stringify)
1354 (macro_stringify): Update.
1355 (gather_arguments): Change return type. Remove argc_p argument,
1356 add args_ptr argument. Use std::vector.
1357 (substitute_args): Remove argc argument. Accept std::vector.
1358 (expand): Update. Use std::vector.
1359 (scan, macro_expand, macro_expand_next): Update.
1361 2018-02-08 Tom Tromey <tom@tromey.com>
1363 * symtab.c (default_collect_symbol_completion_matches_break_on):
1364 Use unique_xmalloc_ptr.
1365 * macroscope.h: (sal_macro_scope, user_macro_scope)
1366 (default_macro_scope): Return unique_xmalloc_ptr.
1367 * macroscope.c (sal_macro_scope, user_macro_scope)
1368 (default_macro_scope): Return unique_xmalloc_ptr.
1369 * macroexp.h (macro_expand, macro_expand_once): Return
1371 * macroexp.c (macro_expand, macro_expand_once): Return
1373 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1374 (info_macro_command, info_macros_command): Use
1376 * compile/compile-c-support.c (write_macro_definitions): Use
1378 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1380 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1382 * value.c (value_static_field): Assign field type instead of
1383 containing type when returning an optimized out value.
1385 2018-02-06 Yao Qi <yao.qi@linaro.org>
1387 * ft32-tdep.c (ft32_read_pc): Remove.
1388 (ft32_write_pc): Remove.
1389 (ft32_gdbarch_init): Update.
1390 * m32r-tdep.c (m32r_read_pc): Remove.
1391 (m32r_gdbarch_init): Update.
1392 * mep-tdep.c (mep_read_pc): Remove.
1393 (mep_gdbarch_init): Update.
1394 * microblaze-tdep.c (microblaze_write_pc): Remove.
1395 (microblaze_gdbarch_init): Update.
1396 * mn10300-tdep.c (mn10300_read_pc): Remove.
1397 (mn10300_write_pc): Remove.
1398 (mn10300_gdbarch_init): Update.
1399 * moxie-tdep.c (moxie_read_pc): Remove.
1400 (moxie_write_pc): Remove.
1401 (moxie_gdbarch_init): Update.
1403 2018-02-06 Yao Qi <yao.qi@linaro.org>
1405 * expprint.c (print_subexp_standard): Handle
1406 OP_F77_UNDETERMINED_ARGLIST.
1407 (dump_subexp_body_standard): Likewise.
1409 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1411 * target-descriptions.c (tdesc_element_visitor) Add empty
1413 (tdesc_type): Move make_gdb_type from here.
1414 (tdesc_type_builtin): Likewise.
1415 (tdesc_type_vector): Likewise.
1416 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1417 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1418 (make_gdb_type_union): Likewise.
1419 (make_gdb_type_flags): Likewise.
1420 (make_gdb_type_enum): Likewise.
1421 (make_gdb_type): New function.
1422 (tdesc_register_type): Use static make_gdb_type.
1424 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1426 * infcmd.c (default_print_one_register_info): Align natural-format
1427 column values consistently one under another.
1428 (pad_to_column): New function.
1430 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1432 * dwarf2read.c (dwarf2_physname): Move commment.
1434 2018-02-01 Leszek Swirski <leszeks@google.com>
1436 * varobj.c (varobj_formatted_print_options): Allow recursive
1437 pretty printing if pretty printing is enabled.
1439 2018-02-01 Leszek Swirski <leszeks@google.com>
1441 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1442 names after a structop as a filename.
1444 2018-02-01 Yao Qi <yao.qi@linaro.org>
1446 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1447 (arm_record_coproc_data_proc): Likewise.
1449 2018-02-01 Yao Qi <yao.qi@linaro.org>
1451 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1453 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1455 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1456 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1458 2018-01-31 Pedro Alves <palves@redhat.com>
1460 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1461 * inflow.c (child_terminal_save_inferior): Wrap reference to
1462 tcgetpgrp in HAVE_TERMIOS_H.
1463 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1465 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1466 always iterate over all inferiors.
1467 (gdbsim_cntrl_c): Adjust.
1468 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1470 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1472 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1473 index type is objfile-owned if the element type is as well.
1475 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1479 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1481 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1482 "features/s390x-linux64.c".
1483 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1484 s390_linux32 and s390x_linux64.
1485 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1487 * s390-tdep.c: Include "features/s390-linux32.c" and
1488 "features/s390x-linux64.c".
1489 (s390_tdesc_valid): Add check for tdesc_has_registers.
1490 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1491 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1492 tdesc_s390x_linux64.
1493 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1494 tdesc_s390x_linux64 to...
1495 * s390-tdep.h: ...here.
1497 2018-01-30 Pedro Alves <palves@redhat.com>
1500 * config.in, configure: Regenerate.
1501 * configure.ac: Check for getpgid.
1502 * go32-nat.c (go32_pass_ctrlc): New.
1503 (go32_target): Install it.
1504 * inf-child.c (inf_child_target): Install
1505 child_terminal_save_inferior, child_pass_ctrlc and
1507 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1508 (inf_ptrace_target): No longer install it.
1509 * infcmd.c (interrupt_target_1): Adjust.
1510 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1511 (child_interrupt): Declare.
1512 (inferior::terminal_state): New.
1513 * inflow.c (struct terminal_info): Update comments.
1514 (inferior_process_group): Delete.
1515 (terminal_is_ours): Delete.
1516 (gdb_tty_state): New.
1517 (child_terminal_init): Adjust.
1518 (is_gdb_terminal, sharing_input_terminal_1)
1519 (sharing_input_terminal): New functions.
1520 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1521 Set the process's actual process group in the foreground if
1522 possible. Handle is_ours_for_output/is_ours distinction. Don't
1523 mark terminal as the inferior's if not sharing GDB's terminal.
1524 Don't check attach_flag.
1525 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1526 pass down a target_terminal_state.
1527 (child_terminal_save_inferior): New, factored out from ...
1528 (child_terminal_ours_1): ... this. Handle
1529 target_terminal_state::is_ours_for_output.
1530 (child_interrupt, child_pass_ctrlc): New.
1531 (inflow_inferior_exit): Clear the inferior's terminal_state.
1532 (copy_terminal_info): Copy the inferior's terminal state.
1533 (_initialize_inflow): Remove reference to terminal_is_ours.
1534 * inflow.h (inferior_process_group): Delete.
1535 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1536 * procfs.c (procfs_target): Don't install procfs_interrupt.
1537 (procfs_interrupt): Delete.
1538 * remote.c (remote_serial_quit_handler): Adjust.
1539 (remote_interrupt): Remove ptid parameter. Adjust.
1540 * target-delegates.c: Regenerate.
1541 * target.c: Include "terminal.h".
1542 (target_terminal::terminal_state): Rename to ...
1543 (target_terminal::m_terminal_state): ... this.
1544 (target_terminal::init): Adjust.
1545 (target_terminal::inferior): Adjust to per-inferior
1547 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1548 (target_terminal::ours, target_terminal::ours_for_output): Use
1549 target_terminal_is_ours_kind.
1550 (target_interrupt): Remove ptid parameter. Adjust.
1551 (default_target_pass_ctrlc): Adjust.
1552 * target.h (target_ops::to_terminal_save_inferior): New field.
1553 (target_ops::to_interrupt): Remove ptid_t parameter.
1554 (target_interrupt): Remove ptid_t parameter. Update comment.
1555 (target_pass_ctrlc): Update comment.
1556 * target/target.h (target_terminal_state): New scoped enum,
1558 (target_terminal::terminal_state): ... here.
1559 (target_terminal::inferior): Update comments.
1560 (target_terminal::restore_inferior): New.
1561 (target_terminal::is_inferior, target_terminal::is_ours)
1562 (target_terminal::is_ours_for_output): Adjust.
1563 (target_terminal::scoped_restore_terminal_state): Adjust to
1564 rename, and call restore_inferior() instead of inferior().
1565 (target_terminal::scoped_restore_terminal_state::m_state): Change
1567 (target_terminal::terminal_state): Rename to ...
1568 (target_terminal::m_terminal_state): ... this and change type.
1570 2018-01-30 Pedro Alves <palves@redhat.com>
1572 * linux-nat.c (wait_for_signal): New function.
1573 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1575 (async_terminal_is_ours)
1576 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1577 (linux_nat_add_target): Don't override
1578 to_terminal_inferior/to_terminal_ours.
1580 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1582 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1584 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1586 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1587 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1588 dwarf2_per_objfile_free here.
1589 (dwarf2_per_objfile_free): Remove.
1590 (_initialize_dwarf2_read): Don't register
1591 dwarf2_per_objfile_free as a registry cleanup.
1593 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1595 Avoid compilation errors in MinGW native builds
1597 The error is triggered by including python-internal.h, and the
1600 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1601 from build-gnulib/import/math.h:27,
1602 from d:/usr/Python26/include/pyport.h:235,
1603 from d:/usr/Python26/include/Python.h:58,
1604 from python/python-internal.h:94,
1605 from python/py-arch.c:24:
1606 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1610 This happens because Python headers define 'hypot' to expand t
1611 '_hypot' in the Windows builds.
1612 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1613 'hypoth'. This avoids a compilation error.
1615 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1617 * MAINTAINERS (Write After Approval): Fix ordering.
1619 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1621 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1623 2018-01-26 Alan Modra <amodra@gmail.com>
1625 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1626 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1627 Remove nop. Make const. Comment.
1628 (powerpc32_plt_stub_so_2): New.
1629 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1630 Correct count. Update uses.
1631 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1632 Move common code reading PLT entry word. Correct
1633 powerpc32_plt_stub PLT address calculation.
1634 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1635 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1636 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1637 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1638 (ppc64_standard_linkage8): Likewise.
1639 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1640 Correct insns description.
1641 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1643 2018-01-24 Pedro Alves <palves@redhat.com>
1645 GCC PR libstdc++/83906
1646 * gdbtypes.c (operator==(const dynamic_prop &,
1647 const dynamic_prop &)): New.
1648 (operator==(const range_bounds &, const range_bounds &)): New.
1649 (check_types_equal): Use them instead of memcmp.
1650 * gdbtypes.h (operator==(const dynamic_prop &,
1651 const dynamic_prop &)): Declare.
1652 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1653 (operator==(const range_bounds &, const range_bounds &)): Declare.
1654 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1656 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1658 * s390-linux-tdep.c (s390_record_address_mask)
1659 (s390_record_calc_disp_common, s390_record_calc_disp)
1660 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1661 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1662 (s390_process_record): Move to s390-tdep.c.
1663 (s390_linux_init_abi_any): Adjust.
1664 * s390-tdep.c (s390_record_address_mask)
1665 (s390_record_calc_disp_common, s390_record_calc_disp)
1666 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1667 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1668 (s390_process_record): Moved from s390-linux-tdep.c
1669 (s390_gdbarch_init): Adjust.
1671 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1673 * s390-linux-nat.c (s390-tdep.h): New include.
1674 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1675 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1676 (ALLDEPFILES): Add s390-tdep.c.
1677 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1678 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1679 * s390-tdep.h: ...this. New file.
1680 * s390-linux-tdep.c (s390-tdep.h): New include.
1681 (_initialize_s390_tdep): Rename to...
1682 (_initialize_s390_linux_tdep): ...this and adjust.
1683 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1684 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1686 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1687 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1688 (s390_is_partial_instruction, s390_software_single_step)
1689 (is_non_branch_ril, s390_displaced_step_copy_insn)
1690 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1691 (s390_prologue_data, s390_addr, s390_store, s390_load)
1692 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1693 (s390_register_call_saved, s390_guess_tracepoint_registers)
1694 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1695 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1696 (s390_pseudo_register_name, s390_pseudo_register_type)
1697 (s390_pseudo_register_read, s390_pseudo_register_write)
1698 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1699 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1700 (s390_addr_bits_remove, s390_address_class_type_flags)
1701 (s390_address_class_type_flags_to_name)
1702 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1703 (s390_function_arg_float, s390_function_arg_vector)
1704 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1705 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1706 (s390_frame_align, s390_register_return_value, s390_return_value)
1707 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1708 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1709 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1710 (s390_trad_frame_prev_register, s390_unwind_cache)
1711 (s390_prologue_frame_unwind_cache)
1712 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1713 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1714 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1715 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1716 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1717 (s390_frame_base_address, s390_local_base_address)
1718 (s390_frame_base, s390_gcc_target_options)
1719 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1720 (s390_validate_reg_range, s390_tdesc_valid)
1721 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1722 * s390-tdep.c: ...this. New file.
1724 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1726 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1727 (s390_process_record, s390_gdbarch_tdep_alloc)
1728 (s390_linux_init_abi_any): Use/set new hook.
1730 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1732 * s390-linux-tdep.c (osabi.h): New include.
1733 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1734 (s390_linux_init_abi_any): New functions.
1735 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1737 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1739 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1740 tdesc_has_registers check
1742 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1744 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1745 (s390_validate_reg_range): New macro.
1746 (s390_gdbarch_init): Adjust.
1748 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1750 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1751 (s390_gdbarch_tdep_alloc): Adjust.
1752 (s390_gdbarch_init): Adjust.
1754 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1756 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1757 <have_tdb>: Change type to bool.
1758 (s390_gdbarch_tdep_alloc): Adjust.
1759 (s390_gdbarch_init): Adjust.
1761 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1763 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1764 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1765 (s390_gdbarch_tdep_alloc): New function.
1766 (s390_gdbarch_init): Allocate tdep at start and use its fields
1767 instead of separate variables.
1769 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1771 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1772 when looking for cached gdbarch and add comment for remaining.
1774 2018-01-22 Pedro Alves <palves@redhat.com>
1775 Sergio Durigan Junior <sergiodj@redhat.com>
1777 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1780 2018-01-22 Maciej W. Rozycki <macro@mips.com>
1782 * MAINTAINERS: Update my company e-mail address.
1784 2018-01-22 Yao Qi <yao.qi@linaro.org>
1786 * regcache.c (cooked_write_test): New function.
1787 (_initialize_regcache): Register the test.
1789 2018-01-22 Yao Qi <yao.qi@linaro.org>
1791 * ia64-tdep.c (ia64_pseudo_register_read): Call
1792 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1793 * m32c-tdep.c (m32c_cat_read): Likewise.
1794 (m32c_r3r2r1r0_read): Likewise.
1795 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1796 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1798 2018-01-22 Yao Qi <yao.qi@linaro.org>
1800 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1801 method raw_read instead of regcache_raw_read.
1802 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1803 * arm-tdep.c (arm_neon_quad_read): Likewise.
1804 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1805 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1806 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1807 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1808 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1809 (i386_pseudo_register_read_into_value): Likewise.
1810 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1811 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1812 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1813 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1814 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1815 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1816 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1817 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1818 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1820 2018-01-22 Yao Qi <yao.qi@linaro.org>
1822 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1823 * configure.tgt: Remove target mt.
1824 * mt-tdep.c: Remove.
1825 * regcache.c (cooked_read_test): Remove the check for mt.
1827 2018-01-22 Yao Qi <yao.qi@linaro.org>
1829 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1830 instead of gdbarch_pseudo_register_read_value.
1832 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1834 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1837 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1839 * linespec.c (create_sals_line_offset): Remove code that preserved
1840 the symtab_and_line's line number.
1842 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1844 * varobj.c (varobj_create): Don't set valid_block when creating a
1847 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1849 * varobj.c (varobj_create): Remove out of date comment.
1851 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1854 * ada-exp.y (write_var_from_sym): Pass extra parameter when
1855 updating innermost block.
1856 * parse.c (innermost_block_tracker::update): Take extra type
1857 parameter, and check types match before updating innermost block.
1858 (write_dollar_variable): Update innermost block for registers.
1859 * parser-defs.h (enum innermost_block_tracker_type): New enum.
1860 (innermost_block_tracker::innermost_block_tracker): Initialise
1862 (innermost_block_tracker::reset): Take type parameter.
1863 (innermost_block_tracker::update): Take type parameter, and pass
1864 type through as needed.
1865 (innermost_block_tracker::m_types): New member.
1866 * varobj.c (varobj_create): Pass type when reseting innermost
1869 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1871 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1872 * ada-lang.c (resolve_subexp): Likewise.
1873 * breakpoint.c (set_breakpoint_condition) Likewise.
1874 (watch_command_1) Likewise.
1875 * c-exp.y (variable): Likewise.
1876 * d-exp.y (PrimaryExpression): Likewise.
1877 * f-exp.y (variable): Likewise.
1878 * go-exp.y (variable): Likewise.
1879 * m2-exp.y (variable): Likewise.
1880 * objfiles.c (objfile::~objfile): Likewise.
1881 * p-exp.y (variable): Likewise.
1882 * parse.c (innermost_block): Change type.
1883 * parser-defs.h (class innermost_block_tracker): New.
1884 (innermost_block): Change to innermost_block_tracker.
1885 * printcmd.c (display_command): Switch to innermost_block API.
1886 (do_one_display): Likewise.
1887 * rust-exp.y (do_one_display): Likewise.
1888 * symfile.c (clear_symtab_users): Likewise.
1889 * varobj.c (varobj_create): Switch to innermost_block API, replace
1890 use of innermost_block with block stored on varobj object.
1892 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * expression.h (innermost_block): Remove declaration.
1895 * varobj.c: Add 'parser-defs.h' include.
1897 2018-01-19 Tom Tromey <tom@tromey.com>
1899 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1900 symbols in the static and global blocks.
1902 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1904 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1905 gdb_ptrace.h, and move including gdb_wait.h ...
1906 * nat/linux-ptrace.h: ... to here.
1908 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1910 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1911 inf_ptrace_detach_success.
1912 (inf_ptrace_detach_success): Add inferior parameter, use it
1913 instead of inferior_ptid, pass it to detach_inferior.
1914 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1916 * inferior.c (detach_inferior): Add overload that takes an
1918 * inferior.h (detach_inferior): Likewise.
1919 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1920 use inferior_ptid, adjust call to inf_ptrace_detach_success.
1921 * linux-thread-db.c (thread_db_detach): Use inf parameter.
1923 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1925 * target.h (struct target_ops) <to_detach>: Add inferior
1927 (target_detach): Likewise.
1928 * target.c (dispose_inferior): Pass inferior down.
1929 (target_detach): Pass inferior down. Assert that it is equal to
1930 the current inferior.
1931 * aix-thread.c (aix_thread_detach): Pass inferior down.
1932 * corefile.c (core_file_command): Pass current_inferior() down.
1933 * corelow.c (core_detach): Add inferior parameter.
1934 * darwin-nat.c (darwin_detach): Likewise.
1935 * gnu-nat.c (gnu_detach): Likewise.
1936 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1937 * infcmd.c (detach_command): Pass current_inferior() down to
1939 * infrun.c (follow_fork_inferior): Pass parent_inf to
1941 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1943 * linux-nat.c (linux_nat_detach): Add inferior parameter.
1944 * linux-thread-db.c (thread_db_detach): Likewise.
1945 * nto-procfs.c (procfs_detach): Likewise.
1946 * procfs.c (procfs_detach): Likewise.
1947 * record.c (record_detach): Likewise.
1948 * record.h (struct inferior): Forward-declare.
1949 (record_detach): Add inferior parameter.
1950 * remote-sim.c (gdbsim_detach): Likewise.
1951 * remote.c (remote_detach_1): Likewise.
1952 (remote_detach): Likewise.
1953 (extended_remote_detach): Likewise.
1954 * sol-thread.c (sol_thread_detach): Likewise.
1955 * target-debug.h (target_debug_print_inferior_p): New macro.
1956 * target-delegates.c: Re-generate.
1957 * top.c (kill_or_detach): Pass inferior down to target_detach.
1958 * windows-nat.c (windows_detach): Add inferior parameter.
1960 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1962 * target.h (struct target_ops) <to_detach>: Remove args
1964 (target_detach): Likewise.
1965 * target.c (dispose_inferior): Adjust.
1966 (target_detach): Remove args parameter, adjust.
1967 * aix-thread.c (aix_thread_detach): Adjust.
1968 * corefile.c (core_file_command): Adjust.
1969 * corelow.c (core_detach): Adjust.
1970 * darwin-nat.c (darwin_detach): Adjust.
1971 * gnu-nat.c (gnu_detach): Adjust.
1972 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1973 * infcmd.c (detach_command): Adjust
1974 * infrun.c (follow_fork_inferior): Adjust.
1975 (handle_vfork_child_exec_or_exit): Adjust.
1976 * linux-fork.c (linux_fork_detach): Remove args parameter.
1977 * linux-fork.h (linux_fork_detach): Likewise.
1978 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1979 * linux-thread-db.c (thread_db_detach): Likewise.
1980 * nto-procfs.c (procfs_detach): Likewise.
1981 * procfs.c (procfs_detach): Likewise.
1982 (do_detach): Remove signo parameter.
1983 * record.c (record_detach): Remove args parameter.
1984 * record.h (record_detach): Likewise.
1985 * remote-sim.c (gdbsim_detach): Likewise.
1986 * remote.c (remote_detach_1): Likewise.
1987 (remote_detach): Likewise.
1988 (extended_remote_detach): Likewise.
1989 * sol-thread.c (sol_thread_detach): Likewise.
1990 * target-delegates.c: Re-generate.
1991 * top.c (struct qt_args) <args>: Remove field.
1992 (kill_or_detach): Don't pass args.
1993 (quit_force): Don't set args.
1994 * windows-nat.c (windows_detach): Remove args parameter.
1996 2018-01-19 Yao Qi <yao.qi@linaro.org>
1998 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1999 (arm_linux_init_abi): Install it.
2001 2018-01-19 Yao Qi <yao.qi@linaro.org>
2003 * osabi.c (gdb_osabi_names): Extend the regexp for
2004 arm-linux-gnueabihf.
2006 2018-01-18 Yao Qi <yao.qi@linaro.org>
2008 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2010 (abbrev_table::add_abbrev): Update.
2011 (abbrev_table::lookup_abbrev): Update.
2013 2018-01-18 Yao Qi <yao.qi@linaro.org>
2015 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2017 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2019 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2022 2018-01-17 Tom Tromey <tom@tromey.com>
2024 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2026 2018-01-17 Tom Tromey <tom@tromey.com>
2028 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2029 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2030 (create_array_type_with_stride): Update.
2031 * dwarf2read.c (set_die_type): Update.
2033 2018-01-17 Tom Tromey <tom@tromey.com>
2035 * dwarf2read.c (delayed_method_info): Remove typedef.
2036 (dwarf2_cu::method_info): Now a std::vector.
2037 (add_to_method_list): Update.
2038 (free_delayed_list): Remove.
2039 (compute_delayed_physnames): Update.
2040 (process_full_comp_unit, process_full_type_unit): Clear the method
2041 list. Remove cleanups.
2042 (psymtab_include_file_name): Add name_holder parameter. Use
2044 (dwarf_decode_lines): Update.
2046 2018-01-17 Tom Tromey <tom@tromey.com>
2047 Simon Marchi <simon.marchi@ericsson.com>
2049 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2050 (dwarf2_per_objfile::free_cached_comp_units)
2051 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2052 (init_cutu_and_read_dies_no_follow): Update.
2053 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2054 (dwarf2_cu::~dwarf2_cu): New.
2055 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2056 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2058 2018-01-17 Tom Tromey <tom@tromey.com>
2059 Simon Marchi <simon.marchi@ericsson.com>
2061 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2062 (struct die_reader_specs) <abbrev_table>: New member.
2063 (struct abbrev_table): Add constructor.
2064 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2065 <abbrev_obstack>: Now an auto_obstack.
2066 (abbrev_table_up): New typedef.
2067 (init_cu_die_reader): Add abbrev_table parameter.
2068 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2069 Add result_dwo_abbrev_table.
2070 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2071 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2073 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2075 (skip_children): Update.
2076 (abbrev_table::alloc_abbrev): Rename from
2077 abbrev_table_alloc_abbrev.
2078 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2079 (abbrev_table::lookup_abbrev): Rename from
2080 abbrev_table_lookup_abbrev.
2081 (abbrev_table_read_table): Return abbrev_table_up.
2082 (abbrev_table_free, abbrev_table_free_cleanup)
2083 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2084 (load_partial_dies): Update.
2086 2018-01-17 Tom Tromey <tom@tromey.com>
2088 * dwarf2read.c (dwarf2_compute_name): Update comment.
2089 (read_func_scope, read_variable): Update.
2090 (new_symbol): Remove.
2091 (new_symbol_full): Rename to new_symbol.
2093 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2096 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2097 a warning instead of throwing an error, set section size to 0 and return
2099 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2101 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2103 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2105 (linux_ptrace_attach_fail_reason_string): Likewise.
2106 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2108 (linux_ptrace_attach_fail_reason_string): Likewise.
2109 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2111 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2113 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2115 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2118 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2119 checking for fs_base/gs_base fields in struct user_regs_struct.
2120 * configure: Regenerate.
2122 2018-01-17 Yao Qi <yao.qi@linaro.org>
2124 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2126 (aarch64_linux_init_abi): Install it to gdbarch hook
2129 2018-01-15 Pedro Alves <palves@redhat.com>
2131 * common/signals-state-save-restore.c
2132 (save_original_signals_state): Fix typos.
2134 2017-01-12 Tom Tromey <tom@tromey.com>
2135 Sergio Durigan Junior <sergiodj@redhat.com>
2137 * Makefile.in (install-only): Install gdb-add-index.
2139 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2141 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2143 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2145 * infrun.c (keep_going_pass_signal): Clear step-over info when
2146 insert_breakpoints fails.
2148 2018-01-11 Pedro Alves <palves@redhat.com>
2151 * infrun.c (resume): Rename to ...
2152 (resume_1): ... this.
2153 (resume): Reimplement as wrapper around resume_1.
2155 2018-01-11 Pedro Alves <palves@redhat.com>
2158 * remote.c (remote_parse_stop_reply): Default to the last-set
2159 general thread instead of to 'magic_null_ptid'.
2161 2018-01-10 Pedro Alves <palves@redhat.com>
2163 * language.h (language_get_symbol_name_matcher): Rename ...
2164 (get_symbol_name_matcher): ... this.
2165 * language.c (language_get_symbol_name_matcher): Ditto.
2166 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2169 2018-01-10 Pedro Alves <palves@redhat.com>
2173 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2174 Adjust to use language_get_symbol_name_matcher instead of
2175 language_defn::la_get_symbol_name_matcher.
2176 * language.c (language_get_symbol_name_matcher): If in Ada mode
2177 and the lookup name is a verbatim match, return Ada's matcher.
2178 * language.h (language_get_symbol_name_matcher): Adjust comment.
2179 (ada_lookup_name_info::verbatim_p):: New method.
2181 2018-01-10 Pedro Alves <palves@redhat.com>
2184 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2185 minsym's language is language_auto or language_cplus, pass down
2186 language_ada instead.
2187 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2189 2018-01-10 Pedro Alves <palves@redhat.com>
2192 * minsyms.c (linkage_name_str): New function.
2193 (iterate_over_minimal_symbols): Use it.
2195 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2197 * NEWS: Document that 'info proc' now works on FreeBSD.
2199 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2201 * configure.ac: Check for kinfo_getfile in libutil.
2202 * configure: Regenerate.
2203 * config.in: Regenerate.
2204 * fbsd-nat.c: Include "fbsd-tdep.h".
2205 (fbsd_fetch_cmdline): New.
2206 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2207 rather than calling error.
2208 (fbsd_info_proc): New.
2209 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2210 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2211 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2213 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2215 * fbsd-nat.c (struct free_deleter): Remove.
2216 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2218 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2220 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2221 NULL for an empty pathname.
2223 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2225 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2226 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2227 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2228 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2229 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2230 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2231 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2232 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2233 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2234 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2235 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2236 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2237 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2238 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2239 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2241 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2243 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2244 (gnu_xfer_auxv): New function.
2245 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2248 2018-01-08 Yao Qi <yao.qi@linaro.org>
2249 Simon Marchi <simon.marchi@ericsson.com>
2251 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2253 (COMMON_OBS): Remove selftest.o.
2254 * configure.ac: Append selftest-arch.c and common/selftest.c to
2255 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2256 * configure: Re-generated.
2257 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2259 (maintenance_info_selftests): Likewise.
2261 2018-01-08 Xavier Roirand <roirand@adacore.com>
2263 * ada-valprint.c (val_print_packed_array_elements): Use
2264 proper number of elements when printing an array indexed
2265 by an enumeration type.
2267 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2269 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2270 (dw2_get_file_names_reader): Adjust.
2271 (lookup_dwo_signatured_type): Adjust.
2272 (lookup_dwp_signatured_type): Adjust.
2273 (lookup_signatured_type): Adjust.
2274 (create_type_unit_group): Adjust.
2275 (get_type_unit_group): Adjust.
2276 (process_psymtab_comp_unit_reader): Adjust.
2277 (build_type_psymtabs_reader): Adjust.
2278 (scan_partial_symbols): Adjust.
2279 (add_partial_symbol): Adjust.
2280 (add_partial_subprogram): Adjust.
2281 (peek_die_abbrev): Adjust.
2282 (fixup_go_packaging): Adjust.
2283 (process_imported_unit_die): Adjust.
2284 (dwarf2_compute_name): Adjust.
2285 (dwarf2_physname): Adjust.
2286 (read_import_statement): Adjust.
2287 (handle_DW_AT_stmt_list): Adjust.
2288 (read_file_scope): Adjust.
2289 (read_func_scope): Adjust.
2290 (read_lexical_block_scope): Adjust.
2291 (read_call_site_scope): Adjust.
2292 (read_variable): Adjust.
2293 (dwarf2_rnglists_process): Adjust.
2294 (dwarf2_ranges_process): Adjust.
2295 (dwarf2_ranges_read): Adjust.
2296 (dwarf2_get_pc_bounds): Adjust.
2297 (dwarf2_record_block_ranges): Adjust.
2298 (dwarf2_add_field): Adjust.
2299 (dwarf2_add_member_fn): Adjust.
2300 (read_structure_type): Adjust.
2301 (process_structure_scope): Adjust.
2302 (read_enumeration_type): Adjust.
2303 (read_array_type): Adjust.
2304 (mark_common_block_symbol_computed): Adjust.
2305 (read_common_block): Adjust.
2306 (read_namespace_type): Adjust.
2307 (read_namespace): Adjust.
2308 (read_module_type): Adjust.
2309 (read_tag_pointer_type): Adjust.
2310 (read_tag_ptr_to_member_type): Adjust.
2311 (read_tag_string_type): Adjust.
2312 (read_subroutine_type): Adjust.
2313 (read_typedef): Adjust.
2314 (read_base_type): Adjust.
2315 (attr_to_dynamic_prop): Adjust.
2316 (read_subrange_type): Adjust.
2317 (read_unspecified_type): Adjust.
2318 (dwarf2_read_abbrevs): Adjust.
2319 (load_partial_dies): Adjust.
2320 (read_partial_die): Adjust.
2321 (find_partial_die): Adjust.
2322 (guess_partial_die_structure_name): Adjust.
2323 (fixup_partial_die): Adjust.
2324 (read_attribute_value): Adjust.
2325 (read_addr_index): Adjust.
2326 (read_addr_index_from_leb128): Adjust.
2327 (read_str_index): Adjust.
2328 (dwarf2_string_attr): Adjust.
2329 (get_debug_line_section): Adjust.
2330 (dwarf_decode_line_header): Adjust.
2331 (lnp_state_machine::check_line_address): Adjust.
2332 (dwarf_decode_lines_1): Adjust.
2333 (dwarf_decode_lines): Adjust.
2334 (dwarf2_start_symtab): Adjust.
2335 (var_decode_location): Adjust.
2336 (new_symbol_full): Adjust.
2337 (dwarf2_const_value_data): Adjust.
2338 (dwarf2_const_value_attr): Adjust.
2339 (dwarf2_const_value): Adjust.
2341 (die_containing_type): Adjust.
2342 (build_error_marker_type): Adjust.
2343 (lookup_die_type): Adjust.
2344 (guess_full_die_structure_name): Adjust.
2345 (anonymous_struct_prefix): Adjust.
2346 (determine_prefix): Adjust.
2347 (dwarf2_name): Adjust.
2348 (follow_die_ref_or_sig): Adjust.
2349 (follow_die_offset): Adjust.
2350 (follow_die_ref): Adjust.
2351 (follow_die_sig_1): Adjust.
2352 (follow_die_sig): Adjust.
2353 (get_signatured_type): Adjust.
2354 (get_DW_AT_signature_type): Adjust.
2355 (decode_locdesc): Adjust.
2356 (dwarf_decode_macros): Adjust.
2357 (cu_debug_loc_section): Adjust.
2358 (fill_in_loclist_baton): Adjust.
2359 (dwarf2_symbol_mark_computed): Adjust.
2360 (init_one_comp_unit): Don't assign
2361 dwarf2_cu::dwarf2_per_objfile.
2362 (set_die_type): Adjust.
2364 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2366 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2367 <dwarf2_per_objfile>: New field.
2368 (dwarf2_per_objfile): Remove global.
2369 (get_dwarf2_per_objfile): New function.
2370 (set_dwarf2_per_objfile): New function.
2371 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2373 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2374 (read_abbrev_offset): Likewise.
2375 (read_indirect_string): Likewise.
2376 (read_indirect_line_string): Likewise.
2377 (read_indirect_string_at_offset): Likewise.
2378 (read_indirect_string_from_dwz): Likewise.
2379 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2381 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2382 (create_all_comp_units): Change objfile parameter to
2384 (create_all_type_units): Likewise.
2385 (process_queue): Add dwarf2_per_objfile parameter.
2386 (read_and_check_comp_unit_head): Likewise.
2387 (lookup_dwo_unit_in_dwp): Likewise.
2388 (get_dwp_file): Likewise.
2389 (process_cu_includes): Likewise.
2390 (struct free_dwo_file_cleanup_data): New struct.
2391 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2392 set_dwarf2_per_objfile.
2393 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2394 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2395 context, adjust calls.
2396 (dw2_instantiate_symtab): Likewise.
2397 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2398 (dw2_get_cu): Likewise.
2399 (create_cu_from_index_list): Change objfile parameter to
2401 (create_cus_from_index_list): Get dwarf2_per_objfile from
2402 context, adjust calls.
2403 (create_cus_from_index): Likewise.
2404 (create_signatured_type_table_from_index): Change objfile
2405 parameter to dwarf2_per_objfile.
2406 (create_signatured_type_table_from_debug_names): Change objfile
2407 parameter to dwarf2_per_objfile.
2408 (create_addrmap_from_index): Likewise.
2409 (create_addrmap_from_aranges): Likewise.
2410 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2411 (dw2_setup): Remove.
2412 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2414 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2415 get_dwarf2_per_objfile.
2416 (dw2_forget_cached_source_info): Likewise.
2417 (dw2_map_symtabs_matching_filename): Likewise.
2418 (struct dw2_symtab_iterator) <index>: Remove.
2419 <dwarf2_per_objfile>: New field.
2420 (dw2_symtab_iter_init): Replace index parameter with
2422 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2423 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2424 (dw2_print_stats): Likewise.
2425 (dw2_dump): Likewise.
2426 (dw2_expand_symtabs_for_function): Likewise.
2427 (dw2_expand_all_symtabs): Likewise.
2428 (dw2_expand_symtabs_with_fullname): Likewise.
2429 (dw2_expand_marked_cus): Replace index and objfile parameters
2430 with dwarf2_per_objfile.
2431 (dw_expand_symtabs_matching_file_matcher): Add
2432 dwarf2_per_objfile parameter and adjust calls.
2433 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2435 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2436 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2438 (create_cus_from_debug_names_list): Replace objfile parameter
2439 with dwarf2_per_objfile and adjust calls.
2440 (create_cus_from_debug_names): Likewise.
2441 (dwarf2_read_debug_names): Likewise.
2442 (mapped_debug_names::namei_to_name): Adjust call.
2443 (dw2_debug_names_iterator::next): Likewise.
2444 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2445 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2446 (dw2_debug_names_dump): Likewise.
2447 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2448 (dw2_debug_names_expand_symtabs_matching): Likewise.
2449 (dwarf2_initialize_objfile): Likewise.
2450 (dwarf2_build_psymtabs): Likewise.
2451 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2453 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2454 (read_and_check_comp_unit_head): Likewise.
2455 (read_abbrev_offset): Likewise.
2456 (create_debug_type_hash_table): Likewise.
2457 (create_debug_types_hash_table): Likewise.
2458 (create_all_type_units): Replace objfile parameter with
2460 (add_type_unit): Add dwarf2_per_objfile parameter.
2461 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2462 with dwarf2_per_objfile.
2463 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2464 (lookup_dwp_signatured_type): Likewise.
2465 (lookup_signatured_type): Likewise.
2466 (read_cutu_die_from_dwo): Likewise.
2467 (init_tu_and_read_dwo_dies): Likewise.
2468 (init_cutu_and_read_dies): Likewise.
2469 (init_cutu_and_read_dies_no_follow): Likewise.
2470 (allocate_type_unit_groups_table): Add objfile parameter.
2471 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2472 (get_type_unit_group): Likewise.
2473 (process_psymtab_comp_unit): Update call.
2474 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2475 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2476 (print_tu_stats): Likewise.
2477 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2479 (build_type_psymtabs): Change objfile parameter to
2481 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2482 passed in void* parameter.
2483 (process_skeletonless_type_units): Change objfile parameter to
2485 (set_partial_user): Likewise.
2486 (dwarf2_build_psymtabs_hard): Likewise.
2487 (read_comp_units_from_section): Likewise.
2488 (create_all_comp_units): Likewise.
2489 (scan_partial_symbols): Update calls.
2490 (add_partial_symbol): Likewise.
2491 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2492 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2493 (process_queue): Add dwarf2_per_objfile parameter.
2494 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2495 (compute_compunit_symtab_includes): Likewise.
2496 (process_cu_includes): Add dwarf2_per_objfile parameter.
2497 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2498 (process_full_type_unit): Likewise.
2499 (process_imported_unit_die): Update call.
2500 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2501 (read_file_scope): Likewise.
2502 (allocate_dwo_file_hash_table): Add objfile parameter.
2503 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2504 (create_cus_hash_table): Likewise.
2505 (create_dwp_hash_table): Likewise.
2506 (create_dwo_unit_in_dwp_v1): Likewise.
2507 (create_dwp_v2_section): Likewise.
2508 (create_dwo_unit_in_dwp_v2): Likewise.
2509 (lookup_dwo_unit_in_dwp): Likewise.
2510 (try_open_dwop_file): Likewise.
2511 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2512 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2513 cleanup to include a reference to dwarf2_per_objfile.
2514 (open_dwp_file): Add dwarf2_per_objfile parameter.
2515 (open_and_init_dwp_file): Likewise.
2516 (get_dwp_file): Likewise.
2517 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2518 (queue_and_load_all_dwo_tus): Update call.
2519 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2521 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2522 (dwarf2_ranges_process): Likewise.
2523 (dwarf2_get_pc_bounds): Likewise.
2524 (mark_common_block_symbol_computed): Likewise.
2525 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2526 (dwarf2_read_abbrevs): Update call.
2527 (read_partial_die): Use dwarf2_per_objfile from cu.
2528 (find_partial_die): Likewise.
2529 (fixup_partial_die): Likewise.
2530 (read_attribute_value): Likewise.
2531 (read_indirect_string_at_offset_from): Add objfile parameter.
2532 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2534 (read_indirect_string_from_dwz): Add objfile parameter.
2535 (read_indirect_string): Add objfile parameter.
2536 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2537 (read_addr_index): Use dwarf2_per_objfile from cu.
2538 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2540 (read_str_index): Use dwarf2_per_objfile from cu.
2541 (get_debug_line_section): Likewise.
2542 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2543 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2544 (new_symbol_full): Use dwarf2_per_objfile from cu.
2545 (build_error_marker_type): Likewise.
2546 (lookup_die_type): Likewise.
2547 (determine_prefix): Likewise.
2548 (follow_die_offset): Likewise.
2549 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2550 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2551 (dwarf2_fetch_die_type_sect_off): Likewise.
2552 (dwarf2_get_die_type): Likewise.
2553 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2554 (get_signatured_type): Likewise.
2555 (get_DW_AT_signature_type): Likewise.
2556 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2557 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2558 (cu_debug_loc_section): Likewise.
2559 (fill_in_loclist_baton): Likewise.
2560 (dwarf2_symbol_mark_computed): Likewise.
2561 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2563 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2565 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2566 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2567 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2568 (set_die_type): Use dwarf2_free_objfile from cu.
2569 (get_die_type_at_offset): Likewise.
2570 (dwarf2_per_objfile_free): Don't assign global variable.
2571 (debug_names) <constructor>: Add dwarf2_per_objfile
2572 parameter, update m_debugstrlookup construction.
2573 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2575 <m_dwarf2_per_objfile>: New field.
2576 <lookup>: Use m_dwarf2_per_objfile.
2577 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2578 (psyms_seen_size): Likewise.
2579 (write_gdbindex): Replace objfile parameter with
2581 (write_debug_names): Likewise.
2582 (write_psymtabs_to_index): Likewise.
2583 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2586 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2588 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2589 <dwarf2_per_objfile>: New field.
2590 (struct dwarf2_per_cu_data) <objfile>: Remove.
2591 <dwarf2_per_objfile>: New field.
2592 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2594 (create_signatured_type_table_from_index): Likewise.
2595 (create_debug_type_hash_table): Likewise.
2596 (fill_in_sig_entry_from_dwo_entry): Likewise.
2597 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2598 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2600 (create_partial_symtab): Access objfile through
2602 (process_psymtab_comp_unit_reader): Likewise.
2603 (read_comp_units_from_section): Likewise.
2604 (scan_partial_symbols): Likewise.
2605 (add_partial_symbol): Likewise.
2606 (add_partial_subprogram): Likewise.
2607 (peek_die_abbrev): Likewise.
2608 (fixup_go_packaging): Likewise.
2609 (process_full_comp_unit): Likewise.
2610 (process_full_type_unit): Likewise.
2611 (process_imported_unit_die): Likewise.
2612 (dwarf2_compute_name): Likewise.
2613 (dwarf2_physname): Likewise.
2614 (read_import_statement): Likewise.
2615 (create_cus_hash_table): Assign dwarf2_physname instead of
2617 (read_func_scope): Access objfile through dwarf2_per_objfile.
2618 (read_lexical_block_scope): Likewise.
2619 (read_call_site_scope): Likewise.
2620 (read_variable): Likewise.
2621 (dwarf2_rnglists_process): Likewise.
2622 (dwarf2_ranges_process): Likewise.
2623 (dwarf2_ranges_read): Likewise.
2624 (dwarf2_record_block_ranges): Likewise.
2625 (dwarf2_add_field): Likewise.
2626 (dwarf2_add_member_fn): Likewise.
2627 (read_structure_type): Likewise.
2628 (process_structure_scope): Likewise.
2629 (read_enumeration_type): Likewise.
2630 (read_array_type): Likewise.
2631 (read_common_block): Likewise.
2632 (read_namespace_type): Likewise.
2633 (read_namespace): Likewise.
2634 (read_module_type): Likewise.
2635 (read_tag_pointer_type): Likewise.
2636 (read_tag_ptr_to_member_type): Likewise.
2637 (read_tag_string_type): Likewise.
2638 (read_subroutine_type): Likewise.
2639 (read_typedef): Likewise.
2640 (read_base_type): Likewise.
2641 (attr_to_dynamic_prop): Likewise.
2642 (read_subrange_type): Likewise.
2643 (read_unspecified_type): Likewise.
2644 (load_partial_dies): Likewise.
2645 (read_partial_die): Likewise.
2646 (find_partial_die): Likewise.
2647 (guess_partial_die_structure_name): Likewise.
2648 (fixup_partial_die): Likewise.
2649 (read_attribute_value): Likewise.
2650 (read_addr_index_from_leb128): Likewise.
2651 (dwarf2_read_addr_index): Likewise.
2652 (dwarf2_string_attr): Likewise.
2653 (lnp_state_machine::check_line_address): Likewise.
2654 (dwarf_decode_lines_1): Likewise.
2655 (dwarf_decode_lines): Likewise.
2656 (dwarf2_start_symtab): Likewise.
2657 (var_decode_location): Likewise.
2658 (new_symbol_full): Likewise.
2659 (dwarf2_const_value_data): Likewise.
2660 (dwarf2_const_value_attr): Likewise.
2661 (dwarf2_const_value): Likewise.
2662 (die_type): Likewise.
2663 (die_containing_type): Likewise.
2664 (lookup_die_type): Likewise.
2665 (guess_full_die_structure_name): Likewise.
2666 (anonymous_struct_prefix): Likewise.
2667 (dwarf2_name): Likewise.
2668 (follow_die_ref_or_sig): Likewise.
2669 (follow_die_offset): Likewise.
2670 (follow_die_ref): Likewise.
2671 (dwarf2_fetch_die_loc_sect_off): Likewise.
2672 (dwarf2_fetch_constant_bytes): Likewise.
2673 (dwarf2_fetch_die_type_sect_off): Likewise.
2674 (dwarf2_get_die_type): Likewise.
2675 (follow_die_sig): Likewise.
2676 (decode_locdesc): Likewise.
2677 (dwarf2_per_cu_objfile): Likewise.
2678 (dwarf2_per_cu_text_offset): Likewise.
2679 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2681 (set_die_type): Access objfile through
2684 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2686 * valprint.c (converted_character_d): Remove typedef.
2687 (DEF_VEC_O (converted_character_d)): Remove.
2688 (count_next_character): Use std::vector.
2689 (print_converted_chars_to_obstack): Likewise.
2690 (generic_printstr): Likewise.
2692 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2694 * xml-support.h (struct gdb_xml_value): Add constructor.
2695 <value>: Change type to unique_xmalloc_ptr.
2696 (gdb_xml_value_s): Remove typedef.
2697 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2698 (gdb_xml_element_start_handler): Change parameter type to
2700 (xml_find_attribute): Likewise.
2701 * xml-support.c (xml_find_attribute): Change parameter type to
2702 std::vector and adjust.
2703 (gdb_xml_values_cleanup): Remove.
2704 (gdb_xml_parser::start_element): Adjust to std::vector.
2705 (xinclude_start_include): Change paraeter type to std::vector
2707 * btrace.c (check_xml_btrace_version): Likewise.
2708 (parse_xml_btrace_block): Likewise.
2709 (parse_xml_btrace_pt_config_cpu): Likewise.
2710 (parse_xml_btrace_pt): Likewise.
2711 (parse_xml_btrace_conf_bts): Likewise.
2712 (parse_xml_btrace_conf_pt): Likewise.
2713 * memory-map.c (memory_map_start_memory): Likewise.
2714 (memory_map_start_property): Likewise.
2715 * osdata.c (osdata_start_osdata): Likewise.
2716 (osdata_start_item): Likewise.
2717 (osdata_start_column): Likewise.
2718 * remote.c (start_thread): Likewise.
2719 * solib-aix.c (library_list_start_library): Likewise.
2720 (library_list_start_list): Likewise.
2721 * solib-svr4.c (library_list_start_library): Likewise.
2722 (svr4_library_list_start_list): Likewise.
2723 * solib-target.c (library_list_start_segment): Likewise.
2724 (library_list_start_section): Likewise.
2725 (library_list_start_library): Likewise.
2726 (library_list_start_list): Likewise.
2727 * tracepoint.c (traceframe_info_start_memory): Likewise.
2728 (traceframe_info_start_tvar): Likewise.
2729 * xml-syscall.c (syscall_start_syscall): Likewise.
2730 * xml-tdesc.c (tdesc_start_target): Likewise.
2731 (tdesc_start_feature): Likewise.
2732 (tdesc_start_reg): Likewise.
2733 (tdesc_start_union): Likewise.
2734 (tdesc_start_struct): Likewise.
2735 (tdesc_start_flags): Likewise.
2736 (tdesc_start_enum): Likewise.
2737 (tdesc_start_field): Likewise.
2738 (tdesc_start_enum_value): Likewise.
2739 (tdesc_start_vector): Likewise.
2741 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2743 * extension.h (struct xmethod_worker) <clone>: Remove.
2744 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2746 (python_xmethod_worker::clone): Remove.
2747 * valops.c (find_overload_match): Use std::move instead of
2750 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2752 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2753 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2754 <free_xmethod_worker_data>: Remove.
2755 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2756 <get_xmethod_arg_types>: Remove.
2757 <get_xmethod_result_type>: Remove.
2758 <invoke_xmethod>: Remove.
2759 * extension.c (new_xmethod_worker): Remove.
2760 (clone_xmethod_worker): Remove.
2761 (get_matching_xmethod_workers): Return void, pass std::vector by
2763 (get_xmethod_arg_types): Rename to...
2764 (xmethod_worker::get_arg_types): ... this, and adjust.
2765 (get_xmethod_result_type): Rename to...
2766 (xmethod_worker::get_result_type): ... this, and adjust.
2767 (invoke_xmethod): Remove.
2768 (free_xmethod_worker): Remove.
2769 (free_xmethod_worker_vec): Remove.
2770 * extension.h (enum ext_lang_rc): Move here from
2772 (struct xmethod_worker): Add constructor and destructor.
2775 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2776 virtual pure methods.
2777 <get_arg_types, get_result_type>: New methods.
2778 (xmethod_worker_ptr): Remove typedef.
2779 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2780 (xmethod_worker_vec): Remove typedef.
2781 (xmethod_worker_up): New typedef.
2782 (invoke_xmethod): Remove.
2783 (clone_xmethod_worker): Remove.
2784 (free_xmethod_worker): Remove.
2785 (free_xmethod_worker_vec): Remove.
2786 (get_xmethod_arg_types): Remove.
2787 (get_xmethod_result_type): Remove.
2788 * valops.c (find_method_list): Use std::vector, don't use
2789 intermediate vector.
2790 (value_find_oload_method_list): Use std::vector.
2791 (find_overload_match): Use std::vector.
2792 (find_oload_champ): Use std::vector.
2793 * value.c (value_free): Use operator delete.
2794 (value_of_xmethod): Rename to...
2795 (value_from_xmethod): ... this. Don't assign
2796 xmethod_worker::value, take rvalue-reference.
2797 (result_type_of_xmethod): Adjust.
2798 (call_xmethod): Adjust.
2799 * value.h: Include extension.h.
2800 (struct xmethod_worker): Don't forward-declare.
2801 (value_of_xmethod): Rename to...
2802 (value_from_xmethod): ... this, take rvalue-reference.
2803 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2804 (struct python_xmethod_worker): ... this, add constructor and
2806 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2807 (gdbpy_free_xmethod_worker_data): Rename to...
2808 (python_xmethod_worker::~python_xmethod_worker): ... this and
2810 (gdbpy_clone_xmethod_worker_data): Rename to...
2811 (python_xmethod_worker::clone): ... this and adjust.
2812 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2814 (gdbpy_get_xmethod_arg_types): Rename to...
2815 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2816 (gdbpy_get_xmethod_result_type): Rename to...
2817 (python_xmethod_worker::do_get_result_type): ... this and
2819 (gdbpy_invoke_xmethod): Rename to...
2820 (python_xmethod_worker::invoke): ... this and adjust.
2821 (new_python_xmethod_worker): Rename to...
2822 (python_xmethod_worker::python_xmethod_worker): ... this and
2824 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2826 (gdbpy_free_xmethod_worker_data): Remove.
2827 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2828 (gdbpy_get_xmethod_arg_types): Remove.
2829 (gdbpy_get_xmethod_result_type): Remove.
2830 (gdbpy_invoke_xmethod): Remove.
2831 * python/python.c (python_extension_ops): Remove obsolete
2834 2018-01-05 Pedro Alves <palves@redhat.com>
2837 * common/signals-state-save-restore.c
2838 (save_original_signals_state): New parameter 'quiet'. Warn if we
2839 find a custom handler preinstalled, instead of internal erroring.
2840 But only warn if !quiet.
2841 * common/signals-state-save-restore.h
2842 (save_original_signals_state): New parameter 'quiet'.
2843 * main.c (captured_main_1): Move save_original_signals_state call
2844 after option handling, and pass QUIET.
2846 2018-01-05 Pedro Alves <palves@redhat.com>
2848 * spu-tdep.c (spu_catch_start): Pass
2849 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2851 2018-01-05 Pedro Alves <palves@redhat.com>
2854 * ada-lang.c (literal_symbol_name_matcher): New function.
2855 (ada_get_symbol_name_matcher): Use it for
2856 symbol_name_match_type::SEARCH_NAME.
2857 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
2858 it down instead of assuming symbol_name_match_type::FULL.
2859 * block.h (block_lookup_symbol): New parameter 'match_type'.
2860 * c-valprint.c (print_unpacked_pointer): Use
2861 lookup_symbol_search_name instead of lookup_symbol.
2862 * compile/compile-object-load.c (get_out_value_type): Pass down
2863 symbol_name_match_type::SEARCH_NAME.
2864 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2865 symbol_name_match_type::FULL.
2866 * cp-support.c (cp_get_symbol_name_matcher): Handle
2867 symbol_name_match_type::SEARCH_NAME.
2868 * infrun.c (insert_exception_resume_breakpoint): Use
2869 lookup_symbol_search_name.
2870 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2871 * psymtab.c (maintenance_check_psymtabs): Use
2872 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2873 * stack.c (print_frame_args): Use lookup_symbol_search_name and
2875 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2876 if symbol_name_match_type::SEARCH_NAME.
2877 (lookup_symbol_in_language): Pass down
2878 symbol_name_match_type::FULL.
2879 (lookup_symbol_search_name): New.
2880 (lookup_language_this): Pass down
2881 symbol_name_match_type::SEARCH_NAME.
2882 (lookup_symbol_aux, lookup_local_symbol): New parameter
2883 'match_type'. Pass it down.
2884 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2885 (lookup_symbol_search_name): New declaration.
2886 (lookup_symbol_in_block): New 'match_type' parameter.
2888 2018-01-05 Pedro Alves <palves@redhat.com>
2891 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2893 (ada_lookup_symbol): Reimplement in terms of
2894 ada_lookup_symbol_list, bits factored out from
2895 ada_lookup_encoded_symbol.
2897 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2899 * ada-exp.y (write_object_renaming): When subscripting an array
2900 using a symbol as the index, pass the block in call to
2901 ada_lookup_encoded_symbol when looking that symbol up.
2903 2018-01-05 Jerome Guitton <guitton@adacore.com>
2905 * ada-lang.c (ada_array_length): Use ada_index_type instead of
2908 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2910 * ada-lang.c (ada_to_fixed_value_create): Add handling of
2911 the case where VALUE_LVAL (val0) is not lval_memory.
2913 2018-01-05 Xavier Roirand <roirand@adacore.com>
2915 * ada-valprint.c (print_optional_low_bound): Handle
2916 character-indexed array printing like boolean-indexed array
2919 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2921 * NEWS: Create a new section for the next release branch.
2922 Rename the section of the current branch, now that it has
2925 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2927 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2928 * version.in: Bump version to 8.1.50.DATE-git.
2930 2018-01-03 Xavier Roirand <roirand@adacore.com>
2932 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2934 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2936 (default_exception_support_info) <catch_handlers_sym>: Add field.
2937 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2938 (ada_exception_name_addr_1): Add "catch handlers" handling.
2939 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2941 (create_excep_cond_exprs) <ex>: Add parameter.
2942 (re_set_exception): Update create_excep_cond_exprs call.
2943 (print_it_exception, print_one_exception, print_mention_exception)
2944 (print_recreate_exception): Add "catch handler" handling.
2945 (allocate_location_catch_handlers, re_set_catch_handlers)
2946 (check_status_catch_handlers, print_it_catch_handlers)
2947 (print_one_catch_handlers, print_mention_catch_handlers)
2948 (print_recreate_catch_handlers): New function.
2949 (catch_handlers_breakpoint_ops): New variable.
2950 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2951 Add parameter. Add "catch handler" handling.
2952 (ada_exception_sym_name, ada_exception_breakpoint_ops):
2953 Add "catch handler" handling.
2954 (ada_exception_catchpoint_cond_string): Add "catch handler"
2956 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2958 (catch_ada_handlers_command): New function.
2959 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2960 operations structure.
2961 (_initialize_ada_language): Add "catch handlers" command entry.
2962 * NEWS: Document "catch handlers" feature.
2964 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2966 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2967 account when creating the array type of the slice.
2968 (ada_value_slice): Likewise.
2970 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2972 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2974 (create_array_type_with_stride): Add byte_stride_prop parameter.
2975 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2976 New parameter. Update all callers in this file.
2977 (array_type_has_dynamic_stride): New function.
2978 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2979 of arrays with dynamic byte strides.
2980 * dwarf2read.c (read_array_type): Add support for dynamic
2981 DW_AT_byte_stride attributes.
2983 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2985 * dwarf2read.c (read_unspecified_type): Treat
2986 DW_TAG_enumeration_type DIEs from Ada units as stubs.
2988 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2990 Update copyright year range in all GDB files.
2992 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2994 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2995 and gdb/testsuite/gdb.base/step-line.c.
2997 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2999 * copyright.py (main): Dump the contents of
3000 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3001 even if BY_HAND is empty.
3003 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3005 * top.c (print_gdb_version): Update Copyright year in version
3008 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3010 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3012 For older changes see ChangeLog-2017.
3018 version-control: never