1 2018-03-26 Tom Tromey <tom@tromey.com>
4 * stack.c (backtrace_command_1): Move some code into no-filters
7 2018-03-26 Tom Tromey <tom@tromey.com>
9 * python/py-framefilter.c (throw_quit_or_print_exception): New
11 (gdbpy_apply_frame_filter): Use it.
13 2018-03-26 Tom Tromey <tom@tromey.com>
16 * python/py-framefilter.c (py_print_type, py_print_value)
17 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
20 2018-03-26 Tom Tromey <tom@tromey.com>
22 * python/py-framefilter.c (enumerate_args): Use
23 gdb::unique_xmalloc_ptr.
25 2018-03-26 Tom Tromey <tom@tromey.com>
27 * python/py-framefilter.c (py_print_frame): Return
29 (gdbpy_apply_frame_filter): Update comment.
30 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
32 <EXT_LANG_BT_NO_FILTERS>: Change value.
34 2018-03-26 Tom Tromey <tom@tromey.com>
37 * stack.c (backtrace_command): Parse "hide" argument.
38 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
39 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
42 2018-03-26 Tom Tromey <tom@tromey.com>
44 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
46 (backtrace_command): Remove "fulltrace", add "flags".
48 2018-03-26 Tom Tromey <tom@tromey.com>
50 * stack.c (backtrace_command): Rewrite command line parsing.
52 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
54 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
56 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
58 * filename-seen-cache.h: Add include guard.
60 2018-03-26 Keith Seitz <keiths@redhat.com>
62 * symfile.c (place_section): Remove "struct" from section_addr_info
64 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
65 "struct" keyword from section_addr_info.
67 2018-03-26 Alan Hayward <alan.hayward@arm.com>
69 * regformats/regdef.h (reg): Add constructors.
71 2018-03-25 Pedro Alves <palves@redhat.com>
73 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
74 if then/else bodies in var_func_name extraction.
76 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
78 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
79 lookup_minimal_symbol() to find symbol entry.
80 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
82 2018-03-23 Keith Seitz <keiths@redhat.com>
85 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
86 nested type definitions for C++, too.
88 2018-03-23 Tom Tromey <tom@tromey.com>
90 * machoread.c (struct oso_el): Add a constructor. Don't define as
92 (macho_register_oso): Remove.
93 (macho_symtab_read): Take a std::vector.
94 (oso_el_compare_name): Now a std::sort comparator.
95 (macho_symfile_read_all_oso): Take a std::vector.
96 (macho_symfile_read): Use std::vector. Remove cleanups.
98 2018-03-22 Tom Tromey <tom@tromey.com>
100 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
101 (record_full_goto_bookmark): Use std::string.
103 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
106 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
109 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
111 * rs6000-tdep.c (store_insn_p): New function.
112 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
113 and cr_reg to their unshifted values. Use store_insn_p to
114 match LR saves using either R1 or fdata->alloca_reg. Use
115 store_insn_p to match CR saves. Set alloca_reg_offset
116 when alloca_reg and framep are set. Remove lr_reg shift
117 when assigning to fdata->lr_register.
119 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
121 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
122 command line args instead of emitting a warning.
124 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
126 * tracepoint.h (struct static_tracepoint_marker): Initialize
127 fields, define default constructor, move constructor and move
128 assignment, disable the rest.
129 <str_id, extra>: Make std::string.
130 (release_static_tracepoint_marker): Remove.
131 (free_current_marker): Remove.
132 * tracepoint.c (free_current_marker): Remove.
133 (parse_static_tracepoint_marker_definition): Adjust to
134 std::string, use new hex2str overload.
135 (release_static_tracepoint_marker): Remove.
136 (print_one_static_tracepoint_marker): Get marker by reference
137 and adjust to std::string.
138 (info_static_tracepoint_markers_command): Adjust to std::vector
140 * target.h (static_tracepoint_marker_p): Remove typedef.
141 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
142 (struct target_ops) <to_static_tracepoint_marker_at>: Return
144 <to_static_tracepoint_markers_by_strid>: Return std::vector.
146 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
147 (target_debug_print_std_vector_static_tracepoint_marker): New.
148 (target_debug_print_struct_static_tracepoint_marker_p): Rename
150 (target_debug_print_static_tracepoint_marker_p): ... this.
151 * target-delegates.c: Re-generate.
152 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
154 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
155 (decode_static_tracepoint_spec): Adjust to std::vector.
156 (tracepoint_print_one_detail): Adjust to std::string.
157 (strace_marker_decode_location): Adjust to std::string.
158 (update_static_tracepoint): Adjust to std::string, remove call
159 to release_static_tracepoint_marker.
160 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
161 Adjust to std::vector.
162 * remote.c (remote_static_tracepoint_marker_at): Return bool.
163 (remote_static_tracepoint_markers_by_strid): Adjust to
165 * common/rsp-low.h (hex2str): New overload with explicit count
167 * common/rsp-low.c (hex2str): New overload with explicit count
169 * unittests/rsp-low-selftests.c (test_hex2str): New function.
170 (_initialize_rsp_low_selftests): Add test_hex2str test.
171 * unittests/tracepoint-selftests.c
172 (test_parse_static_tracepoint_marker_definition): Adjust to
175 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
177 * tracepoint.c (parse_static_tracepoint_marker_definition):
178 Consider case where the definition is followed by more
180 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
181 tracepoint-selftests.c.
182 * unittests/tracepoint-selftests.c: New.
184 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
186 * MAINTAINERS (Write After Approval): Add Pedro Franco de
189 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
191 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
193 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
195 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
197 2018-03-19 Tom Tromey <tom@tromey.com>
199 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
202 2018-03-19 Pedro Alves <palves@redhat.com>
203 Tom Tromey <tom@tromey.com>
205 * unittests/observable-selftests.c: New file.
206 * common/observable.h: New file.
207 * observable.h: New file.
208 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
209 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
210 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
211 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
212 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
213 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
214 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
215 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
216 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
217 python/py-breakpoint.c, python/py-finishbreakpoint.c,
218 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
219 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
220 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
221 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
222 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
223 tui/tui-interp.c, valops.c: Update all users.
224 * tui/tui-hooks.c (tui_bp_created_observer)
225 (tui_bp_deleted_observer, tui_bp_modified_observer)
226 (tui_inferior_exit_observer, tui_before_prompt_observer)
227 (tui_normal_stop_observer, tui_register_changed_observer):
229 (tui_observers_token): New global.
230 (attach_or_detach, tui_attach_detach_observers): New functions.
231 (tui_install_hooks, tui_remove_hooks): Use
232 tui_attach_detach_observers.
233 * record-btrace.c (record_btrace_thread_observer): Remove.
234 (record_btrace_thread_observer_token): New global.
235 * observer.sh: Remove.
236 * observer.c: Rename to observable.c.
237 * observable.c (namespace gdb_observers): Define new objects.
238 (observer_debug): Move into gdb_observers namespace.
239 (struct observer, struct observer_list, xalloc_observer_list_node)
240 (xfree_observer_list_node, generic_observer_attach)
241 (generic_observer_detach, generic_observer_notify): Remove.
242 (_initialize_observer): Update.
243 Don't include observer.inc.
244 * Makefile.in (generated_files): Remove observer.h, observer.inc.
245 (clean mostlyclean): Likewise.
246 (observer.h, observer.inc): Remove targets.
247 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
248 (COMMON_SFILES): Use observable.c, not observer.c.
249 * .gitignore: Remove observer.h.
251 2018-03-18 Tom Tromey <tom@tromey.com>
253 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
255 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
257 2018-03-17 Tom Tromey <tom@tromey.com>
259 * auto-load.c (auto_load_objfile_script_1): Use std::string.
261 2018-03-17 Tom Tromey <tom@tromey.com>
263 * target.c (class scoped_target_fd): New.
264 (target_fileio_close_cleanup): Remove.
265 (target_fileio_read_alloc_1): Use scoped_target_fd.
267 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
269 * silent-rules.mk: New.
270 * Makefile.in: Include silent-rules.mk
271 (srcdir, VPATH, top_srcdir): Move up.
272 (COMPILE): Add ECHO_CXX.
273 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
274 (init.c): Add ECHO_INIT_C.
275 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
276 (version.c): Add ECHO_GEN.
277 (printcmd.o): Add ECHO_CXX.
278 (target-float.o): Add ECHO_CXX.
279 (ada-exp.o): Add ECHO_CXX.
280 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
281 (insight$(EXEEXT)): Add ECHO_CXXLD.
282 * gnulib/configure.ac: Add AM_SILENT_RULES.
283 * gnulib/aclocal.m4: Re-generate.
284 * gnulib/configure: Re-generate.
285 * gnulib/import/Makefile.in: Re-generate.
287 2018-03-16 Tom Tromey <tom@tromey.com>
289 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
290 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
291 * utils.c (do_free_section_addr_info)
292 (make_cleanup_free_section_addr_info): Remove.
293 * symfile.h (struct other_sections): Add constructor.
294 (struct section_addr_info): Remove.
295 (section_addr_info): New typedef.
296 (struct sym_fns) <sym_offsets>: Change type of parameter.
297 (build_section_addr_info_from_objfile)
298 (relative_addr_info_to_section_offsets, addr_info_make_relative)
299 (default_symfile_offsets, symbol_file_add)
300 (symbol_file_add_from_bfd)
301 (build_section_addr_info_from_section_table): Update.
302 (alloc_section_addr_info, free_section_addr_info): Don't declare.
303 * symfile.c (alloc_section_addr_info): Remove.
304 (build_section_addr_info_from_section_table): Change return type.
306 (build_section_addr_info_from_bfd)
307 (build_section_addr_info_from_objfile): Likewise.
308 (free_section_addr_info): Remove.
309 (relative_addr_info_to_section_offsets): Change type of "addrs".
310 (addrs_section_compar): Now a std::sort comparator.
311 (addrs_section_sort): Change return type.
312 (addr_info_make_relative): Change type of "addrs". Update.
313 (default_symfile_offsets, syms_from_objfile_1)
314 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
315 (symbol_file_add_separate): Update.
316 (symbol_file_add): Change type of "addrs". Update.
317 (add_symbol_file_command): Update. Remove cleanups.
318 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
320 * symfile-debug.c (debug_sym_offsets): Change type of "info".
321 * solib.c (solib_read_symbols): Update.
322 * objfiles.c (objfile_relocate): Update. Remove cleanups.
323 * machoread.c (macho_symfile_offsets): Update.
324 * jit.c (jit_bfd_try_read_symtab): Update.
326 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
328 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
329 unittests/utils-selftests.c.
330 * unittests/utils-selftests.c: New file.
332 2018-03-14 Tom Tromey <tom@tromey.com>
335 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
338 2018-03-14 Tom Tromey <tom@tromey.com>
341 * printcmd.c (printf_pointer): Allow "-" in format.
343 2018-03-14 Tom Tromey <tom@tromey.com>
345 * printcmd.c (_initialize_printcmd): Add usage to printf.
347 2018-03-14 Yao Qi <qiyao@sourceware.org>
349 * MAINTAINERS: Update my email address.
351 2018-03-13 Tom Tromey <tom@tromey.com>
353 * machoread.c (macho_check_dsym): Change filenamep to a
355 (macho_symfile_read): Update.
356 * symfile.c (load_command): Use std::string.
358 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
360 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
361 to error message string.
362 (riscv_register_name): Use xsnprintf instead of sprintf.
363 (riscv_insn::fetch_instruction): Use gdb_assert instead of
365 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
367 (riscv_push_dummy_call): Likewise.
369 2018-03-12 Tom Tromey <tom@tromey.com>
371 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
372 Use gdb::byte_vector.
373 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
375 2018-03-12 Yao Qi <yao.qi@linaro.org>
377 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
378 parameter type to readable_regcache.
379 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
382 2018-03-11 Tom Tromey <tom@tromey.com>
384 * dwarf2read.c (struct nextfield): Add initializers.
385 (struct nextfnfield): Remove.
386 (struct fnfieldlist): Add initializers. Remove "length" and
387 "head", use std::vector.
388 (struct decl_field_list): Remove.
389 (struct field_info): Add initializers.
390 <fields, baseclasses>: Now std::vector.
391 <nbaseclasses, nfnfields, typedef_field_list_count,
392 nested_types_list_count>: Remove.
393 (dwarf2_add_field, dwarf2_add_type_defn)
394 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
395 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
396 (process_structure_scope): Update.
398 2018-03-11 Tom Tromey <tom@tromey.com>
400 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
401 for use by std::sort.
402 (build_type_psymtabs_1): Use std::vector.
404 2018-03-09 Eli Zaretskii <eliz@gnu.org>
406 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
407 and LIBMPFR in the printed configuration.
409 2018-03-08 Tom Tromey <tom@tromey.com>
411 * source.c (get_filename_and_charpos): Use scoped_fd.
412 * nto-procfs.c (procfs_open_1): Use scoped_fd.
413 (procfs_pidlist): Likewise.
414 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
415 (iterate_over_mappings): Likewise.
417 2018-03-08 Tom Tromey <tom@tromey.com>
419 * infcall.c (struct call_return_meta_info)
420 <stack_temporaries_enabled>: Remove.
421 (get_call_return_value, call_function_by_hand_dummy): Update.
422 * thread.c (disable_thread_stack_temporaries): Remove.
423 (enable_thread_stack_temporaries): Remove.
424 (thread_stack_temporaries_enabled_p): Return bool.
425 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
426 (get_last_thread_stack_temporary): Update.
427 * eval.c (evaluate_subexp): Update.
428 * gdbthread.h (class enable_thread_stack_temporaries): Now a
429 class, not a function.
430 (value_ptr, value_vec): Remove typedefs.
431 (class thread_info) <stack_temporaries_enabled>: Now bool.
432 <stack_temporaries>: Now a std::vector.
433 (thread_stack_temporaries_enabled_p)
434 (value_in_thread_stack_temporaries): Return bool.
436 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
438 * remote.c (putpkt_binary): Fix omitted bytes reporting.
439 (getpkt_or_notif_sane_1): Likewise.
441 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
443 * build-id.c (build_id_to_debug_bfd): Use std::string.
445 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
447 * build-id.c (find_separate_debug_file_by_buildid): Return
449 * build-id.h (find_separate_debug_file_by_buildid): Return
451 * coffread.c (coff_symfile_read): Adjust to std::string.
452 * elfread.c (elf_symfile_read): Adjust to std::string.
453 * symfile.c (separate_debug_file_exists): Change parameter to
455 (find_separate_debug_file): Return std::string.
456 (find_separate_debug_file_by_debuglink): Return std::string.
457 * symfile.h (find_separate_debug_file_by_debuglink): Return
460 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
462 * common/xml-utils.c (xml_escape_text): Move code to...
463 (xml_escape_text_append): ... this new function.
464 * common/xml-utils.h (xml_escape_text_append): New declaration.
465 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
467 (_initialize_xml_utils): register test_xml_escape_text_append as
470 2018-03-07 Alan Hayward <alan.hayward@arm.com>
472 * defs.h: Remove MAX_REGISTER_SIZE.
473 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
475 * python/py-unwind.c (pyuw_sniffer): Likewise.
477 2018-03-07 Tom Tromey <tom@tromey.com>
479 * linux-tdep.c (linux_info_proc): Update.
480 * target.h (struct target_ops) <to_fileio_readlink>: Return
482 (target_fileio_readlink): Return optional<string>.
483 * remote.c (remote_hostio_readlink): Return optional<string>.
484 * inf-child.c (inf_child_fileio_readlink): Return
486 * target.c (target_fileio_readlink): Return optional<string>.
488 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
490 * regcache.c (cooked_read_test): Add riscv to the list of
491 architectures that have a save_reggroup.
493 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
495 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
496 value is not a dynamic class object.
498 2018-03-06 Tom Tromey <tom@tromey.com>
500 * rust-exp.y: Formatting fixes.
502 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
504 * riscv-tdep.c (riscv_register_name): Remove target description
506 (riscv_gdbarch_init): Remove target description check.
508 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
510 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
512 * riscv-tdep.h: Likewise.
514 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
516 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
517 (riscv_pseudo_register_write): Delete.
518 (riscv_gdbarch_init): Remove all use of pseudo registers.
520 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
522 * record-btrace.c (btrace_print_lines): Replace cleanup
523 parameter with RAII equivalents.
524 (btrace_insn_history): Replace cleanup with RAII equivalents.
525 * ui-out.h (make_cleanup_ui_out_list_begin_end,
526 make_cleanup_ui_out_tuple_begin_end): Remove.
527 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
528 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
529 make_cleanup_ui_out_list_begin_end): Remove.
531 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
533 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
534 parameter types to std::vector. Use bool.
535 (record_btrace_wait): Replace VEC(tp_t) with
536 std::vector<thread_info *>.
537 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
539 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
541 * record-btrace.c (record_btrace_disable_callback): Remove.
542 (struct scoped_btrace_disable): New.
543 (record_btrace_open): Use scoped_btrace_disable.
545 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
547 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
548 reading values from registers.
550 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
552 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
555 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
557 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
558 change parameter type. Use GDB's print functions, and use
559 core_addr_to_string where appropriate.
560 (riscv_push_dummy_call): Use core_addr_to_string where
561 appropriate, update call to riscv_print_arg_location, and reindent
563 (riscv_return_value): Update call to riscv_print_arg_location.
565 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
566 Tim Newsome <tim@sifive.com>
567 Albert Ou <a0u@eecs.berkeley.edu>
568 Darius Rad <darius@bluespec.com>
570 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
571 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
572 (ALLDEPFILES): Add riscv-tdep.c
573 * configure.tgt: Add riscv support.
574 * riscv-tdep.c: New file.
575 * riscv-tdep.h: New file.
576 * NEWS: Mention new target.
577 * MAINTAINERS: Add entry for riscv.
579 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
581 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
582 fields within aggregates.
584 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
586 * record-btrace.c (btrace_print_lines): Change type of flags to
587 gdb_disassembly_flags.
589 2018-03-04 John Baldwin <jhb@FreeBSD.org>
591 * fbsd-nat.c: Include "inf-ptrace.h".
592 (USE_SIGTRAP_SIGINFO): Conditionally define.
593 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
594 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
595 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
597 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
599 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
601 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
602 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
603 "supports_stopped_by_hw_breakpoint" target methods.
605 2018-03-04 John Baldwin <jhb@FreeBSD.org>
607 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
608 * fbsd-nat.c (debug_fbsd_nat): New variable.
609 (show_fbsd_nat_debug): New function.
610 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
611 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
613 2018-03-04 John Baldwin <jhb@FreeBSD.org>
615 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
616 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
618 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
619 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
622 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
624 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
625 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
627 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
629 * charset.c (struct charset_vector): New.
630 (charsets): Change type to charset_vector.
631 (find_charset_names): Adjust.
633 (_initialize_charset): Adjust.
635 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
637 * progspace.h (struct program_space) <deleted_solibs>: Change
638 type to std::vector<std::string>.
639 * progspace.c (clear_program_space_solib_cache): Adjust.
640 * breakpoint.c (print_solib_event): Adjust.
641 (check_status_catch_solib): Adjust.
642 * solib.c (update_solib_list): Adjust.
643 * ui-out.h (class ui_out) <field_string>: New overload.
644 * ui-out.c (ui_out::field_string): New overload.
646 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
648 * progspace.h (struct program_space): Add constructor and
649 destructor, initialize fields.
650 (add_program_space): Remove.
651 * progspace.c (add_program_space): Rename to...
652 (program_space::program_space): ... this.
653 (release_program_space): Rename to...
654 (program_space::~program_space): ... this.
655 (delete_program_space): Use delete to delete program_space.
656 (initialize_progspace): Use new to allocate program_space.
657 * inferior.c (add_inferior_with_spaces): Likewise.
658 (clone_inferior_command): Likewise.
659 * infrun.c (follow_fork_inferior): Likewise.
660 (handle_vfork_child_exec_or_exit): Likewise.
662 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
664 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
665 (delim_string_to_char_ptr_vec): Return std::vector of
666 gdb::unique_xmalloc_ptr.
667 (dirnames_to_char_ptr_vec_append): Take std::vector of
668 gdb::unique_xmalloc_ptr.
669 (dirnames_to_char_ptr_vec): Return std::vector of
670 gdb::unique_xmalloc_ptr.
671 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
672 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
673 (delim_string_to_char_ptr_vec): Return an std::vector of
674 gdb::unique_xmalloc_ptr, adjust the code.
675 (dirnames_to_char_ptr_vec_append): Take an std::vector of
676 gdb::unique_xmalloc_ptr, adjust the code.
677 (dirnames_to_char_ptr_vec): Return an std::vector of
678 gdb::unique_xmalloc_ptr, adjust the code.
679 * auto-load.c (auto_load_safe_path_vec): Change type to
680 std::vector of gdb::unique_xmalloc_ptr.
681 (auto_load_expand_dir_vars): Return an std::vector of
682 gdb::unique_xmalloc_ptr, adjust the code.
683 (auto_load_safe_path_vec_update): Adjust.
684 (filename_is_in_auto_load_safe_path_vec): Adjust.
685 (auto_load_objfile_script_1): Adjust.
686 * build-id.c (build_id_to_debug_bfd): Adjust.
687 * linux-thread-db.c (thread_db_load_search): Adjust.
688 * source.c (add_path): Adjust.
690 * symfile.c (find_separate_debug_file): Adjust.
691 * utils.c (do_free_char_ptr_vec): Remove.
692 (make_cleanup_free_char_ptr_vec): Remove.
694 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
697 * common/pathstuff.c: Conditionally include "<windows.h>".
699 2018-03-01 Georg Sauthoff <mail@georg.so>
702 * gcore.in: Quote variables and switch interpreter to bash.
704 2018-03-01 Tom Tromey <tom@tromey.com>
706 * dwarf2read.c (alloc_discriminant_info): Fix default_index
707 assertion. Add assertion for discriminant_index.
708 (quirk_rust_enum): Use correct base type name in univariant case.
710 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
712 * record.c (get_call_history_modifiers): Return a
714 (cmd_record_call_history): Adjust.
715 * record-btrace.c (record_btrace_call_history): Adjust.
716 (record_btrace_call_history_range): Adjust.
717 (record_btrace_call_history_from): Adjust.
718 * target-debug.h (target_debug_print_record_print_flags): New.
719 * target-delegates.c: Re-generate.
720 * target.c (target_call_history): Change flags type.
721 (target_call_history_from): Likewise.
722 (target_call_history_range): Likewise.
723 * target.h (struct target_ops) <target_call_history>: Likewise.
724 (target_call_history_from): Likewise.
725 (target_call_history_range): Likewise.
727 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
728 Simon Marchi <simon.marchi@polymtl.ca>
730 * common/common-utils.c: Include "sys/stat.h".
731 (is_regular_file): Move here from "source.c"; change return
733 * common/common-utils.h (is_regular_file): New prototype.
734 * common/pathstuff.c (contains_dir_separator): New function.
735 * common/pathstuff.h (contains_dir_separator): New prototype.
736 * source.c: Don't include "sys/stat.h".
737 (is_regular_file): Move to "common/common-utils.c".
739 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
741 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
742 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
743 * auto-load.c: Include "common/pathstuff.h".
744 * common/common-def.h (current_directory): Move here.
745 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
747 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
749 * common/pathstuff.c: New file.
750 * common/pathstuff.h: New file.
751 * compile/compile.c: Include "common/pathstuff.h".
752 * defs.h (current_directory): Move to "common/common-defs.h".
753 * dwarf2read.c: Include "common/pathstuff.h".
755 * guile/scm-safe-call.c: Likewise.
756 * linux-thread-db.c: Likewise.
758 * nto-tdep.c: Likewise.
759 * objfiles.c: Likewise.
760 * source.c: Likewise.
761 * symtab.c: Likewise.
762 * utils.c: Include "common/pathstuff.h".
763 (gdb_realpath): Move to "common/pathstuff.c".
764 (gdb_realpath_keepfile): Likewise.
765 (gdb_abspath): Likewise.
766 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
767 (gdb_realpath_keepfile): Likewise.
768 (gdb_abspath): Likewise.
770 2018-02-28 John Baldwin <jhb@FreeBSD.org>
772 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
773 wildcard process pid for super_resume for kernels with a
776 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
778 * compile/compile.c (get_args): Add additional comments
781 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
782 Tom Tromey <tom@tromey.com>
784 * target.h (memory_write_request_s): Remove typedef. Don't define
786 (target_write_memory_blocks): Change argument to std::vector.
787 (struct memory_write_request): Add constructor.
788 * target-memory.c (compare_block_starting_address): Return bool.
789 Change argument types.
790 (claim_memory): Change arguments to use std::vector.
791 (split_regular_and_flash_blocks, blocks_to_erase)
792 (compute_garbled_blocks): Likewise.
793 (cleanup_request_data, cleanup_write_requests_vector): Remove.
794 (target_write_memory_blocks): Change argument to std::vector.
795 * symfile.c (struct load_section_data): Add constructor and
796 destructor. Use std::vector for "requests".
797 (struct load_progress_data): Add initializers.
798 (load_section_callback): Update. Use "new".
799 (clear_memory_write_data): Remove.
800 (generic_load): Update.
802 2018-02-27 Alan Hayward <alan.hayward@arm.com>
804 * arch/aarch64.h: Use common/tdesc.h.
806 2018-02-26 Maciej W. Rozycki <macro@mips.com>
808 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
809 architecture with a 64-bit ABI.
811 2018-02-26 Maciej W. Rozycki <macro@mips.com>
813 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
814 ahead of target description loading.
816 2018-02-26 Tom Tromey <tom@tromey.com>
818 * stack.c (backtrace_command_1): Update.
819 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
821 * python/py-framefilter.c (py_print_frame)
822 (gdbpy_apply_frame_filter): Change type of "flags".
823 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
825 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
826 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
827 * extension.h (enum frame_filter_flag): Rename from
829 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
830 (apply_ext_lang_frame_filter): Change type of "flags".
831 * extension.c (apply_ext_lang_frame_filter): Change type of
833 * extension-priv.h (struct extension_language_ops)
834 <apply_frame_filter>: Change type of "flags".
836 2018-02-26 Tom Tromey <tom@tromey.com>
839 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
840 off-by-one in py_end computation.
841 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
843 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
846 2018-02-26 Tom Tromey <tom@tromey.com>
848 * dwarf2read.c (struct variant_field): New.
849 (struct nextfield) <variant>: New field.
850 (dwarf2_add_field): Handle DW_TAG_variant_part.
851 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
853 (read_structure_type): Handle DW_TAG_variant_part.
854 (handle_struct_member_die): New function, extracted from
855 process_structure_scope. Handle DW_TAG_variant.
856 (process_structure_scope): Handle discriminated unions. Call
857 handle_struct_member_die.
859 2018-02-26 Tom Tromey <tom@tromey.com>
861 * rust-lang.h (rust_last_path_segment): Declare.
862 * rust-lang.c (rust_last_path_segment): Now public. Change
864 (struct disr_info): Remove.
865 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
866 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
867 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
868 (rust_enum_p, rust_enum_variant): New function.
869 (rust_underscore_fields): Remove "offset" parameter.
870 (rust_print_enum): New function.
871 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
872 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
873 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
875 (rust_internal_print_type): New function, from rust_print_type.
877 (rust_print_type): Call rust_internal_print_type.
878 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
879 Update enum handling.
880 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
881 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
882 (rust_union_quirks): New functions.
883 (process_full_comp_unit, process_full_type_unit): Call
885 (process_structure_scope): Update rust_unions if necessary.
887 2018-02-26 Tom Tromey <tom@tromey.com>
889 * value.h (value_union_variant): Declare.
890 * valops.c (value_union_variant): New function.
891 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
892 (struct discriminant_info): New.
893 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
895 (struct main_type) <flag_discriminated_union>: New field.
897 2018-02-26 Tom Tromey <tom@tromey.com>
899 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
900 unittests/unpack-selftests.c.
901 * unittests/unpack-selftests.c: New file.
902 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
904 2018-02-26 Yao Qi <yao.qi@linaro.org>
906 * dwarf2read.c (struct partial_die_info) <read>: New method.
907 (read_partial_die): Remove the declaration.
908 (load_partial_dies): Update.
909 (partial_die_info::partial_die_info):
910 (read_partial_die): Change it to partial_die_info::read.
912 2018-02-26 Yao Qi <yao.qi@linaro.org>
914 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
915 (fixup_partial_die): Remove declaration.
916 (scan_partial_symbols): Update.
917 (partial_die_parent_scope): Likewise.
918 (partial_die_full_name): Likewise.
919 (fixup_partial_die): Change it to partial_die_info::fixup.
921 2018-02-26 Yao Qi <yao.qi@linaro.org>
923 * dwarf2read.c (read_partial_die): Update the declaration.
924 (load_partial_dies): Caller update.
925 (read_partial_die): Remove one argument abbrev_len.
927 2018-02-26 Yao Qi <yao.qi@linaro.org>
929 * dwarf2read.c (struct partial_die_info): Add ctor, delete
931 (load_partial_dies): Use ctor and copy ctor.
932 (read_partial_die): Update.
933 (dwarf2_cu::find_partial_die): Use ctor.
935 2018-02-26 Yao Qi <yao.qi@linaro.org>
937 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
938 (find_partial_die_in_comp_unit): Change it to
939 dwarf2_cu::find_partial_die.
940 (find_partial_die): Update.
942 2018-02-26 Yao Qi <yao.qi@linaro.org>
944 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
947 2018-02-26 Yao Qi <yao.qi@linaro.org>
949 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
951 2018-02-26 Alan Hayward <alan.hayward@arm.com>
953 * arch/amd64.h: Use common/tdesc.h.
954 * arch/i386.c: Likewise.
955 * arch/i386.h: Likewise.
956 * arch/tic6x.c: Likewise.
957 * arch/tdesc.h: Move file from here...
958 * common/tdesc.h: ...to here.
959 * features/aarch64-core.c: Regenerate.
960 * features/aarch64-fpu.c: Regenerate.
961 * features/i386/32bit-avx.c: Regenerate.
962 * features/i386/32bit-avx512.c: Regenerate.
963 * features/i386/32bit-core.c: Regenerate.
964 * features/i386/32bit-linux.c: Regenerate.
965 * features/i386/32bit-mpx.c: Regenerate.
966 * features/i386/32bit-pkeys.c: Regenerate.
967 * features/i386/32bit-sse.c: Regenerate.
968 * features/i386/64bit-avx.c: Regenerate.
969 * features/i386/64bit-avx512.c: Regenerate.
970 * features/i386/64bit-core.c: Regenerate.
971 * features/i386/64bit-linux.c: Regenerate.
972 * features/i386/64bit-mpx.c: Regenerate.
973 * features/i386/64bit-pkeys.c: Regenerate.
974 * features/i386/64bit-segments.c: Regenerate.
975 * features/i386/64bit-sse.c: Regenerate.
976 * features/i386/x32-core.c: Regenerate.
977 * features/tic6x-c6xp.c: Regenerate.
978 * features/tic6x-core.c: Regenerate.
979 * features/tic6x-gp.c: Regenerate.
980 * target-descriptions.c: Use common/tdesc.h.
981 * target-descriptions.h: Likewise.
983 2018-02-24 Tom Tromey <tom@tromey.com>
985 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
986 (try_thread_db_load_from_dir, thread_db_load_search): Use
988 (info_auto_load_libthread_db_compare): Return bool. Change
990 (info_auto_load_libthread_db): Use std::vector, std::string.
993 2018-02-24 Tom Tromey <tom@tromey.com>
995 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
997 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
999 * gdbarch.c: Rebuild.
1000 * gdbarch.h: Rebuild.
1001 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1002 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1003 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1006 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1008 * gdbtypes.h (sect_offset): Change type to uint64_t.
1009 (sect_offset_str): New function.
1010 * dwarf2read.c (create_addrmap_from_aranges): Use
1012 (error_check_comp_unit_head): Likewise.
1013 (create_debug_type_hash_table): Likewise.
1014 (read_cutu_die_from_dwo): Likewise.
1015 (init_cutu_and_read_dies): Likewise.
1016 (init_cutu_and_read_dies_no_follow): Likewise.
1017 (process_psymtab_comp_unit_reader): Likewise.
1018 (partial_die_parent_scope): Likewise.
1019 (peek_die_abbrev): Likewise.
1020 (process_queue): Likewise.
1021 (dwarf2_physname): Likewise.
1022 (read_namespace_alias): Likewise.
1023 (read_import_statement): Likewise.
1024 (create_dwo_cu_reader): Likewise.
1025 (create_cus_hash_table): Likewise.
1026 (lookup_dwo_cutu): Likewise.
1027 (inherit_abstract_dies): Likewise.
1028 (read_func_scope): Likewise.
1029 (read_call_site_scope): Likewise.
1030 (dwarf2_add_member_fn): Likewise.
1031 (read_common_block): Likewise.
1032 (read_module_type): Likewise.
1033 (read_typedef): Likewise.
1034 (read_subrange_type): Likewise.
1035 (load_partial_dies): Likewise.
1036 (read_partial_die): Likewise.
1037 (find_partial_die): Likewise.
1038 (read_str_index): Likewise.
1039 (dwarf2_string_attr): Likewise.
1040 (build_error_marker_type): Likewise.
1041 (lookup_die_type): Likewise.
1042 (dump_die_shallow): Likewise.
1043 (follow_die_ref): Likewise.
1044 (dwarf2_fetch_die_loc_sect_off): Likewise.
1045 (dwarf2_fetch_constant_bytes): Likewise.
1046 (follow_die_sig): Likewise.
1047 (get_signatured_type): Likewise.
1048 (get_DW_AT_signature_type): Likewise.
1049 (dwarf2_find_containing_comp_unit): Likewise.
1050 (set_die_type): Likewise.
1052 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1054 * arch/aarch64.c: Include "common-defs.h".
1055 * arch/amd64.c: Likewise.
1056 * arch/i386.c: Likewise.
1058 2018-02-21 Tom Tromey <tom@tromey.com>
1060 * value.h: (extract_field_op): Update.
1061 * eval.c (extract_field_op): Return a const char *.
1062 * expression.h (parse_expression_for_completion): Update.
1063 * completer.c (complete_expression): Update.
1064 (add_struct_fields): Make fieldname const.
1065 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1066 (mark_completion_tag, parse_exp_in_context_1): Update.
1067 (parse_expression_for_completion): Change "name" to
1068 unique_xmalloc_ptr*.
1070 2018-02-21 Tom Tromey <tom@tromey.com>
1072 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1074 2018-02-21 Yao Qi <yao.qi@linaro.org>
1076 * avr-tdep.c (avr_read_pc): Change parameter type to
1078 * gdbarch.sh (read_pc): Likewise.
1079 * gdbarch.c: Re-generated.
1080 * gdbarch.h: Re-generated.
1081 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1083 * ia64-tdep.c (ia64_read_pc): Likewise.
1084 * mips-tdep.c (mips_read_pc): Likewise.
1085 * spu-tdep.c (spu_read_pc): Likewise.
1087 2018-02-21 Yao Qi <yao.qi@linaro.org>
1089 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1090 * regcache-dump.c: New file.
1091 * regcache.c: Move register_dump to regcache-dump.c.
1092 (maintenance_print_registers): Likewise.
1093 (maintenance_print_raw_registers): Likewise.
1094 (maintenance_print_cooked_registers): Likewise.
1095 (maintenance_print_register_groups): Likewise.
1096 (maintenance_print_remote_registers): Likewise.
1097 (_initialize_regcache): Likewise.
1098 * regcache.h (register_dump): Moved from regcache.c.
1100 2018-02-21 Yao Qi <yao.qi@linaro.org>
1102 * regcache.c (regcache::regcache): Update.
1103 (regcache::invalidate): Move it to detached_regcache::invalidate.
1104 (get_thread_arch_aspace_regcache): Update.
1105 (regcache::raw_update): Update.
1106 (regcache::cooked_read): Remove some code.
1107 (regcache::cooked_read_value): Likewise.
1108 (regcache::raw_write): Remove assert on m_readonly_p.
1109 (regcache::raw_supply_integer): Move it to
1110 detached_regcache::raw_supply_integer.
1111 (regcache::raw_supply_zeroed): Likewise.
1112 * regcache.h (detached_regcache) <raw_supply_integer>: New
1114 <raw_supply_zeroed, invalidate>: Likewise.
1115 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1116 <invalidate>: Likewise.
1117 <m_readonly_p>: Removed.
1119 2018-02-21 Yao Qi <yao.qi@linaro.org>
1121 * infcmd.c (get_return_value): Let stop_regs point to
1122 get_current_regcache.
1123 * regcache.c (regcache::regcache): Remove.
1124 (register_dump_reg_buffer): New class.
1125 (regcache_print): Adjust.
1126 * regcache.h (regcache): Remove constructors.
1128 2018-02-21 Yao Qi <yao.qi@linaro.org>
1130 * regcache.c (class register_dump): New class.
1131 (register_dump_regcache, register_dump_none): New class.
1132 (register_dump_remote, register_dump_groups): New class.
1133 (regcache_print): Update.
1134 * regcache.h (regcache_dump_what): Move it to regcache.c.
1135 (regcache) <dump>: Remove.
1137 2018-02-21 Yao Qi <yao.qi@linaro.org>
1139 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1141 (jit_unwind_reg_set_impl): Call raw_supply.
1142 (jit_frame_sniffer): Use reg_buffer_rw.
1143 * record-full.c (record_full_core_regbuf): Change its type.
1144 (record_full_core_open_1): Use reg_buffer_rw.
1145 (record_full_close): Likewise.
1146 (record_full_core_fetch_registers): Use regcache->raw_supply.
1147 (record_full_core_store_registers): Likewise.
1148 * regcache.c (regcache::get_register_status): Move it to
1150 (regcache_raw_set_cached_value): Remove.
1151 (regcache::raw_set_cached_value): Remove.
1152 (regcache::raw_write): Call raw_supply.
1153 (regcache::raw_supply): Move it to reg_buffer_rw.
1154 * regcache.h (regcache_raw_set_cached_value): Remove.
1155 (reg_buffer_rw): New class.
1157 2018-02-21 Yao Qi <yao.qi@linaro.org>
1159 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1160 readonly_detached_regcache.
1161 (dummy_frame_prev_register): Use regcache->cooked_read.
1162 * frame.c (frame_save_as_regcache): Change return type.
1163 (frame_pop): Update.
1164 * frame.h (frame_save_as_regcache): Update declaration.
1165 * inferior.h (get_infcall_suspend_state_regcache): Update
1167 * infrun.c (infcall_suspend_state) <registers>: use
1168 readonly_detached_regcache.
1169 (save_infcall_suspend_state): Don't use regcache_dup.
1170 (get_infcall_suspend_state_regcache): Change return type.
1171 * linux-fork.c (struct fork_info) <savedregs>: Change to
1172 readonly_detached_regcache.
1174 (fork_save_infrun_state): Don't use regcache_dup.
1175 (info_checkpoints_command): Adjust.
1176 * mi/mi-main.c (register_changed_p): Update declaration.
1177 (mi_cmd_data_list_changed_registers): Use
1178 readonly_detached_regcache.
1179 (register_changed_p): Change parameter type to
1180 readonly_detached_regcache.
1181 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1182 readonly_detached_regcache.
1183 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1184 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1186 (regcache::save): Move it to reg_buffer.
1187 (regcache::restore): Change parameter type.
1188 (regcache_dup): Remove.
1189 * regcache.h (reg_buffer) <save>: New method.
1190 (readonly_detached_regcache): New class.
1191 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1192 readonly_detached_regcache.
1193 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1195 2018-02-21 Yao Qi <yao.qi@linaro.org>
1197 * frame.c (frame_save_as_regcache): Use regcache method save.
1198 (frame_pop): Use regcache method restore.
1199 * infrun.c (restore_infcall_suspend_state): Likewise.
1200 * linux-fork.c (fork_load_infrun_state): Likewise.
1201 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1203 * regcache.c (regcache_save): Remove.
1204 (regcache::restore): More asserts.
1205 (regcache_cpy): Remove.
1206 * regcache.h (regcache_save): Remove the declaration.
1207 (regcache::restore): Move from private to public.
1208 Remove the friend declaration of regcache_cpy.
1209 (regcache_cpy): Remove declaration.
1211 2018-02-21 Yao Qi <yao.qi@linaro.org>
1213 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1214 parameter type to 'readable_regcache *'.
1215 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1216 * arm-tdep.c (arm_neon_quad_read): Likewise.
1217 (arm_pseudo_read): Likewise.
1218 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1219 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1220 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1221 * gdbarch.c: Re-generated.
1222 * gdbarch.h: Re-generated.
1223 * gdbarch.sh (pseudo_register_read): Change parameter type to
1224 'readable_regcache *'.
1225 (pseudo_register_read_value): Likewise.
1226 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1227 (h8300_pseudo_register_read): Likewise.
1228 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1229 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1230 (i386_pseudo_register_read_into_value): Likewise.
1231 (i386_pseudo_register_read_value): Likewise.
1232 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1234 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1235 * m32c-tdep.c (m32c_raw_read): Likewise.
1236 (m32c_read_flg): Likewise.
1237 (m32c_banked_register): Likewise.
1238 (m32c_banked_read): Likewise.
1239 (m32c_sb_read): Likewise.
1240 (m32c_part_read): Likewise.
1241 (m32c_cat_read): Likewise.
1242 (m32c_r3r2r1r0_read): Likewise.
1243 (m32c_pseudo_register_read): Likewise.
1244 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1245 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1246 (mep_pseudo_cr64_read): Likewise.
1247 (mep_pseudo_register_read): Likewise.
1248 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1249 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1250 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1251 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1252 (regcache::cooked_read): Likewise.
1253 (regcache::cooked_read_value): Likewise.
1254 (regcache_cooked_read_signed):
1255 (regcache::cooked_read): Likewise.
1256 * regcache.h (readable_regcache): New class.
1257 (regcache): Inherit readable_regcache. Move some methods to
1259 * rl78-tdep.c (rl78_pseudo_register_read): Change
1260 parameter type to 'readable_regcache *'.
1261 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1262 (e500_pseudo_register_read): Change parameter type to
1263 'readable_regcache *'.
1264 (dfp_pseudo_register_read): Likewise.
1265 (vsx_pseudo_register_read): Likewise.
1266 (efpr_pseudo_register_read): Likewise.
1267 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1268 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1269 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1270 (sh64_pseudo_register_read): Likewise.
1271 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1272 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1273 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1274 (spu_pseudo_register_read): Likewise.
1275 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1276 (xtensa_pseudo_register_read): Likewise.
1278 2018-02-21 Yao Qi <yao.qi@linaro.org>
1280 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1281 (regcache::arch): Move it to reg_buffer::arch.
1282 (regcache::register_buffer): Likewise.
1283 (regcache::assert_regnum): Likewise.
1284 (regcache::num_raw_registers): Likewise.
1285 * regcache.h (reg_buffer): New class.
1286 (regcache): Inherit reg_buffer.
1288 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1290 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1291 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1293 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1295 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1297 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1299 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1300 (SFILES): Remove common/*.c files.
1301 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1302 * common/common.host: Add common reference.
1303 * configure.ac: Likewise.
1304 * configure: Regenerate.
1306 2018-02-16 Yao Qi <yao.qi@linaro.org>
1308 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1309 (block_initialize_namespace): Use new.
1310 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1311 (dwarf2_free_objfile): Use delete.
1312 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1313 (copy_type_recursive): Use new.
1314 * gdb_obstack.h (allocate_on_obstack): New.
1316 2018-02-15 Yao Qi <yao.qi@linaro.org>
1319 * inferior.c (exit_inferior_1): Reset inf->control.
1321 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1323 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1326 2018-02-14 Pedro Alves <palves@redhat.com>
1328 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1329 frame_cleanup_after_sniffer on exception.
1331 2018-02-14 Tom Tromey <tom@tromey.com>
1333 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1335 (solib_bfd_open): Make pathname const.
1336 * solib.c (solib_bfd_open): Make pathname const.
1337 * solib-spu.c (spu_bfd_fopen): Make name const.
1338 (spu_bfd_open): Make pathname const.
1339 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1340 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1342 2018-02-14 Tom Tromey <tom@tromey.com>
1344 * symfile.c (symfile_bfd_open): Update.
1345 * source.h (openp, source_full_path_of, find_and_open_source):
1346 Change argument type to unique_xmalloc_ptr.
1347 * source.c (openp): Take a unique_xmalloc_ptr.
1348 (source_full_path_of, find_and_open_source): Likewise.
1349 (open_source_file, symtab_to_fullname): Update.
1350 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1352 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1353 (exec_file_find): Update.
1354 * psymtab.c (psymtab_to_fullname): Update.
1355 * nto-tdep.h (nto_find_and_open_solib): Update.
1356 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1358 * exec.c (exec_file_attach): Update.
1359 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1360 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1362 2018-02-14 Tom Tromey <tom@tromey.com>
1364 * solib.c: Include source.h.
1365 * nto-tdep.c: Include source.h.
1366 * mi/mi-cmd-env.c: Include source.h.
1367 * infcmd.c: Include source.h.
1368 * exec.c: Include source.h.
1369 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1370 (add_path, directory_switch, source_path, init_source_path): Move
1372 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1373 (add_path, directory_switch, source_path, init_source_path):
1376 2018-02-14 Tom Tromey <tom@tromey.com>
1378 * solist.h (exec_file_find, solib_find): Return
1380 (solib_bfd_fopen): Take a const char *.
1381 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1382 (exec_file_find, solib_find): Likewise.
1383 (solib_bfd_fopen): Do not take ownership of "pathname".
1384 (solib_bfd_open): Use unique_xmalloc_ptr.
1385 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1386 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1387 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1388 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1390 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1392 * ada-lang.c (name_match_type_from_name): Remove reference to
1393 ada_name_for_lookup in function's documentation.
1394 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1396 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1398 * defs.h (enum openp_flags): New enum.
1399 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1400 Move to enum openp_flags.
1401 (openp_flags): New enum flags.
1402 (openp): Change parameter type to openp_flags.
1403 * source.c (openp): Change parameter type to openp_flags.
1404 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1405 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1407 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1409 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1412 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1414 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1416 (class dwarf2_queue_guard): ...the destructor of this new class.
1417 (dw2_do_instantiate_symtab): Create instance of the new class
1418 dwarf2_queue_guard, remove cleanup.
1420 2018-02-09 Tom Tromey <tom@tromey.com>
1422 * source.c (find_source_lines): Don't reference past the end of
1425 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1427 * remote.c (remote_btrace_maybe_reopen): Change error message.
1428 * btrace.c (btrace_enable): Likewise.
1429 (parse_xml_btrace): Likewise.
1430 (parse_xml_btrace_conf): Likewise.
1432 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1434 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1435 (linux_enable_pt, linux_enable_bts): Call
1436 diagnose_perf_event_open_fail.
1438 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1440 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1441 Remove parameter and change return type. Update callers. Move it.
1442 (linux_enable_bts, linux_enable_pt): Improve error message.
1443 (linux_enable_pt): Remove zero buffer size check.
1444 (linux_enable_btrace): Improve error messages. Remove NULL return
1447 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1449 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1450 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1451 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1452 (linux_supports_pt, linux_supports_btrace): Remove.
1453 (linux_enable_bts): Call cpu_supports_bts.
1454 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1455 * remote.c (remote_supports_btrace): Remove.
1456 (init_remote_ops): Remove remote_supports_btrace.
1457 * target-delegates.c: Regenerated.
1458 * target.c (target_supports_btrace): Remove.
1459 * target.h (target_ops) <to_supports_btrace>: Remove
1460 (target_supports_btrace): Remove.
1461 * x86-linux-nat.c (x86_linux_create_target): Remove
1462 linux_supports_btrace.
1464 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1466 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1468 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1469 exception and use message in own exception.
1471 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1473 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1474 (perf_event_pt_event_type): Use gdb_file_up.
1475 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1476 scoped_fd, and scoped_mmap.
1478 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1480 * common/scoped_mmap.h: New.
1481 * unittests/scoped_mmap-selftest.c: New.
1482 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1483 unittests/scoped_mmap-selftest.c.
1485 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1487 * common/scoped_fd.h: New.
1488 * unittests/scoped_fd-selftest.c: New.
1489 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1490 unittests/scoped_fd-selftest.c.
1492 2018-02-09 Tom Tromey <tom@tromey.com>
1494 * auto-load.c (auto_load_section_scripts): Use
1495 gdb::unique_xmalloc_ptr.
1497 2018-02-09 Tom Tromey <tom@tromey.com>
1499 * auto-load.c (execute_script_contents): Use std::string.
1501 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1503 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1504 Python function, rather than a new command.
1506 2018-02-08 Tom Tromey <tom@tromey.com>
1508 * solib.c (solib_find_1): Use std::string.
1509 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1511 2018-02-08 Tom Tromey <tom@tromey.com>
1513 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1515 2018-02-08 Tom Tromey <tom@tromey.com>
1517 * source.c (find_source_lines): Use gdb::def_vector.
1519 2018-02-08 Tom Tromey <tom@tromey.com>
1521 * macrocmd.c (struct temporary_macro_definition): New.
1522 (macro_define_command): Use temporary_macro_definition. Remove
1524 (free_macro_definition_ptr): Remove.
1526 2018-02-08 Tom Tromey <tom@tromey.com>
1528 * macroexp.c (maybe_expand): Use std::string.
1530 2018-02-08 Tom Tromey <tom@tromey.com>
1532 * macroexp.c (struct macro_buffer): Add initializers for some
1534 (init_buffer, init_shared_buffer, free_buffer)
1535 (free_buffer_return_text): Remove.
1536 (macro_buffer): New constructors.
1537 (~macro_buffer): New destructor.
1538 (macro_buffer::set_shared): New method.
1539 (macro_buffer::resize_buffer, macro_buffer::appendc)
1540 (macro_buffer::appendmem): Now methods, not free functions.
1541 (set_token, append_tokens_without_splicing, stringify)
1542 (macro_stringify): Update.
1543 (gather_arguments): Change return type. Remove argc_p argument,
1544 add args_ptr argument. Use std::vector.
1545 (substitute_args): Remove argc argument. Accept std::vector.
1546 (expand): Update. Use std::vector.
1547 (scan, macro_expand, macro_expand_next): Update.
1549 2018-02-08 Tom Tromey <tom@tromey.com>
1551 * symtab.c (default_collect_symbol_completion_matches_break_on):
1552 Use unique_xmalloc_ptr.
1553 * macroscope.h: (sal_macro_scope, user_macro_scope)
1554 (default_macro_scope): Return unique_xmalloc_ptr.
1555 * macroscope.c (sal_macro_scope, user_macro_scope)
1556 (default_macro_scope): Return unique_xmalloc_ptr.
1557 * macroexp.h (macro_expand, macro_expand_once): Return
1559 * macroexp.c (macro_expand, macro_expand_once): Return
1561 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1562 (info_macro_command, info_macros_command): Use
1564 * compile/compile-c-support.c (write_macro_definitions): Use
1566 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1568 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1570 * value.c (value_static_field): Assign field type instead of
1571 containing type when returning an optimized out value.
1573 2018-02-06 Yao Qi <yao.qi@linaro.org>
1575 * ft32-tdep.c (ft32_read_pc): Remove.
1576 (ft32_write_pc): Remove.
1577 (ft32_gdbarch_init): Update.
1578 * m32r-tdep.c (m32r_read_pc): Remove.
1579 (m32r_gdbarch_init): Update.
1580 * mep-tdep.c (mep_read_pc): Remove.
1581 (mep_gdbarch_init): Update.
1582 * microblaze-tdep.c (microblaze_write_pc): Remove.
1583 (microblaze_gdbarch_init): Update.
1584 * mn10300-tdep.c (mn10300_read_pc): Remove.
1585 (mn10300_write_pc): Remove.
1586 (mn10300_gdbarch_init): Update.
1587 * moxie-tdep.c (moxie_read_pc): Remove.
1588 (moxie_write_pc): Remove.
1589 (moxie_gdbarch_init): Update.
1591 2018-02-06 Yao Qi <yao.qi@linaro.org>
1593 * expprint.c (print_subexp_standard): Handle
1594 OP_F77_UNDETERMINED_ARGLIST.
1595 (dump_subexp_body_standard): Likewise.
1597 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1599 * target-descriptions.c (tdesc_element_visitor) Add empty
1601 (tdesc_type): Move make_gdb_type from here.
1602 (tdesc_type_builtin): Likewise.
1603 (tdesc_type_vector): Likewise.
1604 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1605 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1606 (make_gdb_type_union): Likewise.
1607 (make_gdb_type_flags): Likewise.
1608 (make_gdb_type_enum): Likewise.
1609 (make_gdb_type): New function.
1610 (tdesc_register_type): Use static make_gdb_type.
1612 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1614 * infcmd.c (default_print_one_register_info): Align natural-format
1615 column values consistently one under another.
1616 (pad_to_column): New function.
1618 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1620 * dwarf2read.c (dwarf2_physname): Move commment.
1622 2018-02-01 Leszek Swirski <leszeks@google.com>
1624 * varobj.c (varobj_formatted_print_options): Allow recursive
1625 pretty printing if pretty printing is enabled.
1627 2018-02-01 Leszek Swirski <leszeks@google.com>
1629 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1630 names after a structop as a filename.
1632 2018-02-01 Yao Qi <yao.qi@linaro.org>
1634 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1635 (arm_record_coproc_data_proc): Likewise.
1637 2018-02-01 Yao Qi <yao.qi@linaro.org>
1639 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1641 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1643 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1644 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1646 2018-01-31 Pedro Alves <palves@redhat.com>
1648 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1649 * inflow.c (child_terminal_save_inferior): Wrap reference to
1650 tcgetpgrp in HAVE_TERMIOS_H.
1651 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1653 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1654 always iterate over all inferiors.
1655 (gdbsim_cntrl_c): Adjust.
1656 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1658 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1660 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1661 index type is objfile-owned if the element type is as well.
1663 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1667 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1669 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1670 "features/s390x-linux64.c".
1671 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1672 s390_linux32 and s390x_linux64.
1673 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1675 * s390-tdep.c: Include "features/s390-linux32.c" and
1676 "features/s390x-linux64.c".
1677 (s390_tdesc_valid): Add check for tdesc_has_registers.
1678 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1679 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1680 tdesc_s390x_linux64.
1681 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1682 tdesc_s390x_linux64 to...
1683 * s390-tdep.h: ...here.
1685 2018-01-30 Pedro Alves <palves@redhat.com>
1688 * config.in, configure: Regenerate.
1689 * configure.ac: Check for getpgid.
1690 * go32-nat.c (go32_pass_ctrlc): New.
1691 (go32_target): Install it.
1692 * inf-child.c (inf_child_target): Install
1693 child_terminal_save_inferior, child_pass_ctrlc and
1695 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1696 (inf_ptrace_target): No longer install it.
1697 * infcmd.c (interrupt_target_1): Adjust.
1698 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1699 (child_interrupt): Declare.
1700 (inferior::terminal_state): New.
1701 * inflow.c (struct terminal_info): Update comments.
1702 (inferior_process_group): Delete.
1703 (terminal_is_ours): Delete.
1704 (gdb_tty_state): New.
1705 (child_terminal_init): Adjust.
1706 (is_gdb_terminal, sharing_input_terminal_1)
1707 (sharing_input_terminal): New functions.
1708 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1709 Set the process's actual process group in the foreground if
1710 possible. Handle is_ours_for_output/is_ours distinction. Don't
1711 mark terminal as the inferior's if not sharing GDB's terminal.
1712 Don't check attach_flag.
1713 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1714 pass down a target_terminal_state.
1715 (child_terminal_save_inferior): New, factored out from ...
1716 (child_terminal_ours_1): ... this. Handle
1717 target_terminal_state::is_ours_for_output.
1718 (child_interrupt, child_pass_ctrlc): New.
1719 (inflow_inferior_exit): Clear the inferior's terminal_state.
1720 (copy_terminal_info): Copy the inferior's terminal state.
1721 (_initialize_inflow): Remove reference to terminal_is_ours.
1722 * inflow.h (inferior_process_group): Delete.
1723 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1724 * procfs.c (procfs_target): Don't install procfs_interrupt.
1725 (procfs_interrupt): Delete.
1726 * remote.c (remote_serial_quit_handler): Adjust.
1727 (remote_interrupt): Remove ptid parameter. Adjust.
1728 * target-delegates.c: Regenerate.
1729 * target.c: Include "terminal.h".
1730 (target_terminal::terminal_state): Rename to ...
1731 (target_terminal::m_terminal_state): ... this.
1732 (target_terminal::init): Adjust.
1733 (target_terminal::inferior): Adjust to per-inferior
1735 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1736 (target_terminal::ours, target_terminal::ours_for_output): Use
1737 target_terminal_is_ours_kind.
1738 (target_interrupt): Remove ptid parameter. Adjust.
1739 (default_target_pass_ctrlc): Adjust.
1740 * target.h (target_ops::to_terminal_save_inferior): New field.
1741 (target_ops::to_interrupt): Remove ptid_t parameter.
1742 (target_interrupt): Remove ptid_t parameter. Update comment.
1743 (target_pass_ctrlc): Update comment.
1744 * target/target.h (target_terminal_state): New scoped enum,
1746 (target_terminal::terminal_state): ... here.
1747 (target_terminal::inferior): Update comments.
1748 (target_terminal::restore_inferior): New.
1749 (target_terminal::is_inferior, target_terminal::is_ours)
1750 (target_terminal::is_ours_for_output): Adjust.
1751 (target_terminal::scoped_restore_terminal_state): Adjust to
1752 rename, and call restore_inferior() instead of inferior().
1753 (target_terminal::scoped_restore_terminal_state::m_state): Change
1755 (target_terminal::terminal_state): Rename to ...
1756 (target_terminal::m_terminal_state): ... this and change type.
1758 2018-01-30 Pedro Alves <palves@redhat.com>
1760 * linux-nat.c (wait_for_signal): New function.
1761 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1763 (async_terminal_is_ours)
1764 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1765 (linux_nat_add_target): Don't override
1766 to_terminal_inferior/to_terminal_ours.
1768 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1770 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1772 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1774 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1775 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1776 dwarf2_per_objfile_free here.
1777 (dwarf2_per_objfile_free): Remove.
1778 (_initialize_dwarf2_read): Don't register
1779 dwarf2_per_objfile_free as a registry cleanup.
1781 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1783 Avoid compilation errors in MinGW native builds
1785 The error is triggered by including python-internal.h, and the
1788 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1789 from build-gnulib/import/math.h:27,
1790 from d:/usr/Python26/include/pyport.h:235,
1791 from d:/usr/Python26/include/Python.h:58,
1792 from python/python-internal.h:94,
1793 from python/py-arch.c:24:
1794 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1798 This happens because Python headers define 'hypot' to expand t
1799 '_hypot' in the Windows builds.
1800 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1801 'hypoth'. This avoids a compilation error.
1803 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1805 * MAINTAINERS (Write After Approval): Fix ordering.
1807 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1809 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1811 2018-01-26 Alan Modra <amodra@gmail.com>
1813 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1814 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1815 Remove nop. Make const. Comment.
1816 (powerpc32_plt_stub_so_2): New.
1817 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1818 Correct count. Update uses.
1819 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1820 Move common code reading PLT entry word. Correct
1821 powerpc32_plt_stub PLT address calculation.
1822 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1823 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1824 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1825 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1826 (ppc64_standard_linkage8): Likewise.
1827 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1828 Correct insns description.
1829 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1831 2018-01-24 Pedro Alves <palves@redhat.com>
1833 GCC PR libstdc++/83906
1834 * gdbtypes.c (operator==(const dynamic_prop &,
1835 const dynamic_prop &)): New.
1836 (operator==(const range_bounds &, const range_bounds &)): New.
1837 (check_types_equal): Use them instead of memcmp.
1838 * gdbtypes.h (operator==(const dynamic_prop &,
1839 const dynamic_prop &)): Declare.
1840 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1841 (operator==(const range_bounds &, const range_bounds &)): Declare.
1842 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1844 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1846 * s390-linux-tdep.c (s390_record_address_mask)
1847 (s390_record_calc_disp_common, s390_record_calc_disp)
1848 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1849 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1850 (s390_process_record): Move to s390-tdep.c.
1851 (s390_linux_init_abi_any): Adjust.
1852 * s390-tdep.c (s390_record_address_mask)
1853 (s390_record_calc_disp_common, s390_record_calc_disp)
1854 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1855 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1856 (s390_process_record): Moved from s390-linux-tdep.c
1857 (s390_gdbarch_init): Adjust.
1859 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1861 * s390-linux-nat.c (s390-tdep.h): New include.
1862 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1863 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1864 (ALLDEPFILES): Add s390-tdep.c.
1865 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1866 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1867 * s390-tdep.h: ...this. New file.
1868 * s390-linux-tdep.c (s390-tdep.h): New include.
1869 (_initialize_s390_tdep): Rename to...
1870 (_initialize_s390_linux_tdep): ...this and adjust.
1871 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1872 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1874 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1875 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1876 (s390_is_partial_instruction, s390_software_single_step)
1877 (is_non_branch_ril, s390_displaced_step_copy_insn)
1878 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1879 (s390_prologue_data, s390_addr, s390_store, s390_load)
1880 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1881 (s390_register_call_saved, s390_guess_tracepoint_registers)
1882 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1883 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1884 (s390_pseudo_register_name, s390_pseudo_register_type)
1885 (s390_pseudo_register_read, s390_pseudo_register_write)
1886 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1887 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1888 (s390_addr_bits_remove, s390_address_class_type_flags)
1889 (s390_address_class_type_flags_to_name)
1890 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1891 (s390_function_arg_float, s390_function_arg_vector)
1892 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1893 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1894 (s390_frame_align, s390_register_return_value, s390_return_value)
1895 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1896 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1897 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1898 (s390_trad_frame_prev_register, s390_unwind_cache)
1899 (s390_prologue_frame_unwind_cache)
1900 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1901 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1902 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1903 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1904 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1905 (s390_frame_base_address, s390_local_base_address)
1906 (s390_frame_base, s390_gcc_target_options)
1907 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1908 (s390_validate_reg_range, s390_tdesc_valid)
1909 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1910 * s390-tdep.c: ...this. New file.
1912 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1914 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1915 (s390_process_record, s390_gdbarch_tdep_alloc)
1916 (s390_linux_init_abi_any): Use/set new hook.
1918 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1920 * s390-linux-tdep.c (osabi.h): New include.
1921 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1922 (s390_linux_init_abi_any): New functions.
1923 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1925 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1927 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1928 tdesc_has_registers check
1930 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1932 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1933 (s390_validate_reg_range): New macro.
1934 (s390_gdbarch_init): Adjust.
1936 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1938 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1939 (s390_gdbarch_tdep_alloc): Adjust.
1940 (s390_gdbarch_init): Adjust.
1942 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1944 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1945 <have_tdb>: Change type to bool.
1946 (s390_gdbarch_tdep_alloc): Adjust.
1947 (s390_gdbarch_init): Adjust.
1949 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1951 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1952 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1953 (s390_gdbarch_tdep_alloc): New function.
1954 (s390_gdbarch_init): Allocate tdep at start and use its fields
1955 instead of separate variables.
1957 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1959 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1960 when looking for cached gdbarch and add comment for remaining.
1962 2018-01-22 Pedro Alves <palves@redhat.com>
1963 Sergio Durigan Junior <sergiodj@redhat.com>
1965 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1968 2018-01-22 Maciej W. Rozycki <macro@mips.com>
1970 * MAINTAINERS: Update my company e-mail address.
1972 2018-01-22 Yao Qi <yao.qi@linaro.org>
1974 * regcache.c (cooked_write_test): New function.
1975 (_initialize_regcache): Register the test.
1977 2018-01-22 Yao Qi <yao.qi@linaro.org>
1979 * ia64-tdep.c (ia64_pseudo_register_read): Call
1980 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1981 * m32c-tdep.c (m32c_cat_read): Likewise.
1982 (m32c_r3r2r1r0_read): Likewise.
1983 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1984 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1986 2018-01-22 Yao Qi <yao.qi@linaro.org>
1988 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1989 method raw_read instead of regcache_raw_read.
1990 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1991 * arm-tdep.c (arm_neon_quad_read): Likewise.
1992 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1993 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1994 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1995 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1996 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1997 (i386_pseudo_register_read_into_value): Likewise.
1998 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1999 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2000 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2001 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2002 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2003 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2004 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2005 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2006 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2008 2018-01-22 Yao Qi <yao.qi@linaro.org>
2010 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2011 * configure.tgt: Remove target mt.
2012 * mt-tdep.c: Remove.
2013 * regcache.c (cooked_read_test): Remove the check for mt.
2015 2018-01-22 Yao Qi <yao.qi@linaro.org>
2017 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2018 instead of gdbarch_pseudo_register_read_value.
2020 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2022 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2025 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2027 * linespec.c (create_sals_line_offset): Remove code that preserved
2028 the symtab_and_line's line number.
2030 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2032 * varobj.c (varobj_create): Don't set valid_block when creating a
2035 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2037 * varobj.c (varobj_create): Remove out of date comment.
2039 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2042 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2043 updating innermost block.
2044 * parse.c (innermost_block_tracker::update): Take extra type
2045 parameter, and check types match before updating innermost block.
2046 (write_dollar_variable): Update innermost block for registers.
2047 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2048 (innermost_block_tracker::innermost_block_tracker): Initialise
2050 (innermost_block_tracker::reset): Take type parameter.
2051 (innermost_block_tracker::update): Take type parameter, and pass
2052 type through as needed.
2053 (innermost_block_tracker::m_types): New member.
2054 * varobj.c (varobj_create): Pass type when reseting innermost
2057 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2059 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2060 * ada-lang.c (resolve_subexp): Likewise.
2061 * breakpoint.c (set_breakpoint_condition) Likewise.
2062 (watch_command_1) Likewise.
2063 * c-exp.y (variable): Likewise.
2064 * d-exp.y (PrimaryExpression): Likewise.
2065 * f-exp.y (variable): Likewise.
2066 * go-exp.y (variable): Likewise.
2067 * m2-exp.y (variable): Likewise.
2068 * objfiles.c (objfile::~objfile): Likewise.
2069 * p-exp.y (variable): Likewise.
2070 * parse.c (innermost_block): Change type.
2071 * parser-defs.h (class innermost_block_tracker): New.
2072 (innermost_block): Change to innermost_block_tracker.
2073 * printcmd.c (display_command): Switch to innermost_block API.
2074 (do_one_display): Likewise.
2075 * rust-exp.y (do_one_display): Likewise.
2076 * symfile.c (clear_symtab_users): Likewise.
2077 * varobj.c (varobj_create): Switch to innermost_block API, replace
2078 use of innermost_block with block stored on varobj object.
2080 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2082 * expression.h (innermost_block): Remove declaration.
2083 * varobj.c: Add 'parser-defs.h' include.
2085 2018-01-19 Tom Tromey <tom@tromey.com>
2087 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2088 symbols in the static and global blocks.
2090 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2092 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2093 gdb_ptrace.h, and move including gdb_wait.h ...
2094 * nat/linux-ptrace.h: ... to here.
2096 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2098 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2099 inf_ptrace_detach_success.
2100 (inf_ptrace_detach_success): Add inferior parameter, use it
2101 instead of inferior_ptid, pass it to detach_inferior.
2102 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2104 * inferior.c (detach_inferior): Add overload that takes an
2106 * inferior.h (detach_inferior): Likewise.
2107 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2108 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2109 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2111 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2113 * target.h (struct target_ops) <to_detach>: Add inferior
2115 (target_detach): Likewise.
2116 * target.c (dispose_inferior): Pass inferior down.
2117 (target_detach): Pass inferior down. Assert that it is equal to
2118 the current inferior.
2119 * aix-thread.c (aix_thread_detach): Pass inferior down.
2120 * corefile.c (core_file_command): Pass current_inferior() down.
2121 * corelow.c (core_detach): Add inferior parameter.
2122 * darwin-nat.c (darwin_detach): Likewise.
2123 * gnu-nat.c (gnu_detach): Likewise.
2124 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2125 * infcmd.c (detach_command): Pass current_inferior() down to
2127 * infrun.c (follow_fork_inferior): Pass parent_inf to
2129 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2131 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2132 * linux-thread-db.c (thread_db_detach): Likewise.
2133 * nto-procfs.c (procfs_detach): Likewise.
2134 * procfs.c (procfs_detach): Likewise.
2135 * record.c (record_detach): Likewise.
2136 * record.h (struct inferior): Forward-declare.
2137 (record_detach): Add inferior parameter.
2138 * remote-sim.c (gdbsim_detach): Likewise.
2139 * remote.c (remote_detach_1): Likewise.
2140 (remote_detach): Likewise.
2141 (extended_remote_detach): Likewise.
2142 * sol-thread.c (sol_thread_detach): Likewise.
2143 * target-debug.h (target_debug_print_inferior_p): New macro.
2144 * target-delegates.c: Re-generate.
2145 * top.c (kill_or_detach): Pass inferior down to target_detach.
2146 * windows-nat.c (windows_detach): Add inferior parameter.
2148 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2150 * target.h (struct target_ops) <to_detach>: Remove args
2152 (target_detach): Likewise.
2153 * target.c (dispose_inferior): Adjust.
2154 (target_detach): Remove args parameter, adjust.
2155 * aix-thread.c (aix_thread_detach): Adjust.
2156 * corefile.c (core_file_command): Adjust.
2157 * corelow.c (core_detach): Adjust.
2158 * darwin-nat.c (darwin_detach): Adjust.
2159 * gnu-nat.c (gnu_detach): Adjust.
2160 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2161 * infcmd.c (detach_command): Adjust
2162 * infrun.c (follow_fork_inferior): Adjust.
2163 (handle_vfork_child_exec_or_exit): Adjust.
2164 * linux-fork.c (linux_fork_detach): Remove args parameter.
2165 * linux-fork.h (linux_fork_detach): Likewise.
2166 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2167 * linux-thread-db.c (thread_db_detach): Likewise.
2168 * nto-procfs.c (procfs_detach): Likewise.
2169 * procfs.c (procfs_detach): Likewise.
2170 (do_detach): Remove signo parameter.
2171 * record.c (record_detach): Remove args parameter.
2172 * record.h (record_detach): Likewise.
2173 * remote-sim.c (gdbsim_detach): Likewise.
2174 * remote.c (remote_detach_1): Likewise.
2175 (remote_detach): Likewise.
2176 (extended_remote_detach): Likewise.
2177 * sol-thread.c (sol_thread_detach): Likewise.
2178 * target-delegates.c: Re-generate.
2179 * top.c (struct qt_args) <args>: Remove field.
2180 (kill_or_detach): Don't pass args.
2181 (quit_force): Don't set args.
2182 * windows-nat.c (windows_detach): Remove args parameter.
2184 2018-01-19 Yao Qi <yao.qi@linaro.org>
2186 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2187 (arm_linux_init_abi): Install it.
2189 2018-01-19 Yao Qi <yao.qi@linaro.org>
2191 * osabi.c (gdb_osabi_names): Extend the regexp for
2192 arm-linux-gnueabihf.
2194 2018-01-18 Yao Qi <yao.qi@linaro.org>
2196 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2198 (abbrev_table::add_abbrev): Update.
2199 (abbrev_table::lookup_abbrev): Update.
2201 2018-01-18 Yao Qi <yao.qi@linaro.org>
2203 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2205 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2207 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2210 2018-01-17 Tom Tromey <tom@tromey.com>
2212 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2214 2018-01-17 Tom Tromey <tom@tromey.com>
2216 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2217 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2218 (create_array_type_with_stride): Update.
2219 * dwarf2read.c (set_die_type): Update.
2221 2018-01-17 Tom Tromey <tom@tromey.com>
2223 * dwarf2read.c (delayed_method_info): Remove typedef.
2224 (dwarf2_cu::method_info): Now a std::vector.
2225 (add_to_method_list): Update.
2226 (free_delayed_list): Remove.
2227 (compute_delayed_physnames): Update.
2228 (process_full_comp_unit, process_full_type_unit): Clear the method
2229 list. Remove cleanups.
2230 (psymtab_include_file_name): Add name_holder parameter. Use
2232 (dwarf_decode_lines): Update.
2234 2018-01-17 Tom Tromey <tom@tromey.com>
2235 Simon Marchi <simon.marchi@ericsson.com>
2237 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2238 (dwarf2_per_objfile::free_cached_comp_units)
2239 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2240 (init_cutu_and_read_dies_no_follow): Update.
2241 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2242 (dwarf2_cu::~dwarf2_cu): New.
2243 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2244 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2246 2018-01-17 Tom Tromey <tom@tromey.com>
2247 Simon Marchi <simon.marchi@ericsson.com>
2249 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2250 (struct die_reader_specs) <abbrev_table>: New member.
2251 (struct abbrev_table): Add constructor.
2252 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2253 <abbrev_obstack>: Now an auto_obstack.
2254 (abbrev_table_up): New typedef.
2255 (init_cu_die_reader): Add abbrev_table parameter.
2256 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2257 Add result_dwo_abbrev_table.
2258 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2259 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2261 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2263 (skip_children): Update.
2264 (abbrev_table::alloc_abbrev): Rename from
2265 abbrev_table_alloc_abbrev.
2266 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2267 (abbrev_table::lookup_abbrev): Rename from
2268 abbrev_table_lookup_abbrev.
2269 (abbrev_table_read_table): Return abbrev_table_up.
2270 (abbrev_table_free, abbrev_table_free_cleanup)
2271 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2272 (load_partial_dies): Update.
2274 2018-01-17 Tom Tromey <tom@tromey.com>
2276 * dwarf2read.c (dwarf2_compute_name): Update comment.
2277 (read_func_scope, read_variable): Update.
2278 (new_symbol): Remove.
2279 (new_symbol_full): Rename to new_symbol.
2281 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2284 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2285 a warning instead of throwing an error, set section size to 0 and return
2287 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2289 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2291 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2293 (linux_ptrace_attach_fail_reason_string): Likewise.
2294 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2296 (linux_ptrace_attach_fail_reason_string): Likewise.
2297 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2299 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2301 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2303 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2306 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2307 checking for fs_base/gs_base fields in struct user_regs_struct.
2308 * configure: Regenerate.
2310 2018-01-17 Yao Qi <yao.qi@linaro.org>
2312 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2314 (aarch64_linux_init_abi): Install it to gdbarch hook
2317 2018-01-15 Pedro Alves <palves@redhat.com>
2319 * common/signals-state-save-restore.c
2320 (save_original_signals_state): Fix typos.
2322 2017-01-12 Tom Tromey <tom@tromey.com>
2323 Sergio Durigan Junior <sergiodj@redhat.com>
2325 * Makefile.in (install-only): Install gdb-add-index.
2327 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2329 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2331 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2333 * infrun.c (keep_going_pass_signal): Clear step-over info when
2334 insert_breakpoints fails.
2336 2018-01-11 Pedro Alves <palves@redhat.com>
2339 * infrun.c (resume): Rename to ...
2340 (resume_1): ... this.
2341 (resume): Reimplement as wrapper around resume_1.
2343 2018-01-11 Pedro Alves <palves@redhat.com>
2346 * remote.c (remote_parse_stop_reply): Default to the last-set
2347 general thread instead of to 'magic_null_ptid'.
2349 2018-01-10 Pedro Alves <palves@redhat.com>
2351 * language.h (language_get_symbol_name_matcher): Rename ...
2352 (get_symbol_name_matcher): ... this.
2353 * language.c (language_get_symbol_name_matcher): Ditto.
2354 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2357 2018-01-10 Pedro Alves <palves@redhat.com>
2361 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2362 Adjust to use language_get_symbol_name_matcher instead of
2363 language_defn::la_get_symbol_name_matcher.
2364 * language.c (language_get_symbol_name_matcher): If in Ada mode
2365 and the lookup name is a verbatim match, return Ada's matcher.
2366 * language.h (language_get_symbol_name_matcher): Adjust comment.
2367 (ada_lookup_name_info::verbatim_p):: New method.
2369 2018-01-10 Pedro Alves <palves@redhat.com>
2372 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2373 minsym's language is language_auto or language_cplus, pass down
2374 language_ada instead.
2375 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2377 2018-01-10 Pedro Alves <palves@redhat.com>
2380 * minsyms.c (linkage_name_str): New function.
2381 (iterate_over_minimal_symbols): Use it.
2383 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2385 * NEWS: Document that 'info proc' now works on FreeBSD.
2387 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2389 * configure.ac: Check for kinfo_getfile in libutil.
2390 * configure: Regenerate.
2391 * config.in: Regenerate.
2392 * fbsd-nat.c: Include "fbsd-tdep.h".
2393 (fbsd_fetch_cmdline): New.
2394 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2395 rather than calling error.
2396 (fbsd_info_proc): New.
2397 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2398 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2399 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2401 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2403 * fbsd-nat.c (struct free_deleter): Remove.
2404 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2406 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2408 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2409 NULL for an empty pathname.
2411 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2413 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2414 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2415 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2416 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2417 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2418 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2419 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2420 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2421 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2422 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2423 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2424 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2425 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2426 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2427 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2429 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2431 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2432 (gnu_xfer_auxv): New function.
2433 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2436 2018-01-08 Yao Qi <yao.qi@linaro.org>
2437 Simon Marchi <simon.marchi@ericsson.com>
2439 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2441 (COMMON_OBS): Remove selftest.o.
2442 * configure.ac: Append selftest-arch.c and common/selftest.c to
2443 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2444 * configure: Re-generated.
2445 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2447 (maintenance_info_selftests): Likewise.
2449 2018-01-08 Xavier Roirand <roirand@adacore.com>
2451 * ada-valprint.c (val_print_packed_array_elements): Use
2452 proper number of elements when printing an array indexed
2453 by an enumeration type.
2455 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2457 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2458 (dw2_get_file_names_reader): Adjust.
2459 (lookup_dwo_signatured_type): Adjust.
2460 (lookup_dwp_signatured_type): Adjust.
2461 (lookup_signatured_type): Adjust.
2462 (create_type_unit_group): Adjust.
2463 (get_type_unit_group): Adjust.
2464 (process_psymtab_comp_unit_reader): Adjust.
2465 (build_type_psymtabs_reader): Adjust.
2466 (scan_partial_symbols): Adjust.
2467 (add_partial_symbol): Adjust.
2468 (add_partial_subprogram): Adjust.
2469 (peek_die_abbrev): Adjust.
2470 (fixup_go_packaging): Adjust.
2471 (process_imported_unit_die): Adjust.
2472 (dwarf2_compute_name): Adjust.
2473 (dwarf2_physname): Adjust.
2474 (read_import_statement): Adjust.
2475 (handle_DW_AT_stmt_list): Adjust.
2476 (read_file_scope): Adjust.
2477 (read_func_scope): Adjust.
2478 (read_lexical_block_scope): Adjust.
2479 (read_call_site_scope): Adjust.
2480 (read_variable): Adjust.
2481 (dwarf2_rnglists_process): Adjust.
2482 (dwarf2_ranges_process): Adjust.
2483 (dwarf2_ranges_read): Adjust.
2484 (dwarf2_get_pc_bounds): Adjust.
2485 (dwarf2_record_block_ranges): Adjust.
2486 (dwarf2_add_field): Adjust.
2487 (dwarf2_add_member_fn): Adjust.
2488 (read_structure_type): Adjust.
2489 (process_structure_scope): Adjust.
2490 (read_enumeration_type): Adjust.
2491 (read_array_type): Adjust.
2492 (mark_common_block_symbol_computed): Adjust.
2493 (read_common_block): Adjust.
2494 (read_namespace_type): Adjust.
2495 (read_namespace): Adjust.
2496 (read_module_type): Adjust.
2497 (read_tag_pointer_type): Adjust.
2498 (read_tag_ptr_to_member_type): Adjust.
2499 (read_tag_string_type): Adjust.
2500 (read_subroutine_type): Adjust.
2501 (read_typedef): Adjust.
2502 (read_base_type): Adjust.
2503 (attr_to_dynamic_prop): Adjust.
2504 (read_subrange_type): Adjust.
2505 (read_unspecified_type): Adjust.
2506 (dwarf2_read_abbrevs): Adjust.
2507 (load_partial_dies): Adjust.
2508 (read_partial_die): Adjust.
2509 (find_partial_die): Adjust.
2510 (guess_partial_die_structure_name): Adjust.
2511 (fixup_partial_die): Adjust.
2512 (read_attribute_value): Adjust.
2513 (read_addr_index): Adjust.
2514 (read_addr_index_from_leb128): Adjust.
2515 (read_str_index): Adjust.
2516 (dwarf2_string_attr): Adjust.
2517 (get_debug_line_section): Adjust.
2518 (dwarf_decode_line_header): Adjust.
2519 (lnp_state_machine::check_line_address): Adjust.
2520 (dwarf_decode_lines_1): Adjust.
2521 (dwarf_decode_lines): Adjust.
2522 (dwarf2_start_symtab): Adjust.
2523 (var_decode_location): Adjust.
2524 (new_symbol_full): Adjust.
2525 (dwarf2_const_value_data): Adjust.
2526 (dwarf2_const_value_attr): Adjust.
2527 (dwarf2_const_value): Adjust.
2529 (die_containing_type): Adjust.
2530 (build_error_marker_type): Adjust.
2531 (lookup_die_type): Adjust.
2532 (guess_full_die_structure_name): Adjust.
2533 (anonymous_struct_prefix): Adjust.
2534 (determine_prefix): Adjust.
2535 (dwarf2_name): Adjust.
2536 (follow_die_ref_or_sig): Adjust.
2537 (follow_die_offset): Adjust.
2538 (follow_die_ref): Adjust.
2539 (follow_die_sig_1): Adjust.
2540 (follow_die_sig): Adjust.
2541 (get_signatured_type): Adjust.
2542 (get_DW_AT_signature_type): Adjust.
2543 (decode_locdesc): Adjust.
2544 (dwarf_decode_macros): Adjust.
2545 (cu_debug_loc_section): Adjust.
2546 (fill_in_loclist_baton): Adjust.
2547 (dwarf2_symbol_mark_computed): Adjust.
2548 (init_one_comp_unit): Don't assign
2549 dwarf2_cu::dwarf2_per_objfile.
2550 (set_die_type): Adjust.
2552 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2554 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2555 <dwarf2_per_objfile>: New field.
2556 (dwarf2_per_objfile): Remove global.
2557 (get_dwarf2_per_objfile): New function.
2558 (set_dwarf2_per_objfile): New function.
2559 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2561 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2562 (read_abbrev_offset): Likewise.
2563 (read_indirect_string): Likewise.
2564 (read_indirect_line_string): Likewise.
2565 (read_indirect_string_at_offset): Likewise.
2566 (read_indirect_string_from_dwz): Likewise.
2567 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2569 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2570 (create_all_comp_units): Change objfile parameter to
2572 (create_all_type_units): Likewise.
2573 (process_queue): Add dwarf2_per_objfile parameter.
2574 (read_and_check_comp_unit_head): Likewise.
2575 (lookup_dwo_unit_in_dwp): Likewise.
2576 (get_dwp_file): Likewise.
2577 (process_cu_includes): Likewise.
2578 (struct free_dwo_file_cleanup_data): New struct.
2579 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2580 set_dwarf2_per_objfile.
2581 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2582 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2583 context, adjust calls.
2584 (dw2_instantiate_symtab): Likewise.
2585 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2586 (dw2_get_cu): Likewise.
2587 (create_cu_from_index_list): Change objfile parameter to
2589 (create_cus_from_index_list): Get dwarf2_per_objfile from
2590 context, adjust calls.
2591 (create_cus_from_index): Likewise.
2592 (create_signatured_type_table_from_index): Change objfile
2593 parameter to dwarf2_per_objfile.
2594 (create_signatured_type_table_from_debug_names): Change objfile
2595 parameter to dwarf2_per_objfile.
2596 (create_addrmap_from_index): Likewise.
2597 (create_addrmap_from_aranges): Likewise.
2598 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2599 (dw2_setup): Remove.
2600 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2602 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2603 get_dwarf2_per_objfile.
2604 (dw2_forget_cached_source_info): Likewise.
2605 (dw2_map_symtabs_matching_filename): Likewise.
2606 (struct dw2_symtab_iterator) <index>: Remove.
2607 <dwarf2_per_objfile>: New field.
2608 (dw2_symtab_iter_init): Replace index parameter with
2610 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2611 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2612 (dw2_print_stats): Likewise.
2613 (dw2_dump): Likewise.
2614 (dw2_expand_symtabs_for_function): Likewise.
2615 (dw2_expand_all_symtabs): Likewise.
2616 (dw2_expand_symtabs_with_fullname): Likewise.
2617 (dw2_expand_marked_cus): Replace index and objfile parameters
2618 with dwarf2_per_objfile.
2619 (dw_expand_symtabs_matching_file_matcher): Add
2620 dwarf2_per_objfile parameter and adjust calls.
2621 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2623 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2624 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2626 (create_cus_from_debug_names_list): Replace objfile parameter
2627 with dwarf2_per_objfile and adjust calls.
2628 (create_cus_from_debug_names): Likewise.
2629 (dwarf2_read_debug_names): Likewise.
2630 (mapped_debug_names::namei_to_name): Adjust call.
2631 (dw2_debug_names_iterator::next): Likewise.
2632 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2633 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2634 (dw2_debug_names_dump): Likewise.
2635 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2636 (dw2_debug_names_expand_symtabs_matching): Likewise.
2637 (dwarf2_initialize_objfile): Likewise.
2638 (dwarf2_build_psymtabs): Likewise.
2639 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2641 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2642 (read_and_check_comp_unit_head): Likewise.
2643 (read_abbrev_offset): Likewise.
2644 (create_debug_type_hash_table): Likewise.
2645 (create_debug_types_hash_table): Likewise.
2646 (create_all_type_units): Replace objfile parameter with
2648 (add_type_unit): Add dwarf2_per_objfile parameter.
2649 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2650 with dwarf2_per_objfile.
2651 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2652 (lookup_dwp_signatured_type): Likewise.
2653 (lookup_signatured_type): Likewise.
2654 (read_cutu_die_from_dwo): Likewise.
2655 (init_tu_and_read_dwo_dies): Likewise.
2656 (init_cutu_and_read_dies): Likewise.
2657 (init_cutu_and_read_dies_no_follow): Likewise.
2658 (allocate_type_unit_groups_table): Add objfile parameter.
2659 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2660 (get_type_unit_group): Likewise.
2661 (process_psymtab_comp_unit): Update call.
2662 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2663 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2664 (print_tu_stats): Likewise.
2665 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2667 (build_type_psymtabs): Change objfile parameter to
2669 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2670 passed in void* parameter.
2671 (process_skeletonless_type_units): Change objfile parameter to
2673 (set_partial_user): Likewise.
2674 (dwarf2_build_psymtabs_hard): Likewise.
2675 (read_comp_units_from_section): Likewise.
2676 (create_all_comp_units): Likewise.
2677 (scan_partial_symbols): Update calls.
2678 (add_partial_symbol): Likewise.
2679 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2680 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2681 (process_queue): Add dwarf2_per_objfile parameter.
2682 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2683 (compute_compunit_symtab_includes): Likewise.
2684 (process_cu_includes): Add dwarf2_per_objfile parameter.
2685 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2686 (process_full_type_unit): Likewise.
2687 (process_imported_unit_die): Update call.
2688 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2689 (read_file_scope): Likewise.
2690 (allocate_dwo_file_hash_table): Add objfile parameter.
2691 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2692 (create_cus_hash_table): Likewise.
2693 (create_dwp_hash_table): Likewise.
2694 (create_dwo_unit_in_dwp_v1): Likewise.
2695 (create_dwp_v2_section): Likewise.
2696 (create_dwo_unit_in_dwp_v2): Likewise.
2697 (lookup_dwo_unit_in_dwp): Likewise.
2698 (try_open_dwop_file): Likewise.
2699 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2700 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2701 cleanup to include a reference to dwarf2_per_objfile.
2702 (open_dwp_file): Add dwarf2_per_objfile parameter.
2703 (open_and_init_dwp_file): Likewise.
2704 (get_dwp_file): Likewise.
2705 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2706 (queue_and_load_all_dwo_tus): Update call.
2707 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2709 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2710 (dwarf2_ranges_process): Likewise.
2711 (dwarf2_get_pc_bounds): Likewise.
2712 (mark_common_block_symbol_computed): Likewise.
2713 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2714 (dwarf2_read_abbrevs): Update call.
2715 (read_partial_die): Use dwarf2_per_objfile from cu.
2716 (find_partial_die): Likewise.
2717 (fixup_partial_die): Likewise.
2718 (read_attribute_value): Likewise.
2719 (read_indirect_string_at_offset_from): Add objfile parameter.
2720 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2722 (read_indirect_string_from_dwz): Add objfile parameter.
2723 (read_indirect_string): Add objfile parameter.
2724 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2725 (read_addr_index): Use dwarf2_per_objfile from cu.
2726 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2728 (read_str_index): Use dwarf2_per_objfile from cu.
2729 (get_debug_line_section): Likewise.
2730 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2731 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2732 (new_symbol_full): Use dwarf2_per_objfile from cu.
2733 (build_error_marker_type): Likewise.
2734 (lookup_die_type): Likewise.
2735 (determine_prefix): Likewise.
2736 (follow_die_offset): Likewise.
2737 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2738 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2739 (dwarf2_fetch_die_type_sect_off): Likewise.
2740 (dwarf2_get_die_type): Likewise.
2741 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2742 (get_signatured_type): Likewise.
2743 (get_DW_AT_signature_type): Likewise.
2744 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2745 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2746 (cu_debug_loc_section): Likewise.
2747 (fill_in_loclist_baton): Likewise.
2748 (dwarf2_symbol_mark_computed): Likewise.
2749 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2751 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2753 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2754 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2755 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2756 (set_die_type): Use dwarf2_free_objfile from cu.
2757 (get_die_type_at_offset): Likewise.
2758 (dwarf2_per_objfile_free): Don't assign global variable.
2759 (debug_names) <constructor>: Add dwarf2_per_objfile
2760 parameter, update m_debugstrlookup construction.
2761 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2763 <m_dwarf2_per_objfile>: New field.
2764 <lookup>: Use m_dwarf2_per_objfile.
2765 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2766 (psyms_seen_size): Likewise.
2767 (write_gdbindex): Replace objfile parameter with
2769 (write_debug_names): Likewise.
2770 (write_psymtabs_to_index): Likewise.
2771 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2774 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2776 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2777 <dwarf2_per_objfile>: New field.
2778 (struct dwarf2_per_cu_data) <objfile>: Remove.
2779 <dwarf2_per_objfile>: New field.
2780 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2782 (create_signatured_type_table_from_index): Likewise.
2783 (create_debug_type_hash_table): Likewise.
2784 (fill_in_sig_entry_from_dwo_entry): Likewise.
2785 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2786 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2788 (create_partial_symtab): Access objfile through
2790 (process_psymtab_comp_unit_reader): Likewise.
2791 (read_comp_units_from_section): Likewise.
2792 (scan_partial_symbols): Likewise.
2793 (add_partial_symbol): Likewise.
2794 (add_partial_subprogram): Likewise.
2795 (peek_die_abbrev): Likewise.
2796 (fixup_go_packaging): Likewise.
2797 (process_full_comp_unit): Likewise.
2798 (process_full_type_unit): Likewise.
2799 (process_imported_unit_die): Likewise.
2800 (dwarf2_compute_name): Likewise.
2801 (dwarf2_physname): Likewise.
2802 (read_import_statement): Likewise.
2803 (create_cus_hash_table): Assign dwarf2_physname instead of
2805 (read_func_scope): Access objfile through dwarf2_per_objfile.
2806 (read_lexical_block_scope): Likewise.
2807 (read_call_site_scope): Likewise.
2808 (read_variable): Likewise.
2809 (dwarf2_rnglists_process): Likewise.
2810 (dwarf2_ranges_process): Likewise.
2811 (dwarf2_ranges_read): Likewise.
2812 (dwarf2_record_block_ranges): Likewise.
2813 (dwarf2_add_field): Likewise.
2814 (dwarf2_add_member_fn): Likewise.
2815 (read_structure_type): Likewise.
2816 (process_structure_scope): Likewise.
2817 (read_enumeration_type): Likewise.
2818 (read_array_type): Likewise.
2819 (read_common_block): Likewise.
2820 (read_namespace_type): Likewise.
2821 (read_namespace): Likewise.
2822 (read_module_type): Likewise.
2823 (read_tag_pointer_type): Likewise.
2824 (read_tag_ptr_to_member_type): Likewise.
2825 (read_tag_string_type): Likewise.
2826 (read_subroutine_type): Likewise.
2827 (read_typedef): Likewise.
2828 (read_base_type): Likewise.
2829 (attr_to_dynamic_prop): Likewise.
2830 (read_subrange_type): Likewise.
2831 (read_unspecified_type): Likewise.
2832 (load_partial_dies): Likewise.
2833 (read_partial_die): Likewise.
2834 (find_partial_die): Likewise.
2835 (guess_partial_die_structure_name): Likewise.
2836 (fixup_partial_die): Likewise.
2837 (read_attribute_value): Likewise.
2838 (read_addr_index_from_leb128): Likewise.
2839 (dwarf2_read_addr_index): Likewise.
2840 (dwarf2_string_attr): Likewise.
2841 (lnp_state_machine::check_line_address): Likewise.
2842 (dwarf_decode_lines_1): Likewise.
2843 (dwarf_decode_lines): Likewise.
2844 (dwarf2_start_symtab): Likewise.
2845 (var_decode_location): Likewise.
2846 (new_symbol_full): Likewise.
2847 (dwarf2_const_value_data): Likewise.
2848 (dwarf2_const_value_attr): Likewise.
2849 (dwarf2_const_value): Likewise.
2850 (die_type): Likewise.
2851 (die_containing_type): Likewise.
2852 (lookup_die_type): Likewise.
2853 (guess_full_die_structure_name): Likewise.
2854 (anonymous_struct_prefix): Likewise.
2855 (dwarf2_name): Likewise.
2856 (follow_die_ref_or_sig): Likewise.
2857 (follow_die_offset): Likewise.
2858 (follow_die_ref): Likewise.
2859 (dwarf2_fetch_die_loc_sect_off): Likewise.
2860 (dwarf2_fetch_constant_bytes): Likewise.
2861 (dwarf2_fetch_die_type_sect_off): Likewise.
2862 (dwarf2_get_die_type): Likewise.
2863 (follow_die_sig): Likewise.
2864 (decode_locdesc): Likewise.
2865 (dwarf2_per_cu_objfile): Likewise.
2866 (dwarf2_per_cu_text_offset): Likewise.
2867 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2869 (set_die_type): Access objfile through
2872 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2874 * valprint.c (converted_character_d): Remove typedef.
2875 (DEF_VEC_O (converted_character_d)): Remove.
2876 (count_next_character): Use std::vector.
2877 (print_converted_chars_to_obstack): Likewise.
2878 (generic_printstr): Likewise.
2880 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2882 * xml-support.h (struct gdb_xml_value): Add constructor.
2883 <value>: Change type to unique_xmalloc_ptr.
2884 (gdb_xml_value_s): Remove typedef.
2885 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2886 (gdb_xml_element_start_handler): Change parameter type to
2888 (xml_find_attribute): Likewise.
2889 * xml-support.c (xml_find_attribute): Change parameter type to
2890 std::vector and adjust.
2891 (gdb_xml_values_cleanup): Remove.
2892 (gdb_xml_parser::start_element): Adjust to std::vector.
2893 (xinclude_start_include): Change paraeter type to std::vector
2895 * btrace.c (check_xml_btrace_version): Likewise.
2896 (parse_xml_btrace_block): Likewise.
2897 (parse_xml_btrace_pt_config_cpu): Likewise.
2898 (parse_xml_btrace_pt): Likewise.
2899 (parse_xml_btrace_conf_bts): Likewise.
2900 (parse_xml_btrace_conf_pt): Likewise.
2901 * memory-map.c (memory_map_start_memory): Likewise.
2902 (memory_map_start_property): Likewise.
2903 * osdata.c (osdata_start_osdata): Likewise.
2904 (osdata_start_item): Likewise.
2905 (osdata_start_column): Likewise.
2906 * remote.c (start_thread): Likewise.
2907 * solib-aix.c (library_list_start_library): Likewise.
2908 (library_list_start_list): Likewise.
2909 * solib-svr4.c (library_list_start_library): Likewise.
2910 (svr4_library_list_start_list): Likewise.
2911 * solib-target.c (library_list_start_segment): Likewise.
2912 (library_list_start_section): Likewise.
2913 (library_list_start_library): Likewise.
2914 (library_list_start_list): Likewise.
2915 * tracepoint.c (traceframe_info_start_memory): Likewise.
2916 (traceframe_info_start_tvar): Likewise.
2917 * xml-syscall.c (syscall_start_syscall): Likewise.
2918 * xml-tdesc.c (tdesc_start_target): Likewise.
2919 (tdesc_start_feature): Likewise.
2920 (tdesc_start_reg): Likewise.
2921 (tdesc_start_union): Likewise.
2922 (tdesc_start_struct): Likewise.
2923 (tdesc_start_flags): Likewise.
2924 (tdesc_start_enum): Likewise.
2925 (tdesc_start_field): Likewise.
2926 (tdesc_start_enum_value): Likewise.
2927 (tdesc_start_vector): Likewise.
2929 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2931 * extension.h (struct xmethod_worker) <clone>: Remove.
2932 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2934 (python_xmethod_worker::clone): Remove.
2935 * valops.c (find_overload_match): Use std::move instead of
2938 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2940 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2941 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2942 <free_xmethod_worker_data>: Remove.
2943 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2944 <get_xmethod_arg_types>: Remove.
2945 <get_xmethod_result_type>: Remove.
2946 <invoke_xmethod>: Remove.
2947 * extension.c (new_xmethod_worker): Remove.
2948 (clone_xmethod_worker): Remove.
2949 (get_matching_xmethod_workers): Return void, pass std::vector by
2951 (get_xmethod_arg_types): Rename to...
2952 (xmethod_worker::get_arg_types): ... this, and adjust.
2953 (get_xmethod_result_type): Rename to...
2954 (xmethod_worker::get_result_type): ... this, and adjust.
2955 (invoke_xmethod): Remove.
2956 (free_xmethod_worker): Remove.
2957 (free_xmethod_worker_vec): Remove.
2958 * extension.h (enum ext_lang_rc): Move here from
2960 (struct xmethod_worker): Add constructor and destructor.
2963 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2964 virtual pure methods.
2965 <get_arg_types, get_result_type>: New methods.
2966 (xmethod_worker_ptr): Remove typedef.
2967 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2968 (xmethod_worker_vec): Remove typedef.
2969 (xmethod_worker_up): New typedef.
2970 (invoke_xmethod): Remove.
2971 (clone_xmethod_worker): Remove.
2972 (free_xmethod_worker): Remove.
2973 (free_xmethod_worker_vec): Remove.
2974 (get_xmethod_arg_types): Remove.
2975 (get_xmethod_result_type): Remove.
2976 * valops.c (find_method_list): Use std::vector, don't use
2977 intermediate vector.
2978 (value_find_oload_method_list): Use std::vector.
2979 (find_overload_match): Use std::vector.
2980 (find_oload_champ): Use std::vector.
2981 * value.c (value_free): Use operator delete.
2982 (value_of_xmethod): Rename to...
2983 (value_from_xmethod): ... this. Don't assign
2984 xmethod_worker::value, take rvalue-reference.
2985 (result_type_of_xmethod): Adjust.
2986 (call_xmethod): Adjust.
2987 * value.h: Include extension.h.
2988 (struct xmethod_worker): Don't forward-declare.
2989 (value_of_xmethod): Rename to...
2990 (value_from_xmethod): ... this, take rvalue-reference.
2991 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2992 (struct python_xmethod_worker): ... this, add constructor and
2994 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2995 (gdbpy_free_xmethod_worker_data): Rename to...
2996 (python_xmethod_worker::~python_xmethod_worker): ... this and
2998 (gdbpy_clone_xmethod_worker_data): Rename to...
2999 (python_xmethod_worker::clone): ... this and adjust.
3000 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3002 (gdbpy_get_xmethod_arg_types): Rename to...
3003 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3004 (gdbpy_get_xmethod_result_type): Rename to...
3005 (python_xmethod_worker::do_get_result_type): ... this and
3007 (gdbpy_invoke_xmethod): Rename to...
3008 (python_xmethod_worker::invoke): ... this and adjust.
3009 (new_python_xmethod_worker): Rename to...
3010 (python_xmethod_worker::python_xmethod_worker): ... this and
3012 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3014 (gdbpy_free_xmethod_worker_data): Remove.
3015 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3016 (gdbpy_get_xmethod_arg_types): Remove.
3017 (gdbpy_get_xmethod_result_type): Remove.
3018 (gdbpy_invoke_xmethod): Remove.
3019 * python/python.c (python_extension_ops): Remove obsolete
3022 2018-01-05 Pedro Alves <palves@redhat.com>
3025 * common/signals-state-save-restore.c
3026 (save_original_signals_state): New parameter 'quiet'. Warn if we
3027 find a custom handler preinstalled, instead of internal erroring.
3028 But only warn if !quiet.
3029 * common/signals-state-save-restore.h
3030 (save_original_signals_state): New parameter 'quiet'.
3031 * main.c (captured_main_1): Move save_original_signals_state call
3032 after option handling, and pass QUIET.
3034 2018-01-05 Pedro Alves <palves@redhat.com>
3036 * spu-tdep.c (spu_catch_start): Pass
3037 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3039 2018-01-05 Pedro Alves <palves@redhat.com>
3042 * ada-lang.c (literal_symbol_name_matcher): New function.
3043 (ada_get_symbol_name_matcher): Use it for
3044 symbol_name_match_type::SEARCH_NAME.
3045 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3046 it down instead of assuming symbol_name_match_type::FULL.
3047 * block.h (block_lookup_symbol): New parameter 'match_type'.
3048 * c-valprint.c (print_unpacked_pointer): Use
3049 lookup_symbol_search_name instead of lookup_symbol.
3050 * compile/compile-object-load.c (get_out_value_type): Pass down
3051 symbol_name_match_type::SEARCH_NAME.
3052 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3053 symbol_name_match_type::FULL.
3054 * cp-support.c (cp_get_symbol_name_matcher): Handle
3055 symbol_name_match_type::SEARCH_NAME.
3056 * infrun.c (insert_exception_resume_breakpoint): Use
3057 lookup_symbol_search_name.
3058 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3059 * psymtab.c (maintenance_check_psymtabs): Use
3060 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3061 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3063 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3064 if symbol_name_match_type::SEARCH_NAME.
3065 (lookup_symbol_in_language): Pass down
3066 symbol_name_match_type::FULL.
3067 (lookup_symbol_search_name): New.
3068 (lookup_language_this): Pass down
3069 symbol_name_match_type::SEARCH_NAME.
3070 (lookup_symbol_aux, lookup_local_symbol): New parameter
3071 'match_type'. Pass it down.
3072 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3073 (lookup_symbol_search_name): New declaration.
3074 (lookup_symbol_in_block): New 'match_type' parameter.
3076 2018-01-05 Pedro Alves <palves@redhat.com>
3079 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3081 (ada_lookup_symbol): Reimplement in terms of
3082 ada_lookup_symbol_list, bits factored out from
3083 ada_lookup_encoded_symbol.
3085 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3087 * ada-exp.y (write_object_renaming): When subscripting an array
3088 using a symbol as the index, pass the block in call to
3089 ada_lookup_encoded_symbol when looking that symbol up.
3091 2018-01-05 Jerome Guitton <guitton@adacore.com>
3093 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3096 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3098 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3099 the case where VALUE_LVAL (val0) is not lval_memory.
3101 2018-01-05 Xavier Roirand <roirand@adacore.com>
3103 * ada-valprint.c (print_optional_low_bound): Handle
3104 character-indexed array printing like boolean-indexed array
3107 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3109 * NEWS: Create a new section for the next release branch.
3110 Rename the section of the current branch, now that it has
3113 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3115 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3116 * version.in: Bump version to 8.1.50.DATE-git.
3118 2018-01-03 Xavier Roirand <roirand@adacore.com>
3120 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3122 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3124 (default_exception_support_info) <catch_handlers_sym>: Add field.
3125 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3126 (ada_exception_name_addr_1): Add "catch handlers" handling.
3127 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3129 (create_excep_cond_exprs) <ex>: Add parameter.
3130 (re_set_exception): Update create_excep_cond_exprs call.
3131 (print_it_exception, print_one_exception, print_mention_exception)
3132 (print_recreate_exception): Add "catch handler" handling.
3133 (allocate_location_catch_handlers, re_set_catch_handlers)
3134 (check_status_catch_handlers, print_it_catch_handlers)
3135 (print_one_catch_handlers, print_mention_catch_handlers)
3136 (print_recreate_catch_handlers): New function.
3137 (catch_handlers_breakpoint_ops): New variable.
3138 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3139 Add parameter. Add "catch handler" handling.
3140 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3141 Add "catch handler" handling.
3142 (ada_exception_catchpoint_cond_string): Add "catch handler"
3144 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3146 (catch_ada_handlers_command): New function.
3147 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3148 operations structure.
3149 (_initialize_ada_language): Add "catch handlers" command entry.
3150 * NEWS: Document "catch handlers" feature.
3152 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3154 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3155 account when creating the array type of the slice.
3156 (ada_value_slice): Likewise.
3158 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3160 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3162 (create_array_type_with_stride): Add byte_stride_prop parameter.
3163 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3164 New parameter. Update all callers in this file.
3165 (array_type_has_dynamic_stride): New function.
3166 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3167 of arrays with dynamic byte strides.
3168 * dwarf2read.c (read_array_type): Add support for dynamic
3169 DW_AT_byte_stride attributes.
3171 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3173 * dwarf2read.c (read_unspecified_type): Treat
3174 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3176 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3178 Update copyright year range in all GDB files.
3180 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3182 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3183 and gdb/testsuite/gdb.base/step-line.c.
3185 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3187 * copyright.py (main): Dump the contents of
3188 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3189 even if BY_HAND is empty.
3191 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3193 * top.c (print_gdb_version): Update Copyright year in version
3196 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3198 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3200 For older changes see ChangeLog-2017.
3206 version-control: never