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