1 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
3 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
4 tdesc_has_registers check
6 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8 * s390-linux-tdep.c (s390_tdesc_valid): New function.
9 (s390_validate_reg_range): New macro.
10 (s390_gdbarch_init): Adjust.
12 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
14 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
15 (s390_gdbarch_tdep_alloc): Adjust.
16 (s390_gdbarch_init): Adjust.
18 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
20 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
21 <have_tdb>: Change type to bool.
22 (s390_gdbarch_tdep_alloc): Adjust.
23 (s390_gdbarch_init): Adjust.
25 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
27 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
28 (gdbarch_tdep) <have_upper, have_vx>: New fields.
29 (s390_gdbarch_tdep_alloc): New function.
30 (s390_gdbarch_init): Allocate tdep at start and use its fields
31 instead of separate variables.
33 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
35 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
36 when looking for cached gdbarch and add comment for remaining.
38 2018-01-22 Pedro Alves <palves@redhat.com>
39 Sergio Durigan Junior <sergiodj@redhat.com>
41 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
44 2018-01-22 Maciej W. Rozycki <macro@mips.com>
46 * MAINTAINERS: Update my company e-mail address.
48 2018-01-22 Yao Qi <yao.qi@linaro.org>
50 * regcache.c (cooked_write_test): New function.
51 (_initialize_regcache): Register the test.
53 2018-01-22 Yao Qi <yao.qi@linaro.org>
55 * ia64-tdep.c (ia64_pseudo_register_read): Call
56 regcache->cooked_read instead of regcache_cooked_read_unsigned.
57 * m32c-tdep.c (m32c_cat_read): Likewise.
58 (m32c_r3r2r1r0_read): Likewise.
59 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
60 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
62 2018-01-22 Yao Qi <yao.qi@linaro.org>
64 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
65 method raw_read instead of regcache_raw_read.
66 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
67 * arm-tdep.c (arm_neon_quad_read): Likewise.
68 * avr-tdep.c (avr_pseudo_register_read): Likewise.
69 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
70 * frv-tdep.c (frv_pseudo_register_read): Likewise.
71 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
72 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
73 (i386_pseudo_register_read_into_value): Likewise.
74 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
75 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
76 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
77 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
78 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
79 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
80 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
81 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
82 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
84 2018-01-22 Yao Qi <yao.qi@linaro.org>
86 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
87 * configure.tgt: Remove target mt.
89 * regcache.c (cooked_read_test): Remove the check for mt.
91 2018-01-22 Yao Qi <yao.qi@linaro.org>
93 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
94 instead of gdbarch_pseudo_register_read_value.
96 2018-01-22 Joel Brobecker <brobecker@adacore.com>
98 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
101 2018-01-22 Joel Brobecker <brobecker@adacore.com>
103 * linespec.c (create_sals_line_offset): Remove code that preserved
104 the symtab_and_line's line number.
106 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
108 * varobj.c (varobj_create): Don't set valid_block when creating a
111 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
113 * varobj.c (varobj_create): Remove out of date comment.
115 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
118 * ada-exp.y (write_var_from_sym): Pass extra parameter when
119 updating innermost block.
120 * parse.c (innermost_block_tracker::update): Take extra type
121 parameter, and check types match before updating innermost block.
122 (write_dollar_variable): Update innermost block for registers.
123 * parser-defs.h (enum innermost_block_tracker_type): New enum.
124 (innermost_block_tracker::innermost_block_tracker): Initialise
126 (innermost_block_tracker::reset): Take type parameter.
127 (innermost_block_tracker::update): Take type parameter, and pass
128 type through as needed.
129 (innermost_block_tracker::m_types): New member.
130 * varobj.c (varobj_create): Pass type when reseting innermost
133 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
135 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
136 * ada-lang.c (resolve_subexp): Likewise.
137 * breakpoint.c (set_breakpoint_condition) Likewise.
138 (watch_command_1) Likewise.
139 * c-exp.y (variable): Likewise.
140 * d-exp.y (PrimaryExpression): Likewise.
141 * f-exp.y (variable): Likewise.
142 * go-exp.y (variable): Likewise.
143 * m2-exp.y (variable): Likewise.
144 * objfiles.c (objfile::~objfile): Likewise.
145 * p-exp.y (variable): Likewise.
146 * parse.c (innermost_block): Change type.
147 * parser-defs.h (class innermost_block_tracker): New.
148 (innermost_block): Change to innermost_block_tracker.
149 * printcmd.c (display_command): Switch to innermost_block API.
150 (do_one_display): Likewise.
151 * rust-exp.y (do_one_display): Likewise.
152 * symfile.c (clear_symtab_users): Likewise.
153 * varobj.c (varobj_create): Switch to innermost_block API, replace
154 use of innermost_block with block stored on varobj object.
156 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
158 * expression.h (innermost_block): Remove declaration.
159 * varobj.c: Add 'parser-defs.h' include.
161 2018-01-19 Tom Tromey <tom@tromey.com>
163 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
164 symbols in the static and global blocks.
166 2018-01-19 James Clarke <jrtc27@jrtc27.com>
168 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
169 gdb_ptrace.h, and move including gdb_wait.h ...
170 * nat/linux-ptrace.h: ... to here.
172 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
174 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
175 inf_ptrace_detach_success.
176 (inf_ptrace_detach_success): Add inferior parameter, use it
177 instead of inferior_ptid, pass it to detach_inferior.
178 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
180 * inferior.c (detach_inferior): Add overload that takes an
182 * inferior.h (detach_inferior): Likewise.
183 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
184 use inferior_ptid, adjust call to inf_ptrace_detach_success.
185 * linux-thread-db.c (thread_db_detach): Use inf parameter.
187 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
189 * target.h (struct target_ops) <to_detach>: Add inferior
191 (target_detach): Likewise.
192 * target.c (dispose_inferior): Pass inferior down.
193 (target_detach): Pass inferior down. Assert that it is equal to
194 the current inferior.
195 * aix-thread.c (aix_thread_detach): Pass inferior down.
196 * corefile.c (core_file_command): Pass current_inferior() down.
197 * corelow.c (core_detach): Add inferior parameter.
198 * darwin-nat.c (darwin_detach): Likewise.
199 * gnu-nat.c (gnu_detach): Likewise.
200 * inf-ptrace.c (inf_ptrace_detach): Likewise.
201 * infcmd.c (detach_command): Pass current_inferior() down to
203 * infrun.c (follow_fork_inferior): Pass parent_inf to
205 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
207 * linux-nat.c (linux_nat_detach): Add inferior parameter.
208 * linux-thread-db.c (thread_db_detach): Likewise.
209 * nto-procfs.c (procfs_detach): Likewise.
210 * procfs.c (procfs_detach): Likewise.
211 * record.c (record_detach): Likewise.
212 * record.h (struct inferior): Forward-declare.
213 (record_detach): Add inferior parameter.
214 * remote-sim.c (gdbsim_detach): Likewise.
215 * remote.c (remote_detach_1): Likewise.
216 (remote_detach): Likewise.
217 (extended_remote_detach): Likewise.
218 * sol-thread.c (sol_thread_detach): Likewise.
219 * target-debug.h (target_debug_print_inferior_p): New macro.
220 * target-delegates.c: Re-generate.
221 * top.c (kill_or_detach): Pass inferior down to target_detach.
222 * windows-nat.c (windows_detach): Add inferior parameter.
224 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
226 * target.h (struct target_ops) <to_detach>: Remove args
228 (target_detach): Likewise.
229 * target.c (dispose_inferior): Adjust.
230 (target_detach): Remove args parameter, adjust.
231 * aix-thread.c (aix_thread_detach): Adjust.
232 * corefile.c (core_file_command): Adjust.
233 * corelow.c (core_detach): Adjust.
234 * darwin-nat.c (darwin_detach): Adjust.
235 * gnu-nat.c (gnu_detach): Adjust.
236 * inf-ptrace.c (inf_ptrace_detach): Adjust.
237 * infcmd.c (detach_command): Adjust
238 * infrun.c (follow_fork_inferior): Adjust.
239 (handle_vfork_child_exec_or_exit): Adjust.
240 * linux-fork.c (linux_fork_detach): Remove args parameter.
241 * linux-fork.h (linux_fork_detach): Likewise.
242 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
243 * linux-thread-db.c (thread_db_detach): Likewise.
244 * nto-procfs.c (procfs_detach): Likewise.
245 * procfs.c (procfs_detach): Likewise.
246 (do_detach): Remove signo parameter.
247 * record.c (record_detach): Remove args parameter.
248 * record.h (record_detach): Likewise.
249 * remote-sim.c (gdbsim_detach): Likewise.
250 * remote.c (remote_detach_1): Likewise.
251 (remote_detach): Likewise.
252 (extended_remote_detach): Likewise.
253 * sol-thread.c (sol_thread_detach): Likewise.
254 * target-delegates.c: Re-generate.
255 * top.c (struct qt_args) <args>: Remove field.
256 (kill_or_detach): Don't pass args.
257 (quit_force): Don't set args.
258 * windows-nat.c (windows_detach): Remove args parameter.
260 2018-01-19 Yao Qi <yao.qi@linaro.org>
262 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
263 (arm_linux_init_abi): Install it.
265 2018-01-19 Yao Qi <yao.qi@linaro.org>
267 * osabi.c (gdb_osabi_names): Extend the regexp for
270 2018-01-18 Yao Qi <yao.qi@linaro.org>
272 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
274 (abbrev_table::add_abbrev): Update.
275 (abbrev_table::lookup_abbrev): Update.
277 2018-01-18 Yao Qi <yao.qi@linaro.org>
279 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
281 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
283 * compile/compile.c (compile_to_object): Convert "triplet_rx"
286 2018-01-17 Tom Tromey <tom@tromey.com>
288 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
290 2018-01-17 Tom Tromey <tom@tromey.com>
292 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
293 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
294 (create_array_type_with_stride): Update.
295 * dwarf2read.c (set_die_type): Update.
297 2018-01-17 Tom Tromey <tom@tromey.com>
299 * dwarf2read.c (delayed_method_info): Remove typedef.
300 (dwarf2_cu::method_info): Now a std::vector.
301 (add_to_method_list): Update.
302 (free_delayed_list): Remove.
303 (compute_delayed_physnames): Update.
304 (process_full_comp_unit, process_full_type_unit): Clear the method
305 list. Remove cleanups.
306 (psymtab_include_file_name): Add name_holder parameter. Use
308 (dwarf_decode_lines): Update.
310 2018-01-17 Tom Tromey <tom@tromey.com>
311 Simon Marchi <simon.marchi@ericsson.com>
313 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
314 (dwarf2_per_objfile::free_cached_comp_units)
315 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
316 (init_cutu_and_read_dies_no_follow): Update.
317 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
318 (dwarf2_cu::~dwarf2_cu): New.
319 (free_heap_comp_unit, free_stack_comp_unit): Remove.
320 (age_cached_comp_units, free_one_cached_comp_unit): Update.
322 2018-01-17 Tom Tromey <tom@tromey.com>
323 Simon Marchi <simon.marchi@ericsson.com>
325 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
326 (struct die_reader_specs) <abbrev_table>: New member.
327 (struct abbrev_table): Add constructor.
328 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
329 <abbrev_obstack>: Now an auto_obstack.
330 (abbrev_table_up): New typedef.
331 (init_cu_die_reader): Add abbrev_table parameter.
332 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
333 Add result_dwo_abbrev_table.
334 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
335 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
337 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
339 (skip_children): Update.
340 (abbrev_table::alloc_abbrev): Rename from
341 abbrev_table_alloc_abbrev.
342 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
343 (abbrev_table::lookup_abbrev): Rename from
344 abbrev_table_lookup_abbrev.
345 (abbrev_table_read_table): Return abbrev_table_up.
346 (abbrev_table_free, abbrev_table_free_cleanup)
347 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
348 (load_partial_dies): Update.
350 2018-01-17 Tom Tromey <tom@tromey.com>
352 * dwarf2read.c (dwarf2_compute_name): Update comment.
353 (read_func_scope, read_variable): Update.
354 (new_symbol): Remove.
355 (new_symbol_full): Rename to new_symbol.
357 2018-01-17 Mike Gulick <mgulick@mathworks.com>
360 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
361 a warning instead of throwing an error, set section size to 0 and return
363 * gdb_bfd.h (gdb_bfd_map_section): Update description.
365 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
367 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
369 (linux_ptrace_attach_fail_reason_string): Likewise.
370 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
372 (linux_ptrace_attach_fail_reason_string): Likewise.
373 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
375 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
377 * linux-nat.c (linux_nat_attach): Remove xstrdup.
379 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
382 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
383 checking for fs_base/gs_base fields in struct user_regs_struct.
384 * configure: Regenerate.
386 2018-01-17 Yao Qi <yao.qi@linaro.org>
388 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
390 (aarch64_linux_init_abi): Install it to gdbarch hook
393 2018-01-15 Pedro Alves <palves@redhat.com>
395 * common/signals-state-save-restore.c
396 (save_original_signals_state): Fix typos.
398 2017-01-12 Tom Tromey <tom@tromey.com>
399 Sergio Durigan Junior <sergiodj@redhat.com>
401 * Makefile.in (install-only): Install gdb-add-index.
403 2018-01-12 John Baldwin <jhb@FreeBSD.org>
405 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
407 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
409 * infrun.c (keep_going_pass_signal): Clear step-over info when
410 insert_breakpoints fails.
412 2018-01-11 Pedro Alves <palves@redhat.com>
415 * infrun.c (resume): Rename to ...
416 (resume_1): ... this.
417 (resume): Reimplement as wrapper around resume_1.
419 2018-01-11 Pedro Alves <palves@redhat.com>
422 * remote.c (remote_parse_stop_reply): Default to the last-set
423 general thread instead of to 'magic_null_ptid'.
425 2018-01-10 Pedro Alves <palves@redhat.com>
427 * language.h (language_get_symbol_name_matcher): Rename ...
428 (get_symbol_name_matcher): ... this.
429 * language.c (language_get_symbol_name_matcher): Ditto.
430 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
433 2018-01-10 Pedro Alves <palves@redhat.com>
437 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
438 Adjust to use language_get_symbol_name_matcher instead of
439 language_defn::la_get_symbol_name_matcher.
440 * language.c (language_get_symbol_name_matcher): If in Ada mode
441 and the lookup name is a verbatim match, return Ada's matcher.
442 * language.h (language_get_symbol_name_matcher): Adjust comment.
443 (ada_lookup_name_info::verbatim_p):: New method.
445 2018-01-10 Pedro Alves <palves@redhat.com>
448 * ada-lang.c (ada_collect_symbol_completion_matches): If the
449 minsym's language is language_auto or language_cplus, pass down
450 language_ada instead.
451 * symtab.c (compare_symbol_name): Don't frob symbol language here.
453 2018-01-10 Pedro Alves <palves@redhat.com>
456 * minsyms.c (linkage_name_str): New function.
457 (iterate_over_minimal_symbols): Use it.
459 2018-01-09 John Baldwin <jhb@FreeBSD.org>
461 * NEWS: Document that 'info proc' now works on FreeBSD.
463 2018-01-09 John Baldwin <jhb@FreeBSD.org>
465 * configure.ac: Check for kinfo_getfile in libutil.
466 * configure: Regenerate.
467 * config.in: Regenerate.
468 * fbsd-nat.c: Include "fbsd-tdep.h".
469 (fbsd_fetch_cmdline): New.
470 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
471 rather than calling error.
472 (fbsd_info_proc): New.
473 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
474 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
475 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
477 2018-01-09 John Baldwin <jhb@FreeBSD.org>
479 * fbsd-nat.c (struct free_deleter): Remove.
480 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
482 2018-01-09 John Baldwin <jhb@FreeBSD.org>
484 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
485 NULL for an empty pathname.
487 2018-01-09 John Baldwin <jhb@FreeBSD.org>
489 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
490 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
491 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
492 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
493 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
494 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
495 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
496 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
497 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
498 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
499 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
500 (fbsd_core_fetch_timeval, fbsd_print_sigset)
501 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
502 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
503 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
505 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
507 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
508 (gnu_xfer_auxv): New function.
509 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
512 2018-01-08 Yao Qi <yao.qi@linaro.org>
513 Simon Marchi <simon.marchi@ericsson.com>
515 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
517 (COMMON_OBS): Remove selftest.o.
518 * configure.ac: Append selftest-arch.c and common/selftest.c to
519 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
520 * configure: Re-generated.
521 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
523 (maintenance_info_selftests): Likewise.
525 2018-01-08 Xavier Roirand <roirand@adacore.com>
527 * ada-valprint.c (val_print_packed_array_elements): Use
528 proper number of elements when printing an array indexed
529 by an enumeration type.
531 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
533 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
534 (dw2_get_file_names_reader): Adjust.
535 (lookup_dwo_signatured_type): Adjust.
536 (lookup_dwp_signatured_type): Adjust.
537 (lookup_signatured_type): Adjust.
538 (create_type_unit_group): Adjust.
539 (get_type_unit_group): Adjust.
540 (process_psymtab_comp_unit_reader): Adjust.
541 (build_type_psymtabs_reader): Adjust.
542 (scan_partial_symbols): Adjust.
543 (add_partial_symbol): Adjust.
544 (add_partial_subprogram): Adjust.
545 (peek_die_abbrev): Adjust.
546 (fixup_go_packaging): Adjust.
547 (process_imported_unit_die): Adjust.
548 (dwarf2_compute_name): Adjust.
549 (dwarf2_physname): Adjust.
550 (read_import_statement): Adjust.
551 (handle_DW_AT_stmt_list): Adjust.
552 (read_file_scope): Adjust.
553 (read_func_scope): Adjust.
554 (read_lexical_block_scope): Adjust.
555 (read_call_site_scope): Adjust.
556 (read_variable): Adjust.
557 (dwarf2_rnglists_process): Adjust.
558 (dwarf2_ranges_process): Adjust.
559 (dwarf2_ranges_read): Adjust.
560 (dwarf2_get_pc_bounds): Adjust.
561 (dwarf2_record_block_ranges): Adjust.
562 (dwarf2_add_field): Adjust.
563 (dwarf2_add_member_fn): Adjust.
564 (read_structure_type): Adjust.
565 (process_structure_scope): Adjust.
566 (read_enumeration_type): Adjust.
567 (read_array_type): Adjust.
568 (mark_common_block_symbol_computed): Adjust.
569 (read_common_block): Adjust.
570 (read_namespace_type): Adjust.
571 (read_namespace): Adjust.
572 (read_module_type): Adjust.
573 (read_tag_pointer_type): Adjust.
574 (read_tag_ptr_to_member_type): Adjust.
575 (read_tag_string_type): Adjust.
576 (read_subroutine_type): Adjust.
577 (read_typedef): Adjust.
578 (read_base_type): Adjust.
579 (attr_to_dynamic_prop): Adjust.
580 (read_subrange_type): Adjust.
581 (read_unspecified_type): Adjust.
582 (dwarf2_read_abbrevs): Adjust.
583 (load_partial_dies): Adjust.
584 (read_partial_die): Adjust.
585 (find_partial_die): Adjust.
586 (guess_partial_die_structure_name): Adjust.
587 (fixup_partial_die): Adjust.
588 (read_attribute_value): Adjust.
589 (read_addr_index): Adjust.
590 (read_addr_index_from_leb128): Adjust.
591 (read_str_index): Adjust.
592 (dwarf2_string_attr): Adjust.
593 (get_debug_line_section): Adjust.
594 (dwarf_decode_line_header): Adjust.
595 (lnp_state_machine::check_line_address): Adjust.
596 (dwarf_decode_lines_1): Adjust.
597 (dwarf_decode_lines): Adjust.
598 (dwarf2_start_symtab): Adjust.
599 (var_decode_location): Adjust.
600 (new_symbol_full): Adjust.
601 (dwarf2_const_value_data): Adjust.
602 (dwarf2_const_value_attr): Adjust.
603 (dwarf2_const_value): Adjust.
605 (die_containing_type): Adjust.
606 (build_error_marker_type): Adjust.
607 (lookup_die_type): Adjust.
608 (guess_full_die_structure_name): Adjust.
609 (anonymous_struct_prefix): Adjust.
610 (determine_prefix): Adjust.
611 (dwarf2_name): Adjust.
612 (follow_die_ref_or_sig): Adjust.
613 (follow_die_offset): Adjust.
614 (follow_die_ref): Adjust.
615 (follow_die_sig_1): Adjust.
616 (follow_die_sig): Adjust.
617 (get_signatured_type): Adjust.
618 (get_DW_AT_signature_type): Adjust.
619 (decode_locdesc): Adjust.
620 (dwarf_decode_macros): Adjust.
621 (cu_debug_loc_section): Adjust.
622 (fill_in_loclist_baton): Adjust.
623 (dwarf2_symbol_mark_computed): Adjust.
624 (init_one_comp_unit): Don't assign
625 dwarf2_cu::dwarf2_per_objfile.
626 (set_die_type): Adjust.
628 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
630 * dwarf2read.c (struct mapped_debug_names): Add constructor.
631 <dwarf2_per_objfile>: New field.
632 (dwarf2_per_objfile): Remove global.
633 (get_dwarf2_per_objfile): New function.
634 (set_dwarf2_per_objfile): New function.
635 (dwarf2_build_psymtabs_hard): Change objfile parameter to
637 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
638 (read_abbrev_offset): Likewise.
639 (read_indirect_string): Likewise.
640 (read_indirect_line_string): Likewise.
641 (read_indirect_string_at_offset): Likewise.
642 (read_indirect_string_from_dwz): Likewise.
643 (dwarf2_find_containing_comp_unit): Change objfile parameter to
645 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
646 (create_all_comp_units): Change objfile parameter to
648 (create_all_type_units): Likewise.
649 (process_queue): Add dwarf2_per_objfile parameter.
650 (read_and_check_comp_unit_head): Likewise.
651 (lookup_dwo_unit_in_dwp): Likewise.
652 (get_dwp_file): Likewise.
653 (process_cu_includes): Likewise.
654 (struct free_dwo_file_cleanup_data): New struct.
655 (dwarf2_has_info): Use get_dwarf2_per_objfile and
656 set_dwarf2_per_objfile.
657 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
658 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
659 context, adjust calls.
660 (dw2_instantiate_symtab): Likewise.
661 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
662 (dw2_get_cu): Likewise.
663 (create_cu_from_index_list): Change objfile parameter to
665 (create_cus_from_index_list): Get dwarf2_per_objfile from
666 context, adjust calls.
667 (create_cus_from_index): Likewise.
668 (create_signatured_type_table_from_index): Change objfile
669 parameter to dwarf2_per_objfile.
670 (create_signatured_type_table_from_debug_names): Change objfile
671 parameter to dwarf2_per_objfile.
672 (create_addrmap_from_index): Likewise.
673 (create_addrmap_from_aranges): Likewise.
674 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
676 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
678 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
679 get_dwarf2_per_objfile.
680 (dw2_forget_cached_source_info): Likewise.
681 (dw2_map_symtabs_matching_filename): Likewise.
682 (struct dw2_symtab_iterator) <index>: Remove.
683 <dwarf2_per_objfile>: New field.
684 (dw2_symtab_iter_init): Replace index parameter with
686 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
687 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
688 (dw2_print_stats): Likewise.
689 (dw2_dump): Likewise.
690 (dw2_expand_symtabs_for_function): Likewise.
691 (dw2_expand_all_symtabs): Likewise.
692 (dw2_expand_symtabs_with_fullname): Likewise.
693 (dw2_expand_marked_cus): Replace index and objfile parameters
694 with dwarf2_per_objfile.
695 (dw_expand_symtabs_matching_file_matcher): Add
696 dwarf2_per_objfile parameter and adjust calls.
697 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
699 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
700 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
702 (create_cus_from_debug_names_list): Replace objfile parameter
703 with dwarf2_per_objfile and adjust calls.
704 (create_cus_from_debug_names): Likewise.
705 (dwarf2_read_debug_names): Likewise.
706 (mapped_debug_names::namei_to_name): Adjust call.
707 (dw2_debug_names_iterator::next): Likewise.
708 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
709 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
710 (dw2_debug_names_dump): Likewise.
711 (dw2_debug_names_expand_symtabs_for_function): Likewise.
712 (dw2_debug_names_expand_symtabs_matching): Likewise.
713 (dwarf2_initialize_objfile): Likewise.
714 (dwarf2_build_psymtabs): Likewise.
715 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
717 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
718 (read_and_check_comp_unit_head): Likewise.
719 (read_abbrev_offset): Likewise.
720 (create_debug_type_hash_table): Likewise.
721 (create_debug_types_hash_table): Likewise.
722 (create_all_type_units): Replace objfile parameter with
724 (add_type_unit): Add dwarf2_per_objfile parameter.
725 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
726 with dwarf2_per_objfile.
727 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
728 (lookup_dwp_signatured_type): Likewise.
729 (lookup_signatured_type): Likewise.
730 (read_cutu_die_from_dwo): Likewise.
731 (init_tu_and_read_dwo_dies): Likewise.
732 (init_cutu_and_read_dies): Likewise.
733 (init_cutu_and_read_dies_no_follow): Likewise.
734 (allocate_type_unit_groups_table): Add objfile parameter.
735 (create_type_unit_group): Use dwarf2_per_objfile from cu.
736 (get_type_unit_group): Likewise.
737 (process_psymtab_comp_unit): Update call.
738 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
739 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
740 (print_tu_stats): Likewise.
741 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
743 (build_type_psymtabs): Change objfile parameter to
745 (process_skeletonless_type_unit): Use dwarf2_per_objfile
746 passed in void* parameter.
747 (process_skeletonless_type_units): Change objfile parameter to
749 (set_partial_user): Likewise.
750 (dwarf2_build_psymtabs_hard): Likewise.
751 (read_comp_units_from_section): Likewise.
752 (create_all_comp_units): Likewise.
753 (scan_partial_symbols): Update calls.
754 (add_partial_symbol): Likewise.
755 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
756 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
757 (process_queue): Add dwarf2_per_objfile parameter.
758 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
759 (compute_compunit_symtab_includes): Likewise.
760 (process_cu_includes): Add dwarf2_per_objfile parameter.
761 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
762 (process_full_type_unit): Likewise.
763 (process_imported_unit_die): Update call.
764 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
765 (read_file_scope): Likewise.
766 (allocate_dwo_file_hash_table): Add objfile parameter.
767 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
768 (create_cus_hash_table): Likewise.
769 (create_dwp_hash_table): Likewise.
770 (create_dwo_unit_in_dwp_v1): Likewise.
771 (create_dwp_v2_section): Likewise.
772 (create_dwo_unit_in_dwp_v2): Likewise.
773 (lookup_dwo_unit_in_dwp): Likewise.
774 (try_open_dwop_file): Likewise.
775 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
776 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
777 cleanup to include a reference to dwarf2_per_objfile.
778 (open_dwp_file): Add dwarf2_per_objfile parameter.
779 (open_and_init_dwp_file): Likewise.
780 (get_dwp_file): Likewise.
781 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
782 (queue_and_load_all_dwo_tus): Update call.
783 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
785 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
786 (dwarf2_ranges_process): Likewise.
787 (dwarf2_get_pc_bounds): Likewise.
788 (mark_common_block_symbol_computed): Likewise.
789 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
790 (dwarf2_read_abbrevs): Update call.
791 (read_partial_die): Use dwarf2_per_objfile from cu.
792 (find_partial_die): Likewise.
793 (fixup_partial_die): Likewise.
794 (read_attribute_value): Likewise.
795 (read_indirect_string_at_offset_from): Add objfile parameter.
796 (read_indirect_string_at_offset): Add dwarf2_per_objfile
798 (read_indirect_string_from_dwz): Add objfile parameter.
799 (read_indirect_string): Add objfile parameter.
800 (read_addr_index_1): Add dwarf2_per_objfile parameter.
801 (read_addr_index): Use dwarf2_per_objfile from cu.
802 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
804 (read_str_index): Use dwarf2_per_objfile from cu.
805 (get_debug_line_section): Likewise.
806 (read_formatted_entries): Add dwarf2_per_objfile parameter.
807 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
808 (new_symbol_full): Use dwarf2_per_objfile from cu.
809 (build_error_marker_type): Likewise.
810 (lookup_die_type): Likewise.
811 (determine_prefix): Likewise.
812 (follow_die_offset): Likewise.
813 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
814 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
815 (dwarf2_fetch_die_type_sect_off): Likewise.
816 (dwarf2_get_die_type): Likewise.
817 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
818 (get_signatured_type): Likewise.
819 (get_DW_AT_signature_type): Likewise.
820 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
821 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
822 (cu_debug_loc_section): Likewise.
823 (fill_in_loclist_baton): Likewise.
824 (dwarf2_symbol_mark_computed): Likewise.
825 (dwarf2_find_containing_comp_unit): Change objfile parameter to
827 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
829 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
830 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
831 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
832 (set_die_type): Use dwarf2_free_objfile from cu.
833 (get_die_type_at_offset): Likewise.
834 (dwarf2_per_objfile_free): Don't assign global variable.
835 (debug_names) <constructor>: Add dwarf2_per_objfile
836 parameter, update m_debugstrlookup construction.
837 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
839 <m_dwarf2_per_objfile>: New field.
840 <lookup>: Use m_dwarf2_per_objfile.
841 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
842 (psyms_seen_size): Likewise.
843 (write_gdbindex): Replace objfile parameter with
845 (write_debug_names): Likewise.
846 (write_psymtabs_to_index): Likewise.
847 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
850 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
852 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
853 <dwarf2_per_objfile>: New field.
854 (struct dwarf2_per_cu_data) <objfile>: Remove.
855 <dwarf2_per_objfile>: New field.
856 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
858 (create_signatured_type_table_from_index): Likewise.
859 (create_debug_type_hash_table): Likewise.
860 (fill_in_sig_entry_from_dwo_entry): Likewise.
861 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
862 (create_type_unit_group): Assign dwarf2_per_objfile instead of
864 (create_partial_symtab): Access objfile through
866 (process_psymtab_comp_unit_reader): Likewise.
867 (read_comp_units_from_section): Likewise.
868 (scan_partial_symbols): Likewise.
869 (add_partial_symbol): Likewise.
870 (add_partial_subprogram): Likewise.
871 (peek_die_abbrev): Likewise.
872 (fixup_go_packaging): Likewise.
873 (process_full_comp_unit): Likewise.
874 (process_full_type_unit): Likewise.
875 (process_imported_unit_die): Likewise.
876 (dwarf2_compute_name): Likewise.
877 (dwarf2_physname): Likewise.
878 (read_import_statement): Likewise.
879 (create_cus_hash_table): Assign dwarf2_physname instead of
881 (read_func_scope): Access objfile through dwarf2_per_objfile.
882 (read_lexical_block_scope): Likewise.
883 (read_call_site_scope): Likewise.
884 (read_variable): Likewise.
885 (dwarf2_rnglists_process): Likewise.
886 (dwarf2_ranges_process): Likewise.
887 (dwarf2_ranges_read): Likewise.
888 (dwarf2_record_block_ranges): Likewise.
889 (dwarf2_add_field): Likewise.
890 (dwarf2_add_member_fn): Likewise.
891 (read_structure_type): Likewise.
892 (process_structure_scope): Likewise.
893 (read_enumeration_type): Likewise.
894 (read_array_type): Likewise.
895 (read_common_block): Likewise.
896 (read_namespace_type): Likewise.
897 (read_namespace): Likewise.
898 (read_module_type): Likewise.
899 (read_tag_pointer_type): Likewise.
900 (read_tag_ptr_to_member_type): Likewise.
901 (read_tag_string_type): Likewise.
902 (read_subroutine_type): Likewise.
903 (read_typedef): Likewise.
904 (read_base_type): Likewise.
905 (attr_to_dynamic_prop): Likewise.
906 (read_subrange_type): Likewise.
907 (read_unspecified_type): Likewise.
908 (load_partial_dies): Likewise.
909 (read_partial_die): Likewise.
910 (find_partial_die): Likewise.
911 (guess_partial_die_structure_name): Likewise.
912 (fixup_partial_die): Likewise.
913 (read_attribute_value): Likewise.
914 (read_addr_index_from_leb128): Likewise.
915 (dwarf2_read_addr_index): Likewise.
916 (dwarf2_string_attr): Likewise.
917 (lnp_state_machine::check_line_address): Likewise.
918 (dwarf_decode_lines_1): Likewise.
919 (dwarf_decode_lines): Likewise.
920 (dwarf2_start_symtab): Likewise.
921 (var_decode_location): Likewise.
922 (new_symbol_full): Likewise.
923 (dwarf2_const_value_data): Likewise.
924 (dwarf2_const_value_attr): Likewise.
925 (dwarf2_const_value): Likewise.
926 (die_type): Likewise.
927 (die_containing_type): Likewise.
928 (lookup_die_type): Likewise.
929 (guess_full_die_structure_name): Likewise.
930 (anonymous_struct_prefix): Likewise.
931 (dwarf2_name): Likewise.
932 (follow_die_ref_or_sig): Likewise.
933 (follow_die_offset): Likewise.
934 (follow_die_ref): Likewise.
935 (dwarf2_fetch_die_loc_sect_off): Likewise.
936 (dwarf2_fetch_constant_bytes): Likewise.
937 (dwarf2_fetch_die_type_sect_off): Likewise.
938 (dwarf2_get_die_type): Likewise.
939 (follow_die_sig): Likewise.
940 (decode_locdesc): Likewise.
941 (dwarf2_per_cu_objfile): Likewise.
942 (dwarf2_per_cu_text_offset): Likewise.
943 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
945 (set_die_type): Access objfile through
948 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
950 * valprint.c (converted_character_d): Remove typedef.
951 (DEF_VEC_O (converted_character_d)): Remove.
952 (count_next_character): Use std::vector.
953 (print_converted_chars_to_obstack): Likewise.
954 (generic_printstr): Likewise.
956 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
958 * xml-support.h (struct gdb_xml_value): Add constructor.
959 <value>: Change type to unique_xmalloc_ptr.
960 (gdb_xml_value_s): Remove typedef.
961 (DEF_VEC_O (gdb_xml_value_s)): Remove.
962 (gdb_xml_element_start_handler): Change parameter type to
964 (xml_find_attribute): Likewise.
965 * xml-support.c (xml_find_attribute): Change parameter type to
966 std::vector and adjust.
967 (gdb_xml_values_cleanup): Remove.
968 (gdb_xml_parser::start_element): Adjust to std::vector.
969 (xinclude_start_include): Change paraeter type to std::vector
971 * btrace.c (check_xml_btrace_version): Likewise.
972 (parse_xml_btrace_block): Likewise.
973 (parse_xml_btrace_pt_config_cpu): Likewise.
974 (parse_xml_btrace_pt): Likewise.
975 (parse_xml_btrace_conf_bts): Likewise.
976 (parse_xml_btrace_conf_pt): Likewise.
977 * memory-map.c (memory_map_start_memory): Likewise.
978 (memory_map_start_property): Likewise.
979 * osdata.c (osdata_start_osdata): Likewise.
980 (osdata_start_item): Likewise.
981 (osdata_start_column): Likewise.
982 * remote.c (start_thread): Likewise.
983 * solib-aix.c (library_list_start_library): Likewise.
984 (library_list_start_list): Likewise.
985 * solib-svr4.c (library_list_start_library): Likewise.
986 (svr4_library_list_start_list): Likewise.
987 * solib-target.c (library_list_start_segment): Likewise.
988 (library_list_start_section): Likewise.
989 (library_list_start_library): Likewise.
990 (library_list_start_list): Likewise.
991 * tracepoint.c (traceframe_info_start_memory): Likewise.
992 (traceframe_info_start_tvar): Likewise.
993 * xml-syscall.c (syscall_start_syscall): Likewise.
994 * xml-tdesc.c (tdesc_start_target): Likewise.
995 (tdesc_start_feature): Likewise.
996 (tdesc_start_reg): Likewise.
997 (tdesc_start_union): Likewise.
998 (tdesc_start_struct): Likewise.
999 (tdesc_start_flags): Likewise.
1000 (tdesc_start_enum): Likewise.
1001 (tdesc_start_field): Likewise.
1002 (tdesc_start_enum_value): Likewise.
1003 (tdesc_start_vector): Likewise.
1005 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1007 * extension.h (struct xmethod_worker) <clone>: Remove.
1008 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1010 (python_xmethod_worker::clone): Remove.
1011 * valops.c (find_overload_match): Use std::move instead of
1014 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1016 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1017 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1018 <free_xmethod_worker_data>: Remove.
1019 <get_matching_xmethod_workers>: Chance VEC to std::vector.
1020 <get_xmethod_arg_types>: Remove.
1021 <get_xmethod_result_type>: Remove.
1022 <invoke_xmethod>: Remove.
1023 * extension.c (new_xmethod_worker): Remove.
1024 (clone_xmethod_worker): Remove.
1025 (get_matching_xmethod_workers): Return void, pass std::vector by
1027 (get_xmethod_arg_types): Rename to...
1028 (xmethod_worker::get_arg_types): ... this, and adjust.
1029 (get_xmethod_result_type): Rename to...
1030 (xmethod_worker::get_result_type): ... this, and adjust.
1031 (invoke_xmethod): Remove.
1032 (free_xmethod_worker): Remove.
1033 (free_xmethod_worker_vec): Remove.
1034 * extension.h (enum ext_lang_rc): Move here from
1036 (struct xmethod_worker): Add constructor and destructor.
1039 <invoke, clone, do_get_result_type, do_get_arg_types>: New
1040 virtual pure methods.
1041 <get_arg_types, get_result_type>: New methods.
1042 (xmethod_worker_ptr): Remove typedef.
1043 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1044 (xmethod_worker_vec): Remove typedef.
1045 (xmethod_worker_up): New typedef.
1046 (invoke_xmethod): Remove.
1047 (clone_xmethod_worker): Remove.
1048 (free_xmethod_worker): Remove.
1049 (free_xmethod_worker_vec): Remove.
1050 (get_xmethod_arg_types): Remove.
1051 (get_xmethod_result_type): Remove.
1052 * valops.c (find_method_list): Use std::vector, don't use
1053 intermediate vector.
1054 (value_find_oload_method_list): Use std::vector.
1055 (find_overload_match): Use std::vector.
1056 (find_oload_champ): Use std::vector.
1057 * value.c (value_free): Use operator delete.
1058 (value_of_xmethod): Rename to...
1059 (value_from_xmethod): ... this. Don't assign
1060 xmethod_worker::value, take rvalue-reference.
1061 (result_type_of_xmethod): Adjust.
1062 (call_xmethod): Adjust.
1063 * value.h: Include extension.h.
1064 (struct xmethod_worker): Don't forward-declare.
1065 (value_of_xmethod): Rename to...
1066 (value_from_xmethod): ... this, take rvalue-reference.
1067 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1068 (struct python_xmethod_worker): ... this, add constructor and
1070 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1071 (gdbpy_free_xmethod_worker_data): Rename to...
1072 (python_xmethod_worker::~python_xmethod_worker): ... this and
1074 (gdbpy_clone_xmethod_worker_data): Rename to...
1075 (python_xmethod_worker::clone): ... this and adjust.
1076 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1078 (gdbpy_get_xmethod_arg_types): Rename to...
1079 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1080 (gdbpy_get_xmethod_result_type): Rename to...
1081 (python_xmethod_worker::do_get_result_type): ... this and
1083 (gdbpy_invoke_xmethod): Rename to...
1084 (python_xmethod_worker::invoke): ... this and adjust.
1085 (new_python_xmethod_worker): Rename to...
1086 (python_xmethod_worker::python_xmethod_worker): ... this and
1088 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
1090 (gdbpy_free_xmethod_worker_data): Remove.
1091 (gdbpy_get_matching_xmethod_workers): Use std::vector.
1092 (gdbpy_get_xmethod_arg_types): Remove.
1093 (gdbpy_get_xmethod_result_type): Remove.
1094 (gdbpy_invoke_xmethod): Remove.
1095 * python/python.c (python_extension_ops): Remove obsolete
1098 2018-01-05 Pedro Alves <palves@redhat.com>
1101 * common/signals-state-save-restore.c
1102 (save_original_signals_state): New parameter 'quiet'. Warn if we
1103 find a custom handler preinstalled, instead of internal erroring.
1104 But only warn if !quiet.
1105 * common/signals-state-save-restore.h
1106 (save_original_signals_state): New parameter 'quiet'.
1107 * main.c (captured_main_1): Move save_original_signals_state call
1108 after option handling, and pass QUIET.
1110 2018-01-05 Pedro Alves <palves@redhat.com>
1112 * spu-tdep.c (spu_catch_start): Pass
1113 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1115 2018-01-05 Pedro Alves <palves@redhat.com>
1118 * ada-lang.c (literal_symbol_name_matcher): New function.
1119 (ada_get_symbol_name_matcher): Use it for
1120 symbol_name_match_type::SEARCH_NAME.
1121 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
1122 it down instead of assuming symbol_name_match_type::FULL.
1123 * block.h (block_lookup_symbol): New parameter 'match_type'.
1124 * c-valprint.c (print_unpacked_pointer): Use
1125 lookup_symbol_search_name instead of lookup_symbol.
1126 * compile/compile-object-load.c (get_out_value_type): Pass down
1127 symbol_name_match_type::SEARCH_NAME.
1128 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1129 symbol_name_match_type::FULL.
1130 * cp-support.c (cp_get_symbol_name_matcher): Handle
1131 symbol_name_match_type::SEARCH_NAME.
1132 * infrun.c (insert_exception_resume_breakpoint): Use
1133 lookup_symbol_search_name.
1134 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1135 * psymtab.c (maintenance_check_psymtabs): Use
1136 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1137 * stack.c (print_frame_args): Use lookup_symbol_search_name and
1139 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1140 if symbol_name_match_type::SEARCH_NAME.
1141 (lookup_symbol_in_language): Pass down
1142 symbol_name_match_type::FULL.
1143 (lookup_symbol_search_name): New.
1144 (lookup_language_this): Pass down
1145 symbol_name_match_type::SEARCH_NAME.
1146 (lookup_symbol_aux, lookup_local_symbol): New parameter
1147 'match_type'. Pass it down.
1148 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1149 (lookup_symbol_search_name): New declaration.
1150 (lookup_symbol_in_block): New 'match_type' parameter.
1152 2018-01-05 Pedro Alves <palves@redhat.com>
1155 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1157 (ada_lookup_symbol): Reimplement in terms of
1158 ada_lookup_symbol_list, bits factored out from
1159 ada_lookup_encoded_symbol.
1161 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1163 * ada-exp.y (write_object_renaming): When subscripting an array
1164 using a symbol as the index, pass the block in call to
1165 ada_lookup_encoded_symbol when looking that symbol up.
1167 2018-01-05 Jerome Guitton <guitton@adacore.com>
1169 * ada-lang.c (ada_array_length): Use ada_index_type instead of
1172 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1174 * ada-lang.c (ada_to_fixed_value_create): Add handling of
1175 the case where VALUE_LVAL (val0) is not lval_memory.
1177 2018-01-05 Xavier Roirand <roirand@adacore.com>
1179 * ada-valprint.c (print_optional_low_bound): Handle
1180 character-indexed array printing like boolean-indexed array
1183 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1185 * NEWS: Create a new section for the next release branch.
1186 Rename the section of the current branch, now that it has
1189 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1191 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1192 * version.in: Bump version to 8.1.50.DATE-git.
1194 2018-01-03 Xavier Roirand <roirand@adacore.com>
1196 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1198 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1200 (default_exception_support_info) <catch_handlers_sym>: Add field.
1201 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1202 (ada_exception_name_addr_1): Add "catch handlers" handling.
1203 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1205 (create_excep_cond_exprs) <ex>: Add parameter.
1206 (re_set_exception): Update create_excep_cond_exprs call.
1207 (print_it_exception, print_one_exception, print_mention_exception)
1208 (print_recreate_exception): Add "catch handler" handling.
1209 (allocate_location_catch_handlers, re_set_catch_handlers)
1210 (check_status_catch_handlers, print_it_catch_handlers)
1211 (print_one_catch_handlers, print_mention_catch_handlers)
1212 (print_recreate_catch_handlers): New function.
1213 (catch_handlers_breakpoint_ops): New variable.
1214 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1215 Add parameter. Add "catch handler" handling.
1216 (ada_exception_sym_name, ada_exception_breakpoint_ops):
1217 Add "catch handler" handling.
1218 (ada_exception_catchpoint_cond_string): Add "catch handler"
1220 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1222 (catch_ada_handlers_command): New function.
1223 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1224 operations structure.
1225 (_initialize_ada_language): Add "catch handlers" command entry.
1226 * NEWS: Document "catch handlers" feature.
1228 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1230 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1231 account when creating the array type of the slice.
1232 (ada_value_slice): Likewise.
1234 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1236 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1238 (create_array_type_with_stride): Add byte_stride_prop parameter.
1239 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1240 New parameter. Update all callers in this file.
1241 (array_type_has_dynamic_stride): New function.
1242 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1243 of arrays with dynamic byte strides.
1244 * dwarf2read.c (read_array_type): Add support for dynamic
1245 DW_AT_byte_stride attributes.
1247 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1249 * dwarf2read.c (read_unspecified_type): Treat
1250 DW_TAG_enumeration_type DIEs from Ada units as stubs.
1252 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1254 Update copyright year range in all GDB files.
1256 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1258 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1259 and gdb/testsuite/gdb.base/step-line.c.
1261 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1263 * copyright.py (main): Dump the contents of
1264 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1265 even if BY_HAND is empty.
1267 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1269 * top.c (print_gdb_version): Update Copyright year in version
1272 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1274 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1276 For older changes see ChangeLog-2017.
1282 version-control: never