1 2018-02-09 Tom Tromey <tom@tromey.com>
3 * auto-load.c (execute_script_contents): Use std::string.
5 2018-02-09 Joel Brobecker <brobecker@adacore.com>
7 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
8 Python function, rather than a new command.
10 2018-02-08 Tom Tromey <tom@tromey.com>
12 * solib.c (solib_find_1): Use std::string.
13 (solib_bfd_fopen): Use unique_xmalloc_ptr.
15 2018-02-08 Tom Tromey <tom@tromey.com>
17 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
19 2018-02-08 Tom Tromey <tom@tromey.com>
21 * source.c (find_source_lines): Use gdb::def_vector.
23 2018-02-08 Tom Tromey <tom@tromey.com>
25 * macrocmd.c (struct temporary_macro_definition): New.
26 (macro_define_command): Use temporary_macro_definition. Remove
28 (free_macro_definition_ptr): Remove.
30 2018-02-08 Tom Tromey <tom@tromey.com>
32 * macroexp.c (maybe_expand): Use std::string.
34 2018-02-08 Tom Tromey <tom@tromey.com>
36 * macroexp.c (struct macro_buffer): Add initializers for some
38 (init_buffer, init_shared_buffer, free_buffer)
39 (free_buffer_return_text): Remove.
40 (macro_buffer): New constructors.
41 (~macro_buffer): New destructor.
42 (macro_buffer::set_shared): New method.
43 (macro_buffer::resize_buffer, macro_buffer::appendc)
44 (macro_buffer::appendmem): Now methods, not free functions.
45 (set_token, append_tokens_without_splicing, stringify)
46 (macro_stringify): Update.
47 (gather_arguments): Change return type. Remove argc_p argument,
48 add args_ptr argument. Use std::vector.
49 (substitute_args): Remove argc argument. Accept std::vector.
50 (expand): Update. Use std::vector.
51 (scan, macro_expand, macro_expand_next): Update.
53 2018-02-08 Tom Tromey <tom@tromey.com>
55 * symtab.c (default_collect_symbol_completion_matches_break_on):
56 Use unique_xmalloc_ptr.
57 * macroscope.h: (sal_macro_scope, user_macro_scope)
58 (default_macro_scope): Return unique_xmalloc_ptr.
59 * macroscope.c (sal_macro_scope, user_macro_scope)
60 (default_macro_scope): Return unique_xmalloc_ptr.
61 * macroexp.h (macro_expand, macro_expand_once): Return
63 * macroexp.c (macro_expand, macro_expand_once): Return
65 * macrocmd.c (macro_expand_command, macro_expand_once_command)
66 (info_macro_command, info_macros_command): Use
68 * compile/compile-c-support.c (write_macro_definitions): Use
70 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
72 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
74 * value.c (value_static_field): Assign field type instead of
75 containing type when returning an optimized out value.
77 2018-02-06 Yao Qi <yao.qi@linaro.org>
79 * ft32-tdep.c (ft32_read_pc): Remove.
80 (ft32_write_pc): Remove.
81 (ft32_gdbarch_init): Update.
82 * m32r-tdep.c (m32r_read_pc): Remove.
83 (m32r_gdbarch_init): Update.
84 * mep-tdep.c (mep_read_pc): Remove.
85 (mep_gdbarch_init): Update.
86 * microblaze-tdep.c (microblaze_write_pc): Remove.
87 (microblaze_gdbarch_init): Update.
88 * mn10300-tdep.c (mn10300_read_pc): Remove.
89 (mn10300_write_pc): Remove.
90 (mn10300_gdbarch_init): Update.
91 * moxie-tdep.c (moxie_read_pc): Remove.
92 (moxie_write_pc): Remove.
93 (moxie_gdbarch_init): Update.
95 2018-02-06 Yao Qi <yao.qi@linaro.org>
97 * expprint.c (print_subexp_standard): Handle
98 OP_F77_UNDETERMINED_ARGLIST.
99 (dump_subexp_body_standard): Likewise.
101 2018-02-05 Alan Hayward <alan.hayward@arm.com>
103 * target-descriptions.c (tdesc_element_visitor) Add empty
105 (tdesc_type): Move make_gdb_type from here.
106 (tdesc_type_builtin): Likewise.
107 (tdesc_type_vector): Likewise.
108 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
109 (make_gdb_type_struct): Move from tdesc_type_with_fields.
110 (make_gdb_type_union): Likewise.
111 (make_gdb_type_flags): Likewise.
112 (make_gdb_type_enum): Likewise.
113 (make_gdb_type): New function.
114 (tdesc_register_type): Use static make_gdb_type.
116 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
118 * infcmd.c (default_print_one_register_info): Align natural-format
119 column values consistently one under another.
120 (pad_to_column): New function.
122 2018-02-05 Joel Brobecker <brobecker@adacore.com>
124 * dwarf2read.c (dwarf2_physname): Move commment.
126 2018-02-01 Leszek Swirski <leszeks@google.com>
128 * varobj.c (varobj_formatted_print_options): Allow recursive
129 pretty printing if pretty printing is enabled.
131 2018-02-01 Leszek Swirski <leszeks@google.com>
133 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
134 names after a structop as a filename.
136 2018-02-01 Yao Qi <yao.qi@linaro.org>
138 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
139 (arm_record_coproc_data_proc): Likewise.
141 2018-02-01 Yao Qi <yao.qi@linaro.org>
143 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
145 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
147 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
148 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
150 2018-01-31 Pedro Alves <palves@redhat.com>
152 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
153 * inflow.c (child_terminal_save_inferior): Wrap reference to
154 tcgetpgrp in HAVE_TERMIOS_H.
155 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
157 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
158 always iterate over all inferiors.
159 (gdbsim_cntrl_c): Adjust.
160 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
162 2018-01-31 Joel Brobecker <brobecker@adacore.com>
164 * gdbtypes.c (lookup_array_range_type): Make sure the array's
165 index type is objfile-owned if the element type is as well.
167 2018-01-31 Joel Brobecker <brobecker@adacore.com>
171 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
173 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
174 "features/s390x-linux64.c".
175 (_initialize_s390_linux_tdep): Remove initialization of tdescs
176 s390_linux32 and s390x_linux64.
177 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
179 * s390-tdep.c: Include "features/s390-linux32.c" and
180 "features/s390x-linux64.c".
181 (s390_tdesc_valid): Add check for tdesc_has_registers.
182 (s390_gdbarch_init): Make sure there is always a valid tdesc.
183 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
185 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
186 tdesc_s390x_linux64 to...
187 * s390-tdep.h: ...here.
189 2018-01-30 Pedro Alves <palves@redhat.com>
192 * config.in, configure: Regenerate.
193 * configure.ac: Check for getpgid.
194 * go32-nat.c (go32_pass_ctrlc): New.
195 (go32_target): Install it.
196 * inf-child.c (inf_child_target): Install
197 child_terminal_save_inferior, child_pass_ctrlc and
199 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
200 (inf_ptrace_target): No longer install it.
201 * infcmd.c (interrupt_target_1): Adjust.
202 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
203 (child_interrupt): Declare.
204 (inferior::terminal_state): New.
205 * inflow.c (struct terminal_info): Update comments.
206 (inferior_process_group): Delete.
207 (terminal_is_ours): Delete.
208 (gdb_tty_state): New.
209 (child_terminal_init): Adjust.
210 (is_gdb_terminal, sharing_input_terminal_1)
211 (sharing_input_terminal): New functions.
212 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
213 Set the process's actual process group in the foreground if
214 possible. Handle is_ours_for_output/is_ours distinction. Don't
215 mark terminal as the inferior's if not sharing GDB's terminal.
216 Don't check attach_flag.
217 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
218 pass down a target_terminal_state.
219 (child_terminal_save_inferior): New, factored out from ...
220 (child_terminal_ours_1): ... this. Handle
221 target_terminal_state::is_ours_for_output.
222 (child_interrupt, child_pass_ctrlc): New.
223 (inflow_inferior_exit): Clear the inferior's terminal_state.
224 (copy_terminal_info): Copy the inferior's terminal state.
225 (_initialize_inflow): Remove reference to terminal_is_ours.
226 * inflow.h (inferior_process_group): Delete.
227 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
228 * procfs.c (procfs_target): Don't install procfs_interrupt.
229 (procfs_interrupt): Delete.
230 * remote.c (remote_serial_quit_handler): Adjust.
231 (remote_interrupt): Remove ptid parameter. Adjust.
232 * target-delegates.c: Regenerate.
233 * target.c: Include "terminal.h".
234 (target_terminal::terminal_state): Rename to ...
235 (target_terminal::m_terminal_state): ... this.
236 (target_terminal::init): Adjust.
237 (target_terminal::inferior): Adjust to per-inferior
239 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
240 (target_terminal::ours, target_terminal::ours_for_output): Use
241 target_terminal_is_ours_kind.
242 (target_interrupt): Remove ptid parameter. Adjust.
243 (default_target_pass_ctrlc): Adjust.
244 * target.h (target_ops::to_terminal_save_inferior): New field.
245 (target_ops::to_interrupt): Remove ptid_t parameter.
246 (target_interrupt): Remove ptid_t parameter. Update comment.
247 (target_pass_ctrlc): Update comment.
248 * target/target.h (target_terminal_state): New scoped enum,
250 (target_terminal::terminal_state): ... here.
251 (target_terminal::inferior): Update comments.
252 (target_terminal::restore_inferior): New.
253 (target_terminal::is_inferior, target_terminal::is_ours)
254 (target_terminal::is_ours_for_output): Adjust.
255 (target_terminal::scoped_restore_terminal_state): Adjust to
256 rename, and call restore_inferior() instead of inferior().
257 (target_terminal::scoped_restore_terminal_state::m_state): Change
259 (target_terminal::terminal_state): Rename to ...
260 (target_terminal::m_terminal_state): ... this and change type.
262 2018-01-30 Pedro Alves <palves@redhat.com>
264 * linux-nat.c (wait_for_signal): New function.
265 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
267 (async_terminal_is_ours)
268 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
269 (linux_nat_add_target): Don't override
270 to_terminal_inferior/to_terminal_ours.
272 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
274 * remote.c (remote_follow_fork): Don't call "detach_inferior".
276 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
278 * dwarf2read.c (free_dwo_files): Add forward-declaration.
279 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
280 dwarf2_per_objfile_free here.
281 (dwarf2_per_objfile_free): Remove.
282 (_initialize_dwarf2_read): Don't register
283 dwarf2_per_objfile_free as a registry cleanup.
285 2018-01-27 Eli Zaretskii <eliz@gnu.org>
287 Avoid compilation errors in MinGW native builds
289 The error is triggered by including python-internal.h, and the
292 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
293 from build-gnulib/import/math.h:27,
294 from d:/usr/Python26/include/pyport.h:235,
295 from d:/usr/Python26/include/Python.h:58,
296 from python/python-internal.h:94,
297 from python/py-arch.c:24:
298 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
302 This happens because Python headers define 'hypot' to expand t
303 '_hypot' in the Windows builds.
304 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
305 'hypoth'. This avoids a compilation error.
307 2018-01-26 Alan Hayward <alan.hayward@arm.com>
309 * MAINTAINERS (Write After Approval): Fix ordering.
311 2018-01-26 Alan Hayward <alan.hayward@arm.com>
313 * MAINTAINERS (Write After Approval): Add Alan Hayward.
315 2018-01-26 Alan Modra <amodra@gmail.com>
317 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
318 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
319 Remove nop. Make const. Comment.
320 (powerpc32_plt_stub_so_2): New.
321 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
322 Correct count. Update uses.
323 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
324 Move common code reading PLT entry word. Correct
325 powerpc32_plt_stub PLT address calculation.
326 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
327 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
328 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
329 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
330 (ppc64_standard_linkage8): Likewise.
331 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
332 Correct insns description.
333 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
335 2018-01-24 Pedro Alves <palves@redhat.com>
337 GCC PR libstdc++/83906
338 * gdbtypes.c (operator==(const dynamic_prop &,
339 const dynamic_prop &)): New.
340 (operator==(const range_bounds &, const range_bounds &)): New.
341 (check_types_equal): Use them instead of memcmp.
342 * gdbtypes.h (operator==(const dynamic_prop &,
343 const dynamic_prop &)): Declare.
344 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
345 (operator==(const range_bounds &, const range_bounds &)): Declare.
346 (operator!=(const range_bounds &, const range_bounds &)): Declare.
348 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
350 * s390-linux-tdep.c (s390_record_address_mask)
351 (s390_record_calc_disp_common, s390_record_calc_disp)
352 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
353 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
354 (s390_process_record): Move to s390-tdep.c.
355 (s390_linux_init_abi_any): Adjust.
356 * s390-tdep.c (s390_record_address_mask)
357 (s390_record_calc_disp_common, s390_record_calc_disp)
358 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
359 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
360 (s390_process_record): Moved from s390-linux-tdep.c
361 (s390_gdbarch_init): Adjust.
363 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
365 * s390-linux-nat.c (s390-tdep.h): New include.
366 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
367 (HFILES_NO_SRCDIR): Add s390-tdep.h.
368 (ALLDEPFILES): Add s390-tdep.c.
369 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
370 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
371 * s390-tdep.h: ...this. New file.
372 * s390-linux-tdep.c (s390-tdep.h): New include.
373 (_initialize_s390_tdep): Rename to...
374 (_initialize_s390_linux_tdep): ...this and adjust.
375 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
376 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
378 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
379 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
380 (s390_is_partial_instruction, s390_software_single_step)
381 (is_non_branch_ril, s390_displaced_step_copy_insn)
382 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
383 (s390_prologue_data, s390_addr, s390_store, s390_load)
384 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
385 (s390_register_call_saved, s390_guess_tracepoint_registers)
386 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
387 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
388 (s390_pseudo_register_name, s390_pseudo_register_type)
389 (s390_pseudo_register_read, s390_pseudo_register_write)
390 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
391 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
392 (s390_addr_bits_remove, s390_address_class_type_flags)
393 (s390_address_class_type_flags_to_name)
394 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
395 (s390_function_arg_float, s390_function_arg_vector)
396 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
397 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
398 (s390_frame_align, s390_register_return_value, s390_return_value)
399 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
400 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
401 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
402 (s390_trad_frame_prev_register, s390_unwind_cache)
403 (s390_prologue_frame_unwind_cache)
404 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
405 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
406 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
407 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
408 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
409 (s390_frame_base_address, s390_local_base_address)
410 (s390_frame_base, s390_gcc_target_options)
411 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
412 (s390_validate_reg_range, s390_tdesc_valid)
413 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
414 * s390-tdep.c: ...this. New file.
416 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
418 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
419 (s390_process_record, s390_gdbarch_tdep_alloc)
420 (s390_linux_init_abi_any): Use/set new hook.
422 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
424 * s390-linux-tdep.c (osabi.h): New include.
425 (s390_linux_init_abi_31, s390_linux_init_abi_64)
426 (s390_linux_init_abi_any): New functions.
427 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
429 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
431 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
432 tdesc_has_registers check
434 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
436 * s390-linux-tdep.c (s390_tdesc_valid): New function.
437 (s390_validate_reg_range): New macro.
438 (s390_gdbarch_init): Adjust.
440 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
442 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
443 (s390_gdbarch_tdep_alloc): Adjust.
444 (s390_gdbarch_init): Adjust.
446 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
448 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
449 <have_tdb>: Change type to bool.
450 (s390_gdbarch_tdep_alloc): Adjust.
451 (s390_gdbarch_init): Adjust.
453 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
455 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
456 (gdbarch_tdep) <have_upper, have_vx>: New fields.
457 (s390_gdbarch_tdep_alloc): New function.
458 (s390_gdbarch_init): Allocate tdep at start and use its fields
459 instead of separate variables.
461 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
463 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
464 when looking for cached gdbarch and add comment for remaining.
466 2018-01-22 Pedro Alves <palves@redhat.com>
467 Sergio Durigan Junior <sergiodj@redhat.com>
469 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
472 2018-01-22 Maciej W. Rozycki <macro@mips.com>
474 * MAINTAINERS: Update my company e-mail address.
476 2018-01-22 Yao Qi <yao.qi@linaro.org>
478 * regcache.c (cooked_write_test): New function.
479 (_initialize_regcache): Register the test.
481 2018-01-22 Yao Qi <yao.qi@linaro.org>
483 * ia64-tdep.c (ia64_pseudo_register_read): Call
484 regcache->cooked_read instead of regcache_cooked_read_unsigned.
485 * m32c-tdep.c (m32c_cat_read): Likewise.
486 (m32c_r3r2r1r0_read): Likewise.
487 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
488 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
490 2018-01-22 Yao Qi <yao.qi@linaro.org>
492 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
493 method raw_read instead of regcache_raw_read.
494 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
495 * arm-tdep.c (arm_neon_quad_read): Likewise.
496 * avr-tdep.c (avr_pseudo_register_read): Likewise.
497 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
498 * frv-tdep.c (frv_pseudo_register_read): Likewise.
499 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
500 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
501 (i386_pseudo_register_read_into_value): Likewise.
502 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
503 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
504 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
505 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
506 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
507 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
508 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
509 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
510 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
512 2018-01-22 Yao Qi <yao.qi@linaro.org>
514 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
515 * configure.tgt: Remove target mt.
517 * regcache.c (cooked_read_test): Remove the check for mt.
519 2018-01-22 Yao Qi <yao.qi@linaro.org>
521 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
522 instead of gdbarch_pseudo_register_read_value.
524 2018-01-22 Joel Brobecker <brobecker@adacore.com>
526 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
529 2018-01-22 Joel Brobecker <brobecker@adacore.com>
531 * linespec.c (create_sals_line_offset): Remove code that preserved
532 the symtab_and_line's line number.
534 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
536 * varobj.c (varobj_create): Don't set valid_block when creating a
539 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
541 * varobj.c (varobj_create): Remove out of date comment.
543 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
546 * ada-exp.y (write_var_from_sym): Pass extra parameter when
547 updating innermost block.
548 * parse.c (innermost_block_tracker::update): Take extra type
549 parameter, and check types match before updating innermost block.
550 (write_dollar_variable): Update innermost block for registers.
551 * parser-defs.h (enum innermost_block_tracker_type): New enum.
552 (innermost_block_tracker::innermost_block_tracker): Initialise
554 (innermost_block_tracker::reset): Take type parameter.
555 (innermost_block_tracker::update): Take type parameter, and pass
556 type through as needed.
557 (innermost_block_tracker::m_types): New member.
558 * varobj.c (varobj_create): Pass type when reseting innermost
561 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
563 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
564 * ada-lang.c (resolve_subexp): Likewise.
565 * breakpoint.c (set_breakpoint_condition) Likewise.
566 (watch_command_1) Likewise.
567 * c-exp.y (variable): Likewise.
568 * d-exp.y (PrimaryExpression): Likewise.
569 * f-exp.y (variable): Likewise.
570 * go-exp.y (variable): Likewise.
571 * m2-exp.y (variable): Likewise.
572 * objfiles.c (objfile::~objfile): Likewise.
573 * p-exp.y (variable): Likewise.
574 * parse.c (innermost_block): Change type.
575 * parser-defs.h (class innermost_block_tracker): New.
576 (innermost_block): Change to innermost_block_tracker.
577 * printcmd.c (display_command): Switch to innermost_block API.
578 (do_one_display): Likewise.
579 * rust-exp.y (do_one_display): Likewise.
580 * symfile.c (clear_symtab_users): Likewise.
581 * varobj.c (varobj_create): Switch to innermost_block API, replace
582 use of innermost_block with block stored on varobj object.
584 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
586 * expression.h (innermost_block): Remove declaration.
587 * varobj.c: Add 'parser-defs.h' include.
589 2018-01-19 Tom Tromey <tom@tromey.com>
591 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
592 symbols in the static and global blocks.
594 2018-01-19 James Clarke <jrtc27@jrtc27.com>
596 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
597 gdb_ptrace.h, and move including gdb_wait.h ...
598 * nat/linux-ptrace.h: ... to here.
600 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
602 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
603 inf_ptrace_detach_success.
604 (inf_ptrace_detach_success): Add inferior parameter, use it
605 instead of inferior_ptid, pass it to detach_inferior.
606 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
608 * inferior.c (detach_inferior): Add overload that takes an
610 * inferior.h (detach_inferior): Likewise.
611 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
612 use inferior_ptid, adjust call to inf_ptrace_detach_success.
613 * linux-thread-db.c (thread_db_detach): Use inf parameter.
615 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
617 * target.h (struct target_ops) <to_detach>: Add inferior
619 (target_detach): Likewise.
620 * target.c (dispose_inferior): Pass inferior down.
621 (target_detach): Pass inferior down. Assert that it is equal to
622 the current inferior.
623 * aix-thread.c (aix_thread_detach): Pass inferior down.
624 * corefile.c (core_file_command): Pass current_inferior() down.
625 * corelow.c (core_detach): Add inferior parameter.
626 * darwin-nat.c (darwin_detach): Likewise.
627 * gnu-nat.c (gnu_detach): Likewise.
628 * inf-ptrace.c (inf_ptrace_detach): Likewise.
629 * infcmd.c (detach_command): Pass current_inferior() down to
631 * infrun.c (follow_fork_inferior): Pass parent_inf to
633 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
635 * linux-nat.c (linux_nat_detach): Add inferior parameter.
636 * linux-thread-db.c (thread_db_detach): Likewise.
637 * nto-procfs.c (procfs_detach): Likewise.
638 * procfs.c (procfs_detach): Likewise.
639 * record.c (record_detach): Likewise.
640 * record.h (struct inferior): Forward-declare.
641 (record_detach): Add inferior parameter.
642 * remote-sim.c (gdbsim_detach): Likewise.
643 * remote.c (remote_detach_1): Likewise.
644 (remote_detach): Likewise.
645 (extended_remote_detach): Likewise.
646 * sol-thread.c (sol_thread_detach): Likewise.
647 * target-debug.h (target_debug_print_inferior_p): New macro.
648 * target-delegates.c: Re-generate.
649 * top.c (kill_or_detach): Pass inferior down to target_detach.
650 * windows-nat.c (windows_detach): Add inferior parameter.
652 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
654 * target.h (struct target_ops) <to_detach>: Remove args
656 (target_detach): Likewise.
657 * target.c (dispose_inferior): Adjust.
658 (target_detach): Remove args parameter, adjust.
659 * aix-thread.c (aix_thread_detach): Adjust.
660 * corefile.c (core_file_command): Adjust.
661 * corelow.c (core_detach): Adjust.
662 * darwin-nat.c (darwin_detach): Adjust.
663 * gnu-nat.c (gnu_detach): Adjust.
664 * inf-ptrace.c (inf_ptrace_detach): Adjust.
665 * infcmd.c (detach_command): Adjust
666 * infrun.c (follow_fork_inferior): Adjust.
667 (handle_vfork_child_exec_or_exit): Adjust.
668 * linux-fork.c (linux_fork_detach): Remove args parameter.
669 * linux-fork.h (linux_fork_detach): Likewise.
670 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
671 * linux-thread-db.c (thread_db_detach): Likewise.
672 * nto-procfs.c (procfs_detach): Likewise.
673 * procfs.c (procfs_detach): Likewise.
674 (do_detach): Remove signo parameter.
675 * record.c (record_detach): Remove args parameter.
676 * record.h (record_detach): Likewise.
677 * remote-sim.c (gdbsim_detach): Likewise.
678 * remote.c (remote_detach_1): Likewise.
679 (remote_detach): Likewise.
680 (extended_remote_detach): Likewise.
681 * sol-thread.c (sol_thread_detach): Likewise.
682 * target-delegates.c: Re-generate.
683 * top.c (struct qt_args) <args>: Remove field.
684 (kill_or_detach): Don't pass args.
685 (quit_force): Don't set args.
686 * windows-nat.c (windows_detach): Remove args parameter.
688 2018-01-19 Yao Qi <yao.qi@linaro.org>
690 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
691 (arm_linux_init_abi): Install it.
693 2018-01-19 Yao Qi <yao.qi@linaro.org>
695 * osabi.c (gdb_osabi_names): Extend the regexp for
698 2018-01-18 Yao Qi <yao.qi@linaro.org>
700 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
702 (abbrev_table::add_abbrev): Update.
703 (abbrev_table::lookup_abbrev): Update.
705 2018-01-18 Yao Qi <yao.qi@linaro.org>
707 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
709 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
711 * compile/compile.c (compile_to_object): Convert "triplet_rx"
714 2018-01-17 Tom Tromey <tom@tromey.com>
716 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
718 2018-01-17 Tom Tromey <tom@tromey.com>
720 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
721 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
722 (create_array_type_with_stride): Update.
723 * dwarf2read.c (set_die_type): Update.
725 2018-01-17 Tom Tromey <tom@tromey.com>
727 * dwarf2read.c (delayed_method_info): Remove typedef.
728 (dwarf2_cu::method_info): Now a std::vector.
729 (add_to_method_list): Update.
730 (free_delayed_list): Remove.
731 (compute_delayed_physnames): Update.
732 (process_full_comp_unit, process_full_type_unit): Clear the method
733 list. Remove cleanups.
734 (psymtab_include_file_name): Add name_holder parameter. Use
736 (dwarf_decode_lines): Update.
738 2018-01-17 Tom Tromey <tom@tromey.com>
739 Simon Marchi <simon.marchi@ericsson.com>
741 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
742 (dwarf2_per_objfile::free_cached_comp_units)
743 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
744 (init_cutu_and_read_dies_no_follow): Update.
745 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
746 (dwarf2_cu::~dwarf2_cu): New.
747 (free_heap_comp_unit, free_stack_comp_unit): Remove.
748 (age_cached_comp_units, free_one_cached_comp_unit): Update.
750 2018-01-17 Tom Tromey <tom@tromey.com>
751 Simon Marchi <simon.marchi@ericsson.com>
753 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
754 (struct die_reader_specs) <abbrev_table>: New member.
755 (struct abbrev_table): Add constructor.
756 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
757 <abbrev_obstack>: Now an auto_obstack.
758 (abbrev_table_up): New typedef.
759 (init_cu_die_reader): Add abbrev_table parameter.
760 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
761 Add result_dwo_abbrev_table.
762 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
763 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
765 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
767 (skip_children): Update.
768 (abbrev_table::alloc_abbrev): Rename from
769 abbrev_table_alloc_abbrev.
770 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
771 (abbrev_table::lookup_abbrev): Rename from
772 abbrev_table_lookup_abbrev.
773 (abbrev_table_read_table): Return abbrev_table_up.
774 (abbrev_table_free, abbrev_table_free_cleanup)
775 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
776 (load_partial_dies): Update.
778 2018-01-17 Tom Tromey <tom@tromey.com>
780 * dwarf2read.c (dwarf2_compute_name): Update comment.
781 (read_func_scope, read_variable): Update.
782 (new_symbol): Remove.
783 (new_symbol_full): Rename to new_symbol.
785 2018-01-17 Mike Gulick <mgulick@mathworks.com>
788 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
789 a warning instead of throwing an error, set section size to 0 and return
791 * gdb_bfd.h (gdb_bfd_map_section): Update description.
793 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
795 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
797 (linux_ptrace_attach_fail_reason_string): Likewise.
798 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
800 (linux_ptrace_attach_fail_reason_string): Likewise.
801 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
803 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
805 * linux-nat.c (linux_nat_attach): Remove xstrdup.
807 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
810 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
811 checking for fs_base/gs_base fields in struct user_regs_struct.
812 * configure: Regenerate.
814 2018-01-17 Yao Qi <yao.qi@linaro.org>
816 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
818 (aarch64_linux_init_abi): Install it to gdbarch hook
821 2018-01-15 Pedro Alves <palves@redhat.com>
823 * common/signals-state-save-restore.c
824 (save_original_signals_state): Fix typos.
826 2017-01-12 Tom Tromey <tom@tromey.com>
827 Sergio Durigan Junior <sergiodj@redhat.com>
829 * Makefile.in (install-only): Install gdb-add-index.
831 2018-01-12 John Baldwin <jhb@FreeBSD.org>
833 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
835 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
837 * infrun.c (keep_going_pass_signal): Clear step-over info when
838 insert_breakpoints fails.
840 2018-01-11 Pedro Alves <palves@redhat.com>
843 * infrun.c (resume): Rename to ...
844 (resume_1): ... this.
845 (resume): Reimplement as wrapper around resume_1.
847 2018-01-11 Pedro Alves <palves@redhat.com>
850 * remote.c (remote_parse_stop_reply): Default to the last-set
851 general thread instead of to 'magic_null_ptid'.
853 2018-01-10 Pedro Alves <palves@redhat.com>
855 * language.h (language_get_symbol_name_matcher): Rename ...
856 (get_symbol_name_matcher): ... this.
857 * language.c (language_get_symbol_name_matcher): Ditto.
858 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
861 2018-01-10 Pedro Alves <palves@redhat.com>
865 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
866 Adjust to use language_get_symbol_name_matcher instead of
867 language_defn::la_get_symbol_name_matcher.
868 * language.c (language_get_symbol_name_matcher): If in Ada mode
869 and the lookup name is a verbatim match, return Ada's matcher.
870 * language.h (language_get_symbol_name_matcher): Adjust comment.
871 (ada_lookup_name_info::verbatim_p):: New method.
873 2018-01-10 Pedro Alves <palves@redhat.com>
876 * ada-lang.c (ada_collect_symbol_completion_matches): If the
877 minsym's language is language_auto or language_cplus, pass down
878 language_ada instead.
879 * symtab.c (compare_symbol_name): Don't frob symbol language here.
881 2018-01-10 Pedro Alves <palves@redhat.com>
884 * minsyms.c (linkage_name_str): New function.
885 (iterate_over_minimal_symbols): Use it.
887 2018-01-09 John Baldwin <jhb@FreeBSD.org>
889 * NEWS: Document that 'info proc' now works on FreeBSD.
891 2018-01-09 John Baldwin <jhb@FreeBSD.org>
893 * configure.ac: Check for kinfo_getfile in libutil.
894 * configure: Regenerate.
895 * config.in: Regenerate.
896 * fbsd-nat.c: Include "fbsd-tdep.h".
897 (fbsd_fetch_cmdline): New.
898 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
899 rather than calling error.
900 (fbsd_info_proc): New.
901 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
902 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
903 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
905 2018-01-09 John Baldwin <jhb@FreeBSD.org>
907 * fbsd-nat.c (struct free_deleter): Remove.
908 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
910 2018-01-09 John Baldwin <jhb@FreeBSD.org>
912 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
913 NULL for an empty pathname.
915 2018-01-09 John Baldwin <jhb@FreeBSD.org>
917 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
918 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
919 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
920 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
921 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
922 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
923 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
924 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
925 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
926 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
927 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
928 (fbsd_core_fetch_timeval, fbsd_print_sigset)
929 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
930 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
931 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
933 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
935 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
936 (gnu_xfer_auxv): New function.
937 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
940 2018-01-08 Yao Qi <yao.qi@linaro.org>
941 Simon Marchi <simon.marchi@ericsson.com>
943 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
945 (COMMON_OBS): Remove selftest.o.
946 * configure.ac: Append selftest-arch.c and common/selftest.c to
947 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
948 * configure: Re-generated.
949 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
951 (maintenance_info_selftests): Likewise.
953 2018-01-08 Xavier Roirand <roirand@adacore.com>
955 * ada-valprint.c (val_print_packed_array_elements): Use
956 proper number of elements when printing an array indexed
957 by an enumeration type.
959 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
961 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
962 (dw2_get_file_names_reader): Adjust.
963 (lookup_dwo_signatured_type): Adjust.
964 (lookup_dwp_signatured_type): Adjust.
965 (lookup_signatured_type): Adjust.
966 (create_type_unit_group): Adjust.
967 (get_type_unit_group): Adjust.
968 (process_psymtab_comp_unit_reader): Adjust.
969 (build_type_psymtabs_reader): Adjust.
970 (scan_partial_symbols): Adjust.
971 (add_partial_symbol): Adjust.
972 (add_partial_subprogram): Adjust.
973 (peek_die_abbrev): Adjust.
974 (fixup_go_packaging): Adjust.
975 (process_imported_unit_die): Adjust.
976 (dwarf2_compute_name): Adjust.
977 (dwarf2_physname): Adjust.
978 (read_import_statement): Adjust.
979 (handle_DW_AT_stmt_list): Adjust.
980 (read_file_scope): Adjust.
981 (read_func_scope): Adjust.
982 (read_lexical_block_scope): Adjust.
983 (read_call_site_scope): Adjust.
984 (read_variable): Adjust.
985 (dwarf2_rnglists_process): Adjust.
986 (dwarf2_ranges_process): Adjust.
987 (dwarf2_ranges_read): Adjust.
988 (dwarf2_get_pc_bounds): Adjust.
989 (dwarf2_record_block_ranges): Adjust.
990 (dwarf2_add_field): Adjust.
991 (dwarf2_add_member_fn): Adjust.
992 (read_structure_type): Adjust.
993 (process_structure_scope): Adjust.
994 (read_enumeration_type): Adjust.
995 (read_array_type): Adjust.
996 (mark_common_block_symbol_computed): Adjust.
997 (read_common_block): Adjust.
998 (read_namespace_type): Adjust.
999 (read_namespace): Adjust.
1000 (read_module_type): Adjust.
1001 (read_tag_pointer_type): Adjust.
1002 (read_tag_ptr_to_member_type): Adjust.
1003 (read_tag_string_type): Adjust.
1004 (read_subroutine_type): Adjust.
1005 (read_typedef): Adjust.
1006 (read_base_type): Adjust.
1007 (attr_to_dynamic_prop): Adjust.
1008 (read_subrange_type): Adjust.
1009 (read_unspecified_type): Adjust.
1010 (dwarf2_read_abbrevs): Adjust.
1011 (load_partial_dies): Adjust.
1012 (read_partial_die): Adjust.
1013 (find_partial_die): Adjust.
1014 (guess_partial_die_structure_name): Adjust.
1015 (fixup_partial_die): Adjust.
1016 (read_attribute_value): Adjust.
1017 (read_addr_index): Adjust.
1018 (read_addr_index_from_leb128): Adjust.
1019 (read_str_index): Adjust.
1020 (dwarf2_string_attr): Adjust.
1021 (get_debug_line_section): Adjust.
1022 (dwarf_decode_line_header): Adjust.
1023 (lnp_state_machine::check_line_address): Adjust.
1024 (dwarf_decode_lines_1): Adjust.
1025 (dwarf_decode_lines): Adjust.
1026 (dwarf2_start_symtab): Adjust.
1027 (var_decode_location): Adjust.
1028 (new_symbol_full): Adjust.
1029 (dwarf2_const_value_data): Adjust.
1030 (dwarf2_const_value_attr): Adjust.
1031 (dwarf2_const_value): Adjust.
1033 (die_containing_type): Adjust.
1034 (build_error_marker_type): Adjust.
1035 (lookup_die_type): Adjust.
1036 (guess_full_die_structure_name): Adjust.
1037 (anonymous_struct_prefix): Adjust.
1038 (determine_prefix): Adjust.
1039 (dwarf2_name): Adjust.
1040 (follow_die_ref_or_sig): Adjust.
1041 (follow_die_offset): Adjust.
1042 (follow_die_ref): Adjust.
1043 (follow_die_sig_1): Adjust.
1044 (follow_die_sig): Adjust.
1045 (get_signatured_type): Adjust.
1046 (get_DW_AT_signature_type): Adjust.
1047 (decode_locdesc): Adjust.
1048 (dwarf_decode_macros): Adjust.
1049 (cu_debug_loc_section): Adjust.
1050 (fill_in_loclist_baton): Adjust.
1051 (dwarf2_symbol_mark_computed): Adjust.
1052 (init_one_comp_unit): Don't assign
1053 dwarf2_cu::dwarf2_per_objfile.
1054 (set_die_type): Adjust.
1056 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1058 * dwarf2read.c (struct mapped_debug_names): Add constructor.
1059 <dwarf2_per_objfile>: New field.
1060 (dwarf2_per_objfile): Remove global.
1061 (get_dwarf2_per_objfile): New function.
1062 (set_dwarf2_per_objfile): New function.
1063 (dwarf2_build_psymtabs_hard): Change objfile parameter to
1065 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1066 (read_abbrev_offset): Likewise.
1067 (read_indirect_string): Likewise.
1068 (read_indirect_line_string): Likewise.
1069 (read_indirect_string_at_offset): Likewise.
1070 (read_indirect_string_from_dwz): Likewise.
1071 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1073 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1074 (create_all_comp_units): Change objfile parameter to
1076 (create_all_type_units): Likewise.
1077 (process_queue): Add dwarf2_per_objfile parameter.
1078 (read_and_check_comp_unit_head): Likewise.
1079 (lookup_dwo_unit_in_dwp): Likewise.
1080 (get_dwp_file): Likewise.
1081 (process_cu_includes): Likewise.
1082 (struct free_dwo_file_cleanup_data): New struct.
1083 (dwarf2_has_info): Use get_dwarf2_per_objfile and
1084 set_dwarf2_per_objfile.
1085 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1086 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1087 context, adjust calls.
1088 (dw2_instantiate_symtab): Likewise.
1089 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1090 (dw2_get_cu): Likewise.
1091 (create_cu_from_index_list): Change objfile parameter to
1093 (create_cus_from_index_list): Get dwarf2_per_objfile from
1094 context, adjust calls.
1095 (create_cus_from_index): Likewise.
1096 (create_signatured_type_table_from_index): Change objfile
1097 parameter to dwarf2_per_objfile.
1098 (create_signatured_type_table_from_debug_names): Change objfile
1099 parameter to dwarf2_per_objfile.
1100 (create_addrmap_from_index): Likewise.
1101 (create_addrmap_from_aranges): Likewise.
1102 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1103 (dw2_setup): Remove.
1104 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1106 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1107 get_dwarf2_per_objfile.
1108 (dw2_forget_cached_source_info): Likewise.
1109 (dw2_map_symtabs_matching_filename): Likewise.
1110 (struct dw2_symtab_iterator) <index>: Remove.
1111 <dwarf2_per_objfile>: New field.
1112 (dw2_symtab_iter_init): Replace index parameter with
1114 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1115 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1116 (dw2_print_stats): Likewise.
1117 (dw2_dump): Likewise.
1118 (dw2_expand_symtabs_for_function): Likewise.
1119 (dw2_expand_all_symtabs): Likewise.
1120 (dw2_expand_symtabs_with_fullname): Likewise.
1121 (dw2_expand_marked_cus): Replace index and objfile parameters
1122 with dwarf2_per_objfile.
1123 (dw_expand_symtabs_matching_file_matcher): Add
1124 dwarf2_per_objfile parameter and adjust calls.
1125 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1127 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1128 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
1130 (create_cus_from_debug_names_list): Replace objfile parameter
1131 with dwarf2_per_objfile and adjust calls.
1132 (create_cus_from_debug_names): Likewise.
1133 (dwarf2_read_debug_names): Likewise.
1134 (mapped_debug_names::namei_to_name): Adjust call.
1135 (dw2_debug_names_iterator::next): Likewise.
1136 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1137 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
1138 (dw2_debug_names_dump): Likewise.
1139 (dw2_debug_names_expand_symtabs_for_function): Likewise.
1140 (dw2_debug_names_expand_symtabs_matching): Likewise.
1141 (dwarf2_initialize_objfile): Likewise.
1142 (dwarf2_build_psymtabs): Likewise.
1143 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
1145 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
1146 (read_and_check_comp_unit_head): Likewise.
1147 (read_abbrev_offset): Likewise.
1148 (create_debug_type_hash_table): Likewise.
1149 (create_debug_types_hash_table): Likewise.
1150 (create_all_type_units): Replace objfile parameter with
1152 (add_type_unit): Add dwarf2_per_objfile parameter.
1153 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
1154 with dwarf2_per_objfile.
1155 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
1156 (lookup_dwp_signatured_type): Likewise.
1157 (lookup_signatured_type): Likewise.
1158 (read_cutu_die_from_dwo): Likewise.
1159 (init_tu_and_read_dwo_dies): Likewise.
1160 (init_cutu_and_read_dies): Likewise.
1161 (init_cutu_and_read_dies_no_follow): Likewise.
1162 (allocate_type_unit_groups_table): Add objfile parameter.
1163 (create_type_unit_group): Use dwarf2_per_objfile from cu.
1164 (get_type_unit_group): Likewise.
1165 (process_psymtab_comp_unit): Update call.
1166 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
1167 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
1168 (print_tu_stats): Likewise.
1169 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
1171 (build_type_psymtabs): Change objfile parameter to
1173 (process_skeletonless_type_unit): Use dwarf2_per_objfile
1174 passed in void* parameter.
1175 (process_skeletonless_type_units): Change objfile parameter to
1177 (set_partial_user): Likewise.
1178 (dwarf2_build_psymtabs_hard): Likewise.
1179 (read_comp_units_from_section): Likewise.
1180 (create_all_comp_units): Likewise.
1181 (scan_partial_symbols): Update calls.
1182 (add_partial_symbol): Likewise.
1183 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
1184 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
1185 (process_queue): Add dwarf2_per_objfile parameter.
1186 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
1187 (compute_compunit_symtab_includes): Likewise.
1188 (process_cu_includes): Add dwarf2_per_objfile parameter.
1189 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
1190 (process_full_type_unit): Likewise.
1191 (process_imported_unit_die): Update call.
1192 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
1193 (read_file_scope): Likewise.
1194 (allocate_dwo_file_hash_table): Add objfile parameter.
1195 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
1196 (create_cus_hash_table): Likewise.
1197 (create_dwp_hash_table): Likewise.
1198 (create_dwo_unit_in_dwp_v1): Likewise.
1199 (create_dwp_v2_section): Likewise.
1200 (create_dwo_unit_in_dwp_v2): Likewise.
1201 (lookup_dwo_unit_in_dwp): Likewise.
1202 (try_open_dwop_file): Likewise.
1203 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
1204 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
1205 cleanup to include a reference to dwarf2_per_objfile.
1206 (open_dwp_file): Add dwarf2_per_objfile parameter.
1207 (open_and_init_dwp_file): Likewise.
1208 (get_dwp_file): Likewise.
1209 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
1210 (queue_and_load_all_dwo_tus): Update call.
1211 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
1213 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
1214 (dwarf2_ranges_process): Likewise.
1215 (dwarf2_get_pc_bounds): Likewise.
1216 (mark_common_block_symbol_computed): Likewise.
1217 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1218 (dwarf2_read_abbrevs): Update call.
1219 (read_partial_die): Use dwarf2_per_objfile from cu.
1220 (find_partial_die): Likewise.
1221 (fixup_partial_die): Likewise.
1222 (read_attribute_value): Likewise.
1223 (read_indirect_string_at_offset_from): Add objfile parameter.
1224 (read_indirect_string_at_offset): Add dwarf2_per_objfile
1226 (read_indirect_string_from_dwz): Add objfile parameter.
1227 (read_indirect_string): Add objfile parameter.
1228 (read_addr_index_1): Add dwarf2_per_objfile parameter.
1229 (read_addr_index): Use dwarf2_per_objfile from cu.
1230 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
1232 (read_str_index): Use dwarf2_per_objfile from cu.
1233 (get_debug_line_section): Likewise.
1234 (read_formatted_entries): Add dwarf2_per_objfile parameter.
1235 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
1236 (new_symbol_full): Use dwarf2_per_objfile from cu.
1237 (build_error_marker_type): Likewise.
1238 (lookup_die_type): Likewise.
1239 (determine_prefix): Likewise.
1240 (follow_die_offset): Likewise.
1241 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
1242 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
1243 (dwarf2_fetch_die_type_sect_off): Likewise.
1244 (dwarf2_get_die_type): Likewise.
1245 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
1246 (get_signatured_type): Likewise.
1247 (get_DW_AT_signature_type): Likewise.
1248 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
1249 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
1250 (cu_debug_loc_section): Likewise.
1251 (fill_in_loclist_baton): Likewise.
1252 (dwarf2_symbol_mark_computed): Likewise.
1253 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1255 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
1257 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1258 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
1259 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
1260 (set_die_type): Use dwarf2_free_objfile from cu.
1261 (get_die_type_at_offset): Likewise.
1262 (dwarf2_per_objfile_free): Don't assign global variable.
1263 (debug_names) <constructor>: Add dwarf2_per_objfile
1264 parameter, update m_debugstrlookup construction.
1265 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
1267 <m_dwarf2_per_objfile>: New field.
1268 <lookup>: Use m_dwarf2_per_objfile.
1269 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
1270 (psyms_seen_size): Likewise.
1271 (write_gdbindex): Replace objfile parameter with
1273 (write_debug_names): Likewise.
1274 (write_psymtabs_to_index): Likewise.
1275 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
1278 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1280 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
1281 <dwarf2_per_objfile>: New field.
1282 (struct dwarf2_per_cu_data) <objfile>: Remove.
1283 <dwarf2_per_objfile>: New field.
1284 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
1286 (create_signatured_type_table_from_index): Likewise.
1287 (create_debug_type_hash_table): Likewise.
1288 (fill_in_sig_entry_from_dwo_entry): Likewise.
1289 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
1290 (create_type_unit_group): Assign dwarf2_per_objfile instead of
1292 (create_partial_symtab): Access objfile through
1294 (process_psymtab_comp_unit_reader): Likewise.
1295 (read_comp_units_from_section): Likewise.
1296 (scan_partial_symbols): Likewise.
1297 (add_partial_symbol): Likewise.
1298 (add_partial_subprogram): Likewise.
1299 (peek_die_abbrev): Likewise.
1300 (fixup_go_packaging): Likewise.
1301 (process_full_comp_unit): Likewise.
1302 (process_full_type_unit): Likewise.
1303 (process_imported_unit_die): Likewise.
1304 (dwarf2_compute_name): Likewise.
1305 (dwarf2_physname): Likewise.
1306 (read_import_statement): Likewise.
1307 (create_cus_hash_table): Assign dwarf2_physname instead of
1309 (read_func_scope): Access objfile through dwarf2_per_objfile.
1310 (read_lexical_block_scope): Likewise.
1311 (read_call_site_scope): Likewise.
1312 (read_variable): Likewise.
1313 (dwarf2_rnglists_process): Likewise.
1314 (dwarf2_ranges_process): Likewise.
1315 (dwarf2_ranges_read): Likewise.
1316 (dwarf2_record_block_ranges): Likewise.
1317 (dwarf2_add_field): Likewise.
1318 (dwarf2_add_member_fn): Likewise.
1319 (read_structure_type): Likewise.
1320 (process_structure_scope): Likewise.
1321 (read_enumeration_type): Likewise.
1322 (read_array_type): Likewise.
1323 (read_common_block): Likewise.
1324 (read_namespace_type): Likewise.
1325 (read_namespace): Likewise.
1326 (read_module_type): Likewise.
1327 (read_tag_pointer_type): Likewise.
1328 (read_tag_ptr_to_member_type): Likewise.
1329 (read_tag_string_type): Likewise.
1330 (read_subroutine_type): Likewise.
1331 (read_typedef): Likewise.
1332 (read_base_type): Likewise.
1333 (attr_to_dynamic_prop): Likewise.
1334 (read_subrange_type): Likewise.
1335 (read_unspecified_type): Likewise.
1336 (load_partial_dies): Likewise.
1337 (read_partial_die): Likewise.
1338 (find_partial_die): Likewise.
1339 (guess_partial_die_structure_name): Likewise.
1340 (fixup_partial_die): Likewise.
1341 (read_attribute_value): Likewise.
1342 (read_addr_index_from_leb128): Likewise.
1343 (dwarf2_read_addr_index): Likewise.
1344 (dwarf2_string_attr): Likewise.
1345 (lnp_state_machine::check_line_address): Likewise.
1346 (dwarf_decode_lines_1): Likewise.
1347 (dwarf_decode_lines): Likewise.
1348 (dwarf2_start_symtab): Likewise.
1349 (var_decode_location): Likewise.
1350 (new_symbol_full): Likewise.
1351 (dwarf2_const_value_data): Likewise.
1352 (dwarf2_const_value_attr): Likewise.
1353 (dwarf2_const_value): Likewise.
1354 (die_type): Likewise.
1355 (die_containing_type): Likewise.
1356 (lookup_die_type): Likewise.
1357 (guess_full_die_structure_name): Likewise.
1358 (anonymous_struct_prefix): Likewise.
1359 (dwarf2_name): Likewise.
1360 (follow_die_ref_or_sig): Likewise.
1361 (follow_die_offset): Likewise.
1362 (follow_die_ref): Likewise.
1363 (dwarf2_fetch_die_loc_sect_off): Likewise.
1364 (dwarf2_fetch_constant_bytes): Likewise.
1365 (dwarf2_fetch_die_type_sect_off): Likewise.
1366 (dwarf2_get_die_type): Likewise.
1367 (follow_die_sig): Likewise.
1368 (decode_locdesc): Likewise.
1369 (dwarf2_per_cu_objfile): Likewise.
1370 (dwarf2_per_cu_text_offset): Likewise.
1371 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
1373 (set_die_type): Access objfile through
1376 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1378 * valprint.c (converted_character_d): Remove typedef.
1379 (DEF_VEC_O (converted_character_d)): Remove.
1380 (count_next_character): Use std::vector.
1381 (print_converted_chars_to_obstack): Likewise.
1382 (generic_printstr): Likewise.
1384 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1386 * xml-support.h (struct gdb_xml_value): Add constructor.
1387 <value>: Change type to unique_xmalloc_ptr.
1388 (gdb_xml_value_s): Remove typedef.
1389 (DEF_VEC_O (gdb_xml_value_s)): Remove.
1390 (gdb_xml_element_start_handler): Change parameter type to
1392 (xml_find_attribute): Likewise.
1393 * xml-support.c (xml_find_attribute): Change parameter type to
1394 std::vector and adjust.
1395 (gdb_xml_values_cleanup): Remove.
1396 (gdb_xml_parser::start_element): Adjust to std::vector.
1397 (xinclude_start_include): Change paraeter type to std::vector
1399 * btrace.c (check_xml_btrace_version): Likewise.
1400 (parse_xml_btrace_block): Likewise.
1401 (parse_xml_btrace_pt_config_cpu): Likewise.
1402 (parse_xml_btrace_pt): Likewise.
1403 (parse_xml_btrace_conf_bts): Likewise.
1404 (parse_xml_btrace_conf_pt): Likewise.
1405 * memory-map.c (memory_map_start_memory): Likewise.
1406 (memory_map_start_property): Likewise.
1407 * osdata.c (osdata_start_osdata): Likewise.
1408 (osdata_start_item): Likewise.
1409 (osdata_start_column): Likewise.
1410 * remote.c (start_thread): Likewise.
1411 * solib-aix.c (library_list_start_library): Likewise.
1412 (library_list_start_list): Likewise.
1413 * solib-svr4.c (library_list_start_library): Likewise.
1414 (svr4_library_list_start_list): Likewise.
1415 * solib-target.c (library_list_start_segment): Likewise.
1416 (library_list_start_section): Likewise.
1417 (library_list_start_library): Likewise.
1418 (library_list_start_list): Likewise.
1419 * tracepoint.c (traceframe_info_start_memory): Likewise.
1420 (traceframe_info_start_tvar): Likewise.
1421 * xml-syscall.c (syscall_start_syscall): Likewise.
1422 * xml-tdesc.c (tdesc_start_target): Likewise.
1423 (tdesc_start_feature): Likewise.
1424 (tdesc_start_reg): Likewise.
1425 (tdesc_start_union): Likewise.
1426 (tdesc_start_struct): Likewise.
1427 (tdesc_start_flags): Likewise.
1428 (tdesc_start_enum): Likewise.
1429 (tdesc_start_field): Likewise.
1430 (tdesc_start_enum_value): Likewise.
1431 (tdesc_start_vector): Likewise.
1433 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1435 * extension.h (struct xmethod_worker) <clone>: Remove.
1436 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1438 (python_xmethod_worker::clone): Remove.
1439 * valops.c (find_overload_match): Use std::move instead of
1442 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1444 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1445 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1446 <free_xmethod_worker_data>: Remove.
1447 <get_matching_xmethod_workers>: Chance VEC to std::vector.
1448 <get_xmethod_arg_types>: Remove.
1449 <get_xmethod_result_type>: Remove.
1450 <invoke_xmethod>: Remove.
1451 * extension.c (new_xmethod_worker): Remove.
1452 (clone_xmethod_worker): Remove.
1453 (get_matching_xmethod_workers): Return void, pass std::vector by
1455 (get_xmethod_arg_types): Rename to...
1456 (xmethod_worker::get_arg_types): ... this, and adjust.
1457 (get_xmethod_result_type): Rename to...
1458 (xmethod_worker::get_result_type): ... this, and adjust.
1459 (invoke_xmethod): Remove.
1460 (free_xmethod_worker): Remove.
1461 (free_xmethod_worker_vec): Remove.
1462 * extension.h (enum ext_lang_rc): Move here from
1464 (struct xmethod_worker): Add constructor and destructor.
1467 <invoke, clone, do_get_result_type, do_get_arg_types>: New
1468 virtual pure methods.
1469 <get_arg_types, get_result_type>: New methods.
1470 (xmethod_worker_ptr): Remove typedef.
1471 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1472 (xmethod_worker_vec): Remove typedef.
1473 (xmethod_worker_up): New typedef.
1474 (invoke_xmethod): Remove.
1475 (clone_xmethod_worker): Remove.
1476 (free_xmethod_worker): Remove.
1477 (free_xmethod_worker_vec): Remove.
1478 (get_xmethod_arg_types): Remove.
1479 (get_xmethod_result_type): Remove.
1480 * valops.c (find_method_list): Use std::vector, don't use
1481 intermediate vector.
1482 (value_find_oload_method_list): Use std::vector.
1483 (find_overload_match): Use std::vector.
1484 (find_oload_champ): Use std::vector.
1485 * value.c (value_free): Use operator delete.
1486 (value_of_xmethod): Rename to...
1487 (value_from_xmethod): ... this. Don't assign
1488 xmethod_worker::value, take rvalue-reference.
1489 (result_type_of_xmethod): Adjust.
1490 (call_xmethod): Adjust.
1491 * value.h: Include extension.h.
1492 (struct xmethod_worker): Don't forward-declare.
1493 (value_of_xmethod): Rename to...
1494 (value_from_xmethod): ... this, take rvalue-reference.
1495 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1496 (struct python_xmethod_worker): ... this, add constructor and
1498 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1499 (gdbpy_free_xmethod_worker_data): Rename to...
1500 (python_xmethod_worker::~python_xmethod_worker): ... this and
1502 (gdbpy_clone_xmethod_worker_data): Rename to...
1503 (python_xmethod_worker::clone): ... this and adjust.
1504 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1506 (gdbpy_get_xmethod_arg_types): Rename to...
1507 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1508 (gdbpy_get_xmethod_result_type): Rename to...
1509 (python_xmethod_worker::do_get_result_type): ... this and
1511 (gdbpy_invoke_xmethod): Rename to...
1512 (python_xmethod_worker::invoke): ... this and adjust.
1513 (new_python_xmethod_worker): Rename to...
1514 (python_xmethod_worker::python_xmethod_worker): ... this and
1516 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
1518 (gdbpy_free_xmethod_worker_data): Remove.
1519 (gdbpy_get_matching_xmethod_workers): Use std::vector.
1520 (gdbpy_get_xmethod_arg_types): Remove.
1521 (gdbpy_get_xmethod_result_type): Remove.
1522 (gdbpy_invoke_xmethod): Remove.
1523 * python/python.c (python_extension_ops): Remove obsolete
1526 2018-01-05 Pedro Alves <palves@redhat.com>
1529 * common/signals-state-save-restore.c
1530 (save_original_signals_state): New parameter 'quiet'. Warn if we
1531 find a custom handler preinstalled, instead of internal erroring.
1532 But only warn if !quiet.
1533 * common/signals-state-save-restore.h
1534 (save_original_signals_state): New parameter 'quiet'.
1535 * main.c (captured_main_1): Move save_original_signals_state call
1536 after option handling, and pass QUIET.
1538 2018-01-05 Pedro Alves <palves@redhat.com>
1540 * spu-tdep.c (spu_catch_start): Pass
1541 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
1543 2018-01-05 Pedro Alves <palves@redhat.com>
1546 * ada-lang.c (literal_symbol_name_matcher): New function.
1547 (ada_get_symbol_name_matcher): Use it for
1548 symbol_name_match_type::SEARCH_NAME.
1549 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
1550 it down instead of assuming symbol_name_match_type::FULL.
1551 * block.h (block_lookup_symbol): New parameter 'match_type'.
1552 * c-valprint.c (print_unpacked_pointer): Use
1553 lookup_symbol_search_name instead of lookup_symbol.
1554 * compile/compile-object-load.c (get_out_value_type): Pass down
1555 symbol_name_match_type::SEARCH_NAME.
1556 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
1557 symbol_name_match_type::FULL.
1558 * cp-support.c (cp_get_symbol_name_matcher): Handle
1559 symbol_name_match_type::SEARCH_NAME.
1560 * infrun.c (insert_exception_resume_breakpoint): Use
1561 lookup_symbol_search_name.
1562 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
1563 * psymtab.c (maintenance_check_psymtabs): Use
1564 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
1565 * stack.c (print_frame_args): Use lookup_symbol_search_name and
1567 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
1568 if symbol_name_match_type::SEARCH_NAME.
1569 (lookup_symbol_in_language): Pass down
1570 symbol_name_match_type::FULL.
1571 (lookup_symbol_search_name): New.
1572 (lookup_language_this): Pass down
1573 symbol_name_match_type::SEARCH_NAME.
1574 (lookup_symbol_aux, lookup_local_symbol): New parameter
1575 'match_type'. Pass it down.
1576 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
1577 (lookup_symbol_search_name): New declaration.
1578 (lookup_symbol_in_block): New 'match_type' parameter.
1580 2018-01-05 Pedro Alves <palves@redhat.com>
1583 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
1585 (ada_lookup_symbol): Reimplement in terms of
1586 ada_lookup_symbol_list, bits factored out from
1587 ada_lookup_encoded_symbol.
1589 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1591 * ada-exp.y (write_object_renaming): When subscripting an array
1592 using a symbol as the index, pass the block in call to
1593 ada_lookup_encoded_symbol when looking that symbol up.
1595 2018-01-05 Jerome Guitton <guitton@adacore.com>
1597 * ada-lang.c (ada_array_length): Use ada_index_type instead of
1600 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1602 * ada-lang.c (ada_to_fixed_value_create): Add handling of
1603 the case where VALUE_LVAL (val0) is not lval_memory.
1605 2018-01-05 Xavier Roirand <roirand@adacore.com>
1607 * ada-valprint.c (print_optional_low_bound): Handle
1608 character-indexed array printing like boolean-indexed array
1611 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1613 * NEWS: Create a new section for the next release branch.
1614 Rename the section of the current branch, now that it has
1617 2018-01-05 Joel Brobecker <brobecker@adacore.com>
1619 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
1620 * version.in: Bump version to 8.1.50.DATE-git.
1622 2018-01-03 Xavier Roirand <roirand@adacore.com>
1624 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
1626 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
1628 (default_exception_support_info) <catch_handlers_sym>: Add field.
1629 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
1630 (ada_exception_name_addr_1): Add "catch handlers" handling.
1631 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
1633 (create_excep_cond_exprs) <ex>: Add parameter.
1634 (re_set_exception): Update create_excep_cond_exprs call.
1635 (print_it_exception, print_one_exception, print_mention_exception)
1636 (print_recreate_exception): Add "catch handler" handling.
1637 (allocate_location_catch_handlers, re_set_catch_handlers)
1638 (check_status_catch_handlers, print_it_catch_handlers)
1639 (print_one_catch_handlers, print_mention_catch_handlers)
1640 (print_recreate_catch_handlers): New function.
1641 (catch_handlers_breakpoint_ops): New variable.
1642 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
1643 Add parameter. Add "catch handler" handling.
1644 (ada_exception_sym_name, ada_exception_breakpoint_ops):
1645 Add "catch handler" handling.
1646 (ada_exception_catchpoint_cond_string): Add "catch handler"
1648 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
1650 (catch_ada_handlers_command): New function.
1651 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
1652 operations structure.
1653 (_initialize_ada_language): Add "catch handlers" command entry.
1654 * NEWS: Document "catch handlers" feature.
1656 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1658 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
1659 account when creating the array type of the slice.
1660 (ada_value_slice): Likewise.
1662 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1664 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
1666 (create_array_type_with_stride): Add byte_stride_prop parameter.
1667 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
1668 New parameter. Update all callers in this file.
1669 (array_type_has_dynamic_stride): New function.
1670 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
1671 of arrays with dynamic byte strides.
1672 * dwarf2read.c (read_array_type): Add support for dynamic
1673 DW_AT_byte_stride attributes.
1675 2018-01-02 Joel Brobecker <brobecker@adacore.com>
1677 * dwarf2read.c (read_unspecified_type): Treat
1678 DW_TAG_enumeration_type DIEs from Ada units as stubs.
1680 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1682 Update copyright year range in all GDB files.
1684 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1686 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
1687 and gdb/testsuite/gdb.base/step-line.c.
1689 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1691 * copyright.py (main): Dump the contents of
1692 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
1693 even if BY_HAND is empty.
1695 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1697 * top.c (print_gdb_version): Update Copyright year in version
1700 2018-01-01 Joel Brobecker <brobecker@adacore.com>
1702 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
1704 For older changes see ChangeLog-2017.
1710 version-control: never