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