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