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