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