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