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