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