1 2018-04-06 Tom Tromey <tom@tromey.com>
3 * value.c (~value): Update.
4 (struct value) <contents>: Now unique_xmalloc_ptr.
5 (value_contents_bits_eq, allocate_value_contents)
6 (value_contents_raw, value_contents_all_raw)
7 (value_contents_for_printing, value_contents_for_printing_const)
8 (set_value_enclosing_type): Update.
10 2018-04-06 Tom Tromey <tom@tromey.com>
12 * value.c (range_s): Remove typedef, VEC.
13 (struct range): Add operator<.
14 (range_lessthan): Remove.
15 (ranges_contain): Change type.
17 (struct value) <unavailable, optimized_out>: Now std::vector.
18 (value_entirely_available)
19 (value_entirely_covered_by_range_vector)
20 (value_entirely_unavailable, value_entirely_optimized_out):
22 (insert_into_bit_range_vector): Change argument type.
23 (find_first_range_overlap): Likewise.
24 (struct ranges_and_idx, value_contents_bits_eq)
25 (require_not_optimized_out, require_available): Update.
26 (ranges_copy_adjusted): Change argument types.
27 (value_optimized_out, value_copy, value_fetch_lazy): Update.
29 2018-04-06 Tom Tromey <tom@tromey.com>
31 * value.c (~value): Update.
32 (struct value) <parent>: Now a value_ref_ptr.
33 (value_parent, set_value_parent, value_address, value_copy):
36 2018-04-06 Tom Tromey <tom@tromey.com>
38 * value.c (struct value): Add constructor, destructor, and member
40 (allocate_value_lazy, value_decref): Update.
42 2018-04-06 Tom Tromey <tom@tromey.com>
44 * value.c (struct value) <released, next>: Remove.
45 (all_values): Now a std::vector.
46 (allocate_value_lazy): Update.
48 (value_mark, value_free_to_mark, release_value)
49 (value_release_to_mark): Update.
51 2018-04-06 Tom Tromey <tom@tromey.com>
53 * value.h (fetch_subexp_value, value_release_to_mark): Update.
54 (free_value_chain): Remove.
55 * value.c (free_value_chain): Remove.
56 (value_release_to_mark): Return a std::vector.
57 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
59 (check_condition): Update.
60 * eval.c (fetch_subexp_value): Change "val_chain" to a
62 * breakpoint.c (update_watchpoint): Update.
63 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
65 2018-04-06 Tom Tromey <tom@tromey.com>
67 * value.h (free_all_values): Remove.
68 * value.c (free_all_values): Remove.
70 2018-04-06 Tom Tromey <tom@tromey.com>
72 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
73 (value_history_chain, value_history_count): Remove.
74 (value_history): New global.
75 (record_latest_value, access_value_history, show_values)
76 (preserve_values): Update.
78 2018-04-06 Tom Tromey <tom@tromey.com>
80 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
81 * varobj.c (varobj_set_display_format, varobj_set_value)
82 (install_default_visualizer, construct_visualizer)
83 (install_new_value, ~varobj, varobj_get_value_type)
84 (my_value_of_variable, varobj_editable_p): Update.
85 * c-varobj.c (c_describe_child, c_value_of_variable)
86 (cplus_number_of_children, cplus_describe_child): Update.
87 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
88 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
89 (ada_value_of_variable, ada_value_is_changeable_p): Update.
91 2018-04-06 Tom Tromey <tom@tromey.com>
93 * printcmd.c (last_examine_address): Change type to
95 (do_examine, x_command): Update.
97 2018-04-06 Tom Tromey <tom@tromey.com>
99 * value.c (release_value): Update.
100 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
101 (struct bpstats) <val>: Now a value_ref_ptr.
102 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
103 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
104 (~watchpoint, print_it_watchpoint, watch_command_1)
105 (invalidate_bp_value_on_memory_change): Update.
107 2018-04-06 Tom Tromey <tom@tromey.com>
109 * varobj.c (varobj_clear_saved_item)
110 (update_dynamic_varobj_children, install_new_value, ~varobj):
112 * value.h (value_incref): Move declaration earlier.
113 (value_decref): Rename from value_free.
114 (struct value_ref_policy): New.
115 (value_ref_ptr): New typedef.
116 (struct value_deleter): Remove.
117 (gdb_value_up): Remove typedef.
118 (release_value): Change return type.
119 (release_value_or_incref): Remove.
120 * value.c (set_value_parent): Update.
121 (value_incref): Change return type.
122 (value_decref): Rename from value_free.
123 (value_free_to_mark, free_all_values, free_value_chain): Update.
124 (release_value): Return value_ref_ptr.
125 (release_value_or_incref): Remove.
126 (record_latest_value, set_internalvar, clear_internalvar):
128 * stack.c (info_frame_command): Don't call value_free.
129 * python/py-value.c (valpy_dealloc, valpy_new)
130 (value_to_value_object): Update.
131 * printcmd.c (do_examine): Update.
132 * opencl-lang.c (lval_func_free_closure): Update.
133 * mi/mi-main.c (register_changed_p): Don't call value_free.
134 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
135 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
136 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
138 * guile/scm-value.c (vlscm_free_value_smob)
139 (vlscm_scm_from_value): Update.
140 * frame.c (frame_register_unwind, frame_unwind_register_signed)
141 (frame_unwind_register_unsigned, get_frame_register_bytes)
142 (put_frame_register_bytes): Don't call value_free.
143 * findvar.c (address_from_register): Don't call value_free.
144 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
145 * dwarf2loc.c (entry_data_value_free_closure)
146 (value_of_dwarf_reg_entry, free_pieced_value_closure)
147 (dwarf2_evaluate_loc_desc_full): Update.
148 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
149 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
150 (~watchpoint, watch_command_1)
151 (invalidate_bp_value_on_memory_change): Update.
152 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
154 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
157 * warning.m4: Add -Wno-error=deprecated-register.
158 * configure: Re-generate.
160 2018-04-05 Tom Tromey <tom@tromey.com>
162 * linespec.h: Remove include of "vec.h".
164 2018-04-05 Tom Tromey <tom@tromey.com>
166 * linespec.c (typep): Remove typedef.
167 (find_methods, find_superclass_methods): Take a std::vector.
168 (find_method): Use std::vector.
170 2018-04-05 Tom Tromey <tom@tromey.com>
172 * utils.c (compare_strings): Remove.
173 * utils.h (compare_strings): Remove.
174 * objc-lang.h (find_imps): Update.
175 * objc-lang.c (find_methods): Take a std::vector.
176 (uniquify_strings, find_imps): Likewise.
177 * linespec.c (find_methods): Take a std::vector.
178 (decode_objc): Use std::vector.
179 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
181 (find_method, find_function_symbols): Use std::vector.
183 2018-04-05 Tom Tromey <tom@tromey.com>
185 * completer.c (completion_tracker::completion_tracker): Remove
187 (completion_tracker::discard_completions): Likewise.
188 * breakpoint.c (ambiguous_names_p): Remove cast.
189 * ada-lang.c (_initialize_ada_language): Remove cast.
190 * utils.h (streq): Update.
191 (streq_hash): Add new declaration.
192 * utils.c (streq): Return bool.
193 (streq_hash): New function.
195 2018-04-05 Tom Tromey <tom@tromey.com>
197 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
198 Remove a string copy.
200 2018-04-05 Tom Tromey <tom@tromey.com>
202 * linespec.c (filter_results): Use std::vector.
203 (decode_line_2, decode_line_full): Update.
205 2018-04-05 Tom Tromey <tom@tromey.com>
207 * linespec.c (canonical_to_fullform): Return std::string.
208 (filter_results): Update.
209 (struct decode_line_2_item): Add constructor.
210 <fullform, displayform>: Now std::string.
211 (decode_line_2_compare_items): Now a std::sort comparator.
212 (decode_line_2): Update.
214 2018-04-05 Tom Tromey <tom@tromey.com>
216 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
217 (unexpected_linespec_error): Update.
218 (linespec_parse_basic, parse_linespec): Update.
220 2018-04-05 Tom Tromey <tom@tromey.com>
222 * linespec.c (linespec_parse_basic): Reindent.
224 2018-04-05 Tom Tromey <tom@tromey.com>
226 * minsyms.h (iterate_over_minimal_symbols): Update.
227 * minsyms.c (iterate_over_minimal_symbols): Take a
229 * linespec.c (struct collect_minsyms): Remove.
230 (compare_msyms): Now a std::sort comparator.
231 (add_minsym): Add parameters.
232 (search_minsyms_for_name): Update. Use std::vector.
234 2018-04-03 Tom Tromey <tom@tromey.com>
236 * mipsread.c (read_alphacoff_dynamic_symtab): Use
239 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
241 * MAINTAINERS (Write After Approval): Add Weimin Pan.
243 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
246 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
247 printing static type.
249 2018-04-01 Tom Tromey <tom@tromey.com>
251 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
252 (rs6000_xfer_shared_libraries): Update.
254 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
256 * common/gdb_vecs.h (char_ptr): Remove.
257 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
259 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
261 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
263 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
265 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
267 * tracepoint.h (struct uploaded_tp): Initialize fields.
268 <actions, step_actions, cmd_strings>: Change type to
270 * tracepoint.c (get_uploaded_tp): Allocate with new.
271 (free_uploaded_tps): Free with delete.
272 (parse_tracepoint_definition): Adjust to std::vector change.
273 * breakpoint.c (read_uploaded_action): Likewise.
274 (create_tracepoint_from_upload): Likewise.
275 * ctf.c (ctf_write_uploaded_tp): Likewise.
276 (SET_ARRAY_FIELD): Likewise.
277 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
279 2018-03-30 Tom Tromey <tom@tromey.com>
281 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
283 (svr4_keep_data_in_core): Update.
284 (svr4_read_so_list): Update.
286 2018-03-30 Tom Tromey <tom@tromey.com>
288 * windows-nat.c (handle_output_debug_string, handle_exception):
290 * target.h (target_read_string): Update.
291 * target.c (target_read_string): Change "string" to
293 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
295 * solib-frv.c (frv_current_sos): Update.
296 * solib-dsbt.c (dsbt_current_sos): Update.
297 * solib-darwin.c (darwin_current_sos): Update.
298 * linux-thread-db.c (inferior_has_bug): Update.
299 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
300 Update. Remove alloca.
301 * ada-lang.c (ada_main_name): Update.
303 2018-03-30 Tom Tromey <tom@tromey.com>
305 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
306 (struct dwo_file_deleter): New.
307 (dwo_file_up): New typedef.
308 (open_and_init_dwo_file): Use dwo_file_up.
309 (free_dwo_file_cleanup): Remove.
311 2018-03-30 Tom Tromey <tom@tromey.com>
313 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
314 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
316 2018-03-30 Tom Tromey <tom@tromey.com>
318 * dwarf2read.c (class free_cached_comp_units): New class.
319 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
320 (free_cached_comp_units): Remove function.
322 2018-03-30 Tom Tromey <tom@tromey.com>
324 * utils.h (make_cleanup_unpush_target): Remove.
325 * inf-ptrace.c (struct target_unpusher): New.
326 (target_unpush_up) New typedef.
327 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
329 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
331 2018-03-27 Tom Tromey <tom@tromey.com>
333 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
335 2018-03-27 Pedro Alves <palves@redhat.com>
336 Tom Tromey <tom@tromey.com>
338 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
339 destructor. Now a class.
340 (gdb_readline_wrapper_cleanup): Remove function.
341 (gdb_readline_wrapper): Remove cleanups.
343 2018-03-27 Tom Tromey <tom@tromey.com>
345 * typeprint.h (struct type_print_options) <local_typedefs,
346 global_typedefs>: Remove "struct" keyword.
347 (class typedef_hash_table): New class.
348 (recursively_update_typedef_hash, add_template_parameters)
349 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
350 (find_typedef_in_hash): Don't declare.
351 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
352 (typedef_hash_table::recursively_update): Rename from
353 recursively_update_typedef_hash. Now a member.
354 (typedef_hash_table::add_template_parameters): Rename from
355 add_template_parameters. Now a member.
356 (typedef_hash_table::typedef_hash_table): Now a constructor;
357 rename from create_typedef_hash.
358 (typedef_hash_table::~typedef_hash_table): Now a destructor;
359 rename from free_typedef_hash.
360 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
361 (do_free_global_table): Remove.
362 (typedef_hash_table::typedef_hash_table): New constructor; renamed
363 from copy_type_recursive.
364 (create_global_typedef_table): Remove.
365 (typedef_hash_table::find_global_typedef): Now a member of
367 (typedef_hash_table::find_typedef): Rename from
368 find_typedef_in_hash; now a member.
369 (whatis_exp): Update.
370 * extension.h (struct ext_lang_type_printers): Add constructor and
372 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
374 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
375 Now a constructor; rename from start_ext_lang_type_printers.
376 (ext_lang_type_printers): Now a destructor; rename from
377 free_ext_lang_type_printers.
378 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
380 (c_type_print_base_struct_union): Update. Remove cleanups.
382 2018-03-27 Tom Tromey <tom@tromey.com>
384 * dwarf-index-write.c: Include <cmath>.
386 2018-03-27 Joel Brobecker <brobecker@adacore.com>
388 * NEWS: Add entry describing new "set|show varsize-limit" command.
389 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
391 * printcmd.c (_initialize_printcmd): Add "set var" alias of
394 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
396 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
398 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
399 * dwarf-index-common.c: New file.
400 * dwarf-index-common.h: New file.
401 * dwarf-index-write.c: New file.
402 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
403 (struct dwarf2_section_info): Move from here.
404 (dwarf2_section_info_def): Likewise.
405 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
406 (offset_type): Likewise.
407 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
408 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
409 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
410 (byte_swap): Likewise.
411 (MAYBE_SWAP): Likewise.
412 (dwarf2_per_cu_ptr): Likewise.
413 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
414 (struct tu_stats): Likewise.
415 (struct dwarf2_per_objfile): Likewise.
416 (struct dwarf2_per_cu_data): Likewise.
417 (struct signatured_type): Likewise.
418 (sig_type_ptr): Likewise.
419 (DEF_VEC_P (sig_type_ptr)): Likewise.
420 (INDEX4_SUFFIX): Likewise.
421 (INDEX5_SUFFIX): Likewise.
422 (DEBUG_STR_SUFFIX): Likewise.
423 (dwarf2_read_section): Make non-static.
424 (mapped_index_string_hash): Move from here.
425 (dwarf5_djb_hash): Likewise.
426 (file_write): Likewise.
427 (class data_buf): Likewise.
428 (struct symtab_index_entry): Likewise.
429 (struct mapped_symtab): Likewise.
430 (find_slot): Likewise.
431 (hash_expand): Likewise.
432 (add_index_entry): Likewise.
433 (uniquify_cu_indices): Likewise.
434 (class c_str_view): Likewise.
435 (class c_str_view_hasher): Likewise.
436 (class vector_hasher): Likewise.
437 (write_hash_table): Likewise.
438 (psym_index_map): Likewise.
439 (struct addrmap_index_data): Likewise.
440 (add_address_entry): Likewise.
441 (add_address_entry_worker): Likewise.
442 (write_address_map): Likewise.
443 (symbol_kind): Likewise.
444 (write_psymbols): Likewise.
445 (struct signatured_type_index_data): Likewise.
446 (write_one_signatured_type): Likewise.
447 (recursively_count_psymbols): Likewise.
448 (recursively_write_psymbols): Likewise.
449 (class debug_names): Likewise.
450 (check_dwarf64_offsets): Likewise.
451 (psyms_seen_size): Likewise.
452 (write_gdbindex): Likewise.
453 (write_debug_names): Likewise.
454 (assert_file_size): Likewise.
455 (write_psymtabs_to_index): Likewise.
456 (save_gdb_index_command): Likewise.
457 (_initialize_dwarf2_read): Don't register the "save gdb-index"
459 * dwarf2read.h: New file.
461 2018-03-27 Joel Brobecker <brobecker@adacore.com>
464 * dwarf2read.c (dwarf2_physname): Do not return the demangled
465 symbol name if the CU's language stores symbol names in linkage
467 * language.h (struct language_defn)
468 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
469 all instances of this struct.
471 2018-03-26 Tom Tromey <tom@tromey.com>
473 * stack.c (backtrace_command_1): Remove verbose code.
475 2018-03-26 Tom Tromey <tom@tromey.com>
477 * python/py-framefilter.c (py_print_type): Don't catch
478 exceptions. Return void.
479 (py_print_value): Likewise.
480 (py_print_single_arg): Likewise.
481 (enumerate_args): Don't catch exceptions.
482 (py_print_args): Likewise.
483 (py_print_frame): Likewise.
484 (gdbpy_apply_frame_filter): Catch exceptions here.
486 2018-03-26 Tom Tromey <tom@tromey.com>
488 * stack.c (_initialize_stack): Remove trailing newlines from help
489 text. Add "Usage" line to "backtrace" help.
491 2018-03-26 Tom Tromey <tom@tromey.com>
494 * python/py-framefilter.c (py_print_args): Call wrap_hint.
496 2018-03-26 Tom Tromey <tom@tromey.com>
498 * python/py-framefilter.c (py_print_single_arg): Return
499 EXT_LANG_BT_ERROR from catch.
501 2018-03-26 Tom Tromey <tom@tromey.com>
504 * stack.c (backtrace_command_1): Move some code into no-filters
507 2018-03-26 Tom Tromey <tom@tromey.com>
509 * python/py-framefilter.c (throw_quit_or_print_exception): New
511 (gdbpy_apply_frame_filter): Use it.
513 2018-03-26 Tom Tromey <tom@tromey.com>
516 * python/py-framefilter.c (py_print_type, py_print_value)
517 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
520 2018-03-26 Tom Tromey <tom@tromey.com>
522 * python/py-framefilter.c (enumerate_args): Use
523 gdb::unique_xmalloc_ptr.
525 2018-03-26 Tom Tromey <tom@tromey.com>
527 * python/py-framefilter.c (py_print_frame): Return
529 (gdbpy_apply_frame_filter): Update comment.
530 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
532 <EXT_LANG_BT_NO_FILTERS>: Change value.
534 2018-03-26 Tom Tromey <tom@tromey.com>
537 * stack.c (backtrace_command): Parse "hide" argument.
538 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
539 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
542 2018-03-26 Tom Tromey <tom@tromey.com>
544 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
546 (backtrace_command): Remove "fulltrace", add "flags".
548 2018-03-26 Tom Tromey <tom@tromey.com>
550 * stack.c (backtrace_command): Rewrite command line parsing.
552 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
554 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
556 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
558 * filename-seen-cache.h: Add include guard.
560 2018-03-26 Keith Seitz <keiths@redhat.com>
562 * symfile.c (place_section): Remove "struct" from section_addr_info
564 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
565 "struct" keyword from section_addr_info.
567 2018-03-26 Alan Hayward <alan.hayward@arm.com>
569 * regformats/regdef.h (reg): Add constructors.
571 2018-03-25 Pedro Alves <palves@redhat.com>
573 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
574 if then/else bodies in var_func_name extraction.
576 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
578 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
579 lookup_minimal_symbol() to find symbol entry.
580 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
582 2018-03-23 Keith Seitz <keiths@redhat.com>
585 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
586 nested type definitions for C++, too.
588 2018-03-23 Tom Tromey <tom@tromey.com>
590 * machoread.c (struct oso_el): Add a constructor. Don't define as
592 (macho_register_oso): Remove.
593 (macho_symtab_read): Take a std::vector.
594 (oso_el_compare_name): Now a std::sort comparator.
595 (macho_symfile_read_all_oso): Take a std::vector.
596 (macho_symfile_read): Use std::vector. Remove cleanups.
598 2018-03-22 Tom Tromey <tom@tromey.com>
600 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
601 (record_full_goto_bookmark): Use std::string.
603 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
606 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
609 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
611 * rs6000-tdep.c (store_insn_p): New function.
612 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
613 and cr_reg to their unshifted values. Use store_insn_p to
614 match LR saves using either R1 or fdata->alloca_reg. Use
615 store_insn_p to match CR saves. Set alloca_reg_offset
616 when alloca_reg and framep are set. Remove lr_reg shift
617 when assigning to fdata->lr_register.
619 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
621 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
622 command line args instead of emitting a warning.
624 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
626 * tracepoint.h (struct static_tracepoint_marker): Initialize
627 fields, define default constructor, move constructor and move
628 assignment, disable the rest.
629 <str_id, extra>: Make std::string.
630 (release_static_tracepoint_marker): Remove.
631 (free_current_marker): Remove.
632 * tracepoint.c (free_current_marker): Remove.
633 (parse_static_tracepoint_marker_definition): Adjust to
634 std::string, use new hex2str overload.
635 (release_static_tracepoint_marker): Remove.
636 (print_one_static_tracepoint_marker): Get marker by reference
637 and adjust to std::string.
638 (info_static_tracepoint_markers_command): Adjust to std::vector
640 * target.h (static_tracepoint_marker_p): Remove typedef.
641 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
642 (struct target_ops) <to_static_tracepoint_marker_at>: Return
644 <to_static_tracepoint_markers_by_strid>: Return std::vector.
646 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
647 (target_debug_print_std_vector_static_tracepoint_marker): New.
648 (target_debug_print_struct_static_tracepoint_marker_p): Rename
650 (target_debug_print_static_tracepoint_marker_p): ... this.
651 * target-delegates.c: Re-generate.
652 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
654 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
655 (decode_static_tracepoint_spec): Adjust to std::vector.
656 (tracepoint_print_one_detail): Adjust to std::string.
657 (strace_marker_decode_location): Adjust to std::string.
658 (update_static_tracepoint): Adjust to std::string, remove call
659 to release_static_tracepoint_marker.
660 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
661 Adjust to std::vector.
662 * remote.c (remote_static_tracepoint_marker_at): Return bool.
663 (remote_static_tracepoint_markers_by_strid): Adjust to
665 * common/rsp-low.h (hex2str): New overload with explicit count
667 * common/rsp-low.c (hex2str): New overload with explicit count
669 * unittests/rsp-low-selftests.c (test_hex2str): New function.
670 (_initialize_rsp_low_selftests): Add test_hex2str test.
671 * unittests/tracepoint-selftests.c
672 (test_parse_static_tracepoint_marker_definition): Adjust to
675 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
677 * tracepoint.c (parse_static_tracepoint_marker_definition):
678 Consider case where the definition is followed by more
680 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
681 tracepoint-selftests.c.
682 * unittests/tracepoint-selftests.c: New.
684 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
686 * MAINTAINERS (Write After Approval): Add Pedro Franco de
689 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
691 * symtab.c (find_pc_sect_line): fixed indentation.
693 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
695 * symtab.c (find_pc_sect_line): now uses binary search.
697 2018-03-19 Tom Tromey <tom@tromey.com>
699 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
702 2018-03-19 Pedro Alves <palves@redhat.com>
703 Tom Tromey <tom@tromey.com>
705 * unittests/observable-selftests.c: New file.
706 * common/observable.h: New file.
707 * observable.h: New file.
708 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
709 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
710 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
711 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
712 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
713 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
714 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
715 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
716 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
717 python/py-breakpoint.c, python/py-finishbreakpoint.c,
718 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
719 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
720 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
721 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
722 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
723 tui/tui-interp.c, valops.c: Update all users.
724 * tui/tui-hooks.c (tui_bp_created_observer)
725 (tui_bp_deleted_observer, tui_bp_modified_observer)
726 (tui_inferior_exit_observer, tui_before_prompt_observer)
727 (tui_normal_stop_observer, tui_register_changed_observer):
729 (tui_observers_token): New global.
730 (attach_or_detach, tui_attach_detach_observers): New functions.
731 (tui_install_hooks, tui_remove_hooks): Use
732 tui_attach_detach_observers.
733 * record-btrace.c (record_btrace_thread_observer): Remove.
734 (record_btrace_thread_observer_token): New global.
735 * observer.sh: Remove.
736 * observer.c: Rename to observable.c.
737 * observable.c (namespace gdb_observers): Define new objects.
738 (observer_debug): Move into gdb_observers namespace.
739 (struct observer, struct observer_list, xalloc_observer_list_node)
740 (xfree_observer_list_node, generic_observer_attach)
741 (generic_observer_detach, generic_observer_notify): Remove.
742 (_initialize_observer): Update.
743 Don't include observer.inc.
744 * Makefile.in (generated_files): Remove observer.h, observer.inc.
745 (clean mostlyclean): Likewise.
746 (observer.h, observer.inc): Remove targets.
747 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
748 (COMMON_SFILES): Use observable.c, not observer.c.
749 * .gitignore: Remove observer.h.
751 2018-03-18 Tom Tromey <tom@tromey.com>
753 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
755 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
757 2018-03-17 Tom Tromey <tom@tromey.com>
759 * auto-load.c (auto_load_objfile_script_1): Use std::string.
761 2018-03-17 Tom Tromey <tom@tromey.com>
763 * target.c (class scoped_target_fd): New.
764 (target_fileio_close_cleanup): Remove.
765 (target_fileio_read_alloc_1): Use scoped_target_fd.
767 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
769 * silent-rules.mk: New.
770 * Makefile.in: Include silent-rules.mk
771 (srcdir, VPATH, top_srcdir): Move up.
772 (COMPILE): Add ECHO_CXX.
773 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
774 (init.c): Add ECHO_INIT_C.
775 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
776 (version.c): Add ECHO_GEN.
777 (printcmd.o): Add ECHO_CXX.
778 (target-float.o): Add ECHO_CXX.
779 (ada-exp.o): Add ECHO_CXX.
780 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
781 (insight$(EXEEXT)): Add ECHO_CXXLD.
782 * gnulib/configure.ac: Add AM_SILENT_RULES.
783 * gnulib/aclocal.m4: Re-generate.
784 * gnulib/configure: Re-generate.
785 * gnulib/import/Makefile.in: Re-generate.
787 2018-03-16 Tom Tromey <tom@tromey.com>
789 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
790 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
791 * utils.c (do_free_section_addr_info)
792 (make_cleanup_free_section_addr_info): Remove.
793 * symfile.h (struct other_sections): Add constructor.
794 (struct section_addr_info): Remove.
795 (section_addr_info): New typedef.
796 (struct sym_fns) <sym_offsets>: Change type of parameter.
797 (build_section_addr_info_from_objfile)
798 (relative_addr_info_to_section_offsets, addr_info_make_relative)
799 (default_symfile_offsets, symbol_file_add)
800 (symbol_file_add_from_bfd)
801 (build_section_addr_info_from_section_table): Update.
802 (alloc_section_addr_info, free_section_addr_info): Don't declare.
803 * symfile.c (alloc_section_addr_info): Remove.
804 (build_section_addr_info_from_section_table): Change return type.
806 (build_section_addr_info_from_bfd)
807 (build_section_addr_info_from_objfile): Likewise.
808 (free_section_addr_info): Remove.
809 (relative_addr_info_to_section_offsets): Change type of "addrs".
810 (addrs_section_compar): Now a std::sort comparator.
811 (addrs_section_sort): Change return type.
812 (addr_info_make_relative): Change type of "addrs". Update.
813 (default_symfile_offsets, syms_from_objfile_1)
814 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
815 (symbol_file_add_separate): Update.
816 (symbol_file_add): Change type of "addrs". Update.
817 (add_symbol_file_command): Update. Remove cleanups.
818 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
820 * symfile-debug.c (debug_sym_offsets): Change type of "info".
821 * solib.c (solib_read_symbols): Update.
822 * objfiles.c (objfile_relocate): Update. Remove cleanups.
823 * machoread.c (macho_symfile_offsets): Update.
824 * jit.c (jit_bfd_try_read_symtab): Update.
826 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
828 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
829 unittests/utils-selftests.c.
830 * unittests/utils-selftests.c: New file.
832 2018-03-14 Tom Tromey <tom@tromey.com>
835 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
838 2018-03-14 Tom Tromey <tom@tromey.com>
841 * printcmd.c (printf_pointer): Allow "-" in format.
843 2018-03-14 Tom Tromey <tom@tromey.com>
845 * printcmd.c (_initialize_printcmd): Add usage to printf.
847 2018-03-14 Yao Qi <qiyao@sourceware.org>
849 * MAINTAINERS: Update my email address.
851 2018-03-13 Tom Tromey <tom@tromey.com>
853 * machoread.c (macho_check_dsym): Change filenamep to a
855 (macho_symfile_read): Update.
856 * symfile.c (load_command): Use std::string.
858 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
860 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
861 to error message string.
862 (riscv_register_name): Use xsnprintf instead of sprintf.
863 (riscv_insn::fetch_instruction): Use gdb_assert instead of
865 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
867 (riscv_push_dummy_call): Likewise.
869 2018-03-12 Tom Tromey <tom@tromey.com>
871 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
872 Use gdb::byte_vector.
873 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
875 2018-03-12 Yao Qi <yao.qi@linaro.org>
877 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
878 parameter type to readable_regcache.
879 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
882 2018-03-11 Tom Tromey <tom@tromey.com>
884 * dwarf2read.c (struct nextfield): Add initializers.
885 (struct nextfnfield): Remove.
886 (struct fnfieldlist): Add initializers. Remove "length" and
887 "head", use std::vector.
888 (struct decl_field_list): Remove.
889 (struct field_info): Add initializers.
890 <fields, baseclasses>: Now std::vector.
891 <nbaseclasses, nfnfields, typedef_field_list_count,
892 nested_types_list_count>: Remove.
893 (dwarf2_add_field, dwarf2_add_type_defn)
894 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
895 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
896 (process_structure_scope): Update.
898 2018-03-11 Tom Tromey <tom@tromey.com>
900 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
901 for use by std::sort.
902 (build_type_psymtabs_1): Use std::vector.
904 2018-03-09 Eli Zaretskii <eliz@gnu.org>
906 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
907 and LIBMPFR in the printed configuration.
909 2018-03-08 Tom Tromey <tom@tromey.com>
911 * source.c (get_filename_and_charpos): Use scoped_fd.
912 * nto-procfs.c (procfs_open_1): Use scoped_fd.
913 (procfs_pidlist): Likewise.
914 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
915 (iterate_over_mappings): Likewise.
917 2018-03-08 Tom Tromey <tom@tromey.com>
919 * infcall.c (struct call_return_meta_info)
920 <stack_temporaries_enabled>: Remove.
921 (get_call_return_value, call_function_by_hand_dummy): Update.
922 * thread.c (disable_thread_stack_temporaries): Remove.
923 (enable_thread_stack_temporaries): Remove.
924 (thread_stack_temporaries_enabled_p): Return bool.
925 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
926 (get_last_thread_stack_temporary): Update.
927 * eval.c (evaluate_subexp): Update.
928 * gdbthread.h (class enable_thread_stack_temporaries): Now a
929 class, not a function.
930 (value_ptr, value_vec): Remove typedefs.
931 (class thread_info) <stack_temporaries_enabled>: Now bool.
932 <stack_temporaries>: Now a std::vector.
933 (thread_stack_temporaries_enabled_p)
934 (value_in_thread_stack_temporaries): Return bool.
936 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
938 * remote.c (putpkt_binary): Fix omitted bytes reporting.
939 (getpkt_or_notif_sane_1): Likewise.
941 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
943 * build-id.c (build_id_to_debug_bfd): Use std::string.
945 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
947 * build-id.c (find_separate_debug_file_by_buildid): Return
949 * build-id.h (find_separate_debug_file_by_buildid): Return
951 * coffread.c (coff_symfile_read): Adjust to std::string.
952 * elfread.c (elf_symfile_read): Adjust to std::string.
953 * symfile.c (separate_debug_file_exists): Change parameter to
955 (find_separate_debug_file): Return std::string.
956 (find_separate_debug_file_by_debuglink): Return std::string.
957 * symfile.h (find_separate_debug_file_by_debuglink): Return
960 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
962 * common/xml-utils.c (xml_escape_text): Move code to...
963 (xml_escape_text_append): ... this new function.
964 * common/xml-utils.h (xml_escape_text_append): New declaration.
965 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
967 (_initialize_xml_utils): register test_xml_escape_text_append as
970 2018-03-07 Alan Hayward <alan.hayward@arm.com>
972 * defs.h: Remove MAX_REGISTER_SIZE.
973 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
975 * python/py-unwind.c (pyuw_sniffer): Likewise.
977 2018-03-07 Tom Tromey <tom@tromey.com>
979 * linux-tdep.c (linux_info_proc): Update.
980 * target.h (struct target_ops) <to_fileio_readlink>: Return
982 (target_fileio_readlink): Return optional<string>.
983 * remote.c (remote_hostio_readlink): Return optional<string>.
984 * inf-child.c (inf_child_fileio_readlink): Return
986 * target.c (target_fileio_readlink): Return optional<string>.
988 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
990 * regcache.c (cooked_read_test): Add riscv to the list of
991 architectures that have a save_reggroup.
993 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
995 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
996 value is not a dynamic class object.
998 2018-03-06 Tom Tromey <tom@tromey.com>
1000 * rust-exp.y: Formatting fixes.
1002 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1004 * riscv-tdep.c (riscv_register_name): Remove target description
1006 (riscv_gdbarch_init): Remove target description check.
1008 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1010 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1012 * riscv-tdep.h: Likewise.
1014 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1016 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1017 (riscv_pseudo_register_write): Delete.
1018 (riscv_gdbarch_init): Remove all use of pseudo registers.
1020 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1022 * record-btrace.c (btrace_print_lines): Replace cleanup
1023 parameter with RAII equivalents.
1024 (btrace_insn_history): Replace cleanup with RAII equivalents.
1025 * ui-out.h (make_cleanup_ui_out_list_begin_end,
1026 make_cleanup_ui_out_tuple_begin_end): Remove.
1027 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1028 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1029 make_cleanup_ui_out_list_begin_end): Remove.
1031 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1033 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1034 parameter types to std::vector. Use bool.
1035 (record_btrace_wait): Replace VEC(tp_t) with
1036 std::vector<thread_info *>.
1037 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1039 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1041 * record-btrace.c (record_btrace_disable_callback): Remove.
1042 (struct scoped_btrace_disable): New.
1043 (record_btrace_open): Use scoped_btrace_disable.
1045 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1047 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1048 reading values from registers.
1050 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1052 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1055 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1057 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1058 change parameter type. Use GDB's print functions, and use
1059 core_addr_to_string where appropriate.
1060 (riscv_push_dummy_call): Use core_addr_to_string where
1061 appropriate, update call to riscv_print_arg_location, and reindent
1063 (riscv_return_value): Update call to riscv_print_arg_location.
1065 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1066 Tim Newsome <tim@sifive.com>
1067 Albert Ou <a0u@eecs.berkeley.edu>
1068 Darius Rad <darius@bluespec.com>
1070 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1071 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1072 (ALLDEPFILES): Add riscv-tdep.c
1073 * configure.tgt: Add riscv support.
1074 * riscv-tdep.c: New file.
1075 * riscv-tdep.h: New file.
1076 * NEWS: Mention new target.
1077 * MAINTAINERS: Add entry for riscv.
1079 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1081 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1082 fields within aggregates.
1084 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1086 * record-btrace.c (btrace_print_lines): Change type of flags to
1087 gdb_disassembly_flags.
1089 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1091 * fbsd-nat.c: Include "inf-ptrace.h".
1092 (USE_SIGTRAP_SIGINFO): Conditionally define.
1093 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1094 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1095 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1097 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1099 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1101 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1102 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1103 "supports_stopped_by_hw_breakpoint" target methods.
1105 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1107 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1108 * fbsd-nat.c (debug_fbsd_nat): New variable.
1109 (show_fbsd_nat_debug): New function.
1110 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1111 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1113 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1115 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1116 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1118 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1119 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1122 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1124 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1125 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1127 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1129 * charset.c (struct charset_vector): New.
1130 (charsets): Change type to charset_vector.
1131 (find_charset_names): Adjust.
1133 (_initialize_charset): Adjust.
1135 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1137 * progspace.h (struct program_space) <deleted_solibs>: Change
1138 type to std::vector<std::string>.
1139 * progspace.c (clear_program_space_solib_cache): Adjust.
1140 * breakpoint.c (print_solib_event): Adjust.
1141 (check_status_catch_solib): Adjust.
1142 * solib.c (update_solib_list): Adjust.
1143 * ui-out.h (class ui_out) <field_string>: New overload.
1144 * ui-out.c (ui_out::field_string): New overload.
1146 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1148 * progspace.h (struct program_space): Add constructor and
1149 destructor, initialize fields.
1150 (add_program_space): Remove.
1151 * progspace.c (add_program_space): Rename to...
1152 (program_space::program_space): ... this.
1153 (release_program_space): Rename to...
1154 (program_space::~program_space): ... this.
1155 (delete_program_space): Use delete to delete program_space.
1156 (initialize_progspace): Use new to allocate program_space.
1157 * inferior.c (add_inferior_with_spaces): Likewise.
1158 (clone_inferior_command): Likewise.
1159 * infrun.c (follow_fork_inferior): Likewise.
1160 (handle_vfork_child_exec_or_exit): Likewise.
1162 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1164 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1165 (delim_string_to_char_ptr_vec): Return std::vector of
1166 gdb::unique_xmalloc_ptr.
1167 (dirnames_to_char_ptr_vec_append): Take std::vector of
1168 gdb::unique_xmalloc_ptr.
1169 (dirnames_to_char_ptr_vec): Return std::vector of
1170 gdb::unique_xmalloc_ptr.
1171 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1172 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1173 (delim_string_to_char_ptr_vec): Return an std::vector of
1174 gdb::unique_xmalloc_ptr, adjust the code.
1175 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1176 gdb::unique_xmalloc_ptr, adjust the code.
1177 (dirnames_to_char_ptr_vec): Return an std::vector of
1178 gdb::unique_xmalloc_ptr, adjust the code.
1179 * auto-load.c (auto_load_safe_path_vec): Change type to
1180 std::vector of gdb::unique_xmalloc_ptr.
1181 (auto_load_expand_dir_vars): Return an std::vector of
1182 gdb::unique_xmalloc_ptr, adjust the code.
1183 (auto_load_safe_path_vec_update): Adjust.
1184 (filename_is_in_auto_load_safe_path_vec): Adjust.
1185 (auto_load_objfile_script_1): Adjust.
1186 * build-id.c (build_id_to_debug_bfd): Adjust.
1187 * linux-thread-db.c (thread_db_load_search): Adjust.
1188 * source.c (add_path): Adjust.
1190 * symfile.c (find_separate_debug_file): Adjust.
1191 * utils.c (do_free_char_ptr_vec): Remove.
1192 (make_cleanup_free_char_ptr_vec): Remove.
1194 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
1197 * common/pathstuff.c: Conditionally include "<windows.h>".
1199 2018-03-01 Georg Sauthoff <mail@georg.so>
1202 * gcore.in: Quote variables and switch interpreter to bash.
1204 2018-03-01 Tom Tromey <tom@tromey.com>
1206 * dwarf2read.c (alloc_discriminant_info): Fix default_index
1207 assertion. Add assertion for discriminant_index.
1208 (quirk_rust_enum): Use correct base type name in univariant case.
1210 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
1212 * record.c (get_call_history_modifiers): Return a
1214 (cmd_record_call_history): Adjust.
1215 * record-btrace.c (record_btrace_call_history): Adjust.
1216 (record_btrace_call_history_range): Adjust.
1217 (record_btrace_call_history_from): Adjust.
1218 * target-debug.h (target_debug_print_record_print_flags): New.
1219 * target-delegates.c: Re-generate.
1220 * target.c (target_call_history): Change flags type.
1221 (target_call_history_from): Likewise.
1222 (target_call_history_range): Likewise.
1223 * target.h (struct target_ops) <target_call_history>: Likewise.
1224 (target_call_history_from): Likewise.
1225 (target_call_history_range): Likewise.
1227 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1228 Simon Marchi <simon.marchi@polymtl.ca>
1230 * common/common-utils.c: Include "sys/stat.h".
1231 (is_regular_file): Move here from "source.c"; change return
1233 * common/common-utils.h (is_regular_file): New prototype.
1234 * common/pathstuff.c (contains_dir_separator): New function.
1235 * common/pathstuff.h (contains_dir_separator): New prototype.
1236 * source.c: Don't include "sys/stat.h".
1237 (is_regular_file): Move to "common/common-utils.c".
1239 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1241 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1242 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1243 * auto-load.c: Include "common/pathstuff.h".
1244 * common/common-def.h (current_directory): Move here.
1245 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1247 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1249 * common/pathstuff.c: New file.
1250 * common/pathstuff.h: New file.
1251 * compile/compile.c: Include "common/pathstuff.h".
1252 * defs.h (current_directory): Move to "common/common-defs.h".
1253 * dwarf2read.c: Include "common/pathstuff.h".
1255 * guile/scm-safe-call.c: Likewise.
1256 * linux-thread-db.c: Likewise.
1258 * nto-tdep.c: Likewise.
1259 * objfiles.c: Likewise.
1260 * source.c: Likewise.
1261 * symtab.c: Likewise.
1262 * utils.c: Include "common/pathstuff.h".
1263 (gdb_realpath): Move to "common/pathstuff.c".
1264 (gdb_realpath_keepfile): Likewise.
1265 (gdb_abspath): Likewise.
1266 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1267 (gdb_realpath_keepfile): Likewise.
1268 (gdb_abspath): Likewise.
1270 2018-02-28 John Baldwin <jhb@FreeBSD.org>
1272 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1273 wildcard process pid for super_resume for kernels with a
1276 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1278 * compile/compile.c (get_args): Add additional comments
1279 explaining function.
1281 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1282 Tom Tromey <tom@tromey.com>
1284 * target.h (memory_write_request_s): Remove typedef. Don't define
1286 (target_write_memory_blocks): Change argument to std::vector.
1287 (struct memory_write_request): Add constructor.
1288 * target-memory.c (compare_block_starting_address): Return bool.
1289 Change argument types.
1290 (claim_memory): Change arguments to use std::vector.
1291 (split_regular_and_flash_blocks, blocks_to_erase)
1292 (compute_garbled_blocks): Likewise.
1293 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1294 (target_write_memory_blocks): Change argument to std::vector.
1295 * symfile.c (struct load_section_data): Add constructor and
1296 destructor. Use std::vector for "requests".
1297 (struct load_progress_data): Add initializers.
1298 (load_section_callback): Update. Use "new".
1299 (clear_memory_write_data): Remove.
1300 (generic_load): Update.
1302 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1304 * arch/aarch64.h: Use common/tdesc.h.
1306 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1308 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1309 architecture with a 64-bit ABI.
1311 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1313 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1314 ahead of target description loading.
1316 2018-02-26 Tom Tromey <tom@tromey.com>
1318 * stack.c (backtrace_command_1): Update.
1319 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1321 * python/py-framefilter.c (py_print_frame)
1322 (gdbpy_apply_frame_filter): Change type of "flags".
1323 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1325 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1326 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1327 * extension.h (enum frame_filter_flag): Rename from
1329 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1330 (apply_ext_lang_frame_filter): Change type of "flags".
1331 * extension.c (apply_ext_lang_frame_filter): Change type of
1333 * extension-priv.h (struct extension_language_ops)
1334 <apply_frame_filter>: Change type of "flags".
1336 2018-02-26 Tom Tromey <tom@tromey.com>
1339 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1340 off-by-one in py_end computation.
1341 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1343 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1346 2018-02-26 Tom Tromey <tom@tromey.com>
1348 * dwarf2read.c (struct variant_field): New.
1349 (struct nextfield) <variant>: New field.
1350 (dwarf2_add_field): Handle DW_TAG_variant_part.
1351 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1352 discriminated union.
1353 (read_structure_type): Handle DW_TAG_variant_part.
1354 (handle_struct_member_die): New function, extracted from
1355 process_structure_scope. Handle DW_TAG_variant.
1356 (process_structure_scope): Handle discriminated unions. Call
1357 handle_struct_member_die.
1359 2018-02-26 Tom Tromey <tom@tromey.com>
1361 * rust-lang.h (rust_last_path_segment): Declare.
1362 * rust-lang.c (rust_last_path_segment): Now public. Change
1364 (struct disr_info): Remove.
1365 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1366 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1367 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1368 (rust_enum_p, rust_enum_variant): New function.
1369 (rust_underscore_fields): Remove "offset" parameter.
1370 (rust_print_enum): New function.
1371 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1372 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1373 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1375 (rust_internal_print_type): New function, from rust_print_type.
1377 (rust_print_type): Call rust_internal_print_type.
1378 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1379 Update enum handling.
1380 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1381 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1382 (rust_union_quirks): New functions.
1383 (process_full_comp_unit, process_full_type_unit): Call
1385 (process_structure_scope): Update rust_unions if necessary.
1387 2018-02-26 Tom Tromey <tom@tromey.com>
1389 * value.h (value_union_variant): Declare.
1390 * valops.c (value_union_variant): New function.
1391 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1392 (struct discriminant_info): New.
1393 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1395 (struct main_type) <flag_discriminated_union>: New field.
1397 2018-02-26 Tom Tromey <tom@tromey.com>
1399 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1400 unittests/unpack-selftests.c.
1401 * unittests/unpack-selftests.c: New file.
1402 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1404 2018-02-26 Yao Qi <yao.qi@linaro.org>
1406 * dwarf2read.c (struct partial_die_info) <read>: New method.
1407 (read_partial_die): Remove the declaration.
1408 (load_partial_dies): Update.
1409 (partial_die_info::partial_die_info):
1410 (read_partial_die): Change it to partial_die_info::read.
1412 2018-02-26 Yao Qi <yao.qi@linaro.org>
1414 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1415 (fixup_partial_die): Remove declaration.
1416 (scan_partial_symbols): Update.
1417 (partial_die_parent_scope): Likewise.
1418 (partial_die_full_name): Likewise.
1419 (fixup_partial_die): Change it to partial_die_info::fixup.
1421 2018-02-26 Yao Qi <yao.qi@linaro.org>
1423 * dwarf2read.c (read_partial_die): Update the declaration.
1424 (load_partial_dies): Caller update.
1425 (read_partial_die): Remove one argument abbrev_len.
1427 2018-02-26 Yao Qi <yao.qi@linaro.org>
1429 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1430 assignment operator.
1431 (load_partial_dies): Use ctor and copy ctor.
1432 (read_partial_die): Update.
1433 (dwarf2_cu::find_partial_die): Use ctor.
1435 2018-02-26 Yao Qi <yao.qi@linaro.org>
1437 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1438 (find_partial_die_in_comp_unit): Change it to
1439 dwarf2_cu::find_partial_die.
1440 (find_partial_die): Update.
1442 2018-02-26 Yao Qi <yao.qi@linaro.org>
1444 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1447 2018-02-26 Yao Qi <yao.qi@linaro.org>
1449 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1451 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1453 * arch/amd64.h: Use common/tdesc.h.
1454 * arch/i386.c: Likewise.
1455 * arch/i386.h: Likewise.
1456 * arch/tic6x.c: Likewise.
1457 * arch/tdesc.h: Move file from here...
1458 * common/tdesc.h: ...to here.
1459 * features/aarch64-core.c: Regenerate.
1460 * features/aarch64-fpu.c: Regenerate.
1461 * features/i386/32bit-avx.c: Regenerate.
1462 * features/i386/32bit-avx512.c: Regenerate.
1463 * features/i386/32bit-core.c: Regenerate.
1464 * features/i386/32bit-linux.c: Regenerate.
1465 * features/i386/32bit-mpx.c: Regenerate.
1466 * features/i386/32bit-pkeys.c: Regenerate.
1467 * features/i386/32bit-sse.c: Regenerate.
1468 * features/i386/64bit-avx.c: Regenerate.
1469 * features/i386/64bit-avx512.c: Regenerate.
1470 * features/i386/64bit-core.c: Regenerate.
1471 * features/i386/64bit-linux.c: Regenerate.
1472 * features/i386/64bit-mpx.c: Regenerate.
1473 * features/i386/64bit-pkeys.c: Regenerate.
1474 * features/i386/64bit-segments.c: Regenerate.
1475 * features/i386/64bit-sse.c: Regenerate.
1476 * features/i386/x32-core.c: Regenerate.
1477 * features/tic6x-c6xp.c: Regenerate.
1478 * features/tic6x-core.c: Regenerate.
1479 * features/tic6x-gp.c: Regenerate.
1480 * target-descriptions.c: Use common/tdesc.h.
1481 * target-descriptions.h: Likewise.
1483 2018-02-24 Tom Tromey <tom@tromey.com>
1485 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1486 (try_thread_db_load_from_dir, thread_db_load_search): Use
1488 (info_auto_load_libthread_db_compare): Return bool. Change
1490 (info_auto_load_libthread_db): Use std::vector, std::string.
1493 2018-02-24 Tom Tromey <tom@tromey.com>
1495 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1497 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1499 * gdbarch.c: Rebuild.
1500 * gdbarch.h: Rebuild.
1501 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1502 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1503 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1506 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1508 * gdbtypes.h (sect_offset): Change type to uint64_t.
1509 (sect_offset_str): New function.
1510 * dwarf2read.c (create_addrmap_from_aranges): Use
1512 (error_check_comp_unit_head): Likewise.
1513 (create_debug_type_hash_table): Likewise.
1514 (read_cutu_die_from_dwo): Likewise.
1515 (init_cutu_and_read_dies): Likewise.
1516 (init_cutu_and_read_dies_no_follow): Likewise.
1517 (process_psymtab_comp_unit_reader): Likewise.
1518 (partial_die_parent_scope): Likewise.
1519 (peek_die_abbrev): Likewise.
1520 (process_queue): Likewise.
1521 (dwarf2_physname): Likewise.
1522 (read_namespace_alias): Likewise.
1523 (read_import_statement): Likewise.
1524 (create_dwo_cu_reader): Likewise.
1525 (create_cus_hash_table): Likewise.
1526 (lookup_dwo_cutu): Likewise.
1527 (inherit_abstract_dies): Likewise.
1528 (read_func_scope): Likewise.
1529 (read_call_site_scope): Likewise.
1530 (dwarf2_add_member_fn): Likewise.
1531 (read_common_block): Likewise.
1532 (read_module_type): Likewise.
1533 (read_typedef): Likewise.
1534 (read_subrange_type): Likewise.
1535 (load_partial_dies): Likewise.
1536 (read_partial_die): Likewise.
1537 (find_partial_die): Likewise.
1538 (read_str_index): Likewise.
1539 (dwarf2_string_attr): Likewise.
1540 (build_error_marker_type): Likewise.
1541 (lookup_die_type): Likewise.
1542 (dump_die_shallow): Likewise.
1543 (follow_die_ref): Likewise.
1544 (dwarf2_fetch_die_loc_sect_off): Likewise.
1545 (dwarf2_fetch_constant_bytes): Likewise.
1546 (follow_die_sig): Likewise.
1547 (get_signatured_type): Likewise.
1548 (get_DW_AT_signature_type): Likewise.
1549 (dwarf2_find_containing_comp_unit): Likewise.
1550 (set_die_type): Likewise.
1552 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1554 * arch/aarch64.c: Include "common-defs.h".
1555 * arch/amd64.c: Likewise.
1556 * arch/i386.c: Likewise.
1558 2018-02-21 Tom Tromey <tom@tromey.com>
1560 * value.h: (extract_field_op): Update.
1561 * eval.c (extract_field_op): Return a const char *.
1562 * expression.h (parse_expression_for_completion): Update.
1563 * completer.c (complete_expression): Update.
1564 (add_struct_fields): Make fieldname const.
1565 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1566 (mark_completion_tag, parse_exp_in_context_1): Update.
1567 (parse_expression_for_completion): Change "name" to
1568 unique_xmalloc_ptr*.
1570 2018-02-21 Tom Tromey <tom@tromey.com>
1572 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1574 2018-02-21 Yao Qi <yao.qi@linaro.org>
1576 * avr-tdep.c (avr_read_pc): Change parameter type to
1578 * gdbarch.sh (read_pc): Likewise.
1579 * gdbarch.c: Re-generated.
1580 * gdbarch.h: Re-generated.
1581 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1583 * ia64-tdep.c (ia64_read_pc): Likewise.
1584 * mips-tdep.c (mips_read_pc): Likewise.
1585 * spu-tdep.c (spu_read_pc): Likewise.
1587 2018-02-21 Yao Qi <yao.qi@linaro.org>
1589 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1590 * regcache-dump.c: New file.
1591 * regcache.c: Move register_dump to regcache-dump.c.
1592 (maintenance_print_registers): Likewise.
1593 (maintenance_print_raw_registers): Likewise.
1594 (maintenance_print_cooked_registers): Likewise.
1595 (maintenance_print_register_groups): Likewise.
1596 (maintenance_print_remote_registers): Likewise.
1597 (_initialize_regcache): Likewise.
1598 * regcache.h (register_dump): Moved from regcache.c.
1600 2018-02-21 Yao Qi <yao.qi@linaro.org>
1602 * regcache.c (regcache::regcache): Update.
1603 (regcache::invalidate): Move it to detached_regcache::invalidate.
1604 (get_thread_arch_aspace_regcache): Update.
1605 (regcache::raw_update): Update.
1606 (regcache::cooked_read): Remove some code.
1607 (regcache::cooked_read_value): Likewise.
1608 (regcache::raw_write): Remove assert on m_readonly_p.
1609 (regcache::raw_supply_integer): Move it to
1610 detached_regcache::raw_supply_integer.
1611 (regcache::raw_supply_zeroed): Likewise.
1612 * regcache.h (detached_regcache) <raw_supply_integer>: New
1614 <raw_supply_zeroed, invalidate>: Likewise.
1615 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1616 <invalidate>: Likewise.
1617 <m_readonly_p>: Removed.
1619 2018-02-21 Yao Qi <yao.qi@linaro.org>
1621 * infcmd.c (get_return_value): Let stop_regs point to
1622 get_current_regcache.
1623 * regcache.c (regcache::regcache): Remove.
1624 (register_dump_reg_buffer): New class.
1625 (regcache_print): Adjust.
1626 * regcache.h (regcache): Remove constructors.
1628 2018-02-21 Yao Qi <yao.qi@linaro.org>
1630 * regcache.c (class register_dump): New class.
1631 (register_dump_regcache, register_dump_none): New class.
1632 (register_dump_remote, register_dump_groups): New class.
1633 (regcache_print): Update.
1634 * regcache.h (regcache_dump_what): Move it to regcache.c.
1635 (regcache) <dump>: Remove.
1637 2018-02-21 Yao Qi <yao.qi@linaro.org>
1639 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1641 (jit_unwind_reg_set_impl): Call raw_supply.
1642 (jit_frame_sniffer): Use reg_buffer_rw.
1643 * record-full.c (record_full_core_regbuf): Change its type.
1644 (record_full_core_open_1): Use reg_buffer_rw.
1645 (record_full_close): Likewise.
1646 (record_full_core_fetch_registers): Use regcache->raw_supply.
1647 (record_full_core_store_registers): Likewise.
1648 * regcache.c (regcache::get_register_status): Move it to
1650 (regcache_raw_set_cached_value): Remove.
1651 (regcache::raw_set_cached_value): Remove.
1652 (regcache::raw_write): Call raw_supply.
1653 (regcache::raw_supply): Move it to reg_buffer_rw.
1654 * regcache.h (regcache_raw_set_cached_value): Remove.
1655 (reg_buffer_rw): New class.
1657 2018-02-21 Yao Qi <yao.qi@linaro.org>
1659 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1660 readonly_detached_regcache.
1661 (dummy_frame_prev_register): Use regcache->cooked_read.
1662 * frame.c (frame_save_as_regcache): Change return type.
1663 (frame_pop): Update.
1664 * frame.h (frame_save_as_regcache): Update declaration.
1665 * inferior.h (get_infcall_suspend_state_regcache): Update
1667 * infrun.c (infcall_suspend_state) <registers>: use
1668 readonly_detached_regcache.
1669 (save_infcall_suspend_state): Don't use regcache_dup.
1670 (get_infcall_suspend_state_regcache): Change return type.
1671 * linux-fork.c (struct fork_info) <savedregs>: Change to
1672 readonly_detached_regcache.
1674 (fork_save_infrun_state): Don't use regcache_dup.
1675 (info_checkpoints_command): Adjust.
1676 * mi/mi-main.c (register_changed_p): Update declaration.
1677 (mi_cmd_data_list_changed_registers): Use
1678 readonly_detached_regcache.
1679 (register_changed_p): Change parameter type to
1680 readonly_detached_regcache.
1681 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1682 readonly_detached_regcache.
1683 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1684 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1686 (regcache::save): Move it to reg_buffer.
1687 (regcache::restore): Change parameter type.
1688 (regcache_dup): Remove.
1689 * regcache.h (reg_buffer) <save>: New method.
1690 (readonly_detached_regcache): New class.
1691 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1692 readonly_detached_regcache.
1693 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1695 2018-02-21 Yao Qi <yao.qi@linaro.org>
1697 * frame.c (frame_save_as_regcache): Use regcache method save.
1698 (frame_pop): Use regcache method restore.
1699 * infrun.c (restore_infcall_suspend_state): Likewise.
1700 * linux-fork.c (fork_load_infrun_state): Likewise.
1701 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1703 * regcache.c (regcache_save): Remove.
1704 (regcache::restore): More asserts.
1705 (regcache_cpy): Remove.
1706 * regcache.h (regcache_save): Remove the declaration.
1707 (regcache::restore): Move from private to public.
1708 Remove the friend declaration of regcache_cpy.
1709 (regcache_cpy): Remove declaration.
1711 2018-02-21 Yao Qi <yao.qi@linaro.org>
1713 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1714 parameter type to 'readable_regcache *'.
1715 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1716 * arm-tdep.c (arm_neon_quad_read): Likewise.
1717 (arm_pseudo_read): Likewise.
1718 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1719 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1720 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1721 * gdbarch.c: Re-generated.
1722 * gdbarch.h: Re-generated.
1723 * gdbarch.sh (pseudo_register_read): Change parameter type to
1724 'readable_regcache *'.
1725 (pseudo_register_read_value): Likewise.
1726 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1727 (h8300_pseudo_register_read): Likewise.
1728 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1729 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1730 (i386_pseudo_register_read_into_value): Likewise.
1731 (i386_pseudo_register_read_value): Likewise.
1732 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1734 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1735 * m32c-tdep.c (m32c_raw_read): Likewise.
1736 (m32c_read_flg): Likewise.
1737 (m32c_banked_register): Likewise.
1738 (m32c_banked_read): Likewise.
1739 (m32c_sb_read): Likewise.
1740 (m32c_part_read): Likewise.
1741 (m32c_cat_read): Likewise.
1742 (m32c_r3r2r1r0_read): Likewise.
1743 (m32c_pseudo_register_read): Likewise.
1744 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1745 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1746 (mep_pseudo_cr64_read): Likewise.
1747 (mep_pseudo_register_read): Likewise.
1748 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1749 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1750 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1751 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1752 (regcache::cooked_read): Likewise.
1753 (regcache::cooked_read_value): Likewise.
1754 (regcache_cooked_read_signed):
1755 (regcache::cooked_read): Likewise.
1756 * regcache.h (readable_regcache): New class.
1757 (regcache): Inherit readable_regcache. Move some methods to
1759 * rl78-tdep.c (rl78_pseudo_register_read): Change
1760 parameter type to 'readable_regcache *'.
1761 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1762 (e500_pseudo_register_read): Change parameter type to
1763 'readable_regcache *'.
1764 (dfp_pseudo_register_read): Likewise.
1765 (vsx_pseudo_register_read): Likewise.
1766 (efpr_pseudo_register_read): Likewise.
1767 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1768 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1769 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1770 (sh64_pseudo_register_read): Likewise.
1771 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1772 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1773 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1774 (spu_pseudo_register_read): Likewise.
1775 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1776 (xtensa_pseudo_register_read): Likewise.
1778 2018-02-21 Yao Qi <yao.qi@linaro.org>
1780 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1781 (regcache::arch): Move it to reg_buffer::arch.
1782 (regcache::register_buffer): Likewise.
1783 (regcache::assert_regnum): Likewise.
1784 (regcache::num_raw_registers): Likewise.
1785 * regcache.h (reg_buffer): New class.
1786 (regcache): Inherit reg_buffer.
1788 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1790 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1791 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1793 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1795 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1797 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1799 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1800 (SFILES): Remove common/*.c files.
1801 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1802 * common/common.host: Add common reference.
1803 * configure.ac: Likewise.
1804 * configure: Regenerate.
1806 2018-02-16 Yao Qi <yao.qi@linaro.org>
1808 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1809 (block_initialize_namespace): Use new.
1810 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1811 (dwarf2_free_objfile): Use delete.
1812 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1813 (copy_type_recursive): Use new.
1814 * gdb_obstack.h (allocate_on_obstack): New.
1816 2018-02-15 Yao Qi <yao.qi@linaro.org>
1819 * inferior.c (exit_inferior_1): Reset inf->control.
1821 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1823 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1826 2018-02-14 Pedro Alves <palves@redhat.com>
1828 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1829 frame_cleanup_after_sniffer on exception.
1831 2018-02-14 Tom Tromey <tom@tromey.com>
1833 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1835 (solib_bfd_open): Make pathname const.
1836 * solib.c (solib_bfd_open): Make pathname const.
1837 * solib-spu.c (spu_bfd_fopen): Make name const.
1838 (spu_bfd_open): Make pathname const.
1839 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1840 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1842 2018-02-14 Tom Tromey <tom@tromey.com>
1844 * symfile.c (symfile_bfd_open): Update.
1845 * source.h (openp, source_full_path_of, find_and_open_source):
1846 Change argument type to unique_xmalloc_ptr.
1847 * source.c (openp): Take a unique_xmalloc_ptr.
1848 (source_full_path_of, find_and_open_source): Likewise.
1849 (open_source_file, symtab_to_fullname): Update.
1850 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1852 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1853 (exec_file_find): Update.
1854 * psymtab.c (psymtab_to_fullname): Update.
1855 * nto-tdep.h (nto_find_and_open_solib): Update.
1856 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1858 * exec.c (exec_file_attach): Update.
1859 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1860 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1862 2018-02-14 Tom Tromey <tom@tromey.com>
1864 * solib.c: Include source.h.
1865 * nto-tdep.c: Include source.h.
1866 * mi/mi-cmd-env.c: Include source.h.
1867 * infcmd.c: Include source.h.
1868 * exec.c: Include source.h.
1869 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1870 (add_path, directory_switch, source_path, init_source_path): Move
1872 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1873 (add_path, directory_switch, source_path, init_source_path):
1876 2018-02-14 Tom Tromey <tom@tromey.com>
1878 * solist.h (exec_file_find, solib_find): Return
1880 (solib_bfd_fopen): Take a const char *.
1881 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1882 (exec_file_find, solib_find): Likewise.
1883 (solib_bfd_fopen): Do not take ownership of "pathname".
1884 (solib_bfd_open): Use unique_xmalloc_ptr.
1885 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1886 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1887 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1888 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1890 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1892 * ada-lang.c (name_match_type_from_name): Remove reference to
1893 ada_name_for_lookup in function's documentation.
1894 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1896 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1898 * defs.h (enum openp_flags): New enum.
1899 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1900 Move to enum openp_flags.
1901 (openp_flags): New enum flags.
1902 (openp): Change parameter type to openp_flags.
1903 * source.c (openp): Change parameter type to openp_flags.
1904 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1905 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1907 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1909 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1912 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1914 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1916 (class dwarf2_queue_guard): ...the destructor of this new class.
1917 (dw2_do_instantiate_symtab): Create instance of the new class
1918 dwarf2_queue_guard, remove cleanup.
1920 2018-02-09 Tom Tromey <tom@tromey.com>
1922 * source.c (find_source_lines): Don't reference past the end of
1925 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1927 * remote.c (remote_btrace_maybe_reopen): Change error message.
1928 * btrace.c (btrace_enable): Likewise.
1929 (parse_xml_btrace): Likewise.
1930 (parse_xml_btrace_conf): Likewise.
1932 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1934 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1935 (linux_enable_pt, linux_enable_bts): Call
1936 diagnose_perf_event_open_fail.
1938 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1940 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1941 Remove parameter and change return type. Update callers. Move it.
1942 (linux_enable_bts, linux_enable_pt): Improve error message.
1943 (linux_enable_pt): Remove zero buffer size check.
1944 (linux_enable_btrace): Improve error messages. Remove NULL return
1947 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1949 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1950 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1951 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1952 (linux_supports_pt, linux_supports_btrace): Remove.
1953 (linux_enable_bts): Call cpu_supports_bts.
1954 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1955 * remote.c (remote_supports_btrace): Remove.
1956 (init_remote_ops): Remove remote_supports_btrace.
1957 * target-delegates.c: Regenerated.
1958 * target.c (target_supports_btrace): Remove.
1959 * target.h (target_ops) <to_supports_btrace>: Remove
1960 (target_supports_btrace): Remove.
1961 * x86-linux-nat.c (x86_linux_create_target): Remove
1962 linux_supports_btrace.
1964 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1966 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1968 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1969 exception and use message in own exception.
1971 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1973 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1974 (perf_event_pt_event_type): Use gdb_file_up.
1975 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1976 scoped_fd, and scoped_mmap.
1978 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1980 * common/scoped_mmap.h: New.
1981 * unittests/scoped_mmap-selftest.c: New.
1982 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1983 unittests/scoped_mmap-selftest.c.
1985 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1987 * common/scoped_fd.h: New.
1988 * unittests/scoped_fd-selftest.c: New.
1989 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1990 unittests/scoped_fd-selftest.c.
1992 2018-02-09 Tom Tromey <tom@tromey.com>
1994 * auto-load.c (auto_load_section_scripts): Use
1995 gdb::unique_xmalloc_ptr.
1997 2018-02-09 Tom Tromey <tom@tromey.com>
1999 * auto-load.c (execute_script_contents): Use std::string.
2001 2018-02-09 Joel Brobecker <brobecker@adacore.com>
2003 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2004 Python function, rather than a new command.
2006 2018-02-08 Tom Tromey <tom@tromey.com>
2008 * solib.c (solib_find_1): Use std::string.
2009 (solib_bfd_fopen): Use unique_xmalloc_ptr.
2011 2018-02-08 Tom Tromey <tom@tromey.com>
2013 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2015 2018-02-08 Tom Tromey <tom@tromey.com>
2017 * source.c (find_source_lines): Use gdb::def_vector.
2019 2018-02-08 Tom Tromey <tom@tromey.com>
2021 * macrocmd.c (struct temporary_macro_definition): New.
2022 (macro_define_command): Use temporary_macro_definition. Remove
2024 (free_macro_definition_ptr): Remove.
2026 2018-02-08 Tom Tromey <tom@tromey.com>
2028 * macroexp.c (maybe_expand): Use std::string.
2030 2018-02-08 Tom Tromey <tom@tromey.com>
2032 * macroexp.c (struct macro_buffer): Add initializers for some
2034 (init_buffer, init_shared_buffer, free_buffer)
2035 (free_buffer_return_text): Remove.
2036 (macro_buffer): New constructors.
2037 (~macro_buffer): New destructor.
2038 (macro_buffer::set_shared): New method.
2039 (macro_buffer::resize_buffer, macro_buffer::appendc)
2040 (macro_buffer::appendmem): Now methods, not free functions.
2041 (set_token, append_tokens_without_splicing, stringify)
2042 (macro_stringify): Update.
2043 (gather_arguments): Change return type. Remove argc_p argument,
2044 add args_ptr argument. Use std::vector.
2045 (substitute_args): Remove argc argument. Accept std::vector.
2046 (expand): Update. Use std::vector.
2047 (scan, macro_expand, macro_expand_next): Update.
2049 2018-02-08 Tom Tromey <tom@tromey.com>
2051 * symtab.c (default_collect_symbol_completion_matches_break_on):
2052 Use unique_xmalloc_ptr.
2053 * macroscope.h: (sal_macro_scope, user_macro_scope)
2054 (default_macro_scope): Return unique_xmalloc_ptr.
2055 * macroscope.c (sal_macro_scope, user_macro_scope)
2056 (default_macro_scope): Return unique_xmalloc_ptr.
2057 * macroexp.h (macro_expand, macro_expand_once): Return
2059 * macroexp.c (macro_expand, macro_expand_once): Return
2061 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2062 (info_macro_command, info_macros_command): Use
2064 * compile/compile-c-support.c (write_macro_definitions): Use
2066 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2068 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2070 * value.c (value_static_field): Assign field type instead of
2071 containing type when returning an optimized out value.
2073 2018-02-06 Yao Qi <yao.qi@linaro.org>
2075 * ft32-tdep.c (ft32_read_pc): Remove.
2076 (ft32_write_pc): Remove.
2077 (ft32_gdbarch_init): Update.
2078 * m32r-tdep.c (m32r_read_pc): Remove.
2079 (m32r_gdbarch_init): Update.
2080 * mep-tdep.c (mep_read_pc): Remove.
2081 (mep_gdbarch_init): Update.
2082 * microblaze-tdep.c (microblaze_write_pc): Remove.
2083 (microblaze_gdbarch_init): Update.
2084 * mn10300-tdep.c (mn10300_read_pc): Remove.
2085 (mn10300_write_pc): Remove.
2086 (mn10300_gdbarch_init): Update.
2087 * moxie-tdep.c (moxie_read_pc): Remove.
2088 (moxie_write_pc): Remove.
2089 (moxie_gdbarch_init): Update.
2091 2018-02-06 Yao Qi <yao.qi@linaro.org>
2093 * expprint.c (print_subexp_standard): Handle
2094 OP_F77_UNDETERMINED_ARGLIST.
2095 (dump_subexp_body_standard): Likewise.
2097 2018-02-05 Alan Hayward <alan.hayward@arm.com>
2099 * target-descriptions.c (tdesc_element_visitor) Add empty
2101 (tdesc_type): Move make_gdb_type from here.
2102 (tdesc_type_builtin): Likewise.
2103 (tdesc_type_vector): Likewise.
2104 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2105 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2106 (make_gdb_type_union): Likewise.
2107 (make_gdb_type_flags): Likewise.
2108 (make_gdb_type_enum): Likewise.
2109 (make_gdb_type): New function.
2110 (tdesc_register_type): Use static make_gdb_type.
2112 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2114 * infcmd.c (default_print_one_register_info): Align natural-format
2115 column values consistently one under another.
2116 (pad_to_column): New function.
2118 2018-02-05 Joel Brobecker <brobecker@adacore.com>
2120 * dwarf2read.c (dwarf2_physname): Move commment.
2122 2018-02-01 Leszek Swirski <leszeks@google.com>
2124 * varobj.c (varobj_formatted_print_options): Allow recursive
2125 pretty printing if pretty printing is enabled.
2127 2018-02-01 Leszek Swirski <leszeks@google.com>
2129 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2130 names after a structop as a filename.
2132 2018-02-01 Yao Qi <yao.qi@linaro.org>
2134 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2135 (arm_record_coproc_data_proc): Likewise.
2137 2018-02-01 Yao Qi <yao.qi@linaro.org>
2139 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2141 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2143 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2144 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2146 2018-01-31 Pedro Alves <palves@redhat.com>
2148 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2149 * inflow.c (child_terminal_save_inferior): Wrap reference to
2150 tcgetpgrp in HAVE_TERMIOS_H.
2151 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2153 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2154 always iterate over all inferiors.
2155 (gdbsim_cntrl_c): Adjust.
2156 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2158 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2160 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2161 index type is objfile-owned if the element type is as well.
2163 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2167 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2169 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2170 "features/s390x-linux64.c".
2171 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2172 s390_linux32 and s390x_linux64.
2173 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2175 * s390-tdep.c: Include "features/s390-linux32.c" and
2176 "features/s390x-linux64.c".
2177 (s390_tdesc_valid): Add check for tdesc_has_registers.
2178 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2179 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2180 tdesc_s390x_linux64.
2181 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2182 tdesc_s390x_linux64 to...
2183 * s390-tdep.h: ...here.
2185 2018-01-30 Pedro Alves <palves@redhat.com>
2188 * config.in, configure: Regenerate.
2189 * configure.ac: Check for getpgid.
2190 * go32-nat.c (go32_pass_ctrlc): New.
2191 (go32_target): Install it.
2192 * inf-child.c (inf_child_target): Install
2193 child_terminal_save_inferior, child_pass_ctrlc and
2195 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2196 (inf_ptrace_target): No longer install it.
2197 * infcmd.c (interrupt_target_1): Adjust.
2198 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2199 (child_interrupt): Declare.
2200 (inferior::terminal_state): New.
2201 * inflow.c (struct terminal_info): Update comments.
2202 (inferior_process_group): Delete.
2203 (terminal_is_ours): Delete.
2204 (gdb_tty_state): New.
2205 (child_terminal_init): Adjust.
2206 (is_gdb_terminal, sharing_input_terminal_1)
2207 (sharing_input_terminal): New functions.
2208 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
2209 Set the process's actual process group in the foreground if
2210 possible. Handle is_ours_for_output/is_ours distinction. Don't
2211 mark terminal as the inferior's if not sharing GDB's terminal.
2212 Don't check attach_flag.
2213 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2214 pass down a target_terminal_state.
2215 (child_terminal_save_inferior): New, factored out from ...
2216 (child_terminal_ours_1): ... this. Handle
2217 target_terminal_state::is_ours_for_output.
2218 (child_interrupt, child_pass_ctrlc): New.
2219 (inflow_inferior_exit): Clear the inferior's terminal_state.
2220 (copy_terminal_info): Copy the inferior's terminal state.
2221 (_initialize_inflow): Remove reference to terminal_is_ours.
2222 * inflow.h (inferior_process_group): Delete.
2223 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2224 * procfs.c (procfs_target): Don't install procfs_interrupt.
2225 (procfs_interrupt): Delete.
2226 * remote.c (remote_serial_quit_handler): Adjust.
2227 (remote_interrupt): Remove ptid parameter. Adjust.
2228 * target-delegates.c: Regenerate.
2229 * target.c: Include "terminal.h".
2230 (target_terminal::terminal_state): Rename to ...
2231 (target_terminal::m_terminal_state): ... this.
2232 (target_terminal::init): Adjust.
2233 (target_terminal::inferior): Adjust to per-inferior
2235 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2236 (target_terminal::ours, target_terminal::ours_for_output): Use
2237 target_terminal_is_ours_kind.
2238 (target_interrupt): Remove ptid parameter. Adjust.
2239 (default_target_pass_ctrlc): Adjust.
2240 * target.h (target_ops::to_terminal_save_inferior): New field.
2241 (target_ops::to_interrupt): Remove ptid_t parameter.
2242 (target_interrupt): Remove ptid_t parameter. Update comment.
2243 (target_pass_ctrlc): Update comment.
2244 * target/target.h (target_terminal_state): New scoped enum,
2246 (target_terminal::terminal_state): ... here.
2247 (target_terminal::inferior): Update comments.
2248 (target_terminal::restore_inferior): New.
2249 (target_terminal::is_inferior, target_terminal::is_ours)
2250 (target_terminal::is_ours_for_output): Adjust.
2251 (target_terminal::scoped_restore_terminal_state): Adjust to
2252 rename, and call restore_inferior() instead of inferior().
2253 (target_terminal::scoped_restore_terminal_state::m_state): Change
2255 (target_terminal::terminal_state): Rename to ...
2256 (target_terminal::m_terminal_state): ... this and change type.
2258 2018-01-30 Pedro Alves <palves@redhat.com>
2260 * linux-nat.c (wait_for_signal): New function.
2261 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2263 (async_terminal_is_ours)
2264 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2265 (linux_nat_add_target): Don't override
2266 to_terminal_inferior/to_terminal_ours.
2268 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2270 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2272 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2274 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2275 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2276 dwarf2_per_objfile_free here.
2277 (dwarf2_per_objfile_free): Remove.
2278 (_initialize_dwarf2_read): Don't register
2279 dwarf2_per_objfile_free as a registry cleanup.
2281 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2283 Avoid compilation errors in MinGW native builds
2285 The error is triggered by including python-internal.h, and the
2288 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2289 from build-gnulib/import/math.h:27,
2290 from d:/usr/Python26/include/pyport.h:235,
2291 from d:/usr/Python26/include/Python.h:58,
2292 from python/python-internal.h:94,
2293 from python/py-arch.c:24:
2294 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2298 This happens because Python headers define 'hypot' to expand t
2299 '_hypot' in the Windows builds.
2300 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2301 'hypoth'. This avoids a compilation error.
2303 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2305 * MAINTAINERS (Write After Approval): Fix ordering.
2307 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2309 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2311 2018-01-26 Alan Modra <amodra@gmail.com>
2313 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2314 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2315 Remove nop. Make const. Comment.
2316 (powerpc32_plt_stub_so_2): New.
2317 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2318 Correct count. Update uses.
2319 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2320 Move common code reading PLT entry word. Correct
2321 powerpc32_plt_stub PLT address calculation.
2322 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2323 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2324 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2325 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2326 (ppc64_standard_linkage8): Likewise.
2327 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2328 Correct insns description.
2329 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2331 2018-01-24 Pedro Alves <palves@redhat.com>
2333 GCC PR libstdc++/83906
2334 * gdbtypes.c (operator==(const dynamic_prop &,
2335 const dynamic_prop &)): New.
2336 (operator==(const range_bounds &, const range_bounds &)): New.
2337 (check_types_equal): Use them instead of memcmp.
2338 * gdbtypes.h (operator==(const dynamic_prop &,
2339 const dynamic_prop &)): Declare.
2340 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2341 (operator==(const range_bounds &, const range_bounds &)): Declare.
2342 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2344 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2346 * s390-linux-tdep.c (s390_record_address_mask)
2347 (s390_record_calc_disp_common, s390_record_calc_disp)
2348 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2349 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2350 (s390_process_record): Move to s390-tdep.c.
2351 (s390_linux_init_abi_any): Adjust.
2352 * s390-tdep.c (s390_record_address_mask)
2353 (s390_record_calc_disp_common, s390_record_calc_disp)
2354 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2355 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2356 (s390_process_record): Moved from s390-linux-tdep.c
2357 (s390_gdbarch_init): Adjust.
2359 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2361 * s390-linux-nat.c (s390-tdep.h): New include.
2362 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2363 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2364 (ALLDEPFILES): Add s390-tdep.c.
2365 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2366 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2367 * s390-tdep.h: ...this. New file.
2368 * s390-linux-tdep.c (s390-tdep.h): New include.
2369 (_initialize_s390_tdep): Rename to...
2370 (_initialize_s390_linux_tdep): ...this and adjust.
2371 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2372 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2374 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2375 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2376 (s390_is_partial_instruction, s390_software_single_step)
2377 (is_non_branch_ril, s390_displaced_step_copy_insn)
2378 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2379 (s390_prologue_data, s390_addr, s390_store, s390_load)
2380 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2381 (s390_register_call_saved, s390_guess_tracepoint_registers)
2382 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2383 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2384 (s390_pseudo_register_name, s390_pseudo_register_type)
2385 (s390_pseudo_register_read, s390_pseudo_register_write)
2386 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2387 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2388 (s390_addr_bits_remove, s390_address_class_type_flags)
2389 (s390_address_class_type_flags_to_name)
2390 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2391 (s390_function_arg_float, s390_function_arg_vector)
2392 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2393 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2394 (s390_frame_align, s390_register_return_value, s390_return_value)
2395 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2396 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2397 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2398 (s390_trad_frame_prev_register, s390_unwind_cache)
2399 (s390_prologue_frame_unwind_cache)
2400 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2401 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2402 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2403 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2404 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2405 (s390_frame_base_address, s390_local_base_address)
2406 (s390_frame_base, s390_gcc_target_options)
2407 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2408 (s390_validate_reg_range, s390_tdesc_valid)
2409 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2410 * s390-tdep.c: ...this. New file.
2412 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2414 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2415 (s390_process_record, s390_gdbarch_tdep_alloc)
2416 (s390_linux_init_abi_any): Use/set new hook.
2418 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2420 * s390-linux-tdep.c (osabi.h): New include.
2421 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2422 (s390_linux_init_abi_any): New functions.
2423 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2425 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2427 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2428 tdesc_has_registers check
2430 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2432 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2433 (s390_validate_reg_range): New macro.
2434 (s390_gdbarch_init): Adjust.
2436 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2438 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2439 (s390_gdbarch_tdep_alloc): Adjust.
2440 (s390_gdbarch_init): Adjust.
2442 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2444 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2445 <have_tdb>: Change type to bool.
2446 (s390_gdbarch_tdep_alloc): Adjust.
2447 (s390_gdbarch_init): Adjust.
2449 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2451 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2452 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2453 (s390_gdbarch_tdep_alloc): New function.
2454 (s390_gdbarch_init): Allocate tdep at start and use its fields
2455 instead of separate variables.
2457 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2459 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2460 when looking for cached gdbarch and add comment for remaining.
2462 2018-01-22 Pedro Alves <palves@redhat.com>
2463 Sergio Durigan Junior <sergiodj@redhat.com>
2465 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2468 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2470 * MAINTAINERS: Update my company e-mail address.
2472 2018-01-22 Yao Qi <yao.qi@linaro.org>
2474 * regcache.c (cooked_write_test): New function.
2475 (_initialize_regcache): Register the test.
2477 2018-01-22 Yao Qi <yao.qi@linaro.org>
2479 * ia64-tdep.c (ia64_pseudo_register_read): Call
2480 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2481 * m32c-tdep.c (m32c_cat_read): Likewise.
2482 (m32c_r3r2r1r0_read): Likewise.
2483 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2484 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2486 2018-01-22 Yao Qi <yao.qi@linaro.org>
2488 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2489 method raw_read instead of regcache_raw_read.
2490 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2491 * arm-tdep.c (arm_neon_quad_read): Likewise.
2492 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2493 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2494 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2495 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2496 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2497 (i386_pseudo_register_read_into_value): Likewise.
2498 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2499 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2500 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2501 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2502 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2503 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2504 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2505 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2506 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2508 2018-01-22 Yao Qi <yao.qi@linaro.org>
2510 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2511 * configure.tgt: Remove target mt.
2512 * mt-tdep.c: Remove.
2513 * regcache.c (cooked_read_test): Remove the check for mt.
2515 2018-01-22 Yao Qi <yao.qi@linaro.org>
2517 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2518 instead of gdbarch_pseudo_register_read_value.
2520 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2522 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2525 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2527 * linespec.c (create_sals_line_offset): Remove code that preserved
2528 the symtab_and_line's line number.
2530 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2532 * varobj.c (varobj_create): Don't set valid_block when creating a
2535 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2537 * varobj.c (varobj_create): Remove out of date comment.
2539 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2542 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2543 updating innermost block.
2544 * parse.c (innermost_block_tracker::update): Take extra type
2545 parameter, and check types match before updating innermost block.
2546 (write_dollar_variable): Update innermost block for registers.
2547 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2548 (innermost_block_tracker::innermost_block_tracker): Initialise
2550 (innermost_block_tracker::reset): Take type parameter.
2551 (innermost_block_tracker::update): Take type parameter, and pass
2552 type through as needed.
2553 (innermost_block_tracker::m_types): New member.
2554 * varobj.c (varobj_create): Pass type when reseting innermost
2557 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2559 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2560 * ada-lang.c (resolve_subexp): Likewise.
2561 * breakpoint.c (set_breakpoint_condition) Likewise.
2562 (watch_command_1) Likewise.
2563 * c-exp.y (variable): Likewise.
2564 * d-exp.y (PrimaryExpression): Likewise.
2565 * f-exp.y (variable): Likewise.
2566 * go-exp.y (variable): Likewise.
2567 * m2-exp.y (variable): Likewise.
2568 * objfiles.c (objfile::~objfile): Likewise.
2569 * p-exp.y (variable): Likewise.
2570 * parse.c (innermost_block): Change type.
2571 * parser-defs.h (class innermost_block_tracker): New.
2572 (innermost_block): Change to innermost_block_tracker.
2573 * printcmd.c (display_command): Switch to innermost_block API.
2574 (do_one_display): Likewise.
2575 * rust-exp.y (do_one_display): Likewise.
2576 * symfile.c (clear_symtab_users): Likewise.
2577 * varobj.c (varobj_create): Switch to innermost_block API, replace
2578 use of innermost_block with block stored on varobj object.
2580 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2582 * expression.h (innermost_block): Remove declaration.
2583 * varobj.c: Add 'parser-defs.h' include.
2585 2018-01-19 Tom Tromey <tom@tromey.com>
2587 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2588 symbols in the static and global blocks.
2590 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2592 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2593 gdb_ptrace.h, and move including gdb_wait.h ...
2594 * nat/linux-ptrace.h: ... to here.
2596 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2598 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2599 inf_ptrace_detach_success.
2600 (inf_ptrace_detach_success): Add inferior parameter, use it
2601 instead of inferior_ptid, pass it to detach_inferior.
2602 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2604 * inferior.c (detach_inferior): Add overload that takes an
2606 * inferior.h (detach_inferior): Likewise.
2607 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2608 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2609 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2611 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2613 * target.h (struct target_ops) <to_detach>: Add inferior
2615 (target_detach): Likewise.
2616 * target.c (dispose_inferior): Pass inferior down.
2617 (target_detach): Pass inferior down. Assert that it is equal to
2618 the current inferior.
2619 * aix-thread.c (aix_thread_detach): Pass inferior down.
2620 * corefile.c (core_file_command): Pass current_inferior() down.
2621 * corelow.c (core_detach): Add inferior parameter.
2622 * darwin-nat.c (darwin_detach): Likewise.
2623 * gnu-nat.c (gnu_detach): Likewise.
2624 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2625 * infcmd.c (detach_command): Pass current_inferior() down to
2627 * infrun.c (follow_fork_inferior): Pass parent_inf to
2629 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2631 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2632 * linux-thread-db.c (thread_db_detach): Likewise.
2633 * nto-procfs.c (procfs_detach): Likewise.
2634 * procfs.c (procfs_detach): Likewise.
2635 * record.c (record_detach): Likewise.
2636 * record.h (struct inferior): Forward-declare.
2637 (record_detach): Add inferior parameter.
2638 * remote-sim.c (gdbsim_detach): Likewise.
2639 * remote.c (remote_detach_1): Likewise.
2640 (remote_detach): Likewise.
2641 (extended_remote_detach): Likewise.
2642 * sol-thread.c (sol_thread_detach): Likewise.
2643 * target-debug.h (target_debug_print_inferior_p): New macro.
2644 * target-delegates.c: Re-generate.
2645 * top.c (kill_or_detach): Pass inferior down to target_detach.
2646 * windows-nat.c (windows_detach): Add inferior parameter.
2648 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2650 * target.h (struct target_ops) <to_detach>: Remove args
2652 (target_detach): Likewise.
2653 * target.c (dispose_inferior): Adjust.
2654 (target_detach): Remove args parameter, adjust.
2655 * aix-thread.c (aix_thread_detach): Adjust.
2656 * corefile.c (core_file_command): Adjust.
2657 * corelow.c (core_detach): Adjust.
2658 * darwin-nat.c (darwin_detach): Adjust.
2659 * gnu-nat.c (gnu_detach): Adjust.
2660 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2661 * infcmd.c (detach_command): Adjust
2662 * infrun.c (follow_fork_inferior): Adjust.
2663 (handle_vfork_child_exec_or_exit): Adjust.
2664 * linux-fork.c (linux_fork_detach): Remove args parameter.
2665 * linux-fork.h (linux_fork_detach): Likewise.
2666 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2667 * linux-thread-db.c (thread_db_detach): Likewise.
2668 * nto-procfs.c (procfs_detach): Likewise.
2669 * procfs.c (procfs_detach): Likewise.
2670 (do_detach): Remove signo parameter.
2671 * record.c (record_detach): Remove args parameter.
2672 * record.h (record_detach): Likewise.
2673 * remote-sim.c (gdbsim_detach): Likewise.
2674 * remote.c (remote_detach_1): Likewise.
2675 (remote_detach): Likewise.
2676 (extended_remote_detach): Likewise.
2677 * sol-thread.c (sol_thread_detach): Likewise.
2678 * target-delegates.c: Re-generate.
2679 * top.c (struct qt_args) <args>: Remove field.
2680 (kill_or_detach): Don't pass args.
2681 (quit_force): Don't set args.
2682 * windows-nat.c (windows_detach): Remove args parameter.
2684 2018-01-19 Yao Qi <yao.qi@linaro.org>
2686 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2687 (arm_linux_init_abi): Install it.
2689 2018-01-19 Yao Qi <yao.qi@linaro.org>
2691 * osabi.c (gdb_osabi_names): Extend the regexp for
2692 arm-linux-gnueabihf.
2694 2018-01-18 Yao Qi <yao.qi@linaro.org>
2696 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2698 (abbrev_table::add_abbrev): Update.
2699 (abbrev_table::lookup_abbrev): Update.
2701 2018-01-18 Yao Qi <yao.qi@linaro.org>
2703 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2705 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2707 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2710 2018-01-17 Tom Tromey <tom@tromey.com>
2712 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2714 2018-01-17 Tom Tromey <tom@tromey.com>
2716 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2717 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2718 (create_array_type_with_stride): Update.
2719 * dwarf2read.c (set_die_type): Update.
2721 2018-01-17 Tom Tromey <tom@tromey.com>
2723 * dwarf2read.c (delayed_method_info): Remove typedef.
2724 (dwarf2_cu::method_info): Now a std::vector.
2725 (add_to_method_list): Update.
2726 (free_delayed_list): Remove.
2727 (compute_delayed_physnames): Update.
2728 (process_full_comp_unit, process_full_type_unit): Clear the method
2729 list. Remove cleanups.
2730 (psymtab_include_file_name): Add name_holder parameter. Use
2732 (dwarf_decode_lines): Update.
2734 2018-01-17 Tom Tromey <tom@tromey.com>
2735 Simon Marchi <simon.marchi@ericsson.com>
2737 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2738 (dwarf2_per_objfile::free_cached_comp_units)
2739 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2740 (init_cutu_and_read_dies_no_follow): Update.
2741 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2742 (dwarf2_cu::~dwarf2_cu): New.
2743 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2744 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2746 2018-01-17 Tom Tromey <tom@tromey.com>
2747 Simon Marchi <simon.marchi@ericsson.com>
2749 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2750 (struct die_reader_specs) <abbrev_table>: New member.
2751 (struct abbrev_table): Add constructor.
2752 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2753 <abbrev_obstack>: Now an auto_obstack.
2754 (abbrev_table_up): New typedef.
2755 (init_cu_die_reader): Add abbrev_table parameter.
2756 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2757 Add result_dwo_abbrev_table.
2758 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2759 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2761 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2763 (skip_children): Update.
2764 (abbrev_table::alloc_abbrev): Rename from
2765 abbrev_table_alloc_abbrev.
2766 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2767 (abbrev_table::lookup_abbrev): Rename from
2768 abbrev_table_lookup_abbrev.
2769 (abbrev_table_read_table): Return abbrev_table_up.
2770 (abbrev_table_free, abbrev_table_free_cleanup)
2771 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2772 (load_partial_dies): Update.
2774 2018-01-17 Tom Tromey <tom@tromey.com>
2776 * dwarf2read.c (dwarf2_compute_name): Update comment.
2777 (read_func_scope, read_variable): Update.
2778 (new_symbol): Remove.
2779 (new_symbol_full): Rename to new_symbol.
2781 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2784 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2785 a warning instead of throwing an error, set section size to 0 and return
2787 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2789 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2791 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2793 (linux_ptrace_attach_fail_reason_string): Likewise.
2794 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2796 (linux_ptrace_attach_fail_reason_string): Likewise.
2797 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2799 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2801 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2803 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2806 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2807 checking for fs_base/gs_base fields in struct user_regs_struct.
2808 * configure: Regenerate.
2810 2018-01-17 Yao Qi <yao.qi@linaro.org>
2812 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2814 (aarch64_linux_init_abi): Install it to gdbarch hook
2817 2018-01-15 Pedro Alves <palves@redhat.com>
2819 * common/signals-state-save-restore.c
2820 (save_original_signals_state): Fix typos.
2822 2017-01-12 Tom Tromey <tom@tromey.com>
2823 Sergio Durigan Junior <sergiodj@redhat.com>
2825 * Makefile.in (install-only): Install gdb-add-index.
2827 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2829 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2831 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833 * infrun.c (keep_going_pass_signal): Clear step-over info when
2834 insert_breakpoints fails.
2836 2018-01-11 Pedro Alves <palves@redhat.com>
2839 * infrun.c (resume): Rename to ...
2840 (resume_1): ... this.
2841 (resume): Reimplement as wrapper around resume_1.
2843 2018-01-11 Pedro Alves <palves@redhat.com>
2846 * remote.c (remote_parse_stop_reply): Default to the last-set
2847 general thread instead of to 'magic_null_ptid'.
2849 2018-01-10 Pedro Alves <palves@redhat.com>
2851 * language.h (language_get_symbol_name_matcher): Rename ...
2852 (get_symbol_name_matcher): ... this.
2853 * language.c (language_get_symbol_name_matcher): Ditto.
2854 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2857 2018-01-10 Pedro Alves <palves@redhat.com>
2861 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2862 Adjust to use language_get_symbol_name_matcher instead of
2863 language_defn::la_get_symbol_name_matcher.
2864 * language.c (language_get_symbol_name_matcher): If in Ada mode
2865 and the lookup name is a verbatim match, return Ada's matcher.
2866 * language.h (language_get_symbol_name_matcher): Adjust comment.
2867 (ada_lookup_name_info::verbatim_p):: New method.
2869 2018-01-10 Pedro Alves <palves@redhat.com>
2872 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2873 minsym's language is language_auto or language_cplus, pass down
2874 language_ada instead.
2875 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2877 2018-01-10 Pedro Alves <palves@redhat.com>
2880 * minsyms.c (linkage_name_str): New function.
2881 (iterate_over_minimal_symbols): Use it.
2883 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2885 * NEWS: Document that 'info proc' now works on FreeBSD.
2887 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2889 * configure.ac: Check for kinfo_getfile in libutil.
2890 * configure: Regenerate.
2891 * config.in: Regenerate.
2892 * fbsd-nat.c: Include "fbsd-tdep.h".
2893 (fbsd_fetch_cmdline): New.
2894 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2895 rather than calling error.
2896 (fbsd_info_proc): New.
2897 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2898 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2899 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2901 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2903 * fbsd-nat.c (struct free_deleter): Remove.
2904 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2906 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2908 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2909 NULL for an empty pathname.
2911 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2913 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2914 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2915 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2916 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2917 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2918 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2919 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2920 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2921 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2922 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2923 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2924 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2925 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2926 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2927 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2929 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2931 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2932 (gnu_xfer_auxv): New function.
2933 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2936 2018-01-08 Yao Qi <yao.qi@linaro.org>
2937 Simon Marchi <simon.marchi@ericsson.com>
2939 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2941 (COMMON_OBS): Remove selftest.o.
2942 * configure.ac: Append selftest-arch.c and common/selftest.c to
2943 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2944 * configure: Re-generated.
2945 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2947 (maintenance_info_selftests): Likewise.
2949 2018-01-08 Xavier Roirand <roirand@adacore.com>
2951 * ada-valprint.c (val_print_packed_array_elements): Use
2952 proper number of elements when printing an array indexed
2953 by an enumeration type.
2955 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2957 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2958 (dw2_get_file_names_reader): Adjust.
2959 (lookup_dwo_signatured_type): Adjust.
2960 (lookup_dwp_signatured_type): Adjust.
2961 (lookup_signatured_type): Adjust.
2962 (create_type_unit_group): Adjust.
2963 (get_type_unit_group): Adjust.
2964 (process_psymtab_comp_unit_reader): Adjust.
2965 (build_type_psymtabs_reader): Adjust.
2966 (scan_partial_symbols): Adjust.
2967 (add_partial_symbol): Adjust.
2968 (add_partial_subprogram): Adjust.
2969 (peek_die_abbrev): Adjust.
2970 (fixup_go_packaging): Adjust.
2971 (process_imported_unit_die): Adjust.
2972 (dwarf2_compute_name): Adjust.
2973 (dwarf2_physname): Adjust.
2974 (read_import_statement): Adjust.
2975 (handle_DW_AT_stmt_list): Adjust.
2976 (read_file_scope): Adjust.
2977 (read_func_scope): Adjust.
2978 (read_lexical_block_scope): Adjust.
2979 (read_call_site_scope): Adjust.
2980 (read_variable): Adjust.
2981 (dwarf2_rnglists_process): Adjust.
2982 (dwarf2_ranges_process): Adjust.
2983 (dwarf2_ranges_read): Adjust.
2984 (dwarf2_get_pc_bounds): Adjust.
2985 (dwarf2_record_block_ranges): Adjust.
2986 (dwarf2_add_field): Adjust.
2987 (dwarf2_add_member_fn): Adjust.
2988 (read_structure_type): Adjust.
2989 (process_structure_scope): Adjust.
2990 (read_enumeration_type): Adjust.
2991 (read_array_type): Adjust.
2992 (mark_common_block_symbol_computed): Adjust.
2993 (read_common_block): Adjust.
2994 (read_namespace_type): Adjust.
2995 (read_namespace): Adjust.
2996 (read_module_type): Adjust.
2997 (read_tag_pointer_type): Adjust.
2998 (read_tag_ptr_to_member_type): Adjust.
2999 (read_tag_string_type): Adjust.
3000 (read_subroutine_type): Adjust.
3001 (read_typedef): Adjust.
3002 (read_base_type): Adjust.
3003 (attr_to_dynamic_prop): Adjust.
3004 (read_subrange_type): Adjust.
3005 (read_unspecified_type): Adjust.
3006 (dwarf2_read_abbrevs): Adjust.
3007 (load_partial_dies): Adjust.
3008 (read_partial_die): Adjust.
3009 (find_partial_die): Adjust.
3010 (guess_partial_die_structure_name): Adjust.
3011 (fixup_partial_die): Adjust.
3012 (read_attribute_value): Adjust.
3013 (read_addr_index): Adjust.
3014 (read_addr_index_from_leb128): Adjust.
3015 (read_str_index): Adjust.
3016 (dwarf2_string_attr): Adjust.
3017 (get_debug_line_section): Adjust.
3018 (dwarf_decode_line_header): Adjust.
3019 (lnp_state_machine::check_line_address): Adjust.
3020 (dwarf_decode_lines_1): Adjust.
3021 (dwarf_decode_lines): Adjust.
3022 (dwarf2_start_symtab): Adjust.
3023 (var_decode_location): Adjust.
3024 (new_symbol_full): Adjust.
3025 (dwarf2_const_value_data): Adjust.
3026 (dwarf2_const_value_attr): Adjust.
3027 (dwarf2_const_value): Adjust.
3029 (die_containing_type): Adjust.
3030 (build_error_marker_type): Adjust.
3031 (lookup_die_type): Adjust.
3032 (guess_full_die_structure_name): Adjust.
3033 (anonymous_struct_prefix): Adjust.
3034 (determine_prefix): Adjust.
3035 (dwarf2_name): Adjust.
3036 (follow_die_ref_or_sig): Adjust.
3037 (follow_die_offset): Adjust.
3038 (follow_die_ref): Adjust.
3039 (follow_die_sig_1): Adjust.
3040 (follow_die_sig): Adjust.
3041 (get_signatured_type): Adjust.
3042 (get_DW_AT_signature_type): Adjust.
3043 (decode_locdesc): Adjust.
3044 (dwarf_decode_macros): Adjust.
3045 (cu_debug_loc_section): Adjust.
3046 (fill_in_loclist_baton): Adjust.
3047 (dwarf2_symbol_mark_computed): Adjust.
3048 (init_one_comp_unit): Don't assign
3049 dwarf2_cu::dwarf2_per_objfile.
3050 (set_die_type): Adjust.
3052 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3054 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3055 <dwarf2_per_objfile>: New field.
3056 (dwarf2_per_objfile): Remove global.
3057 (get_dwarf2_per_objfile): New function.
3058 (set_dwarf2_per_objfile): New function.
3059 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3061 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3062 (read_abbrev_offset): Likewise.
3063 (read_indirect_string): Likewise.
3064 (read_indirect_line_string): Likewise.
3065 (read_indirect_string_at_offset): Likewise.
3066 (read_indirect_string_from_dwz): Likewise.
3067 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3069 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3070 (create_all_comp_units): Change objfile parameter to
3072 (create_all_type_units): Likewise.
3073 (process_queue): Add dwarf2_per_objfile parameter.
3074 (read_and_check_comp_unit_head): Likewise.
3075 (lookup_dwo_unit_in_dwp): Likewise.
3076 (get_dwp_file): Likewise.
3077 (process_cu_includes): Likewise.
3078 (struct free_dwo_file_cleanup_data): New struct.
3079 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3080 set_dwarf2_per_objfile.
3081 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3082 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3083 context, adjust calls.
3084 (dw2_instantiate_symtab): Likewise.
3085 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3086 (dw2_get_cu): Likewise.
3087 (create_cu_from_index_list): Change objfile parameter to
3089 (create_cus_from_index_list): Get dwarf2_per_objfile from
3090 context, adjust calls.
3091 (create_cus_from_index): Likewise.
3092 (create_signatured_type_table_from_index): Change objfile
3093 parameter to dwarf2_per_objfile.
3094 (create_signatured_type_table_from_debug_names): Change objfile
3095 parameter to dwarf2_per_objfile.
3096 (create_addrmap_from_index): Likewise.
3097 (create_addrmap_from_aranges): Likewise.
3098 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3099 (dw2_setup): Remove.
3100 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3102 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3103 get_dwarf2_per_objfile.
3104 (dw2_forget_cached_source_info): Likewise.
3105 (dw2_map_symtabs_matching_filename): Likewise.
3106 (struct dw2_symtab_iterator) <index>: Remove.
3107 <dwarf2_per_objfile>: New field.
3108 (dw2_symtab_iter_init): Replace index parameter with
3110 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3111 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3112 (dw2_print_stats): Likewise.
3113 (dw2_dump): Likewise.
3114 (dw2_expand_symtabs_for_function): Likewise.
3115 (dw2_expand_all_symtabs): Likewise.
3116 (dw2_expand_symtabs_with_fullname): Likewise.
3117 (dw2_expand_marked_cus): Replace index and objfile parameters
3118 with dwarf2_per_objfile.
3119 (dw_expand_symtabs_matching_file_matcher): Add
3120 dwarf2_per_objfile parameter and adjust calls.
3121 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3123 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3124 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3126 (create_cus_from_debug_names_list): Replace objfile parameter
3127 with dwarf2_per_objfile and adjust calls.
3128 (create_cus_from_debug_names): Likewise.
3129 (dwarf2_read_debug_names): Likewise.
3130 (mapped_debug_names::namei_to_name): Adjust call.
3131 (dw2_debug_names_iterator::next): Likewise.
3132 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3133 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3134 (dw2_debug_names_dump): Likewise.
3135 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3136 (dw2_debug_names_expand_symtabs_matching): Likewise.
3137 (dwarf2_initialize_objfile): Likewise.
3138 (dwarf2_build_psymtabs): Likewise.
3139 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3141 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3142 (read_and_check_comp_unit_head): Likewise.
3143 (read_abbrev_offset): Likewise.
3144 (create_debug_type_hash_table): Likewise.
3145 (create_debug_types_hash_table): Likewise.
3146 (create_all_type_units): Replace objfile parameter with
3148 (add_type_unit): Add dwarf2_per_objfile parameter.
3149 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3150 with dwarf2_per_objfile.
3151 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3152 (lookup_dwp_signatured_type): Likewise.
3153 (lookup_signatured_type): Likewise.
3154 (read_cutu_die_from_dwo): Likewise.
3155 (init_tu_and_read_dwo_dies): Likewise.
3156 (init_cutu_and_read_dies): Likewise.
3157 (init_cutu_and_read_dies_no_follow): Likewise.
3158 (allocate_type_unit_groups_table): Add objfile parameter.
3159 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3160 (get_type_unit_group): Likewise.
3161 (process_psymtab_comp_unit): Update call.
3162 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3163 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3164 (print_tu_stats): Likewise.
3165 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3167 (build_type_psymtabs): Change objfile parameter to
3169 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3170 passed in void* parameter.
3171 (process_skeletonless_type_units): Change objfile parameter to
3173 (set_partial_user): Likewise.
3174 (dwarf2_build_psymtabs_hard): Likewise.
3175 (read_comp_units_from_section): Likewise.
3176 (create_all_comp_units): Likewise.
3177 (scan_partial_symbols): Update calls.
3178 (add_partial_symbol): Likewise.
3179 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3180 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3181 (process_queue): Add dwarf2_per_objfile parameter.
3182 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3183 (compute_compunit_symtab_includes): Likewise.
3184 (process_cu_includes): Add dwarf2_per_objfile parameter.
3185 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3186 (process_full_type_unit): Likewise.
3187 (process_imported_unit_die): Update call.
3188 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3189 (read_file_scope): Likewise.
3190 (allocate_dwo_file_hash_table): Add objfile parameter.
3191 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3192 (create_cus_hash_table): Likewise.
3193 (create_dwp_hash_table): Likewise.
3194 (create_dwo_unit_in_dwp_v1): Likewise.
3195 (create_dwp_v2_section): Likewise.
3196 (create_dwo_unit_in_dwp_v2): Likewise.
3197 (lookup_dwo_unit_in_dwp): Likewise.
3198 (try_open_dwop_file): Likewise.
3199 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3200 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3201 cleanup to include a reference to dwarf2_per_objfile.
3202 (open_dwp_file): Add dwarf2_per_objfile parameter.
3203 (open_and_init_dwp_file): Likewise.
3204 (get_dwp_file): Likewise.
3205 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3206 (queue_and_load_all_dwo_tus): Update call.
3207 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3209 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3210 (dwarf2_ranges_process): Likewise.
3211 (dwarf2_get_pc_bounds): Likewise.
3212 (mark_common_block_symbol_computed): Likewise.
3213 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3214 (dwarf2_read_abbrevs): Update call.
3215 (read_partial_die): Use dwarf2_per_objfile from cu.
3216 (find_partial_die): Likewise.
3217 (fixup_partial_die): Likewise.
3218 (read_attribute_value): Likewise.
3219 (read_indirect_string_at_offset_from): Add objfile parameter.
3220 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3222 (read_indirect_string_from_dwz): Add objfile parameter.
3223 (read_indirect_string): Add objfile parameter.
3224 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3225 (read_addr_index): Use dwarf2_per_objfile from cu.
3226 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3228 (read_str_index): Use dwarf2_per_objfile from cu.
3229 (get_debug_line_section): Likewise.
3230 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3231 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3232 (new_symbol_full): Use dwarf2_per_objfile from cu.
3233 (build_error_marker_type): Likewise.
3234 (lookup_die_type): Likewise.
3235 (determine_prefix): Likewise.
3236 (follow_die_offset): Likewise.
3237 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3238 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3239 (dwarf2_fetch_die_type_sect_off): Likewise.
3240 (dwarf2_get_die_type): Likewise.
3241 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3242 (get_signatured_type): Likewise.
3243 (get_DW_AT_signature_type): Likewise.
3244 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3245 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3246 (cu_debug_loc_section): Likewise.
3247 (fill_in_loclist_baton): Likewise.
3248 (dwarf2_symbol_mark_computed): Likewise.
3249 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3251 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3253 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3254 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3255 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3256 (set_die_type): Use dwarf2_free_objfile from cu.
3257 (get_die_type_at_offset): Likewise.
3258 (dwarf2_per_objfile_free): Don't assign global variable.
3259 (debug_names) <constructor>: Add dwarf2_per_objfile
3260 parameter, update m_debugstrlookup construction.
3261 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3263 <m_dwarf2_per_objfile>: New field.
3264 <lookup>: Use m_dwarf2_per_objfile.
3265 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3266 (psyms_seen_size): Likewise.
3267 (write_gdbindex): Replace objfile parameter with
3269 (write_debug_names): Likewise.
3270 (write_psymtabs_to_index): Likewise.
3271 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3274 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3276 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3277 <dwarf2_per_objfile>: New field.
3278 (struct dwarf2_per_cu_data) <objfile>: Remove.
3279 <dwarf2_per_objfile>: New field.
3280 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3282 (create_signatured_type_table_from_index): Likewise.
3283 (create_debug_type_hash_table): Likewise.
3284 (fill_in_sig_entry_from_dwo_entry): Likewise.
3285 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3286 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3288 (create_partial_symtab): Access objfile through
3290 (process_psymtab_comp_unit_reader): Likewise.
3291 (read_comp_units_from_section): Likewise.
3292 (scan_partial_symbols): Likewise.
3293 (add_partial_symbol): Likewise.
3294 (add_partial_subprogram): Likewise.
3295 (peek_die_abbrev): Likewise.
3296 (fixup_go_packaging): Likewise.
3297 (process_full_comp_unit): Likewise.
3298 (process_full_type_unit): Likewise.
3299 (process_imported_unit_die): Likewise.
3300 (dwarf2_compute_name): Likewise.
3301 (dwarf2_physname): Likewise.
3302 (read_import_statement): Likewise.
3303 (create_cus_hash_table): Assign dwarf2_physname instead of
3305 (read_func_scope): Access objfile through dwarf2_per_objfile.
3306 (read_lexical_block_scope): Likewise.
3307 (read_call_site_scope): Likewise.
3308 (read_variable): Likewise.
3309 (dwarf2_rnglists_process): Likewise.
3310 (dwarf2_ranges_process): Likewise.
3311 (dwarf2_ranges_read): Likewise.
3312 (dwarf2_record_block_ranges): Likewise.
3313 (dwarf2_add_field): Likewise.
3314 (dwarf2_add_member_fn): Likewise.
3315 (read_structure_type): Likewise.
3316 (process_structure_scope): Likewise.
3317 (read_enumeration_type): Likewise.
3318 (read_array_type): Likewise.
3319 (read_common_block): Likewise.
3320 (read_namespace_type): Likewise.
3321 (read_namespace): Likewise.
3322 (read_module_type): Likewise.
3323 (read_tag_pointer_type): Likewise.
3324 (read_tag_ptr_to_member_type): Likewise.
3325 (read_tag_string_type): Likewise.
3326 (read_subroutine_type): Likewise.
3327 (read_typedef): Likewise.
3328 (read_base_type): Likewise.
3329 (attr_to_dynamic_prop): Likewise.
3330 (read_subrange_type): Likewise.
3331 (read_unspecified_type): Likewise.
3332 (load_partial_dies): Likewise.
3333 (read_partial_die): Likewise.
3334 (find_partial_die): Likewise.
3335 (guess_partial_die_structure_name): Likewise.
3336 (fixup_partial_die): Likewise.
3337 (read_attribute_value): Likewise.
3338 (read_addr_index_from_leb128): Likewise.
3339 (dwarf2_read_addr_index): Likewise.
3340 (dwarf2_string_attr): Likewise.
3341 (lnp_state_machine::check_line_address): Likewise.
3342 (dwarf_decode_lines_1): Likewise.
3343 (dwarf_decode_lines): Likewise.
3344 (dwarf2_start_symtab): Likewise.
3345 (var_decode_location): Likewise.
3346 (new_symbol_full): Likewise.
3347 (dwarf2_const_value_data): Likewise.
3348 (dwarf2_const_value_attr): Likewise.
3349 (dwarf2_const_value): Likewise.
3350 (die_type): Likewise.
3351 (die_containing_type): Likewise.
3352 (lookup_die_type): Likewise.
3353 (guess_full_die_structure_name): Likewise.
3354 (anonymous_struct_prefix): Likewise.
3355 (dwarf2_name): Likewise.
3356 (follow_die_ref_or_sig): Likewise.
3357 (follow_die_offset): Likewise.
3358 (follow_die_ref): Likewise.
3359 (dwarf2_fetch_die_loc_sect_off): Likewise.
3360 (dwarf2_fetch_constant_bytes): Likewise.
3361 (dwarf2_fetch_die_type_sect_off): Likewise.
3362 (dwarf2_get_die_type): Likewise.
3363 (follow_die_sig): Likewise.
3364 (decode_locdesc): Likewise.
3365 (dwarf2_per_cu_objfile): Likewise.
3366 (dwarf2_per_cu_text_offset): Likewise.
3367 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3369 (set_die_type): Access objfile through
3372 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3374 * valprint.c (converted_character_d): Remove typedef.
3375 (DEF_VEC_O (converted_character_d)): Remove.
3376 (count_next_character): Use std::vector.
3377 (print_converted_chars_to_obstack): Likewise.
3378 (generic_printstr): Likewise.
3380 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3382 * xml-support.h (struct gdb_xml_value): Add constructor.
3383 <value>: Change type to unique_xmalloc_ptr.
3384 (gdb_xml_value_s): Remove typedef.
3385 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3386 (gdb_xml_element_start_handler): Change parameter type to
3388 (xml_find_attribute): Likewise.
3389 * xml-support.c (xml_find_attribute): Change parameter type to
3390 std::vector and adjust.
3391 (gdb_xml_values_cleanup): Remove.
3392 (gdb_xml_parser::start_element): Adjust to std::vector.
3393 (xinclude_start_include): Change paraeter type to std::vector
3395 * btrace.c (check_xml_btrace_version): Likewise.
3396 (parse_xml_btrace_block): Likewise.
3397 (parse_xml_btrace_pt_config_cpu): Likewise.
3398 (parse_xml_btrace_pt): Likewise.
3399 (parse_xml_btrace_conf_bts): Likewise.
3400 (parse_xml_btrace_conf_pt): Likewise.
3401 * memory-map.c (memory_map_start_memory): Likewise.
3402 (memory_map_start_property): Likewise.
3403 * osdata.c (osdata_start_osdata): Likewise.
3404 (osdata_start_item): Likewise.
3405 (osdata_start_column): Likewise.
3406 * remote.c (start_thread): Likewise.
3407 * solib-aix.c (library_list_start_library): Likewise.
3408 (library_list_start_list): Likewise.
3409 * solib-svr4.c (library_list_start_library): Likewise.
3410 (svr4_library_list_start_list): Likewise.
3411 * solib-target.c (library_list_start_segment): Likewise.
3412 (library_list_start_section): Likewise.
3413 (library_list_start_library): Likewise.
3414 (library_list_start_list): Likewise.
3415 * tracepoint.c (traceframe_info_start_memory): Likewise.
3416 (traceframe_info_start_tvar): Likewise.
3417 * xml-syscall.c (syscall_start_syscall): Likewise.
3418 * xml-tdesc.c (tdesc_start_target): Likewise.
3419 (tdesc_start_feature): Likewise.
3420 (tdesc_start_reg): Likewise.
3421 (tdesc_start_union): Likewise.
3422 (tdesc_start_struct): Likewise.
3423 (tdesc_start_flags): Likewise.
3424 (tdesc_start_enum): Likewise.
3425 (tdesc_start_field): Likewise.
3426 (tdesc_start_enum_value): Likewise.
3427 (tdesc_start_vector): Likewise.
3429 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3431 * extension.h (struct xmethod_worker) <clone>: Remove.
3432 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3434 (python_xmethod_worker::clone): Remove.
3435 * valops.c (find_overload_match): Use std::move instead of
3438 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3440 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3441 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3442 <free_xmethod_worker_data>: Remove.
3443 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3444 <get_xmethod_arg_types>: Remove.
3445 <get_xmethod_result_type>: Remove.
3446 <invoke_xmethod>: Remove.
3447 * extension.c (new_xmethod_worker): Remove.
3448 (clone_xmethod_worker): Remove.
3449 (get_matching_xmethod_workers): Return void, pass std::vector by
3451 (get_xmethod_arg_types): Rename to...
3452 (xmethod_worker::get_arg_types): ... this, and adjust.
3453 (get_xmethod_result_type): Rename to...
3454 (xmethod_worker::get_result_type): ... this, and adjust.
3455 (invoke_xmethod): Remove.
3456 (free_xmethod_worker): Remove.
3457 (free_xmethod_worker_vec): Remove.
3458 * extension.h (enum ext_lang_rc): Move here from
3460 (struct xmethod_worker): Add constructor and destructor.
3463 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3464 virtual pure methods.
3465 <get_arg_types, get_result_type>: New methods.
3466 (xmethod_worker_ptr): Remove typedef.
3467 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3468 (xmethod_worker_vec): Remove typedef.
3469 (xmethod_worker_up): New typedef.
3470 (invoke_xmethod): Remove.
3471 (clone_xmethod_worker): Remove.
3472 (free_xmethod_worker): Remove.
3473 (free_xmethod_worker_vec): Remove.
3474 (get_xmethod_arg_types): Remove.
3475 (get_xmethod_result_type): Remove.
3476 * valops.c (find_method_list): Use std::vector, don't use
3477 intermediate vector.
3478 (value_find_oload_method_list): Use std::vector.
3479 (find_overload_match): Use std::vector.
3480 (find_oload_champ): Use std::vector.
3481 * value.c (value_free): Use operator delete.
3482 (value_of_xmethod): Rename to...
3483 (value_from_xmethod): ... this. Don't assign
3484 xmethod_worker::value, take rvalue-reference.
3485 (result_type_of_xmethod): Adjust.
3486 (call_xmethod): Adjust.
3487 * value.h: Include extension.h.
3488 (struct xmethod_worker): Don't forward-declare.
3489 (value_of_xmethod): Rename to...
3490 (value_from_xmethod): ... this, take rvalue-reference.
3491 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3492 (struct python_xmethod_worker): ... this, add constructor and
3494 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3495 (gdbpy_free_xmethod_worker_data): Rename to...
3496 (python_xmethod_worker::~python_xmethod_worker): ... this and
3498 (gdbpy_clone_xmethod_worker_data): Rename to...
3499 (python_xmethod_worker::clone): ... this and adjust.
3500 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3502 (gdbpy_get_xmethod_arg_types): Rename to...
3503 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3504 (gdbpy_get_xmethod_result_type): Rename to...
3505 (python_xmethod_worker::do_get_result_type): ... this and
3507 (gdbpy_invoke_xmethod): Rename to...
3508 (python_xmethod_worker::invoke): ... this and adjust.
3509 (new_python_xmethod_worker): Rename to...
3510 (python_xmethod_worker::python_xmethod_worker): ... this and
3512 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3514 (gdbpy_free_xmethod_worker_data): Remove.
3515 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3516 (gdbpy_get_xmethod_arg_types): Remove.
3517 (gdbpy_get_xmethod_result_type): Remove.
3518 (gdbpy_invoke_xmethod): Remove.
3519 * python/python.c (python_extension_ops): Remove obsolete
3522 2018-01-05 Pedro Alves <palves@redhat.com>
3525 * common/signals-state-save-restore.c
3526 (save_original_signals_state): New parameter 'quiet'. Warn if we
3527 find a custom handler preinstalled, instead of internal erroring.
3528 But only warn if !quiet.
3529 * common/signals-state-save-restore.h
3530 (save_original_signals_state): New parameter 'quiet'.
3531 * main.c (captured_main_1): Move save_original_signals_state call
3532 after option handling, and pass QUIET.
3534 2018-01-05 Pedro Alves <palves@redhat.com>
3536 * spu-tdep.c (spu_catch_start): Pass
3537 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3539 2018-01-05 Pedro Alves <palves@redhat.com>
3542 * ada-lang.c (literal_symbol_name_matcher): New function.
3543 (ada_get_symbol_name_matcher): Use it for
3544 symbol_name_match_type::SEARCH_NAME.
3545 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3546 it down instead of assuming symbol_name_match_type::FULL.
3547 * block.h (block_lookup_symbol): New parameter 'match_type'.
3548 * c-valprint.c (print_unpacked_pointer): Use
3549 lookup_symbol_search_name instead of lookup_symbol.
3550 * compile/compile-object-load.c (get_out_value_type): Pass down
3551 symbol_name_match_type::SEARCH_NAME.
3552 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3553 symbol_name_match_type::FULL.
3554 * cp-support.c (cp_get_symbol_name_matcher): Handle
3555 symbol_name_match_type::SEARCH_NAME.
3556 * infrun.c (insert_exception_resume_breakpoint): Use
3557 lookup_symbol_search_name.
3558 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3559 * psymtab.c (maintenance_check_psymtabs): Use
3560 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3561 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3563 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3564 if symbol_name_match_type::SEARCH_NAME.
3565 (lookup_symbol_in_language): Pass down
3566 symbol_name_match_type::FULL.
3567 (lookup_symbol_search_name): New.
3568 (lookup_language_this): Pass down
3569 symbol_name_match_type::SEARCH_NAME.
3570 (lookup_symbol_aux, lookup_local_symbol): New parameter
3571 'match_type'. Pass it down.
3572 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3573 (lookup_symbol_search_name): New declaration.
3574 (lookup_symbol_in_block): New 'match_type' parameter.
3576 2018-01-05 Pedro Alves <palves@redhat.com>
3579 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3581 (ada_lookup_symbol): Reimplement in terms of
3582 ada_lookup_symbol_list, bits factored out from
3583 ada_lookup_encoded_symbol.
3585 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3587 * ada-exp.y (write_object_renaming): When subscripting an array
3588 using a symbol as the index, pass the block in call to
3589 ada_lookup_encoded_symbol when looking that symbol up.
3591 2018-01-05 Jerome Guitton <guitton@adacore.com>
3593 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3596 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3598 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3599 the case where VALUE_LVAL (val0) is not lval_memory.
3601 2018-01-05 Xavier Roirand <roirand@adacore.com>
3603 * ada-valprint.c (print_optional_low_bound): Handle
3604 character-indexed array printing like boolean-indexed array
3607 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3609 * NEWS: Create a new section for the next release branch.
3610 Rename the section of the current branch, now that it has
3613 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3615 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3616 * version.in: Bump version to 8.1.50.DATE-git.
3618 2018-01-03 Xavier Roirand <roirand@adacore.com>
3620 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3622 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3624 (default_exception_support_info) <catch_handlers_sym>: Add field.
3625 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3626 (ada_exception_name_addr_1): Add "catch handlers" handling.
3627 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3629 (create_excep_cond_exprs) <ex>: Add parameter.
3630 (re_set_exception): Update create_excep_cond_exprs call.
3631 (print_it_exception, print_one_exception, print_mention_exception)
3632 (print_recreate_exception): Add "catch handler" handling.
3633 (allocate_location_catch_handlers, re_set_catch_handlers)
3634 (check_status_catch_handlers, print_it_catch_handlers)
3635 (print_one_catch_handlers, print_mention_catch_handlers)
3636 (print_recreate_catch_handlers): New function.
3637 (catch_handlers_breakpoint_ops): New variable.
3638 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3639 Add parameter. Add "catch handler" handling.
3640 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3641 Add "catch handler" handling.
3642 (ada_exception_catchpoint_cond_string): Add "catch handler"
3644 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3646 (catch_ada_handlers_command): New function.
3647 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3648 operations structure.
3649 (_initialize_ada_language): Add "catch handlers" command entry.
3650 * NEWS: Document "catch handlers" feature.
3652 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3654 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3655 account when creating the array type of the slice.
3656 (ada_value_slice): Likewise.
3658 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3660 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3662 (create_array_type_with_stride): Add byte_stride_prop parameter.
3663 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3664 New parameter. Update all callers in this file.
3665 (array_type_has_dynamic_stride): New function.
3666 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3667 of arrays with dynamic byte strides.
3668 * dwarf2read.c (read_array_type): Add support for dynamic
3669 DW_AT_byte_stride attributes.
3671 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3673 * dwarf2read.c (read_unspecified_type): Treat
3674 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3676 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3678 Update copyright year range in all GDB files.
3680 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3682 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3683 and gdb/testsuite/gdb.base/step-line.c.
3685 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3687 * copyright.py (main): Dump the contents of
3688 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3689 even if BY_HAND is empty.
3691 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3693 * top.c (print_gdb_version): Update Copyright year in version
3696 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3698 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3700 For older changes see ChangeLog-2017.
3706 version-control: never