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