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