gdb: Remove duplicate declaration of global innermost_block
[external/binutils.git] / gdb / ChangeLog
1 2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * expression.h (innermost_block): Remove declaration.
4         * varobj.c: Add 'parser-defs.h' include.
5
6 2018-01-19  Tom Tromey  <tom@tromey.com>
7
8         * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
9         symbols in the static and global blocks.
10
11 2018-01-19  James Clarke  <jrtc27@jrtc27.com>
12
13         * nat/linux-ptrace.c: Remove unnecessary reinclusion of
14         gdb_ptrace.h, and move including gdb_wait.h ...
15         * nat/linux-ptrace.h: ... to here.
16
17 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
18
19         * inf-ptrace.c (inf_ptrace_detach): Adjust call to
20         inf_ptrace_detach_success.
21         (inf_ptrace_detach_success): Add inferior parameter, use it
22         instead of inferior_ptid, pass it to detach_inferior.
23         * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
24         parameter.
25         * inferior.c (detach_inferior): Add overload that takes an
26         inferior object.
27         * inferior.h (detach_inferior): Likewise.
28         * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
29         use inferior_ptid, adjust call to inf_ptrace_detach_success.
30         * linux-thread-db.c (thread_db_detach): Use inf parameter.
31
32 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
33
34         * target.h (struct target_ops) <to_detach>: Add inferior
35         parameter.
36         (target_detach): Likewise.
37         * target.c (dispose_inferior): Pass inferior down.
38         (target_detach): Pass inferior down.  Assert that it is equal to
39         the current inferior.
40         * aix-thread.c (aix_thread_detach): Pass inferior down.
41         * corefile.c (core_file_command): Pass current_inferior() down.
42         * corelow.c (core_detach): Add inferior parameter.
43         * darwin-nat.c (darwin_detach): Likewise.
44         * gnu-nat.c (gnu_detach): Likewise.
45         * inf-ptrace.c (inf_ptrace_detach): Likewise.
46         * infcmd.c (detach_command): Pass current_inferior() down to
47         target_detach.
48         * infrun.c (follow_fork_inferior): Pass parent_inf to
49         target_detach.
50         (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
51         target_detach.
52         * linux-nat.c (linux_nat_detach): Add inferior parameter.
53         * linux-thread-db.c (thread_db_detach): Likewise.
54         * nto-procfs.c (procfs_detach): Likewise.
55         * procfs.c (procfs_detach): Likewise.
56         * record.c (record_detach): Likewise.
57         * record.h (struct inferior): Forward-declare.
58         (record_detach): Add inferior parameter.
59         * remote-sim.c (gdbsim_detach): Likewise.
60         * remote.c (remote_detach_1): Likewise.
61         (remote_detach): Likewise.
62         (extended_remote_detach): Likewise.
63         * sol-thread.c (sol_thread_detach): Likewise.
64         * target-debug.h (target_debug_print_inferior_p): New macro.
65         * target-delegates.c: Re-generate.
66         * top.c (kill_or_detach): Pass inferior down to target_detach.
67         * windows-nat.c (windows_detach): Add inferior parameter.
68
69 2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
70
71         * target.h (struct target_ops) <to_detach>: Remove args
72         parameter.
73         (target_detach): Likewise.
74         * target.c (dispose_inferior): Adjust.
75         (target_detach): Remove args parameter, adjust.
76         * aix-thread.c (aix_thread_detach): Adjust.
77         * corefile.c (core_file_command): Adjust.
78         * corelow.c (core_detach): Adjust.
79         * darwin-nat.c (darwin_detach): Adjust.
80         * gnu-nat.c (gnu_detach): Adjust.
81         * inf-ptrace.c (inf_ptrace_detach): Adjust.
82         * infcmd.c (detach_command): Adjust
83         * infrun.c (follow_fork_inferior): Adjust.
84         (handle_vfork_child_exec_or_exit): Adjust.
85         * linux-fork.c (linux_fork_detach): Remove args parameter.
86         * linux-fork.h (linux_fork_detach): Likewise.
87         * linux-nat.c (linux_nat_detach): Likewise, and adjust.
88         * linux-thread-db.c (thread_db_detach): Likewise.
89         * nto-procfs.c (procfs_detach): Likewise.
90         * procfs.c (procfs_detach): Likewise.
91         (do_detach): Remove signo parameter.
92         * record.c (record_detach): Remove args parameter.
93         * record.h (record_detach): Likewise.
94         * remote-sim.c (gdbsim_detach): Likewise.
95         * remote.c (remote_detach_1): Likewise.
96         (remote_detach): Likewise.
97         (extended_remote_detach): Likewise.
98         * sol-thread.c (sol_thread_detach): Likewise.
99         * target-delegates.c: Re-generate.
100         * top.c (struct qt_args) <args>: Remove field.
101         (kill_or_detach): Don't pass args.
102         (quit_force): Don't set args.
103         * windows-nat.c (windows_detach): Remove args parameter.
104
105 2018-01-19  Yao Qi  <yao.qi@linaro.org>
106
107         * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
108         (arm_linux_init_abi): Install it.
109
110 2018-01-19  Yao Qi  <yao.qi@linaro.org>
111
112         * osabi.c (gdb_osabi_names): Extend the regexp for
113         arm-linux-gnueabihf.
114
115 2018-01-18  Yao Qi  <yao.qi@linaro.org>
116
117         * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
118         m_abbrevs.
119         (abbrev_table::add_abbrev): Update.
120         (abbrev_table::lookup_abbrev): Update.
121
122 2018-01-18  Yao Qi  <yao.qi@linaro.org>
123
124         * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
125
126 2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
127
128         * compile/compile.c (compile_to_object): Convert "triplet_rx"
129         to "std::string".
130
131 2018-01-17  Tom Tromey  <tom@tromey.com>
132
133         * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
134
135 2018-01-17  Tom Tromey  <tom@tromey.com>
136
137         * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
138         * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
139         (create_array_type_with_stride): Update.
140         * dwarf2read.c (set_die_type): Update.
141
142 2018-01-17  Tom Tromey  <tom@tromey.com>
143
144         * dwarf2read.c (delayed_method_info): Remove typedef.
145         (dwarf2_cu::method_info): Now a std::vector.
146         (add_to_method_list): Update.
147         (free_delayed_list): Remove.
148         (compute_delayed_physnames): Update.
149         (process_full_comp_unit, process_full_type_unit): Clear the method
150         list.  Remove cleanups.
151         (psymtab_include_file_name): Add name_holder parameter.  Use
152         unique_xmalloc_ptr.
153         (dwarf_decode_lines): Update.
154
155 2018-01-17  Tom Tromey  <tom@tromey.com>
156             Simon Marchi  <simon.marchi@ericsson.com>
157
158         * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
159         (dwarf2_per_objfile::free_cached_comp_units)
160         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
161         (init_cutu_and_read_dies_no_follow): Update.
162         (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
163         (dwarf2_cu::~dwarf2_cu): New.
164         (free_heap_comp_unit, free_stack_comp_unit): Remove.
165         (age_cached_comp_units, free_one_cached_comp_unit): Update.
166
167 2018-01-17  Tom Tromey  <tom@tromey.com>
168             Simon Marchi  <simon.marchi@ericsson.com>
169
170         * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
171         (struct die_reader_specs) <abbrev_table>: New member.
172         (struct abbrev_table): Add constructor.
173         <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
174         <abbrev_obstack>: Now an auto_obstack.
175         (abbrev_table_up): New typedef.
176         (init_cu_die_reader): Add abbrev_table parameter.
177         (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
178         Add result_dwo_abbrev_table.
179         (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
180         (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
181         Update.
182         (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
183         parameter.
184         (skip_children): Update.
185         (abbrev_table::alloc_abbrev): Rename from
186         abbrev_table_alloc_abbrev.
187         (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
188         (abbrev_table::lookup_abbrev): Rename from
189         abbrev_table_lookup_abbrev.
190         (abbrev_table_read_table): Return abbrev_table_up.
191         (abbrev_table_free, abbrev_table_free_cleanup)
192         (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
193         (load_partial_dies): Update.
194
195 2018-01-17  Tom Tromey  <tom@tromey.com>
196
197         * dwarf2read.c (dwarf2_compute_name): Update comment.
198         (read_func_scope, read_variable): Update.
199         (new_symbol): Remove.
200         (new_symbol_full): Rename to new_symbol.
201
202 2018-01-17  Mike Gulick  <mgulick@mathworks.com>
203
204         PR gdb/16577
205         * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
206         a warning instead of throwing an error, set section size to 0 and return
207         NULL.
208         * gdb_bfd.h (gdb_bfd_map_section): Update description.
209
210 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
211
212         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
213         std::string.
214         (linux_ptrace_attach_fail_reason_string): Likewise.
215         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
216         Likewise.
217         (linux_ptrace_attach_fail_reason_string): Likewise.
218         * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
219
220 2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
221
222         * linux-nat.c (linux_nat_attach): Remove xstrdup.
223
224 2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
225
226         PR gdb/21559
227         * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
228         checking for fs_base/gs_base fields in struct user_regs_struct.
229         * configure: Regenerate.
230
231 2018-01-17  Yao Qi  <yao.qi@linaro.org>
232
233         * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
234         function.
235         (aarch64_linux_init_abi): Install it to gdbarch hook
236         gcc_target_options.
237
238 2018-01-15  Pedro Alves  <palves@redhat.com>
239
240         * common/signals-state-save-restore.c
241         (save_original_signals_state): Fix typos.
242
243 2017-01-12  Tom Tromey  <tom@tromey.com>
244             Sergio Durigan Junior  <sergiodj@redhat.com>
245
246         * Makefile.in (install-only): Install gdb-add-index.
247
248 2018-01-12  John Baldwin  <jhb@FreeBSD.org>
249
250         * fbsd-tdep.c (KVE_PROTECTION): Correct value.
251
252 2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
253
254         * infrun.c (keep_going_pass_signal): Clear step-over info when
255         insert_breakpoints fails.
256
257 2018-01-11  Pedro Alves  <palves@redhat.com>
258
259         PR gdb/22583
260         * infrun.c (resume): Rename to ...
261         (resume_1): ... this.
262         (resume): Reimplement as wrapper around resume_1.
263
264 2018-01-11  Pedro Alves  <palves@redhat.com>
265
266         PR remote/22597
267         * remote.c (remote_parse_stop_reply): Default to the last-set
268         general thread instead of to 'magic_null_ptid'.
269
270 2018-01-10  Pedro Alves  <palves@redhat.com>
271
272         * language.h (language_get_symbol_name_matcher): Rename ...
273         (get_symbol_name_matcher): ... this.
274         * language.c (language_get_symbol_name_matcher): Ditto.
275         * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
276         callers adjusted.
277
278 2018-01-10  Pedro Alves  <palves@redhat.com>
279
280         PR gdb/22670
281         * dwarf2read.c
282         (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
283         Adjust to use language_get_symbol_name_matcher instead of
284         language_defn::la_get_symbol_name_matcher.
285         * language.c (language_get_symbol_name_matcher): If in Ada mode
286         and the lookup name is a verbatim match, return Ada's matcher.
287         * language.h (language_get_symbol_name_matcher): Adjust comment.
288         (ada_lookup_name_info::verbatim_p):: New method.
289
290 2018-01-10  Pedro Alves  <palves@redhat.com>
291
292         PR gdb/22670
293         * ada-lang.c (ada_collect_symbol_completion_matches): If the
294         minsym's language is language_auto or language_cplus, pass down
295         language_ada instead.
296         * symtab.c (compare_symbol_name): Don't frob symbol language here.
297
298 2018-01-10  Pedro Alves  <palves@redhat.com>
299
300         PR gdb/22670
301         * minsyms.c (linkage_name_str): New function.
302         (iterate_over_minimal_symbols): Use it.
303
304 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
305
306         * NEWS: Document that 'info proc' now works on FreeBSD.
307
308 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
309
310         * configure.ac: Check for kinfo_getfile in libutil.
311         * configure: Regenerate.
312         * config.in: Regenerate.
313         * fbsd-nat.c: Include "fbsd-tdep.h".
314         (fbsd_fetch_cmdline): New.
315         (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
316         rather than calling error.
317         (fbsd_info_proc): New.
318         (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
319         (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
320         (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
321
322 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
323
324         * fbsd-nat.c (struct free_deleter): Remove.
325         (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
326
327 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
328
329         * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
330         NULL for an empty pathname.
331
332 2018-01-09  John Baldwin  <jhb@FreeBSD.org>
333
334         * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
335         (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
336         (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
337         (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
338         (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
339         (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
340         (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
341         (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
342         (kinfo_proc_layout_32, kinfo_proc_layout_i386)
343         (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
344         (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
345         (fbsd_core_fetch_timeval, fbsd_print_sigset)
346         (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
347         (fbsd_init_abi):  Install gdbarch "core_info_proc" method.
348         * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
349
350 2018-01-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
351
352         * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
353         (gnu_xfer_auxv): New function.
354         (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
355         TARGET_OBJECT_AUXV.
356
357 2018-01-08  Yao Qi  <yao.qi@linaro.org>
358             Simon Marchi  <simon.marchi@ericsson.com>
359
360         * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
361         common/selftest.c.
362         (COMMON_OBS): Remove selftest.o.
363         * configure.ac: Append selftest-arch.c and common/selftest.c to
364         CONFIG_SRCS.  Append selftest-arch.o and selftest.o to COMMON_OBS.
365         * configure: Re-generated.
366         * maint.c (maintenance_selftest): Wrap selftests::run_tests with
367         GDB_SELF_TEST.
368         (maintenance_info_selftests): Likewise.
369
370 2018-01-08  Xavier Roirand  <roirand@adacore.com>
371
372         * ada-valprint.c (val_print_packed_array_elements): Use
373         proper number of elements when printing an array indexed
374         by an enumeration type.
375
376 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
377
378         * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
379         (dw2_get_file_names_reader): Adjust.
380         (lookup_dwo_signatured_type): Adjust.
381         (lookup_dwp_signatured_type): Adjust.
382         (lookup_signatured_type): Adjust.
383         (create_type_unit_group): Adjust.
384         (get_type_unit_group): Adjust.
385         (process_psymtab_comp_unit_reader): Adjust.
386         (build_type_psymtabs_reader): Adjust.
387         (scan_partial_symbols): Adjust.
388         (add_partial_symbol): Adjust.
389         (add_partial_subprogram): Adjust.
390         (peek_die_abbrev): Adjust.
391         (fixup_go_packaging): Adjust.
392         (process_imported_unit_die): Adjust.
393         (dwarf2_compute_name): Adjust.
394         (dwarf2_physname): Adjust.
395         (read_import_statement): Adjust.
396         (handle_DW_AT_stmt_list): Adjust.
397         (read_file_scope): Adjust.
398         (read_func_scope): Adjust.
399         (read_lexical_block_scope): Adjust.
400         (read_call_site_scope): Adjust.
401         (read_variable): Adjust.
402         (dwarf2_rnglists_process): Adjust.
403         (dwarf2_ranges_process): Adjust.
404         (dwarf2_ranges_read): Adjust.
405         (dwarf2_get_pc_bounds): Adjust.
406         (dwarf2_record_block_ranges): Adjust.
407         (dwarf2_add_field): Adjust.
408         (dwarf2_add_member_fn): Adjust.
409         (read_structure_type): Adjust.
410         (process_structure_scope): Adjust.
411         (read_enumeration_type): Adjust.
412         (read_array_type): Adjust.
413         (mark_common_block_symbol_computed): Adjust.
414         (read_common_block): Adjust.
415         (read_namespace_type): Adjust.
416         (read_namespace): Adjust.
417         (read_module_type): Adjust.
418         (read_tag_pointer_type): Adjust.
419         (read_tag_ptr_to_member_type): Adjust.
420         (read_tag_string_type): Adjust.
421         (read_subroutine_type): Adjust.
422         (read_typedef): Adjust.
423         (read_base_type): Adjust.
424         (attr_to_dynamic_prop): Adjust.
425         (read_subrange_type): Adjust.
426         (read_unspecified_type): Adjust.
427         (dwarf2_read_abbrevs): Adjust.
428         (load_partial_dies): Adjust.
429         (read_partial_die): Adjust.
430         (find_partial_die): Adjust.
431         (guess_partial_die_structure_name): Adjust.
432         (fixup_partial_die): Adjust.
433         (read_attribute_value): Adjust.
434         (read_addr_index): Adjust.
435         (read_addr_index_from_leb128): Adjust.
436         (read_str_index): Adjust.
437         (dwarf2_string_attr): Adjust.
438         (get_debug_line_section): Adjust.
439         (dwarf_decode_line_header): Adjust.
440         (lnp_state_machine::check_line_address): Adjust.
441         (dwarf_decode_lines_1): Adjust.
442         (dwarf_decode_lines): Adjust.
443         (dwarf2_start_symtab): Adjust.
444         (var_decode_location): Adjust.
445         (new_symbol_full): Adjust.
446         (dwarf2_const_value_data): Adjust.
447         (dwarf2_const_value_attr): Adjust.
448         (dwarf2_const_value): Adjust.
449         (die_type): Adjust.
450         (die_containing_type): Adjust.
451         (build_error_marker_type): Adjust.
452         (lookup_die_type): Adjust.
453         (guess_full_die_structure_name): Adjust.
454         (anonymous_struct_prefix): Adjust.
455         (determine_prefix): Adjust.
456         (dwarf2_name): Adjust.
457         (follow_die_ref_or_sig): Adjust.
458         (follow_die_offset): Adjust.
459         (follow_die_ref): Adjust.
460         (follow_die_sig_1): Adjust.
461         (follow_die_sig): Adjust.
462         (get_signatured_type): Adjust.
463         (get_DW_AT_signature_type): Adjust.
464         (decode_locdesc): Adjust.
465         (dwarf_decode_macros): Adjust.
466         (cu_debug_loc_section): Adjust.
467         (fill_in_loclist_baton): Adjust.
468         (dwarf2_symbol_mark_computed): Adjust.
469         (init_one_comp_unit): Don't assign
470         dwarf2_cu::dwarf2_per_objfile.
471         (set_die_type): Adjust.
472
473 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
474
475         * dwarf2read.c (struct mapped_debug_names): Add constructor.
476         <dwarf2_per_objfile>: New field.
477         (dwarf2_per_objfile): Remove global.
478         (get_dwarf2_per_objfile): New function.
479         (set_dwarf2_per_objfile): New function.
480         (dwarf2_build_psymtabs_hard): Change objfile parameter to
481         dwarf2_per_objfile.
482         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
483         (read_abbrev_offset): Likewise.
484         (read_indirect_string): Likewise.
485         (read_indirect_line_string): Likewise.
486         (read_indirect_string_at_offset): Likewise.
487         (read_indirect_string_from_dwz): Likewise.
488         (dwarf2_find_containing_comp_unit): Change objfile parameter to
489         dwarf2_per_objfile.
490         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
491         (create_all_comp_units): Change objfile parameter to
492         dwarf2_per_objfile.
493         (create_all_type_units): Likewise.
494         (process_queue): Add dwarf2_per_objfile parameter.
495         (read_and_check_comp_unit_head): Likewise.
496         (lookup_dwo_unit_in_dwp): Likewise.
497         (get_dwp_file): Likewise.
498         (process_cu_includes): Likewise.
499         (struct free_dwo_file_cleanup_data): New struct.
500         (dwarf2_has_info): Use get_dwarf2_per_objfile and
501         set_dwarf2_per_objfile.
502         (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
503         (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
504         context, adjust calls.
505         (dw2_instantiate_symtab): Likewise.
506         (dw2_get_cutu): Add dwarf2_per_objfile parameter.
507         (dw2_get_cu): Likewise.
508         (create_cu_from_index_list): Change objfile parameter to
509         dwarf2_per_objfile.
510         (create_cus_from_index_list): Get dwarf2_per_objfile from
511         context, adjust calls.
512         (create_cus_from_index): Likewise.
513         (create_signatured_type_table_from_index): Change objfile
514         parameter to dwarf2_per_objfile.
515         (create_signatured_type_table_from_debug_names): Change objfile
516         parameter to dwarf2_per_objfile.
517         (create_addrmap_from_index): Likewise.
518         (create_addrmap_from_aranges): Likewise.
519         (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
520         (dw2_setup): Remove.
521         (dw2_get_file_names_reader): Get dwarf2_per_objfile from
522         context.
523         (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
524         get_dwarf2_per_objfile.
525         (dw2_forget_cached_source_info): Likewise.
526         (dw2_map_symtabs_matching_filename): Likewise.
527         (struct dw2_symtab_iterator) <index>: Remove.
528         <dwarf2_per_objfile>: New field.
529         (dw2_symtab_iter_init): Replace index parameter with
530         dwarf2_per_objfile.
531         (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
532         (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
533         (dw2_print_stats): Likewise.
534         (dw2_dump): Likewise.
535         (dw2_expand_symtabs_for_function): Likewise.
536         (dw2_expand_all_symtabs): Likewise.
537         (dw2_expand_symtabs_with_fullname): Likewise.
538         (dw2_expand_marked_cus): Replace index and objfile parameters
539         with dwarf2_per_objfile.
540         (dw_expand_symtabs_matching_file_matcher): Add
541         dwarf2_per_objfile parameter and adjust calls.
542         (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
543         adjust calls.
544         (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
545         (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
546         adjust calls.
547         (create_cus_from_debug_names_list): Replace objfile parameter
548         with dwarf2_per_objfile and adjust calls.
549         (create_cus_from_debug_names): Likewise.
550         (dwarf2_read_debug_names): Likewise.
551         (mapped_debug_names::namei_to_name): Adjust call.
552         (dw2_debug_names_iterator::next): Likewise.
553         (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
554         (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
555         (dw2_debug_names_dump): Likewise.
556         (dw2_debug_names_expand_symtabs_for_function): Likewise.
557         (dw2_debug_names_expand_symtabs_matching): Likewise.
558         (dwarf2_initialize_objfile): Likewise.
559         (dwarf2_build_psymtabs): Likewise.
560         (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
561         this_cu.
562         (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
563         (read_and_check_comp_unit_head): Likewise.
564         (read_abbrev_offset): Likewise.
565         (create_debug_type_hash_table): Likewise.
566         (create_debug_types_hash_table): Likewise.
567         (create_all_type_units): Replace objfile parameter with
568         dwarf2_per_objfile.
569         (add_type_unit): Add dwarf2_per_objfile parameter.
570         (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
571         with dwarf2_per_objfile.
572         (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
573         (lookup_dwp_signatured_type): Likewise.
574         (lookup_signatured_type): Likewise.
575         (read_cutu_die_from_dwo): Likewise.
576         (init_tu_and_read_dwo_dies): Likewise.
577         (init_cutu_and_read_dies): Likewise.
578         (init_cutu_and_read_dies_no_follow): Likewise.
579         (allocate_type_unit_groups_table): Add objfile parameter.
580         (create_type_unit_group): Use dwarf2_per_objfile from cu.
581         (get_type_unit_group): Likewise.
582         (process_psymtab_comp_unit): Update call.
583         (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
584         (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
585         (print_tu_stats): Likewise.
586         (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
587         in void* parameter.
588         (build_type_psymtabs): Change objfile parameter to
589         dwarf2_per_objfile.
590         (process_skeletonless_type_unit): Use dwarf2_per_objfile
591         passed in void* parameter.
592         (process_skeletonless_type_units): Change objfile parameter to
593         dwarf2_per_objfile.
594         (set_partial_user): Likewise.
595         (dwarf2_build_psymtabs_hard): Likewise.
596         (read_comp_units_from_section): Likewise.
597         (create_all_comp_units): Likewise.
598         (scan_partial_symbols): Update calls.
599         (add_partial_symbol): Likewise.
600         (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
601         (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
602         (process_queue): Add dwarf2_per_objfile parameter.
603         (get_compunit_symtab): Use dwarf2_per_objfile from cu.
604         (compute_compunit_symtab_includes): Likewise.
605         (process_cu_includes): Add dwarf2_per_objfile parameter.
606         (process_full_comp_unit): Use dwarf2_per_objfile from cu.
607         (process_full_type_unit): Likewise.
608         (process_imported_unit_die): Update call.
609         (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
610         (read_file_scope): Likewise.
611         (allocate_dwo_file_hash_table): Add objfile parameter.
612         (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
613         (create_cus_hash_table): Likewise.
614         (create_dwp_hash_table): Likewise.
615         (create_dwo_unit_in_dwp_v1): Likewise.
616         (create_dwp_v2_section): Likewise.
617         (create_dwo_unit_in_dwp_v2): Likewise.
618         (lookup_dwo_unit_in_dwp): Likewise.
619         (try_open_dwop_file): Likewise.
620         (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
621         (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
622         cleanup to include a reference to dwarf2_per_objfile.
623         (open_dwp_file): Add dwarf2_per_objfile parameter.
624         (open_and_init_dwp_file): Likewise.
625         (get_dwp_file): Likewise.
626         (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
627         (queue_and_load_all_dwo_tus): Update call.
628         (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
629         data.
630         (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
631         (dwarf2_ranges_process): Likewise.
632         (dwarf2_get_pc_bounds): Likewise.
633         (mark_common_block_symbol_computed): Likewise.
634         (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
635         (dwarf2_read_abbrevs): Update call.
636         (read_partial_die): Use dwarf2_per_objfile from cu.
637         (find_partial_die): Likewise.
638         (fixup_partial_die): Likewise.
639         (read_attribute_value): Likewise.
640         (read_indirect_string_at_offset_from): Add objfile parameter.
641         (read_indirect_string_at_offset): Add dwarf2_per_objfile
642         parameter.
643         (read_indirect_string_from_dwz): Add objfile parameter.
644         (read_indirect_string): Add objfile parameter.
645         (read_addr_index_1): Add dwarf2_per_objfile parameter.
646         (read_addr_index): Use dwarf2_per_objfile from cu.
647         (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
648         call dw2_setup.
649         (read_str_index): Use dwarf2_per_objfile from cu.
650         (get_debug_line_section): Likewise.
651         (read_formatted_entries): Add dwarf2_per_objfile parameter.
652         (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
653         (new_symbol_full): Use dwarf2_per_objfile from cu.
654         (build_error_marker_type): Likewise.
655         (lookup_die_type): Likewise.
656         (determine_prefix): Likewise.
657         (follow_die_offset): Likewise.
658         (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
659         (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
660         (dwarf2_fetch_die_type_sect_off): Likewise.
661         (dwarf2_get_die_type): Likewise.
662         (follow_die_sig_1): Use dwarf2_per_objfile from cu.
663         (get_signatured_type): Likewise.
664         (get_DW_AT_signature_type): Likewise.
665         (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
666         (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
667         (cu_debug_loc_section): Likewise.
668         (fill_in_loclist_baton): Likewise.
669         (dwarf2_symbol_mark_computed): Likewise.
670         (dwarf2_find_containing_comp_unit): Change objfile parameter to
671         dwarf2_per_objfile.
672         (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
673         parameter.
674         (age_cached_comp_units): Add dwarf2_per_objfile parameter.
675         (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
676         (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
677         (set_die_type): Use dwarf2_free_objfile from cu.
678         (get_die_type_at_offset): Likewise.
679         (dwarf2_per_objfile_free): Don't assign global variable.
680         (debug_names) <constructor>: Add dwarf2_per_objfile
681         parameter, update m_debugstrlookup construction.
682         (debug_names::debug_str_lookup): Add dwarf2_per_objfile
683         parameter.
684         <m_dwarf2_per_objfile>: New field.
685         <lookup>: Use m_dwarf2_per_objfile.
686         (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
687         (psyms_seen_size): Likewise.
688         (write_gdbindex): Replace objfile parameter with
689         dwarf2_per_objfile.
690         (write_debug_names): Likewise.
691         (write_psymtabs_to_index): Likewise.
692         (save_gdb_index_command): Use get_dwarf2_per_objfile, update
693         calls.
694
695 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
696
697         * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
698         <dwarf2_per_objfile>: New field.
699         (struct dwarf2_per_cu_data) <objfile>: Remove.
700         <dwarf2_per_objfile>: New field.
701         (create_cu_from_index_list): Assign dwarf2_per_objfile instead
702         of objfile.
703         (create_signatured_type_table_from_index): Likewise.
704         (create_debug_type_hash_table): Likewise.
705         (fill_in_sig_entry_from_dwo_entry): Likewise.
706         (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
707         (create_type_unit_group): Assign dwarf2_per_objfile instead of
708         objfile.
709         (create_partial_symtab): Access objfile through
710         dwarf2_per_objfile.
711         (process_psymtab_comp_unit_reader): Likewise.
712         (read_comp_units_from_section): Likewise.
713         (scan_partial_symbols): Likewise.
714         (add_partial_symbol): Likewise.
715         (add_partial_subprogram): Likewise.
716         (peek_die_abbrev): Likewise.
717         (fixup_go_packaging): Likewise.
718         (process_full_comp_unit): Likewise.
719         (process_full_type_unit): Likewise.
720         (process_imported_unit_die): Likewise.
721         (dwarf2_compute_name): Likewise.
722         (dwarf2_physname): Likewise.
723         (read_import_statement): Likewise.
724         (create_cus_hash_table): Assign dwarf2_physname instead of
725         objfile.
726         (read_func_scope): Access objfile through dwarf2_per_objfile.
727         (read_lexical_block_scope): Likewise.
728         (read_call_site_scope): Likewise.
729         (read_variable): Likewise.
730         (dwarf2_rnglists_process): Likewise.
731         (dwarf2_ranges_process): Likewise.
732         (dwarf2_ranges_read): Likewise.
733         (dwarf2_record_block_ranges): Likewise.
734         (dwarf2_add_field): Likewise.
735         (dwarf2_add_member_fn): Likewise.
736         (read_structure_type): Likewise.
737         (process_structure_scope): Likewise.
738         (read_enumeration_type): Likewise.
739         (read_array_type): Likewise.
740         (read_common_block): Likewise.
741         (read_namespace_type): Likewise.
742         (read_namespace): Likewise.
743         (read_module_type): Likewise.
744         (read_tag_pointer_type): Likewise.
745         (read_tag_ptr_to_member_type): Likewise.
746         (read_tag_string_type): Likewise.
747         (read_subroutine_type): Likewise.
748         (read_typedef): Likewise.
749         (read_base_type): Likewise.
750         (attr_to_dynamic_prop): Likewise.
751         (read_subrange_type): Likewise.
752         (read_unspecified_type): Likewise.
753         (load_partial_dies): Likewise.
754         (read_partial_die): Likewise.
755         (find_partial_die): Likewise.
756         (guess_partial_die_structure_name): Likewise.
757         (fixup_partial_die): Likewise.
758         (read_attribute_value): Likewise.
759         (read_addr_index_from_leb128): Likewise.
760         (dwarf2_read_addr_index): Likewise.
761         (dwarf2_string_attr): Likewise.
762         (lnp_state_machine::check_line_address): Likewise.
763         (dwarf_decode_lines_1): Likewise.
764         (dwarf_decode_lines): Likewise.
765         (dwarf2_start_symtab): Likewise.
766         (var_decode_location): Likewise.
767         (new_symbol_full): Likewise.
768         (dwarf2_const_value_data): Likewise.
769         (dwarf2_const_value_attr): Likewise.
770         (dwarf2_const_value): Likewise.
771         (die_type): Likewise.
772         (die_containing_type): Likewise.
773         (lookup_die_type): Likewise.
774         (guess_full_die_structure_name): Likewise.
775         (anonymous_struct_prefix): Likewise.
776         (dwarf2_name): Likewise.
777         (follow_die_ref_or_sig): Likewise.
778         (follow_die_offset): Likewise.
779         (follow_die_ref): Likewise.
780         (dwarf2_fetch_die_loc_sect_off): Likewise.
781         (dwarf2_fetch_constant_bytes): Likewise.
782         (dwarf2_fetch_die_type_sect_off): Likewise.
783         (dwarf2_get_die_type): Likewise.
784         (follow_die_sig): Likewise.
785         (decode_locdesc): Likewise.
786         (dwarf2_per_cu_objfile): Likewise.
787         (dwarf2_per_cu_text_offset): Likewise.
788         (init_one_comp_unit): Assign dwarf2_per_objfile instead of
789         objfile.
790         (set_die_type): Access objfile through
791         dwarf2_per_objfile.
792
793 2018-01-07  Simon Marchi  <simon.marchi@ericsson.com>
794
795         * valprint.c (converted_character_d): Remove typedef.
796         (DEF_VEC_O (converted_character_d)): Remove.
797         (count_next_character): Use std::vector.
798         (print_converted_chars_to_obstack): Likewise.
799         (generic_printstr): Likewise.
800
801 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
802
803         * xml-support.h (struct gdb_xml_value): Add constructor.
804         <value>: Change type to unique_xmalloc_ptr.
805         (gdb_xml_value_s): Remove typedef.
806         (DEF_VEC_O (gdb_xml_value_s)): Remove.
807         (gdb_xml_element_start_handler): Change parameter type to
808         std::vector.
809         (xml_find_attribute): Likewise.
810         * xml-support.c (xml_find_attribute): Change parameter type to
811         std::vector and adjust.
812         (gdb_xml_values_cleanup): Remove.
813         (gdb_xml_parser::start_element): Adjust to std::vector.
814         (xinclude_start_include): Change paraeter type to std::vector
815         and adjust.
816         * btrace.c (check_xml_btrace_version): Likewise.
817         (parse_xml_btrace_block): Likewise.
818         (parse_xml_btrace_pt_config_cpu): Likewise.
819         (parse_xml_btrace_pt): Likewise.
820         (parse_xml_btrace_conf_bts): Likewise.
821         (parse_xml_btrace_conf_pt): Likewise.
822         * memory-map.c (memory_map_start_memory): Likewise.
823         (memory_map_start_property): Likewise.
824         * osdata.c (osdata_start_osdata): Likewise.
825         (osdata_start_item): Likewise.
826         (osdata_start_column): Likewise.
827         * remote.c (start_thread): Likewise.
828         * solib-aix.c (library_list_start_library): Likewise.
829         (library_list_start_list): Likewise.
830         * solib-svr4.c (library_list_start_library): Likewise.
831         (svr4_library_list_start_list): Likewise.
832         * solib-target.c (library_list_start_segment): Likewise.
833         (library_list_start_section): Likewise.
834         (library_list_start_library): Likewise.
835         (library_list_start_list): Likewise.
836         * tracepoint.c (traceframe_info_start_memory): Likewise.
837         (traceframe_info_start_tvar): Likewise.
838         * xml-syscall.c (syscall_start_syscall): Likewise.
839         * xml-tdesc.c (tdesc_start_target): Likewise.
840         (tdesc_start_feature): Likewise.
841         (tdesc_start_reg): Likewise.
842         (tdesc_start_union): Likewise.
843         (tdesc_start_struct): Likewise.
844         (tdesc_start_flags): Likewise.
845         (tdesc_start_enum): Likewise.
846         (tdesc_start_field): Likewise.
847         (tdesc_start_enum_value): Likewise.
848         (tdesc_start_vector): Likewise.
849
850 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
851
852         * extension.h (struct xmethod_worker) <clone>: Remove.
853         * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
854         Remove.
855         (python_xmethod_worker::clone): Remove.
856         * valops.c (find_overload_match): Use std::move instead of
857         clone.
858
859 2018-01-07  Simon Marchi  <simon.marchi@polymtl.ca>
860
861         * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
862         (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
863         <free_xmethod_worker_data>: Remove.
864         <get_matching_xmethod_workers>: Chance VEC to std::vector.
865         <get_xmethod_arg_types>: Remove.
866         <get_xmethod_result_type>: Remove.
867         <invoke_xmethod>: Remove.
868         * extension.c (new_xmethod_worker): Remove.
869         (clone_xmethod_worker): Remove.
870         (get_matching_xmethod_workers): Return void, pass std::vector by
871         pointer.
872         (get_xmethod_arg_types): Rename to...
873         (xmethod_worker::get_arg_types): ... this, and adjust.
874         (get_xmethod_result_type): Rename to...
875         (xmethod_worker::get_result_type): ... this, and adjust.
876         (invoke_xmethod): Remove.
877         (free_xmethod_worker): Remove.
878         (free_xmethod_worker_vec): Remove.
879         * extension.h (enum ext_lang_rc): Move here from
880         extension-priv.h.
881         (struct xmethod_worker): Add constructor and destructor.
882         <data>: Remove.
883         <value>: Remove.
884         <invoke, clone, do_get_result_type, do_get_arg_types>: New
885         virtual pure methods.
886         <get_arg_types, get_result_type>: New methods.
887         (xmethod_worker_ptr): Remove typedef.
888         (DEF_VEC_P (xmethod_worker_ptr)): Remove.
889         (xmethod_worker_vec): Remove typedef.
890         (xmethod_worker_up): New typedef.
891         (invoke_xmethod): Remove.
892         (clone_xmethod_worker): Remove.
893         (free_xmethod_worker): Remove.
894         (free_xmethod_worker_vec): Remove.
895         (get_xmethod_arg_types): Remove.
896         (get_xmethod_result_type): Remove.
897         * valops.c (find_method_list): Use std::vector, don't use
898         intermediate vector.
899         (value_find_oload_method_list): Use std::vector.
900         (find_overload_match): Use std::vector.
901         (find_oload_champ): Use std::vector.
902         * value.c (value_free): Use operator delete.
903         (value_of_xmethod): Rename to...
904         (value_from_xmethod): ... this.  Don't assign
905         xmethod_worker::value, take rvalue-reference.
906         (result_type_of_xmethod): Adjust.
907         (call_xmethod): Adjust.
908         * value.h: Include extension.h.
909         (struct xmethod_worker): Don't forward-declare.
910         (value_of_xmethod): Rename to...
911         (value_from_xmethod): ... this, take rvalue-reference.
912         * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
913         (struct python_xmethod_worker): ... this, add constructor and
914         destructor.
915         <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
916         (gdbpy_free_xmethod_worker_data): Rename to...
917         (python_xmethod_worker::~python_xmethod_worker): ... this and
918         adjust.
919         (gdbpy_clone_xmethod_worker_data): Rename to...
920         (python_xmethod_worker::clone): ... this and adjust.
921         (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
922         temporary vector.
923         (gdbpy_get_xmethod_arg_types): Rename to...
924         (python_xmethod_worker::do_get_arg_types): ... this and adjust.
925         (gdbpy_get_xmethod_result_type): Rename to...
926         (python_xmethod_worker::do_get_result_type): ... this and
927         adjust.
928         (gdbpy_invoke_xmethod): Rename to...
929         (python_xmethod_worker::invoke): ... this and adjust.
930         (new_python_xmethod_worker): Rename to...
931         (python_xmethod_worker::python_xmethod_worker): ... this and
932         adjust.
933         * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
934         Remove.
935         (gdbpy_free_xmethod_worker_data): Remove.
936         (gdbpy_get_matching_xmethod_workers): Use std::vector.
937         (gdbpy_get_xmethod_arg_types): Remove.
938         (gdbpy_get_xmethod_result_type): Remove.
939         (gdbpy_invoke_xmethod): Remove.
940         * python/python.c (python_extension_ops): Remove obsolete
941         callbacks.
942
943 2018-01-05  Pedro Alves  <palves@redhat.com>
944
945         PR gdb/18653
946         * common/signals-state-save-restore.c
947         (save_original_signals_state): New parameter 'quiet'.  Warn if we
948         find a custom handler preinstalled, instead of internal erroring.
949         But only warn if !quiet.
950         * common/signals-state-save-restore.h
951         (save_original_signals_state): New parameter 'quiet'.
952         * main.c (captured_main_1): Move save_original_signals_state call
953         after option handling, and pass QUIET.
954
955 2018-01-05  Pedro Alves  <palves@redhat.com>
956
957         * spu-tdep.c (spu_catch_start): Pass
958         symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
959
960 2018-01-05  Pedro Alves  <palves@redhat.com>
961
962         PR gdb/22670
963         * ada-lang.c (literal_symbol_name_matcher): New function.
964         (ada_get_symbol_name_matcher): Use it for
965         symbol_name_match_type::SEARCH_NAME.
966         * block.c (block_lookup_symbol): New parameter 'match_type'.  Pass
967         it down instead of assuming symbol_name_match_type::FULL.
968         * block.h (block_lookup_symbol): New parameter 'match_type'.
969         * c-valprint.c (print_unpacked_pointer): Use
970         lookup_symbol_search_name instead of lookup_symbol.
971         * compile/compile-object-load.c (get_out_value_type): Pass down
972         symbol_name_match_type::SEARCH_NAME.
973         * cp-namespace.c (cp_basic_lookup_symbol): Pass down
974         symbol_name_match_type::FULL.
975         * cp-support.c (cp_get_symbol_name_matcher): Handle
976         symbol_name_match_type::SEARCH_NAME.
977         * infrun.c (insert_exception_resume_breakpoint): Use
978         lookup_symbol_search_name.
979         * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
980         * psymtab.c (maintenance_check_psymtabs): Use
981         symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
982         * stack.c (print_frame_args): Use lookup_symbol_search_name and
983         SYMBOL_SEARCH_NAME.
984         * symtab.c (lookup_local_symbol): Don't demangle the lookup name
985         if symbol_name_match_type::SEARCH_NAME.
986         (lookup_symbol_in_language): Pass down
987         symbol_name_match_type::FULL.
988         (lookup_symbol_search_name): New.
989         (lookup_language_this): Pass down
990         symbol_name_match_type::SEARCH_NAME.
991         (lookup_symbol_aux, lookup_local_symbol): New parameter
992         'match_type'.  Pass it down.
993         * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
994         (lookup_symbol_search_name): New declaration.
995         (lookup_symbol_in_block): New 'match_type' parameter.
996
997 2018-01-05  Pedro Alves  <palves@redhat.com>
998
999         PR gdb/22670
1000         * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1001         ada_lookup_symbol.
1002         (ada_lookup_symbol): Reimplement in terms of
1003         ada_lookup_symbol_list, bits factored out from
1004         ada_lookup_encoded_symbol.
1005
1006 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1007
1008         * ada-exp.y (write_object_renaming): When subscripting an array
1009         using a symbol as the index, pass the block in call to
1010         ada_lookup_encoded_symbol when looking that symbol up.
1011
1012 2018-01-05  Jerome Guitton  <guitton@adacore.com>
1013
1014         * ada-lang.c (ada_array_length): Use ada_index_type instead of
1015         TYPE_INDEX_TYPE.
1016
1017 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1018
1019         * ada-lang.c (ada_to_fixed_value_create): Add handling of
1020         the case where VALUE_LVAL (val0) is not lval_memory.
1021
1022 2018-01-05  Xavier Roirand  <roirand@adacore.com>
1023
1024         * ada-valprint.c (print_optional_low_bound): Handle
1025         character-indexed array printing like boolean-indexed array
1026         printing.
1027
1028 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1029
1030         * NEWS: Create a new section for the next release branch.
1031         Rename the section of the current branch, now that it has
1032         been cut.
1033
1034 2018-01-05  Joel Brobecker  <brobecker@adacore.com>
1035
1036         GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1037         * version.in: Bump version to 8.1.50.DATE-git.
1038
1039 2018-01-03  Xavier Roirand  <roirand@adacore.com>
1040
1041         * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1042         Add field.
1043         * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1044         Add field.
1045         (default_exception_support_info) <catch_handlers_sym>: Add field.
1046         (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1047         (ada_exception_name_addr_1): Add "catch handlers" handling.
1048         (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1049         Update all callers.
1050         (create_excep_cond_exprs) <ex>: Add parameter.
1051         (re_set_exception): Update create_excep_cond_exprs call.
1052         (print_it_exception, print_one_exception, print_mention_exception)
1053         (print_recreate_exception): Add "catch handler" handling.
1054         (allocate_location_catch_handlers, re_set_catch_handlers)
1055         (check_status_catch_handlers, print_it_catch_handlers)
1056         (print_one_catch_handlers, print_mention_catch_handlers)
1057         (print_recreate_catch_handlers): New function.
1058         (catch_handlers_breakpoint_ops): New variable.
1059         (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1060         Add parameter.  Add "catch handler" handling.
1061         (ada_exception_sym_name, ada_exception_breakpoint_ops):
1062         Add "catch handler" handling.
1063         (ada_exception_catchpoint_cond_string): Add "catch handler"
1064         handling.
1065         (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1066         call.
1067         (catch_ada_handlers_command): New function.
1068         (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1069         operations structure.
1070         (_initialize_ada_language): Add "catch handlers" command entry.
1071         * NEWS: Document "catch handlers" feature.
1072
1073 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1074
1075         * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1076         account when creating the array type of the slice.
1077         (ada_value_slice): Likewise.
1078
1079 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1080
1081         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1082         New enum value.
1083         (create_array_type_with_stride): Add byte_stride_prop parameter.
1084         * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1085         New parameter.  Update all callers in this file.
1086         (array_type_has_dynamic_stride): New function.
1087         (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1088         of arrays with dynamic byte strides.
1089         * dwarf2read.c (read_array_type): Add support for dynamic
1090         DW_AT_byte_stride attributes.
1091
1092 2018-01-02  Joel Brobecker  <brobecker@adacore.com>
1093
1094         * dwarf2read.c (read_unspecified_type): Treat
1095         DW_TAG_enumeration_type DIEs from Ada units as stubs.
1096
1097 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1098
1099         Update copyright year range in all GDB files.
1100
1101 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1102
1103         * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1104         and gdb/testsuite/gdb.base/step-line.c.
1105
1106 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1107
1108         * copyright.py (main): Dump the contents of
1109         MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1110         even if BY_HAND is empty.
1111
1112 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1113
1114         * top.c (print_gdb_version): Update Copyright year in version
1115         message.
1116
1117 2018-01-01  Joel Brobecker  <brobecker@adacore.com>
1118
1119         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1120
1121 For older changes see ChangeLog-2017.
1122 \f
1123 Local Variables:
1124 mode: change-log
1125 left-margin: 8
1126 fill-column: 74
1127 version-control: never
1128 coding: utf-8
1129 End: