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