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