1 2018-03-27 Joel Brobecker <brobecker@adacore.com>
3 * NEWS: Add entry describing new "set|show varsize-limit" command.
4 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
6 * printcmd.c (_initialize_printcmd): Add "set var" alias of
9 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
13 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
14 * dwarf-index-common.c: New file.
15 * dwarf-index-common.h: New file.
16 * dwarf-index-write.c: New file.
17 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
18 (struct dwarf2_section_info): Move from here.
19 (dwarf2_section_info_def): Likewise.
20 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
21 (offset_type): Likewise.
22 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
23 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
24 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
25 (byte_swap): Likewise.
26 (MAYBE_SWAP): Likewise.
27 (dwarf2_per_cu_ptr): Likewise.
28 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
29 (struct tu_stats): Likewise.
30 (struct dwarf2_per_objfile): Likewise.
31 (struct dwarf2_per_cu_data): Likewise.
32 (struct signatured_type): Likewise.
33 (sig_type_ptr): Likewise.
34 (DEF_VEC_P (sig_type_ptr)): Likewise.
35 (INDEX4_SUFFIX): Likewise.
36 (INDEX5_SUFFIX): Likewise.
37 (DEBUG_STR_SUFFIX): Likewise.
38 (dwarf2_read_section): Make non-static.
39 (mapped_index_string_hash): Move from here.
40 (dwarf5_djb_hash): Likewise.
41 (file_write): Likewise.
42 (class data_buf): Likewise.
43 (struct symtab_index_entry): Likewise.
44 (struct mapped_symtab): Likewise.
45 (find_slot): Likewise.
46 (hash_expand): Likewise.
47 (add_index_entry): Likewise.
48 (uniquify_cu_indices): Likewise.
49 (class c_str_view): Likewise.
50 (class c_str_view_hasher): Likewise.
51 (class vector_hasher): Likewise.
52 (write_hash_table): Likewise.
53 (psym_index_map): Likewise.
54 (struct addrmap_index_data): Likewise.
55 (add_address_entry): Likewise.
56 (add_address_entry_worker): Likewise.
57 (write_address_map): Likewise.
58 (symbol_kind): Likewise.
59 (write_psymbols): Likewise.
60 (struct signatured_type_index_data): Likewise.
61 (write_one_signatured_type): Likewise.
62 (recursively_count_psymbols): Likewise.
63 (recursively_write_psymbols): Likewise.
64 (class debug_names): Likewise.
65 (check_dwarf64_offsets): Likewise.
66 (psyms_seen_size): Likewise.
67 (write_gdbindex): Likewise.
68 (write_debug_names): Likewise.
69 (assert_file_size): Likewise.
70 (write_psymtabs_to_index): Likewise.
71 (save_gdb_index_command): Likewise.
72 (_initialize_dwarf2_read): Don't register the "save gdb-index"
74 * dwarf2read.h: New file.
76 2018-03-27 Joel Brobecker <brobecker@adacore.com>
79 * dwarf2read.c (dwarf2_physname): Do not return the demangled
80 symbol name if the CU's language stores symbol names in linkage
82 * language.h (struct language_defn)
83 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
84 all instances of this struct.
86 2018-03-26 Tom Tromey <tom@tromey.com>
88 * stack.c (backtrace_command_1): Remove verbose code.
90 2018-03-26 Tom Tromey <tom@tromey.com>
92 * python/py-framefilter.c (py_print_type): Don't catch
93 exceptions. Return void.
94 (py_print_value): Likewise.
95 (py_print_single_arg): Likewise.
96 (enumerate_args): Don't catch exceptions.
97 (py_print_args): Likewise.
98 (py_print_frame): Likewise.
99 (gdbpy_apply_frame_filter): Catch exceptions here.
101 2018-03-26 Tom Tromey <tom@tromey.com>
103 * stack.c (_initialize_stack): Remove trailing newlines from help
104 text. Add "Usage" line to "backtrace" help.
106 2018-03-26 Tom Tromey <tom@tromey.com>
109 * python/py-framefilter.c (py_print_args): Call wrap_hint.
111 2018-03-26 Tom Tromey <tom@tromey.com>
113 * python/py-framefilter.c (py_print_single_arg): Return
114 EXT_LANG_BT_ERROR from catch.
116 2018-03-26 Tom Tromey <tom@tromey.com>
119 * stack.c (backtrace_command_1): Move some code into no-filters
122 2018-03-26 Tom Tromey <tom@tromey.com>
124 * python/py-framefilter.c (throw_quit_or_print_exception): New
126 (gdbpy_apply_frame_filter): Use it.
128 2018-03-26 Tom Tromey <tom@tromey.com>
131 * python/py-framefilter.c (py_print_type, py_print_value)
132 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
135 2018-03-26 Tom Tromey <tom@tromey.com>
137 * python/py-framefilter.c (enumerate_args): Use
138 gdb::unique_xmalloc_ptr.
140 2018-03-26 Tom Tromey <tom@tromey.com>
142 * python/py-framefilter.c (py_print_frame): Return
144 (gdbpy_apply_frame_filter): Update comment.
145 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
147 <EXT_LANG_BT_NO_FILTERS>: Change value.
149 2018-03-26 Tom Tromey <tom@tromey.com>
152 * stack.c (backtrace_command): Parse "hide" argument.
153 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
154 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
157 2018-03-26 Tom Tromey <tom@tromey.com>
159 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
161 (backtrace_command): Remove "fulltrace", add "flags".
163 2018-03-26 Tom Tromey <tom@tromey.com>
165 * stack.c (backtrace_command): Rewrite command line parsing.
167 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
169 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
171 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
173 * filename-seen-cache.h: Add include guard.
175 2018-03-26 Keith Seitz <keiths@redhat.com>
177 * symfile.c (place_section): Remove "struct" from section_addr_info
179 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
180 "struct" keyword from section_addr_info.
182 2018-03-26 Alan Hayward <alan.hayward@arm.com>
184 * regformats/regdef.h (reg): Add constructors.
186 2018-03-25 Pedro Alves <palves@redhat.com>
188 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
189 if then/else bodies in var_func_name extraction.
191 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
193 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
194 lookup_minimal_symbol() to find symbol entry.
195 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
197 2018-03-23 Keith Seitz <keiths@redhat.com>
200 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
201 nested type definitions for C++, too.
203 2018-03-23 Tom Tromey <tom@tromey.com>
205 * machoread.c (struct oso_el): Add a constructor. Don't define as
207 (macho_register_oso): Remove.
208 (macho_symtab_read): Take a std::vector.
209 (oso_el_compare_name): Now a std::sort comparator.
210 (macho_symfile_read_all_oso): Take a std::vector.
211 (macho_symfile_read): Use std::vector. Remove cleanups.
213 2018-03-22 Tom Tromey <tom@tromey.com>
215 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
216 (record_full_goto_bookmark): Use std::string.
218 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
221 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
224 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
226 * rs6000-tdep.c (store_insn_p): New function.
227 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
228 and cr_reg to their unshifted values. Use store_insn_p to
229 match LR saves using either R1 or fdata->alloca_reg. Use
230 store_insn_p to match CR saves. Set alloca_reg_offset
231 when alloca_reg and framep are set. Remove lr_reg shift
232 when assigning to fdata->lr_register.
234 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
236 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
237 command line args instead of emitting a warning.
239 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
241 * tracepoint.h (struct static_tracepoint_marker): Initialize
242 fields, define default constructor, move constructor and move
243 assignment, disable the rest.
244 <str_id, extra>: Make std::string.
245 (release_static_tracepoint_marker): Remove.
246 (free_current_marker): Remove.
247 * tracepoint.c (free_current_marker): Remove.
248 (parse_static_tracepoint_marker_definition): Adjust to
249 std::string, use new hex2str overload.
250 (release_static_tracepoint_marker): Remove.
251 (print_one_static_tracepoint_marker): Get marker by reference
252 and adjust to std::string.
253 (info_static_tracepoint_markers_command): Adjust to std::vector
255 * target.h (static_tracepoint_marker_p): Remove typedef.
256 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
257 (struct target_ops) <to_static_tracepoint_marker_at>: Return
259 <to_static_tracepoint_markers_by_strid>: Return std::vector.
261 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
262 (target_debug_print_std_vector_static_tracepoint_marker): New.
263 (target_debug_print_struct_static_tracepoint_marker_p): Rename
265 (target_debug_print_static_tracepoint_marker_p): ... this.
266 * target-delegates.c: Re-generate.
267 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
269 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
270 (decode_static_tracepoint_spec): Adjust to std::vector.
271 (tracepoint_print_one_detail): Adjust to std::string.
272 (strace_marker_decode_location): Adjust to std::string.
273 (update_static_tracepoint): Adjust to std::string, remove call
274 to release_static_tracepoint_marker.
275 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
276 Adjust to std::vector.
277 * remote.c (remote_static_tracepoint_marker_at): Return bool.
278 (remote_static_tracepoint_markers_by_strid): Adjust to
280 * common/rsp-low.h (hex2str): New overload with explicit count
282 * common/rsp-low.c (hex2str): New overload with explicit count
284 * unittests/rsp-low-selftests.c (test_hex2str): New function.
285 (_initialize_rsp_low_selftests): Add test_hex2str test.
286 * unittests/tracepoint-selftests.c
287 (test_parse_static_tracepoint_marker_definition): Adjust to
290 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
292 * tracepoint.c (parse_static_tracepoint_marker_definition):
293 Consider case where the definition is followed by more
295 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
296 tracepoint-selftests.c.
297 * unittests/tracepoint-selftests.c: New.
299 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
301 * MAINTAINERS (Write After Approval): Add Pedro Franco de
304 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
306 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
308 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
310 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
312 2018-03-19 Tom Tromey <tom@tromey.com>
314 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
317 2018-03-19 Pedro Alves <palves@redhat.com>
318 Tom Tromey <tom@tromey.com>
320 * unittests/observable-selftests.c: New file.
321 * common/observable.h: New file.
322 * observable.h: New file.
323 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
324 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
325 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
326 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
327 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
328 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
329 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
330 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
331 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
332 python/py-breakpoint.c, python/py-finishbreakpoint.c,
333 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
334 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
335 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
336 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
337 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
338 tui/tui-interp.c, valops.c: Update all users.
339 * tui/tui-hooks.c (tui_bp_created_observer)
340 (tui_bp_deleted_observer, tui_bp_modified_observer)
341 (tui_inferior_exit_observer, tui_before_prompt_observer)
342 (tui_normal_stop_observer, tui_register_changed_observer):
344 (tui_observers_token): New global.
345 (attach_or_detach, tui_attach_detach_observers): New functions.
346 (tui_install_hooks, tui_remove_hooks): Use
347 tui_attach_detach_observers.
348 * record-btrace.c (record_btrace_thread_observer): Remove.
349 (record_btrace_thread_observer_token): New global.
350 * observer.sh: Remove.
351 * observer.c: Rename to observable.c.
352 * observable.c (namespace gdb_observers): Define new objects.
353 (observer_debug): Move into gdb_observers namespace.
354 (struct observer, struct observer_list, xalloc_observer_list_node)
355 (xfree_observer_list_node, generic_observer_attach)
356 (generic_observer_detach, generic_observer_notify): Remove.
357 (_initialize_observer): Update.
358 Don't include observer.inc.
359 * Makefile.in (generated_files): Remove observer.h, observer.inc.
360 (clean mostlyclean): Likewise.
361 (observer.h, observer.inc): Remove targets.
362 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
363 (COMMON_SFILES): Use observable.c, not observer.c.
364 * .gitignore: Remove observer.h.
366 2018-03-18 Tom Tromey <tom@tromey.com>
368 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
370 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
372 2018-03-17 Tom Tromey <tom@tromey.com>
374 * auto-load.c (auto_load_objfile_script_1): Use std::string.
376 2018-03-17 Tom Tromey <tom@tromey.com>
378 * target.c (class scoped_target_fd): New.
379 (target_fileio_close_cleanup): Remove.
380 (target_fileio_read_alloc_1): Use scoped_target_fd.
382 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
384 * silent-rules.mk: New.
385 * Makefile.in: Include silent-rules.mk
386 (srcdir, VPATH, top_srcdir): Move up.
387 (COMPILE): Add ECHO_CXX.
388 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
389 (init.c): Add ECHO_INIT_C.
390 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
391 (version.c): Add ECHO_GEN.
392 (printcmd.o): Add ECHO_CXX.
393 (target-float.o): Add ECHO_CXX.
394 (ada-exp.o): Add ECHO_CXX.
395 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
396 (insight$(EXEEXT)): Add ECHO_CXXLD.
397 * gnulib/configure.ac: Add AM_SILENT_RULES.
398 * gnulib/aclocal.m4: Re-generate.
399 * gnulib/configure: Re-generate.
400 * gnulib/import/Makefile.in: Re-generate.
402 2018-03-16 Tom Tromey <tom@tromey.com>
404 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
405 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
406 * utils.c (do_free_section_addr_info)
407 (make_cleanup_free_section_addr_info): Remove.
408 * symfile.h (struct other_sections): Add constructor.
409 (struct section_addr_info): Remove.
410 (section_addr_info): New typedef.
411 (struct sym_fns) <sym_offsets>: Change type of parameter.
412 (build_section_addr_info_from_objfile)
413 (relative_addr_info_to_section_offsets, addr_info_make_relative)
414 (default_symfile_offsets, symbol_file_add)
415 (symbol_file_add_from_bfd)
416 (build_section_addr_info_from_section_table): Update.
417 (alloc_section_addr_info, free_section_addr_info): Don't declare.
418 * symfile.c (alloc_section_addr_info): Remove.
419 (build_section_addr_info_from_section_table): Change return type.
421 (build_section_addr_info_from_bfd)
422 (build_section_addr_info_from_objfile): Likewise.
423 (free_section_addr_info): Remove.
424 (relative_addr_info_to_section_offsets): Change type of "addrs".
425 (addrs_section_compar): Now a std::sort comparator.
426 (addrs_section_sort): Change return type.
427 (addr_info_make_relative): Change type of "addrs". Update.
428 (default_symfile_offsets, syms_from_objfile_1)
429 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
430 (symbol_file_add_separate): Update.
431 (symbol_file_add): Change type of "addrs". Update.
432 (add_symbol_file_command): Update. Remove cleanups.
433 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
435 * symfile-debug.c (debug_sym_offsets): Change type of "info".
436 * solib.c (solib_read_symbols): Update.
437 * objfiles.c (objfile_relocate): Update. Remove cleanups.
438 * machoread.c (macho_symfile_offsets): Update.
439 * jit.c (jit_bfd_try_read_symtab): Update.
441 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
443 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
444 unittests/utils-selftests.c.
445 * unittests/utils-selftests.c: New file.
447 2018-03-14 Tom Tromey <tom@tromey.com>
450 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
453 2018-03-14 Tom Tromey <tom@tromey.com>
456 * printcmd.c (printf_pointer): Allow "-" in format.
458 2018-03-14 Tom Tromey <tom@tromey.com>
460 * printcmd.c (_initialize_printcmd): Add usage to printf.
462 2018-03-14 Yao Qi <qiyao@sourceware.org>
464 * MAINTAINERS: Update my email address.
466 2018-03-13 Tom Tromey <tom@tromey.com>
468 * machoread.c (macho_check_dsym): Change filenamep to a
470 (macho_symfile_read): Update.
471 * symfile.c (load_command): Use std::string.
473 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
475 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
476 to error message string.
477 (riscv_register_name): Use xsnprintf instead of sprintf.
478 (riscv_insn::fetch_instruction): Use gdb_assert instead of
480 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
482 (riscv_push_dummy_call): Likewise.
484 2018-03-12 Tom Tromey <tom@tromey.com>
486 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
487 Use gdb::byte_vector.
488 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
490 2018-03-12 Yao Qi <yao.qi@linaro.org>
492 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
493 parameter type to readable_regcache.
494 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
497 2018-03-11 Tom Tromey <tom@tromey.com>
499 * dwarf2read.c (struct nextfield): Add initializers.
500 (struct nextfnfield): Remove.
501 (struct fnfieldlist): Add initializers. Remove "length" and
502 "head", use std::vector.
503 (struct decl_field_list): Remove.
504 (struct field_info): Add initializers.
505 <fields, baseclasses>: Now std::vector.
506 <nbaseclasses, nfnfields, typedef_field_list_count,
507 nested_types_list_count>: Remove.
508 (dwarf2_add_field, dwarf2_add_type_defn)
509 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
510 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
511 (process_structure_scope): Update.
513 2018-03-11 Tom Tromey <tom@tromey.com>
515 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
516 for use by std::sort.
517 (build_type_psymtabs_1): Use std::vector.
519 2018-03-09 Eli Zaretskii <eliz@gnu.org>
521 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
522 and LIBMPFR in the printed configuration.
524 2018-03-08 Tom Tromey <tom@tromey.com>
526 * source.c (get_filename_and_charpos): Use scoped_fd.
527 * nto-procfs.c (procfs_open_1): Use scoped_fd.
528 (procfs_pidlist): Likewise.
529 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
530 (iterate_over_mappings): Likewise.
532 2018-03-08 Tom Tromey <tom@tromey.com>
534 * infcall.c (struct call_return_meta_info)
535 <stack_temporaries_enabled>: Remove.
536 (get_call_return_value, call_function_by_hand_dummy): Update.
537 * thread.c (disable_thread_stack_temporaries): Remove.
538 (enable_thread_stack_temporaries): Remove.
539 (thread_stack_temporaries_enabled_p): Return bool.
540 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
541 (get_last_thread_stack_temporary): Update.
542 * eval.c (evaluate_subexp): Update.
543 * gdbthread.h (class enable_thread_stack_temporaries): Now a
544 class, not a function.
545 (value_ptr, value_vec): Remove typedefs.
546 (class thread_info) <stack_temporaries_enabled>: Now bool.
547 <stack_temporaries>: Now a std::vector.
548 (thread_stack_temporaries_enabled_p)
549 (value_in_thread_stack_temporaries): Return bool.
551 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
553 * remote.c (putpkt_binary): Fix omitted bytes reporting.
554 (getpkt_or_notif_sane_1): Likewise.
556 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
558 * build-id.c (build_id_to_debug_bfd): Use std::string.
560 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
562 * build-id.c (find_separate_debug_file_by_buildid): Return
564 * build-id.h (find_separate_debug_file_by_buildid): Return
566 * coffread.c (coff_symfile_read): Adjust to std::string.
567 * elfread.c (elf_symfile_read): Adjust to std::string.
568 * symfile.c (separate_debug_file_exists): Change parameter to
570 (find_separate_debug_file): Return std::string.
571 (find_separate_debug_file_by_debuglink): Return std::string.
572 * symfile.h (find_separate_debug_file_by_debuglink): Return
575 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
577 * common/xml-utils.c (xml_escape_text): Move code to...
578 (xml_escape_text_append): ... this new function.
579 * common/xml-utils.h (xml_escape_text_append): New declaration.
580 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
582 (_initialize_xml_utils): register test_xml_escape_text_append as
585 2018-03-07 Alan Hayward <alan.hayward@arm.com>
587 * defs.h: Remove MAX_REGISTER_SIZE.
588 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
590 * python/py-unwind.c (pyuw_sniffer): Likewise.
592 2018-03-07 Tom Tromey <tom@tromey.com>
594 * linux-tdep.c (linux_info_proc): Update.
595 * target.h (struct target_ops) <to_fileio_readlink>: Return
597 (target_fileio_readlink): Return optional<string>.
598 * remote.c (remote_hostio_readlink): Return optional<string>.
599 * inf-child.c (inf_child_fileio_readlink): Return
601 * target.c (target_fileio_readlink): Return optional<string>.
603 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
605 * regcache.c (cooked_read_test): Add riscv to the list of
606 architectures that have a save_reggroup.
608 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
610 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
611 value is not a dynamic class object.
613 2018-03-06 Tom Tromey <tom@tromey.com>
615 * rust-exp.y: Formatting fixes.
617 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
619 * riscv-tdep.c (riscv_register_name): Remove target description
621 (riscv_gdbarch_init): Remove target description check.
623 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
625 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
627 * riscv-tdep.h: Likewise.
629 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
631 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
632 (riscv_pseudo_register_write): Delete.
633 (riscv_gdbarch_init): Remove all use of pseudo registers.
635 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
637 * record-btrace.c (btrace_print_lines): Replace cleanup
638 parameter with RAII equivalents.
639 (btrace_insn_history): Replace cleanup with RAII equivalents.
640 * ui-out.h (make_cleanup_ui_out_list_begin_end,
641 make_cleanup_ui_out_tuple_begin_end): Remove.
642 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
643 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
644 make_cleanup_ui_out_list_begin_end): Remove.
646 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
648 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
649 parameter types to std::vector. Use bool.
650 (record_btrace_wait): Replace VEC(tp_t) with
651 std::vector<thread_info *>.
652 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
654 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
656 * record-btrace.c (record_btrace_disable_callback): Remove.
657 (struct scoped_btrace_disable): New.
658 (record_btrace_open): Use scoped_btrace_disable.
660 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
662 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
663 reading values from registers.
665 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
667 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
670 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
672 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
673 change parameter type. Use GDB's print functions, and use
674 core_addr_to_string where appropriate.
675 (riscv_push_dummy_call): Use core_addr_to_string where
676 appropriate, update call to riscv_print_arg_location, and reindent
678 (riscv_return_value): Update call to riscv_print_arg_location.
680 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
681 Tim Newsome <tim@sifive.com>
682 Albert Ou <a0u@eecs.berkeley.edu>
683 Darius Rad <darius@bluespec.com>
685 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
686 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
687 (ALLDEPFILES): Add riscv-tdep.c
688 * configure.tgt: Add riscv support.
689 * riscv-tdep.c: New file.
690 * riscv-tdep.h: New file.
691 * NEWS: Mention new target.
692 * MAINTAINERS: Add entry for riscv.
694 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
696 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
697 fields within aggregates.
699 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
701 * record-btrace.c (btrace_print_lines): Change type of flags to
702 gdb_disassembly_flags.
704 2018-03-04 John Baldwin <jhb@FreeBSD.org>
706 * fbsd-nat.c: Include "inf-ptrace.h".
707 (USE_SIGTRAP_SIGINFO): Conditionally define.
708 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
709 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
710 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
712 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
714 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
716 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
717 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
718 "supports_stopped_by_hw_breakpoint" target methods.
720 2018-03-04 John Baldwin <jhb@FreeBSD.org>
722 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
723 * fbsd-nat.c (debug_fbsd_nat): New variable.
724 (show_fbsd_nat_debug): New function.
725 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
726 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
728 2018-03-04 John Baldwin <jhb@FreeBSD.org>
730 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
731 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
733 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
734 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
737 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
739 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
740 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
742 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
744 * charset.c (struct charset_vector): New.
745 (charsets): Change type to charset_vector.
746 (find_charset_names): Adjust.
748 (_initialize_charset): Adjust.
750 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
752 * progspace.h (struct program_space) <deleted_solibs>: Change
753 type to std::vector<std::string>.
754 * progspace.c (clear_program_space_solib_cache): Adjust.
755 * breakpoint.c (print_solib_event): Adjust.
756 (check_status_catch_solib): Adjust.
757 * solib.c (update_solib_list): Adjust.
758 * ui-out.h (class ui_out) <field_string>: New overload.
759 * ui-out.c (ui_out::field_string): New overload.
761 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
763 * progspace.h (struct program_space): Add constructor and
764 destructor, initialize fields.
765 (add_program_space): Remove.
766 * progspace.c (add_program_space): Rename to...
767 (program_space::program_space): ... this.
768 (release_program_space): Rename to...
769 (program_space::~program_space): ... this.
770 (delete_program_space): Use delete to delete program_space.
771 (initialize_progspace): Use new to allocate program_space.
772 * inferior.c (add_inferior_with_spaces): Likewise.
773 (clone_inferior_command): Likewise.
774 * infrun.c (follow_fork_inferior): Likewise.
775 (handle_vfork_child_exec_or_exit): Likewise.
777 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
779 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
780 (delim_string_to_char_ptr_vec): Return std::vector of
781 gdb::unique_xmalloc_ptr.
782 (dirnames_to_char_ptr_vec_append): Take std::vector of
783 gdb::unique_xmalloc_ptr.
784 (dirnames_to_char_ptr_vec): Return std::vector of
785 gdb::unique_xmalloc_ptr.
786 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
787 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
788 (delim_string_to_char_ptr_vec): Return an std::vector of
789 gdb::unique_xmalloc_ptr, adjust the code.
790 (dirnames_to_char_ptr_vec_append): Take an std::vector of
791 gdb::unique_xmalloc_ptr, adjust the code.
792 (dirnames_to_char_ptr_vec): Return an std::vector of
793 gdb::unique_xmalloc_ptr, adjust the code.
794 * auto-load.c (auto_load_safe_path_vec): Change type to
795 std::vector of gdb::unique_xmalloc_ptr.
796 (auto_load_expand_dir_vars): Return an std::vector of
797 gdb::unique_xmalloc_ptr, adjust the code.
798 (auto_load_safe_path_vec_update): Adjust.
799 (filename_is_in_auto_load_safe_path_vec): Adjust.
800 (auto_load_objfile_script_1): Adjust.
801 * build-id.c (build_id_to_debug_bfd): Adjust.
802 * linux-thread-db.c (thread_db_load_search): Adjust.
803 * source.c (add_path): Adjust.
805 * symfile.c (find_separate_debug_file): Adjust.
806 * utils.c (do_free_char_ptr_vec): Remove.
807 (make_cleanup_free_char_ptr_vec): Remove.
809 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
812 * common/pathstuff.c: Conditionally include "<windows.h>".
814 2018-03-01 Georg Sauthoff <mail@georg.so>
817 * gcore.in: Quote variables and switch interpreter to bash.
819 2018-03-01 Tom Tromey <tom@tromey.com>
821 * dwarf2read.c (alloc_discriminant_info): Fix default_index
822 assertion. Add assertion for discriminant_index.
823 (quirk_rust_enum): Use correct base type name in univariant case.
825 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
827 * record.c (get_call_history_modifiers): Return a
829 (cmd_record_call_history): Adjust.
830 * record-btrace.c (record_btrace_call_history): Adjust.
831 (record_btrace_call_history_range): Adjust.
832 (record_btrace_call_history_from): Adjust.
833 * target-debug.h (target_debug_print_record_print_flags): New.
834 * target-delegates.c: Re-generate.
835 * target.c (target_call_history): Change flags type.
836 (target_call_history_from): Likewise.
837 (target_call_history_range): Likewise.
838 * target.h (struct target_ops) <target_call_history>: Likewise.
839 (target_call_history_from): Likewise.
840 (target_call_history_range): Likewise.
842 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
843 Simon Marchi <simon.marchi@polymtl.ca>
845 * common/common-utils.c: Include "sys/stat.h".
846 (is_regular_file): Move here from "source.c"; change return
848 * common/common-utils.h (is_regular_file): New prototype.
849 * common/pathstuff.c (contains_dir_separator): New function.
850 * common/pathstuff.h (contains_dir_separator): New prototype.
851 * source.c: Don't include "sys/stat.h".
852 (is_regular_file): Move to "common/common-utils.c".
854 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
856 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
857 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
858 * auto-load.c: Include "common/pathstuff.h".
859 * common/common-def.h (current_directory): Move here.
860 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
862 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
864 * common/pathstuff.c: New file.
865 * common/pathstuff.h: New file.
866 * compile/compile.c: Include "common/pathstuff.h".
867 * defs.h (current_directory): Move to "common/common-defs.h".
868 * dwarf2read.c: Include "common/pathstuff.h".
870 * guile/scm-safe-call.c: Likewise.
871 * linux-thread-db.c: Likewise.
873 * nto-tdep.c: Likewise.
874 * objfiles.c: Likewise.
875 * source.c: Likewise.
876 * symtab.c: Likewise.
877 * utils.c: Include "common/pathstuff.h".
878 (gdb_realpath): Move to "common/pathstuff.c".
879 (gdb_realpath_keepfile): Likewise.
880 (gdb_abspath): Likewise.
881 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
882 (gdb_realpath_keepfile): Likewise.
883 (gdb_abspath): Likewise.
885 2018-02-28 John Baldwin <jhb@FreeBSD.org>
887 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
888 wildcard process pid for super_resume for kernels with a
891 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
893 * compile/compile.c (get_args): Add additional comments
896 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
897 Tom Tromey <tom@tromey.com>
899 * target.h (memory_write_request_s): Remove typedef. Don't define
901 (target_write_memory_blocks): Change argument to std::vector.
902 (struct memory_write_request): Add constructor.
903 * target-memory.c (compare_block_starting_address): Return bool.
904 Change argument types.
905 (claim_memory): Change arguments to use std::vector.
906 (split_regular_and_flash_blocks, blocks_to_erase)
907 (compute_garbled_blocks): Likewise.
908 (cleanup_request_data, cleanup_write_requests_vector): Remove.
909 (target_write_memory_blocks): Change argument to std::vector.
910 * symfile.c (struct load_section_data): Add constructor and
911 destructor. Use std::vector for "requests".
912 (struct load_progress_data): Add initializers.
913 (load_section_callback): Update. Use "new".
914 (clear_memory_write_data): Remove.
915 (generic_load): Update.
917 2018-02-27 Alan Hayward <alan.hayward@arm.com>
919 * arch/aarch64.h: Use common/tdesc.h.
921 2018-02-26 Maciej W. Rozycki <macro@mips.com>
923 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
924 architecture with a 64-bit ABI.
926 2018-02-26 Maciej W. Rozycki <macro@mips.com>
928 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
929 ahead of target description loading.
931 2018-02-26 Tom Tromey <tom@tromey.com>
933 * stack.c (backtrace_command_1): Update.
934 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
936 * python/py-framefilter.c (py_print_frame)
937 (gdbpy_apply_frame_filter): Change type of "flags".
938 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
940 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
941 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
942 * extension.h (enum frame_filter_flag): Rename from
944 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
945 (apply_ext_lang_frame_filter): Change type of "flags".
946 * extension.c (apply_ext_lang_frame_filter): Change type of
948 * extension-priv.h (struct extension_language_ops)
949 <apply_frame_filter>: Change type of "flags".
951 2018-02-26 Tom Tromey <tom@tromey.com>
954 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
955 off-by-one in py_end computation.
956 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
958 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
961 2018-02-26 Tom Tromey <tom@tromey.com>
963 * dwarf2read.c (struct variant_field): New.
964 (struct nextfield) <variant>: New field.
965 (dwarf2_add_field): Handle DW_TAG_variant_part.
966 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
968 (read_structure_type): Handle DW_TAG_variant_part.
969 (handle_struct_member_die): New function, extracted from
970 process_structure_scope. Handle DW_TAG_variant.
971 (process_structure_scope): Handle discriminated unions. Call
972 handle_struct_member_die.
974 2018-02-26 Tom Tromey <tom@tromey.com>
976 * rust-lang.h (rust_last_path_segment): Declare.
977 * rust-lang.c (rust_last_path_segment): Now public. Change
979 (struct disr_info): Remove.
980 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
981 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
982 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
983 (rust_enum_p, rust_enum_variant): New function.
984 (rust_underscore_fields): Remove "offset" parameter.
985 (rust_print_enum): New function.
986 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
987 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
988 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
990 (rust_internal_print_type): New function, from rust_print_type.
992 (rust_print_type): Call rust_internal_print_type.
993 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
994 Update enum handling.
995 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
996 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
997 (rust_union_quirks): New functions.
998 (process_full_comp_unit, process_full_type_unit): Call
1000 (process_structure_scope): Update rust_unions if necessary.
1002 2018-02-26 Tom Tromey <tom@tromey.com>
1004 * value.h (value_union_variant): Declare.
1005 * valops.c (value_union_variant): New function.
1006 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1007 (struct discriminant_info): New.
1008 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1010 (struct main_type) <flag_discriminated_union>: New field.
1012 2018-02-26 Tom Tromey <tom@tromey.com>
1014 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1015 unittests/unpack-selftests.c.
1016 * unittests/unpack-selftests.c: New file.
1017 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1019 2018-02-26 Yao Qi <yao.qi@linaro.org>
1021 * dwarf2read.c (struct partial_die_info) <read>: New method.
1022 (read_partial_die): Remove the declaration.
1023 (load_partial_dies): Update.
1024 (partial_die_info::partial_die_info):
1025 (read_partial_die): Change it to partial_die_info::read.
1027 2018-02-26 Yao Qi <yao.qi@linaro.org>
1029 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1030 (fixup_partial_die): Remove declaration.
1031 (scan_partial_symbols): Update.
1032 (partial_die_parent_scope): Likewise.
1033 (partial_die_full_name): Likewise.
1034 (fixup_partial_die): Change it to partial_die_info::fixup.
1036 2018-02-26 Yao Qi <yao.qi@linaro.org>
1038 * dwarf2read.c (read_partial_die): Update the declaration.
1039 (load_partial_dies): Caller update.
1040 (read_partial_die): Remove one argument abbrev_len.
1042 2018-02-26 Yao Qi <yao.qi@linaro.org>
1044 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1045 assignment operator.
1046 (load_partial_dies): Use ctor and copy ctor.
1047 (read_partial_die): Update.
1048 (dwarf2_cu::find_partial_die): Use ctor.
1050 2018-02-26 Yao Qi <yao.qi@linaro.org>
1052 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1053 (find_partial_die_in_comp_unit): Change it to
1054 dwarf2_cu::find_partial_die.
1055 (find_partial_die): Update.
1057 2018-02-26 Yao Qi <yao.qi@linaro.org>
1059 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1062 2018-02-26 Yao Qi <yao.qi@linaro.org>
1064 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1066 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1068 * arch/amd64.h: Use common/tdesc.h.
1069 * arch/i386.c: Likewise.
1070 * arch/i386.h: Likewise.
1071 * arch/tic6x.c: Likewise.
1072 * arch/tdesc.h: Move file from here...
1073 * common/tdesc.h: ...to here.
1074 * features/aarch64-core.c: Regenerate.
1075 * features/aarch64-fpu.c: Regenerate.
1076 * features/i386/32bit-avx.c: Regenerate.
1077 * features/i386/32bit-avx512.c: Regenerate.
1078 * features/i386/32bit-core.c: Regenerate.
1079 * features/i386/32bit-linux.c: Regenerate.
1080 * features/i386/32bit-mpx.c: Regenerate.
1081 * features/i386/32bit-pkeys.c: Regenerate.
1082 * features/i386/32bit-sse.c: Regenerate.
1083 * features/i386/64bit-avx.c: Regenerate.
1084 * features/i386/64bit-avx512.c: Regenerate.
1085 * features/i386/64bit-core.c: Regenerate.
1086 * features/i386/64bit-linux.c: Regenerate.
1087 * features/i386/64bit-mpx.c: Regenerate.
1088 * features/i386/64bit-pkeys.c: Regenerate.
1089 * features/i386/64bit-segments.c: Regenerate.
1090 * features/i386/64bit-sse.c: Regenerate.
1091 * features/i386/x32-core.c: Regenerate.
1092 * features/tic6x-c6xp.c: Regenerate.
1093 * features/tic6x-core.c: Regenerate.
1094 * features/tic6x-gp.c: Regenerate.
1095 * target-descriptions.c: Use common/tdesc.h.
1096 * target-descriptions.h: Likewise.
1098 2018-02-24 Tom Tromey <tom@tromey.com>
1100 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1101 (try_thread_db_load_from_dir, thread_db_load_search): Use
1103 (info_auto_load_libthread_db_compare): Return bool. Change
1105 (info_auto_load_libthread_db): Use std::vector, std::string.
1108 2018-02-24 Tom Tromey <tom@tromey.com>
1110 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1112 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1114 * gdbarch.c: Rebuild.
1115 * gdbarch.h: Rebuild.
1116 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1117 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1118 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1121 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1123 * gdbtypes.h (sect_offset): Change type to uint64_t.
1124 (sect_offset_str): New function.
1125 * dwarf2read.c (create_addrmap_from_aranges): Use
1127 (error_check_comp_unit_head): Likewise.
1128 (create_debug_type_hash_table): Likewise.
1129 (read_cutu_die_from_dwo): Likewise.
1130 (init_cutu_and_read_dies): Likewise.
1131 (init_cutu_and_read_dies_no_follow): Likewise.
1132 (process_psymtab_comp_unit_reader): Likewise.
1133 (partial_die_parent_scope): Likewise.
1134 (peek_die_abbrev): Likewise.
1135 (process_queue): Likewise.
1136 (dwarf2_physname): Likewise.
1137 (read_namespace_alias): Likewise.
1138 (read_import_statement): Likewise.
1139 (create_dwo_cu_reader): Likewise.
1140 (create_cus_hash_table): Likewise.
1141 (lookup_dwo_cutu): Likewise.
1142 (inherit_abstract_dies): Likewise.
1143 (read_func_scope): Likewise.
1144 (read_call_site_scope): Likewise.
1145 (dwarf2_add_member_fn): Likewise.
1146 (read_common_block): Likewise.
1147 (read_module_type): Likewise.
1148 (read_typedef): Likewise.
1149 (read_subrange_type): Likewise.
1150 (load_partial_dies): Likewise.
1151 (read_partial_die): Likewise.
1152 (find_partial_die): Likewise.
1153 (read_str_index): Likewise.
1154 (dwarf2_string_attr): Likewise.
1155 (build_error_marker_type): Likewise.
1156 (lookup_die_type): Likewise.
1157 (dump_die_shallow): Likewise.
1158 (follow_die_ref): Likewise.
1159 (dwarf2_fetch_die_loc_sect_off): Likewise.
1160 (dwarf2_fetch_constant_bytes): Likewise.
1161 (follow_die_sig): Likewise.
1162 (get_signatured_type): Likewise.
1163 (get_DW_AT_signature_type): Likewise.
1164 (dwarf2_find_containing_comp_unit): Likewise.
1165 (set_die_type): Likewise.
1167 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1169 * arch/aarch64.c: Include "common-defs.h".
1170 * arch/amd64.c: Likewise.
1171 * arch/i386.c: Likewise.
1173 2018-02-21 Tom Tromey <tom@tromey.com>
1175 * value.h: (extract_field_op): Update.
1176 * eval.c (extract_field_op): Return a const char *.
1177 * expression.h (parse_expression_for_completion): Update.
1178 * completer.c (complete_expression): Update.
1179 (add_struct_fields): Make fieldname const.
1180 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1181 (mark_completion_tag, parse_exp_in_context_1): Update.
1182 (parse_expression_for_completion): Change "name" to
1183 unique_xmalloc_ptr*.
1185 2018-02-21 Tom Tromey <tom@tromey.com>
1187 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1189 2018-02-21 Yao Qi <yao.qi@linaro.org>
1191 * avr-tdep.c (avr_read_pc): Change parameter type to
1193 * gdbarch.sh (read_pc): Likewise.
1194 * gdbarch.c: Re-generated.
1195 * gdbarch.h: Re-generated.
1196 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1198 * ia64-tdep.c (ia64_read_pc): Likewise.
1199 * mips-tdep.c (mips_read_pc): Likewise.
1200 * spu-tdep.c (spu_read_pc): Likewise.
1202 2018-02-21 Yao Qi <yao.qi@linaro.org>
1204 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1205 * regcache-dump.c: New file.
1206 * regcache.c: Move register_dump to regcache-dump.c.
1207 (maintenance_print_registers): Likewise.
1208 (maintenance_print_raw_registers): Likewise.
1209 (maintenance_print_cooked_registers): Likewise.
1210 (maintenance_print_register_groups): Likewise.
1211 (maintenance_print_remote_registers): Likewise.
1212 (_initialize_regcache): Likewise.
1213 * regcache.h (register_dump): Moved from regcache.c.
1215 2018-02-21 Yao Qi <yao.qi@linaro.org>
1217 * regcache.c (regcache::regcache): Update.
1218 (regcache::invalidate): Move it to detached_regcache::invalidate.
1219 (get_thread_arch_aspace_regcache): Update.
1220 (regcache::raw_update): Update.
1221 (regcache::cooked_read): Remove some code.
1222 (regcache::cooked_read_value): Likewise.
1223 (regcache::raw_write): Remove assert on m_readonly_p.
1224 (regcache::raw_supply_integer): Move it to
1225 detached_regcache::raw_supply_integer.
1226 (regcache::raw_supply_zeroed): Likewise.
1227 * regcache.h (detached_regcache) <raw_supply_integer>: New
1229 <raw_supply_zeroed, invalidate>: Likewise.
1230 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1231 <invalidate>: Likewise.
1232 <m_readonly_p>: Removed.
1234 2018-02-21 Yao Qi <yao.qi@linaro.org>
1236 * infcmd.c (get_return_value): Let stop_regs point to
1237 get_current_regcache.
1238 * regcache.c (regcache::regcache): Remove.
1239 (register_dump_reg_buffer): New class.
1240 (regcache_print): Adjust.
1241 * regcache.h (regcache): Remove constructors.
1243 2018-02-21 Yao Qi <yao.qi@linaro.org>
1245 * regcache.c (class register_dump): New class.
1246 (register_dump_regcache, register_dump_none): New class.
1247 (register_dump_remote, register_dump_groups): New class.
1248 (regcache_print): Update.
1249 * regcache.h (regcache_dump_what): Move it to regcache.c.
1250 (regcache) <dump>: Remove.
1252 2018-02-21 Yao Qi <yao.qi@linaro.org>
1254 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1256 (jit_unwind_reg_set_impl): Call raw_supply.
1257 (jit_frame_sniffer): Use reg_buffer_rw.
1258 * record-full.c (record_full_core_regbuf): Change its type.
1259 (record_full_core_open_1): Use reg_buffer_rw.
1260 (record_full_close): Likewise.
1261 (record_full_core_fetch_registers): Use regcache->raw_supply.
1262 (record_full_core_store_registers): Likewise.
1263 * regcache.c (regcache::get_register_status): Move it to
1265 (regcache_raw_set_cached_value): Remove.
1266 (regcache::raw_set_cached_value): Remove.
1267 (regcache::raw_write): Call raw_supply.
1268 (regcache::raw_supply): Move it to reg_buffer_rw.
1269 * regcache.h (regcache_raw_set_cached_value): Remove.
1270 (reg_buffer_rw): New class.
1272 2018-02-21 Yao Qi <yao.qi@linaro.org>
1274 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1275 readonly_detached_regcache.
1276 (dummy_frame_prev_register): Use regcache->cooked_read.
1277 * frame.c (frame_save_as_regcache): Change return type.
1278 (frame_pop): Update.
1279 * frame.h (frame_save_as_regcache): Update declaration.
1280 * inferior.h (get_infcall_suspend_state_regcache): Update
1282 * infrun.c (infcall_suspend_state) <registers>: use
1283 readonly_detached_regcache.
1284 (save_infcall_suspend_state): Don't use regcache_dup.
1285 (get_infcall_suspend_state_regcache): Change return type.
1286 * linux-fork.c (struct fork_info) <savedregs>: Change to
1287 readonly_detached_regcache.
1289 (fork_save_infrun_state): Don't use regcache_dup.
1290 (info_checkpoints_command): Adjust.
1291 * mi/mi-main.c (register_changed_p): Update declaration.
1292 (mi_cmd_data_list_changed_registers): Use
1293 readonly_detached_regcache.
1294 (register_changed_p): Change parameter type to
1295 readonly_detached_regcache.
1296 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1297 readonly_detached_regcache.
1298 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1299 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1301 (regcache::save): Move it to reg_buffer.
1302 (regcache::restore): Change parameter type.
1303 (regcache_dup): Remove.
1304 * regcache.h (reg_buffer) <save>: New method.
1305 (readonly_detached_regcache): New class.
1306 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1307 readonly_detached_regcache.
1308 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1310 2018-02-21 Yao Qi <yao.qi@linaro.org>
1312 * frame.c (frame_save_as_regcache): Use regcache method save.
1313 (frame_pop): Use regcache method restore.
1314 * infrun.c (restore_infcall_suspend_state): Likewise.
1315 * linux-fork.c (fork_load_infrun_state): Likewise.
1316 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1318 * regcache.c (regcache_save): Remove.
1319 (regcache::restore): More asserts.
1320 (regcache_cpy): Remove.
1321 * regcache.h (regcache_save): Remove the declaration.
1322 (regcache::restore): Move from private to public.
1323 Remove the friend declaration of regcache_cpy.
1324 (regcache_cpy): Remove declaration.
1326 2018-02-21 Yao Qi <yao.qi@linaro.org>
1328 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1329 parameter type to 'readable_regcache *'.
1330 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1331 * arm-tdep.c (arm_neon_quad_read): Likewise.
1332 (arm_pseudo_read): Likewise.
1333 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1334 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1335 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1336 * gdbarch.c: Re-generated.
1337 * gdbarch.h: Re-generated.
1338 * gdbarch.sh (pseudo_register_read): Change parameter type to
1339 'readable_regcache *'.
1340 (pseudo_register_read_value): Likewise.
1341 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1342 (h8300_pseudo_register_read): Likewise.
1343 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1344 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1345 (i386_pseudo_register_read_into_value): Likewise.
1346 (i386_pseudo_register_read_value): Likewise.
1347 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1349 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1350 * m32c-tdep.c (m32c_raw_read): Likewise.
1351 (m32c_read_flg): Likewise.
1352 (m32c_banked_register): Likewise.
1353 (m32c_banked_read): Likewise.
1354 (m32c_sb_read): Likewise.
1355 (m32c_part_read): Likewise.
1356 (m32c_cat_read): Likewise.
1357 (m32c_r3r2r1r0_read): Likewise.
1358 (m32c_pseudo_register_read): Likewise.
1359 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1360 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1361 (mep_pseudo_cr64_read): Likewise.
1362 (mep_pseudo_register_read): Likewise.
1363 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1364 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1365 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1366 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1367 (regcache::cooked_read): Likewise.
1368 (regcache::cooked_read_value): Likewise.
1369 (regcache_cooked_read_signed):
1370 (regcache::cooked_read): Likewise.
1371 * regcache.h (readable_regcache): New class.
1372 (regcache): Inherit readable_regcache. Move some methods to
1374 * rl78-tdep.c (rl78_pseudo_register_read): Change
1375 parameter type to 'readable_regcache *'.
1376 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1377 (e500_pseudo_register_read): Change parameter type to
1378 'readable_regcache *'.
1379 (dfp_pseudo_register_read): Likewise.
1380 (vsx_pseudo_register_read): Likewise.
1381 (efpr_pseudo_register_read): Likewise.
1382 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1383 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1384 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1385 (sh64_pseudo_register_read): Likewise.
1386 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1387 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1388 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1389 (spu_pseudo_register_read): Likewise.
1390 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1391 (xtensa_pseudo_register_read): Likewise.
1393 2018-02-21 Yao Qi <yao.qi@linaro.org>
1395 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1396 (regcache::arch): Move it to reg_buffer::arch.
1397 (regcache::register_buffer): Likewise.
1398 (regcache::assert_regnum): Likewise.
1399 (regcache::num_raw_registers): Likewise.
1400 * regcache.h (reg_buffer): New class.
1401 (regcache): Inherit reg_buffer.
1403 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1405 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1406 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1408 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1410 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1412 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1414 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1415 (SFILES): Remove common/*.c files.
1416 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1417 * common/common.host: Add common reference.
1418 * configure.ac: Likewise.
1419 * configure: Regenerate.
1421 2018-02-16 Yao Qi <yao.qi@linaro.org>
1423 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1424 (block_initialize_namespace): Use new.
1425 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1426 (dwarf2_free_objfile): Use delete.
1427 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1428 (copy_type_recursive): Use new.
1429 * gdb_obstack.h (allocate_on_obstack): New.
1431 2018-02-15 Yao Qi <yao.qi@linaro.org>
1434 * inferior.c (exit_inferior_1): Reset inf->control.
1436 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1438 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1441 2018-02-14 Pedro Alves <palves@redhat.com>
1443 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1444 frame_cleanup_after_sniffer on exception.
1446 2018-02-14 Tom Tromey <tom@tromey.com>
1448 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1450 (solib_bfd_open): Make pathname const.
1451 * solib.c (solib_bfd_open): Make pathname const.
1452 * solib-spu.c (spu_bfd_fopen): Make name const.
1453 (spu_bfd_open): Make pathname const.
1454 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1455 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1457 2018-02-14 Tom Tromey <tom@tromey.com>
1459 * symfile.c (symfile_bfd_open): Update.
1460 * source.h (openp, source_full_path_of, find_and_open_source):
1461 Change argument type to unique_xmalloc_ptr.
1462 * source.c (openp): Take a unique_xmalloc_ptr.
1463 (source_full_path_of, find_and_open_source): Likewise.
1464 (open_source_file, symtab_to_fullname): Update.
1465 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1467 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1468 (exec_file_find): Update.
1469 * psymtab.c (psymtab_to_fullname): Update.
1470 * nto-tdep.h (nto_find_and_open_solib): Update.
1471 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1473 * exec.c (exec_file_attach): Update.
1474 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1475 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1477 2018-02-14 Tom Tromey <tom@tromey.com>
1479 * solib.c: Include source.h.
1480 * nto-tdep.c: Include source.h.
1481 * mi/mi-cmd-env.c: Include source.h.
1482 * infcmd.c: Include source.h.
1483 * exec.c: Include source.h.
1484 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1485 (add_path, directory_switch, source_path, init_source_path): Move
1487 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1488 (add_path, directory_switch, source_path, init_source_path):
1491 2018-02-14 Tom Tromey <tom@tromey.com>
1493 * solist.h (exec_file_find, solib_find): Return
1495 (solib_bfd_fopen): Take a const char *.
1496 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1497 (exec_file_find, solib_find): Likewise.
1498 (solib_bfd_fopen): Do not take ownership of "pathname".
1499 (solib_bfd_open): Use unique_xmalloc_ptr.
1500 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1501 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1502 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1503 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1505 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1507 * ada-lang.c (name_match_type_from_name): Remove reference to
1508 ada_name_for_lookup in function's documentation.
1509 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1511 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1513 * defs.h (enum openp_flags): New enum.
1514 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1515 Move to enum openp_flags.
1516 (openp_flags): New enum flags.
1517 (openp): Change parameter type to openp_flags.
1518 * source.c (openp): Change parameter type to openp_flags.
1519 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1520 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1522 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1524 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1527 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1529 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1531 (class dwarf2_queue_guard): ...the destructor of this new class.
1532 (dw2_do_instantiate_symtab): Create instance of the new class
1533 dwarf2_queue_guard, remove cleanup.
1535 2018-02-09 Tom Tromey <tom@tromey.com>
1537 * source.c (find_source_lines): Don't reference past the end of
1540 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1542 * remote.c (remote_btrace_maybe_reopen): Change error message.
1543 * btrace.c (btrace_enable): Likewise.
1544 (parse_xml_btrace): Likewise.
1545 (parse_xml_btrace_conf): Likewise.
1547 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1549 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1550 (linux_enable_pt, linux_enable_bts): Call
1551 diagnose_perf_event_open_fail.
1553 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1555 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1556 Remove parameter and change return type. Update callers. Move it.
1557 (linux_enable_bts, linux_enable_pt): Improve error message.
1558 (linux_enable_pt): Remove zero buffer size check.
1559 (linux_enable_btrace): Improve error messages. Remove NULL return
1562 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1564 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1565 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1566 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1567 (linux_supports_pt, linux_supports_btrace): Remove.
1568 (linux_enable_bts): Call cpu_supports_bts.
1569 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1570 * remote.c (remote_supports_btrace): Remove.
1571 (init_remote_ops): Remove remote_supports_btrace.
1572 * target-delegates.c: Regenerated.
1573 * target.c (target_supports_btrace): Remove.
1574 * target.h (target_ops) <to_supports_btrace>: Remove
1575 (target_supports_btrace): Remove.
1576 * x86-linux-nat.c (x86_linux_create_target): Remove
1577 linux_supports_btrace.
1579 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1581 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1583 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1584 exception and use message in own exception.
1586 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1588 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1589 (perf_event_pt_event_type): Use gdb_file_up.
1590 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1591 scoped_fd, and scoped_mmap.
1593 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1595 * common/scoped_mmap.h: New.
1596 * unittests/scoped_mmap-selftest.c: New.
1597 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1598 unittests/scoped_mmap-selftest.c.
1600 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1602 * common/scoped_fd.h: New.
1603 * unittests/scoped_fd-selftest.c: New.
1604 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1605 unittests/scoped_fd-selftest.c.
1607 2018-02-09 Tom Tromey <tom@tromey.com>
1609 * auto-load.c (auto_load_section_scripts): Use
1610 gdb::unique_xmalloc_ptr.
1612 2018-02-09 Tom Tromey <tom@tromey.com>
1614 * auto-load.c (execute_script_contents): Use std::string.
1616 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1618 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1619 Python function, rather than a new command.
1621 2018-02-08 Tom Tromey <tom@tromey.com>
1623 * solib.c (solib_find_1): Use std::string.
1624 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1626 2018-02-08 Tom Tromey <tom@tromey.com>
1628 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1630 2018-02-08 Tom Tromey <tom@tromey.com>
1632 * source.c (find_source_lines): Use gdb::def_vector.
1634 2018-02-08 Tom Tromey <tom@tromey.com>
1636 * macrocmd.c (struct temporary_macro_definition): New.
1637 (macro_define_command): Use temporary_macro_definition. Remove
1639 (free_macro_definition_ptr): Remove.
1641 2018-02-08 Tom Tromey <tom@tromey.com>
1643 * macroexp.c (maybe_expand): Use std::string.
1645 2018-02-08 Tom Tromey <tom@tromey.com>
1647 * macroexp.c (struct macro_buffer): Add initializers for some
1649 (init_buffer, init_shared_buffer, free_buffer)
1650 (free_buffer_return_text): Remove.
1651 (macro_buffer): New constructors.
1652 (~macro_buffer): New destructor.
1653 (macro_buffer::set_shared): New method.
1654 (macro_buffer::resize_buffer, macro_buffer::appendc)
1655 (macro_buffer::appendmem): Now methods, not free functions.
1656 (set_token, append_tokens_without_splicing, stringify)
1657 (macro_stringify): Update.
1658 (gather_arguments): Change return type. Remove argc_p argument,
1659 add args_ptr argument. Use std::vector.
1660 (substitute_args): Remove argc argument. Accept std::vector.
1661 (expand): Update. Use std::vector.
1662 (scan, macro_expand, macro_expand_next): Update.
1664 2018-02-08 Tom Tromey <tom@tromey.com>
1666 * symtab.c (default_collect_symbol_completion_matches_break_on):
1667 Use unique_xmalloc_ptr.
1668 * macroscope.h: (sal_macro_scope, user_macro_scope)
1669 (default_macro_scope): Return unique_xmalloc_ptr.
1670 * macroscope.c (sal_macro_scope, user_macro_scope)
1671 (default_macro_scope): Return unique_xmalloc_ptr.
1672 * macroexp.h (macro_expand, macro_expand_once): Return
1674 * macroexp.c (macro_expand, macro_expand_once): Return
1676 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1677 (info_macro_command, info_macros_command): Use
1679 * compile/compile-c-support.c (write_macro_definitions): Use
1681 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1683 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1685 * value.c (value_static_field): Assign field type instead of
1686 containing type when returning an optimized out value.
1688 2018-02-06 Yao Qi <yao.qi@linaro.org>
1690 * ft32-tdep.c (ft32_read_pc): Remove.
1691 (ft32_write_pc): Remove.
1692 (ft32_gdbarch_init): Update.
1693 * m32r-tdep.c (m32r_read_pc): Remove.
1694 (m32r_gdbarch_init): Update.
1695 * mep-tdep.c (mep_read_pc): Remove.
1696 (mep_gdbarch_init): Update.
1697 * microblaze-tdep.c (microblaze_write_pc): Remove.
1698 (microblaze_gdbarch_init): Update.
1699 * mn10300-tdep.c (mn10300_read_pc): Remove.
1700 (mn10300_write_pc): Remove.
1701 (mn10300_gdbarch_init): Update.
1702 * moxie-tdep.c (moxie_read_pc): Remove.
1703 (moxie_write_pc): Remove.
1704 (moxie_gdbarch_init): Update.
1706 2018-02-06 Yao Qi <yao.qi@linaro.org>
1708 * expprint.c (print_subexp_standard): Handle
1709 OP_F77_UNDETERMINED_ARGLIST.
1710 (dump_subexp_body_standard): Likewise.
1712 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1714 * target-descriptions.c (tdesc_element_visitor) Add empty
1716 (tdesc_type): Move make_gdb_type from here.
1717 (tdesc_type_builtin): Likewise.
1718 (tdesc_type_vector): Likewise.
1719 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1720 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1721 (make_gdb_type_union): Likewise.
1722 (make_gdb_type_flags): Likewise.
1723 (make_gdb_type_enum): Likewise.
1724 (make_gdb_type): New function.
1725 (tdesc_register_type): Use static make_gdb_type.
1727 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1729 * infcmd.c (default_print_one_register_info): Align natural-format
1730 column values consistently one under another.
1731 (pad_to_column): New function.
1733 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1735 * dwarf2read.c (dwarf2_physname): Move commment.
1737 2018-02-01 Leszek Swirski <leszeks@google.com>
1739 * varobj.c (varobj_formatted_print_options): Allow recursive
1740 pretty printing if pretty printing is enabled.
1742 2018-02-01 Leszek Swirski <leszeks@google.com>
1744 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1745 names after a structop as a filename.
1747 2018-02-01 Yao Qi <yao.qi@linaro.org>
1749 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1750 (arm_record_coproc_data_proc): Likewise.
1752 2018-02-01 Yao Qi <yao.qi@linaro.org>
1754 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1756 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1758 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1759 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1761 2018-01-31 Pedro Alves <palves@redhat.com>
1763 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1764 * inflow.c (child_terminal_save_inferior): Wrap reference to
1765 tcgetpgrp in HAVE_TERMIOS_H.
1766 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1768 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1769 always iterate over all inferiors.
1770 (gdbsim_cntrl_c): Adjust.
1771 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1773 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1775 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1776 index type is objfile-owned if the element type is as well.
1778 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1782 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1784 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1785 "features/s390x-linux64.c".
1786 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1787 s390_linux32 and s390x_linux64.
1788 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1790 * s390-tdep.c: Include "features/s390-linux32.c" and
1791 "features/s390x-linux64.c".
1792 (s390_tdesc_valid): Add check for tdesc_has_registers.
1793 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1794 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1795 tdesc_s390x_linux64.
1796 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1797 tdesc_s390x_linux64 to...
1798 * s390-tdep.h: ...here.
1800 2018-01-30 Pedro Alves <palves@redhat.com>
1803 * config.in, configure: Regenerate.
1804 * configure.ac: Check for getpgid.
1805 * go32-nat.c (go32_pass_ctrlc): New.
1806 (go32_target): Install it.
1807 * inf-child.c (inf_child_target): Install
1808 child_terminal_save_inferior, child_pass_ctrlc and
1810 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1811 (inf_ptrace_target): No longer install it.
1812 * infcmd.c (interrupt_target_1): Adjust.
1813 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1814 (child_interrupt): Declare.
1815 (inferior::terminal_state): New.
1816 * inflow.c (struct terminal_info): Update comments.
1817 (inferior_process_group): Delete.
1818 (terminal_is_ours): Delete.
1819 (gdb_tty_state): New.
1820 (child_terminal_init): Adjust.
1821 (is_gdb_terminal, sharing_input_terminal_1)
1822 (sharing_input_terminal): New functions.
1823 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1824 Set the process's actual process group in the foreground if
1825 possible. Handle is_ours_for_output/is_ours distinction. Don't
1826 mark terminal as the inferior's if not sharing GDB's terminal.
1827 Don't check attach_flag.
1828 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1829 pass down a target_terminal_state.
1830 (child_terminal_save_inferior): New, factored out from ...
1831 (child_terminal_ours_1): ... this. Handle
1832 target_terminal_state::is_ours_for_output.
1833 (child_interrupt, child_pass_ctrlc): New.
1834 (inflow_inferior_exit): Clear the inferior's terminal_state.
1835 (copy_terminal_info): Copy the inferior's terminal state.
1836 (_initialize_inflow): Remove reference to terminal_is_ours.
1837 * inflow.h (inferior_process_group): Delete.
1838 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1839 * procfs.c (procfs_target): Don't install procfs_interrupt.
1840 (procfs_interrupt): Delete.
1841 * remote.c (remote_serial_quit_handler): Adjust.
1842 (remote_interrupt): Remove ptid parameter. Adjust.
1843 * target-delegates.c: Regenerate.
1844 * target.c: Include "terminal.h".
1845 (target_terminal::terminal_state): Rename to ...
1846 (target_terminal::m_terminal_state): ... this.
1847 (target_terminal::init): Adjust.
1848 (target_terminal::inferior): Adjust to per-inferior
1850 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1851 (target_terminal::ours, target_terminal::ours_for_output): Use
1852 target_terminal_is_ours_kind.
1853 (target_interrupt): Remove ptid parameter. Adjust.
1854 (default_target_pass_ctrlc): Adjust.
1855 * target.h (target_ops::to_terminal_save_inferior): New field.
1856 (target_ops::to_interrupt): Remove ptid_t parameter.
1857 (target_interrupt): Remove ptid_t parameter. Update comment.
1858 (target_pass_ctrlc): Update comment.
1859 * target/target.h (target_terminal_state): New scoped enum,
1861 (target_terminal::terminal_state): ... here.
1862 (target_terminal::inferior): Update comments.
1863 (target_terminal::restore_inferior): New.
1864 (target_terminal::is_inferior, target_terminal::is_ours)
1865 (target_terminal::is_ours_for_output): Adjust.
1866 (target_terminal::scoped_restore_terminal_state): Adjust to
1867 rename, and call restore_inferior() instead of inferior().
1868 (target_terminal::scoped_restore_terminal_state::m_state): Change
1870 (target_terminal::terminal_state): Rename to ...
1871 (target_terminal::m_terminal_state): ... this and change type.
1873 2018-01-30 Pedro Alves <palves@redhat.com>
1875 * linux-nat.c (wait_for_signal): New function.
1876 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1878 (async_terminal_is_ours)
1879 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1880 (linux_nat_add_target): Don't override
1881 to_terminal_inferior/to_terminal_ours.
1883 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1885 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1887 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1889 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1890 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1891 dwarf2_per_objfile_free here.
1892 (dwarf2_per_objfile_free): Remove.
1893 (_initialize_dwarf2_read): Don't register
1894 dwarf2_per_objfile_free as a registry cleanup.
1896 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1898 Avoid compilation errors in MinGW native builds
1900 The error is triggered by including python-internal.h, and the
1903 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1904 from build-gnulib/import/math.h:27,
1905 from d:/usr/Python26/include/pyport.h:235,
1906 from d:/usr/Python26/include/Python.h:58,
1907 from python/python-internal.h:94,
1908 from python/py-arch.c:24:
1909 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1913 This happens because Python headers define 'hypot' to expand t
1914 '_hypot' in the Windows builds.
1915 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1916 'hypoth'. This avoids a compilation error.
1918 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1920 * MAINTAINERS (Write After Approval): Fix ordering.
1922 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1924 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1926 2018-01-26 Alan Modra <amodra@gmail.com>
1928 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1929 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1930 Remove nop. Make const. Comment.
1931 (powerpc32_plt_stub_so_2): New.
1932 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1933 Correct count. Update uses.
1934 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1935 Move common code reading PLT entry word. Correct
1936 powerpc32_plt_stub PLT address calculation.
1937 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1938 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1939 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1940 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1941 (ppc64_standard_linkage8): Likewise.
1942 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1943 Correct insns description.
1944 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1946 2018-01-24 Pedro Alves <palves@redhat.com>
1948 GCC PR libstdc++/83906
1949 * gdbtypes.c (operator==(const dynamic_prop &,
1950 const dynamic_prop &)): New.
1951 (operator==(const range_bounds &, const range_bounds &)): New.
1952 (check_types_equal): Use them instead of memcmp.
1953 * gdbtypes.h (operator==(const dynamic_prop &,
1954 const dynamic_prop &)): Declare.
1955 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1956 (operator==(const range_bounds &, const range_bounds &)): Declare.
1957 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1959 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1961 * s390-linux-tdep.c (s390_record_address_mask)
1962 (s390_record_calc_disp_common, s390_record_calc_disp)
1963 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1964 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1965 (s390_process_record): Move to s390-tdep.c.
1966 (s390_linux_init_abi_any): Adjust.
1967 * s390-tdep.c (s390_record_address_mask)
1968 (s390_record_calc_disp_common, s390_record_calc_disp)
1969 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1970 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1971 (s390_process_record): Moved from s390-linux-tdep.c
1972 (s390_gdbarch_init): Adjust.
1974 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1976 * s390-linux-nat.c (s390-tdep.h): New include.
1977 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1978 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1979 (ALLDEPFILES): Add s390-tdep.c.
1980 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1981 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1982 * s390-tdep.h: ...this. New file.
1983 * s390-linux-tdep.c (s390-tdep.h): New include.
1984 (_initialize_s390_tdep): Rename to...
1985 (_initialize_s390_linux_tdep): ...this and adjust.
1986 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1987 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1989 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1990 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1991 (s390_is_partial_instruction, s390_software_single_step)
1992 (is_non_branch_ril, s390_displaced_step_copy_insn)
1993 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1994 (s390_prologue_data, s390_addr, s390_store, s390_load)
1995 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1996 (s390_register_call_saved, s390_guess_tracepoint_registers)
1997 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1998 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1999 (s390_pseudo_register_name, s390_pseudo_register_type)
2000 (s390_pseudo_register_read, s390_pseudo_register_write)
2001 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2002 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2003 (s390_addr_bits_remove, s390_address_class_type_flags)
2004 (s390_address_class_type_flags_to_name)
2005 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2006 (s390_function_arg_float, s390_function_arg_vector)
2007 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2008 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2009 (s390_frame_align, s390_register_return_value, s390_return_value)
2010 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2011 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2012 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2013 (s390_trad_frame_prev_register, s390_unwind_cache)
2014 (s390_prologue_frame_unwind_cache)
2015 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2016 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2017 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2018 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2019 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2020 (s390_frame_base_address, s390_local_base_address)
2021 (s390_frame_base, s390_gcc_target_options)
2022 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2023 (s390_validate_reg_range, s390_tdesc_valid)
2024 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2025 * s390-tdep.c: ...this. New file.
2027 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2029 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2030 (s390_process_record, s390_gdbarch_tdep_alloc)
2031 (s390_linux_init_abi_any): Use/set new hook.
2033 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2035 * s390-linux-tdep.c (osabi.h): New include.
2036 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2037 (s390_linux_init_abi_any): New functions.
2038 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2040 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2042 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2043 tdesc_has_registers check
2045 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2047 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2048 (s390_validate_reg_range): New macro.
2049 (s390_gdbarch_init): Adjust.
2051 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2053 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2054 (s390_gdbarch_tdep_alloc): Adjust.
2055 (s390_gdbarch_init): Adjust.
2057 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2059 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2060 <have_tdb>: Change type to bool.
2061 (s390_gdbarch_tdep_alloc): Adjust.
2062 (s390_gdbarch_init): Adjust.
2064 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2066 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2067 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2068 (s390_gdbarch_tdep_alloc): New function.
2069 (s390_gdbarch_init): Allocate tdep at start and use its fields
2070 instead of separate variables.
2072 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2074 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2075 when looking for cached gdbarch and add comment for remaining.
2077 2018-01-22 Pedro Alves <palves@redhat.com>
2078 Sergio Durigan Junior <sergiodj@redhat.com>
2080 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2083 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2085 * MAINTAINERS: Update my company e-mail address.
2087 2018-01-22 Yao Qi <yao.qi@linaro.org>
2089 * regcache.c (cooked_write_test): New function.
2090 (_initialize_regcache): Register the test.
2092 2018-01-22 Yao Qi <yao.qi@linaro.org>
2094 * ia64-tdep.c (ia64_pseudo_register_read): Call
2095 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2096 * m32c-tdep.c (m32c_cat_read): Likewise.
2097 (m32c_r3r2r1r0_read): Likewise.
2098 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2099 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2101 2018-01-22 Yao Qi <yao.qi@linaro.org>
2103 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2104 method raw_read instead of regcache_raw_read.
2105 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2106 * arm-tdep.c (arm_neon_quad_read): Likewise.
2107 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2108 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2109 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2110 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2111 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2112 (i386_pseudo_register_read_into_value): Likewise.
2113 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2114 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2115 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2116 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2117 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2118 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2119 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2120 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2121 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2123 2018-01-22 Yao Qi <yao.qi@linaro.org>
2125 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2126 * configure.tgt: Remove target mt.
2127 * mt-tdep.c: Remove.
2128 * regcache.c (cooked_read_test): Remove the check for mt.
2130 2018-01-22 Yao Qi <yao.qi@linaro.org>
2132 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2133 instead of gdbarch_pseudo_register_read_value.
2135 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2137 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2140 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2142 * linespec.c (create_sals_line_offset): Remove code that preserved
2143 the symtab_and_line's line number.
2145 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2147 * varobj.c (varobj_create): Don't set valid_block when creating a
2150 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2152 * varobj.c (varobj_create): Remove out of date comment.
2154 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2157 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2158 updating innermost block.
2159 * parse.c (innermost_block_tracker::update): Take extra type
2160 parameter, and check types match before updating innermost block.
2161 (write_dollar_variable): Update innermost block for registers.
2162 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2163 (innermost_block_tracker::innermost_block_tracker): Initialise
2165 (innermost_block_tracker::reset): Take type parameter.
2166 (innermost_block_tracker::update): Take type parameter, and pass
2167 type through as needed.
2168 (innermost_block_tracker::m_types): New member.
2169 * varobj.c (varobj_create): Pass type when reseting innermost
2172 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2174 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2175 * ada-lang.c (resolve_subexp): Likewise.
2176 * breakpoint.c (set_breakpoint_condition) Likewise.
2177 (watch_command_1) Likewise.
2178 * c-exp.y (variable): Likewise.
2179 * d-exp.y (PrimaryExpression): Likewise.
2180 * f-exp.y (variable): Likewise.
2181 * go-exp.y (variable): Likewise.
2182 * m2-exp.y (variable): Likewise.
2183 * objfiles.c (objfile::~objfile): Likewise.
2184 * p-exp.y (variable): Likewise.
2185 * parse.c (innermost_block): Change type.
2186 * parser-defs.h (class innermost_block_tracker): New.
2187 (innermost_block): Change to innermost_block_tracker.
2188 * printcmd.c (display_command): Switch to innermost_block API.
2189 (do_one_display): Likewise.
2190 * rust-exp.y (do_one_display): Likewise.
2191 * symfile.c (clear_symtab_users): Likewise.
2192 * varobj.c (varobj_create): Switch to innermost_block API, replace
2193 use of innermost_block with block stored on varobj object.
2195 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2197 * expression.h (innermost_block): Remove declaration.
2198 * varobj.c: Add 'parser-defs.h' include.
2200 2018-01-19 Tom Tromey <tom@tromey.com>
2202 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2203 symbols in the static and global blocks.
2205 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2207 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2208 gdb_ptrace.h, and move including gdb_wait.h ...
2209 * nat/linux-ptrace.h: ... to here.
2211 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2213 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2214 inf_ptrace_detach_success.
2215 (inf_ptrace_detach_success): Add inferior parameter, use it
2216 instead of inferior_ptid, pass it to detach_inferior.
2217 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2219 * inferior.c (detach_inferior): Add overload that takes an
2221 * inferior.h (detach_inferior): Likewise.
2222 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2223 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2224 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2226 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2228 * target.h (struct target_ops) <to_detach>: Add inferior
2230 (target_detach): Likewise.
2231 * target.c (dispose_inferior): Pass inferior down.
2232 (target_detach): Pass inferior down. Assert that it is equal to
2233 the current inferior.
2234 * aix-thread.c (aix_thread_detach): Pass inferior down.
2235 * corefile.c (core_file_command): Pass current_inferior() down.
2236 * corelow.c (core_detach): Add inferior parameter.
2237 * darwin-nat.c (darwin_detach): Likewise.
2238 * gnu-nat.c (gnu_detach): Likewise.
2239 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2240 * infcmd.c (detach_command): Pass current_inferior() down to
2242 * infrun.c (follow_fork_inferior): Pass parent_inf to
2244 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2246 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2247 * linux-thread-db.c (thread_db_detach): Likewise.
2248 * nto-procfs.c (procfs_detach): Likewise.
2249 * procfs.c (procfs_detach): Likewise.
2250 * record.c (record_detach): Likewise.
2251 * record.h (struct inferior): Forward-declare.
2252 (record_detach): Add inferior parameter.
2253 * remote-sim.c (gdbsim_detach): Likewise.
2254 * remote.c (remote_detach_1): Likewise.
2255 (remote_detach): Likewise.
2256 (extended_remote_detach): Likewise.
2257 * sol-thread.c (sol_thread_detach): Likewise.
2258 * target-debug.h (target_debug_print_inferior_p): New macro.
2259 * target-delegates.c: Re-generate.
2260 * top.c (kill_or_detach): Pass inferior down to target_detach.
2261 * windows-nat.c (windows_detach): Add inferior parameter.
2263 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2265 * target.h (struct target_ops) <to_detach>: Remove args
2267 (target_detach): Likewise.
2268 * target.c (dispose_inferior): Adjust.
2269 (target_detach): Remove args parameter, adjust.
2270 * aix-thread.c (aix_thread_detach): Adjust.
2271 * corefile.c (core_file_command): Adjust.
2272 * corelow.c (core_detach): Adjust.
2273 * darwin-nat.c (darwin_detach): Adjust.
2274 * gnu-nat.c (gnu_detach): Adjust.
2275 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2276 * infcmd.c (detach_command): Adjust
2277 * infrun.c (follow_fork_inferior): Adjust.
2278 (handle_vfork_child_exec_or_exit): Adjust.
2279 * linux-fork.c (linux_fork_detach): Remove args parameter.
2280 * linux-fork.h (linux_fork_detach): Likewise.
2281 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2282 * linux-thread-db.c (thread_db_detach): Likewise.
2283 * nto-procfs.c (procfs_detach): Likewise.
2284 * procfs.c (procfs_detach): Likewise.
2285 (do_detach): Remove signo parameter.
2286 * record.c (record_detach): Remove args parameter.
2287 * record.h (record_detach): Likewise.
2288 * remote-sim.c (gdbsim_detach): Likewise.
2289 * remote.c (remote_detach_1): Likewise.
2290 (remote_detach): Likewise.
2291 (extended_remote_detach): Likewise.
2292 * sol-thread.c (sol_thread_detach): Likewise.
2293 * target-delegates.c: Re-generate.
2294 * top.c (struct qt_args) <args>: Remove field.
2295 (kill_or_detach): Don't pass args.
2296 (quit_force): Don't set args.
2297 * windows-nat.c (windows_detach): Remove args parameter.
2299 2018-01-19 Yao Qi <yao.qi@linaro.org>
2301 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2302 (arm_linux_init_abi): Install it.
2304 2018-01-19 Yao Qi <yao.qi@linaro.org>
2306 * osabi.c (gdb_osabi_names): Extend the regexp for
2307 arm-linux-gnueabihf.
2309 2018-01-18 Yao Qi <yao.qi@linaro.org>
2311 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2313 (abbrev_table::add_abbrev): Update.
2314 (abbrev_table::lookup_abbrev): Update.
2316 2018-01-18 Yao Qi <yao.qi@linaro.org>
2318 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2320 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2322 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2325 2018-01-17 Tom Tromey <tom@tromey.com>
2327 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2329 2018-01-17 Tom Tromey <tom@tromey.com>
2331 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2332 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2333 (create_array_type_with_stride): Update.
2334 * dwarf2read.c (set_die_type): Update.
2336 2018-01-17 Tom Tromey <tom@tromey.com>
2338 * dwarf2read.c (delayed_method_info): Remove typedef.
2339 (dwarf2_cu::method_info): Now a std::vector.
2340 (add_to_method_list): Update.
2341 (free_delayed_list): Remove.
2342 (compute_delayed_physnames): Update.
2343 (process_full_comp_unit, process_full_type_unit): Clear the method
2344 list. Remove cleanups.
2345 (psymtab_include_file_name): Add name_holder parameter. Use
2347 (dwarf_decode_lines): Update.
2349 2018-01-17 Tom Tromey <tom@tromey.com>
2350 Simon Marchi <simon.marchi@ericsson.com>
2352 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2353 (dwarf2_per_objfile::free_cached_comp_units)
2354 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2355 (init_cutu_and_read_dies_no_follow): Update.
2356 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2357 (dwarf2_cu::~dwarf2_cu): New.
2358 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2359 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2361 2018-01-17 Tom Tromey <tom@tromey.com>
2362 Simon Marchi <simon.marchi@ericsson.com>
2364 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2365 (struct die_reader_specs) <abbrev_table>: New member.
2366 (struct abbrev_table): Add constructor.
2367 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2368 <abbrev_obstack>: Now an auto_obstack.
2369 (abbrev_table_up): New typedef.
2370 (init_cu_die_reader): Add abbrev_table parameter.
2371 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2372 Add result_dwo_abbrev_table.
2373 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2374 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2376 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2378 (skip_children): Update.
2379 (abbrev_table::alloc_abbrev): Rename from
2380 abbrev_table_alloc_abbrev.
2381 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2382 (abbrev_table::lookup_abbrev): Rename from
2383 abbrev_table_lookup_abbrev.
2384 (abbrev_table_read_table): Return abbrev_table_up.
2385 (abbrev_table_free, abbrev_table_free_cleanup)
2386 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2387 (load_partial_dies): Update.
2389 2018-01-17 Tom Tromey <tom@tromey.com>
2391 * dwarf2read.c (dwarf2_compute_name): Update comment.
2392 (read_func_scope, read_variable): Update.
2393 (new_symbol): Remove.
2394 (new_symbol_full): Rename to new_symbol.
2396 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2399 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2400 a warning instead of throwing an error, set section size to 0 and return
2402 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2404 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2406 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2408 (linux_ptrace_attach_fail_reason_string): Likewise.
2409 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2411 (linux_ptrace_attach_fail_reason_string): Likewise.
2412 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2414 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2416 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2418 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2421 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2422 checking for fs_base/gs_base fields in struct user_regs_struct.
2423 * configure: Regenerate.
2425 2018-01-17 Yao Qi <yao.qi@linaro.org>
2427 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2429 (aarch64_linux_init_abi): Install it to gdbarch hook
2432 2018-01-15 Pedro Alves <palves@redhat.com>
2434 * common/signals-state-save-restore.c
2435 (save_original_signals_state): Fix typos.
2437 2017-01-12 Tom Tromey <tom@tromey.com>
2438 Sergio Durigan Junior <sergiodj@redhat.com>
2440 * Makefile.in (install-only): Install gdb-add-index.
2442 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2444 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2446 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2448 * infrun.c (keep_going_pass_signal): Clear step-over info when
2449 insert_breakpoints fails.
2451 2018-01-11 Pedro Alves <palves@redhat.com>
2454 * infrun.c (resume): Rename to ...
2455 (resume_1): ... this.
2456 (resume): Reimplement as wrapper around resume_1.
2458 2018-01-11 Pedro Alves <palves@redhat.com>
2461 * remote.c (remote_parse_stop_reply): Default to the last-set
2462 general thread instead of to 'magic_null_ptid'.
2464 2018-01-10 Pedro Alves <palves@redhat.com>
2466 * language.h (language_get_symbol_name_matcher): Rename ...
2467 (get_symbol_name_matcher): ... this.
2468 * language.c (language_get_symbol_name_matcher): Ditto.
2469 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2472 2018-01-10 Pedro Alves <palves@redhat.com>
2476 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2477 Adjust to use language_get_symbol_name_matcher instead of
2478 language_defn::la_get_symbol_name_matcher.
2479 * language.c (language_get_symbol_name_matcher): If in Ada mode
2480 and the lookup name is a verbatim match, return Ada's matcher.
2481 * language.h (language_get_symbol_name_matcher): Adjust comment.
2482 (ada_lookup_name_info::verbatim_p):: New method.
2484 2018-01-10 Pedro Alves <palves@redhat.com>
2487 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2488 minsym's language is language_auto or language_cplus, pass down
2489 language_ada instead.
2490 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2492 2018-01-10 Pedro Alves <palves@redhat.com>
2495 * minsyms.c (linkage_name_str): New function.
2496 (iterate_over_minimal_symbols): Use it.
2498 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2500 * NEWS: Document that 'info proc' now works on FreeBSD.
2502 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2504 * configure.ac: Check for kinfo_getfile in libutil.
2505 * configure: Regenerate.
2506 * config.in: Regenerate.
2507 * fbsd-nat.c: Include "fbsd-tdep.h".
2508 (fbsd_fetch_cmdline): New.
2509 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2510 rather than calling error.
2511 (fbsd_info_proc): New.
2512 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2513 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2514 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2516 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2518 * fbsd-nat.c (struct free_deleter): Remove.
2519 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2521 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2523 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2524 NULL for an empty pathname.
2526 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2528 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2529 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2530 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2531 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2532 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2533 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2534 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2535 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2536 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2537 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2538 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2539 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2540 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2541 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2542 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2544 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2546 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2547 (gnu_xfer_auxv): New function.
2548 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2551 2018-01-08 Yao Qi <yao.qi@linaro.org>
2552 Simon Marchi <simon.marchi@ericsson.com>
2554 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2556 (COMMON_OBS): Remove selftest.o.
2557 * configure.ac: Append selftest-arch.c and common/selftest.c to
2558 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2559 * configure: Re-generated.
2560 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2562 (maintenance_info_selftests): Likewise.
2564 2018-01-08 Xavier Roirand <roirand@adacore.com>
2566 * ada-valprint.c (val_print_packed_array_elements): Use
2567 proper number of elements when printing an array indexed
2568 by an enumeration type.
2570 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2572 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2573 (dw2_get_file_names_reader): Adjust.
2574 (lookup_dwo_signatured_type): Adjust.
2575 (lookup_dwp_signatured_type): Adjust.
2576 (lookup_signatured_type): Adjust.
2577 (create_type_unit_group): Adjust.
2578 (get_type_unit_group): Adjust.
2579 (process_psymtab_comp_unit_reader): Adjust.
2580 (build_type_psymtabs_reader): Adjust.
2581 (scan_partial_symbols): Adjust.
2582 (add_partial_symbol): Adjust.
2583 (add_partial_subprogram): Adjust.
2584 (peek_die_abbrev): Adjust.
2585 (fixup_go_packaging): Adjust.
2586 (process_imported_unit_die): Adjust.
2587 (dwarf2_compute_name): Adjust.
2588 (dwarf2_physname): Adjust.
2589 (read_import_statement): Adjust.
2590 (handle_DW_AT_stmt_list): Adjust.
2591 (read_file_scope): Adjust.
2592 (read_func_scope): Adjust.
2593 (read_lexical_block_scope): Adjust.
2594 (read_call_site_scope): Adjust.
2595 (read_variable): Adjust.
2596 (dwarf2_rnglists_process): Adjust.
2597 (dwarf2_ranges_process): Adjust.
2598 (dwarf2_ranges_read): Adjust.
2599 (dwarf2_get_pc_bounds): Adjust.
2600 (dwarf2_record_block_ranges): Adjust.
2601 (dwarf2_add_field): Adjust.
2602 (dwarf2_add_member_fn): Adjust.
2603 (read_structure_type): Adjust.
2604 (process_structure_scope): Adjust.
2605 (read_enumeration_type): Adjust.
2606 (read_array_type): Adjust.
2607 (mark_common_block_symbol_computed): Adjust.
2608 (read_common_block): Adjust.
2609 (read_namespace_type): Adjust.
2610 (read_namespace): Adjust.
2611 (read_module_type): Adjust.
2612 (read_tag_pointer_type): Adjust.
2613 (read_tag_ptr_to_member_type): Adjust.
2614 (read_tag_string_type): Adjust.
2615 (read_subroutine_type): Adjust.
2616 (read_typedef): Adjust.
2617 (read_base_type): Adjust.
2618 (attr_to_dynamic_prop): Adjust.
2619 (read_subrange_type): Adjust.
2620 (read_unspecified_type): Adjust.
2621 (dwarf2_read_abbrevs): Adjust.
2622 (load_partial_dies): Adjust.
2623 (read_partial_die): Adjust.
2624 (find_partial_die): Adjust.
2625 (guess_partial_die_structure_name): Adjust.
2626 (fixup_partial_die): Adjust.
2627 (read_attribute_value): Adjust.
2628 (read_addr_index): Adjust.
2629 (read_addr_index_from_leb128): Adjust.
2630 (read_str_index): Adjust.
2631 (dwarf2_string_attr): Adjust.
2632 (get_debug_line_section): Adjust.
2633 (dwarf_decode_line_header): Adjust.
2634 (lnp_state_machine::check_line_address): Adjust.
2635 (dwarf_decode_lines_1): Adjust.
2636 (dwarf_decode_lines): Adjust.
2637 (dwarf2_start_symtab): Adjust.
2638 (var_decode_location): Adjust.
2639 (new_symbol_full): Adjust.
2640 (dwarf2_const_value_data): Adjust.
2641 (dwarf2_const_value_attr): Adjust.
2642 (dwarf2_const_value): Adjust.
2644 (die_containing_type): Adjust.
2645 (build_error_marker_type): Adjust.
2646 (lookup_die_type): Adjust.
2647 (guess_full_die_structure_name): Adjust.
2648 (anonymous_struct_prefix): Adjust.
2649 (determine_prefix): Adjust.
2650 (dwarf2_name): Adjust.
2651 (follow_die_ref_or_sig): Adjust.
2652 (follow_die_offset): Adjust.
2653 (follow_die_ref): Adjust.
2654 (follow_die_sig_1): Adjust.
2655 (follow_die_sig): Adjust.
2656 (get_signatured_type): Adjust.
2657 (get_DW_AT_signature_type): Adjust.
2658 (decode_locdesc): Adjust.
2659 (dwarf_decode_macros): Adjust.
2660 (cu_debug_loc_section): Adjust.
2661 (fill_in_loclist_baton): Adjust.
2662 (dwarf2_symbol_mark_computed): Adjust.
2663 (init_one_comp_unit): Don't assign
2664 dwarf2_cu::dwarf2_per_objfile.
2665 (set_die_type): Adjust.
2667 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2669 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2670 <dwarf2_per_objfile>: New field.
2671 (dwarf2_per_objfile): Remove global.
2672 (get_dwarf2_per_objfile): New function.
2673 (set_dwarf2_per_objfile): New function.
2674 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2676 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2677 (read_abbrev_offset): Likewise.
2678 (read_indirect_string): Likewise.
2679 (read_indirect_line_string): Likewise.
2680 (read_indirect_string_at_offset): Likewise.
2681 (read_indirect_string_from_dwz): Likewise.
2682 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2684 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2685 (create_all_comp_units): Change objfile parameter to
2687 (create_all_type_units): Likewise.
2688 (process_queue): Add dwarf2_per_objfile parameter.
2689 (read_and_check_comp_unit_head): Likewise.
2690 (lookup_dwo_unit_in_dwp): Likewise.
2691 (get_dwp_file): Likewise.
2692 (process_cu_includes): Likewise.
2693 (struct free_dwo_file_cleanup_data): New struct.
2694 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2695 set_dwarf2_per_objfile.
2696 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2697 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2698 context, adjust calls.
2699 (dw2_instantiate_symtab): Likewise.
2700 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2701 (dw2_get_cu): Likewise.
2702 (create_cu_from_index_list): Change objfile parameter to
2704 (create_cus_from_index_list): Get dwarf2_per_objfile from
2705 context, adjust calls.
2706 (create_cus_from_index): Likewise.
2707 (create_signatured_type_table_from_index): Change objfile
2708 parameter to dwarf2_per_objfile.
2709 (create_signatured_type_table_from_debug_names): Change objfile
2710 parameter to dwarf2_per_objfile.
2711 (create_addrmap_from_index): Likewise.
2712 (create_addrmap_from_aranges): Likewise.
2713 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2714 (dw2_setup): Remove.
2715 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2717 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2718 get_dwarf2_per_objfile.
2719 (dw2_forget_cached_source_info): Likewise.
2720 (dw2_map_symtabs_matching_filename): Likewise.
2721 (struct dw2_symtab_iterator) <index>: Remove.
2722 <dwarf2_per_objfile>: New field.
2723 (dw2_symtab_iter_init): Replace index parameter with
2725 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2726 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2727 (dw2_print_stats): Likewise.
2728 (dw2_dump): Likewise.
2729 (dw2_expand_symtabs_for_function): Likewise.
2730 (dw2_expand_all_symtabs): Likewise.
2731 (dw2_expand_symtabs_with_fullname): Likewise.
2732 (dw2_expand_marked_cus): Replace index and objfile parameters
2733 with dwarf2_per_objfile.
2734 (dw_expand_symtabs_matching_file_matcher): Add
2735 dwarf2_per_objfile parameter and adjust calls.
2736 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2738 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2739 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2741 (create_cus_from_debug_names_list): Replace objfile parameter
2742 with dwarf2_per_objfile and adjust calls.
2743 (create_cus_from_debug_names): Likewise.
2744 (dwarf2_read_debug_names): Likewise.
2745 (mapped_debug_names::namei_to_name): Adjust call.
2746 (dw2_debug_names_iterator::next): Likewise.
2747 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2748 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2749 (dw2_debug_names_dump): Likewise.
2750 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2751 (dw2_debug_names_expand_symtabs_matching): Likewise.
2752 (dwarf2_initialize_objfile): Likewise.
2753 (dwarf2_build_psymtabs): Likewise.
2754 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2756 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2757 (read_and_check_comp_unit_head): Likewise.
2758 (read_abbrev_offset): Likewise.
2759 (create_debug_type_hash_table): Likewise.
2760 (create_debug_types_hash_table): Likewise.
2761 (create_all_type_units): Replace objfile parameter with
2763 (add_type_unit): Add dwarf2_per_objfile parameter.
2764 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2765 with dwarf2_per_objfile.
2766 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2767 (lookup_dwp_signatured_type): Likewise.
2768 (lookup_signatured_type): Likewise.
2769 (read_cutu_die_from_dwo): Likewise.
2770 (init_tu_and_read_dwo_dies): Likewise.
2771 (init_cutu_and_read_dies): Likewise.
2772 (init_cutu_and_read_dies_no_follow): Likewise.
2773 (allocate_type_unit_groups_table): Add objfile parameter.
2774 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2775 (get_type_unit_group): Likewise.
2776 (process_psymtab_comp_unit): Update call.
2777 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2778 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2779 (print_tu_stats): Likewise.
2780 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2782 (build_type_psymtabs): Change objfile parameter to
2784 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2785 passed in void* parameter.
2786 (process_skeletonless_type_units): Change objfile parameter to
2788 (set_partial_user): Likewise.
2789 (dwarf2_build_psymtabs_hard): Likewise.
2790 (read_comp_units_from_section): Likewise.
2791 (create_all_comp_units): Likewise.
2792 (scan_partial_symbols): Update calls.
2793 (add_partial_symbol): Likewise.
2794 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2795 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2796 (process_queue): Add dwarf2_per_objfile parameter.
2797 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2798 (compute_compunit_symtab_includes): Likewise.
2799 (process_cu_includes): Add dwarf2_per_objfile parameter.
2800 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2801 (process_full_type_unit): Likewise.
2802 (process_imported_unit_die): Update call.
2803 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2804 (read_file_scope): Likewise.
2805 (allocate_dwo_file_hash_table): Add objfile parameter.
2806 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2807 (create_cus_hash_table): Likewise.
2808 (create_dwp_hash_table): Likewise.
2809 (create_dwo_unit_in_dwp_v1): Likewise.
2810 (create_dwp_v2_section): Likewise.
2811 (create_dwo_unit_in_dwp_v2): Likewise.
2812 (lookup_dwo_unit_in_dwp): Likewise.
2813 (try_open_dwop_file): Likewise.
2814 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2815 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2816 cleanup to include a reference to dwarf2_per_objfile.
2817 (open_dwp_file): Add dwarf2_per_objfile parameter.
2818 (open_and_init_dwp_file): Likewise.
2819 (get_dwp_file): Likewise.
2820 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2821 (queue_and_load_all_dwo_tus): Update call.
2822 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2824 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2825 (dwarf2_ranges_process): Likewise.
2826 (dwarf2_get_pc_bounds): Likewise.
2827 (mark_common_block_symbol_computed): Likewise.
2828 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2829 (dwarf2_read_abbrevs): Update call.
2830 (read_partial_die): Use dwarf2_per_objfile from cu.
2831 (find_partial_die): Likewise.
2832 (fixup_partial_die): Likewise.
2833 (read_attribute_value): Likewise.
2834 (read_indirect_string_at_offset_from): Add objfile parameter.
2835 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2837 (read_indirect_string_from_dwz): Add objfile parameter.
2838 (read_indirect_string): Add objfile parameter.
2839 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2840 (read_addr_index): Use dwarf2_per_objfile from cu.
2841 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2843 (read_str_index): Use dwarf2_per_objfile from cu.
2844 (get_debug_line_section): Likewise.
2845 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2846 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2847 (new_symbol_full): Use dwarf2_per_objfile from cu.
2848 (build_error_marker_type): Likewise.
2849 (lookup_die_type): Likewise.
2850 (determine_prefix): Likewise.
2851 (follow_die_offset): Likewise.
2852 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2853 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2854 (dwarf2_fetch_die_type_sect_off): Likewise.
2855 (dwarf2_get_die_type): Likewise.
2856 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2857 (get_signatured_type): Likewise.
2858 (get_DW_AT_signature_type): Likewise.
2859 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2860 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2861 (cu_debug_loc_section): Likewise.
2862 (fill_in_loclist_baton): Likewise.
2863 (dwarf2_symbol_mark_computed): Likewise.
2864 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2866 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2868 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2869 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2870 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2871 (set_die_type): Use dwarf2_free_objfile from cu.
2872 (get_die_type_at_offset): Likewise.
2873 (dwarf2_per_objfile_free): Don't assign global variable.
2874 (debug_names) <constructor>: Add dwarf2_per_objfile
2875 parameter, update m_debugstrlookup construction.
2876 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2878 <m_dwarf2_per_objfile>: New field.
2879 <lookup>: Use m_dwarf2_per_objfile.
2880 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2881 (psyms_seen_size): Likewise.
2882 (write_gdbindex): Replace objfile parameter with
2884 (write_debug_names): Likewise.
2885 (write_psymtabs_to_index): Likewise.
2886 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2889 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2891 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2892 <dwarf2_per_objfile>: New field.
2893 (struct dwarf2_per_cu_data) <objfile>: Remove.
2894 <dwarf2_per_objfile>: New field.
2895 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2897 (create_signatured_type_table_from_index): Likewise.
2898 (create_debug_type_hash_table): Likewise.
2899 (fill_in_sig_entry_from_dwo_entry): Likewise.
2900 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2901 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2903 (create_partial_symtab): Access objfile through
2905 (process_psymtab_comp_unit_reader): Likewise.
2906 (read_comp_units_from_section): Likewise.
2907 (scan_partial_symbols): Likewise.
2908 (add_partial_symbol): Likewise.
2909 (add_partial_subprogram): Likewise.
2910 (peek_die_abbrev): Likewise.
2911 (fixup_go_packaging): Likewise.
2912 (process_full_comp_unit): Likewise.
2913 (process_full_type_unit): Likewise.
2914 (process_imported_unit_die): Likewise.
2915 (dwarf2_compute_name): Likewise.
2916 (dwarf2_physname): Likewise.
2917 (read_import_statement): Likewise.
2918 (create_cus_hash_table): Assign dwarf2_physname instead of
2920 (read_func_scope): Access objfile through dwarf2_per_objfile.
2921 (read_lexical_block_scope): Likewise.
2922 (read_call_site_scope): Likewise.
2923 (read_variable): Likewise.
2924 (dwarf2_rnglists_process): Likewise.
2925 (dwarf2_ranges_process): Likewise.
2926 (dwarf2_ranges_read): Likewise.
2927 (dwarf2_record_block_ranges): Likewise.
2928 (dwarf2_add_field): Likewise.
2929 (dwarf2_add_member_fn): Likewise.
2930 (read_structure_type): Likewise.
2931 (process_structure_scope): Likewise.
2932 (read_enumeration_type): Likewise.
2933 (read_array_type): Likewise.
2934 (read_common_block): Likewise.
2935 (read_namespace_type): Likewise.
2936 (read_namespace): Likewise.
2937 (read_module_type): Likewise.
2938 (read_tag_pointer_type): Likewise.
2939 (read_tag_ptr_to_member_type): Likewise.
2940 (read_tag_string_type): Likewise.
2941 (read_subroutine_type): Likewise.
2942 (read_typedef): Likewise.
2943 (read_base_type): Likewise.
2944 (attr_to_dynamic_prop): Likewise.
2945 (read_subrange_type): Likewise.
2946 (read_unspecified_type): Likewise.
2947 (load_partial_dies): Likewise.
2948 (read_partial_die): Likewise.
2949 (find_partial_die): Likewise.
2950 (guess_partial_die_structure_name): Likewise.
2951 (fixup_partial_die): Likewise.
2952 (read_attribute_value): Likewise.
2953 (read_addr_index_from_leb128): Likewise.
2954 (dwarf2_read_addr_index): Likewise.
2955 (dwarf2_string_attr): Likewise.
2956 (lnp_state_machine::check_line_address): Likewise.
2957 (dwarf_decode_lines_1): Likewise.
2958 (dwarf_decode_lines): Likewise.
2959 (dwarf2_start_symtab): Likewise.
2960 (var_decode_location): Likewise.
2961 (new_symbol_full): Likewise.
2962 (dwarf2_const_value_data): Likewise.
2963 (dwarf2_const_value_attr): Likewise.
2964 (dwarf2_const_value): Likewise.
2965 (die_type): Likewise.
2966 (die_containing_type): Likewise.
2967 (lookup_die_type): Likewise.
2968 (guess_full_die_structure_name): Likewise.
2969 (anonymous_struct_prefix): Likewise.
2970 (dwarf2_name): Likewise.
2971 (follow_die_ref_or_sig): Likewise.
2972 (follow_die_offset): Likewise.
2973 (follow_die_ref): Likewise.
2974 (dwarf2_fetch_die_loc_sect_off): Likewise.
2975 (dwarf2_fetch_constant_bytes): Likewise.
2976 (dwarf2_fetch_die_type_sect_off): Likewise.
2977 (dwarf2_get_die_type): Likewise.
2978 (follow_die_sig): Likewise.
2979 (decode_locdesc): Likewise.
2980 (dwarf2_per_cu_objfile): Likewise.
2981 (dwarf2_per_cu_text_offset): Likewise.
2982 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2984 (set_die_type): Access objfile through
2987 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2989 * valprint.c (converted_character_d): Remove typedef.
2990 (DEF_VEC_O (converted_character_d)): Remove.
2991 (count_next_character): Use std::vector.
2992 (print_converted_chars_to_obstack): Likewise.
2993 (generic_printstr): Likewise.
2995 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2997 * xml-support.h (struct gdb_xml_value): Add constructor.
2998 <value>: Change type to unique_xmalloc_ptr.
2999 (gdb_xml_value_s): Remove typedef.
3000 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3001 (gdb_xml_element_start_handler): Change parameter type to
3003 (xml_find_attribute): Likewise.
3004 * xml-support.c (xml_find_attribute): Change parameter type to
3005 std::vector and adjust.
3006 (gdb_xml_values_cleanup): Remove.
3007 (gdb_xml_parser::start_element): Adjust to std::vector.
3008 (xinclude_start_include): Change paraeter type to std::vector
3010 * btrace.c (check_xml_btrace_version): Likewise.
3011 (parse_xml_btrace_block): Likewise.
3012 (parse_xml_btrace_pt_config_cpu): Likewise.
3013 (parse_xml_btrace_pt): Likewise.
3014 (parse_xml_btrace_conf_bts): Likewise.
3015 (parse_xml_btrace_conf_pt): Likewise.
3016 * memory-map.c (memory_map_start_memory): Likewise.
3017 (memory_map_start_property): Likewise.
3018 * osdata.c (osdata_start_osdata): Likewise.
3019 (osdata_start_item): Likewise.
3020 (osdata_start_column): Likewise.
3021 * remote.c (start_thread): Likewise.
3022 * solib-aix.c (library_list_start_library): Likewise.
3023 (library_list_start_list): Likewise.
3024 * solib-svr4.c (library_list_start_library): Likewise.
3025 (svr4_library_list_start_list): Likewise.
3026 * solib-target.c (library_list_start_segment): Likewise.
3027 (library_list_start_section): Likewise.
3028 (library_list_start_library): Likewise.
3029 (library_list_start_list): Likewise.
3030 * tracepoint.c (traceframe_info_start_memory): Likewise.
3031 (traceframe_info_start_tvar): Likewise.
3032 * xml-syscall.c (syscall_start_syscall): Likewise.
3033 * xml-tdesc.c (tdesc_start_target): Likewise.
3034 (tdesc_start_feature): Likewise.
3035 (tdesc_start_reg): Likewise.
3036 (tdesc_start_union): Likewise.
3037 (tdesc_start_struct): Likewise.
3038 (tdesc_start_flags): Likewise.
3039 (tdesc_start_enum): Likewise.
3040 (tdesc_start_field): Likewise.
3041 (tdesc_start_enum_value): Likewise.
3042 (tdesc_start_vector): Likewise.
3044 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3046 * extension.h (struct xmethod_worker) <clone>: Remove.
3047 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3049 (python_xmethod_worker::clone): Remove.
3050 * valops.c (find_overload_match): Use std::move instead of
3053 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3055 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3056 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3057 <free_xmethod_worker_data>: Remove.
3058 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3059 <get_xmethod_arg_types>: Remove.
3060 <get_xmethod_result_type>: Remove.
3061 <invoke_xmethod>: Remove.
3062 * extension.c (new_xmethod_worker): Remove.
3063 (clone_xmethod_worker): Remove.
3064 (get_matching_xmethod_workers): Return void, pass std::vector by
3066 (get_xmethod_arg_types): Rename to...
3067 (xmethod_worker::get_arg_types): ... this, and adjust.
3068 (get_xmethod_result_type): Rename to...
3069 (xmethod_worker::get_result_type): ... this, and adjust.
3070 (invoke_xmethod): Remove.
3071 (free_xmethod_worker): Remove.
3072 (free_xmethod_worker_vec): Remove.
3073 * extension.h (enum ext_lang_rc): Move here from
3075 (struct xmethod_worker): Add constructor and destructor.
3078 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3079 virtual pure methods.
3080 <get_arg_types, get_result_type>: New methods.
3081 (xmethod_worker_ptr): Remove typedef.
3082 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3083 (xmethod_worker_vec): Remove typedef.
3084 (xmethod_worker_up): New typedef.
3085 (invoke_xmethod): Remove.
3086 (clone_xmethod_worker): Remove.
3087 (free_xmethod_worker): Remove.
3088 (free_xmethod_worker_vec): Remove.
3089 (get_xmethod_arg_types): Remove.
3090 (get_xmethod_result_type): Remove.
3091 * valops.c (find_method_list): Use std::vector, don't use
3092 intermediate vector.
3093 (value_find_oload_method_list): Use std::vector.
3094 (find_overload_match): Use std::vector.
3095 (find_oload_champ): Use std::vector.
3096 * value.c (value_free): Use operator delete.
3097 (value_of_xmethod): Rename to...
3098 (value_from_xmethod): ... this. Don't assign
3099 xmethod_worker::value, take rvalue-reference.
3100 (result_type_of_xmethod): Adjust.
3101 (call_xmethod): Adjust.
3102 * value.h: Include extension.h.
3103 (struct xmethod_worker): Don't forward-declare.
3104 (value_of_xmethod): Rename to...
3105 (value_from_xmethod): ... this, take rvalue-reference.
3106 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3107 (struct python_xmethod_worker): ... this, add constructor and
3109 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3110 (gdbpy_free_xmethod_worker_data): Rename to...
3111 (python_xmethod_worker::~python_xmethod_worker): ... this and
3113 (gdbpy_clone_xmethod_worker_data): Rename to...
3114 (python_xmethod_worker::clone): ... this and adjust.
3115 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3117 (gdbpy_get_xmethod_arg_types): Rename to...
3118 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3119 (gdbpy_get_xmethod_result_type): Rename to...
3120 (python_xmethod_worker::do_get_result_type): ... this and
3122 (gdbpy_invoke_xmethod): Rename to...
3123 (python_xmethod_worker::invoke): ... this and adjust.
3124 (new_python_xmethod_worker): Rename to...
3125 (python_xmethod_worker::python_xmethod_worker): ... this and
3127 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3129 (gdbpy_free_xmethod_worker_data): Remove.
3130 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3131 (gdbpy_get_xmethod_arg_types): Remove.
3132 (gdbpy_get_xmethod_result_type): Remove.
3133 (gdbpy_invoke_xmethod): Remove.
3134 * python/python.c (python_extension_ops): Remove obsolete
3137 2018-01-05 Pedro Alves <palves@redhat.com>
3140 * common/signals-state-save-restore.c
3141 (save_original_signals_state): New parameter 'quiet'. Warn if we
3142 find a custom handler preinstalled, instead of internal erroring.
3143 But only warn if !quiet.
3144 * common/signals-state-save-restore.h
3145 (save_original_signals_state): New parameter 'quiet'.
3146 * main.c (captured_main_1): Move save_original_signals_state call
3147 after option handling, and pass QUIET.
3149 2018-01-05 Pedro Alves <palves@redhat.com>
3151 * spu-tdep.c (spu_catch_start): Pass
3152 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3154 2018-01-05 Pedro Alves <palves@redhat.com>
3157 * ada-lang.c (literal_symbol_name_matcher): New function.
3158 (ada_get_symbol_name_matcher): Use it for
3159 symbol_name_match_type::SEARCH_NAME.
3160 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3161 it down instead of assuming symbol_name_match_type::FULL.
3162 * block.h (block_lookup_symbol): New parameter 'match_type'.
3163 * c-valprint.c (print_unpacked_pointer): Use
3164 lookup_symbol_search_name instead of lookup_symbol.
3165 * compile/compile-object-load.c (get_out_value_type): Pass down
3166 symbol_name_match_type::SEARCH_NAME.
3167 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3168 symbol_name_match_type::FULL.
3169 * cp-support.c (cp_get_symbol_name_matcher): Handle
3170 symbol_name_match_type::SEARCH_NAME.
3171 * infrun.c (insert_exception_resume_breakpoint): Use
3172 lookup_symbol_search_name.
3173 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3174 * psymtab.c (maintenance_check_psymtabs): Use
3175 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3176 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3178 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3179 if symbol_name_match_type::SEARCH_NAME.
3180 (lookup_symbol_in_language): Pass down
3181 symbol_name_match_type::FULL.
3182 (lookup_symbol_search_name): New.
3183 (lookup_language_this): Pass down
3184 symbol_name_match_type::SEARCH_NAME.
3185 (lookup_symbol_aux, lookup_local_symbol): New parameter
3186 'match_type'. Pass it down.
3187 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3188 (lookup_symbol_search_name): New declaration.
3189 (lookup_symbol_in_block): New 'match_type' parameter.
3191 2018-01-05 Pedro Alves <palves@redhat.com>
3194 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3196 (ada_lookup_symbol): Reimplement in terms of
3197 ada_lookup_symbol_list, bits factored out from
3198 ada_lookup_encoded_symbol.
3200 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3202 * ada-exp.y (write_object_renaming): When subscripting an array
3203 using a symbol as the index, pass the block in call to
3204 ada_lookup_encoded_symbol when looking that symbol up.
3206 2018-01-05 Jerome Guitton <guitton@adacore.com>
3208 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3211 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3213 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3214 the case where VALUE_LVAL (val0) is not lval_memory.
3216 2018-01-05 Xavier Roirand <roirand@adacore.com>
3218 * ada-valprint.c (print_optional_low_bound): Handle
3219 character-indexed array printing like boolean-indexed array
3222 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3224 * NEWS: Create a new section for the next release branch.
3225 Rename the section of the current branch, now that it has
3228 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3230 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3231 * version.in: Bump version to 8.1.50.DATE-git.
3233 2018-01-03 Xavier Roirand <roirand@adacore.com>
3235 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3237 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3239 (default_exception_support_info) <catch_handlers_sym>: Add field.
3240 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3241 (ada_exception_name_addr_1): Add "catch handlers" handling.
3242 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3244 (create_excep_cond_exprs) <ex>: Add parameter.
3245 (re_set_exception): Update create_excep_cond_exprs call.
3246 (print_it_exception, print_one_exception, print_mention_exception)
3247 (print_recreate_exception): Add "catch handler" handling.
3248 (allocate_location_catch_handlers, re_set_catch_handlers)
3249 (check_status_catch_handlers, print_it_catch_handlers)
3250 (print_one_catch_handlers, print_mention_catch_handlers)
3251 (print_recreate_catch_handlers): New function.
3252 (catch_handlers_breakpoint_ops): New variable.
3253 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3254 Add parameter. Add "catch handler" handling.
3255 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3256 Add "catch handler" handling.
3257 (ada_exception_catchpoint_cond_string): Add "catch handler"
3259 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3261 (catch_ada_handlers_command): New function.
3262 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3263 operations structure.
3264 (_initialize_ada_language): Add "catch handlers" command entry.
3265 * NEWS: Document "catch handlers" feature.
3267 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3269 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3270 account when creating the array type of the slice.
3271 (ada_value_slice): Likewise.
3273 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3275 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3277 (create_array_type_with_stride): Add byte_stride_prop parameter.
3278 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3279 New parameter. Update all callers in this file.
3280 (array_type_has_dynamic_stride): New function.
3281 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3282 of arrays with dynamic byte strides.
3283 * dwarf2read.c (read_array_type): Add support for dynamic
3284 DW_AT_byte_stride attributes.
3286 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3288 * dwarf2read.c (read_unspecified_type): Treat
3289 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3291 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3293 Update copyright year range in all GDB files.
3295 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3297 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3298 and gdb/testsuite/gdb.base/step-line.c.
3300 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3302 * copyright.py (main): Dump the contents of
3303 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3304 even if BY_HAND is empty.
3306 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3308 * top.c (print_gdb_version): Update Copyright year in version
3311 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3313 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3315 For older changes see ChangeLog-2017.
3321 version-control: never