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