1 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4 * mi/mi-console.c (do_fputc_async_safe): New.
5 (mi_console_file::write_async_safe): New.
6 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
7 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
9 * ui-file.c (ui_file::putstrn): Adjust call to
11 * utils.c (printchar): Replace do_fputs and do_fprintf
12 parameters by do_fputc.
13 (fputstr_filtered): Adjust call to printchar.
14 (fputstr_unfiltered): Likewise.
15 (fputstrn_filtered): Likewise.
16 (fputstrn_unfiltered): Add do_fputc parameter, pass to
18 * utils.h (do_fputc_ftype): New typedef.
19 (fputstrn_unfiltered): Add do_fputc parameter.
21 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
23 * regformats/i386/i386-avx.dat: Remove.
25 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
28 * amd64-tdep.c (amd64_none_init_abi): New function.
29 (amd64_x32_none_init_abi): New function.
30 (_initialize_amd64_tdep): Register handlers for x86-64 and
31 x64_32 with GDB_OSABI_NONE.
32 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
35 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
38 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
40 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
41 * osabi.c (gdb_osabi_names): Add "unknown" entry.
43 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
45 * common/byte-vector.h (char_vector): New type.
46 * target.h (target_read_alloc): Return
47 gdb::optional<byte_vector>.
48 (target_read_stralloc): Return gdb::optional<char_vector>.
49 (target_get_osdata): Return gdb::optional<char_vector>.
50 * target.c (target_read_alloc_1): Templatize. Replacement
51 manual memory management with vector.
52 (target_read_alloc): Change return type, adjust.
53 (target_read_stralloc): Change return type, adjust.
54 (target_get_osdata): Change return type, adjust.
55 * auxv.c (struct auxv_info) <length>: Remove.
56 <data>: Change type to gdb::optional<byte_vector>.
57 (auxv_inferior_data_cleanup): Free auxv_info with delete.
58 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
59 (target_auxv_search): Adjust.
60 (fprint_target_auxv): Adjust.
61 * avr-tdep.c (avr_io_reg_read_command): Adjust.
62 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
63 (linux_make_corefile_notes): Adjust.
64 * osdata.c (get_osdata): Adjust.
65 * remote.c (remote_get_threads_with_qxfer): Adjust.
66 (remote_memory_map): Adjust.
67 (remote_traceframe_info): Adjust.
68 (btrace_read_config): Adjust.
69 (remote_read_btrace): Adjust.
70 (remote_pid_to_exec_file): Adjust.
71 * solib-aix.c (solib_aix_get_library_list): Adjust.
72 * solib-dsbt.c (decode_loadmap): Don't free buf.
73 (dsbt_get_initial_loadmaps): Adjust.
74 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
75 * solib-target.c (solib_target_current_sos): Adjust.
76 * tracepoint.c (sdata_make_value): Adjust.
77 * xml-support.c (xinclude_start_include): Adjust.
78 (xml_fetch_content_from_file): Adjust.
79 * xml-support.h (xml_fetch_another): Change return type.
80 (xml_fetch_content_from_file): Change return type.
81 * xml-syscall.c (xml_init_syscalls_info): Adjust.
82 * xml-tdesc.c (file_read_description_xml): Adjust.
83 (fetch_available_features_from_target): Change return type.
84 (target_fetch_description_xml): Adjust.
85 (target_read_description_xml): Adjust.
87 2018-04-06 Tom Tromey <tom@tromey.com>
89 * value.c (~value): Update.
90 (struct value) <contents>: Now unique_xmalloc_ptr.
91 (value_contents_bits_eq, allocate_value_contents)
92 (value_contents_raw, value_contents_all_raw)
93 (value_contents_for_printing, value_contents_for_printing_const)
94 (set_value_enclosing_type): Update.
96 2018-04-06 Tom Tromey <tom@tromey.com>
98 * value.c (range_s): Remove typedef, VEC.
99 (struct range): Add operator<.
100 (range_lessthan): Remove.
101 (ranges_contain): Change type.
103 (struct value) <unavailable, optimized_out>: Now std::vector.
104 (value_entirely_available)
105 (value_entirely_covered_by_range_vector)
106 (value_entirely_unavailable, value_entirely_optimized_out):
108 (insert_into_bit_range_vector): Change argument type.
109 (find_first_range_overlap): Likewise.
110 (struct ranges_and_idx, value_contents_bits_eq)
111 (require_not_optimized_out, require_available): Update.
112 (ranges_copy_adjusted): Change argument types.
113 (value_optimized_out, value_copy, value_fetch_lazy): Update.
115 2018-04-06 Tom Tromey <tom@tromey.com>
117 * value.c (~value): Update.
118 (struct value) <parent>: Now a value_ref_ptr.
119 (value_parent, set_value_parent, value_address, value_copy):
122 2018-04-06 Tom Tromey <tom@tromey.com>
124 * value.c (struct value): Add constructor, destructor, and member
126 (allocate_value_lazy, value_decref): Update.
128 2018-04-06 Tom Tromey <tom@tromey.com>
130 * value.c (struct value) <released, next>: Remove.
131 (all_values): Now a std::vector.
132 (allocate_value_lazy): Update.
133 (value_next): Remove.
134 (value_mark, value_free_to_mark, release_value)
135 (value_release_to_mark): Update.
137 2018-04-06 Tom Tromey <tom@tromey.com>
139 * value.h (fetch_subexp_value, value_release_to_mark): Update.
140 (free_value_chain): Remove.
141 * value.c (free_value_chain): Remove.
142 (value_release_to_mark): Return a std::vector.
143 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
145 (check_condition): Update.
146 * eval.c (fetch_subexp_value): Change "val_chain" to a
148 * breakpoint.c (update_watchpoint): Update.
149 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
151 2018-04-06 Tom Tromey <tom@tromey.com>
153 * value.h (free_all_values): Remove.
154 * value.c (free_all_values): Remove.
156 2018-04-06 Tom Tromey <tom@tromey.com>
158 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
159 (value_history_chain, value_history_count): Remove.
160 (value_history): New global.
161 (record_latest_value, access_value_history, show_values)
162 (preserve_values): Update.
164 2018-04-06 Tom Tromey <tom@tromey.com>
166 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
167 * varobj.c (varobj_set_display_format, varobj_set_value)
168 (install_default_visualizer, construct_visualizer)
169 (install_new_value, ~varobj, varobj_get_value_type)
170 (my_value_of_variable, varobj_editable_p): Update.
171 * c-varobj.c (c_describe_child, c_value_of_variable)
172 (cplus_number_of_children, cplus_describe_child): Update.
173 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
174 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
175 (ada_value_of_variable, ada_value_is_changeable_p): Update.
177 2018-04-06 Tom Tromey <tom@tromey.com>
179 * printcmd.c (last_examine_address): Change type to
181 (do_examine, x_command): Update.
183 2018-04-06 Tom Tromey <tom@tromey.com>
185 * value.c (release_value): Update.
186 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
187 (struct bpstats) <val>: Now a value_ref_ptr.
188 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
189 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
190 (~watchpoint, print_it_watchpoint, watch_command_1)
191 (invalidate_bp_value_on_memory_change): Update.
193 2018-04-06 Tom Tromey <tom@tromey.com>
195 * varobj.c (varobj_clear_saved_item)
196 (update_dynamic_varobj_children, install_new_value, ~varobj):
198 * value.h (value_incref): Move declaration earlier.
199 (value_decref): Rename from value_free.
200 (struct value_ref_policy): New.
201 (value_ref_ptr): New typedef.
202 (struct value_deleter): Remove.
203 (gdb_value_up): Remove typedef.
204 (release_value): Change return type.
205 (release_value_or_incref): Remove.
206 * value.c (set_value_parent): Update.
207 (value_incref): Change return type.
208 (value_decref): Rename from value_free.
209 (value_free_to_mark, free_all_values, free_value_chain): Update.
210 (release_value): Return value_ref_ptr.
211 (release_value_or_incref): Remove.
212 (record_latest_value, set_internalvar, clear_internalvar):
214 * stack.c (info_frame_command): Don't call value_free.
215 * python/py-value.c (valpy_dealloc, valpy_new)
216 (value_to_value_object): Update.
217 * printcmd.c (do_examine): Update.
218 * opencl-lang.c (lval_func_free_closure): Update.
219 * mi/mi-main.c (register_changed_p): Don't call value_free.
220 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
221 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
222 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
224 * guile/scm-value.c (vlscm_free_value_smob)
225 (vlscm_scm_from_value): Update.
226 * frame.c (frame_register_unwind, frame_unwind_register_signed)
227 (frame_unwind_register_unsigned, get_frame_register_bytes)
228 (put_frame_register_bytes): Don't call value_free.
229 * findvar.c (address_from_register): Don't call value_free.
230 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
231 * dwarf2loc.c (entry_data_value_free_closure)
232 (value_of_dwarf_reg_entry, free_pieced_value_closure)
233 (dwarf2_evaluate_loc_desc_full): Update.
234 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
235 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
236 (~watchpoint, watch_command_1)
237 (invalidate_bp_value_on_memory_change): Update.
238 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
240 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
243 * warning.m4: Add -Wno-error=deprecated-register.
244 * configure: Re-generate.
246 2018-04-05 Tom Tromey <tom@tromey.com>
248 * linespec.h: Remove include of "vec.h".
250 2018-04-05 Tom Tromey <tom@tromey.com>
252 * linespec.c (typep): Remove typedef.
253 (find_methods, find_superclass_methods): Take a std::vector.
254 (find_method): Use std::vector.
256 2018-04-05 Tom Tromey <tom@tromey.com>
258 * utils.c (compare_strings): Remove.
259 * utils.h (compare_strings): Remove.
260 * objc-lang.h (find_imps): Update.
261 * objc-lang.c (find_methods): Take a std::vector.
262 (uniquify_strings, find_imps): Likewise.
263 * linespec.c (find_methods): Take a std::vector.
264 (decode_objc): Use std::vector.
265 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
267 (find_method, find_function_symbols): Use std::vector.
269 2018-04-05 Tom Tromey <tom@tromey.com>
271 * completer.c (completion_tracker::completion_tracker): Remove
273 (completion_tracker::discard_completions): Likewise.
274 * breakpoint.c (ambiguous_names_p): Remove cast.
275 * ada-lang.c (_initialize_ada_language): Remove cast.
276 * utils.h (streq): Update.
277 (streq_hash): Add new declaration.
278 * utils.c (streq): Return bool.
279 (streq_hash): New function.
281 2018-04-05 Tom Tromey <tom@tromey.com>
283 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
284 Remove a string copy.
286 2018-04-05 Tom Tromey <tom@tromey.com>
288 * linespec.c (filter_results): Use std::vector.
289 (decode_line_2, decode_line_full): Update.
291 2018-04-05 Tom Tromey <tom@tromey.com>
293 * linespec.c (canonical_to_fullform): Return std::string.
294 (filter_results): Update.
295 (struct decode_line_2_item): Add constructor.
296 <fullform, displayform>: Now std::string.
297 (decode_line_2_compare_items): Now a std::sort comparator.
298 (decode_line_2): Update.
300 2018-04-05 Tom Tromey <tom@tromey.com>
302 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
303 (unexpected_linespec_error): Update.
304 (linespec_parse_basic, parse_linespec): Update.
306 2018-04-05 Tom Tromey <tom@tromey.com>
308 * linespec.c (linespec_parse_basic): Reindent.
310 2018-04-05 Tom Tromey <tom@tromey.com>
312 * minsyms.h (iterate_over_minimal_symbols): Update.
313 * minsyms.c (iterate_over_minimal_symbols): Take a
315 * linespec.c (struct collect_minsyms): Remove.
316 (compare_msyms): Now a std::sort comparator.
317 (add_minsym): Add parameters.
318 (search_minsyms_for_name): Update. Use std::vector.
320 2018-04-03 Tom Tromey <tom@tromey.com>
322 * mipsread.c (read_alphacoff_dynamic_symtab): Use
325 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
327 * MAINTAINERS (Write After Approval): Add Weimin Pan.
329 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
332 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
333 printing static type.
335 2018-04-01 Tom Tromey <tom@tromey.com>
337 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
338 (rs6000_xfer_shared_libraries): Update.
340 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
342 * common/gdb_vecs.h (char_ptr): Remove.
343 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
345 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
347 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
349 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
351 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
353 * tracepoint.h (struct uploaded_tp): Initialize fields.
354 <actions, step_actions, cmd_strings>: Change type to
356 * tracepoint.c (get_uploaded_tp): Allocate with new.
357 (free_uploaded_tps): Free with delete.
358 (parse_tracepoint_definition): Adjust to std::vector change.
359 * breakpoint.c (read_uploaded_action): Likewise.
360 (create_tracepoint_from_upload): Likewise.
361 * ctf.c (ctf_write_uploaded_tp): Likewise.
362 (SET_ARRAY_FIELD): Likewise.
363 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
365 2018-03-30 Tom Tromey <tom@tromey.com>
367 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
369 (svr4_keep_data_in_core): Update.
370 (svr4_read_so_list): Update.
372 2018-03-30 Tom Tromey <tom@tromey.com>
374 * windows-nat.c (handle_output_debug_string, handle_exception):
376 * target.h (target_read_string): Update.
377 * target.c (target_read_string): Change "string" to
379 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
381 * solib-frv.c (frv_current_sos): Update.
382 * solib-dsbt.c (dsbt_current_sos): Update.
383 * solib-darwin.c (darwin_current_sos): Update.
384 * linux-thread-db.c (inferior_has_bug): Update.
385 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
386 Update. Remove alloca.
387 * ada-lang.c (ada_main_name): Update.
389 2018-03-30 Tom Tromey <tom@tromey.com>
391 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
392 (struct dwo_file_deleter): New.
393 (dwo_file_up): New typedef.
394 (open_and_init_dwo_file): Use dwo_file_up.
395 (free_dwo_file_cleanup): Remove.
397 2018-03-30 Tom Tromey <tom@tromey.com>
399 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
400 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
402 2018-03-30 Tom Tromey <tom@tromey.com>
404 * dwarf2read.c (class free_cached_comp_units): New class.
405 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
406 (free_cached_comp_units): Remove function.
408 2018-03-30 Tom Tromey <tom@tromey.com>
410 * utils.h (make_cleanup_unpush_target): Remove.
411 * inf-ptrace.c (struct target_unpusher): New.
412 (target_unpush_up) New typedef.
413 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
415 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
417 2018-03-27 Tom Tromey <tom@tromey.com>
419 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
421 2018-03-27 Pedro Alves <palves@redhat.com>
422 Tom Tromey <tom@tromey.com>
424 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
425 destructor. Now a class.
426 (gdb_readline_wrapper_cleanup): Remove function.
427 (gdb_readline_wrapper): Remove cleanups.
429 2018-03-27 Tom Tromey <tom@tromey.com>
431 * typeprint.h (struct type_print_options) <local_typedefs,
432 global_typedefs>: Remove "struct" keyword.
433 (class typedef_hash_table): New class.
434 (recursively_update_typedef_hash, add_template_parameters)
435 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
436 (find_typedef_in_hash): Don't declare.
437 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
438 (typedef_hash_table::recursively_update): Rename from
439 recursively_update_typedef_hash. Now a member.
440 (typedef_hash_table::add_template_parameters): Rename from
441 add_template_parameters. Now a member.
442 (typedef_hash_table::typedef_hash_table): Now a constructor;
443 rename from create_typedef_hash.
444 (typedef_hash_table::~typedef_hash_table): Now a destructor;
445 rename from free_typedef_hash.
446 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
447 (do_free_global_table): Remove.
448 (typedef_hash_table::typedef_hash_table): New constructor; renamed
449 from copy_type_recursive.
450 (create_global_typedef_table): Remove.
451 (typedef_hash_table::find_global_typedef): Now a member of
453 (typedef_hash_table::find_typedef): Rename from
454 find_typedef_in_hash; now a member.
455 (whatis_exp): Update.
456 * extension.h (struct ext_lang_type_printers): Add constructor and
458 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
460 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
461 Now a constructor; rename from start_ext_lang_type_printers.
462 (ext_lang_type_printers): Now a destructor; rename from
463 free_ext_lang_type_printers.
464 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
466 (c_type_print_base_struct_union): Update. Remove cleanups.
468 2018-03-27 Tom Tromey <tom@tromey.com>
470 * dwarf-index-write.c: Include <cmath>.
472 2018-03-27 Joel Brobecker <brobecker@adacore.com>
474 * NEWS: Add entry describing new "set|show varsize-limit" command.
475 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
477 * printcmd.c (_initialize_printcmd): Add "set var" alias of
480 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
482 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
484 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
485 * dwarf-index-common.c: New file.
486 * dwarf-index-common.h: New file.
487 * dwarf-index-write.c: New file.
488 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
489 (struct dwarf2_section_info): Move from here.
490 (dwarf2_section_info_def): Likewise.
491 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
492 (offset_type): Likewise.
493 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
494 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
495 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
496 (byte_swap): Likewise.
497 (MAYBE_SWAP): Likewise.
498 (dwarf2_per_cu_ptr): Likewise.
499 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
500 (struct tu_stats): Likewise.
501 (struct dwarf2_per_objfile): Likewise.
502 (struct dwarf2_per_cu_data): Likewise.
503 (struct signatured_type): Likewise.
504 (sig_type_ptr): Likewise.
505 (DEF_VEC_P (sig_type_ptr)): Likewise.
506 (INDEX4_SUFFIX): Likewise.
507 (INDEX5_SUFFIX): Likewise.
508 (DEBUG_STR_SUFFIX): Likewise.
509 (dwarf2_read_section): Make non-static.
510 (mapped_index_string_hash): Move from here.
511 (dwarf5_djb_hash): Likewise.
512 (file_write): Likewise.
513 (class data_buf): Likewise.
514 (struct symtab_index_entry): Likewise.
515 (struct mapped_symtab): Likewise.
516 (find_slot): Likewise.
517 (hash_expand): Likewise.
518 (add_index_entry): Likewise.
519 (uniquify_cu_indices): Likewise.
520 (class c_str_view): Likewise.
521 (class c_str_view_hasher): Likewise.
522 (class vector_hasher): Likewise.
523 (write_hash_table): Likewise.
524 (psym_index_map): Likewise.
525 (struct addrmap_index_data): Likewise.
526 (add_address_entry): Likewise.
527 (add_address_entry_worker): Likewise.
528 (write_address_map): Likewise.
529 (symbol_kind): Likewise.
530 (write_psymbols): Likewise.
531 (struct signatured_type_index_data): Likewise.
532 (write_one_signatured_type): Likewise.
533 (recursively_count_psymbols): Likewise.
534 (recursively_write_psymbols): Likewise.
535 (class debug_names): Likewise.
536 (check_dwarf64_offsets): Likewise.
537 (psyms_seen_size): Likewise.
538 (write_gdbindex): Likewise.
539 (write_debug_names): Likewise.
540 (assert_file_size): Likewise.
541 (write_psymtabs_to_index): Likewise.
542 (save_gdb_index_command): Likewise.
543 (_initialize_dwarf2_read): Don't register the "save gdb-index"
545 * dwarf2read.h: New file.
547 2018-03-27 Joel Brobecker <brobecker@adacore.com>
550 * dwarf2read.c (dwarf2_physname): Do not return the demangled
551 symbol name if the CU's language stores symbol names in linkage
553 * language.h (struct language_defn)
554 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
555 all instances of this struct.
557 2018-03-26 Tom Tromey <tom@tromey.com>
559 * stack.c (backtrace_command_1): Remove verbose code.
561 2018-03-26 Tom Tromey <tom@tromey.com>
563 * python/py-framefilter.c (py_print_type): Don't catch
564 exceptions. Return void.
565 (py_print_value): Likewise.
566 (py_print_single_arg): Likewise.
567 (enumerate_args): Don't catch exceptions.
568 (py_print_args): Likewise.
569 (py_print_frame): Likewise.
570 (gdbpy_apply_frame_filter): Catch exceptions here.
572 2018-03-26 Tom Tromey <tom@tromey.com>
574 * stack.c (_initialize_stack): Remove trailing newlines from help
575 text. Add "Usage" line to "backtrace" help.
577 2018-03-26 Tom Tromey <tom@tromey.com>
580 * python/py-framefilter.c (py_print_args): Call wrap_hint.
582 2018-03-26 Tom Tromey <tom@tromey.com>
584 * python/py-framefilter.c (py_print_single_arg): Return
585 EXT_LANG_BT_ERROR from catch.
587 2018-03-26 Tom Tromey <tom@tromey.com>
590 * stack.c (backtrace_command_1): Move some code into no-filters
593 2018-03-26 Tom Tromey <tom@tromey.com>
595 * python/py-framefilter.c (throw_quit_or_print_exception): New
597 (gdbpy_apply_frame_filter): Use it.
599 2018-03-26 Tom Tromey <tom@tromey.com>
602 * python/py-framefilter.c (py_print_type, py_print_value)
603 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
606 2018-03-26 Tom Tromey <tom@tromey.com>
608 * python/py-framefilter.c (enumerate_args): Use
609 gdb::unique_xmalloc_ptr.
611 2018-03-26 Tom Tromey <tom@tromey.com>
613 * python/py-framefilter.c (py_print_frame): Return
615 (gdbpy_apply_frame_filter): Update comment.
616 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
618 <EXT_LANG_BT_NO_FILTERS>: Change value.
620 2018-03-26 Tom Tromey <tom@tromey.com>
623 * stack.c (backtrace_command): Parse "hide" argument.
624 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
625 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
628 2018-03-26 Tom Tromey <tom@tromey.com>
630 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
632 (backtrace_command): Remove "fulltrace", add "flags".
634 2018-03-26 Tom Tromey <tom@tromey.com>
636 * stack.c (backtrace_command): Rewrite command line parsing.
638 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
640 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
642 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
644 * filename-seen-cache.h: Add include guard.
646 2018-03-26 Keith Seitz <keiths@redhat.com>
648 * symfile.c (place_section): Remove "struct" from section_addr_info
650 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
651 "struct" keyword from section_addr_info.
653 2018-03-26 Alan Hayward <alan.hayward@arm.com>
655 * regformats/regdef.h (reg): Add constructors.
657 2018-03-25 Pedro Alves <palves@redhat.com>
659 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
660 if then/else bodies in var_func_name extraction.
662 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
664 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
665 lookup_minimal_symbol() to find symbol entry.
666 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
668 2018-03-23 Keith Seitz <keiths@redhat.com>
671 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
672 nested type definitions for C++, too.
674 2018-03-23 Tom Tromey <tom@tromey.com>
676 * machoread.c (struct oso_el): Add a constructor. Don't define as
678 (macho_register_oso): Remove.
679 (macho_symtab_read): Take a std::vector.
680 (oso_el_compare_name): Now a std::sort comparator.
681 (macho_symfile_read_all_oso): Take a std::vector.
682 (macho_symfile_read): Use std::vector. Remove cleanups.
684 2018-03-22 Tom Tromey <tom@tromey.com>
686 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
687 (record_full_goto_bookmark): Use std::string.
689 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
692 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
695 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
697 * rs6000-tdep.c (store_insn_p): New function.
698 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
699 and cr_reg to their unshifted values. Use store_insn_p to
700 match LR saves using either R1 or fdata->alloca_reg. Use
701 store_insn_p to match CR saves. Set alloca_reg_offset
702 when alloca_reg and framep are set. Remove lr_reg shift
703 when assigning to fdata->lr_register.
705 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
707 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
708 command line args instead of emitting a warning.
710 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
712 * tracepoint.h (struct static_tracepoint_marker): Initialize
713 fields, define default constructor, move constructor and move
714 assignment, disable the rest.
715 <str_id, extra>: Make std::string.
716 (release_static_tracepoint_marker): Remove.
717 (free_current_marker): Remove.
718 * tracepoint.c (free_current_marker): Remove.
719 (parse_static_tracepoint_marker_definition): Adjust to
720 std::string, use new hex2str overload.
721 (release_static_tracepoint_marker): Remove.
722 (print_one_static_tracepoint_marker): Get marker by reference
723 and adjust to std::string.
724 (info_static_tracepoint_markers_command): Adjust to std::vector
726 * target.h (static_tracepoint_marker_p): Remove typedef.
727 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
728 (struct target_ops) <to_static_tracepoint_marker_at>: Return
730 <to_static_tracepoint_markers_by_strid>: Return std::vector.
732 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
733 (target_debug_print_std_vector_static_tracepoint_marker): New.
734 (target_debug_print_struct_static_tracepoint_marker_p): Rename
736 (target_debug_print_static_tracepoint_marker_p): ... this.
737 * target-delegates.c: Re-generate.
738 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
740 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
741 (decode_static_tracepoint_spec): Adjust to std::vector.
742 (tracepoint_print_one_detail): Adjust to std::string.
743 (strace_marker_decode_location): Adjust to std::string.
744 (update_static_tracepoint): Adjust to std::string, remove call
745 to release_static_tracepoint_marker.
746 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
747 Adjust to std::vector.
748 * remote.c (remote_static_tracepoint_marker_at): Return bool.
749 (remote_static_tracepoint_markers_by_strid): Adjust to
751 * common/rsp-low.h (hex2str): New overload with explicit count
753 * common/rsp-low.c (hex2str): New overload with explicit count
755 * unittests/rsp-low-selftests.c (test_hex2str): New function.
756 (_initialize_rsp_low_selftests): Add test_hex2str test.
757 * unittests/tracepoint-selftests.c
758 (test_parse_static_tracepoint_marker_definition): Adjust to
761 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
763 * tracepoint.c (parse_static_tracepoint_marker_definition):
764 Consider case where the definition is followed by more
766 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
767 tracepoint-selftests.c.
768 * unittests/tracepoint-selftests.c: New.
770 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
772 * MAINTAINERS (Write After Approval): Add Pedro Franco de
775 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
777 * symtab.c (find_pc_sect_line): fixed indentation.
779 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
781 * symtab.c (find_pc_sect_line): now uses binary search.
783 2018-03-19 Tom Tromey <tom@tromey.com>
785 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
788 2018-03-19 Pedro Alves <palves@redhat.com>
789 Tom Tromey <tom@tromey.com>
791 * unittests/observable-selftests.c: New file.
792 * common/observable.h: New file.
793 * observable.h: New file.
794 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
795 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
796 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
797 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
798 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
799 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
800 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
801 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
802 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
803 python/py-breakpoint.c, python/py-finishbreakpoint.c,
804 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
805 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
806 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
807 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
808 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
809 tui/tui-interp.c, valops.c: Update all users.
810 * tui/tui-hooks.c (tui_bp_created_observer)
811 (tui_bp_deleted_observer, tui_bp_modified_observer)
812 (tui_inferior_exit_observer, tui_before_prompt_observer)
813 (tui_normal_stop_observer, tui_register_changed_observer):
815 (tui_observers_token): New global.
816 (attach_or_detach, tui_attach_detach_observers): New functions.
817 (tui_install_hooks, tui_remove_hooks): Use
818 tui_attach_detach_observers.
819 * record-btrace.c (record_btrace_thread_observer): Remove.
820 (record_btrace_thread_observer_token): New global.
821 * observer.sh: Remove.
822 * observer.c: Rename to observable.c.
823 * observable.c (namespace gdb_observers): Define new objects.
824 (observer_debug): Move into gdb_observers namespace.
825 (struct observer, struct observer_list, xalloc_observer_list_node)
826 (xfree_observer_list_node, generic_observer_attach)
827 (generic_observer_detach, generic_observer_notify): Remove.
828 (_initialize_observer): Update.
829 Don't include observer.inc.
830 * Makefile.in (generated_files): Remove observer.h, observer.inc.
831 (clean mostlyclean): Likewise.
832 (observer.h, observer.inc): Remove targets.
833 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
834 (COMMON_SFILES): Use observable.c, not observer.c.
835 * .gitignore: Remove observer.h.
837 2018-03-18 Tom Tromey <tom@tromey.com>
839 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
841 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
843 2018-03-17 Tom Tromey <tom@tromey.com>
845 * auto-load.c (auto_load_objfile_script_1): Use std::string.
847 2018-03-17 Tom Tromey <tom@tromey.com>
849 * target.c (class scoped_target_fd): New.
850 (target_fileio_close_cleanup): Remove.
851 (target_fileio_read_alloc_1): Use scoped_target_fd.
853 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
855 * silent-rules.mk: New.
856 * Makefile.in: Include silent-rules.mk
857 (srcdir, VPATH, top_srcdir): Move up.
858 (COMPILE): Add ECHO_CXX.
859 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
860 (init.c): Add ECHO_INIT_C.
861 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
862 (version.c): Add ECHO_GEN.
863 (printcmd.o): Add ECHO_CXX.
864 (target-float.o): Add ECHO_CXX.
865 (ada-exp.o): Add ECHO_CXX.
866 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
867 (insight$(EXEEXT)): Add ECHO_CXXLD.
868 * gnulib/configure.ac: Add AM_SILENT_RULES.
869 * gnulib/aclocal.m4: Re-generate.
870 * gnulib/configure: Re-generate.
871 * gnulib/import/Makefile.in: Re-generate.
873 2018-03-16 Tom Tromey <tom@tromey.com>
875 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
876 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
877 * utils.c (do_free_section_addr_info)
878 (make_cleanup_free_section_addr_info): Remove.
879 * symfile.h (struct other_sections): Add constructor.
880 (struct section_addr_info): Remove.
881 (section_addr_info): New typedef.
882 (struct sym_fns) <sym_offsets>: Change type of parameter.
883 (build_section_addr_info_from_objfile)
884 (relative_addr_info_to_section_offsets, addr_info_make_relative)
885 (default_symfile_offsets, symbol_file_add)
886 (symbol_file_add_from_bfd)
887 (build_section_addr_info_from_section_table): Update.
888 (alloc_section_addr_info, free_section_addr_info): Don't declare.
889 * symfile.c (alloc_section_addr_info): Remove.
890 (build_section_addr_info_from_section_table): Change return type.
892 (build_section_addr_info_from_bfd)
893 (build_section_addr_info_from_objfile): Likewise.
894 (free_section_addr_info): Remove.
895 (relative_addr_info_to_section_offsets): Change type of "addrs".
896 (addrs_section_compar): Now a std::sort comparator.
897 (addrs_section_sort): Change return type.
898 (addr_info_make_relative): Change type of "addrs". Update.
899 (default_symfile_offsets, syms_from_objfile_1)
900 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
901 (symbol_file_add_separate): Update.
902 (symbol_file_add): Change type of "addrs". Update.
903 (add_symbol_file_command): Update. Remove cleanups.
904 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
906 * symfile-debug.c (debug_sym_offsets): Change type of "info".
907 * solib.c (solib_read_symbols): Update.
908 * objfiles.c (objfile_relocate): Update. Remove cleanups.
909 * machoread.c (macho_symfile_offsets): Update.
910 * jit.c (jit_bfd_try_read_symtab): Update.
912 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
914 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
915 unittests/utils-selftests.c.
916 * unittests/utils-selftests.c: New file.
918 2018-03-14 Tom Tromey <tom@tromey.com>
921 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
924 2018-03-14 Tom Tromey <tom@tromey.com>
927 * printcmd.c (printf_pointer): Allow "-" in format.
929 2018-03-14 Tom Tromey <tom@tromey.com>
931 * printcmd.c (_initialize_printcmd): Add usage to printf.
933 2018-03-14 Yao Qi <qiyao@sourceware.org>
935 * MAINTAINERS: Update my email address.
937 2018-03-13 Tom Tromey <tom@tromey.com>
939 * machoread.c (macho_check_dsym): Change filenamep to a
941 (macho_symfile_read): Update.
942 * symfile.c (load_command): Use std::string.
944 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
946 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
947 to error message string.
948 (riscv_register_name): Use xsnprintf instead of sprintf.
949 (riscv_insn::fetch_instruction): Use gdb_assert instead of
951 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
953 (riscv_push_dummy_call): Likewise.
955 2018-03-12 Tom Tromey <tom@tromey.com>
957 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
958 Use gdb::byte_vector.
959 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
961 2018-03-12 Yao Qi <yao.qi@linaro.org>
963 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
964 parameter type to readable_regcache.
965 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
968 2018-03-11 Tom Tromey <tom@tromey.com>
970 * dwarf2read.c (struct nextfield): Add initializers.
971 (struct nextfnfield): Remove.
972 (struct fnfieldlist): Add initializers. Remove "length" and
973 "head", use std::vector.
974 (struct decl_field_list): Remove.
975 (struct field_info): Add initializers.
976 <fields, baseclasses>: Now std::vector.
977 <nbaseclasses, nfnfields, typedef_field_list_count,
978 nested_types_list_count>: Remove.
979 (dwarf2_add_field, dwarf2_add_type_defn)
980 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
981 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
982 (process_structure_scope): Update.
984 2018-03-11 Tom Tromey <tom@tromey.com>
986 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
987 for use by std::sort.
988 (build_type_psymtabs_1): Use std::vector.
990 2018-03-09 Eli Zaretskii <eliz@gnu.org>
992 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
993 and LIBMPFR in the printed configuration.
995 2018-03-08 Tom Tromey <tom@tromey.com>
997 * source.c (get_filename_and_charpos): Use scoped_fd.
998 * nto-procfs.c (procfs_open_1): Use scoped_fd.
999 (procfs_pidlist): Likewise.
1000 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
1001 (iterate_over_mappings): Likewise.
1003 2018-03-08 Tom Tromey <tom@tromey.com>
1005 * infcall.c (struct call_return_meta_info)
1006 <stack_temporaries_enabled>: Remove.
1007 (get_call_return_value, call_function_by_hand_dummy): Update.
1008 * thread.c (disable_thread_stack_temporaries): Remove.
1009 (enable_thread_stack_temporaries): Remove.
1010 (thread_stack_temporaries_enabled_p): Return bool.
1011 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
1012 (get_last_thread_stack_temporary): Update.
1013 * eval.c (evaluate_subexp): Update.
1014 * gdbthread.h (class enable_thread_stack_temporaries): Now a
1015 class, not a function.
1016 (value_ptr, value_vec): Remove typedefs.
1017 (class thread_info) <stack_temporaries_enabled>: Now bool.
1018 <stack_temporaries>: Now a std::vector.
1019 (thread_stack_temporaries_enabled_p)
1020 (value_in_thread_stack_temporaries): Return bool.
1022 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
1024 * remote.c (putpkt_binary): Fix omitted bytes reporting.
1025 (getpkt_or_notif_sane_1): Likewise.
1027 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1029 * build-id.c (build_id_to_debug_bfd): Use std::string.
1031 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1033 * build-id.c (find_separate_debug_file_by_buildid): Return
1035 * build-id.h (find_separate_debug_file_by_buildid): Return
1037 * coffread.c (coff_symfile_read): Adjust to std::string.
1038 * elfread.c (elf_symfile_read): Adjust to std::string.
1039 * symfile.c (separate_debug_file_exists): Change parameter to
1041 (find_separate_debug_file): Return std::string.
1042 (find_separate_debug_file_by_debuglink): Return std::string.
1043 * symfile.h (find_separate_debug_file_by_debuglink): Return
1046 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
1048 * common/xml-utils.c (xml_escape_text): Move code to...
1049 (xml_escape_text_append): ... this new function.
1050 * common/xml-utils.h (xml_escape_text_append): New declaration.
1051 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
1053 (_initialize_xml_utils): register test_xml_escape_text_append as
1056 2018-03-07 Alan Hayward <alan.hayward@arm.com>
1058 * defs.h: Remove MAX_REGISTER_SIZE.
1059 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
1061 * python/py-unwind.c (pyuw_sniffer): Likewise.
1063 2018-03-07 Tom Tromey <tom@tromey.com>
1065 * linux-tdep.c (linux_info_proc): Update.
1066 * target.h (struct target_ops) <to_fileio_readlink>: Return
1068 (target_fileio_readlink): Return optional<string>.
1069 * remote.c (remote_hostio_readlink): Return optional<string>.
1070 * inf-child.c (inf_child_fileio_readlink): Return
1072 * target.c (target_fileio_readlink): Return optional<string>.
1074 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
1076 * regcache.c (cooked_read_test): Add riscv to the list of
1077 architectures that have a save_reggroup.
1079 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1081 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
1082 value is not a dynamic class object.
1084 2018-03-06 Tom Tromey <tom@tromey.com>
1086 * rust-exp.y: Formatting fixes.
1088 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1090 * riscv-tdep.c (riscv_register_name): Remove target description
1092 (riscv_gdbarch_init): Remove target description check.
1094 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1096 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
1098 * riscv-tdep.h: Likewise.
1100 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1102 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
1103 (riscv_pseudo_register_write): Delete.
1104 (riscv_gdbarch_init): Remove all use of pseudo registers.
1106 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1108 * record-btrace.c (btrace_print_lines): Replace cleanup
1109 parameter with RAII equivalents.
1110 (btrace_insn_history): Replace cleanup with RAII equivalents.
1111 * ui-out.h (make_cleanup_ui_out_list_begin_end,
1112 make_cleanup_ui_out_tuple_begin_end): Remove.
1113 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
1114 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
1115 make_cleanup_ui_out_list_begin_end): Remove.
1117 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1119 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
1120 parameter types to std::vector. Use bool.
1121 (record_btrace_wait): Replace VEC(tp_t) with
1122 std::vector<thread_info *>.
1123 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
1125 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
1127 * record-btrace.c (record_btrace_disable_callback): Remove.
1128 (struct scoped_btrace_disable): New.
1129 (record_btrace_open): Use scoped_btrace_disable.
1131 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1133 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
1134 reading values from registers.
1136 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1138 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
1141 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1143 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
1144 change parameter type. Use GDB's print functions, and use
1145 core_addr_to_string where appropriate.
1146 (riscv_push_dummy_call): Use core_addr_to_string where
1147 appropriate, update call to riscv_print_arg_location, and reindent
1149 (riscv_return_value): Update call to riscv_print_arg_location.
1151 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1152 Tim Newsome <tim@sifive.com>
1153 Albert Ou <a0u@eecs.berkeley.edu>
1154 Darius Rad <darius@bluespec.com>
1156 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
1157 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
1158 (ALLDEPFILES): Add riscv-tdep.c
1159 * configure.tgt: Add riscv support.
1160 * riscv-tdep.c: New file.
1161 * riscv-tdep.h: New file.
1162 * NEWS: Mention new target.
1163 * MAINTAINERS: Add entry for riscv.
1165 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1167 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
1168 fields within aggregates.
1170 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1172 * record-btrace.c (btrace_print_lines): Change type of flags to
1173 gdb_disassembly_flags.
1175 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1177 * fbsd-nat.c: Include "inf-ptrace.h".
1178 (USE_SIGTRAP_SIGINFO): Conditionally define.
1179 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
1180 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
1181 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
1183 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
1185 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
1187 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
1188 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
1189 "supports_stopped_by_hw_breakpoint" target methods.
1191 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1193 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
1194 * fbsd-nat.c (debug_fbsd_nat): New variable.
1195 (show_fbsd_nat_debug): New function.
1196 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
1197 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
1199 2018-03-04 John Baldwin <jhb@FreeBSD.org>
1201 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
1202 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
1204 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
1205 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
1208 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1210 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
1211 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
1213 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1215 * charset.c (struct charset_vector): New.
1216 (charsets): Change type to charset_vector.
1217 (find_charset_names): Adjust.
1219 (_initialize_charset): Adjust.
1221 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1223 * progspace.h (struct program_space) <deleted_solibs>: Change
1224 type to std::vector<std::string>.
1225 * progspace.c (clear_program_space_solib_cache): Adjust.
1226 * breakpoint.c (print_solib_event): Adjust.
1227 (check_status_catch_solib): Adjust.
1228 * solib.c (update_solib_list): Adjust.
1229 * ui-out.h (class ui_out) <field_string>: New overload.
1230 * ui-out.c (ui_out::field_string): New overload.
1232 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1234 * progspace.h (struct program_space): Add constructor and
1235 destructor, initialize fields.
1236 (add_program_space): Remove.
1237 * progspace.c (add_program_space): Rename to...
1238 (program_space::program_space): ... this.
1239 (release_program_space): Rename to...
1240 (program_space::~program_space): ... this.
1241 (delete_program_space): Use delete to delete program_space.
1242 (initialize_progspace): Use new to allocate program_space.
1243 * inferior.c (add_inferior_with_spaces): Likewise.
1244 (clone_inferior_command): Likewise.
1245 * infrun.c (follow_fork_inferior): Likewise.
1246 (handle_vfork_child_exec_or_exit): Likewise.
1248 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
1250 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
1251 (delim_string_to_char_ptr_vec): Return std::vector of
1252 gdb::unique_xmalloc_ptr.
1253 (dirnames_to_char_ptr_vec_append): Take std::vector of
1254 gdb::unique_xmalloc_ptr.
1255 (dirnames_to_char_ptr_vec): Return std::vector of
1256 gdb::unique_xmalloc_ptr.
1257 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
1258 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
1259 (delim_string_to_char_ptr_vec): Return an std::vector of
1260 gdb::unique_xmalloc_ptr, adjust the code.
1261 (dirnames_to_char_ptr_vec_append): Take an std::vector of
1262 gdb::unique_xmalloc_ptr, adjust the code.
1263 (dirnames_to_char_ptr_vec): Return an std::vector of
1264 gdb::unique_xmalloc_ptr, adjust the code.
1265 * auto-load.c (auto_load_safe_path_vec): Change type to
1266 std::vector of gdb::unique_xmalloc_ptr.
1267 (auto_load_expand_dir_vars): Return an std::vector of
1268 gdb::unique_xmalloc_ptr, adjust the code.
1269 (auto_load_safe_path_vec_update): Adjust.
1270 (filename_is_in_auto_load_safe_path_vec): Adjust.
1271 (auto_load_objfile_script_1): Adjust.
1272 * build-id.c (build_id_to_debug_bfd): Adjust.
1273 * linux-thread-db.c (thread_db_load_search): Adjust.
1274 * source.c (add_path): Adjust.
1276 * symfile.c (find_separate_debug_file): Adjust.
1277 * utils.c (do_free_char_ptr_vec): Remove.
1278 (make_cleanup_free_char_ptr_vec): Remove.
1280 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
1283 * common/pathstuff.c: Conditionally include "<windows.h>".
1285 2018-03-01 Georg Sauthoff <mail@georg.so>
1288 * gcore.in: Quote variables and switch interpreter to bash.
1290 2018-03-01 Tom Tromey <tom@tromey.com>
1292 * dwarf2read.c (alloc_discriminant_info): Fix default_index
1293 assertion. Add assertion for discriminant_index.
1294 (quirk_rust_enum): Use correct base type name in univariant case.
1296 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
1298 * record.c (get_call_history_modifiers): Return a
1300 (cmd_record_call_history): Adjust.
1301 * record-btrace.c (record_btrace_call_history): Adjust.
1302 (record_btrace_call_history_range): Adjust.
1303 (record_btrace_call_history_from): Adjust.
1304 * target-debug.h (target_debug_print_record_print_flags): New.
1305 * target-delegates.c: Re-generate.
1306 * target.c (target_call_history): Change flags type.
1307 (target_call_history_from): Likewise.
1308 (target_call_history_range): Likewise.
1309 * target.h (struct target_ops) <target_call_history>: Likewise.
1310 (target_call_history_from): Likewise.
1311 (target_call_history_range): Likewise.
1313 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1314 Simon Marchi <simon.marchi@polymtl.ca>
1316 * common/common-utils.c: Include "sys/stat.h".
1317 (is_regular_file): Move here from "source.c"; change return
1319 * common/common-utils.h (is_regular_file): New prototype.
1320 * common/pathstuff.c (contains_dir_separator): New function.
1321 * common/pathstuff.h (contains_dir_separator): New prototype.
1322 * source.c: Don't include "sys/stat.h".
1323 (is_regular_file): Move to "common/common-utils.c".
1325 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
1327 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
1328 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
1329 * auto-load.c: Include "common/pathstuff.h".
1330 * common/common-def.h (current_directory): Move here.
1331 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
1333 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
1335 * common/pathstuff.c: New file.
1336 * common/pathstuff.h: New file.
1337 * compile/compile.c: Include "common/pathstuff.h".
1338 * defs.h (current_directory): Move to "common/common-defs.h".
1339 * dwarf2read.c: Include "common/pathstuff.h".
1341 * guile/scm-safe-call.c: Likewise.
1342 * linux-thread-db.c: Likewise.
1344 * nto-tdep.c: Likewise.
1345 * objfiles.c: Likewise.
1346 * source.c: Likewise.
1347 * symtab.c: Likewise.
1348 * utils.c: Include "common/pathstuff.h".
1349 (gdb_realpath): Move to "common/pathstuff.c".
1350 (gdb_realpath_keepfile): Likewise.
1351 (gdb_abspath): Likewise.
1352 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
1353 (gdb_realpath_keepfile): Likewise.
1354 (gdb_abspath): Likewise.
1356 2018-02-28 John Baldwin <jhb@FreeBSD.org>
1358 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
1359 wildcard process pid for super_resume for kernels with a
1362 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
1364 * compile/compile.c (get_args): Add additional comments
1365 explaining function.
1367 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
1368 Tom Tromey <tom@tromey.com>
1370 * target.h (memory_write_request_s): Remove typedef. Don't define
1372 (target_write_memory_blocks): Change argument to std::vector.
1373 (struct memory_write_request): Add constructor.
1374 * target-memory.c (compare_block_starting_address): Return bool.
1375 Change argument types.
1376 (claim_memory): Change arguments to use std::vector.
1377 (split_regular_and_flash_blocks, blocks_to_erase)
1378 (compute_garbled_blocks): Likewise.
1379 (cleanup_request_data, cleanup_write_requests_vector): Remove.
1380 (target_write_memory_blocks): Change argument to std::vector.
1381 * symfile.c (struct load_section_data): Add constructor and
1382 destructor. Use std::vector for "requests".
1383 (struct load_progress_data): Add initializers.
1384 (load_section_callback): Update. Use "new".
1385 (clear_memory_write_data): Remove.
1386 (generic_load): Update.
1388 2018-02-27 Alan Hayward <alan.hayward@arm.com>
1390 * arch/aarch64.h: Use common/tdesc.h.
1392 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1394 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
1395 architecture with a 64-bit ABI.
1397 2018-02-26 Maciej W. Rozycki <macro@mips.com>
1399 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
1400 ahead of target description loading.
1402 2018-02-26 Tom Tromey <tom@tromey.com>
1404 * stack.c (backtrace_command_1): Update.
1405 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
1407 * python/py-framefilter.c (py_print_frame)
1408 (gdbpy_apply_frame_filter): Change type of "flags".
1409 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
1411 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
1412 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
1413 * extension.h (enum frame_filter_flag): Rename from
1415 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
1416 (apply_ext_lang_frame_filter): Change type of "flags".
1417 * extension.c (apply_ext_lang_frame_filter): Change type of
1419 * extension-priv.h (struct extension_language_ops)
1420 <apply_frame_filter>: Change type of "flags".
1422 2018-02-26 Tom Tromey <tom@tromey.com>
1425 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
1426 off-by-one in py_end computation.
1427 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
1429 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
1432 2018-02-26 Tom Tromey <tom@tromey.com>
1434 * dwarf2read.c (struct variant_field): New.
1435 (struct nextfield) <variant>: New field.
1436 (dwarf2_add_field): Handle DW_TAG_variant_part.
1437 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
1438 discriminated union.
1439 (read_structure_type): Handle DW_TAG_variant_part.
1440 (handle_struct_member_die): New function, extracted from
1441 process_structure_scope. Handle DW_TAG_variant.
1442 (process_structure_scope): Handle discriminated unions. Call
1443 handle_struct_member_die.
1445 2018-02-26 Tom Tromey <tom@tromey.com>
1447 * rust-lang.h (rust_last_path_segment): Declare.
1448 * rust-lang.c (rust_last_path_segment): Now public. Change
1450 (struct disr_info): Remove.
1451 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
1452 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
1453 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
1454 (rust_enum_p, rust_enum_variant): New function.
1455 (rust_underscore_fields): Remove "offset" parameter.
1456 (rust_print_enum): New function.
1457 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
1458 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
1459 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
1461 (rust_internal_print_type): New function, from rust_print_type.
1463 (rust_print_type): Call rust_internal_print_type.
1464 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
1465 Update enum handling.
1466 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
1467 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
1468 (rust_union_quirks): New functions.
1469 (process_full_comp_unit, process_full_type_unit): Call
1471 (process_structure_scope): Update rust_unions if necessary.
1473 2018-02-26 Tom Tromey <tom@tromey.com>
1475 * value.h (value_union_variant): Declare.
1476 * valops.c (value_union_variant): New function.
1477 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
1478 (struct discriminant_info): New.
1479 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
1481 (struct main_type) <flag_discriminated_union>: New field.
1483 2018-02-26 Tom Tromey <tom@tromey.com>
1485 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1486 unittests/unpack-selftests.c.
1487 * unittests/unpack-selftests.c: New file.
1488 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
1490 2018-02-26 Yao Qi <yao.qi@linaro.org>
1492 * dwarf2read.c (struct partial_die_info) <read>: New method.
1493 (read_partial_die): Remove the declaration.
1494 (load_partial_dies): Update.
1495 (partial_die_info::partial_die_info):
1496 (read_partial_die): Change it to partial_die_info::read.
1498 2018-02-26 Yao Qi <yao.qi@linaro.org>
1500 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
1501 (fixup_partial_die): Remove declaration.
1502 (scan_partial_symbols): Update.
1503 (partial_die_parent_scope): Likewise.
1504 (partial_die_full_name): Likewise.
1505 (fixup_partial_die): Change it to partial_die_info::fixup.
1507 2018-02-26 Yao Qi <yao.qi@linaro.org>
1509 * dwarf2read.c (read_partial_die): Update the declaration.
1510 (load_partial_dies): Caller update.
1511 (read_partial_die): Remove one argument abbrev_len.
1513 2018-02-26 Yao Qi <yao.qi@linaro.org>
1515 * dwarf2read.c (struct partial_die_info): Add ctor, delete
1516 assignment operator.
1517 (load_partial_dies): Use ctor and copy ctor.
1518 (read_partial_die): Update.
1519 (dwarf2_cu::find_partial_die): Use ctor.
1521 2018-02-26 Yao Qi <yao.qi@linaro.org>
1523 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
1524 (find_partial_die_in_comp_unit): Change it to
1525 dwarf2_cu::find_partial_die.
1526 (find_partial_die): Update.
1528 2018-02-26 Yao Qi <yao.qi@linaro.org>
1530 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
1533 2018-02-26 Yao Qi <yao.qi@linaro.org>
1535 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
1537 2018-02-26 Alan Hayward <alan.hayward@arm.com>
1539 * arch/amd64.h: Use common/tdesc.h.
1540 * arch/i386.c: Likewise.
1541 * arch/i386.h: Likewise.
1542 * arch/tic6x.c: Likewise.
1543 * arch/tdesc.h: Move file from here...
1544 * common/tdesc.h: ...to here.
1545 * features/aarch64-core.c: Regenerate.
1546 * features/aarch64-fpu.c: Regenerate.
1547 * features/i386/32bit-avx.c: Regenerate.
1548 * features/i386/32bit-avx512.c: Regenerate.
1549 * features/i386/32bit-core.c: Regenerate.
1550 * features/i386/32bit-linux.c: Regenerate.
1551 * features/i386/32bit-mpx.c: Regenerate.
1552 * features/i386/32bit-pkeys.c: Regenerate.
1553 * features/i386/32bit-sse.c: Regenerate.
1554 * features/i386/64bit-avx.c: Regenerate.
1555 * features/i386/64bit-avx512.c: Regenerate.
1556 * features/i386/64bit-core.c: Regenerate.
1557 * features/i386/64bit-linux.c: Regenerate.
1558 * features/i386/64bit-mpx.c: Regenerate.
1559 * features/i386/64bit-pkeys.c: Regenerate.
1560 * features/i386/64bit-segments.c: Regenerate.
1561 * features/i386/64bit-sse.c: Regenerate.
1562 * features/i386/x32-core.c: Regenerate.
1563 * features/tic6x-c6xp.c: Regenerate.
1564 * features/tic6x-core.c: Regenerate.
1565 * features/tic6x-gp.c: Regenerate.
1566 * target-descriptions.c: Use common/tdesc.h.
1567 * target-descriptions.h: Likewise.
1569 2018-02-24 Tom Tromey <tom@tromey.com>
1571 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1572 (try_thread_db_load_from_dir, thread_db_load_search): Use
1574 (info_auto_load_libthread_db_compare): Return bool. Change
1576 (info_auto_load_libthread_db): Use std::vector, std::string.
1579 2018-02-24 Tom Tromey <tom@tromey.com>
1581 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
1583 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
1585 * gdbarch.c: Rebuild.
1586 * gdbarch.h: Rebuild.
1587 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
1588 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
1589 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
1592 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1594 * gdbtypes.h (sect_offset): Change type to uint64_t.
1595 (sect_offset_str): New function.
1596 * dwarf2read.c (create_addrmap_from_aranges): Use
1598 (error_check_comp_unit_head): Likewise.
1599 (create_debug_type_hash_table): Likewise.
1600 (read_cutu_die_from_dwo): Likewise.
1601 (init_cutu_and_read_dies): Likewise.
1602 (init_cutu_and_read_dies_no_follow): Likewise.
1603 (process_psymtab_comp_unit_reader): Likewise.
1604 (partial_die_parent_scope): Likewise.
1605 (peek_die_abbrev): Likewise.
1606 (process_queue): Likewise.
1607 (dwarf2_physname): Likewise.
1608 (read_namespace_alias): Likewise.
1609 (read_import_statement): Likewise.
1610 (create_dwo_cu_reader): Likewise.
1611 (create_cus_hash_table): Likewise.
1612 (lookup_dwo_cutu): Likewise.
1613 (inherit_abstract_dies): Likewise.
1614 (read_func_scope): Likewise.
1615 (read_call_site_scope): Likewise.
1616 (dwarf2_add_member_fn): Likewise.
1617 (read_common_block): Likewise.
1618 (read_module_type): Likewise.
1619 (read_typedef): Likewise.
1620 (read_subrange_type): Likewise.
1621 (load_partial_dies): Likewise.
1622 (read_partial_die): Likewise.
1623 (find_partial_die): Likewise.
1624 (read_str_index): Likewise.
1625 (dwarf2_string_attr): Likewise.
1626 (build_error_marker_type): Likewise.
1627 (lookup_die_type): Likewise.
1628 (dump_die_shallow): Likewise.
1629 (follow_die_ref): Likewise.
1630 (dwarf2_fetch_die_loc_sect_off): Likewise.
1631 (dwarf2_fetch_constant_bytes): Likewise.
1632 (follow_die_sig): Likewise.
1633 (get_signatured_type): Likewise.
1634 (get_DW_AT_signature_type): Likewise.
1635 (dwarf2_find_containing_comp_unit): Likewise.
1636 (set_die_type): Likewise.
1638 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1640 * arch/aarch64.c: Include "common-defs.h".
1641 * arch/amd64.c: Likewise.
1642 * arch/i386.c: Likewise.
1644 2018-02-21 Tom Tromey <tom@tromey.com>
1646 * value.h: (extract_field_op): Update.
1647 * eval.c (extract_field_op): Return a const char *.
1648 * expression.h (parse_expression_for_completion): Update.
1649 * completer.c (complete_expression): Update.
1650 (add_struct_fields): Make fieldname const.
1651 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1652 (mark_completion_tag, parse_exp_in_context_1): Update.
1653 (parse_expression_for_completion): Change "name" to
1654 unique_xmalloc_ptr*.
1656 2018-02-21 Tom Tromey <tom@tromey.com>
1658 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1660 2018-02-21 Yao Qi <yao.qi@linaro.org>
1662 * avr-tdep.c (avr_read_pc): Change parameter type to
1664 * gdbarch.sh (read_pc): Likewise.
1665 * gdbarch.c: Re-generated.
1666 * gdbarch.h: Re-generated.
1667 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1669 * ia64-tdep.c (ia64_read_pc): Likewise.
1670 * mips-tdep.c (mips_read_pc): Likewise.
1671 * spu-tdep.c (spu_read_pc): Likewise.
1673 2018-02-21 Yao Qi <yao.qi@linaro.org>
1675 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1676 * regcache-dump.c: New file.
1677 * regcache.c: Move register_dump to regcache-dump.c.
1678 (maintenance_print_registers): Likewise.
1679 (maintenance_print_raw_registers): Likewise.
1680 (maintenance_print_cooked_registers): Likewise.
1681 (maintenance_print_register_groups): Likewise.
1682 (maintenance_print_remote_registers): Likewise.
1683 (_initialize_regcache): Likewise.
1684 * regcache.h (register_dump): Moved from regcache.c.
1686 2018-02-21 Yao Qi <yao.qi@linaro.org>
1688 * regcache.c (regcache::regcache): Update.
1689 (regcache::invalidate): Move it to detached_regcache::invalidate.
1690 (get_thread_arch_aspace_regcache): Update.
1691 (regcache::raw_update): Update.
1692 (regcache::cooked_read): Remove some code.
1693 (regcache::cooked_read_value): Likewise.
1694 (regcache::raw_write): Remove assert on m_readonly_p.
1695 (regcache::raw_supply_integer): Move it to
1696 detached_regcache::raw_supply_integer.
1697 (regcache::raw_supply_zeroed): Likewise.
1698 * regcache.h (detached_regcache) <raw_supply_integer>: New
1700 <raw_supply_zeroed, invalidate>: Likewise.
1701 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1702 <invalidate>: Likewise.
1703 <m_readonly_p>: Removed.
1705 2018-02-21 Yao Qi <yao.qi@linaro.org>
1707 * infcmd.c (get_return_value): Let stop_regs point to
1708 get_current_regcache.
1709 * regcache.c (regcache::regcache): Remove.
1710 (register_dump_reg_buffer): New class.
1711 (regcache_print): Adjust.
1712 * regcache.h (regcache): Remove constructors.
1714 2018-02-21 Yao Qi <yao.qi@linaro.org>
1716 * regcache.c (class register_dump): New class.
1717 (register_dump_regcache, register_dump_none): New class.
1718 (register_dump_remote, register_dump_groups): New class.
1719 (regcache_print): Update.
1720 * regcache.h (regcache_dump_what): Move it to regcache.c.
1721 (regcache) <dump>: Remove.
1723 2018-02-21 Yao Qi <yao.qi@linaro.org>
1725 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1727 (jit_unwind_reg_set_impl): Call raw_supply.
1728 (jit_frame_sniffer): Use reg_buffer_rw.
1729 * record-full.c (record_full_core_regbuf): Change its type.
1730 (record_full_core_open_1): Use reg_buffer_rw.
1731 (record_full_close): Likewise.
1732 (record_full_core_fetch_registers): Use regcache->raw_supply.
1733 (record_full_core_store_registers): Likewise.
1734 * regcache.c (regcache::get_register_status): Move it to
1736 (regcache_raw_set_cached_value): Remove.
1737 (regcache::raw_set_cached_value): Remove.
1738 (regcache::raw_write): Call raw_supply.
1739 (regcache::raw_supply): Move it to reg_buffer_rw.
1740 * regcache.h (regcache_raw_set_cached_value): Remove.
1741 (reg_buffer_rw): New class.
1743 2018-02-21 Yao Qi <yao.qi@linaro.org>
1745 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1746 readonly_detached_regcache.
1747 (dummy_frame_prev_register): Use regcache->cooked_read.
1748 * frame.c (frame_save_as_regcache): Change return type.
1749 (frame_pop): Update.
1750 * frame.h (frame_save_as_regcache): Update declaration.
1751 * inferior.h (get_infcall_suspend_state_regcache): Update
1753 * infrun.c (infcall_suspend_state) <registers>: use
1754 readonly_detached_regcache.
1755 (save_infcall_suspend_state): Don't use regcache_dup.
1756 (get_infcall_suspend_state_regcache): Change return type.
1757 * linux-fork.c (struct fork_info) <savedregs>: Change to
1758 readonly_detached_regcache.
1760 (fork_save_infrun_state): Don't use regcache_dup.
1761 (info_checkpoints_command): Adjust.
1762 * mi/mi-main.c (register_changed_p): Update declaration.
1763 (mi_cmd_data_list_changed_registers): Use
1764 readonly_detached_regcache.
1765 (register_changed_p): Change parameter type to
1766 readonly_detached_regcache.
1767 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1768 readonly_detached_regcache.
1769 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1770 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1772 (regcache::save): Move it to reg_buffer.
1773 (regcache::restore): Change parameter type.
1774 (regcache_dup): Remove.
1775 * regcache.h (reg_buffer) <save>: New method.
1776 (readonly_detached_regcache): New class.
1777 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1778 readonly_detached_regcache.
1779 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1781 2018-02-21 Yao Qi <yao.qi@linaro.org>
1783 * frame.c (frame_save_as_regcache): Use regcache method save.
1784 (frame_pop): Use regcache method restore.
1785 * infrun.c (restore_infcall_suspend_state): Likewise.
1786 * linux-fork.c (fork_load_infrun_state): Likewise.
1787 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1789 * regcache.c (regcache_save): Remove.
1790 (regcache::restore): More asserts.
1791 (regcache_cpy): Remove.
1792 * regcache.h (regcache_save): Remove the declaration.
1793 (regcache::restore): Move from private to public.
1794 Remove the friend declaration of regcache_cpy.
1795 (regcache_cpy): Remove declaration.
1797 2018-02-21 Yao Qi <yao.qi@linaro.org>
1799 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1800 parameter type to 'readable_regcache *'.
1801 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1802 * arm-tdep.c (arm_neon_quad_read): Likewise.
1803 (arm_pseudo_read): Likewise.
1804 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1805 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1806 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1807 * gdbarch.c: Re-generated.
1808 * gdbarch.h: Re-generated.
1809 * gdbarch.sh (pseudo_register_read): Change parameter type to
1810 'readable_regcache *'.
1811 (pseudo_register_read_value): Likewise.
1812 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1813 (h8300_pseudo_register_read): Likewise.
1814 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1815 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1816 (i386_pseudo_register_read_into_value): Likewise.
1817 (i386_pseudo_register_read_value): Likewise.
1818 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1820 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1821 * m32c-tdep.c (m32c_raw_read): Likewise.
1822 (m32c_read_flg): Likewise.
1823 (m32c_banked_register): Likewise.
1824 (m32c_banked_read): Likewise.
1825 (m32c_sb_read): Likewise.
1826 (m32c_part_read): Likewise.
1827 (m32c_cat_read): Likewise.
1828 (m32c_r3r2r1r0_read): Likewise.
1829 (m32c_pseudo_register_read): Likewise.
1830 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1831 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1832 (mep_pseudo_cr64_read): Likewise.
1833 (mep_pseudo_register_read): Likewise.
1834 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1835 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1836 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1837 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1838 (regcache::cooked_read): Likewise.
1839 (regcache::cooked_read_value): Likewise.
1840 (regcache_cooked_read_signed):
1841 (regcache::cooked_read): Likewise.
1842 * regcache.h (readable_regcache): New class.
1843 (regcache): Inherit readable_regcache. Move some methods to
1845 * rl78-tdep.c (rl78_pseudo_register_read): Change
1846 parameter type to 'readable_regcache *'.
1847 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1848 (e500_pseudo_register_read): Change parameter type to
1849 'readable_regcache *'.
1850 (dfp_pseudo_register_read): Likewise.
1851 (vsx_pseudo_register_read): Likewise.
1852 (efpr_pseudo_register_read): Likewise.
1853 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1854 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1855 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1856 (sh64_pseudo_register_read): Likewise.
1857 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1858 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1859 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1860 (spu_pseudo_register_read): Likewise.
1861 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1862 (xtensa_pseudo_register_read): Likewise.
1864 2018-02-21 Yao Qi <yao.qi@linaro.org>
1866 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1867 (regcache::arch): Move it to reg_buffer::arch.
1868 (regcache::register_buffer): Likewise.
1869 (regcache::assert_regnum): Likewise.
1870 (regcache::num_raw_registers): Likewise.
1871 * regcache.h (reg_buffer): New class.
1872 (regcache): Inherit reg_buffer.
1874 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1876 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1877 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1879 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1881 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1883 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1885 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1886 (SFILES): Remove common/*.c files.
1887 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1888 * common/common.host: Add common reference.
1889 * configure.ac: Likewise.
1890 * configure: Regenerate.
1892 2018-02-16 Yao Qi <yao.qi@linaro.org>
1894 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1895 (block_initialize_namespace): Use new.
1896 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1897 (dwarf2_free_objfile): Use delete.
1898 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1899 (copy_type_recursive): Use new.
1900 * gdb_obstack.h (allocate_on_obstack): New.
1902 2018-02-15 Yao Qi <yao.qi@linaro.org>
1905 * inferior.c (exit_inferior_1): Reset inf->control.
1907 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1909 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1912 2018-02-14 Pedro Alves <palves@redhat.com>
1914 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1915 frame_cleanup_after_sniffer on exception.
1917 2018-02-14 Tom Tromey <tom@tromey.com>
1919 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1921 (solib_bfd_open): Make pathname const.
1922 * solib.c (solib_bfd_open): Make pathname const.
1923 * solib-spu.c (spu_bfd_fopen): Make name const.
1924 (spu_bfd_open): Make pathname const.
1925 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1926 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1928 2018-02-14 Tom Tromey <tom@tromey.com>
1930 * symfile.c (symfile_bfd_open): Update.
1931 * source.h (openp, source_full_path_of, find_and_open_source):
1932 Change argument type to unique_xmalloc_ptr.
1933 * source.c (openp): Take a unique_xmalloc_ptr.
1934 (source_full_path_of, find_and_open_source): Likewise.
1935 (open_source_file, symtab_to_fullname): Update.
1936 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1938 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1939 (exec_file_find): Update.
1940 * psymtab.c (psymtab_to_fullname): Update.
1941 * nto-tdep.h (nto_find_and_open_solib): Update.
1942 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1944 * exec.c (exec_file_attach): Update.
1945 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1946 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1948 2018-02-14 Tom Tromey <tom@tromey.com>
1950 * solib.c: Include source.h.
1951 * nto-tdep.c: Include source.h.
1952 * mi/mi-cmd-env.c: Include source.h.
1953 * infcmd.c: Include source.h.
1954 * exec.c: Include source.h.
1955 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1956 (add_path, directory_switch, source_path, init_source_path): Move
1958 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1959 (add_path, directory_switch, source_path, init_source_path):
1962 2018-02-14 Tom Tromey <tom@tromey.com>
1964 * solist.h (exec_file_find, solib_find): Return
1966 (solib_bfd_fopen): Take a const char *.
1967 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1968 (exec_file_find, solib_find): Likewise.
1969 (solib_bfd_fopen): Do not take ownership of "pathname".
1970 (solib_bfd_open): Use unique_xmalloc_ptr.
1971 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1972 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1973 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1974 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1976 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1978 * ada-lang.c (name_match_type_from_name): Remove reference to
1979 ada_name_for_lookup in function's documentation.
1980 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1982 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1984 * defs.h (enum openp_flags): New enum.
1985 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1986 Move to enum openp_flags.
1987 (openp_flags): New enum flags.
1988 (openp): Change parameter type to openp_flags.
1989 * source.c (openp): Change parameter type to openp_flags.
1990 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1991 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1993 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1995 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1998 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2000 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
2002 (class dwarf2_queue_guard): ...the destructor of this new class.
2003 (dw2_do_instantiate_symtab): Create instance of the new class
2004 dwarf2_queue_guard, remove cleanup.
2006 2018-02-09 Tom Tromey <tom@tromey.com>
2008 * source.c (find_source_lines): Don't reference past the end of
2011 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2013 * remote.c (remote_btrace_maybe_reopen): Change error message.
2014 * btrace.c (btrace_enable): Likewise.
2015 (parse_xml_btrace): Likewise.
2016 (parse_xml_btrace_conf): Likewise.
2018 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2020 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
2021 (linux_enable_pt, linux_enable_bts): Call
2022 diagnose_perf_event_open_fail.
2024 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2026 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
2027 Remove parameter and change return type. Update callers. Move it.
2028 (linux_enable_bts, linux_enable_pt): Improve error message.
2029 (linux_enable_pt): Remove zero buffer size check.
2030 (linux_enable_btrace): Improve error messages. Remove NULL return
2033 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2035 * btrace.c (btrace_enable): Remove target_supports_btrace call.
2036 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
2037 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
2038 (linux_supports_pt, linux_supports_btrace): Remove.
2039 (linux_enable_bts): Call cpu_supports_bts.
2040 * nat/linux-btrace.h (linux_supports_btrace): Remove.
2041 * remote.c (remote_supports_btrace): Remove.
2042 (init_remote_ops): Remove remote_supports_btrace.
2043 * target-delegates.c: Regenerated.
2044 * target.c (target_supports_btrace): Remove.
2045 * target.h (target_ops) <to_supports_btrace>: Remove
2046 (target_supports_btrace): Remove.
2047 * x86-linux-nat.c (x86_linux_create_target): Remove
2048 linux_supports_btrace.
2050 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2052 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
2054 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
2055 exception and use message in own exception.
2057 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2059 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
2060 (perf_event_pt_event_type): Use gdb_file_up.
2061 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
2062 scoped_fd, and scoped_mmap.
2064 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2066 * common/scoped_mmap.h: New.
2067 * unittests/scoped_mmap-selftest.c: New.
2068 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2069 unittests/scoped_mmap-selftest.c.
2071 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2073 * common/scoped_fd.h: New.
2074 * unittests/scoped_fd-selftest.c: New.
2075 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2076 unittests/scoped_fd-selftest.c.
2078 2018-02-09 Tom Tromey <tom@tromey.com>
2080 * auto-load.c (auto_load_section_scripts): Use
2081 gdb::unique_xmalloc_ptr.
2083 2018-02-09 Tom Tromey <tom@tromey.com>
2085 * auto-load.c (execute_script_contents): Use std::string.
2087 2018-02-09 Joel Brobecker <brobecker@adacore.com>
2089 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
2090 Python function, rather than a new command.
2092 2018-02-08 Tom Tromey <tom@tromey.com>
2094 * solib.c (solib_find_1): Use std::string.
2095 (solib_bfd_fopen): Use unique_xmalloc_ptr.
2097 2018-02-08 Tom Tromey <tom@tromey.com>
2099 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
2101 2018-02-08 Tom Tromey <tom@tromey.com>
2103 * source.c (find_source_lines): Use gdb::def_vector.
2105 2018-02-08 Tom Tromey <tom@tromey.com>
2107 * macrocmd.c (struct temporary_macro_definition): New.
2108 (macro_define_command): Use temporary_macro_definition. Remove
2110 (free_macro_definition_ptr): Remove.
2112 2018-02-08 Tom Tromey <tom@tromey.com>
2114 * macroexp.c (maybe_expand): Use std::string.
2116 2018-02-08 Tom Tromey <tom@tromey.com>
2118 * macroexp.c (struct macro_buffer): Add initializers for some
2120 (init_buffer, init_shared_buffer, free_buffer)
2121 (free_buffer_return_text): Remove.
2122 (macro_buffer): New constructors.
2123 (~macro_buffer): New destructor.
2124 (macro_buffer::set_shared): New method.
2125 (macro_buffer::resize_buffer, macro_buffer::appendc)
2126 (macro_buffer::appendmem): Now methods, not free functions.
2127 (set_token, append_tokens_without_splicing, stringify)
2128 (macro_stringify): Update.
2129 (gather_arguments): Change return type. Remove argc_p argument,
2130 add args_ptr argument. Use std::vector.
2131 (substitute_args): Remove argc argument. Accept std::vector.
2132 (expand): Update. Use std::vector.
2133 (scan, macro_expand, macro_expand_next): Update.
2135 2018-02-08 Tom Tromey <tom@tromey.com>
2137 * symtab.c (default_collect_symbol_completion_matches_break_on):
2138 Use unique_xmalloc_ptr.
2139 * macroscope.h: (sal_macro_scope, user_macro_scope)
2140 (default_macro_scope): Return unique_xmalloc_ptr.
2141 * macroscope.c (sal_macro_scope, user_macro_scope)
2142 (default_macro_scope): Return unique_xmalloc_ptr.
2143 * macroexp.h (macro_expand, macro_expand_once): Return
2145 * macroexp.c (macro_expand, macro_expand_once): Return
2147 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2148 (info_macro_command, info_macros_command): Use
2150 * compile/compile-c-support.c (write_macro_definitions): Use
2152 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
2154 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
2156 * value.c (value_static_field): Assign field type instead of
2157 containing type when returning an optimized out value.
2159 2018-02-06 Yao Qi <yao.qi@linaro.org>
2161 * ft32-tdep.c (ft32_read_pc): Remove.
2162 (ft32_write_pc): Remove.
2163 (ft32_gdbarch_init): Update.
2164 * m32r-tdep.c (m32r_read_pc): Remove.
2165 (m32r_gdbarch_init): Update.
2166 * mep-tdep.c (mep_read_pc): Remove.
2167 (mep_gdbarch_init): Update.
2168 * microblaze-tdep.c (microblaze_write_pc): Remove.
2169 (microblaze_gdbarch_init): Update.
2170 * mn10300-tdep.c (mn10300_read_pc): Remove.
2171 (mn10300_write_pc): Remove.
2172 (mn10300_gdbarch_init): Update.
2173 * moxie-tdep.c (moxie_read_pc): Remove.
2174 (moxie_write_pc): Remove.
2175 (moxie_gdbarch_init): Update.
2177 2018-02-06 Yao Qi <yao.qi@linaro.org>
2179 * expprint.c (print_subexp_standard): Handle
2180 OP_F77_UNDETERMINED_ARGLIST.
2181 (dump_subexp_body_standard): Likewise.
2183 2018-02-05 Alan Hayward <alan.hayward@arm.com>
2185 * target-descriptions.c (tdesc_element_visitor) Add empty
2187 (tdesc_type): Move make_gdb_type from here.
2188 (tdesc_type_builtin): Likewise.
2189 (tdesc_type_vector): Likewise.
2190 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
2191 (make_gdb_type_struct): Move from tdesc_type_with_fields.
2192 (make_gdb_type_union): Likewise.
2193 (make_gdb_type_flags): Likewise.
2194 (make_gdb_type_enum): Likewise.
2195 (make_gdb_type): New function.
2196 (tdesc_register_type): Use static make_gdb_type.
2198 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
2200 * infcmd.c (default_print_one_register_info): Align natural-format
2201 column values consistently one under another.
2202 (pad_to_column): New function.
2204 2018-02-05 Joel Brobecker <brobecker@adacore.com>
2206 * dwarf2read.c (dwarf2_physname): Move commment.
2208 2018-02-01 Leszek Swirski <leszeks@google.com>
2210 * varobj.c (varobj_formatted_print_options): Allow recursive
2211 pretty printing if pretty printing is enabled.
2213 2018-02-01 Leszek Swirski <leszeks@google.com>
2215 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
2216 names after a structop as a filename.
2218 2018-02-01 Yao Qi <yao.qi@linaro.org>
2220 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
2221 (arm_record_coproc_data_proc): Likewise.
2223 2018-02-01 Yao Qi <yao.qi@linaro.org>
2225 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
2227 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
2229 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
2230 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
2232 2018-01-31 Pedro Alves <palves@redhat.com>
2234 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
2235 * inflow.c (child_terminal_save_inferior): Wrap reference to
2236 tcgetpgrp in HAVE_TERMIOS_H.
2237 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
2239 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
2240 always iterate over all inferiors.
2241 (gdbsim_cntrl_c): Adjust.
2242 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
2244 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2246 * gdbtypes.c (lookup_array_range_type): Make sure the array's
2247 index type is objfile-owned if the element type is as well.
2249 2018-01-31 Joel Brobecker <brobecker@adacore.com>
2253 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
2255 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
2256 "features/s390x-linux64.c".
2257 (_initialize_s390_linux_tdep): Remove initialization of tdescs
2258 s390_linux32 and s390x_linux64.
2259 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
2261 * s390-tdep.c: Include "features/s390-linux32.c" and
2262 "features/s390x-linux64.c".
2263 (s390_tdesc_valid): Add check for tdesc_has_registers.
2264 (s390_gdbarch_init): Make sure there is always a valid tdesc.
2265 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
2266 tdesc_s390x_linux64.
2267 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
2268 tdesc_s390x_linux64 to...
2269 * s390-tdep.h: ...here.
2271 2018-01-30 Pedro Alves <palves@redhat.com>
2274 * config.in, configure: Regenerate.
2275 * configure.ac: Check for getpgid.
2276 * go32-nat.c (go32_pass_ctrlc): New.
2277 (go32_target): Install it.
2278 * inf-child.c (inf_child_target): Install
2279 child_terminal_save_inferior, child_pass_ctrlc and
2281 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
2282 (inf_ptrace_target): No longer install it.
2283 * infcmd.c (interrupt_target_1): Adjust.
2284 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
2285 (child_interrupt): Declare.
2286 (inferior::terminal_state): New.
2287 * inflow.c (struct terminal_info): Update comments.
2288 (inferior_process_group): Delete.
2289 (terminal_is_ours): Delete.
2290 (gdb_tty_state): New.
2291 (child_terminal_init): Adjust.
2292 (is_gdb_terminal, sharing_input_terminal_1)
2293 (sharing_input_terminal): New functions.
2294 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
2295 Set the process's actual process group in the foreground if
2296 possible. Handle is_ours_for_output/is_ours distinction. Don't
2297 mark terminal as the inferior's if not sharing GDB's terminal.
2298 Don't check attach_flag.
2299 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
2300 pass down a target_terminal_state.
2301 (child_terminal_save_inferior): New, factored out from ...
2302 (child_terminal_ours_1): ... this. Handle
2303 target_terminal_state::is_ours_for_output.
2304 (child_interrupt, child_pass_ctrlc): New.
2305 (inflow_inferior_exit): Clear the inferior's terminal_state.
2306 (copy_terminal_info): Copy the inferior's terminal state.
2307 (_initialize_inflow): Remove reference to terminal_is_ours.
2308 * inflow.h (inferior_process_group): Delete.
2309 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
2310 * procfs.c (procfs_target): Don't install procfs_interrupt.
2311 (procfs_interrupt): Delete.
2312 * remote.c (remote_serial_quit_handler): Adjust.
2313 (remote_interrupt): Remove ptid parameter. Adjust.
2314 * target-delegates.c: Regenerate.
2315 * target.c: Include "terminal.h".
2316 (target_terminal::terminal_state): Rename to ...
2317 (target_terminal::m_terminal_state): ... this.
2318 (target_terminal::init): Adjust.
2319 (target_terminal::inferior): Adjust to per-inferior
2321 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
2322 (target_terminal::ours, target_terminal::ours_for_output): Use
2323 target_terminal_is_ours_kind.
2324 (target_interrupt): Remove ptid parameter. Adjust.
2325 (default_target_pass_ctrlc): Adjust.
2326 * target.h (target_ops::to_terminal_save_inferior): New field.
2327 (target_ops::to_interrupt): Remove ptid_t parameter.
2328 (target_interrupt): Remove ptid_t parameter. Update comment.
2329 (target_pass_ctrlc): Update comment.
2330 * target/target.h (target_terminal_state): New scoped enum,
2332 (target_terminal::terminal_state): ... here.
2333 (target_terminal::inferior): Update comments.
2334 (target_terminal::restore_inferior): New.
2335 (target_terminal::is_inferior, target_terminal::is_ours)
2336 (target_terminal::is_ours_for_output): Adjust.
2337 (target_terminal::scoped_restore_terminal_state): Adjust to
2338 rename, and call restore_inferior() instead of inferior().
2339 (target_terminal::scoped_restore_terminal_state::m_state): Change
2341 (target_terminal::terminal_state): Rename to ...
2342 (target_terminal::m_terminal_state): ... this and change type.
2344 2018-01-30 Pedro Alves <palves@redhat.com>
2346 * linux-nat.c (wait_for_signal): New function.
2347 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
2349 (async_terminal_is_ours)
2350 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
2351 (linux_nat_add_target): Don't override
2352 to_terminal_inferior/to_terminal_ours.
2354 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
2356 * remote.c (remote_follow_fork): Don't call "detach_inferior".
2358 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
2360 * dwarf2read.c (free_dwo_files): Add forward-declaration.
2361 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
2362 dwarf2_per_objfile_free here.
2363 (dwarf2_per_objfile_free): Remove.
2364 (_initialize_dwarf2_read): Don't register
2365 dwarf2_per_objfile_free as a registry cleanup.
2367 2018-01-27 Eli Zaretskii <eliz@gnu.org>
2369 Avoid compilation errors in MinGW native builds
2371 The error is triggered by including python-internal.h, and the
2374 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
2375 from build-gnulib/import/math.h:27,
2376 from d:/usr/Python26/include/pyport.h:235,
2377 from d:/usr/Python26/include/Python.h:58,
2378 from python/python-internal.h:94,
2379 from python/py-arch.c:24:
2380 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
2384 This happens because Python headers define 'hypot' to expand t
2385 '_hypot' in the Windows builds.
2386 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
2387 'hypoth'. This avoids a compilation error.
2389 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2391 * MAINTAINERS (Write After Approval): Fix ordering.
2393 2018-01-26 Alan Hayward <alan.hayward@arm.com>
2395 * MAINTAINERS (Write After Approval): Add Alan Hayward.
2397 2018-01-26 Alan Modra <amodra@gmail.com>
2399 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
2400 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
2401 Remove nop. Make const. Comment.
2402 (powerpc32_plt_stub_so_2): New.
2403 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
2404 Correct count. Update uses.
2405 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
2406 Move common code reading PLT entry word. Correct
2407 powerpc32_plt_stub PLT address calculation.
2408 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
2409 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
2410 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
2411 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
2412 (ppc64_standard_linkage8): Likewise.
2413 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
2414 Correct insns description.
2415 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2417 2018-01-24 Pedro Alves <palves@redhat.com>
2419 GCC PR libstdc++/83906
2420 * gdbtypes.c (operator==(const dynamic_prop &,
2421 const dynamic_prop &)): New.
2422 (operator==(const range_bounds &, const range_bounds &)): New.
2423 (check_types_equal): Use them instead of memcmp.
2424 * gdbtypes.h (operator==(const dynamic_prop &,
2425 const dynamic_prop &)): Declare.
2426 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
2427 (operator==(const range_bounds &, const range_bounds &)): Declare.
2428 (operator!=(const range_bounds &, const range_bounds &)): Declare.
2430 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2432 * s390-linux-tdep.c (s390_record_address_mask)
2433 (s390_record_calc_disp_common, s390_record_calc_disp)
2434 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2435 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2436 (s390_process_record): Move to s390-tdep.c.
2437 (s390_linux_init_abi_any): Adjust.
2438 * s390-tdep.c (s390_record_address_mask)
2439 (s390_record_calc_disp_common, s390_record_calc_disp)
2440 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
2441 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
2442 (s390_process_record): Moved from s390-linux-tdep.c
2443 (s390_gdbarch_init): Adjust.
2445 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2447 * s390-linux-nat.c (s390-tdep.h): New include.
2448 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
2449 (HFILES_NO_SRCDIR): Add s390-tdep.h.
2450 (ALLDEPFILES): Add s390-tdep.c.
2451 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
2452 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
2453 * s390-tdep.h: ...this. New file.
2454 * s390-linux-tdep.c (s390-tdep.h): New include.
2455 (_initialize_s390_tdep): Rename to...
2456 (_initialize_s390_linux_tdep): ...this and adjust.
2457 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
2458 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
2460 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
2461 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
2462 (s390_is_partial_instruction, s390_software_single_step)
2463 (is_non_branch_ril, s390_displaced_step_copy_insn)
2464 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
2465 (s390_prologue_data, s390_addr, s390_store, s390_load)
2466 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
2467 (s390_register_call_saved, s390_guess_tracepoint_registers)
2468 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
2469 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
2470 (s390_pseudo_register_name, s390_pseudo_register_type)
2471 (s390_pseudo_register_read, s390_pseudo_register_write)
2472 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
2473 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
2474 (s390_addr_bits_remove, s390_address_class_type_flags)
2475 (s390_address_class_type_flags_to_name)
2476 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
2477 (s390_function_arg_float, s390_function_arg_vector)
2478 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
2479 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
2480 (s390_frame_align, s390_register_return_value, s390_return_value)
2481 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
2482 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
2483 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
2484 (s390_trad_frame_prev_register, s390_unwind_cache)
2485 (s390_prologue_frame_unwind_cache)
2486 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
2487 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
2488 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
2489 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
2490 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
2491 (s390_frame_base_address, s390_local_base_address)
2492 (s390_frame_base, s390_gcc_target_options)
2493 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
2494 (s390_validate_reg_range, s390_tdesc_valid)
2495 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
2496 * s390-tdep.c: ...this. New file.
2498 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2500 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
2501 (s390_process_record, s390_gdbarch_tdep_alloc)
2502 (s390_linux_init_abi_any): Use/set new hook.
2504 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2506 * s390-linux-tdep.c (osabi.h): New include.
2507 (s390_linux_init_abi_31, s390_linux_init_abi_64)
2508 (s390_linux_init_abi_any): New functions.
2509 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
2511 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2513 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
2514 tdesc_has_registers check
2516 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2518 * s390-linux-tdep.c (s390_tdesc_valid): New function.
2519 (s390_validate_reg_range): New macro.
2520 (s390_gdbarch_init): Adjust.
2522 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2524 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
2525 (s390_gdbarch_tdep_alloc): Adjust.
2526 (s390_gdbarch_init): Adjust.
2528 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2530 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
2531 <have_tdb>: Change type to bool.
2532 (s390_gdbarch_tdep_alloc): Adjust.
2533 (s390_gdbarch_init): Adjust.
2535 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2537 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
2538 (gdbarch_tdep) <have_upper, have_vx>: New fields.
2539 (s390_gdbarch_tdep_alloc): New function.
2540 (s390_gdbarch_init): Allocate tdep at start and use its fields
2541 instead of separate variables.
2543 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
2545 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
2546 when looking for cached gdbarch and add comment for remaining.
2548 2018-01-22 Pedro Alves <palves@redhat.com>
2549 Sergio Durigan Junior <sergiodj@redhat.com>
2551 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
2554 2018-01-22 Maciej W. Rozycki <macro@mips.com>
2556 * MAINTAINERS: Update my company e-mail address.
2558 2018-01-22 Yao Qi <yao.qi@linaro.org>
2560 * regcache.c (cooked_write_test): New function.
2561 (_initialize_regcache): Register the test.
2563 2018-01-22 Yao Qi <yao.qi@linaro.org>
2565 * ia64-tdep.c (ia64_pseudo_register_read): Call
2566 regcache->cooked_read instead of regcache_cooked_read_unsigned.
2567 * m32c-tdep.c (m32c_cat_read): Likewise.
2568 (m32c_r3r2r1r0_read): Likewise.
2569 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
2570 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
2572 2018-01-22 Yao Qi <yao.qi@linaro.org>
2574 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
2575 method raw_read instead of regcache_raw_read.
2576 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
2577 * arm-tdep.c (arm_neon_quad_read): Likewise.
2578 * avr-tdep.c (avr_pseudo_register_read): Likewise.
2579 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
2580 * frv-tdep.c (frv_pseudo_register_read): Likewise.
2581 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
2582 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
2583 (i386_pseudo_register_read_into_value): Likewise.
2584 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
2585 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
2586 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
2587 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
2588 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
2589 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
2590 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
2591 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
2592 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
2594 2018-01-22 Yao Qi <yao.qi@linaro.org>
2596 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
2597 * configure.tgt: Remove target mt.
2598 * mt-tdep.c: Remove.
2599 * regcache.c (cooked_read_test): Remove the check for mt.
2601 2018-01-22 Yao Qi <yao.qi@linaro.org>
2603 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
2604 instead of gdbarch_pseudo_register_read_value.
2606 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2608 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
2611 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2613 * linespec.c (create_sals_line_offset): Remove code that preserved
2614 the symtab_and_line's line number.
2616 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2618 * varobj.c (varobj_create): Don't set valid_block when creating a
2621 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2623 * varobj.c (varobj_create): Remove out of date comment.
2625 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2628 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2629 updating innermost block.
2630 * parse.c (innermost_block_tracker::update): Take extra type
2631 parameter, and check types match before updating innermost block.
2632 (write_dollar_variable): Update innermost block for registers.
2633 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2634 (innermost_block_tracker::innermost_block_tracker): Initialise
2636 (innermost_block_tracker::reset): Take type parameter.
2637 (innermost_block_tracker::update): Take type parameter, and pass
2638 type through as needed.
2639 (innermost_block_tracker::m_types): New member.
2640 * varobj.c (varobj_create): Pass type when reseting innermost
2643 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2645 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2646 * ada-lang.c (resolve_subexp): Likewise.
2647 * breakpoint.c (set_breakpoint_condition) Likewise.
2648 (watch_command_1) Likewise.
2649 * c-exp.y (variable): Likewise.
2650 * d-exp.y (PrimaryExpression): Likewise.
2651 * f-exp.y (variable): Likewise.
2652 * go-exp.y (variable): Likewise.
2653 * m2-exp.y (variable): Likewise.
2654 * objfiles.c (objfile::~objfile): Likewise.
2655 * p-exp.y (variable): Likewise.
2656 * parse.c (innermost_block): Change type.
2657 * parser-defs.h (class innermost_block_tracker): New.
2658 (innermost_block): Change to innermost_block_tracker.
2659 * printcmd.c (display_command): Switch to innermost_block API.
2660 (do_one_display): Likewise.
2661 * rust-exp.y (do_one_display): Likewise.
2662 * symfile.c (clear_symtab_users): Likewise.
2663 * varobj.c (varobj_create): Switch to innermost_block API, replace
2664 use of innermost_block with block stored on varobj object.
2666 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2668 * expression.h (innermost_block): Remove declaration.
2669 * varobj.c: Add 'parser-defs.h' include.
2671 2018-01-19 Tom Tromey <tom@tromey.com>
2673 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2674 symbols in the static and global blocks.
2676 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2678 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2679 gdb_ptrace.h, and move including gdb_wait.h ...
2680 * nat/linux-ptrace.h: ... to here.
2682 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2684 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2685 inf_ptrace_detach_success.
2686 (inf_ptrace_detach_success): Add inferior parameter, use it
2687 instead of inferior_ptid, pass it to detach_inferior.
2688 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2690 * inferior.c (detach_inferior): Add overload that takes an
2692 * inferior.h (detach_inferior): Likewise.
2693 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2694 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2695 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2697 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2699 * target.h (struct target_ops) <to_detach>: Add inferior
2701 (target_detach): Likewise.
2702 * target.c (dispose_inferior): Pass inferior down.
2703 (target_detach): Pass inferior down. Assert that it is equal to
2704 the current inferior.
2705 * aix-thread.c (aix_thread_detach): Pass inferior down.
2706 * corefile.c (core_file_command): Pass current_inferior() down.
2707 * corelow.c (core_detach): Add inferior parameter.
2708 * darwin-nat.c (darwin_detach): Likewise.
2709 * gnu-nat.c (gnu_detach): Likewise.
2710 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2711 * infcmd.c (detach_command): Pass current_inferior() down to
2713 * infrun.c (follow_fork_inferior): Pass parent_inf to
2715 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2717 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2718 * linux-thread-db.c (thread_db_detach): Likewise.
2719 * nto-procfs.c (procfs_detach): Likewise.
2720 * procfs.c (procfs_detach): Likewise.
2721 * record.c (record_detach): Likewise.
2722 * record.h (struct inferior): Forward-declare.
2723 (record_detach): Add inferior parameter.
2724 * remote-sim.c (gdbsim_detach): Likewise.
2725 * remote.c (remote_detach_1): Likewise.
2726 (remote_detach): Likewise.
2727 (extended_remote_detach): Likewise.
2728 * sol-thread.c (sol_thread_detach): Likewise.
2729 * target-debug.h (target_debug_print_inferior_p): New macro.
2730 * target-delegates.c: Re-generate.
2731 * top.c (kill_or_detach): Pass inferior down to target_detach.
2732 * windows-nat.c (windows_detach): Add inferior parameter.
2734 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2736 * target.h (struct target_ops) <to_detach>: Remove args
2738 (target_detach): Likewise.
2739 * target.c (dispose_inferior): Adjust.
2740 (target_detach): Remove args parameter, adjust.
2741 * aix-thread.c (aix_thread_detach): Adjust.
2742 * corefile.c (core_file_command): Adjust.
2743 * corelow.c (core_detach): Adjust.
2744 * darwin-nat.c (darwin_detach): Adjust.
2745 * gnu-nat.c (gnu_detach): Adjust.
2746 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2747 * infcmd.c (detach_command): Adjust
2748 * infrun.c (follow_fork_inferior): Adjust.
2749 (handle_vfork_child_exec_or_exit): Adjust.
2750 * linux-fork.c (linux_fork_detach): Remove args parameter.
2751 * linux-fork.h (linux_fork_detach): Likewise.
2752 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2753 * linux-thread-db.c (thread_db_detach): Likewise.
2754 * nto-procfs.c (procfs_detach): Likewise.
2755 * procfs.c (procfs_detach): Likewise.
2756 (do_detach): Remove signo parameter.
2757 * record.c (record_detach): Remove args parameter.
2758 * record.h (record_detach): Likewise.
2759 * remote-sim.c (gdbsim_detach): Likewise.
2760 * remote.c (remote_detach_1): Likewise.
2761 (remote_detach): Likewise.
2762 (extended_remote_detach): Likewise.
2763 * sol-thread.c (sol_thread_detach): Likewise.
2764 * target-delegates.c: Re-generate.
2765 * top.c (struct qt_args) <args>: Remove field.
2766 (kill_or_detach): Don't pass args.
2767 (quit_force): Don't set args.
2768 * windows-nat.c (windows_detach): Remove args parameter.
2770 2018-01-19 Yao Qi <yao.qi@linaro.org>
2772 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2773 (arm_linux_init_abi): Install it.
2775 2018-01-19 Yao Qi <yao.qi@linaro.org>
2777 * osabi.c (gdb_osabi_names): Extend the regexp for
2778 arm-linux-gnueabihf.
2780 2018-01-18 Yao Qi <yao.qi@linaro.org>
2782 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2784 (abbrev_table::add_abbrev): Update.
2785 (abbrev_table::lookup_abbrev): Update.
2787 2018-01-18 Yao Qi <yao.qi@linaro.org>
2789 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2791 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2793 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2796 2018-01-17 Tom Tromey <tom@tromey.com>
2798 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2800 2018-01-17 Tom Tromey <tom@tromey.com>
2802 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2803 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2804 (create_array_type_with_stride): Update.
2805 * dwarf2read.c (set_die_type): Update.
2807 2018-01-17 Tom Tromey <tom@tromey.com>
2809 * dwarf2read.c (delayed_method_info): Remove typedef.
2810 (dwarf2_cu::method_info): Now a std::vector.
2811 (add_to_method_list): Update.
2812 (free_delayed_list): Remove.
2813 (compute_delayed_physnames): Update.
2814 (process_full_comp_unit, process_full_type_unit): Clear the method
2815 list. Remove cleanups.
2816 (psymtab_include_file_name): Add name_holder parameter. Use
2818 (dwarf_decode_lines): Update.
2820 2018-01-17 Tom Tromey <tom@tromey.com>
2821 Simon Marchi <simon.marchi@ericsson.com>
2823 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2824 (dwarf2_per_objfile::free_cached_comp_units)
2825 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2826 (init_cutu_and_read_dies_no_follow): Update.
2827 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2828 (dwarf2_cu::~dwarf2_cu): New.
2829 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2830 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2832 2018-01-17 Tom Tromey <tom@tromey.com>
2833 Simon Marchi <simon.marchi@ericsson.com>
2835 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2836 (struct die_reader_specs) <abbrev_table>: New member.
2837 (struct abbrev_table): Add constructor.
2838 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2839 <abbrev_obstack>: Now an auto_obstack.
2840 (abbrev_table_up): New typedef.
2841 (init_cu_die_reader): Add abbrev_table parameter.
2842 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2843 Add result_dwo_abbrev_table.
2844 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2845 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2847 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2849 (skip_children): Update.
2850 (abbrev_table::alloc_abbrev): Rename from
2851 abbrev_table_alloc_abbrev.
2852 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2853 (abbrev_table::lookup_abbrev): Rename from
2854 abbrev_table_lookup_abbrev.
2855 (abbrev_table_read_table): Return abbrev_table_up.
2856 (abbrev_table_free, abbrev_table_free_cleanup)
2857 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2858 (load_partial_dies): Update.
2860 2018-01-17 Tom Tromey <tom@tromey.com>
2862 * dwarf2read.c (dwarf2_compute_name): Update comment.
2863 (read_func_scope, read_variable): Update.
2864 (new_symbol): Remove.
2865 (new_symbol_full): Rename to new_symbol.
2867 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2870 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2871 a warning instead of throwing an error, set section size to 0 and return
2873 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2875 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2877 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2879 (linux_ptrace_attach_fail_reason_string): Likewise.
2880 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2882 (linux_ptrace_attach_fail_reason_string): Likewise.
2883 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2885 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2887 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2889 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2892 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2893 checking for fs_base/gs_base fields in struct user_regs_struct.
2894 * configure: Regenerate.
2896 2018-01-17 Yao Qi <yao.qi@linaro.org>
2898 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2900 (aarch64_linux_init_abi): Install it to gdbarch hook
2903 2018-01-15 Pedro Alves <palves@redhat.com>
2905 * common/signals-state-save-restore.c
2906 (save_original_signals_state): Fix typos.
2908 2017-01-12 Tom Tromey <tom@tromey.com>
2909 Sergio Durigan Junior <sergiodj@redhat.com>
2911 * Makefile.in (install-only): Install gdb-add-index.
2913 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2915 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2917 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2919 * infrun.c (keep_going_pass_signal): Clear step-over info when
2920 insert_breakpoints fails.
2922 2018-01-11 Pedro Alves <palves@redhat.com>
2925 * infrun.c (resume): Rename to ...
2926 (resume_1): ... this.
2927 (resume): Reimplement as wrapper around resume_1.
2929 2018-01-11 Pedro Alves <palves@redhat.com>
2932 * remote.c (remote_parse_stop_reply): Default to the last-set
2933 general thread instead of to 'magic_null_ptid'.
2935 2018-01-10 Pedro Alves <palves@redhat.com>
2937 * language.h (language_get_symbol_name_matcher): Rename ...
2938 (get_symbol_name_matcher): ... this.
2939 * language.c (language_get_symbol_name_matcher): Ditto.
2940 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2943 2018-01-10 Pedro Alves <palves@redhat.com>
2947 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2948 Adjust to use language_get_symbol_name_matcher instead of
2949 language_defn::la_get_symbol_name_matcher.
2950 * language.c (language_get_symbol_name_matcher): If in Ada mode
2951 and the lookup name is a verbatim match, return Ada's matcher.
2952 * language.h (language_get_symbol_name_matcher): Adjust comment.
2953 (ada_lookup_name_info::verbatim_p):: New method.
2955 2018-01-10 Pedro Alves <palves@redhat.com>
2958 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2959 minsym's language is language_auto or language_cplus, pass down
2960 language_ada instead.
2961 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2963 2018-01-10 Pedro Alves <palves@redhat.com>
2966 * minsyms.c (linkage_name_str): New function.
2967 (iterate_over_minimal_symbols): Use it.
2969 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2971 * NEWS: Document that 'info proc' now works on FreeBSD.
2973 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2975 * configure.ac: Check for kinfo_getfile in libutil.
2976 * configure: Regenerate.
2977 * config.in: Regenerate.
2978 * fbsd-nat.c: Include "fbsd-tdep.h".
2979 (fbsd_fetch_cmdline): New.
2980 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2981 rather than calling error.
2982 (fbsd_info_proc): New.
2983 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2984 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2985 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2987 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2989 * fbsd-nat.c (struct free_deleter): Remove.
2990 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2992 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2994 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2995 NULL for an empty pathname.
2997 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2999 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
3000 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
3001 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3002 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3003 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
3004 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
3005 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
3006 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
3007 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
3008 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
3009 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
3010 (fbsd_core_fetch_timeval, fbsd_print_sigset)
3011 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
3012 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
3013 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
3015 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
3017 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
3018 (gnu_xfer_auxv): New function.
3019 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
3022 2018-01-08 Yao Qi <yao.qi@linaro.org>
3023 Simon Marchi <simon.marchi@ericsson.com>
3025 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
3027 (COMMON_OBS): Remove selftest.o.
3028 * configure.ac: Append selftest-arch.c and common/selftest.c to
3029 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
3030 * configure: Re-generated.
3031 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
3033 (maintenance_info_selftests): Likewise.
3035 2018-01-08 Xavier Roirand <roirand@adacore.com>
3037 * ada-valprint.c (val_print_packed_array_elements): Use
3038 proper number of elements when printing an array indexed
3039 by an enumeration type.
3041 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3043 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
3044 (dw2_get_file_names_reader): Adjust.
3045 (lookup_dwo_signatured_type): Adjust.
3046 (lookup_dwp_signatured_type): Adjust.
3047 (lookup_signatured_type): Adjust.
3048 (create_type_unit_group): Adjust.
3049 (get_type_unit_group): Adjust.
3050 (process_psymtab_comp_unit_reader): Adjust.
3051 (build_type_psymtabs_reader): Adjust.
3052 (scan_partial_symbols): Adjust.
3053 (add_partial_symbol): Adjust.
3054 (add_partial_subprogram): Adjust.
3055 (peek_die_abbrev): Adjust.
3056 (fixup_go_packaging): Adjust.
3057 (process_imported_unit_die): Adjust.
3058 (dwarf2_compute_name): Adjust.
3059 (dwarf2_physname): Adjust.
3060 (read_import_statement): Adjust.
3061 (handle_DW_AT_stmt_list): Adjust.
3062 (read_file_scope): Adjust.
3063 (read_func_scope): Adjust.
3064 (read_lexical_block_scope): Adjust.
3065 (read_call_site_scope): Adjust.
3066 (read_variable): Adjust.
3067 (dwarf2_rnglists_process): Adjust.
3068 (dwarf2_ranges_process): Adjust.
3069 (dwarf2_ranges_read): Adjust.
3070 (dwarf2_get_pc_bounds): Adjust.
3071 (dwarf2_record_block_ranges): Adjust.
3072 (dwarf2_add_field): Adjust.
3073 (dwarf2_add_member_fn): Adjust.
3074 (read_structure_type): Adjust.
3075 (process_structure_scope): Adjust.
3076 (read_enumeration_type): Adjust.
3077 (read_array_type): Adjust.
3078 (mark_common_block_symbol_computed): Adjust.
3079 (read_common_block): Adjust.
3080 (read_namespace_type): Adjust.
3081 (read_namespace): Adjust.
3082 (read_module_type): Adjust.
3083 (read_tag_pointer_type): Adjust.
3084 (read_tag_ptr_to_member_type): Adjust.
3085 (read_tag_string_type): Adjust.
3086 (read_subroutine_type): Adjust.
3087 (read_typedef): Adjust.
3088 (read_base_type): Adjust.
3089 (attr_to_dynamic_prop): Adjust.
3090 (read_subrange_type): Adjust.
3091 (read_unspecified_type): Adjust.
3092 (dwarf2_read_abbrevs): Adjust.
3093 (load_partial_dies): Adjust.
3094 (read_partial_die): Adjust.
3095 (find_partial_die): Adjust.
3096 (guess_partial_die_structure_name): Adjust.
3097 (fixup_partial_die): Adjust.
3098 (read_attribute_value): Adjust.
3099 (read_addr_index): Adjust.
3100 (read_addr_index_from_leb128): Adjust.
3101 (read_str_index): Adjust.
3102 (dwarf2_string_attr): Adjust.
3103 (get_debug_line_section): Adjust.
3104 (dwarf_decode_line_header): Adjust.
3105 (lnp_state_machine::check_line_address): Adjust.
3106 (dwarf_decode_lines_1): Adjust.
3107 (dwarf_decode_lines): Adjust.
3108 (dwarf2_start_symtab): Adjust.
3109 (var_decode_location): Adjust.
3110 (new_symbol_full): Adjust.
3111 (dwarf2_const_value_data): Adjust.
3112 (dwarf2_const_value_attr): Adjust.
3113 (dwarf2_const_value): Adjust.
3115 (die_containing_type): Adjust.
3116 (build_error_marker_type): Adjust.
3117 (lookup_die_type): Adjust.
3118 (guess_full_die_structure_name): Adjust.
3119 (anonymous_struct_prefix): Adjust.
3120 (determine_prefix): Adjust.
3121 (dwarf2_name): Adjust.
3122 (follow_die_ref_or_sig): Adjust.
3123 (follow_die_offset): Adjust.
3124 (follow_die_ref): Adjust.
3125 (follow_die_sig_1): Adjust.
3126 (follow_die_sig): Adjust.
3127 (get_signatured_type): Adjust.
3128 (get_DW_AT_signature_type): Adjust.
3129 (decode_locdesc): Adjust.
3130 (dwarf_decode_macros): Adjust.
3131 (cu_debug_loc_section): Adjust.
3132 (fill_in_loclist_baton): Adjust.
3133 (dwarf2_symbol_mark_computed): Adjust.
3134 (init_one_comp_unit): Don't assign
3135 dwarf2_cu::dwarf2_per_objfile.
3136 (set_die_type): Adjust.
3138 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3140 * dwarf2read.c (struct mapped_debug_names): Add constructor.
3141 <dwarf2_per_objfile>: New field.
3142 (dwarf2_per_objfile): Remove global.
3143 (get_dwarf2_per_objfile): New function.
3144 (set_dwarf2_per_objfile): New function.
3145 (dwarf2_build_psymtabs_hard): Change objfile parameter to
3147 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3148 (read_abbrev_offset): Likewise.
3149 (read_indirect_string): Likewise.
3150 (read_indirect_line_string): Likewise.
3151 (read_indirect_string_at_offset): Likewise.
3152 (read_indirect_string_from_dwz): Likewise.
3153 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3155 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3156 (create_all_comp_units): Change objfile parameter to
3158 (create_all_type_units): Likewise.
3159 (process_queue): Add dwarf2_per_objfile parameter.
3160 (read_and_check_comp_unit_head): Likewise.
3161 (lookup_dwo_unit_in_dwp): Likewise.
3162 (get_dwp_file): Likewise.
3163 (process_cu_includes): Likewise.
3164 (struct free_dwo_file_cleanup_data): New struct.
3165 (dwarf2_has_info): Use get_dwarf2_per_objfile and
3166 set_dwarf2_per_objfile.
3167 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
3168 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
3169 context, adjust calls.
3170 (dw2_instantiate_symtab): Likewise.
3171 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
3172 (dw2_get_cu): Likewise.
3173 (create_cu_from_index_list): Change objfile parameter to
3175 (create_cus_from_index_list): Get dwarf2_per_objfile from
3176 context, adjust calls.
3177 (create_cus_from_index): Likewise.
3178 (create_signatured_type_table_from_index): Change objfile
3179 parameter to dwarf2_per_objfile.
3180 (create_signatured_type_table_from_debug_names): Change objfile
3181 parameter to dwarf2_per_objfile.
3182 (create_addrmap_from_index): Likewise.
3183 (create_addrmap_from_aranges): Likewise.
3184 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
3185 (dw2_setup): Remove.
3186 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
3188 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
3189 get_dwarf2_per_objfile.
3190 (dw2_forget_cached_source_info): Likewise.
3191 (dw2_map_symtabs_matching_filename): Likewise.
3192 (struct dw2_symtab_iterator) <index>: Remove.
3193 <dwarf2_per_objfile>: New field.
3194 (dw2_symtab_iter_init): Replace index parameter with
3196 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
3197 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
3198 (dw2_print_stats): Likewise.
3199 (dw2_dump): Likewise.
3200 (dw2_expand_symtabs_for_function): Likewise.
3201 (dw2_expand_all_symtabs): Likewise.
3202 (dw2_expand_symtabs_with_fullname): Likewise.
3203 (dw2_expand_marked_cus): Replace index and objfile parameters
3204 with dwarf2_per_objfile.
3205 (dw_expand_symtabs_matching_file_matcher): Add
3206 dwarf2_per_objfile parameter and adjust calls.
3207 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
3209 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
3210 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
3212 (create_cus_from_debug_names_list): Replace objfile parameter
3213 with dwarf2_per_objfile and adjust calls.
3214 (create_cus_from_debug_names): Likewise.
3215 (dwarf2_read_debug_names): Likewise.
3216 (mapped_debug_names::namei_to_name): Adjust call.
3217 (dw2_debug_names_iterator::next): Likewise.
3218 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3219 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
3220 (dw2_debug_names_dump): Likewise.
3221 (dw2_debug_names_expand_symtabs_for_function): Likewise.
3222 (dw2_debug_names_expand_symtabs_matching): Likewise.
3223 (dwarf2_initialize_objfile): Likewise.
3224 (dwarf2_build_psymtabs): Likewise.
3225 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
3227 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
3228 (read_and_check_comp_unit_head): Likewise.
3229 (read_abbrev_offset): Likewise.
3230 (create_debug_type_hash_table): Likewise.
3231 (create_debug_types_hash_table): Likewise.
3232 (create_all_type_units): Replace objfile parameter with
3234 (add_type_unit): Add dwarf2_per_objfile parameter.
3235 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
3236 with dwarf2_per_objfile.
3237 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
3238 (lookup_dwp_signatured_type): Likewise.
3239 (lookup_signatured_type): Likewise.
3240 (read_cutu_die_from_dwo): Likewise.
3241 (init_tu_and_read_dwo_dies): Likewise.
3242 (init_cutu_and_read_dies): Likewise.
3243 (init_cutu_and_read_dies_no_follow): Likewise.
3244 (allocate_type_unit_groups_table): Add objfile parameter.
3245 (create_type_unit_group): Use dwarf2_per_objfile from cu.
3246 (get_type_unit_group): Likewise.
3247 (process_psymtab_comp_unit): Update call.
3248 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
3249 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
3250 (print_tu_stats): Likewise.
3251 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
3253 (build_type_psymtabs): Change objfile parameter to
3255 (process_skeletonless_type_unit): Use dwarf2_per_objfile
3256 passed in void* parameter.
3257 (process_skeletonless_type_units): Change objfile parameter to
3259 (set_partial_user): Likewise.
3260 (dwarf2_build_psymtabs_hard): Likewise.
3261 (read_comp_units_from_section): Likewise.
3262 (create_all_comp_units): Likewise.
3263 (scan_partial_symbols): Update calls.
3264 (add_partial_symbol): Likewise.
3265 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
3266 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
3267 (process_queue): Add dwarf2_per_objfile parameter.
3268 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
3269 (compute_compunit_symtab_includes): Likewise.
3270 (process_cu_includes): Add dwarf2_per_objfile parameter.
3271 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
3272 (process_full_type_unit): Likewise.
3273 (process_imported_unit_die): Update call.
3274 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
3275 (read_file_scope): Likewise.
3276 (allocate_dwo_file_hash_table): Add objfile parameter.
3277 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
3278 (create_cus_hash_table): Likewise.
3279 (create_dwp_hash_table): Likewise.
3280 (create_dwo_unit_in_dwp_v1): Likewise.
3281 (create_dwp_v2_section): Likewise.
3282 (create_dwo_unit_in_dwp_v2): Likewise.
3283 (lookup_dwo_unit_in_dwp): Likewise.
3284 (try_open_dwop_file): Likewise.
3285 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
3286 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
3287 cleanup to include a reference to dwarf2_per_objfile.
3288 (open_dwp_file): Add dwarf2_per_objfile parameter.
3289 (open_and_init_dwp_file): Likewise.
3290 (get_dwp_file): Likewise.
3291 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
3292 (queue_and_load_all_dwo_tus): Update call.
3293 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
3295 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
3296 (dwarf2_ranges_process): Likewise.
3297 (dwarf2_get_pc_bounds): Likewise.
3298 (mark_common_block_symbol_computed): Likewise.
3299 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
3300 (dwarf2_read_abbrevs): Update call.
3301 (read_partial_die): Use dwarf2_per_objfile from cu.
3302 (find_partial_die): Likewise.
3303 (fixup_partial_die): Likewise.
3304 (read_attribute_value): Likewise.
3305 (read_indirect_string_at_offset_from): Add objfile parameter.
3306 (read_indirect_string_at_offset): Add dwarf2_per_objfile
3308 (read_indirect_string_from_dwz): Add objfile parameter.
3309 (read_indirect_string): Add objfile parameter.
3310 (read_addr_index_1): Add dwarf2_per_objfile parameter.
3311 (read_addr_index): Use dwarf2_per_objfile from cu.
3312 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
3314 (read_str_index): Use dwarf2_per_objfile from cu.
3315 (get_debug_line_section): Likewise.
3316 (read_formatted_entries): Add dwarf2_per_objfile parameter.
3317 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
3318 (new_symbol_full): Use dwarf2_per_objfile from cu.
3319 (build_error_marker_type): Likewise.
3320 (lookup_die_type): Likewise.
3321 (determine_prefix): Likewise.
3322 (follow_die_offset): Likewise.
3323 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
3324 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
3325 (dwarf2_fetch_die_type_sect_off): Likewise.
3326 (dwarf2_get_die_type): Likewise.
3327 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
3328 (get_signatured_type): Likewise.
3329 (get_DW_AT_signature_type): Likewise.
3330 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
3331 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
3332 (cu_debug_loc_section): Likewise.
3333 (fill_in_loclist_baton): Likewise.
3334 (dwarf2_symbol_mark_computed): Likewise.
3335 (dwarf2_find_containing_comp_unit): Change objfile parameter to
3337 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
3339 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
3340 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
3341 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
3342 (set_die_type): Use dwarf2_free_objfile from cu.
3343 (get_die_type_at_offset): Likewise.
3344 (dwarf2_per_objfile_free): Don't assign global variable.
3345 (debug_names) <constructor>: Add dwarf2_per_objfile
3346 parameter, update m_debugstrlookup construction.
3347 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
3349 <m_dwarf2_per_objfile>: New field.
3350 <lookup>: Use m_dwarf2_per_objfile.
3351 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
3352 (psyms_seen_size): Likewise.
3353 (write_gdbindex): Replace objfile parameter with
3355 (write_debug_names): Likewise.
3356 (write_psymtabs_to_index): Likewise.
3357 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
3360 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3362 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
3363 <dwarf2_per_objfile>: New field.
3364 (struct dwarf2_per_cu_data) <objfile>: Remove.
3365 <dwarf2_per_objfile>: New field.
3366 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
3368 (create_signatured_type_table_from_index): Likewise.
3369 (create_debug_type_hash_table): Likewise.
3370 (fill_in_sig_entry_from_dwo_entry): Likewise.
3371 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
3372 (create_type_unit_group): Assign dwarf2_per_objfile instead of
3374 (create_partial_symtab): Access objfile through
3376 (process_psymtab_comp_unit_reader): Likewise.
3377 (read_comp_units_from_section): Likewise.
3378 (scan_partial_symbols): Likewise.
3379 (add_partial_symbol): Likewise.
3380 (add_partial_subprogram): Likewise.
3381 (peek_die_abbrev): Likewise.
3382 (fixup_go_packaging): Likewise.
3383 (process_full_comp_unit): Likewise.
3384 (process_full_type_unit): Likewise.
3385 (process_imported_unit_die): Likewise.
3386 (dwarf2_compute_name): Likewise.
3387 (dwarf2_physname): Likewise.
3388 (read_import_statement): Likewise.
3389 (create_cus_hash_table): Assign dwarf2_physname instead of
3391 (read_func_scope): Access objfile through dwarf2_per_objfile.
3392 (read_lexical_block_scope): Likewise.
3393 (read_call_site_scope): Likewise.
3394 (read_variable): Likewise.
3395 (dwarf2_rnglists_process): Likewise.
3396 (dwarf2_ranges_process): Likewise.
3397 (dwarf2_ranges_read): Likewise.
3398 (dwarf2_record_block_ranges): Likewise.
3399 (dwarf2_add_field): Likewise.
3400 (dwarf2_add_member_fn): Likewise.
3401 (read_structure_type): Likewise.
3402 (process_structure_scope): Likewise.
3403 (read_enumeration_type): Likewise.
3404 (read_array_type): Likewise.
3405 (read_common_block): Likewise.
3406 (read_namespace_type): Likewise.
3407 (read_namespace): Likewise.
3408 (read_module_type): Likewise.
3409 (read_tag_pointer_type): Likewise.
3410 (read_tag_ptr_to_member_type): Likewise.
3411 (read_tag_string_type): Likewise.
3412 (read_subroutine_type): Likewise.
3413 (read_typedef): Likewise.
3414 (read_base_type): Likewise.
3415 (attr_to_dynamic_prop): Likewise.
3416 (read_subrange_type): Likewise.
3417 (read_unspecified_type): Likewise.
3418 (load_partial_dies): Likewise.
3419 (read_partial_die): Likewise.
3420 (find_partial_die): Likewise.
3421 (guess_partial_die_structure_name): Likewise.
3422 (fixup_partial_die): Likewise.
3423 (read_attribute_value): Likewise.
3424 (read_addr_index_from_leb128): Likewise.
3425 (dwarf2_read_addr_index): Likewise.
3426 (dwarf2_string_attr): Likewise.
3427 (lnp_state_machine::check_line_address): Likewise.
3428 (dwarf_decode_lines_1): Likewise.
3429 (dwarf_decode_lines): Likewise.
3430 (dwarf2_start_symtab): Likewise.
3431 (var_decode_location): Likewise.
3432 (new_symbol_full): Likewise.
3433 (dwarf2_const_value_data): Likewise.
3434 (dwarf2_const_value_attr): Likewise.
3435 (dwarf2_const_value): Likewise.
3436 (die_type): Likewise.
3437 (die_containing_type): Likewise.
3438 (lookup_die_type): Likewise.
3439 (guess_full_die_structure_name): Likewise.
3440 (anonymous_struct_prefix): Likewise.
3441 (dwarf2_name): Likewise.
3442 (follow_die_ref_or_sig): Likewise.
3443 (follow_die_offset): Likewise.
3444 (follow_die_ref): Likewise.
3445 (dwarf2_fetch_die_loc_sect_off): Likewise.
3446 (dwarf2_fetch_constant_bytes): Likewise.
3447 (dwarf2_fetch_die_type_sect_off): Likewise.
3448 (dwarf2_get_die_type): Likewise.
3449 (follow_die_sig): Likewise.
3450 (decode_locdesc): Likewise.
3451 (dwarf2_per_cu_objfile): Likewise.
3452 (dwarf2_per_cu_text_offset): Likewise.
3453 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
3455 (set_die_type): Access objfile through
3458 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
3460 * valprint.c (converted_character_d): Remove typedef.
3461 (DEF_VEC_O (converted_character_d)): Remove.
3462 (count_next_character): Use std::vector.
3463 (print_converted_chars_to_obstack): Likewise.
3464 (generic_printstr): Likewise.
3466 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3468 * xml-support.h (struct gdb_xml_value): Add constructor.
3469 <value>: Change type to unique_xmalloc_ptr.
3470 (gdb_xml_value_s): Remove typedef.
3471 (DEF_VEC_O (gdb_xml_value_s)): Remove.
3472 (gdb_xml_element_start_handler): Change parameter type to
3474 (xml_find_attribute): Likewise.
3475 * xml-support.c (xml_find_attribute): Change parameter type to
3476 std::vector and adjust.
3477 (gdb_xml_values_cleanup): Remove.
3478 (gdb_xml_parser::start_element): Adjust to std::vector.
3479 (xinclude_start_include): Change paraeter type to std::vector
3481 * btrace.c (check_xml_btrace_version): Likewise.
3482 (parse_xml_btrace_block): Likewise.
3483 (parse_xml_btrace_pt_config_cpu): Likewise.
3484 (parse_xml_btrace_pt): Likewise.
3485 (parse_xml_btrace_conf_bts): Likewise.
3486 (parse_xml_btrace_conf_pt): Likewise.
3487 * memory-map.c (memory_map_start_memory): Likewise.
3488 (memory_map_start_property): Likewise.
3489 * osdata.c (osdata_start_osdata): Likewise.
3490 (osdata_start_item): Likewise.
3491 (osdata_start_column): Likewise.
3492 * remote.c (start_thread): Likewise.
3493 * solib-aix.c (library_list_start_library): Likewise.
3494 (library_list_start_list): Likewise.
3495 * solib-svr4.c (library_list_start_library): Likewise.
3496 (svr4_library_list_start_list): Likewise.
3497 * solib-target.c (library_list_start_segment): Likewise.
3498 (library_list_start_section): Likewise.
3499 (library_list_start_library): Likewise.
3500 (library_list_start_list): Likewise.
3501 * tracepoint.c (traceframe_info_start_memory): Likewise.
3502 (traceframe_info_start_tvar): Likewise.
3503 * xml-syscall.c (syscall_start_syscall): Likewise.
3504 * xml-tdesc.c (tdesc_start_target): Likewise.
3505 (tdesc_start_feature): Likewise.
3506 (tdesc_start_reg): Likewise.
3507 (tdesc_start_union): Likewise.
3508 (tdesc_start_struct): Likewise.
3509 (tdesc_start_flags): Likewise.
3510 (tdesc_start_enum): Likewise.
3511 (tdesc_start_field): Likewise.
3512 (tdesc_start_enum_value): Likewise.
3513 (tdesc_start_vector): Likewise.
3515 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3517 * extension.h (struct xmethod_worker) <clone>: Remove.
3518 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
3520 (python_xmethod_worker::clone): Remove.
3521 * valops.c (find_overload_match): Use std::move instead of
3524 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3526 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
3527 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
3528 <free_xmethod_worker_data>: Remove.
3529 <get_matching_xmethod_workers>: Chance VEC to std::vector.
3530 <get_xmethod_arg_types>: Remove.
3531 <get_xmethod_result_type>: Remove.
3532 <invoke_xmethod>: Remove.
3533 * extension.c (new_xmethod_worker): Remove.
3534 (clone_xmethod_worker): Remove.
3535 (get_matching_xmethod_workers): Return void, pass std::vector by
3537 (get_xmethod_arg_types): Rename to...
3538 (xmethod_worker::get_arg_types): ... this, and adjust.
3539 (get_xmethod_result_type): Rename to...
3540 (xmethod_worker::get_result_type): ... this, and adjust.
3541 (invoke_xmethod): Remove.
3542 (free_xmethod_worker): Remove.
3543 (free_xmethod_worker_vec): Remove.
3544 * extension.h (enum ext_lang_rc): Move here from
3546 (struct xmethod_worker): Add constructor and destructor.
3549 <invoke, clone, do_get_result_type, do_get_arg_types>: New
3550 virtual pure methods.
3551 <get_arg_types, get_result_type>: New methods.
3552 (xmethod_worker_ptr): Remove typedef.
3553 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
3554 (xmethod_worker_vec): Remove typedef.
3555 (xmethod_worker_up): New typedef.
3556 (invoke_xmethod): Remove.
3557 (clone_xmethod_worker): Remove.
3558 (free_xmethod_worker): Remove.
3559 (free_xmethod_worker_vec): Remove.
3560 (get_xmethod_arg_types): Remove.
3561 (get_xmethod_result_type): Remove.
3562 * valops.c (find_method_list): Use std::vector, don't use
3563 intermediate vector.
3564 (value_find_oload_method_list): Use std::vector.
3565 (find_overload_match): Use std::vector.
3566 (find_oload_champ): Use std::vector.
3567 * value.c (value_free): Use operator delete.
3568 (value_of_xmethod): Rename to...
3569 (value_from_xmethod): ... this. Don't assign
3570 xmethod_worker::value, take rvalue-reference.
3571 (result_type_of_xmethod): Adjust.
3572 (call_xmethod): Adjust.
3573 * value.h: Include extension.h.
3574 (struct xmethod_worker): Don't forward-declare.
3575 (value_of_xmethod): Rename to...
3576 (value_from_xmethod): ... this, take rvalue-reference.
3577 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
3578 (struct python_xmethod_worker): ... this, add constructor and
3580 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
3581 (gdbpy_free_xmethod_worker_data): Rename to...
3582 (python_xmethod_worker::~python_xmethod_worker): ... this and
3584 (gdbpy_clone_xmethod_worker_data): Rename to...
3585 (python_xmethod_worker::clone): ... this and adjust.
3586 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
3588 (gdbpy_get_xmethod_arg_types): Rename to...
3589 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
3590 (gdbpy_get_xmethod_result_type): Rename to...
3591 (python_xmethod_worker::do_get_result_type): ... this and
3593 (gdbpy_invoke_xmethod): Rename to...
3594 (python_xmethod_worker::invoke): ... this and adjust.
3595 (new_python_xmethod_worker): Rename to...
3596 (python_xmethod_worker::python_xmethod_worker): ... this and
3598 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
3600 (gdbpy_free_xmethod_worker_data): Remove.
3601 (gdbpy_get_matching_xmethod_workers): Use std::vector.
3602 (gdbpy_get_xmethod_arg_types): Remove.
3603 (gdbpy_get_xmethod_result_type): Remove.
3604 (gdbpy_invoke_xmethod): Remove.
3605 * python/python.c (python_extension_ops): Remove obsolete
3608 2018-01-05 Pedro Alves <palves@redhat.com>
3611 * common/signals-state-save-restore.c
3612 (save_original_signals_state): New parameter 'quiet'. Warn if we
3613 find a custom handler preinstalled, instead of internal erroring.
3614 But only warn if !quiet.
3615 * common/signals-state-save-restore.h
3616 (save_original_signals_state): New parameter 'quiet'.
3617 * main.c (captured_main_1): Move save_original_signals_state call
3618 after option handling, and pass QUIET.
3620 2018-01-05 Pedro Alves <palves@redhat.com>
3622 * spu-tdep.c (spu_catch_start): Pass
3623 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3625 2018-01-05 Pedro Alves <palves@redhat.com>
3628 * ada-lang.c (literal_symbol_name_matcher): New function.
3629 (ada_get_symbol_name_matcher): Use it for
3630 symbol_name_match_type::SEARCH_NAME.
3631 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3632 it down instead of assuming symbol_name_match_type::FULL.
3633 * block.h (block_lookup_symbol): New parameter 'match_type'.
3634 * c-valprint.c (print_unpacked_pointer): Use
3635 lookup_symbol_search_name instead of lookup_symbol.
3636 * compile/compile-object-load.c (get_out_value_type): Pass down
3637 symbol_name_match_type::SEARCH_NAME.
3638 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3639 symbol_name_match_type::FULL.
3640 * cp-support.c (cp_get_symbol_name_matcher): Handle
3641 symbol_name_match_type::SEARCH_NAME.
3642 * infrun.c (insert_exception_resume_breakpoint): Use
3643 lookup_symbol_search_name.
3644 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3645 * psymtab.c (maintenance_check_psymtabs): Use
3646 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3647 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3649 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3650 if symbol_name_match_type::SEARCH_NAME.
3651 (lookup_symbol_in_language): Pass down
3652 symbol_name_match_type::FULL.
3653 (lookup_symbol_search_name): New.
3654 (lookup_language_this): Pass down
3655 symbol_name_match_type::SEARCH_NAME.
3656 (lookup_symbol_aux, lookup_local_symbol): New parameter
3657 'match_type'. Pass it down.
3658 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3659 (lookup_symbol_search_name): New declaration.
3660 (lookup_symbol_in_block): New 'match_type' parameter.
3662 2018-01-05 Pedro Alves <palves@redhat.com>
3665 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3667 (ada_lookup_symbol): Reimplement in terms of
3668 ada_lookup_symbol_list, bits factored out from
3669 ada_lookup_encoded_symbol.
3671 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3673 * ada-exp.y (write_object_renaming): When subscripting an array
3674 using a symbol as the index, pass the block in call to
3675 ada_lookup_encoded_symbol when looking that symbol up.
3677 2018-01-05 Jerome Guitton <guitton@adacore.com>
3679 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3682 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3684 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3685 the case where VALUE_LVAL (val0) is not lval_memory.
3687 2018-01-05 Xavier Roirand <roirand@adacore.com>
3689 * ada-valprint.c (print_optional_low_bound): Handle
3690 character-indexed array printing like boolean-indexed array
3693 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3695 * NEWS: Create a new section for the next release branch.
3696 Rename the section of the current branch, now that it has
3699 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3701 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3702 * version.in: Bump version to 8.1.50.DATE-git.
3704 2018-01-03 Xavier Roirand <roirand@adacore.com>
3706 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3708 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3710 (default_exception_support_info) <catch_handlers_sym>: Add field.
3711 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3712 (ada_exception_name_addr_1): Add "catch handlers" handling.
3713 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3715 (create_excep_cond_exprs) <ex>: Add parameter.
3716 (re_set_exception): Update create_excep_cond_exprs call.
3717 (print_it_exception, print_one_exception, print_mention_exception)
3718 (print_recreate_exception): Add "catch handler" handling.
3719 (allocate_location_catch_handlers, re_set_catch_handlers)
3720 (check_status_catch_handlers, print_it_catch_handlers)
3721 (print_one_catch_handlers, print_mention_catch_handlers)
3722 (print_recreate_catch_handlers): New function.
3723 (catch_handlers_breakpoint_ops): New variable.
3724 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3725 Add parameter. Add "catch handler" handling.
3726 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3727 Add "catch handler" handling.
3728 (ada_exception_catchpoint_cond_string): Add "catch handler"
3730 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3732 (catch_ada_handlers_command): New function.
3733 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3734 operations structure.
3735 (_initialize_ada_language): Add "catch handlers" command entry.
3736 * NEWS: Document "catch handlers" feature.
3738 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3740 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3741 account when creating the array type of the slice.
3742 (ada_value_slice): Likewise.
3744 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3746 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3748 (create_array_type_with_stride): Add byte_stride_prop parameter.
3749 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3750 New parameter. Update all callers in this file.
3751 (array_type_has_dynamic_stride): New function.
3752 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3753 of arrays with dynamic byte strides.
3754 * dwarf2read.c (read_array_type): Add support for dynamic
3755 DW_AT_byte_stride attributes.
3757 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3759 * dwarf2read.c (read_unspecified_type): Treat
3760 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3762 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3764 Update copyright year range in all GDB files.
3766 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3768 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3769 and gdb/testsuite/gdb.base/step-line.c.
3771 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3773 * copyright.py (main): Dump the contents of
3774 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3775 even if BY_HAND is empty.
3777 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3779 * top.c (print_gdb_version): Update Copyright year in version
3782 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3784 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3786 For older changes see ChangeLog-2017.
3792 version-control: never