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