1 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3 * charset.c (struct charset_vector): New.
4 (charsets): Change type to charset_vector.
5 (find_charset_names): Adjust.
7 (_initialize_charset): Adjust.
9 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11 * progspace.h (struct program_space) <deleted_solibs>: Change
12 type to std::vector<std::string>.
13 * progspace.c (clear_program_space_solib_cache): Adjust.
14 * breakpoint.c (print_solib_event): Adjust.
15 (check_status_catch_solib): Adjust.
16 * solib.c (update_solib_list): Adjust.
17 * ui-out.h (class ui_out) <field_string>: New overload.
18 * ui-out.c (ui_out::field_string): New overload.
20 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
22 * progspace.h (struct program_space): Add constructor and
23 destructor, initialize fields.
24 (add_program_space): Remove.
25 * progspace.c (add_program_space): Rename to...
26 (program_space::program_space): ... this.
27 (release_program_space): Rename to...
28 (program_space::~program_space): ... this.
29 (delete_program_space): Use delete to delete program_space.
30 (initialize_progspace): Use new to allocate program_space.
31 * inferior.c (add_inferior_with_spaces): Likewise.
32 (clone_inferior_command): Likewise.
33 * infrun.c (follow_fork_inferior): Likewise.
34 (handle_vfork_child_exec_or_exit): Likewise.
36 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
38 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
39 (delim_string_to_char_ptr_vec): Return std::vector of
40 gdb::unique_xmalloc_ptr.
41 (dirnames_to_char_ptr_vec_append): Take std::vector of
42 gdb::unique_xmalloc_ptr.
43 (dirnames_to_char_ptr_vec): Return std::vector of
44 gdb::unique_xmalloc_ptr.
45 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
46 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
47 (delim_string_to_char_ptr_vec): Return an std::vector of
48 gdb::unique_xmalloc_ptr, adjust the code.
49 (dirnames_to_char_ptr_vec_append): Take an std::vector of
50 gdb::unique_xmalloc_ptr, adjust the code.
51 (dirnames_to_char_ptr_vec): Return an std::vector of
52 gdb::unique_xmalloc_ptr, adjust the code.
53 * auto-load.c (auto_load_safe_path_vec): Change type to
54 std::vector of gdb::unique_xmalloc_ptr.
55 (auto_load_expand_dir_vars): Return an std::vector of
56 gdb::unique_xmalloc_ptr, adjust the code.
57 (auto_load_safe_path_vec_update): Adjust.
58 (filename_is_in_auto_load_safe_path_vec): Adjust.
59 (auto_load_objfile_script_1): Adjust.
60 * build-id.c (build_id_to_debug_bfd): Adjust.
61 * linux-thread-db.c (thread_db_load_search): Adjust.
62 * source.c (add_path): Adjust.
64 * symfile.c (find_separate_debug_file): Adjust.
65 * utils.c (do_free_char_ptr_vec): Remove.
66 (make_cleanup_free_char_ptr_vec): Remove.
68 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
71 * common/pathstuff.c: Conditionally include "<windows.h>".
73 2018-03-01 Georg Sauthoff <mail@georg.so>
76 * gcore.in: Quote variables and switch interpreter to bash.
78 2018-03-01 Tom Tromey <tom@tromey.com>
80 * dwarf2read.c (alloc_discriminant_info): Fix default_index
81 assertion. Add assertion for discriminant_index.
82 (quirk_rust_enum): Use correct base type name in univariant case.
84 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
86 * record.c (get_call_history_modifiers): Return a
88 (cmd_record_call_history): Adjust.
89 * record-btrace.c (record_btrace_call_history): Adjust.
90 (record_btrace_call_history_range): Adjust.
91 (record_btrace_call_history_from): Adjust.
92 * target-debug.h (target_debug_print_record_print_flags): New.
93 * target-delegates.c: Re-generate.
94 * target.c (target_call_history): Change flags type.
95 (target_call_history_from): Likewise.
96 (target_call_history_range): Likewise.
97 * target.h (struct target_ops) <target_call_history>: Likewise.
98 (target_call_history_from): Likewise.
99 (target_call_history_range): Likewise.
101 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
102 Simon Marchi <simon.marchi@polymtl.ca>
104 * common/common-utils.c: Include "sys/stat.h".
105 (is_regular_file): Move here from "source.c"; change return
107 * common/common-utils.h (is_regular_file): New prototype.
108 * common/pathstuff.c (contains_dir_separator): New function.
109 * common/pathstuff.h (contains_dir_separator): New prototype.
110 * source.c: Don't include "sys/stat.h".
111 (is_regular_file): Move to "common/common-utils.c".
113 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
115 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
116 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
117 * auto-load.c: Include "common/pathstuff.h".
118 * common/common-def.h (current_directory): Move here.
119 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
121 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
123 * common/pathstuff.c: New file.
124 * common/pathstuff.h: New file.
125 * compile/compile.c: Include "common/pathstuff.h".
126 * defs.h (current_directory): Move to "common/common-defs.h".
127 * dwarf2read.c: Include "common/pathstuff.h".
129 * guile/scm-safe-call.c: Likewise.
130 * linux-thread-db.c: Likewise.
132 * nto-tdep.c: Likewise.
133 * objfiles.c: Likewise.
134 * source.c: Likewise.
135 * symtab.c: Likewise.
136 * utils.c: Include "common/pathstuff.h".
137 (gdb_realpath): Move to "common/pathstuff.c".
138 (gdb_realpath_keepfile): Likewise.
139 (gdb_abspath): Likewise.
140 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
141 (gdb_realpath_keepfile): Likewise.
142 (gdb_abspath): Likewise.
144 2018-02-28 John Baldwin <jhb@FreeBSD.org>
146 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
147 wildcard process pid for super_resume for kernels with a
150 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
152 * compile/compile.c (get_args): Add additional comments
155 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
156 Tom Tromey <tom@tromey.com>
158 * target.h (memory_write_request_s): Remove typedef. Don't define
160 (target_write_memory_blocks): Change argument to std::vector.
161 (struct memory_write_request): Add constructor.
162 * target-memory.c (compare_block_starting_address): Return bool.
163 Change argument types.
164 (claim_memory): Change arguments to use std::vector.
165 (split_regular_and_flash_blocks, blocks_to_erase)
166 (compute_garbled_blocks): Likewise.
167 (cleanup_request_data, cleanup_write_requests_vector): Remove.
168 (target_write_memory_blocks): Change argument to std::vector.
169 * symfile.c (struct load_section_data): Add constructor and
170 destructor. Use std::vector for "requests".
171 (struct load_progress_data): Add initializers.
172 (load_section_callback): Update. Use "new".
173 (clear_memory_write_data): Remove.
174 (generic_load): Update.
176 2018-02-27 Alan Hayward <alan.hayward@arm.com>
178 * arch/aarch64.h: Use common/tdesc.h.
180 2018-02-26 Maciej W. Rozycki <macro@mips.com>
182 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
183 architecture with a 64-bit ABI.
185 2018-02-26 Maciej W. Rozycki <macro@mips.com>
187 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
188 ahead of target description loading.
190 2018-02-26 Tom Tromey <tom@tromey.com>
192 * stack.c (backtrace_command_1): Update.
193 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
195 * python/py-framefilter.c (py_print_frame)
196 (gdbpy_apply_frame_filter): Change type of "flags".
197 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
199 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
200 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
201 * extension.h (enum frame_filter_flag): Rename from
203 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
204 (apply_ext_lang_frame_filter): Change type of "flags".
205 * extension.c (apply_ext_lang_frame_filter): Change type of
207 * extension-priv.h (struct extension_language_ops)
208 <apply_frame_filter>: Change type of "flags".
210 2018-02-26 Tom Tromey <tom@tromey.com>
213 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
214 off-by-one in py_end computation.
215 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
217 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
220 2018-02-26 Tom Tromey <tom@tromey.com>
222 * dwarf2read.c (struct variant_field): New.
223 (struct nextfield) <variant>: New field.
224 (dwarf2_add_field): Handle DW_TAG_variant_part.
225 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
227 (read_structure_type): Handle DW_TAG_variant_part.
228 (handle_struct_member_die): New function, extracted from
229 process_structure_scope. Handle DW_TAG_variant.
230 (process_structure_scope): Handle discriminated unions. Call
231 handle_struct_member_die.
233 2018-02-26 Tom Tromey <tom@tromey.com>
235 * rust-lang.h (rust_last_path_segment): Declare.
236 * rust-lang.c (rust_last_path_segment): Now public. Change
238 (struct disr_info): Remove.
239 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
240 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
241 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
242 (rust_enum_p, rust_enum_variant): New function.
243 (rust_underscore_fields): Remove "offset" parameter.
244 (rust_print_enum): New function.
245 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
246 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
247 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
249 (rust_internal_print_type): New function, from rust_print_type.
251 (rust_print_type): Call rust_internal_print_type.
252 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
253 Update enum handling.
254 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
255 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
256 (rust_union_quirks): New functions.
257 (process_full_comp_unit, process_full_type_unit): Call
259 (process_structure_scope): Update rust_unions if necessary.
261 2018-02-26 Tom Tromey <tom@tromey.com>
263 * value.h (value_union_variant): Declare.
264 * valops.c (value_union_variant): New function.
265 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
266 (struct discriminant_info): New.
267 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
269 (struct main_type) <flag_discriminated_union>: New field.
271 2018-02-26 Tom Tromey <tom@tromey.com>
273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
274 unittests/unpack-selftests.c.
275 * unittests/unpack-selftests.c: New file.
276 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
278 2018-02-26 Yao Qi <yao.qi@linaro.org>
280 * dwarf2read.c (struct partial_die_info) <read>: New method.
281 (read_partial_die): Remove the declaration.
282 (load_partial_dies): Update.
283 (partial_die_info::partial_die_info):
284 (read_partial_die): Change it to partial_die_info::read.
286 2018-02-26 Yao Qi <yao.qi@linaro.org>
288 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
289 (fixup_partial_die): Remove declaration.
290 (scan_partial_symbols): Update.
291 (partial_die_parent_scope): Likewise.
292 (partial_die_full_name): Likewise.
293 (fixup_partial_die): Change it to partial_die_info::fixup.
295 2018-02-26 Yao Qi <yao.qi@linaro.org>
297 * dwarf2read.c (read_partial_die): Update the declaration.
298 (load_partial_dies): Caller update.
299 (read_partial_die): Remove one argument abbrev_len.
301 2018-02-26 Yao Qi <yao.qi@linaro.org>
303 * dwarf2read.c (struct partial_die_info): Add ctor, delete
305 (load_partial_dies): Use ctor and copy ctor.
306 (read_partial_die): Update.
307 (dwarf2_cu::find_partial_die): Use ctor.
309 2018-02-26 Yao Qi <yao.qi@linaro.org>
311 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
312 (find_partial_die_in_comp_unit): Change it to
313 dwarf2_cu::find_partial_die.
314 (find_partial_die): Update.
316 2018-02-26 Yao Qi <yao.qi@linaro.org>
318 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
321 2018-02-26 Yao Qi <yao.qi@linaro.org>
323 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
325 2018-02-26 Alan Hayward <alan.hayward@arm.com>
327 * arch/amd64.h: Use common/tdesc.h.
328 * arch/i386.c: Likewise.
329 * arch/i386.h: Likewise.
330 * arch/tic6x.c: Likewise.
331 * arch/tdesc.h: Move file from here...
332 * common/tdesc.h: ...to here.
333 * features/aarch64-core.c: Regenerate.
334 * features/aarch64-fpu.c: Regenerate.
335 * features/i386/32bit-avx.c: Regenerate.
336 * features/i386/32bit-avx512.c: Regenerate.
337 * features/i386/32bit-core.c: Regenerate.
338 * features/i386/32bit-linux.c: Regenerate.
339 * features/i386/32bit-mpx.c: Regenerate.
340 * features/i386/32bit-pkeys.c: Regenerate.
341 * features/i386/32bit-sse.c: Regenerate.
342 * features/i386/64bit-avx.c: Regenerate.
343 * features/i386/64bit-avx512.c: Regenerate.
344 * features/i386/64bit-core.c: Regenerate.
345 * features/i386/64bit-linux.c: Regenerate.
346 * features/i386/64bit-mpx.c: Regenerate.
347 * features/i386/64bit-pkeys.c: Regenerate.
348 * features/i386/64bit-segments.c: Regenerate.
349 * features/i386/64bit-sse.c: Regenerate.
350 * features/i386/x32-core.c: Regenerate.
351 * features/tic6x-c6xp.c: Regenerate.
352 * features/tic6x-core.c: Regenerate.
353 * features/tic6x-gp.c: Regenerate.
354 * target-descriptions.c: Use common/tdesc.h.
355 * target-descriptions.h: Likewise.
357 2018-02-24 Tom Tromey <tom@tromey.com>
359 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
360 (try_thread_db_load_from_dir, thread_db_load_search): Use
362 (info_auto_load_libthread_db_compare): Return bool. Change
364 (info_auto_load_libthread_db): Use std::vector, std::string.
367 2018-02-24 Tom Tromey <tom@tromey.com>
369 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
371 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
373 * gdbarch.c: Rebuild.
374 * gdbarch.h: Rebuild.
375 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
376 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
377 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
380 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
382 * gdbtypes.h (sect_offset): Change type to uint64_t.
383 (sect_offset_str): New function.
384 * dwarf2read.c (create_addrmap_from_aranges): Use
386 (error_check_comp_unit_head): Likewise.
387 (create_debug_type_hash_table): Likewise.
388 (read_cutu_die_from_dwo): Likewise.
389 (init_cutu_and_read_dies): Likewise.
390 (init_cutu_and_read_dies_no_follow): Likewise.
391 (process_psymtab_comp_unit_reader): Likewise.
392 (partial_die_parent_scope): Likewise.
393 (peek_die_abbrev): Likewise.
394 (process_queue): Likewise.
395 (dwarf2_physname): Likewise.
396 (read_namespace_alias): Likewise.
397 (read_import_statement): Likewise.
398 (create_dwo_cu_reader): Likewise.
399 (create_cus_hash_table): Likewise.
400 (lookup_dwo_cutu): Likewise.
401 (inherit_abstract_dies): Likewise.
402 (read_func_scope): Likewise.
403 (read_call_site_scope): Likewise.
404 (dwarf2_add_member_fn): Likewise.
405 (read_common_block): Likewise.
406 (read_module_type): Likewise.
407 (read_typedef): Likewise.
408 (read_subrange_type): Likewise.
409 (load_partial_dies): Likewise.
410 (read_partial_die): Likewise.
411 (find_partial_die): Likewise.
412 (read_str_index): Likewise.
413 (dwarf2_string_attr): Likewise.
414 (build_error_marker_type): Likewise.
415 (lookup_die_type): Likewise.
416 (dump_die_shallow): Likewise.
417 (follow_die_ref): Likewise.
418 (dwarf2_fetch_die_loc_sect_off): Likewise.
419 (dwarf2_fetch_constant_bytes): Likewise.
420 (follow_die_sig): Likewise.
421 (get_signatured_type): Likewise.
422 (get_DW_AT_signature_type): Likewise.
423 (dwarf2_find_containing_comp_unit): Likewise.
424 (set_die_type): Likewise.
426 2018-02-21 John Baldwin <jhb@FreeBSD.org>
428 * arch/aarch64.c: Include "common-defs.h".
429 * arch/amd64.c: Likewise.
430 * arch/i386.c: Likewise.
432 2018-02-21 Tom Tromey <tom@tromey.com>
434 * value.h: (extract_field_op): Update.
435 * eval.c (extract_field_op): Return a const char *.
436 * expression.h (parse_expression_for_completion): Update.
437 * completer.c (complete_expression): Update.
438 (add_struct_fields): Make fieldname const.
439 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
440 (mark_completion_tag, parse_exp_in_context_1): Update.
441 (parse_expression_for_completion): Change "name" to
444 2018-02-21 Tom Tromey <tom@tromey.com>
446 * infcall.c (call_function_by_hand_dummy): Use std::vector.
448 2018-02-21 Yao Qi <yao.qi@linaro.org>
450 * avr-tdep.c (avr_read_pc): Change parameter type to
452 * gdbarch.sh (read_pc): Likewise.
453 * gdbarch.c: Re-generated.
454 * gdbarch.h: Re-generated.
455 * hppa-tdep.c (hppa_read_pc): Change parameter type to
457 * ia64-tdep.c (ia64_read_pc): Likewise.
458 * mips-tdep.c (mips_read_pc): Likewise.
459 * spu-tdep.c (spu_read_pc): Likewise.
461 2018-02-21 Yao Qi <yao.qi@linaro.org>
463 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
464 * regcache-dump.c: New file.
465 * regcache.c: Move register_dump to regcache-dump.c.
466 (maintenance_print_registers): Likewise.
467 (maintenance_print_raw_registers): Likewise.
468 (maintenance_print_cooked_registers): Likewise.
469 (maintenance_print_register_groups): Likewise.
470 (maintenance_print_remote_registers): Likewise.
471 (_initialize_regcache): Likewise.
472 * regcache.h (register_dump): Moved from regcache.c.
474 2018-02-21 Yao Qi <yao.qi@linaro.org>
476 * regcache.c (regcache::regcache): Update.
477 (regcache::invalidate): Move it to detached_regcache::invalidate.
478 (get_thread_arch_aspace_regcache): Update.
479 (regcache::raw_update): Update.
480 (regcache::cooked_read): Remove some code.
481 (regcache::cooked_read_value): Likewise.
482 (regcache::raw_write): Remove assert on m_readonly_p.
483 (regcache::raw_supply_integer): Move it to
484 detached_regcache::raw_supply_integer.
485 (regcache::raw_supply_zeroed): Likewise.
486 * regcache.h (detached_regcache) <raw_supply_integer>: New
488 <raw_supply_zeroed, invalidate>: Likewise.
489 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
490 <invalidate>: Likewise.
491 <m_readonly_p>: Removed.
493 2018-02-21 Yao Qi <yao.qi@linaro.org>
495 * infcmd.c (get_return_value): Let stop_regs point to
496 get_current_regcache.
497 * regcache.c (regcache::regcache): Remove.
498 (register_dump_reg_buffer): New class.
499 (regcache_print): Adjust.
500 * regcache.h (regcache): Remove constructors.
502 2018-02-21 Yao Qi <yao.qi@linaro.org>
504 * regcache.c (class register_dump): New class.
505 (register_dump_regcache, register_dump_none): New class.
506 (register_dump_remote, register_dump_groups): New class.
507 (regcache_print): Update.
508 * regcache.h (regcache_dump_what): Move it to regcache.c.
509 (regcache) <dump>: Remove.
511 2018-02-21 Yao Qi <yao.qi@linaro.org>
513 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
515 (jit_unwind_reg_set_impl): Call raw_supply.
516 (jit_frame_sniffer): Use reg_buffer_rw.
517 * record-full.c (record_full_core_regbuf): Change its type.
518 (record_full_core_open_1): Use reg_buffer_rw.
519 (record_full_close): Likewise.
520 (record_full_core_fetch_registers): Use regcache->raw_supply.
521 (record_full_core_store_registers): Likewise.
522 * regcache.c (regcache::get_register_status): Move it to
524 (regcache_raw_set_cached_value): Remove.
525 (regcache::raw_set_cached_value): Remove.
526 (regcache::raw_write): Call raw_supply.
527 (regcache::raw_supply): Move it to reg_buffer_rw.
528 * regcache.h (regcache_raw_set_cached_value): Remove.
529 (reg_buffer_rw): New class.
531 2018-02-21 Yao Qi <yao.qi@linaro.org>
533 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
534 readonly_detached_regcache.
535 (dummy_frame_prev_register): Use regcache->cooked_read.
536 * frame.c (frame_save_as_regcache): Change return type.
538 * frame.h (frame_save_as_regcache): Update declaration.
539 * inferior.h (get_infcall_suspend_state_regcache): Update
541 * infrun.c (infcall_suspend_state) <registers>: use
542 readonly_detached_regcache.
543 (save_infcall_suspend_state): Don't use regcache_dup.
544 (get_infcall_suspend_state_regcache): Change return type.
545 * linux-fork.c (struct fork_info) <savedregs>: Change to
546 readonly_detached_regcache.
548 (fork_save_infrun_state): Don't use regcache_dup.
549 (info_checkpoints_command): Adjust.
550 * mi/mi-main.c (register_changed_p): Update declaration.
551 (mi_cmd_data_list_changed_registers): Use
552 readonly_detached_regcache.
553 (register_changed_p): Change parameter type to
554 readonly_detached_regcache.
555 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
556 readonly_detached_regcache.
557 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
558 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
560 (regcache::save): Move it to reg_buffer.
561 (regcache::restore): Change parameter type.
562 (regcache_dup): Remove.
563 * regcache.h (reg_buffer) <save>: New method.
564 (readonly_detached_regcache): New class.
565 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
566 readonly_detached_regcache.
567 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
569 2018-02-21 Yao Qi <yao.qi@linaro.org>
571 * frame.c (frame_save_as_regcache): Use regcache method save.
572 (frame_pop): Use regcache method restore.
573 * infrun.c (restore_infcall_suspend_state): Likewise.
574 * linux-fork.c (fork_load_infrun_state): Likewise.
575 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
577 * regcache.c (regcache_save): Remove.
578 (regcache::restore): More asserts.
579 (regcache_cpy): Remove.
580 * regcache.h (regcache_save): Remove the declaration.
581 (regcache::restore): Move from private to public.
582 Remove the friend declaration of regcache_cpy.
583 (regcache_cpy): Remove declaration.
585 2018-02-21 Yao Qi <yao.qi@linaro.org>
587 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
588 parameter type to 'readable_regcache *'.
589 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
590 * arm-tdep.c (arm_neon_quad_read): Likewise.
591 (arm_pseudo_read): Likewise.
592 * avr-tdep.c (avr_pseudo_register_read): Likewise.
593 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
594 * frv-tdep.c (frv_pseudo_register_read): Likewise.
595 * gdbarch.c: Re-generated.
596 * gdbarch.h: Re-generated.
597 * gdbarch.sh (pseudo_register_read): Change parameter type to
598 'readable_regcache *'.
599 (pseudo_register_read_value): Likewise.
600 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
601 (h8300_pseudo_register_read): Likewise.
602 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
603 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
604 (i386_pseudo_register_read_into_value): Likewise.
605 (i386_pseudo_register_read_value): Likewise.
606 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
608 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
609 * m32c-tdep.c (m32c_raw_read): Likewise.
610 (m32c_read_flg): Likewise.
611 (m32c_banked_register): Likewise.
612 (m32c_banked_read): Likewise.
613 (m32c_sb_read): Likewise.
614 (m32c_part_read): Likewise.
615 (m32c_cat_read): Likewise.
616 (m32c_r3r2r1r0_read): Likewise.
617 (m32c_pseudo_register_read): Likewise.
618 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
619 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
620 (mep_pseudo_cr64_read): Likewise.
621 (mep_pseudo_register_read): Likewise.
622 * mips-tdep.c (mips_pseudo_register_read): Likewise.
623 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
624 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
625 * regcache.c (regcache::raw_read): Move it to readable_regcache.
626 (regcache::cooked_read): Likewise.
627 (regcache::cooked_read_value): Likewise.
628 (regcache_cooked_read_signed):
629 (regcache::cooked_read): Likewise.
630 * regcache.h (readable_regcache): New class.
631 (regcache): Inherit readable_regcache. Move some methods to
633 * rl78-tdep.c (rl78_pseudo_register_read): Change
634 parameter type to 'readable_regcache *'.
635 * rs6000-tdep.c (do_regcache_raw_read): Remove.
636 (e500_pseudo_register_read): Change parameter type to
637 'readable_regcache *'.
638 (dfp_pseudo_register_read): Likewise.
639 (vsx_pseudo_register_read): Likewise.
640 (efpr_pseudo_register_read): Likewise.
641 * s390-tdep.c (s390_pseudo_register_read): Likewise.
642 * sh-tdep.c (sh_pseudo_register_read): Likewise.
643 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
644 (sh64_pseudo_register_read): Likewise.
645 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
646 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
647 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
648 (spu_pseudo_register_read): Likewise.
649 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
650 (xtensa_pseudo_register_read): Likewise.
652 2018-02-21 Yao Qi <yao.qi@linaro.org>
654 * regcache.c (regcache::regcache): Call reg_buffer ctor.
655 (regcache::arch): Move it to reg_buffer::arch.
656 (regcache::register_buffer): Likewise.
657 (regcache::assert_regnum): Likewise.
658 (regcache::num_raw_registers): Likewise.
659 * regcache.h (reg_buffer): New class.
660 (regcache): Inherit reg_buffer.
662 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
664 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
665 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
667 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
669 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
671 2018-02-19 Alan Hayward <alan.hayward@arm.com>
673 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
674 (SFILES): Remove common/*.c files.
675 (COMMON_OBS): Remove some *.o files built from common/*.c files.
676 * common/common.host: Add common reference.
677 * configure.ac: Likewise.
678 * configure: Regenerate.
680 2018-02-16 Yao Qi <yao.qi@linaro.org>
682 * block.c (block_namespace_info): Inherit allocate_on_obstack.
683 (block_initialize_namespace): Use new.
684 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
685 (dwarf2_free_objfile): Use delete.
686 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
687 (copy_type_recursive): Use new.
688 * gdb_obstack.h (allocate_on_obstack): New.
690 2018-02-15 Yao Qi <yao.qi@linaro.org>
693 * inferior.c (exit_inferior_1): Reset inf->control.
695 2018-02-15 Joel Brobecker <brobecker@adacore.com>
697 * ada-lang.c (ada_to_fixed_value_create): Delete advance
700 2018-02-14 Pedro Alves <palves@redhat.com>
702 * frame-unwind.c (frame_unwind_try_unwinder): Always call
703 frame_cleanup_after_sniffer on exception.
705 2018-02-14 Tom Tromey <tom@tromey.com>
707 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
709 (solib_bfd_open): Make pathname const.
710 * solib.c (solib_bfd_open): Make pathname const.
711 * solib-spu.c (spu_bfd_fopen): Make name const.
712 (spu_bfd_open): Make pathname const.
713 * solib-darwin.c (darwin_bfd_open): Make pathname const.
714 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
716 2018-02-14 Tom Tromey <tom@tromey.com>
718 * symfile.c (symfile_bfd_open): Update.
719 * source.h (openp, source_full_path_of, find_and_open_source):
720 Change argument type to unique_xmalloc_ptr.
721 * source.c (openp): Take a unique_xmalloc_ptr.
722 (source_full_path_of, find_and_open_source): Likewise.
723 (open_source_file, symtab_to_fullname): Update.
724 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
726 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
727 (exec_file_find): Update.
728 * psymtab.c (psymtab_to_fullname): Update.
729 * nto-tdep.h (nto_find_and_open_solib): Update.
730 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
732 * exec.c (exec_file_attach): Update.
733 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
734 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
736 2018-02-14 Tom Tromey <tom@tromey.com>
738 * solib.c: Include source.h.
739 * nto-tdep.c: Include source.h.
740 * mi/mi-cmd-env.c: Include source.h.
741 * infcmd.c: Include source.h.
742 * exec.c: Include source.h.
743 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
744 (add_path, directory_switch, source_path, init_source_path): Move
746 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
747 (add_path, directory_switch, source_path, init_source_path):
750 2018-02-14 Tom Tromey <tom@tromey.com>
752 * solist.h (exec_file_find, solib_find): Return
754 (solib_bfd_fopen): Take a const char *.
755 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
756 (exec_file_find, solib_find): Likewise.
757 (solib_bfd_fopen): Do not take ownership of "pathname".
758 (solib_bfd_open): Use unique_xmalloc_ptr.
759 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
760 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
761 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
762 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
764 2018-02-14 Joel Brobecker <brobecker@adacore.com>
766 * ada-lang.c (name_match_type_from_name): Remove reference to
767 ada_name_for_lookup in function's documentation.
768 * ada-lang.h (ada_name_for_lookup): Delete declaration.
770 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
772 * defs.h (enum openp_flags): New enum.
773 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
774 Move to enum openp_flags.
775 (openp_flags): New enum flags.
776 (openp): Change parameter type to openp_flags.
777 * source.c (openp): Change parameter type to openp_flags.
778 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
779 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
781 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
783 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
786 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
788 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
790 (class dwarf2_queue_guard): ...the destructor of this new class.
791 (dw2_do_instantiate_symtab): Create instance of the new class
792 dwarf2_queue_guard, remove cleanup.
794 2018-02-09 Tom Tromey <tom@tromey.com>
796 * source.c (find_source_lines): Don't reference past the end of
799 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
801 * remote.c (remote_btrace_maybe_reopen): Change error message.
802 * btrace.c (btrace_enable): Likewise.
803 (parse_xml_btrace): Likewise.
804 (parse_xml_btrace_conf): Likewise.
806 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
808 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
809 (linux_enable_pt, linux_enable_bts): Call
810 diagnose_perf_event_open_fail.
812 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
814 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
815 Remove parameter and change return type. Update callers. Move it.
816 (linux_enable_bts, linux_enable_pt): Improve error message.
817 (linux_enable_pt): Remove zero buffer size check.
818 (linux_enable_btrace): Improve error messages. Remove NULL return
821 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
823 * btrace.c (btrace_enable): Remove target_supports_btrace call.
824 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
825 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
826 (linux_supports_pt, linux_supports_btrace): Remove.
827 (linux_enable_bts): Call cpu_supports_bts.
828 * nat/linux-btrace.h (linux_supports_btrace): Remove.
829 * remote.c (remote_supports_btrace): Remove.
830 (init_remote_ops): Remove remote_supports_btrace.
831 * target-delegates.c: Regenerated.
832 * target.c (target_supports_btrace): Remove.
833 * target.h (target_ops) <to_supports_btrace>: Remove
834 (target_supports_btrace): Remove.
835 * x86-linux-nat.c (x86_linux_create_target): Remove
836 linux_supports_btrace.
838 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
840 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
842 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
843 exception and use message in own exception.
845 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
847 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
848 (perf_event_pt_event_type): Use gdb_file_up.
849 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
850 scoped_fd, and scoped_mmap.
852 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
854 * common/scoped_mmap.h: New.
855 * unittests/scoped_mmap-selftest.c: New.
856 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
857 unittests/scoped_mmap-selftest.c.
859 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
861 * common/scoped_fd.h: New.
862 * unittests/scoped_fd-selftest.c: New.
863 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
864 unittests/scoped_fd-selftest.c.
866 2018-02-09 Tom Tromey <tom@tromey.com>
868 * auto-load.c (auto_load_section_scripts): Use
869 gdb::unique_xmalloc_ptr.
871 2018-02-09 Tom Tromey <tom@tromey.com>
873 * auto-load.c (execute_script_contents): Use std::string.
875 2018-02-09 Joel Brobecker <brobecker@adacore.com>
877 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
878 Python function, rather than a new command.
880 2018-02-08 Tom Tromey <tom@tromey.com>
882 * solib.c (solib_find_1): Use std::string.
883 (solib_bfd_fopen): Use unique_xmalloc_ptr.
885 2018-02-08 Tom Tromey <tom@tromey.com>
887 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
889 2018-02-08 Tom Tromey <tom@tromey.com>
891 * source.c (find_source_lines): Use gdb::def_vector.
893 2018-02-08 Tom Tromey <tom@tromey.com>
895 * macrocmd.c (struct temporary_macro_definition): New.
896 (macro_define_command): Use temporary_macro_definition. Remove
898 (free_macro_definition_ptr): Remove.
900 2018-02-08 Tom Tromey <tom@tromey.com>
902 * macroexp.c (maybe_expand): Use std::string.
904 2018-02-08 Tom Tromey <tom@tromey.com>
906 * macroexp.c (struct macro_buffer): Add initializers for some
908 (init_buffer, init_shared_buffer, free_buffer)
909 (free_buffer_return_text): Remove.
910 (macro_buffer): New constructors.
911 (~macro_buffer): New destructor.
912 (macro_buffer::set_shared): New method.
913 (macro_buffer::resize_buffer, macro_buffer::appendc)
914 (macro_buffer::appendmem): Now methods, not free functions.
915 (set_token, append_tokens_without_splicing, stringify)
916 (macro_stringify): Update.
917 (gather_arguments): Change return type. Remove argc_p argument,
918 add args_ptr argument. Use std::vector.
919 (substitute_args): Remove argc argument. Accept std::vector.
920 (expand): Update. Use std::vector.
921 (scan, macro_expand, macro_expand_next): Update.
923 2018-02-08 Tom Tromey <tom@tromey.com>
925 * symtab.c (default_collect_symbol_completion_matches_break_on):
926 Use unique_xmalloc_ptr.
927 * macroscope.h: (sal_macro_scope, user_macro_scope)
928 (default_macro_scope): Return unique_xmalloc_ptr.
929 * macroscope.c (sal_macro_scope, user_macro_scope)
930 (default_macro_scope): Return unique_xmalloc_ptr.
931 * macroexp.h (macro_expand, macro_expand_once): Return
933 * macroexp.c (macro_expand, macro_expand_once): Return
935 * macrocmd.c (macro_expand_command, macro_expand_once_command)
936 (info_macro_command, info_macros_command): Use
938 * compile/compile-c-support.c (write_macro_definitions): Use
940 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
942 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
944 * value.c (value_static_field): Assign field type instead of
945 containing type when returning an optimized out value.
947 2018-02-06 Yao Qi <yao.qi@linaro.org>
949 * ft32-tdep.c (ft32_read_pc): Remove.
950 (ft32_write_pc): Remove.
951 (ft32_gdbarch_init): Update.
952 * m32r-tdep.c (m32r_read_pc): Remove.
953 (m32r_gdbarch_init): Update.
954 * mep-tdep.c (mep_read_pc): Remove.
955 (mep_gdbarch_init): Update.
956 * microblaze-tdep.c (microblaze_write_pc): Remove.
957 (microblaze_gdbarch_init): Update.
958 * mn10300-tdep.c (mn10300_read_pc): Remove.
959 (mn10300_write_pc): Remove.
960 (mn10300_gdbarch_init): Update.
961 * moxie-tdep.c (moxie_read_pc): Remove.
962 (moxie_write_pc): Remove.
963 (moxie_gdbarch_init): Update.
965 2018-02-06 Yao Qi <yao.qi@linaro.org>
967 * expprint.c (print_subexp_standard): Handle
968 OP_F77_UNDETERMINED_ARGLIST.
969 (dump_subexp_body_standard): Likewise.
971 2018-02-05 Alan Hayward <alan.hayward@arm.com>
973 * target-descriptions.c (tdesc_element_visitor) Add empty
975 (tdesc_type): Move make_gdb_type from here.
976 (tdesc_type_builtin): Likewise.
977 (tdesc_type_vector): Likewise.
978 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
979 (make_gdb_type_struct): Move from tdesc_type_with_fields.
980 (make_gdb_type_union): Likewise.
981 (make_gdb_type_flags): Likewise.
982 (make_gdb_type_enum): Likewise.
983 (make_gdb_type): New function.
984 (tdesc_register_type): Use static make_gdb_type.
986 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
988 * infcmd.c (default_print_one_register_info): Align natural-format
989 column values consistently one under another.
990 (pad_to_column): New function.
992 2018-02-05 Joel Brobecker <brobecker@adacore.com>
994 * dwarf2read.c (dwarf2_physname): Move commment.
996 2018-02-01 Leszek Swirski <leszeks@google.com>
998 * varobj.c (varobj_formatted_print_options): Allow recursive
999 pretty printing if pretty printing is enabled.
1001 2018-02-01 Leszek Swirski <leszeks@google.com>
1003 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1004 names after a structop as a filename.
1006 2018-02-01 Yao Qi <yao.qi@linaro.org>
1008 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1009 (arm_record_coproc_data_proc): Likewise.
1011 2018-02-01 Yao Qi <yao.qi@linaro.org>
1013 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1015 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1017 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1018 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1020 2018-01-31 Pedro Alves <palves@redhat.com>
1022 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1023 * inflow.c (child_terminal_save_inferior): Wrap reference to
1024 tcgetpgrp in HAVE_TERMIOS_H.
1025 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1027 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1028 always iterate over all inferiors.
1029 (gdbsim_cntrl_c): Adjust.
1030 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1032 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1034 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1035 index type is objfile-owned if the element type is as well.
1037 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1041 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1043 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1044 "features/s390x-linux64.c".
1045 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1046 s390_linux32 and s390x_linux64.
1047 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1049 * s390-tdep.c: Include "features/s390-linux32.c" and
1050 "features/s390x-linux64.c".
1051 (s390_tdesc_valid): Add check for tdesc_has_registers.
1052 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1053 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1054 tdesc_s390x_linux64.
1055 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1056 tdesc_s390x_linux64 to...
1057 * s390-tdep.h: ...here.
1059 2018-01-30 Pedro Alves <palves@redhat.com>
1062 * config.in, configure: Regenerate.
1063 * configure.ac: Check for getpgid.
1064 * go32-nat.c (go32_pass_ctrlc): New.
1065 (go32_target): Install it.
1066 * inf-child.c (inf_child_target): Install
1067 child_terminal_save_inferior, child_pass_ctrlc and
1069 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1070 (inf_ptrace_target): No longer install it.
1071 * infcmd.c (interrupt_target_1): Adjust.
1072 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1073 (child_interrupt): Declare.
1074 (inferior::terminal_state): New.
1075 * inflow.c (struct terminal_info): Update comments.
1076 (inferior_process_group): Delete.
1077 (terminal_is_ours): Delete.
1078 (gdb_tty_state): New.
1079 (child_terminal_init): Adjust.
1080 (is_gdb_terminal, sharing_input_terminal_1)
1081 (sharing_input_terminal): New functions.
1082 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1083 Set the process's actual process group in the foreground if
1084 possible. Handle is_ours_for_output/is_ours distinction. Don't
1085 mark terminal as the inferior's if not sharing GDB's terminal.
1086 Don't check attach_flag.
1087 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1088 pass down a target_terminal_state.
1089 (child_terminal_save_inferior): New, factored out from ...
1090 (child_terminal_ours_1): ... this. Handle
1091 target_terminal_state::is_ours_for_output.
1092 (child_interrupt, child_pass_ctrlc): New.
1093 (inflow_inferior_exit): Clear the inferior's terminal_state.
1094 (copy_terminal_info): Copy the inferior's terminal state.
1095 (_initialize_inflow): Remove reference to terminal_is_ours.
1096 * inflow.h (inferior_process_group): Delete.
1097 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1098 * procfs.c (procfs_target): Don't install procfs_interrupt.
1099 (procfs_interrupt): Delete.
1100 * remote.c (remote_serial_quit_handler): Adjust.
1101 (remote_interrupt): Remove ptid parameter. Adjust.
1102 * target-delegates.c: Regenerate.
1103 * target.c: Include "terminal.h".
1104 (target_terminal::terminal_state): Rename to ...
1105 (target_terminal::m_terminal_state): ... this.
1106 (target_terminal::init): Adjust.
1107 (target_terminal::inferior): Adjust to per-inferior
1109 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1110 (target_terminal::ours, target_terminal::ours_for_output): Use
1111 target_terminal_is_ours_kind.
1112 (target_interrupt): Remove ptid parameter. Adjust.
1113 (default_target_pass_ctrlc): Adjust.
1114 * target.h (target_ops::to_terminal_save_inferior): New field.
1115 (target_ops::to_interrupt): Remove ptid_t parameter.
1116 (target_interrupt): Remove ptid_t parameter. Update comment.
1117 (target_pass_ctrlc): Update comment.
1118 * target/target.h (target_terminal_state): New scoped enum,
1120 (target_terminal::terminal_state): ... here.
1121 (target_terminal::inferior): Update comments.
1122 (target_terminal::restore_inferior): New.
1123 (target_terminal::is_inferior, target_terminal::is_ours)
1124 (target_terminal::is_ours_for_output): Adjust.
1125 (target_terminal::scoped_restore_terminal_state): Adjust to
1126 rename, and call restore_inferior() instead of inferior().
1127 (target_terminal::scoped_restore_terminal_state::m_state): Change
1129 (target_terminal::terminal_state): Rename to ...
1130 (target_terminal::m_terminal_state): ... this and change type.
1132 2018-01-30 Pedro Alves <palves@redhat.com>
1134 * linux-nat.c (wait_for_signal): New function.
1135 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1137 (async_terminal_is_ours)
1138 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1139 (linux_nat_add_target): Don't override
1140 to_terminal_inferior/to_terminal_ours.
1142 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1144 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1146 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1148 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1149 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1150 dwarf2_per_objfile_free here.
1151 (dwarf2_per_objfile_free): Remove.
1152 (_initialize_dwarf2_read): Don't register
1153 dwarf2_per_objfile_free as a registry cleanup.
1155 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1157 Avoid compilation errors in MinGW native builds
1159 The error is triggered by including python-internal.h, and the
1162 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1163 from build-gnulib/import/math.h:27,
1164 from d:/usr/Python26/include/pyport.h:235,
1165 from d:/usr/Python26/include/Python.h:58,
1166 from python/python-internal.h:94,
1167 from python/py-arch.c:24:
1168 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1172 This happens because Python headers define 'hypot' to expand t
1173 '_hypot' in the Windows builds.
1174 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1175 'hypoth'. This avoids a compilation error.
1177 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1179 * MAINTAINERS (Write After Approval): Fix ordering.
1181 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1183 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1185 2018-01-26 Alan Modra <amodra@gmail.com>
1187 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1188 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1189 Remove nop. Make const. Comment.
1190 (powerpc32_plt_stub_so_2): New.
1191 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1192 Correct count. Update uses.
1193 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1194 Move common code reading PLT entry word. Correct
1195 powerpc32_plt_stub PLT address calculation.
1196 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1197 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1198 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1199 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1200 (ppc64_standard_linkage8): Likewise.
1201 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1202 Correct insns description.
1203 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1205 2018-01-24 Pedro Alves <palves@redhat.com>
1207 GCC PR libstdc++/83906
1208 * gdbtypes.c (operator==(const dynamic_prop &,
1209 const dynamic_prop &)): New.
1210 (operator==(const range_bounds &, const range_bounds &)): New.
1211 (check_types_equal): Use them instead of memcmp.
1212 * gdbtypes.h (operator==(const dynamic_prop &,
1213 const dynamic_prop &)): Declare.
1214 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1215 (operator==(const range_bounds &, const range_bounds &)): Declare.
1216 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1218 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1220 * s390-linux-tdep.c (s390_record_address_mask)
1221 (s390_record_calc_disp_common, s390_record_calc_disp)
1222 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1223 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1224 (s390_process_record): Move to s390-tdep.c.
1225 (s390_linux_init_abi_any): Adjust.
1226 * s390-tdep.c (s390_record_address_mask)
1227 (s390_record_calc_disp_common, s390_record_calc_disp)
1228 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1229 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1230 (s390_process_record): Moved from s390-linux-tdep.c
1231 (s390_gdbarch_init): Adjust.
1233 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1235 * s390-linux-nat.c (s390-tdep.h): New include.
1236 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1237 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1238 (ALLDEPFILES): Add s390-tdep.c.
1239 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1240 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1241 * s390-tdep.h: ...this. New file.
1242 * s390-linux-tdep.c (s390-tdep.h): New include.
1243 (_initialize_s390_tdep): Rename to...
1244 (_initialize_s390_linux_tdep): ...this and adjust.
1245 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1246 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1248 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1249 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1250 (s390_is_partial_instruction, s390_software_single_step)
1251 (is_non_branch_ril, s390_displaced_step_copy_insn)
1252 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1253 (s390_prologue_data, s390_addr, s390_store, s390_load)
1254 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1255 (s390_register_call_saved, s390_guess_tracepoint_registers)
1256 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1257 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1258 (s390_pseudo_register_name, s390_pseudo_register_type)
1259 (s390_pseudo_register_read, s390_pseudo_register_write)
1260 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1261 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1262 (s390_addr_bits_remove, s390_address_class_type_flags)
1263 (s390_address_class_type_flags_to_name)
1264 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1265 (s390_function_arg_float, s390_function_arg_vector)
1266 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1267 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1268 (s390_frame_align, s390_register_return_value, s390_return_value)
1269 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1270 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1271 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1272 (s390_trad_frame_prev_register, s390_unwind_cache)
1273 (s390_prologue_frame_unwind_cache)
1274 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1275 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1276 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1277 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1278 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1279 (s390_frame_base_address, s390_local_base_address)
1280 (s390_frame_base, s390_gcc_target_options)
1281 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1282 (s390_validate_reg_range, s390_tdesc_valid)
1283 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1284 * s390-tdep.c: ...this. New file.
1286 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1288 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1289 (s390_process_record, s390_gdbarch_tdep_alloc)
1290 (s390_linux_init_abi_any): Use/set new hook.
1292 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1294 * s390-linux-tdep.c (osabi.h): New include.
1295 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1296 (s390_linux_init_abi_any): New functions.
1297 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1299 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1301 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1302 tdesc_has_registers check
1304 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1306 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1307 (s390_validate_reg_range): New macro.
1308 (s390_gdbarch_init): Adjust.
1310 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1312 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1313 (s390_gdbarch_tdep_alloc): Adjust.
1314 (s390_gdbarch_init): Adjust.
1316 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1318 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1319 <have_tdb>: Change type to bool.
1320 (s390_gdbarch_tdep_alloc): Adjust.
1321 (s390_gdbarch_init): Adjust.
1323 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1325 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1326 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1327 (s390_gdbarch_tdep_alloc): New function.
1328 (s390_gdbarch_init): Allocate tdep at start and use its fields
1329 instead of separate variables.
1331 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1333 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1334 when looking for cached gdbarch and add comment for remaining.
1336 2018-01-22 Pedro Alves <palves@redhat.com>
1337 Sergio Durigan Junior <sergiodj@redhat.com>
1339 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1342 2018-01-22 Maciej W. Rozycki <macro@mips.com>
1344 * MAINTAINERS: Update my company e-mail address.
1346 2018-01-22 Yao Qi <yao.qi@linaro.org>
1348 * regcache.c (cooked_write_test): New function.
1349 (_initialize_regcache): Register the test.
1351 2018-01-22 Yao Qi <yao.qi@linaro.org>
1353 * ia64-tdep.c (ia64_pseudo_register_read): Call
1354 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1355 * m32c-tdep.c (m32c_cat_read): Likewise.
1356 (m32c_r3r2r1r0_read): Likewise.
1357 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1358 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1360 2018-01-22 Yao Qi <yao.qi@linaro.org>
1362 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1363 method raw_read instead of regcache_raw_read.
1364 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1365 * arm-tdep.c (arm_neon_quad_read): Likewise.
1366 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1367 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1368 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1369 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1370 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1371 (i386_pseudo_register_read_into_value): Likewise.
1372 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1373 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1374 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1375 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1376 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1377 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1378 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1379 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1380 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1382 2018-01-22 Yao Qi <yao.qi@linaro.org>
1384 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1385 * configure.tgt: Remove target mt.
1386 * mt-tdep.c: Remove.
1387 * regcache.c (cooked_read_test): Remove the check for mt.
1389 2018-01-22 Yao Qi <yao.qi@linaro.org>
1391 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1392 instead of gdbarch_pseudo_register_read_value.
1394 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1396 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1399 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1401 * linespec.c (create_sals_line_offset): Remove code that preserved
1402 the symtab_and_line's line number.
1404 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1406 * varobj.c (varobj_create): Don't set valid_block when creating a
1409 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1411 * varobj.c (varobj_create): Remove out of date comment.
1413 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1416 * ada-exp.y (write_var_from_sym): Pass extra parameter when
1417 updating innermost block.
1418 * parse.c (innermost_block_tracker::update): Take extra type
1419 parameter, and check types match before updating innermost block.
1420 (write_dollar_variable): Update innermost block for registers.
1421 * parser-defs.h (enum innermost_block_tracker_type): New enum.
1422 (innermost_block_tracker::innermost_block_tracker): Initialise
1424 (innermost_block_tracker::reset): Take type parameter.
1425 (innermost_block_tracker::update): Take type parameter, and pass
1426 type through as needed.
1427 (innermost_block_tracker::m_types): New member.
1428 * varobj.c (varobj_create): Pass type when reseting innermost
1431 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1433 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1434 * ada-lang.c (resolve_subexp): Likewise.
1435 * breakpoint.c (set_breakpoint_condition) Likewise.
1436 (watch_command_1) Likewise.
1437 * c-exp.y (variable): Likewise.
1438 * d-exp.y (PrimaryExpression): Likewise.
1439 * f-exp.y (variable): Likewise.
1440 * go-exp.y (variable): Likewise.
1441 * m2-exp.y (variable): Likewise.
1442 * objfiles.c (objfile::~objfile): Likewise.
1443 * p-exp.y (variable): Likewise.
1444 * parse.c (innermost_block): Change type.
1445 * parser-defs.h (class innermost_block_tracker): New.
1446 (innermost_block): Change to innermost_block_tracker.
1447 * printcmd.c (display_command): Switch to innermost_block API.
1448 (do_one_display): Likewise.
1449 * rust-exp.y (do_one_display): Likewise.
1450 * symfile.c (clear_symtab_users): Likewise.
1451 * varobj.c (varobj_create): Switch to innermost_block API, replace
1452 use of innermost_block with block stored on varobj object.
1454 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1456 * expression.h (innermost_block): Remove declaration.
1457 * varobj.c: Add 'parser-defs.h' include.
1459 2018-01-19 Tom Tromey <tom@tromey.com>
1461 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1462 symbols in the static and global blocks.
1464 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1466 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1467 gdb_ptrace.h, and move including gdb_wait.h ...
1468 * nat/linux-ptrace.h: ... to here.
1470 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1472 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1473 inf_ptrace_detach_success.
1474 (inf_ptrace_detach_success): Add inferior parameter, use it
1475 instead of inferior_ptid, pass it to detach_inferior.
1476 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1478 * inferior.c (detach_inferior): Add overload that takes an
1480 * inferior.h (detach_inferior): Likewise.
1481 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1482 use inferior_ptid, adjust call to inf_ptrace_detach_success.
1483 * linux-thread-db.c (thread_db_detach): Use inf parameter.
1485 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1487 * target.h (struct target_ops) <to_detach>: Add inferior
1489 (target_detach): Likewise.
1490 * target.c (dispose_inferior): Pass inferior down.
1491 (target_detach): Pass inferior down. Assert that it is equal to
1492 the current inferior.
1493 * aix-thread.c (aix_thread_detach): Pass inferior down.
1494 * corefile.c (core_file_command): Pass current_inferior() down.
1495 * corelow.c (core_detach): Add inferior parameter.
1496 * darwin-nat.c (darwin_detach): Likewise.
1497 * gnu-nat.c (gnu_detach): Likewise.
1498 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1499 * infcmd.c (detach_command): Pass current_inferior() down to
1501 * infrun.c (follow_fork_inferior): Pass parent_inf to
1503 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1505 * linux-nat.c (linux_nat_detach): Add inferior parameter.
1506 * linux-thread-db.c (thread_db_detach): Likewise.
1507 * nto-procfs.c (procfs_detach): Likewise.
1508 * procfs.c (procfs_detach): Likewise.
1509 * record.c (record_detach): Likewise.
1510 * record.h (struct inferior): Forward-declare.
1511 (record_detach): Add inferior parameter.
1512 * remote-sim.c (gdbsim_detach): Likewise.
1513 * remote.c (remote_detach_1): Likewise.
1514 (remote_detach): Likewise.
1515 (extended_remote_detach): Likewise.
1516 * sol-thread.c (sol_thread_detach): Likewise.
1517 * target-debug.h (target_debug_print_inferior_p): New macro.
1518 * target-delegates.c: Re-generate.
1519 * top.c (kill_or_detach): Pass inferior down to target_detach.
1520 * windows-nat.c (windows_detach): Add inferior parameter.
1522 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1524 * target.h (struct target_ops) <to_detach>: Remove args
1526 (target_detach): Likewise.
1527 * target.c (dispose_inferior): Adjust.
1528 (target_detach): Remove args parameter, adjust.
1529 * aix-thread.c (aix_thread_detach): Adjust.
1530 * corefile.c (core_file_command): Adjust.
1531 * corelow.c (core_detach): Adjust.
1532 * darwin-nat.c (darwin_detach): Adjust.
1533 * gnu-nat.c (gnu_detach): Adjust.
1534 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1535 * infcmd.c (detach_command): Adjust
1536 * infrun.c (follow_fork_inferior): Adjust.
1537 (handle_vfork_child_exec_or_exit): Adjust.
1538 * linux-fork.c (linux_fork_detach): Remove args parameter.
1539 * linux-fork.h (linux_fork_detach): Likewise.
1540 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1541 * linux-thread-db.c (thread_db_detach): Likewise.
1542 * nto-procfs.c (procfs_detach): Likewise.
1543 * procfs.c (procfs_detach): Likewise.
1544 (do_detach): Remove signo parameter.
1545 * record.c (record_detach): Remove args parameter.
1546 * record.h (record_detach): Likewise.
1547 * remote-sim.c (gdbsim_detach): Likewise.
1548 * remote.c (remote_detach_1): Likewise.
1549 (remote_detach): Likewise.
1550 (extended_remote_detach): Likewise.
1551 * sol-thread.c (sol_thread_detach): Likewise.
1552 * target-delegates.c: Re-generate.
1553 * top.c (struct qt_args) <args>: Remove field.
1554 (kill_or_detach): Don't pass args.
1555 (quit_force): Don't set args.
1556 * windows-nat.c (windows_detach): Remove args parameter.
1558 2018-01-19 Yao Qi <yao.qi@linaro.org>
1560 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1561 (arm_linux_init_abi): Install it.
1563 2018-01-19 Yao Qi <yao.qi@linaro.org>
1565 * osabi.c (gdb_osabi_names): Extend the regexp for
1566 arm-linux-gnueabihf.
1568 2018-01-18 Yao Qi <yao.qi@linaro.org>
1570 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
1572 (abbrev_table::add_abbrev): Update.
1573 (abbrev_table::lookup_abbrev): Update.
1575 2018-01-18 Yao Qi <yao.qi@linaro.org>
1577 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
1579 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1581 * compile/compile.c (compile_to_object): Convert "triplet_rx"
1584 2018-01-17 Tom Tromey <tom@tromey.com>
1586 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
1588 2018-01-17 Tom Tromey <tom@tromey.com>
1590 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
1591 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
1592 (create_array_type_with_stride): Update.
1593 * dwarf2read.c (set_die_type): Update.
1595 2018-01-17 Tom Tromey <tom@tromey.com>
1597 * dwarf2read.c (delayed_method_info): Remove typedef.
1598 (dwarf2_cu::method_info): Now a std::vector.
1599 (add_to_method_list): Update.
1600 (free_delayed_list): Remove.
1601 (compute_delayed_physnames): Update.
1602 (process_full_comp_unit, process_full_type_unit): Clear the method
1603 list. Remove cleanups.
1604 (psymtab_include_file_name): Add name_holder parameter. Use
1606 (dwarf_decode_lines): Update.
1608 2018-01-17 Tom Tromey <tom@tromey.com>
1609 Simon Marchi <simon.marchi@ericsson.com>
1611 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
1612 (dwarf2_per_objfile::free_cached_comp_units)
1613 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1614 (init_cutu_and_read_dies_no_follow): Update.
1615 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
1616 (dwarf2_cu::~dwarf2_cu): New.
1617 (free_heap_comp_unit, free_stack_comp_unit): Remove.
1618 (age_cached_comp_units, free_one_cached_comp_unit): Update.
1620 2018-01-17 Tom Tromey <tom@tromey.com>
1621 Simon Marchi <simon.marchi@ericsson.com>
1623 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
1624 (struct die_reader_specs) <abbrev_table>: New member.
1625 (struct abbrev_table): Add constructor.
1626 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
1627 <abbrev_obstack>: Now an auto_obstack.
1628 (abbrev_table_up): New typedef.
1629 (init_cu_die_reader): Add abbrev_table parameter.
1630 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
1631 Add result_dwo_abbrev_table.
1632 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1633 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
1635 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
1637 (skip_children): Update.
1638 (abbrev_table::alloc_abbrev): Rename from
1639 abbrev_table_alloc_abbrev.
1640 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
1641 (abbrev_table::lookup_abbrev): Rename from
1642 abbrev_table_lookup_abbrev.
1643 (abbrev_table_read_table): Return abbrev_table_up.
1644 (abbrev_table_free, abbrev_table_free_cleanup)
1645 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
1646 (load_partial_dies): Update.
1648 2018-01-17 Tom Tromey <tom@tromey.com>
1650 * dwarf2read.c (dwarf2_compute_name): Update comment.
1651 (read_func_scope, read_variable): Update.
1652 (new_symbol): Remove.
1653 (new_symbol_full): Rename to new_symbol.
1655 2018-01-17 Mike Gulick <mgulick@mathworks.com>
1658 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
1659 a warning instead of throwing an error, set section size to 0 and return
1661 * gdb_bfd.h (gdb_bfd_map_section): Update description.
1663 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1665 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
1667 (linux_ptrace_attach_fail_reason_string): Likewise.
1668 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
1670 (linux_ptrace_attach_fail_reason_string): Likewise.
1671 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
1673 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1675 * linux-nat.c (linux_nat_attach): Remove xstrdup.
1677 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1680 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1681 checking for fs_base/gs_base fields in struct user_regs_struct.
1682 * configure: Regenerate.
1684 2018-01-17 Yao Qi <yao.qi@linaro.org>
1686 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
1688 (aarch64_linux_init_abi): Install it to gdbarch hook
1691 2018-01-15 Pedro Alves <palves@redhat.com>
1693 * common/signals-state-save-restore.c
1694 (save_original_signals_state): Fix typos.
1696 2017-01-12 Tom Tromey <tom@tromey.com>
1697 Sergio Durigan Junior <sergiodj@redhat.com>
1699 * Makefile.in (install-only): Install gdb-add-index.
1701 2018-01-12 John Baldwin <jhb@FreeBSD.org>
1703 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
1705 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1707 * infrun.c (keep_going_pass_signal): Clear step-over info when
1708 insert_breakpoints fails.
1710 2018-01-11 Pedro Alves <palves@redhat.com>
1713 * infrun.c (resume): Rename to ...
1714 (resume_1): ... this.
1715 (resume): Reimplement as wrapper around resume_1.
1717 2018-01-11 Pedro Alves <palves@redhat.com>
1720 * remote.c (remote_parse_stop_reply): Default to the last-set
1721 general thread instead of to 'magic_null_ptid'.
1723 2018-01-10 Pedro Alves <palves@redhat.com>
1725 * language.h (language_get_symbol_name_matcher): Rename ...
1726 (get_symbol_name_matcher): ... this.
1727 * language.c (language_get_symbol_name_matcher): Ditto.
1728 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
1731 2018-01-10 Pedro Alves <palves@redhat.com>
1735 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
1736 Adjust to use language_get_symbol_name_matcher instead of
1737 language_defn::la_get_symbol_name_matcher.
1738 * language.c (language_get_symbol_name_matcher): If in Ada mode
1739 and the lookup name is a verbatim match, return Ada's matcher.
1740 * language.h (language_get_symbol_name_matcher): Adjust comment.
1741 (ada_lookup_name_info::verbatim_p):: New method.
1743 2018-01-10 Pedro Alves <palves@redhat.com>
1746 * ada-lang.c (ada_collect_symbol_completion_matches): If the
1747 minsym's language is language_auto or language_cplus, pass down
1748 language_ada instead.
1749 * symtab.c (compare_symbol_name): Don't frob symbol language here.
1751 2018-01-10 Pedro Alves <palves@redhat.com>
1754 * minsyms.c (linkage_name_str): New function.
1755 (iterate_over_minimal_symbols): Use it.
1757 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1759 * NEWS: Document that 'info proc' now works on FreeBSD.
1761 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1763 * configure.ac: Check for kinfo_getfile in libutil.
1764 * configure: Regenerate.
1765 * config.in: Regenerate.
1766 * fbsd-nat.c: Include "fbsd-tdep.h".
1767 (fbsd_fetch_cmdline): New.
1768 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
1769 rather than calling error.
1770 (fbsd_info_proc): New.
1771 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
1772 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
1773 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
1775 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1777 * fbsd-nat.c (struct free_deleter): Remove.
1778 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
1780 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1782 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
1783 NULL for an empty pathname.
1785 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1787 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
1788 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
1789 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1790 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1791 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
1792 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
1793 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
1794 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
1795 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
1796 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
1797 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
1798 (fbsd_core_fetch_timeval, fbsd_print_sigset)
1799 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
1800 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
1801 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
1803 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1805 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
1806 (gnu_xfer_auxv): New function.
1807 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
1810 2018-01-08 Yao Qi <yao.qi@linaro.org>
1811 Simon Marchi <simon.marchi@ericsson.com>
1813 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
1815 (COMMON_OBS): Remove selftest.o.
1816 * configure.ac: Append selftest-arch.c and common/selftest.c to
1817 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
1818 * configure: Re-generated.
1819 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
1821 (maintenance_info_selftests): Likewise.
1823 2018-01-08 Xavier Roirand <roirand@adacore.com>
1825 * ada-valprint.c (val_print_packed_array_elements): Use
1826 proper number of elements when printing an array indexed
1827 by an enumeration type.
1829 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1831 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
1832 (dw2_get_file_names_reader): Adjust.
1833 (lookup_dwo_signatured_type): Adjust.
1834 (lookup_dwp_signatured_type): Adjust.
1835 (lookup_signatured_type): Adjust.
1836 (create_type_unit_group): Adjust.
1837 (get_type_unit_group): Adjust.
1838 (process_psymtab_comp_unit_reader): Adjust.
1839 (build_type_psymtabs_reader): Adjust.
1840 (scan_partial_symbols): Adjust.
1841 (add_partial_symbol): Adjust.
1842 (add_partial_subprogram): Adjust.
1843 (peek_die_abbrev): Adjust.
1844 (fixup_go_packaging): Adjust.
1845 (process_imported_unit_die): Adjust.
1846 (dwarf2_compute_name): Adjust.
1847 (dwarf2_physname): Adjust.
1848 (read_import_statement): Adjust.
1849 (handle_DW_AT_stmt_list): Adjust.
1850 (read_file_scope): Adjust.
1851 (read_func_scope): Adjust.
1852 (read_lexical_block_scope): Adjust.
1853 (read_call_site_scope): Adjust.
1854 (read_variable): Adjust.
1855 (dwarf2_rnglists_process): Adjust.
1856 (dwarf2_ranges_process): Adjust.
1857 (dwarf2_ranges_read): Adjust.
1858 (dwarf2_get_pc_bounds): Adjust.
1859 (dwarf2_record_block_ranges): Adjust.
1860 (dwarf2_add_field): Adjust.
1861 (dwarf2_add_member_fn): Adjust.
1862 (read_structure_type): Adjust.
1863 (process_structure_scope): Adjust.
1864 (read_enumeration_type): Adjust.
1865 (read_array_type): Adjust.
1866 (mark_common_block_symbol_computed): Adjust.
1867 (read_common_block): Adjust.
1868 (read_namespace_type): Adjust.
1869 (read_namespace): Adjust.
1870 (read_module_type): Adjust.
1871 (read_tag_pointer_type): Adjust.
1872 (read_tag_ptr_to_member_type): Adjust.
1873 (read_tag_string_type): Adjust.
1874 (read_subroutine_type): Adjust.
1875 (read_typedef): Adjust.
1876 (read_base_type): Adjust.
1877 (attr_to_dynamic_prop): Adjust.
1878 (read_subrange_type): Adjust.
1879 (read_unspecified_type): Adjust.
1880 (dwarf2_read_abbrevs): Adjust.
1881 (load_partial_dies): Adjust.
1882 (read_partial_die): Adjust.
1883 (find_partial_die): Adjust.
1884 (guess_partial_die_structure_name): Adjust.
1885 (fixup_partial_die): Adjust.
1886 (read_attribute_value): Adjust.
1887 (read_addr_index): Adjust.
1888 (read_addr_index_from_leb128): Adjust.
1889 (read_str_index): Adjust.
1890 (dwarf2_string_attr): Adjust.
1891 (get_debug_line_section): Adjust.
1892 (dwarf_decode_line_header): Adjust.
1893 (lnp_state_machine::check_line_address): Adjust.
1894 (dwarf_decode_lines_1): Adjust.
1895 (dwarf_decode_lines): Adjust.
1896 (dwarf2_start_symtab): Adjust.
1897 (var_decode_location): Adjust.
1898 (new_symbol_full): Adjust.
1899 (dwarf2_const_value_data): Adjust.
1900 (dwarf2_const_value_attr): Adjust.
1901 (dwarf2_const_value): Adjust.
1903 (die_containing_type): Adjust.
1904 (build_error_marker_type): Adjust.
1905 (lookup_die_type): Adjust.
1906 (guess_full_die_structure_name): Adjust.
1907 (anonymous_struct_prefix): Adjust.
1908 (determine_prefix): Adjust.
1909 (dwarf2_name): Adjust.
1910 (follow_die_ref_or_sig): Adjust.
1911 (follow_die_offset): Adjust.
1912 (follow_die_ref): Adjust.
1913 (follow_die_sig_1): Adjust.
1914 (follow_die_sig): Adjust.
1915 (get_signatured_type): Adjust.
1916 (get_DW_AT_signature_type): Adjust.
1917 (decode_locdesc): Adjust.
1918 (dwarf_decode_macros): Adjust.
1919 (cu_debug_loc_section): Adjust.
1920 (fill_in_loclist_baton): Adjust.
1921 (dwarf2_symbol_mark_computed): Adjust.
1922 (init_one_comp_unit): Don't assign
1923 dwarf2_cu::dwarf2_per_objfile.
1924 (set_die_type): Adjust.
1926 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1928 * dwarf2read.c (struct mapped_debug_names): Add constructor.
1929 <dwarf2_per_objfile>: New field.
1930 (dwarf2_per_objfile): Remove global.
1931 (get_dwarf2_per_objfile): New function.
1932 (set_dwarf2_per_objfile): New function.
1933 (dwarf2_build_psymtabs_hard): Change objfile parameter to
1935 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1936 (read_abbrev_offset): Likewise.
1937 (read_indirect_string): Likewise.
1938 (read_indirect_line_string): Likewise.
1939 (read_indirect_string_at_offset): Likewise.
1940 (read_indirect_string_from_dwz): Likewise.
1941 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1943 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1944 (create_all_comp_units): Change objfile parameter to
1946 (create_all_type_units): Likewise.
1947 (process_queue): Add dwarf2_per_objfile parameter.
1948 (read_and_check_comp_unit_head): Likewise.
1949 (lookup_dwo_unit_in_dwp): Likewise.
1950 (get_dwp_file): Likewise.
1951 (process_cu_includes): Likewise.
1952 (struct free_dwo_file_cleanup_data): New struct.
1953 (dwarf2_has_info): Use get_dwarf2_per_objfile and
1954 set_dwarf2_per_objfile.
1955 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1956 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1957 context, adjust calls.
1958 (dw2_instantiate_symtab): Likewise.
1959 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1960 (dw2_get_cu): Likewise.
1961 (create_cu_from_index_list): Change objfile parameter to
1963 (create_cus_from_index_list): Get dwarf2_per_objfile from
1964 context, adjust calls.
1965 (create_cus_from_index): Likewise.
1966 (create_signatured_type_table_from_index): Change objfile
1967 parameter to dwarf2_per_objfile.
1968 (create_signatured_type_table_from_debug_names): Change objfile
1969 parameter to dwarf2_per_objfile.
1970 (create_addrmap_from_index): Likewise.
1971 (create_addrmap_from_aranges): Likewise.
1972 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1973 (dw2_setup): Remove.
1974 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1976 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1977 get_dwarf2_per_objfile.
1978 (dw2_forget_cached_source_info): Likewise.
1979 (dw2_map_symtabs_matching_filename): Likewise.
1980 (struct dw2_symtab_iterator) <index>: Remove.
1981 <dwarf2_per_objfile>: New field.
1982 (dw2_symtab_iter_init): Replace index parameter with
1984 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1985 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1986 (dw2_print_stats): Likewise.
1987 (dw2_dump): Likewise.
1988 (dw2_expand_symtabs_for_function): Likewise.
1989 (dw2_expand_all_symtabs): Likewise.
1990 (dw2_expand_symtabs_with_fullname): Likewise.
1991 (dw2_expand_marked_cus): Replace index and objfile parameters
1992 with dwarf2_per_objfile.
1993 (dw_expand_symtabs_matching_file_matcher): Add
1994 dwarf2_per_objfile parameter and adjust calls.
1995 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1997 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1998 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2000 (create_cus_from_debug_names_list): Replace objfile parameter
2001 with dwarf2_per_objfile and adjust calls.
2002 (create_cus_from_debug_names): Likewise.
2003 (dwarf2_read_debug_names): Likewise.
2004 (mapped_debug_names::namei_to_name): Adjust call.
2005 (dw2_debug_names_iterator::next): Likewise.
2006 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2007 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2008 (dw2_debug_names_dump): Likewise.
2009 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2010 (dw2_debug_names_expand_symtabs_matching): Likewise.
2011 (dwarf2_initialize_objfile): Likewise.
2012 (dwarf2_build_psymtabs): Likewise.
2013 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2015 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2016 (read_and_check_comp_unit_head): Likewise.
2017 (read_abbrev_offset): Likewise.
2018 (create_debug_type_hash_table): Likewise.
2019 (create_debug_types_hash_table): Likewise.
2020 (create_all_type_units): Replace objfile parameter with
2022 (add_type_unit): Add dwarf2_per_objfile parameter.
2023 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2024 with dwarf2_per_objfile.
2025 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2026 (lookup_dwp_signatured_type): Likewise.
2027 (lookup_signatured_type): Likewise.
2028 (read_cutu_die_from_dwo): Likewise.
2029 (init_tu_and_read_dwo_dies): Likewise.
2030 (init_cutu_and_read_dies): Likewise.
2031 (init_cutu_and_read_dies_no_follow): Likewise.
2032 (allocate_type_unit_groups_table): Add objfile parameter.
2033 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2034 (get_type_unit_group): Likewise.
2035 (process_psymtab_comp_unit): Update call.
2036 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2037 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2038 (print_tu_stats): Likewise.
2039 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2041 (build_type_psymtabs): Change objfile parameter to
2043 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2044 passed in void* parameter.
2045 (process_skeletonless_type_units): Change objfile parameter to
2047 (set_partial_user): Likewise.
2048 (dwarf2_build_psymtabs_hard): Likewise.
2049 (read_comp_units_from_section): Likewise.
2050 (create_all_comp_units): Likewise.
2051 (scan_partial_symbols): Update calls.
2052 (add_partial_symbol): Likewise.
2053 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2054 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2055 (process_queue): Add dwarf2_per_objfile parameter.
2056 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2057 (compute_compunit_symtab_includes): Likewise.
2058 (process_cu_includes): Add dwarf2_per_objfile parameter.
2059 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2060 (process_full_type_unit): Likewise.
2061 (process_imported_unit_die): Update call.
2062 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2063 (read_file_scope): Likewise.
2064 (allocate_dwo_file_hash_table): Add objfile parameter.
2065 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2066 (create_cus_hash_table): Likewise.
2067 (create_dwp_hash_table): Likewise.
2068 (create_dwo_unit_in_dwp_v1): Likewise.
2069 (create_dwp_v2_section): Likewise.
2070 (create_dwo_unit_in_dwp_v2): Likewise.
2071 (lookup_dwo_unit_in_dwp): Likewise.
2072 (try_open_dwop_file): Likewise.
2073 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2074 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2075 cleanup to include a reference to dwarf2_per_objfile.
2076 (open_dwp_file): Add dwarf2_per_objfile parameter.
2077 (open_and_init_dwp_file): Likewise.
2078 (get_dwp_file): Likewise.
2079 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2080 (queue_and_load_all_dwo_tus): Update call.
2081 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2083 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2084 (dwarf2_ranges_process): Likewise.
2085 (dwarf2_get_pc_bounds): Likewise.
2086 (mark_common_block_symbol_computed): Likewise.
2087 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2088 (dwarf2_read_abbrevs): Update call.
2089 (read_partial_die): Use dwarf2_per_objfile from cu.
2090 (find_partial_die): Likewise.
2091 (fixup_partial_die): Likewise.
2092 (read_attribute_value): Likewise.
2093 (read_indirect_string_at_offset_from): Add objfile parameter.
2094 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2096 (read_indirect_string_from_dwz): Add objfile parameter.
2097 (read_indirect_string): Add objfile parameter.
2098 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2099 (read_addr_index): Use dwarf2_per_objfile from cu.
2100 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2102 (read_str_index): Use dwarf2_per_objfile from cu.
2103 (get_debug_line_section): Likewise.
2104 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2105 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2106 (new_symbol_full): Use dwarf2_per_objfile from cu.
2107 (build_error_marker_type): Likewise.
2108 (lookup_die_type): Likewise.
2109 (determine_prefix): Likewise.
2110 (follow_die_offset): Likewise.
2111 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2112 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2113 (dwarf2_fetch_die_type_sect_off): Likewise.
2114 (dwarf2_get_die_type): Likewise.
2115 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2116 (get_signatured_type): Likewise.
2117 (get_DW_AT_signature_type): Likewise.
2118 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2119 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2120 (cu_debug_loc_section): Likewise.
2121 (fill_in_loclist_baton): Likewise.
2122 (dwarf2_symbol_mark_computed): Likewise.
2123 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2125 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2127 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2128 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2129 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2130 (set_die_type): Use dwarf2_free_objfile from cu.
2131 (get_die_type_at_offset): Likewise.
2132 (dwarf2_per_objfile_free): Don't assign global variable.
2133 (debug_names) <constructor>: Add dwarf2_per_objfile
2134 parameter, update m_debugstrlookup construction.
2135 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2137 <m_dwarf2_per_objfile>: New field.
2138 <lookup>: Use m_dwarf2_per_objfile.
2139 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2140 (psyms_seen_size): Likewise.
2141 (write_gdbindex): Replace objfile parameter with
2143 (write_debug_names): Likewise.
2144 (write_psymtabs_to_index): Likewise.
2145 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2148 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2150 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2151 <dwarf2_per_objfile>: New field.
2152 (struct dwarf2_per_cu_data) <objfile>: Remove.
2153 <dwarf2_per_objfile>: New field.
2154 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2156 (create_signatured_type_table_from_index): Likewise.
2157 (create_debug_type_hash_table): Likewise.
2158 (fill_in_sig_entry_from_dwo_entry): Likewise.
2159 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2160 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2162 (create_partial_symtab): Access objfile through
2164 (process_psymtab_comp_unit_reader): Likewise.
2165 (read_comp_units_from_section): Likewise.
2166 (scan_partial_symbols): Likewise.
2167 (add_partial_symbol): Likewise.
2168 (add_partial_subprogram): Likewise.
2169 (peek_die_abbrev): Likewise.
2170 (fixup_go_packaging): Likewise.
2171 (process_full_comp_unit): Likewise.
2172 (process_full_type_unit): Likewise.
2173 (process_imported_unit_die): Likewise.
2174 (dwarf2_compute_name): Likewise.
2175 (dwarf2_physname): Likewise.
2176 (read_import_statement): Likewise.
2177 (create_cus_hash_table): Assign dwarf2_physname instead of
2179 (read_func_scope): Access objfile through dwarf2_per_objfile.
2180 (read_lexical_block_scope): Likewise.
2181 (read_call_site_scope): Likewise.
2182 (read_variable): Likewise.
2183 (dwarf2_rnglists_process): Likewise.
2184 (dwarf2_ranges_process): Likewise.
2185 (dwarf2_ranges_read): Likewise.
2186 (dwarf2_record_block_ranges): Likewise.
2187 (dwarf2_add_field): Likewise.
2188 (dwarf2_add_member_fn): Likewise.
2189 (read_structure_type): Likewise.
2190 (process_structure_scope): Likewise.
2191 (read_enumeration_type): Likewise.
2192 (read_array_type): Likewise.
2193 (read_common_block): Likewise.
2194 (read_namespace_type): Likewise.
2195 (read_namespace): Likewise.
2196 (read_module_type): Likewise.
2197 (read_tag_pointer_type): Likewise.
2198 (read_tag_ptr_to_member_type): Likewise.
2199 (read_tag_string_type): Likewise.
2200 (read_subroutine_type): Likewise.
2201 (read_typedef): Likewise.
2202 (read_base_type): Likewise.
2203 (attr_to_dynamic_prop): Likewise.
2204 (read_subrange_type): Likewise.
2205 (read_unspecified_type): Likewise.
2206 (load_partial_dies): Likewise.
2207 (read_partial_die): Likewise.
2208 (find_partial_die): Likewise.
2209 (guess_partial_die_structure_name): Likewise.
2210 (fixup_partial_die): Likewise.
2211 (read_attribute_value): Likewise.
2212 (read_addr_index_from_leb128): Likewise.
2213 (dwarf2_read_addr_index): Likewise.
2214 (dwarf2_string_attr): Likewise.
2215 (lnp_state_machine::check_line_address): Likewise.
2216 (dwarf_decode_lines_1): Likewise.
2217 (dwarf_decode_lines): Likewise.
2218 (dwarf2_start_symtab): Likewise.
2219 (var_decode_location): Likewise.
2220 (new_symbol_full): Likewise.
2221 (dwarf2_const_value_data): Likewise.
2222 (dwarf2_const_value_attr): Likewise.
2223 (dwarf2_const_value): Likewise.
2224 (die_type): Likewise.
2225 (die_containing_type): Likewise.
2226 (lookup_die_type): Likewise.
2227 (guess_full_die_structure_name): Likewise.
2228 (anonymous_struct_prefix): Likewise.
2229 (dwarf2_name): Likewise.
2230 (follow_die_ref_or_sig): Likewise.
2231 (follow_die_offset): Likewise.
2232 (follow_die_ref): Likewise.
2233 (dwarf2_fetch_die_loc_sect_off): Likewise.
2234 (dwarf2_fetch_constant_bytes): Likewise.
2235 (dwarf2_fetch_die_type_sect_off): Likewise.
2236 (dwarf2_get_die_type): Likewise.
2237 (follow_die_sig): Likewise.
2238 (decode_locdesc): Likewise.
2239 (dwarf2_per_cu_objfile): Likewise.
2240 (dwarf2_per_cu_text_offset): Likewise.
2241 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2243 (set_die_type): Access objfile through
2246 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2248 * valprint.c (converted_character_d): Remove typedef.
2249 (DEF_VEC_O (converted_character_d)): Remove.
2250 (count_next_character): Use std::vector.
2251 (print_converted_chars_to_obstack): Likewise.
2252 (generic_printstr): Likewise.
2254 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2256 * xml-support.h (struct gdb_xml_value): Add constructor.
2257 <value>: Change type to unique_xmalloc_ptr.
2258 (gdb_xml_value_s): Remove typedef.
2259 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2260 (gdb_xml_element_start_handler): Change parameter type to
2262 (xml_find_attribute): Likewise.
2263 * xml-support.c (xml_find_attribute): Change parameter type to
2264 std::vector and adjust.
2265 (gdb_xml_values_cleanup): Remove.
2266 (gdb_xml_parser::start_element): Adjust to std::vector.
2267 (xinclude_start_include): Change paraeter type to std::vector
2269 * btrace.c (check_xml_btrace_version): Likewise.
2270 (parse_xml_btrace_block): Likewise.
2271 (parse_xml_btrace_pt_config_cpu): Likewise.
2272 (parse_xml_btrace_pt): Likewise.
2273 (parse_xml_btrace_conf_bts): Likewise.
2274 (parse_xml_btrace_conf_pt): Likewise.
2275 * memory-map.c (memory_map_start_memory): Likewise.
2276 (memory_map_start_property): Likewise.
2277 * osdata.c (osdata_start_osdata): Likewise.
2278 (osdata_start_item): Likewise.
2279 (osdata_start_column): Likewise.
2280 * remote.c (start_thread): Likewise.
2281 * solib-aix.c (library_list_start_library): Likewise.
2282 (library_list_start_list): Likewise.
2283 * solib-svr4.c (library_list_start_library): Likewise.
2284 (svr4_library_list_start_list): Likewise.
2285 * solib-target.c (library_list_start_segment): Likewise.
2286 (library_list_start_section): Likewise.
2287 (library_list_start_library): Likewise.
2288 (library_list_start_list): Likewise.
2289 * tracepoint.c (traceframe_info_start_memory): Likewise.
2290 (traceframe_info_start_tvar): Likewise.
2291 * xml-syscall.c (syscall_start_syscall): Likewise.
2292 * xml-tdesc.c (tdesc_start_target): Likewise.
2293 (tdesc_start_feature): Likewise.
2294 (tdesc_start_reg): Likewise.
2295 (tdesc_start_union): Likewise.
2296 (tdesc_start_struct): Likewise.
2297 (tdesc_start_flags): Likewise.
2298 (tdesc_start_enum): Likewise.
2299 (tdesc_start_field): Likewise.
2300 (tdesc_start_enum_value): Likewise.
2301 (tdesc_start_vector): Likewise.
2303 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2305 * extension.h (struct xmethod_worker) <clone>: Remove.
2306 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2308 (python_xmethod_worker::clone): Remove.
2309 * valops.c (find_overload_match): Use std::move instead of
2312 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2314 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2315 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2316 <free_xmethod_worker_data>: Remove.
2317 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2318 <get_xmethod_arg_types>: Remove.
2319 <get_xmethod_result_type>: Remove.
2320 <invoke_xmethod>: Remove.
2321 * extension.c (new_xmethod_worker): Remove.
2322 (clone_xmethod_worker): Remove.
2323 (get_matching_xmethod_workers): Return void, pass std::vector by
2325 (get_xmethod_arg_types): Rename to...
2326 (xmethod_worker::get_arg_types): ... this, and adjust.
2327 (get_xmethod_result_type): Rename to...
2328 (xmethod_worker::get_result_type): ... this, and adjust.
2329 (invoke_xmethod): Remove.
2330 (free_xmethod_worker): Remove.
2331 (free_xmethod_worker_vec): Remove.
2332 * extension.h (enum ext_lang_rc): Move here from
2334 (struct xmethod_worker): Add constructor and destructor.
2337 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2338 virtual pure methods.
2339 <get_arg_types, get_result_type>: New methods.
2340 (xmethod_worker_ptr): Remove typedef.
2341 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2342 (xmethod_worker_vec): Remove typedef.
2343 (xmethod_worker_up): New typedef.
2344 (invoke_xmethod): Remove.
2345 (clone_xmethod_worker): Remove.
2346 (free_xmethod_worker): Remove.
2347 (free_xmethod_worker_vec): Remove.
2348 (get_xmethod_arg_types): Remove.
2349 (get_xmethod_result_type): Remove.
2350 * valops.c (find_method_list): Use std::vector, don't use
2351 intermediate vector.
2352 (value_find_oload_method_list): Use std::vector.
2353 (find_overload_match): Use std::vector.
2354 (find_oload_champ): Use std::vector.
2355 * value.c (value_free): Use operator delete.
2356 (value_of_xmethod): Rename to...
2357 (value_from_xmethod): ... this. Don't assign
2358 xmethod_worker::value, take rvalue-reference.
2359 (result_type_of_xmethod): Adjust.
2360 (call_xmethod): Adjust.
2361 * value.h: Include extension.h.
2362 (struct xmethod_worker): Don't forward-declare.
2363 (value_of_xmethod): Rename to...
2364 (value_from_xmethod): ... this, take rvalue-reference.
2365 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2366 (struct python_xmethod_worker): ... this, add constructor and
2368 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2369 (gdbpy_free_xmethod_worker_data): Rename to...
2370 (python_xmethod_worker::~python_xmethod_worker): ... this and
2372 (gdbpy_clone_xmethod_worker_data): Rename to...
2373 (python_xmethod_worker::clone): ... this and adjust.
2374 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2376 (gdbpy_get_xmethod_arg_types): Rename to...
2377 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2378 (gdbpy_get_xmethod_result_type): Rename to...
2379 (python_xmethod_worker::do_get_result_type): ... this and
2381 (gdbpy_invoke_xmethod): Rename to...
2382 (python_xmethod_worker::invoke): ... this and adjust.
2383 (new_python_xmethod_worker): Rename to...
2384 (python_xmethod_worker::python_xmethod_worker): ... this and
2386 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2388 (gdbpy_free_xmethod_worker_data): Remove.
2389 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2390 (gdbpy_get_xmethod_arg_types): Remove.
2391 (gdbpy_get_xmethod_result_type): Remove.
2392 (gdbpy_invoke_xmethod): Remove.
2393 * python/python.c (python_extension_ops): Remove obsolete
2396 2018-01-05 Pedro Alves <palves@redhat.com>
2399 * common/signals-state-save-restore.c
2400 (save_original_signals_state): New parameter 'quiet'. Warn if we
2401 find a custom handler preinstalled, instead of internal erroring.
2402 But only warn if !quiet.
2403 * common/signals-state-save-restore.h
2404 (save_original_signals_state): New parameter 'quiet'.
2405 * main.c (captured_main_1): Move save_original_signals_state call
2406 after option handling, and pass QUIET.
2408 2018-01-05 Pedro Alves <palves@redhat.com>
2410 * spu-tdep.c (spu_catch_start): Pass
2411 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2413 2018-01-05 Pedro Alves <palves@redhat.com>
2416 * ada-lang.c (literal_symbol_name_matcher): New function.
2417 (ada_get_symbol_name_matcher): Use it for
2418 symbol_name_match_type::SEARCH_NAME.
2419 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
2420 it down instead of assuming symbol_name_match_type::FULL.
2421 * block.h (block_lookup_symbol): New parameter 'match_type'.
2422 * c-valprint.c (print_unpacked_pointer): Use
2423 lookup_symbol_search_name instead of lookup_symbol.
2424 * compile/compile-object-load.c (get_out_value_type): Pass down
2425 symbol_name_match_type::SEARCH_NAME.
2426 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2427 symbol_name_match_type::FULL.
2428 * cp-support.c (cp_get_symbol_name_matcher): Handle
2429 symbol_name_match_type::SEARCH_NAME.
2430 * infrun.c (insert_exception_resume_breakpoint): Use
2431 lookup_symbol_search_name.
2432 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2433 * psymtab.c (maintenance_check_psymtabs): Use
2434 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2435 * stack.c (print_frame_args): Use lookup_symbol_search_name and
2437 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2438 if symbol_name_match_type::SEARCH_NAME.
2439 (lookup_symbol_in_language): Pass down
2440 symbol_name_match_type::FULL.
2441 (lookup_symbol_search_name): New.
2442 (lookup_language_this): Pass down
2443 symbol_name_match_type::SEARCH_NAME.
2444 (lookup_symbol_aux, lookup_local_symbol): New parameter
2445 'match_type'. Pass it down.
2446 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2447 (lookup_symbol_search_name): New declaration.
2448 (lookup_symbol_in_block): New 'match_type' parameter.
2450 2018-01-05 Pedro Alves <palves@redhat.com>
2453 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2455 (ada_lookup_symbol): Reimplement in terms of
2456 ada_lookup_symbol_list, bits factored out from
2457 ada_lookup_encoded_symbol.
2459 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2461 * ada-exp.y (write_object_renaming): When subscripting an array
2462 using a symbol as the index, pass the block in call to
2463 ada_lookup_encoded_symbol when looking that symbol up.
2465 2018-01-05 Jerome Guitton <guitton@adacore.com>
2467 * ada-lang.c (ada_array_length): Use ada_index_type instead of
2470 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2472 * ada-lang.c (ada_to_fixed_value_create): Add handling of
2473 the case where VALUE_LVAL (val0) is not lval_memory.
2475 2018-01-05 Xavier Roirand <roirand@adacore.com>
2477 * ada-valprint.c (print_optional_low_bound): Handle
2478 character-indexed array printing like boolean-indexed array
2481 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2483 * NEWS: Create a new section for the next release branch.
2484 Rename the section of the current branch, now that it has
2487 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2489 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2490 * version.in: Bump version to 8.1.50.DATE-git.
2492 2018-01-03 Xavier Roirand <roirand@adacore.com>
2494 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2496 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2498 (default_exception_support_info) <catch_handlers_sym>: Add field.
2499 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2500 (ada_exception_name_addr_1): Add "catch handlers" handling.
2501 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2503 (create_excep_cond_exprs) <ex>: Add parameter.
2504 (re_set_exception): Update create_excep_cond_exprs call.
2505 (print_it_exception, print_one_exception, print_mention_exception)
2506 (print_recreate_exception): Add "catch handler" handling.
2507 (allocate_location_catch_handlers, re_set_catch_handlers)
2508 (check_status_catch_handlers, print_it_catch_handlers)
2509 (print_one_catch_handlers, print_mention_catch_handlers)
2510 (print_recreate_catch_handlers): New function.
2511 (catch_handlers_breakpoint_ops): New variable.
2512 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2513 Add parameter. Add "catch handler" handling.
2514 (ada_exception_sym_name, ada_exception_breakpoint_ops):
2515 Add "catch handler" handling.
2516 (ada_exception_catchpoint_cond_string): Add "catch handler"
2518 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2520 (catch_ada_handlers_command): New function.
2521 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2522 operations structure.
2523 (_initialize_ada_language): Add "catch handlers" command entry.
2524 * NEWS: Document "catch handlers" feature.
2526 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2528 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2529 account when creating the array type of the slice.
2530 (ada_value_slice): Likewise.
2532 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2534 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2536 (create_array_type_with_stride): Add byte_stride_prop parameter.
2537 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2538 New parameter. Update all callers in this file.
2539 (array_type_has_dynamic_stride): New function.
2540 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2541 of arrays with dynamic byte strides.
2542 * dwarf2read.c (read_array_type): Add support for dynamic
2543 DW_AT_byte_stride attributes.
2545 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2547 * dwarf2read.c (read_unspecified_type): Treat
2548 DW_TAG_enumeration_type DIEs from Ada units as stubs.
2550 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2552 Update copyright year range in all GDB files.
2554 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2556 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2557 and gdb/testsuite/gdb.base/step-line.c.
2559 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2561 * copyright.py (main): Dump the contents of
2562 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
2563 even if BY_HAND is empty.
2565 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2567 * top.c (print_gdb_version): Update Copyright year in version
2570 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2572 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
2574 For older changes see ChangeLog-2017.
2580 version-control: never