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