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