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