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