1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3 * valops.c (value_repeat): Fix incorrect argument name in comment.
5 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
7 * ada-lang.c (ada_language_data): Remove c_style_arrays
9 (ada_language::c_style_arrays_p): New member fuction.
10 * c-lang.c (c_language_data): Remove c_style_arrays
12 (cplus_language_data): Likewise.
13 (asm_language_data): Likewise.
14 (minimal_language_data): Likewise.
15 * d-lang.c (d_language_data): Likewise.
16 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
17 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
18 (f_language::c_style_arrays_p): New member function.
19 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
20 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
21 * language.c (unknown_language_data): Remove c_style_arrays
23 (auto_language_data): Likewise.
24 * language.h (language_data): Remove c_style_arrays field.
25 (language_defn::c_style_arrays_p): New member function.
26 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
27 (m2_language::c_style_arrays_p): New member function.
28 * objc-lang.c (objc_language_data): Remove c_style_arrays
30 * opencl-lang.c (opencl_language_data): Likewise.
31 * p-lang.c (pascal_language_data): Likewise.
32 * rust-lang.c (rust_language_data): Likewise.
33 * valarith.c (value_subscript): Update call to c_style_arrays_p,
34 and update local variable to a bool.
35 * valops.c (value_cast): Update call to c_style_arrays_p.
36 (value_array): Likewise.
37 * value.c (coerce_array): Likewise.
39 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
41 * ada-lang.c (ada_language_data): Remove la_language initializer.
42 * c-lang.c (c_language_data): Likewise.
43 (cplus_language_data): Likewise.
44 (asm_language_data): Likewise.
45 (minimal_language_data): Likewise.
46 * d-lang.c (d_language_data): Likewise.
47 * f-lang.c (f_language_data): Likewise.
48 * go-lang.c (go_language_data): Likewise.
49 * language.c (unknown_language_data): Likewise.
50 (auto_language_data): Likewise.
51 * language.h (language_data): Remove la_language field.
52 (language_defn::language_defn): Initialise la_language field.
53 (language_defn::la_language): New member variable.
54 * m2-lang.c (m2_language_data): Remove la_language field.
55 * objc-lang.c (objc_language_data): Likewise.
56 * opencl-lang.c (opencl_language_data): Likewise.
57 * p-lang.c (pascal_language_data): Likewise.
58 * rust-lang.c (rust_language_data): Likewise.
60 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
62 * ada-lang.c (ada_extensions): Delete, moved into
63 ada_language::filename_extensions.
64 (ada_language_data): Remove la_filename_extensions initializer.
65 (ada_language::filename_extensions): New member function.
66 * c-lang.c (c_extensions): Delete, moved into
67 c_language::filename_extensions.
68 (c_language_data): Remove la_filename_extensions initializer.
69 (c_language::filename_extensions): New member function.
70 (cplus_extensions): Delete, moved into
71 cplus_language::filename_extensions.
72 (cplus_language_data): Remove la_filename_extensions initializer.
73 (cplus_language::filename_extensions): New member function.
74 (asm_extensions): Delete, moved into
75 asm_language::filename_extensions.
76 (asm_language_data): Remove la_filename_extensions initializer.
77 (asm_language::filename_extensions): New member function.
78 (minimal_language_data): Remove la_filename_extensions
80 * d-lang.c (d_extensions): Delete, moved into
81 d_language::filename_extensions.
82 (d_language_data): Remove la_filename_extensions initializer.
83 (d_language::filename_extensions): New member function.
84 * f-lang.c (f_extensions): Delete, moved into
85 f_language::filename_extensions.
86 (f_language_data): Remove la_filename_extensions initializer.
87 (f_language::filename_extensions): New member function.
88 * go-lang.c (go_language_data): Remove la_filename_extensions
90 * language.c (add_set_language_command): Update now that
91 filename_extensions returns a vector.
92 (unknown_language_data): Remove la_filename_extensions
94 (auto_language_data): Likewise.
95 * language.h (language_data): Remove la_filename_extensions field.
96 (language_defn::filename_extensions): New member function.
97 * m2-lang.c (m2_language_data): Remove la_filename_extensions
99 * objc-lang.c (objc_extensions): Delete, moved into
100 objc_language::filename_extensions.
101 (objc_language_data): Remove la_filename_extensions initializer.
102 (objc_language::filename_extensions): New member function.
103 * opencl-lang.c (opencl_language_data): Remove
104 la_filename_extensions initializer.
105 * p-lang.c (pascal_extensions): Delete, moved into
106 pascal_language::filename_extensions.
107 (pascal_language_data): Remove la_filename_extensions initializer.
108 (pascal_language::filename_extensions): New member function.
109 * rust-lang.c (rust_extensions): Delete, moved into
110 rust_language::filename_extensions.
111 (rust_language_data): Remove la_filename_extensions initializer.
112 (rust_language::filename_extensions): New member function.
113 * symfile.c (add_filename_language): Add new assert.
115 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
117 * ada-lang.c (ada_language_data): Remove la_name and
118 la_natural_name initializers.
119 (ada_language::name): New member function.
120 (ada_language::natural_name): New member function.
121 * c-lang.c (c_language_data): Remove la_name and
122 la_natural_name initializers.
123 (c_language::name): New member function.
124 (c_language::natural_name): New member function.
125 (cplus_language_data): Remove la_name and
126 la_natural_name initializers.
127 (cplus_language::name): New member function.
128 (cplus_language::natural_name): New member function.
129 (asm_language_data): Remove la_name and
130 la_natural_name initializers.
131 (asm_language::name): New member function.
132 (asm_language::natural_name): New member function.
133 (minimal_language_data): Remove la_name and
134 la_natural_name initializers.
135 (minimal_language::name): New member function.
136 (minimal_language::natural_name): New member function.
137 * compile/compile.c (compile_to_object): Update call to
139 * d-lang.c (d_language_data): Remove la_name and
140 la_natural_name initializers.
141 (d_language::name): New member function.
142 (d_language::natural_name): New member function.
143 * expprint.c (print_subexp_standard): Update call to
145 (dump_raw_expression): Likewise
146 (dump_prefix_expression): Likewise.
147 * f-lang.c (f_language_data): Remove la_name and
148 la_natural_name initializers.
149 (f_language::name): New member function.
150 (f_language::natural_name): New member function.
151 * go-lang.c (go_language_data): Remove la_name and
152 la_natural_name initializers.
153 (go_language::name): New member function.
154 (go_language::natural_name): New member function.
155 * language.c (show_language_command): Update call to
157 (set_language_command): Likewise.
158 (language_enum): Likewise.
159 (language_str): Likewise.
160 (add_set_language_command): Likewise, use
161 language_defn::natural_name in the doc string.
162 (unknown_language_data): Remove la_name and
163 la_natural_name initializers.
164 (unknown_language::name): New member function.
165 (unknown_language::natural_name): New member function.
166 (auto_language_data): Remove la_name and
167 la_natural_name initializers.
168 (auto_language::name): New member function.
169 (auto_language::natural_name): New member function.
170 (language_lookup_primitive_type_as_symbol): Update call to
172 * language.h (language_data): Remove la_name and la_natural_name
174 (language_defn::name): New member function.
175 (language_defn::natural_name): New member function.
176 * m2-lang.c (m2_language_data): Remove la_name and
177 la_natural_name initializers.
178 (m2_language::name): New member function.
179 (m2_language::natural_name): New member function.
180 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
181 language_defn::natural_name.
182 * objc-lang.c (objc_language_data): Remove la_name and
183 la_natural_name initializers.
184 (objc_language::name): New member function.
185 (objc_language::natural_name): New member function.
186 * opencl-lang.c (opencl_language_data): Remove la_name and
187 la_natural_name initializers.
188 (opencl_language::name): New member function.
189 (opencl_language::natural_name): New member function.
190 * p-lang.c (pascal_language_data): Remove la_name and
191 la_natural_name initializers.
192 (pascal_language::name): New member function.
193 (pascal_language::natural_name): New member function.
194 * rust-lang.c (rust_language_data): Remove la_name and
195 la_natural_name initializers.
196 (rust_language::name): New member function.
197 (rust_language::natural_name): New member function.
198 * symtab.c (lookup_language_this): Update call to
201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
203 * ada-lang.c (ada_language_data): Remove la_name_of_this
205 * ax-gdb.c (gen_expr): Update call to name_of_this.
206 * c-exp.y (classify_name): Likewise.
207 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
208 (cplus_language_data): Likewise.
209 (cplus_language::name_of_this): New member function.
210 (asm_language_data): Remove la_name_of_this initializer.
211 (minimal_language_data): Likewise.
212 * d-lang.c (d_language_data): Likewise.
213 (d_language::name_of_this): New member function.
214 * expprint.c (print_subexp_standard): Update call to name_of_this.
215 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
216 * go-lang.c (go_language_data): Likewise.
217 * language.c (unknown_language_data): Likewise.
218 (unknown_language::name_of_this): New member function.
219 (auto_language_data): Remove la_name_of_this initializer.
220 (auto_language::name_of_this): New member function.
221 * language.h (language_data): Delete la_name_of_this member
223 (language_defn::name_of_this): New member function.
224 * m2-lang.c (m2_language_data): Remove la_name_of_this
226 * objc-lang.c (objc_language_data): Likewise.
227 (objc_language::name_of_this): New member function.
228 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
230 * p-lang.c (pascal_language_data): Likewise.
231 (pascal_language::name_of_this): New member function.
232 * rust-lang.c (rust_language_data): Remove la_name_of_this
234 * symtab.c (lookup_language_this): Update call to name_of_this.
235 (lookup_symbol_aux): Likewise.
236 * valops.c (value_of_this): Likewise.
238 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
240 * ada-lang.c (ada_language_data): Remove
241 la_struct_too_deep_ellipsis initializer.
242 (ada_language::struct_too_deep_ellipsis): New member function.
243 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
245 (cplus_language_data): Likewise.
246 (asm_language_data): Likewise.
247 (minimal_language_data): Likewise.
248 * cp-valprint.c (cp_print_value): Update call to
249 struct_too_deep_ellipsis.
250 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
252 * f-lang.c (f_language_data): Likewise.
253 (f_language::struct_too_deep_ellipsis): New member function.
254 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
256 * language.c (unknown_language_data): Likewise.
257 (auto_language_data): Likewise.
258 * language.h (language_data): Delete la_struct_too_deep_ellipsis
260 (language_defn::struct_too_deep_ellipsis): New member function.
261 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
263 * objc-lang.c (objc_language_data): Likewise.
264 * opencl-lang.c (opencl_language_data): Likewise.
265 * p-lang.c (pascal_language_data): Likewise.
266 * rust-lang.c (rust_language_data): Likewise.
267 * valprint.c (val_print_check_max_depth): Update call to
268 struct_too_deep_ellipsis.
270 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
272 * MAINTAINERS (Write After Approval): Add myself.
274 2020-09-15 Tom Tromey <tom@tromey.com>
276 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
279 2020-09-15 Tom Tromey <tom@tromey.com>
281 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
282 and TYPE_CODE_METHODPTR cases.
283 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
284 (c_value_print_inner): Update.
285 * valprint.c (generic_value_print_memberptr): New function, from
286 c_value_print_memberptr.
287 (generic_value_print): Use it. Call cplus_print_method_ptr.
289 2020-09-15 Tom Tromey <tromey@adacore.com>
291 * python/python-internal.h (PyInt_FromLong): Remove define.
292 * python/py-value.c (convert_value_from_python): Use
293 gdb_py_object_from_longest.
294 * python/py-type.c (typy_get_code): Use
295 gdb_py_object_from_longest.
296 * python/py-symtab.c (salpy_get_line): Use
297 gdb_py_object_from_longest.
298 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
299 gdb_py_object_from_longest.
300 * python/py-record.c (recpy_gap_reason_code): Use
301 gdb_py_object_from_longest.
302 * python/py-record-btrace.c (recpy_bt_insn_size)
303 (recpy_bt_func_level, btpy_list_count): Use
304 gdb_py_object_from_longest.
305 * python/py-infthread.c (gdbpy_create_ptid_object): Use
306 gdb_py_object_from_longest. Fix error handling.
307 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
308 gdb_py_object_from_longest.
309 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
310 gdb_py_object_from_longest.
311 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
312 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
313 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
315 2020-09-15 Tom Tromey <tromey@adacore.com>
317 * python/python.c (gdbpy_parameter_value): Use
318 gdb_py_object_from_ulongest.
320 2020-09-15 Tom Tromey <tromey@adacore.com>
322 * python/py-infevents.c (create_register_changed_event_object):
323 Use gdb_py_object_from_longest.
324 * python/py-exitedevent.c (create_exited_event_object): Use
325 gdb_py_object_from_longest.
327 2020-09-15 Tom Tromey <tromey@adacore.com>
329 * python/python.c (gdbpy_parameter_value): Use
330 gdb_py_object_from_longest.
331 * python/py-type.c (convert_field, typy_range): Use
332 gdb_py_object_from_longest.
333 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
334 gdb_py_object_from_longest.
335 * python/py-lazy-string.c (stpy_get_length): Use
336 gdb_py_object_from_longest.
337 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
338 gdb_py_object_from_longest.
339 * python/py-infevents.c (create_memory_changed_event_object): Use
340 gdb_py_object_from_longest.
341 * python/py-inferior.c (infpy_get_num): Use
342 gdb_py_object_from_longest.
343 (infpy_get_pid): Likewise.
345 2020-09-15 Tom Tromey <tromey@adacore.com>
347 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
349 * python/py-value.c (valpy_long): Use
350 gdb_py_object_from_ulongest.
351 * python/py-symtab.c (salpy_get_pc): Use
352 gdb_py_object_from_ulongest.
353 (salpy_get_last): Likewise.
354 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
355 gdb_py_object_from_ulongest.
356 * python/py-lazy-string.c (stpy_get_address): Use
357 gdb_py_object_from_ulongest.
358 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
359 * python/py-arch.c (archpy_disassemble): Use
360 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
363 2020-09-15 Tom Tromey <tromey@adacore.com>
365 * python/python-internal.h (gdb_py_long_from_longest): Remove
367 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
368 * python/py-type.c (convert_field, typy_get_sizeof): Use
369 gdb_py_object_from_longest.
370 * python/py-record-btrace.c (btpy_list_index): Use
371 gdb_py_object_from_longest.
373 2020-09-15 Tom Tromey <tromey@adacore.com>
375 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
376 * python/py-record.c (recpy_element_number): Use
377 gdb_py_object_from_longest.
378 (recpy_gap_number): Likewise.
380 2020-09-15 Tom Tromey <tromey@adacore.com>
382 * top.c (ui::ui): Update.
383 (highest_ui_num): Remove.
384 * top.h (struct ui) <num>: Remove.
386 2020-09-15 Tom Tromey <tromey@adacore.com>
388 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
389 * ui-style.c (ansi_regex_text): Now array.
390 * rust-exp.y (number_regex_text): Now array.
391 * linespec.c (linespec_quote_characters): Now array.
392 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
395 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
397 * debuginfod-support.c (debuginfod_client_deleter): New.
398 (debuginfod_client_up): New.
399 (debuginfod_init): Return debuginfod_client_up.
400 (debuginfod_source_query): Adjust.
401 (debuginfod_debuginfo_query): Adjust.
403 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
405 * debuginfod-support.c (debuginfod_source_query): Use
408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
410 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
411 with `type::instance_flags`.
413 2020-09-14 Michael Mullin <masmullin@gmail.com>
415 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
416 Remove baton parameter.
418 2020-09-14 Pedro Alves <pedro@palves.net>
420 * Makefile.in (SELFTESTS_SRCS): Add
421 unittests/enum-flags-selftests.c.
422 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
423 btrace_function_flags instead of enum btrace_function_flag.
424 * compile/compile-c-types.c (convert_qualified): Use
426 * compile/compile-cplus-symbols.c (convert_one_symbol)
427 (convert_symbol_bmsym):
428 * compile/compile-cplus-types.c (compile_cplus_convert_method)
429 (compile_cplus_convert_struct_or_union_methods)
430 (compile_cplus_instance::convert_qualified_base):
431 * go-exp.y (parse_string_or_char): Add cast to int.
432 * unittests/enum-flags-selftests.c: New file.
433 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
434 type to btrace_thread_flags from btrace_thread_flag.
435 (record_btrace_cancel_resume, record_btrace_step_thread): Change
436 local's type to btrace_thread_flags from btrace_thread_flag. Add
439 2020-09-14 Pedro Alves <pedro@palves.net>
441 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
442 * gdbtypes.c (address_space_name_to_int): Rename to ...
443 (address_space_name_to_type_instance_flags): ... this.
444 (address_space_int_to_name): Rename to ...
445 (address_space_type_instance_flags_to_name): ... this.
446 * gdbtypes.h (address_space_name_to_int): Rename to ...
447 (address_space_name_to_type_instance_flags): ... this.
448 (address_space_int_to_name): Rename to ...
449 (address_space_type_instance_flags_to_name): ... this.
450 * type-stack.c (type_stack::insert): Adjust to rename.
451 * type-stack.h (type_stack::insert): Likewise.
453 2020-09-14 Pedro Alves <pedro@palves.net>
454 Andrew Burgess <andrew.burgess@embecosm.com>
456 * avr-tdep.c (avr_address_class_type_flags): Return
458 (avr_address_class_type_flags_to_name): Take a
460 (avr_address_class_name_to_type_flags): Return bool and take a
462 * d-lang.c (build_d_types): Use type::set_instance_flags.
463 * ft32-tdep.c (ft32_address_class_type_flags): Return
465 (ft32_address_class_type_flags_to_name): Take a
467 (ft32_address_class_name_to_type_flags): Return bool and take a
469 (ft32_gdbarch_init): Use type::set_instance_flags.
470 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
471 * gdbarch.h, gdbarch.c: Regenerate.
472 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
473 (address_class_name_to_type_flags): Use type_instance_flags and
475 * gdbtypes.c (address_space_name_to_int)
476 (address_space_int_to_name, make_qualified_type): Use
478 (make_qualified_type): Use type_instance_flags and
479 type::set_instance_flags.
480 (make_type_with_address_space, make_cv_type, make_vector_type)
481 (check_typedef): Use type_instance_flags.
482 (recursive_dump_type): Cast type_instance_flags to unsigned for
484 (copy_type_recursive): Use type::set_instance_flags.
485 (gdbtypes_post_init): Use type::set_instance_flags.
486 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
487 <m_instance_flags>: ... this.
488 <instance_flags, set_instance_flags>: New methods.
489 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
490 (SET_TYPE_INSTANCE_FLAGS): New.
491 (address_space_name_to_int, address_space_int_to_name)
492 (make_type_with_address_space): Pass flags using
493 type_instance_flags instead of int.
494 * stabsread.c (cleanup_undefined_types_noname): Use
495 type::set_instance_flags.
496 * s390-tdep.c (s390_address_class_type_flags): Return
498 (s390_address_class_type_flags_to_name): Take a
500 (s390_address_class_name_to_type_flags): Return bool and take a
502 * type-stack.c (type_stack::follow_types): Use
504 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
506 2020-09-14 Tom Tromey <tromey@adacore.com>
508 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
509 * x86-tdep.c (x86_is_thunk_register_name)
510 (x86_in_indirect_branch_thunk): Update.
511 * sparc64-tdep.c (sparc64_fpu_register_names)
512 (sparc64_cp0_register_names, sparc64_register_names)
513 (sparc64_pseudo_register_names): Now const.
514 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
515 cp0_registers_num>: Now const.
516 * sparc-tdep.c (sparc_core_register_names)
517 (sparc32_fpu_register_names, sparc32_cp0_register_names)
518 (sparc32_pseudo_register_names): Now const.
519 (validate_tdesc_registers): Update.
520 * rust-lang.c (rust_extensions): Now const.
521 * p-lang.c (p_extensions): Now const.
522 * objc-lang.c (objc_extensions): Now const.
523 * nto-tdep.c (nto_thread_state_str): Now const.
524 * moxie-tdep.c (moxie_register_names): Now const.
525 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
527 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
528 (mips_linux_reg_names): Now const.
529 (mips_gdbarch_init): Update.
530 * microblaze-tdep.c (microblaze_register_names): Now const.
531 * m68k-tdep.c (m68k_register_names): Now const.
532 * m32r-tdep.c (m32r_register_names): Now const.
533 * ia64-tdep.c (ia64_register_names): Now const.
534 * i386-tdep.h (struct gdbarch_tdep) <register_names,
535 ymmh_register_names, ymm16h_regnum, mpx_register_names,
536 k_register_names, zmmh_register_names, xmm_avx512_register_names,
537 ymm_avx512_register_names, pkeys_register_names>: Now const.
538 * i386-tdep.c (i386_register_names, i386_zmm_names)
539 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
540 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
541 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
542 * f-lang.c (f_extensions): Now const.
543 * d-lang.c (d_extensions): Now const.
544 * csky-tdep.c (csky_register_names): Now const.
545 * charset.c (default_charset_names, charset_enum): Now const.
546 (_initialize_charset): Update.
547 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
549 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
550 (bsd_uthread_solib_loaded): Update.
551 (bsd_uthread_state): Now const.
552 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
553 (amd64_ymm_avx512_names, amd64_ymmh_names)
554 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
555 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
556 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
557 (amd64_dword_names): Now const.
558 * agent.c (can_use_agent_enum): Now const.
559 * ada-tasks.c (task_states, long_task_states): Now const.
560 * ada-lang.c (known_runtime_file_name_patterns)
561 (known_auxiliary_function_name_patterns, attribute_names)
562 (standard_exc, ada_extensions): Now const.
564 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
566 * bcache.h (struct bcache) <bcache>: Remove constructor.
567 <m_hash_function, m_compare_function>: Remove.
568 <~bcache>: Make virtual.
569 <compare>: Remove static method, introduce virtual method.
570 <default_hash>: Remove.
571 <hash>: New virtual method.
572 * bcache.c (bcache::expand_hash_table): Update.
573 (bcache::insert): Update.
575 (bcache::compare): Update comment and parameter names.
576 * gdbtypes.c (types_deeply_equal): Update.
577 * psymtab.h (struct psymbol_bcache): New struct.
578 (class psymtab_storage) <psymtab_storage>: Make default.
579 <psymbol_cache>: Change type to psymbol_bcache.
580 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
581 (psymbol_hash): Change to...
582 (psymbol_bcache::hash): ... this.
583 (psymbol_compare): Change to...
584 (psymbol_bcache::compare): ... this.
586 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
588 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
589 checking for initial lwp.
591 2020-09-14 Tom Tromey <tromey@adacore.com>
593 * m68k-tdep.c (m68k_extract_return_value): Use
594 pointer_result_regnum.
595 (m68k_store_return_value): Likewise.
596 (m68k_reg_struct_return_p): Handle vectors and arrays.
597 (m68k_return_value): Handle arrays.
598 (m68k_svr4_return_value): Fix single-element aggregate handling.
599 Handle long double. Adjust for embedded ABI.
600 (m68k_svr4_init_abi): Set pointer_result_regnum.
601 (m68k_embedded_init_abi): New function.
602 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
603 (m68k_osabi_sniffer): New function.
604 (_initialize_m68k_tdep): Register osabi sniffer.
605 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
608 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
610 * xml-support.c (xml_fetch_content_from_file): Replace xfree
611 with gdb::unique_xmalloc_ptr<char>.
613 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
615 * xml-support.h (xml_fetch_another): Change type to be a
617 (xml_process_xincludes): Remove baton parameter.
618 (xml_fetch_content_from_file): Change baton parameter to
620 * xml-support.c (struct xinclude_parsing_data)
621 <xinclude_parsing_data>: Remove baton parameter.
622 <fetcher_baton>: Remove.
623 (xinclude_start_include): Adjust.
624 (xml_process_xincludes): Adjust.
625 (xml_fetch_content_from_file): Replace baton parameter with
627 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
628 (xml_init_syscalls_info): Use a lambda.
629 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
630 (file_read_description_xml): Use a lambda.
631 (fetch_available_features_from_target): Change baton parameter
633 (target_read_description_xml): Use a lambda.
634 (target_fetch_description_xml): Use a lambda.
635 (string_read_description_xml): Update.
637 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
639 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
640 uses with type::endianity_is_not_default.
642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
644 * gdbtypes.h (struct type) <endianity_is_not_default,
645 set_endianity_is_not_default>: New methods.
646 (TYPE_ENDIANITY_NOT_DEFAULT): Use
647 type::endianity_is_not_default, change all write call sites to
648 use type::set_endianity_is_not_default.
650 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
652 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
653 uses with type::is_fixed_instance.
655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
657 * gdbtypes.h (struct type) <is_fixed_instance,
658 set_is_fixed_instance>: New methods.
659 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
660 write call sites to use type::set_is_fixed_instance.
662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
664 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
665 uses with type::is_gnu_ifunc.
667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
669 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
670 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
671 use type::set_is_gnu_ifunc.
673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
675 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
676 uses with type::stub_is_supported.
678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
680 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
681 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
682 use type::set_stub_is_supported.
684 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
686 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
687 uses with type::is_vector.
689 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
691 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
692 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
693 use type::set_is_vector.
695 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
697 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
698 uses with type::has_varargs.
700 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
702 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
703 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
704 use type::set_has_varargs.
706 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
708 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
709 uses with type::is_prototyped.
711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
713 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
715 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
716 call sites to use type::set_is_prototyped.
718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
720 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
721 uses with type::target_is_stub.
723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
725 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
727 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
728 sites to use type::set_target_is_stub.
730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
732 * gdbtypes.h (TYPE_STUB): Remove, replace all
733 uses with type::is_stub.
735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
737 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
738 (TYPE_STUB): Use type::is_stub, change all write call sites to
739 use type::set_is_stub.
741 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
743 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
744 type::has_no_signedness.
746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
748 * gdbtypes.h (struct type) <has_no_signedness,
749 set_has_no_signedness>: New methods.
750 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
751 call sites to use type::set_has_no_signedness.
753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
755 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
760 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
762 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
763 sites to use type::set_is_unsigned.
765 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
766 Adam Renquinha <arenquinha@cimeq.qc.ca>
768 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
769 pointer and stack frame offset when unwinding.
771 2020-09-13 Pedro Alves <pedro@palves.net>
773 * NEWS: Document "-break-insert --qualified".
774 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
776 2020-09-13 Pedro Alves <pedro@palves.net>
778 * linespec.c (classify_mtype, compare_msyms): Delete.
779 (search_minsyms_for_name): Remove classification logic. Instead
780 filter out trampoline symbols if we also found an external
781 function of the same name.
783 2020-09-13 Joel Brobecker <brobecker@adacore.com>
785 * NEWS: Create a new section for the next release branch.
786 Rename the section of the current branch, now that it has
789 2020-09-13 Joel Brobecker <brobecker@adacore.com>
791 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
792 * version.in: Bump version to 11.0.50.DATE-git.
794 2020-09-12 Joel Brobecker <brobecker@adacore.com>
796 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
798 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
799 Felix Willgerodt <Felix.Willgerodt@intel.com>
801 * gdbarch.sh: Added bfloat16 type.
802 * gdbarch.c: Regenerated.
803 * gdbarch.h: Regenerated.
804 * gdbtypes.c (floatformats_bfloat16): New struct.
805 (gdbtypes_post_init): Add builtin_bfloat16.
806 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
807 (floatformats_bfloat16): New struct.
808 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
809 (i386_ymm_type): Add field "v16_bfloat16"
810 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
811 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
812 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
813 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
814 * features/i386/64bit-avx512.xml: Add bfloat16 type.
815 * features/i386/64bit-avx512.c: Regenerated.
816 * features/i386/64bit-sse.xml: Add bfloat16 type.
817 * features/i386/64bit-sse.c: Regenerated.
819 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
821 * i386-tdep.c (i386_zmm_type): Fix field names.
822 (i386_ymm_type): Fix field names.
824 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
826 * breakpoint.c: Fix typo in the help message of the
827 "set breakpoint condition-evaluation" command.
829 2020-09-10 Kamil Rytarowski <n54@gmx.com>
831 * nbsd-nat.c: Include "nat/netbsd-nat.h".
832 * (nbsd_nat_target::pid_to_exec_file)
833 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
834 (nbsd_nat_target::post_startup_inferior)
835 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
836 (nbsd_add_threads): Switch local code to common gdb/nat functions.
837 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
838 * (nbsd_thread_lister): Remove.
840 2020-09-10 Kamil Rytarowski <n54@gmx.com>
842 * fork-inferior.c (startup_inferior): Avoid double free.
844 2020-09-10 Kamil Rytarowski <n54@gmx.com>
846 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
847 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
849 2020-09-10 Kamil Rytarowski <n54@gmx.com>
851 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
852 * netbsd-nat.c: Include <sys/ptrace.h>.
853 * (netbsd_nat::enable_proc_events): Add.
855 2020-09-10 Kamil Rytarowski <n54@gmx.com>
857 * netbsd-nat.h: Include "gdbsupport/function-view.h".
858 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
859 (netbsd_nat::for_each_thread): Add.
860 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
861 "gdbsupport/common-debug.h".
862 * (netbsd_nat::netbsd_thread_lister)
863 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
864 (netbsd_nat::for_each_thread): Add.
866 2020-09-10 Kamil Rytarowski <n54@gmx.com>
868 * netbsd-nat.h: Include <unistd.h>.
869 * (netbsd_nat::pid_to_exec_file): Add.
870 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
871 * (netbsd_nat::pid_to_exec_file) Add.
873 2020-09-10 Kamil Rytarowski <n54@gmx.com>
875 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
877 2020-09-10 Kamil Rytarowski <n54@gmx.com>
879 * netbsd-nat.h: New file.
880 * netbsd-nat.c: Likewise.
882 2020-09-09 Tom Tromey <tromey@adacore.com>
884 * ada-lang.c (remove_extra_symbols): Do not increment when
887 2020-09-08 Tom Tromey <tromey@adacore.com>
889 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
891 2020-09-08 Tom Tromey <tromey@adacore.com>
894 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
895 (gdb_bfd_init_data): New function.
896 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
898 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900 * infrun.c (fetch_inferior_event): Use
901 `switch_to_target_no_thread` to switch the target.
903 2020-09-06 Tom Tromey <tom@tromey.com>
905 * symfile.h (dwarf2_free_objfile): Don't declare.
907 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
909 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
910 to match 16 byte real/complex type generated by Flang compiler.
912 2020-09-03 Tom de Vries <tdevries@suse.de>
915 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
916 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
918 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
920 * maint.c (index_digits): New function.
921 (struct maint_print_section_data): Remove.
922 (print_bfd_section_info): Remove print_data parameter, add arg
924 (print_objfile_section_info): Likewise.
925 (print_bfd_section_info_maybe_relocated): Likewise (plus
927 (maintenance_info_sections): Adjust calls.
929 2020-09-02 Tom Tromey <tromey@adacore.com>
931 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
933 (ada_varobj_adjust_for_child_access): Special-case null pointers.
935 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
937 * bcache.h (struct bcache) <insert>: Change type of `added` to
939 * bcache.c (bcache::insert): Likewise.
940 * gdbtypes.c (check_types_worklist): Adjust.
941 * psymtab.c (add_psymbol_to_bcache): Adjust.
943 2020-08-31 Kevin Buettner <kevinb@redhat.com>
945 * corelow.c (unordered_set): Include.
946 (class core_target): Add field 'm_core_unavailable_mappings'.
947 (core_target::build_file_mappings): Print only one warning
948 per inaccessible file. Add unavailable/broken mappings
949 to m_core_unavailable_mappings.
950 (core_target::xfer_partial): Call...
951 (core_target::xfer_memory_via_mappings): New method.
953 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
955 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
958 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
960 * dwarf2/read.c (struct field_info): Fix indentation.
962 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
964 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
966 * frame.c (frame_id_eq): Fix indentation.
968 2020-08-31 Scott Linder <scott@scottlinder.com>
969 Simon Marchi <simon.marchi@efficios.com>
971 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
972 inline frame ids in outer frame.
974 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
976 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
977 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
978 (outer_frame_id): Use FID_STACK_OUTER instead of
980 (frame_id_p): Don't check for outer_frame_id.
982 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
984 * frame-unwind.c (frame_unwind_got_optimized): Don't set
985 regnum/frame in value. Call allocate_value_lazy.
986 * frame.c (frame_unwind_register_value): Use
989 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
991 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
993 2020-08-29 Pedro Alves <pedro@palves.net>
995 * progspace.c (print_program_space): Use all_inferiors. Switch to
996 the inferior before calling target_pid_to_str.
998 2020-08-28 Tom Tromey <tom@tromey.com>
1000 * xcoffread.c (xcoff_end_psymtab): Update comment.
1001 * dbxread.c (dbx_end_psymtab): Update comment.
1003 2020-08-28 Tom de Vries <tdevries@suse.de>
1006 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1008 (create_breakpoint): Same.
1009 (base_breakpoint_decode_location): Same.
1010 (bkpt_create_sals_from_location): Same.
1011 (bkpt_decode_location): Same.
1012 (bkpt_probe_create_sals_from_location): Same.
1013 (bkpt_probe_decode_location): Same.
1014 (tracepoint_create_sals_from_location): Same.
1015 (tracepoint_decode_location): Same.
1016 (tracepoint_probe_decode_location): Same.
1017 (strace_marker_create_sals_from_location): Same.
1018 (strace_marker_decode_location): Same.
1019 (create_sals_from_location_default): Same.
1020 (decode_location_default): Same.
1021 * breakpoint.h (struct breakpoint_ops): Same.
1022 (create_breakpoint): Same.
1023 * linespec.h (decode_line_full): Same.
1024 * linespec.c (decode_line_full): Same. Throw error if
1025 result.size () == 0.
1027 2020-08-27 Pedro Alves <pedro@palves.net>
1030 * breakpoint.c (until_break_fsm) <location_breakpoint,
1031 caller_breakpoint>: Delete fields.
1032 <breakpoints>: New field.
1033 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1034 two individual breakpoints.
1035 (until_break_fsm::should_stop): Loop over breakpoints in the
1037 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1039 (until_break_command): Handle location expanding into multiple
1042 2020-08-27 Pedro Alves <pedro@palves.net>
1045 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1046 bp_until breakpoints user-specified locations. Update intro
1049 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1051 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1052 gdb_bfd_sections): New.
1053 * maint.c (print_bfd_section_info): Change param type to
1054 maint_print_section_data.
1055 (print_objfile_section_info): Likewise.
1056 (print_bfd_section_info_maybe_relocated): Likewise.
1057 (maintenance_info_sections): Use gdb_bfd_sections.
1059 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1061 * MAINTAINERS: Add ARC target and maintainer.
1063 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1065 * configure.tgt: ARC support for GNU/Linux.
1066 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1067 * arc-linux-tdep.c: New file.
1068 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1069 * arc-tdep.c (arc_write_pc): Use it.
1071 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1073 * arc-tdep.c (arc_check_for_hardware_loop): New.
1074 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1076 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1078 * arc-tdep.h: Include "gdbarch.h".
1080 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1083 (arc_gdbarch_features): New class to stir the selection of target XML.
1084 (arc_create_target_description): Use FEATURES to choose XML target.
1085 (arc_lookup_target_description): Use arc_create_target_description
1086 to create _new_ target descriptions or return the already created
1087 ones if the FEATURES is the same.
1088 * arch/arc.c: Implementation of prototypes described above.
1089 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1090 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1091 * arc-tdep.c (*_feature_name): Make feature names consistent.
1092 (arc_register_feature): A new struct to hold information about
1093 registers of a particular target/feature.
1094 (arc_check_tdesc_feature): Check if XML provides registers in
1095 compliance with ARC_REGISTER_FEATURE structs.
1096 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1097 (determine_*_reg_feature_set): Which feature name to look for.
1098 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1099 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1100 to expected ISA enums to be used in arc_gdbarch_features structs.
1101 * features/Makefile (FEATURE_XMLFILES): Add new files.
1102 * gdb/features/arc/v1-aux.c: New file.
1103 * gdb/features/arc/v1-aux.xml: Likewise.
1104 * gdb/features/arc/v1-core.c: Likewise.
1105 * gdb/features/arc/v1-core.xml: Likewise.
1106 * gdb/features/arc/v2-aux.c: Likewise.
1107 * gdb/features/arc/v2-aux.xml: Likewise.
1108 * gdb/features/arc/v2-core.c: Likewise.
1109 * gdb/features/arc/v2-core.xml: Likewise.
1110 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1112 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1113 Andrew Burgess <andrew.burgess@embecosm.com>
1116 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1117 an assert. Remove single element array indexing pattern as the
1118 MULTI_SUBSCRIPT support will handle this case too.
1120 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1122 * value.h (valprint_check_validity): Move declaration from
1124 * valprint.h (valprint_check_validity): ... to here.
1126 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1128 * debug.h: New file.
1129 * debug.c (debug_prefixed_vprintf): New function.
1130 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1131 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1133 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1135 * infrun.h (infrun_debug_printf_1): New function declaration.
1136 (infrun_debug_printf): New macro.
1137 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1139 (infrun_debug_printf): New function.
1140 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1141 (handle_jit_event): Likewise.
1143 2020-08-21 Mark Wielaard <mark@klomp.org>
1145 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1147 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1149 * frame.c (enum class frame_id_status): New.
1150 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1151 (fprintf_frame): Update.
1152 (compute_frame_id): Set frame id status to "computing" on entry.
1153 Set it back to "not_computed" on failure and to "computed" on
1155 (get_frame_id): Assert the frame id is not being computed.
1156 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1157 (create_new_frame): Likewise.
1158 (frame_cleanup_after_sniffer): Update assert.
1160 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1162 * regcache.c (pid_ptid_regcache_map): New type.
1163 (target_ptid_regcache_map): Remove.
1164 (target_pid_ptid_regcache_map): New type.
1165 (regcaches): Change type to target_pid_ptid_regcache_map.
1166 (get_thread_arch_aspace_regcache): Update.
1167 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1169 (regcaches_size): Update.
1170 (regcache_count): Update.
1171 (registers_changed_ptid_target_pid_test): New.
1172 (_initialize_regcache): Register new test.
1174 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1176 * regcache.c (regcache_count): New.
1177 (struct regcache_test_data): New.
1178 (regcache_test_data_up): New.
1179 (populate_regcaches_for_test): New.
1180 (regcaches_test): Remove.
1181 (get_thread_arch_aspace_regcache_test): New.
1182 (registers_changed_ptid_all_test): New.
1183 (registers_changed_ptid_target_test): New.
1184 (registers_changed_ptid_target_ptid_test): New.
1185 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1186 (_initialize_regcache): Register new tests.
1188 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1190 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1191 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1192 gdbarch and aspace parameter. Use current inferior's aspace.
1193 Validate regcache's arch value.
1194 (regcaches_test): Update.
1196 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1198 * regcache.c (regcaches_test): Call registers_changed.
1200 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1202 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1204 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1206 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1207 to find the end of prologue for flang compiled binaries.
1208 * arm-tdep.c (arm_skip_prologue): Likewise.
1209 * i386-tdep.c (i386_skip_prologue): Likewise.
1210 * producer.c (producer_is_llvm): New function.
1211 (producer_parsing_tests): Added new tests for clang/flang.
1212 * producer.h (producer_is_llvm): New declaration.
1214 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1216 * linux-nat.c (linux_nat_debug_printf): New function.
1217 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1219 2020-08-18 Aaron Merey <amerey@redhat.com>
1221 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1222 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1223 (CLIBS): Add DEBUGINFOD_LIBS.
1225 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1227 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1230 2020-08-17 Tom Tromey <tromey@adacore.com>
1232 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1233 ada_get_decoded_value returns NULL.
1235 2020-08-17 Tom Tromey <tromey@adacore.com>
1237 * python/py-inferior.c (infpy_search_memory): Use
1238 gdb_py_object_from_ulongest.
1239 * python/py-infevents.c (create_inferior_call_event_object)
1240 (create_memory_changed_event_object): Use
1241 gdb_py_object_from_ulongest.
1242 * python/py-linetable.c (ltpy_entry_get_pc): Use
1243 gdb_py_object_from_ulongest.
1245 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1247 * loc.c (class symbol_needs_eval_context): Fix indentation.
1249 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1251 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1254 2020-08-17 Tom de Vries <tdevries@suse.de>
1257 * gdbtypes.c (dump_dynamic_prop): New function.
1258 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1260 2020-08-15 Tom de Vries <tdevries@suse.de>
1263 * stack.c (print_frame_args): Temporarily set the selected
1264 frame to FRAME while printing the frame's arguments.
1266 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1268 PR breakpoints/26385
1269 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1270 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1272 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1274 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1275 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1276 and >= to check return value instead of == -1 and != -1.
1278 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1280 * utils.h (class gdb_argv) <as_array_view>: New method.
1281 * utils.c (gdb_argv_as_array_view_test): New.
1282 (_initialize_utils): Register selftest.
1283 * maint.c (maintenance_selftest): Use the new method.
1285 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1287 * target.h (supports_dumpcore, dumpcore): New
1288 function declarations.
1289 * target.c (supports_dumpcore, dumpcore): New
1291 * target-delegates.c: Rebuild.
1292 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1293 and target_dumpcore ().
1295 2020-08-13 Aaron Merey <amerey@redhat.com>
1297 * debuginfod-support.c: Replace global variables with user_data.
1299 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1301 * maint.c (maintenance_selftest): Split args and pass array_view
1304 2020-08-12 Luis Machado <luis.machado@linaro.org>
1306 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1308 Use %s and pulongest to print the length.
1310 2020-08-12 Pedro Alves <palves@redhat.com>
1312 * NEWS: Move "Multi-target debugging support" item to the
1313 "Changes since GDB 9" section.
1315 2020-08-12 Pedro Alves <palves@redhat.com>
1318 * progspace.c (program_space::remove_objfile): Invalidate the
1321 2020-08-11 Tom de Vries <tdevries@suse.de>
1323 * MAINTAINERS: Mark ms1 as deleted.
1325 2020-08-10 Luis Machado <luis.machado@linaro.org>
1329 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1331 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1332 movz/str/stur/stp skipping behavior.
1334 2020-08-10 Luis Machado <luis.machado@linaro.org>
1336 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1337 struct user_sve_header instead of struct sve_context.
1339 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1341 * read.h (dwarf2_fetch_die_loc_sect_off,
1342 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1343 `void *` parameter with function_view.
1344 * read.c (dwarf2_fetch_die_loc_sect_off,
1345 dwarf2_fetch_die_loc_cu_off): Likewise.
1346 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1347 (per_cu_dwarf_call): Adjust.
1348 (get_frame_address_in_block_wrapper): Remove.
1349 (indirect_synthetic_pointer): Adjust.
1350 (get_ax_pc): Remove.
1351 (dwarf2_compile_expr_to_ax): Adjust.
1353 2020-08-08 Tom de Vries <tdevries@suse.de>
1356 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1358 * regcache.c (get_thread_arch_aspace_regcache): Same.
1360 2020-08-07 Tom Tromey <tromey@adacore.com>
1362 * ravenscar-thread.c
1363 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1365 (ravenscar_thread_target::wait): Check
1366 runtime_initialized.
1367 (ravenscar_thread_target::prepare_to_store)
1368 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1369 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1370 (ravenscar_thread_target::stopped_by_watchpoint)
1371 (ravenscar_thread_target::stopped_data_address)
1372 (ravenscar_thread_target::core_of_thread): Use
1373 scoped_restore_current_thread and
1374 set_base_thread_from_ravenscar_task.
1376 2020-08-07 Tom Tromey <tromey@adacore.com>
1378 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1380 2020-08-07 Tom Tromey <tromey@adacore.com>
1382 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1383 update_inferior_ptid before update_thread_list.
1384 (temporarily_change_regcache_ptid): New class.
1385 (ravenscar_thread_target::fetch_registers)
1386 (ravenscar_thread_target::store_registers)
1387 (ravenscar_thread_target::prepare_to_store): Use base thread when
1388 forwarding operation.
1390 2020-08-07 Tom Tromey <tromey@adacore.com>
1392 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1395 2020-08-07 Tom Tromey <tromey@adacore.com>
1397 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1399 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1401 (ravenscar_thread_target::add_thread): Rename from
1402 ravenscar_add_thread.
1403 (ravenscar_thread_target::update_thread_list): Use a lambda.
1404 (ravenscar_thread_target::xfer_partial): New method.
1406 2020-08-07 Tom Tromey <tromey@adacore.com>
1408 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1410 (iterate_over_live_ada_tasks): Change type of argument.
1411 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1414 2020-08-07 Tom Tromey <tromey@adacore.com>
1416 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1418 (ravenscar_thread_target::extra_thread_info): Remove.
1419 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1420 defer to target beneath for non-Ravenscar threads.
1422 2020-08-07 Tom Tromey <tromey@adacore.com>
1424 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1425 get_base_thread_from_ravenscar_task>: Now methods.
1426 <m_cpu_map>: New member.
1427 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1428 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1429 (ravenscar_thread_target::task_is_currently_active): Update.
1430 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1432 (ravenscar_thread_target::add_active_thread): Put initial thread
1435 2020-08-07 Tom Tromey <tromey@adacore.com>
1437 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1440 2020-08-07 Tom Tromey <tromey@adacore.com>
1442 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1443 runtime_initialized.
1445 2020-08-07 Tom Tromey <tromey@adacore.com>
1447 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1449 (ravenscar_thread_target::add_active_thread): Now public.
1450 (ravenscar_inferior_created): Call add_active_thread after pushing
1453 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1455 * regcache.c (ptid_regcache_map): New type.
1456 (target_ptid_regcache_map): New type.
1457 (regcaches): Change type to target_ptid_regcache_map.
1458 (get_thread_arch_aspace_regcache): Update to regcaches' new
1460 (regcache_thread_ptid_changed): Likewise.
1461 (registers_changed_ptid): Likewise.
1462 (regcaches_size): Likewise.
1463 (regcaches_test): Update.
1464 (regcache_thread_ptid_changed): Update.
1465 * regcache.h (regcache_up): New type.
1466 * gdbsupport/ptid.h (hash_ptid): New struct.
1468 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1470 * observable.h (thread_ptid_changed): Add parameter
1471 `process_stratum_target *`.
1472 * infrun.c (infrun_thread_ptid_changed): Add parameter
1473 `process_stratum_target *` and use it.
1474 (selftests): New namespace.
1475 (infrun_thread_ptid_changed): New function.
1476 (_initialize_infrun): Register selftest.
1477 * regcache.c (regcache_thread_ptid_changed): Add parameter
1478 `process_stratum_target *` and use it.
1479 (regcache_thread_ptid_changed): New function.
1480 (_initialize_regcache): Register selftest.
1481 * thread.c (thread_change_ptid): Pass target to
1482 thread_ptid_changed observable.
1484 2020-08-06 Caroline Tice <cmtice@google.com>
1486 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1487 (struct dwp_sections): Update field comments. Add loclists and
1489 (struct virtual_v2_dwo_sections): Rename struct to
1490 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1491 size & offset fields for loclists and rnglists.
1492 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1493 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1494 skipping dummy type units.
1495 (create_dwp_hash_table): Update the large comment above the function to
1496 discuss Version 5 DWP files as well, with references. Update all the
1497 version checks in the function to check for version 5 as well. Add new
1498 section at the end to create dwp hash table for version 5.
1499 (create_dwp_v2_section): Rename function to
1500 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1501 Add V5 to error message text.
1502 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1503 into calls to create_dwp_v2_or_v5_section.
1504 (create_dwo_unit_in_dwp_v5): New function.
1505 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1506 check for version2; add else clause to handle version 5.
1507 (open_and_init_dwo_file): Add code to check dwarf version & only call
1508 create_debug_types_hash_table (with sections.types) if version is not 5;
1509 else call create_debug_type_hash_table, with sections.info.
1510 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1512 (dwarf2_locate_v5_dwp_sections): New function.
1513 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1514 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1516 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1518 * regcache.h (class regcache): Remove friend
1519 registers_changed_ptid.
1520 <regcache_thread_ptid_changed>: Remove.
1521 <regcaches>: Remove.
1522 * regcache.c (regcache::regcaches): Rename to...
1523 (regcaches): ... this. Make static.
1524 (get_thread_arch_aspace_regcache): Update.
1525 (regcache::regcache_thread_ptid_changed): Rename to...
1526 (regcache_thread_ptid_changed): ... this. Update.
1527 (class regcache_access): Remove.
1528 (regcaches_test): Update.
1529 (_initialize_regcache): Update.
1530 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1533 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1535 * regcache.h (class regcache) <current_regcache>: Rename to...
1536 <regcaches>: ... this. Move doc here.
1537 * regcache.c (regcache::current_regcache) Rename to...
1538 (regcache::regcaches): ... this. Move doc to header.
1539 (get_thread_arch_aspace_regcache): Update.
1540 (regcache::regcache_thread_ptid_changed): Update.
1541 (registers_changed_ptid): Update.
1542 (class regcache_access) <current_regcache_size>: Rename to...
1543 <regcaches_size>: ... this.
1544 (current_regcache_test): Rename to...
1545 (regcaches_test): ... this.
1546 (_initialize_regcache): Update.
1548 2020-08-06 Victor Collod <vcollod@nvidia.com>
1550 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1552 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1554 * corelow.c (core_target::build_file_mappings): Don't output
1555 null pathname in warning.
1557 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1559 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1560 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1561 gdb.dwarf2/dw2-single-line-discriminators.exp,
1562 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1564 2020-08-05 Tom Tromey <tromey@adacore.com>
1567 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1568 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1569 Fix off-by-one and type size errors in ordinary case.
1571 2020-08-05 Tom de Vries <tdevries@suse.de>
1573 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1574 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1576 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1578 * frame.h (frame_id_p): Return bool.
1579 (frame_id_artificial_p): Return bool.
1580 (frame_id_eq): Return bool.
1581 (has_stack_frames): Return bool.
1582 (get_selected_frame): Fix typo in comment.
1583 (get_frame_pc_if_available): Return bool.
1584 (get_frame_address_in_block_if_available): Return bool.
1585 (get_frame_func_if_available): Return bool.
1586 (read_frame_register_unsigned): Return bool.
1587 (get_frame_register_bytes): Return bool.
1588 (safe_frame_unwind_memory): Return bool.
1589 (deprecated_frame_register_read): Return bool.
1590 (frame_unwinder_is): Return bool.
1591 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1593 <this_id::p>: Likewise.
1595 (frame_stash_add): Return bool.
1596 (get_frame_id): Use bool.
1597 (frame_id_build_special) Use bool.
1598 (frame_id_build_unavailable_stack): Use bool.
1599 (frame_id_build): Use bool.
1600 (frame_id_p): Return bool, use true/false instead of 1/0.
1601 (frame_id_artificial_p): Likewise.
1602 (frame_id_eq): Likewise.
1603 (frame_id_inner): Likewise.
1604 (get_frame_func_if_available): Likewise.
1605 (read_frame_register_unsigned): Likewise.
1606 (deprecated_frame_register_read): Likewise.
1607 (get_frame_register_bytes): Likewise.
1608 (has_stack_frames): Likewise.
1609 (inside_main_func): Likewise.
1610 (inside_entry_func): Likewise.
1611 (get_frame_pc_if_available): Likewise.
1612 (get_frame_address_in_block_if_available): Likewise.
1613 (frame_unwinder_is): Likewise.
1614 (safe_frame_unwind_memory): Likewise.
1615 (frame_unwind_arch): Likewise.
1617 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1619 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1620 type to cached_copy_status.
1621 (fprintf_frame): Adjust.
1622 (get_frame_func_if_available): Adjust.
1623 (frame_cleanup_after_sniffer): Adjust.
1625 2020-08-04 Mark Wielaard <mark@klomp.org>
1627 * MAINTAINERS (Write After Approval): Update email address.
1629 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1631 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1632 dynamic_prop::const_val.
1634 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1636 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1639 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1641 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1643 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1645 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1647 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1648 Jose E. Marchesi <jose.marchesi@oracle.com>
1650 * configure.tgt: Add entry for bpf-*-*.
1651 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1652 (ALLDEPFILES): Add bpf-tdep.c.
1653 * bpf-tdep.c: New file.
1654 * MAINTAINERS: Add bpf target and maintainer.
1655 * NEWS: Mention the support for the new target.
1657 2020-08-04 Tom de Vries <tdevries@suse.de>
1660 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1663 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1665 * syscalls/freebsd.xml: Regenerate.
1667 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1669 * syscalls/update-freebsd.sh: Fix usage and year range.
1671 2020-08-03 Tom de Vries <tdevries@suse.de>
1674 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1675 DW_LNE_lo_user/DW_LNE_hi_user range.
1677 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1680 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1683 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1685 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1687 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1689 * breakpoint.c (set_breakpoint_condition): Update the condition
1690 expressions after checking that the input condition string parses
1691 successfully and does not contain junk at the end.
1693 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1695 * breakpoint.c (set_breakpoint_condition): Update the
1696 condition string after parsing the new condition successfully.
1698 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1700 * proc-api.c (_STRUCTURED_PROC): Don't define.
1701 * proc-events.c: Likewise.
1702 * proc-flags.c: Likewise.
1703 * proc-why.c: Likewise.
1704 * procfs.c: Likewise.
1706 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1707 * configure, config.in: Regenerate.
1709 2020-07-30 Tom de Vries <tdevries@suse.de>
1712 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1713 m_red/m_green/m_blue in a union.
1715 2020-07-29 Tom de Vries <tdevries@suse.de>
1718 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1720 2020-07-28 Tom Tromey <tromey@adacore.com>
1723 * symtab.h (find_pc_partial_function_sym): Declare.
1724 * cli/cli-cmds.c (disassemble_command): Use
1725 find_pc_partial_function_sym. Check asm_demangle.
1726 * blockframe.c (cache_pc_function_sym): New global.
1727 (cache_pc_function_name): Remove.
1728 (clear_pc_function_cache): Update.
1729 (find_pc_partial_function_sym): New function, from
1730 find_pc_partial_function.
1731 (find_pc_partial_function): Rewrite using
1732 find_pc_partial_function_sym.
1734 2020-07-28 Tom Tromey <tromey@adacore.com>
1736 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1739 2020-07-28 Tom Tromey <tromey@adacore.com>
1741 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1742 <DW_OP_GNU_variable_value>: Cast to address type.
1744 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1746 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1747 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1748 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1749 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1750 (nbsd_get_siginfo_type): New.
1751 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1752 (_initialize_nbsd_tdep): New.
1754 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1757 * configure: Regenerated.
1759 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1762 * configure: Regenerated.
1764 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1766 * python/py-frame.c: Remove 'user-regs.h' include.
1767 (frapy_read_register): Rewrite to make use of
1768 gdbpy_parse_register_id.
1769 * python/py-registers.c (gdbpy_parse_register_id): New function,
1770 moved here from python/py-unwind.c. Updated the return type, and
1771 also accepts register descriptor objects.
1772 * python/py-unwind.c: Remove 'user-regs.h' include.
1773 (pyuw_parse_register_id): Moved to python/py-registers.c.
1774 (unwind_infopy_add_saved_register): Update to use
1775 gdbpy_parse_register_id.
1776 (pending_framepy_read_register): Likewise.
1777 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1779 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1781 * python/py-registers.c: Add 'user-regs.h' include.
1782 (register_descriptor_iter_find): New function.
1783 (register_descriptor_iterator_object_methods): New static global
1785 (register_descriptor_iterator_object_type): Add pointer to methods
1788 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1790 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1791 for all architectures on FreeBSD 11.3 and later.
1793 2020-07-27 Tom Tromey <tromey@adacore.com>
1795 * gcore.h (load_corefile): Don't declare.
1797 2020-07-27 Tom de Vries <tdevries@suse.de>
1799 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1800 * config.in: Regenerate.
1801 * configure: Regenerate.
1803 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1805 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1806 ws2tcpip.h. When checking whether socklen_t type is defined, use
1807 ws2tcpip.h if it is available and sys/socket.h isn't.
1808 * configure: Regenerate.
1809 * config.in: Regenerate.
1811 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1815 * valops.c (value_ind): Pass address to
1816 readjust_indirect_value_type.
1817 * value.c (readjust_indirect_value_type): Make parameter
1818 non-const, and add extra address parameter. Resolve original type
1820 * value.h (readjust_indirect_value_type): Update function
1821 signature and comment.
1823 2020-07-25 Tom de Vries <tdevries@suse.de>
1826 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1829 2020-07-24 Aaron Merey <amerey@redhat.com>
1831 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1832 * configure: Rebuild.
1834 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1837 * corelow.c (_initialize_corelow): Add period to help text
1838 for "maintenance print core-file-backed-mappings".
1840 2020-07-23 Pedro Alves <pedro@palves.net>
1842 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1843 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1845 * frame.c (frame_cache_generation, get_frame_cache_generation):
1847 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1848 (get_prev_frame_if_no_cycle): On exception, don't touch
1849 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1850 * frame.h (get_frame_cache_generation): Declare.
1852 2020-07-23 Tom de Vries <tdevries@suse.de>
1855 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1856 New default constructor.
1858 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1860 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1861 exclude non-statement entries.
1863 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1865 * NEWS (New commands): Mention new command
1866 "maintenance print core-file-backed-mappings".
1868 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1870 * corelow.c (gdbcmd.h): Include.
1871 (core_target::info_proc_mappings): New method.
1872 (get_current_core_target): New function.
1873 (maintenance_print_core_file_backed_mappings): New function.
1874 (_initialize_corelow): Add core-file-backed-mappings to
1875 "maint print" commands.
1877 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1879 * linux-tdep.c (dump_note_entry_p): New function.
1880 (linux_dump_mapping_p_ftype): New typedef.
1881 (linux_find_memory_regions_full): Add new parameter,
1882 should_dump_mapping_p.
1883 (linux_find_memory_regions): Adjust call to
1884 linux_find_memory_regions_full.
1885 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1886 call to linux_find_memory_regions_full.
1888 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1890 * corelow.c (solist.h, unordered_map): Include.
1891 (class core_target): Add field m_core_file_mappings and
1892 method build_file_mappings.
1893 (core_target::core_target): Call build_file_mappings.
1894 (core_target::~core_target): Free memory associated with
1895 m_core_file_mappings.
1896 (core_target::build_file_mappings): New method.
1897 (core_target::xfer_partial): Use m_core_file_mappings
1898 for memory transfers.
1899 * linux-tdep.c (linux_read_core_file_mappings): New
1901 (linux_core_info_proc_mappings): Rewrite to use
1902 linux_read_core_file_mappings.
1903 (linux_init_abi): Register linux_read_core_file_mappings.
1905 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1907 * arch-utils.c (default_read_core_file_mappings): New function.
1908 * arch-utils.c (default_read_core_file_mappings): Declare.
1909 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1910 * gdbarch.h, gdbarch.c: Regenerate.
1912 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1915 * corelow.c (core_target:xfer_partial): Revise
1916 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1917 case after first checking the stratum beneath the core
1919 (has_all_memory): Return true.
1920 * target.c (raw_memory_xfer_partial): Revise comment
1921 regarding use of has_all_memory.
1923 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1925 * exec.h (section_table_xfer_memory): Revise declaration,
1926 replacing section name parameter with an optional callback
1928 * exec.c (section_table_xfer_memory): Likewise.
1929 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1930 of section_table_xfer_memory.
1932 2020-07-22 Tom Tromey <tromey@adacore.com>
1934 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1935 lookup_symbol_search_name.
1937 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1939 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1940 redundant local variable.
1941 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1942 reference, not pointer, update code accordingly.
1944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1945 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1947 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1948 * jit.c (jit_breakpoint_re_set_internal): Use the
1949 `skip_jit_symbol_lookup` field.
1951 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1952 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1954 * jit.c (jit_read_descriptor): Define the descriptor address once,
1956 (jit_breakpoint_deleted): Move the declaration of the loop variable
1957 `iter` into the loop header.
1958 (jit_breakpoint_re_set_internal): Move the declaration of the local
1959 variable `objf_data` to the first point of definition.
1960 (jit_event_handler): Move the declaration of local variables
1961 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1962 Rename `objf` to `jited`.
1964 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1966 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1968 * jit.c (get_jiter_objfile_data): Update.
1970 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971 Simon Marchi <simon.marchi@polymtl.ca>
1973 * jit.c (struct jit_program_space_data): Remove.
1974 (jit_program_space_key): Remove.
1975 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1977 (get_jit_program_space_data): Remove.
1978 (jit_breakpoint_deleted): Iterate on all of the program space's
1980 (jit_inferior_init): Likewise.
1981 (jit_breakpoint_re_set_internal): Likewise. Also change return
1983 (jit_breakpoint_re_set): Pass current_program_space to
1984 jit_breakpoint_re_set_internal.
1986 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1988 * jit.h (struct jiter_objfile_data) <cached_code_address,
1989 jit_breakpoint>: Move to here from ...
1990 * jit.c (jit_program_space_data): ... here.
1991 (jiter_objfile_data::~jiter_objfile_data): Update.
1992 (jit_breakpoint_deleted): Update.
1993 (jit_breakpoint_re_set_internal): Update.
1995 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1997 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1999 (jit_read_descriptor): Remove NULL check.
2000 (jit_event_handler): Add an assertion.
2002 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2004 * jit.h (struct jit_objfile_data): Split into...
2005 (struct jiter_objfile_data): ... this ...
2006 (struct jited_objfile_data): ... and this.
2007 * objfiles.h (struct objfile) <jit_data>: Remove.
2008 <jiter_data, jited_data>: New fields.
2009 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2010 (jiter_objfile_data::~jiter_objfile_data): ... this.
2011 (get_jit_objfile_data): Rename to ...
2012 (get_jiter_objfile_data): ... this.
2013 (add_objfile_entry): Update.
2014 (jit_read_descriptor): Use get_jiter_objfile_data.
2015 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2016 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2017 (jit_inferior_exit_hook): Use objfile's jited_data field.
2019 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2021 * jit.h: Forward-declare `struct minimal_symbol`.
2022 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2023 constructor, destructor, and an objfile* field.
2024 * jit.c (jit_objfile_data): Remove.
2025 (struct jit_objfile_data): Migrate from here to jit.h.
2026 (jit_objfile_data::~jit_objfile_data): New destructor
2027 implementation with code moved from free_objfile_data.
2028 (free_objfile_data): Delete.
2029 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2030 (jit_find_objf_with_entry_addr): Ditto.
2031 (jit_inferior_exit_hook): Ditto.
2032 (_initialize_jit): Remove the call to
2033 register_objfile_data_with_cleanup.
2034 * objfiles.h (struct objfile) <jit_data>: New field.
2036 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2038 * jit.h: Forward-declare `struct objfile`.
2039 (jit_event_handler): Add a second parameter, the JITer objfile.
2040 * jit.c (jit_read_descriptor): Change the signature to take the
2041 JITer objfile as an argument instead of the jit_program_space_data.
2042 (jit_inferior_init): Update the call to jit_read_descriptor.
2043 (jit_event_handler): Use the new JITer objfile argument when calling
2044 jit_read_descriptor.
2045 * breakpoint.c (handle_jit_event): Update the call to
2046 jit_event_handler to pass the JITer objfile.
2048 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2050 * gdbarch.c: Regenerate.
2051 * gdbarch.h: Regenerate.
2052 * gdbarch.sh (handle_segmentation_fault): Remove method.
2053 * infrun.c (handle_segmentation_fault): Remove.
2054 (print_signal_received_reason): Remove call to
2055 handle_segmentation_fault.
2057 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2059 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2060 Rename to sparc64_linux_report_signal_info and add siggnal
2062 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2063 instead of sparc64_linux_handle_segmentation_fault.
2065 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2067 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2068 i386_linux_report_signal_info instead of
2069 i386_linux_handle_segmentation_fault.
2070 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2071 to i386_linux_report_signal_info and add siggnal argument.
2072 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2073 of i386_linux_handle_segmentation_fault.
2074 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2075 to i386_linux_report_signal_info and add siggnal argument.
2077 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2079 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2082 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2084 * gdbarch.c: Regenerate.
2085 * gdbarch.h: Regenerate.
2086 * gdbarch.sh (report_signal_info): New method.
2087 * infrun.c (print_signal_received_reason): Invoke gdbarch
2088 report_signal_info hook if present.
2090 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2092 * python/py-registers.c : Add 'unordered_map' include.
2093 (gdbpy_new_reggroup): Renamed to...
2094 (gdbpy_get_reggroup): ...this. Update to only create register
2095 group descriptors when needed.
2096 (gdbpy_reggroup_iter_next): Update.
2098 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2100 * python/py-registers.c (gdbpy_register_object_data): New static
2102 (gdbpy_register_object_data_init): New function.
2103 (gdbpy_new_register_descriptor): Renamed to...
2104 (gdbpy_get_register_descriptor): ...this, and update to reuse
2105 existing register descriptors where possible.
2106 (gdbpy_register_descriptor_iter_next): Update.
2107 (gdbpy_initialize_registers): Register new gdbarch data.
2109 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2111 * linux-nat.c (stopped_pids): Make static.
2113 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2116 * gdbtypes.c (ada_discrete_type_low_bound,
2117 ada_discrete_type_high_bound): Handle undefined bounds.
2119 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2121 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2123 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2126 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2128 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2129 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2130 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2131 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2132 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2135 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2137 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2138 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2139 which are deprecated in Guile 3.0.
2140 * configure.ac (try_guile_versions): Add "guile-3.0".
2141 * configure (try_guile_versions): Regenerate.
2142 * NEWS: Update entry.
2144 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2145 Doug Evans <dje@google.com>
2148 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2149 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2150 USING_GUILE_BEFORE_2_2.
2151 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2152 Change type to 'scm_t_port_type *'.
2153 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2154 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2155 parameter and honor it. Update callers.
2156 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2157 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2159 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2160 USING_GUILE_BEFORE_2_2.
2161 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2162 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2163 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2164 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2165 and 'SCM_PORT_TYPE'.
2166 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2167 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2168 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2169 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2170 [!USING_GUILE_BEFORE_2_2]: New functions.
2171 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2172 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2173 'gdbscm_memory_port_read'.
2174 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2175 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2176 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2178 (ioscm_init_memory_port): Remove.
2179 (ioscm_init_memory_port_stream): New function
2180 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2182 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2183 Return scm_from_uint (0).
2184 (gdbscm_set_memory_port_read_buffer_size_x)
2185 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2186 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2187 Return scm_from_uint (0).
2188 (gdbscm_set_memory_port_write_buffer_size_x)
2189 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2190 * configure.ac (try_guile_versions): Add "guile-2.2".
2191 * configure: Regenerate.
2194 2020-07-18 Tom Tromey <tom@tromey.com>
2196 * linux-nat.c (linux_multi_process): Remove.
2197 (linux_nat_target::supports_multi_process): Return true.
2199 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2201 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2202 (riscv_lookup_target_description): Return pointer out of
2204 * target-descriptions.c (allocate_target_description): Add
2206 (target_desc_deleter::operator()): Likewise.
2207 * target-descriptions.h (struct target_desc_deleter): Moved to
2209 (target_desc_up): Likewise.
2211 2020-07-17 Tom Tromey <tromey@adacore.com>
2213 * linux-nat.c (linux_nat_target::supports_non_stop)
2214 (linux_nat_target::always_non_stop_p): Use "true".
2215 (linux_nat_target::supports_disable_randomization): Use "true" and
2218 2020-07-16 Caroline Tice <cmtice@google.com>
2220 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2221 (RNGLIST_HEADER_SIZE64): New constant definition.
2222 (struct dwop_section_names): Add rnglists_dwo.
2223 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2224 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2225 (struct dwo_sections): Add rnglists field.
2226 (read_attribut_reprocess): Add tag parameter.
2227 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2228 (cu_debug_rnglists_section): New function (decl & definition).
2229 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2230 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2231 die whose range is being checked; get rnglist section from
2232 cu_debug_rnglists_section, to get from either objfile or dwo file as
2233 appropriate. Add cases for DW_RLE_base_addressx,
2234 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2235 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2236 test inside if-condition and updating complaint message.
2237 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2238 dwarf2_rnglists_process.
2239 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2240 dwarf2_ranges_process.
2241 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2242 need_ranges_base and update comment appropriately. Also pass die tag
2243 to dwarf2_ranges_read.
2244 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2245 need_ranges_base and update comment appropriately. Also pass die tag
2246 to dwarf2_ranges_process.
2247 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2248 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2249 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2250 need_ranges_base and update comment appropriately. Also pass die tag
2251 to read_attribute_reprocess and dwarf2_ranges_read.
2252 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2253 and update function comment appropriately.
2254 (read_loclist_index): Call read_loclists_rnglists_header instead of
2255 read_loclist_header.
2256 (read_rnglist_index): New function.
2257 (read_attribute_reprocess): Add tag parameter. Add code for
2258 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2259 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2261 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2263 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2266 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2268 * arch-utils.c (show_architecture): Update formatting of messages.
2270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2272 * gdbtypes.h (struct type) <bounds>: Handle array and string
2274 * ada-lang.c (assign_aggregate): Use type::bounds on
2276 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2277 * c-varobj.c (c_number_of_children): Likewise.
2278 (c_describe_child): Likewise.
2279 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2280 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2281 (f_type_print_base): Likewise.
2282 * f-valprint.c (f77_array_offset_tbl): Likewise.
2283 (f77_get_upperbound): Likewise.
2284 (f77_print_array_1): Likewise.
2285 * guile/scm-type.c (gdbscm_type_range): Likewise.
2286 * m2-typeprint.c (m2_array): Likewise.
2287 (m2_is_long_set_of_type): Likewise.
2288 * m2-valprint.c (get_long_set_bounds): Likewise.
2289 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2290 * python/py-type.c (typy_range): Likewise.
2291 * rust-lang.c (rust_internal_print_type): Likewise.
2292 * type-stack.c (type_stack::follow_types): Likewise.
2293 * valarith.c (value_subscripted_rvalue): Likewise.
2294 * valops.c (value_cast): Likewise.
2296 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2298 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2299 callers to use the equivalent accessor methods.
2301 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2303 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2304 (struct type) <bit_stride>: New method.
2305 (TYPE_BIT_STRIDE): Remove.
2306 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2310 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2311 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2312 callers to use the equivalent accessor methods instead.
2314 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2316 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2317 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2318 callers to use the equivalent accessor methods instead.
2320 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2322 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2323 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2324 to use dynamic_prop::kind.
2326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2328 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2329 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2330 to get the bound property's kind and check against
2333 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2335 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2336 all callers to use type::range_bounds followed by
2337 dynamic_prop::{low,high}.
2339 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2341 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2342 const_val, set_const_val, baton, set_locexpr, set_loclist,
2343 set_addr_offset, variant_parts, set_variant_parts,
2344 original_type, set_original_type>: New methods.
2345 <kind>: Rename to...
2346 <m_kind>: ... this. Update all users to use the new methods
2348 <data>: Rename to...
2349 <m_data>: ... this. Update all users to use the new methods
2352 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2354 * gdbtypes.c (get_discrete_bounds): Return failure if
2355 the range type's bounds are not both defined and constant
2357 (get_array_bounds): Update comment. Remove undefined bound check.
2359 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2361 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2362 the type::bounds method directly.
2364 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2366 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2367 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2368 are used to set the range type's bounds to use set_bounds.
2370 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2372 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2374 2020-07-10 Pedro Alves <pedro@palves.net>
2376 * gdbthread.h (inferior_ref): Define.
2377 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2378 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2380 (scoped_restore_current_thread::restore):
2381 Adjust to gdb::ref_ptr.
2382 (scoped_restore_current_thread::~scoped_restore_current_thread):
2383 Remove manual decref handling.
2384 (scoped_restore_current_thread::scoped_restore_current_thread):
2386 inferior_ref::new_reference/thread_info_ref::new_reference.
2387 Incref the thread before calling get_frame_id instead of after.
2388 Let TARGET_CLOSE_ERROR propagate.
2390 2020-07-10 Pedro Alves <pedro@palves.net>
2392 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2393 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2394 NOT_AVAILABLE_ERROR.
2395 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2396 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2398 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2399 Pedro Alves <pedro@palves.net>
2402 * infrun.c (threads_are_resumed_pending_p): Delete.
2403 (do_target_wait): Remove threads_are_executing and
2404 threads_are_resumed_pending_p checks from the inferior_matches
2405 lambda. Update comments.
2407 2020-07-10 Pedro Alves <pedro@palves.net>
2410 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2413 2020-07-10 Pedro Alves <pedro@palves.net>
2416 * infrun.c (handle_no_resumed): Handle multiple targets.
2418 2020-07-10 Pedro Alves <pedro@palves.net>
2421 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2424 2020-07-10 Pedro Alves <pedro@palves.net>
2427 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2428 threads, not all threads.
2430 2020-07-10 Pedro Alves <pedro@palves.net>
2433 * remote.c (remote_target::open_1): Pass remote target pointer as
2434 data to create_async_event_handler.
2435 (remote_async_inferior_event_handler): Mark async event handler
2436 before returning if the remote target still has either pending
2437 events or unacknowledged notifications.
2439 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2441 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2443 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2446 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2448 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2451 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2453 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2454 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2455 AT_FREEBSD_PS_STRINGS.
2457 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2459 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2460 of debugfile path on Windows.
2462 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2464 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2467 2020-07-08 Tom Tromey <tromey@adacore.com>
2469 * ada-lang.c (ada_exception_message_1): Use read_memory.
2471 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2474 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2475 special handling for inline frames.
2476 * findvar.c (value_of_register_lazy): Skip inline frames when
2477 creating lazy register values.
2478 * frame.c (frame_id_computed_p): Delete definition.
2479 * frame.h (frame_id_computed_p): Delete declaration.
2481 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2483 * NEWS: Mention additions to Python API.
2484 * python/py-arch.c (archpy_register_groups): New function.
2485 (arch_object_methods): Add 'register_groups' method.
2486 * python/py-registers.c (reggroup_iterator_object): New struct.
2487 (reggroup_object): New struct.
2488 (gdbpy_new_reggroup): New function.
2489 (gdbpy_reggroup_to_string): New function.
2490 (gdbpy_reggroup_name): New function.
2491 (gdbpy_reggroup_iter): New function.
2492 (gdbpy_reggroup_iter_next): New function.
2493 (gdbpy_new_reggroup_iterator): New function
2494 (gdbpy_initialize_registers): Register new types.
2495 (reggroup_iterator_object_type): Define new Python type.
2496 (gdbpy_reggroup_getset): New static global.
2497 (reggroup_object_type): Define new Python type.
2498 * python/python-internal.h
2500 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2502 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2503 * python/py-arch.c (archpy_registers): New function.
2504 (arch_object_methods): Add 'registers' method.
2505 * python/py-registers.c: New file.
2506 * python/python-internal.h
2507 (gdbpy_new_register_descriptor_iterator): Declare.
2508 (gdbpy_initialize_registers): Declare.
2509 * python/python.c (do_start_initialization): Call
2510 gdbpy_initialize_registers.
2511 * NEWS: Mention additions to the Python API.
2513 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2515 * NEWS: Mention new Python API method.
2516 * python/py-unwind.c (pending_framepy_architecture): New function.
2517 (pending_frame_object_methods): Add architecture method.
2519 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2521 * gdbarch.c: Regenerate.
2522 * gdbarch.h: Regenerate.
2523 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2524 (gdbarch_data): Use internal_error for the case where
2525 deprecated_set_gdbarch_data was originally needed.
2526 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2527 and use passed in obstack.
2528 (libunwind_frame_set_descr): Should no longer get back NULL from
2530 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2532 * user-regs.c (user_regs_init): Update parameters, and use passed
2534 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2535 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2537 2020-07-06 Tom de Vries <tdevries@suse.de>
2539 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2540 End-Of-Sequence in lte_is_less_than.
2541 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2542 "gdb: Don't reorder line table entries too much when sorting".
2544 2020-07-06 Tom de Vries <tdevries@suse.de>
2547 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2549 2020-07-05 Tom de Vries <tdevries@suse.de>
2552 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2553 std::uncaught_exceptions instead of deprecated
2554 std::uncaught_exception.
2556 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2558 * macroexp.h (macro_stringify): Return
2559 gdb::unique_xmalloc_ptr<char>.
2560 * macroexp.c (macro_stringify): Likewise.
2561 * macrotab.c (fixup_definition): Update.
2563 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2565 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2566 (lex_one_token): Update.
2567 * macroexp.c (struct macro_buffer) <release>: Return
2568 gdb::unique_xmalloc_ptr<char>.
2569 (macro_stringify): Update.
2570 (macro_expand): Update.
2571 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2572 * macroexp.h (macro_expand_next): Likewise.
2574 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2576 * macroexp.h (macro_lookup_ftype): Remove.
2577 (macro_expand, macro_expand_once, macro_expand_next): Remove
2578 lookup function parameters, add scope parameter.
2579 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2580 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2581 * macroscope.h (standard_macro_lookup): Change parameter type
2583 * macroscope.c (standard_macro_lookup): Likewise.
2584 * c-exp.y (lex_one_token): Update.
2585 * macrocmd.c (macro_expand_command): Likewise.
2586 (macro_expand_once_command): Likewise.
2588 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2590 * inf-loop.c (inferior_event_handler): Remove client_data param.
2591 * inf-loop.h (inferior_event_handler): Likewise.
2592 * infcmd.c (step_1): Adjust.
2593 * infrun.c (proceed): Adjust.
2594 (fetch_inferior_event): Remove client_data param.
2595 (infrun_async_inferior_event_handler): Adjust.
2596 * infrun.h (fetch_inferior_event): Remove `void *` param.
2597 * linux-nat.c (handle_target_event): Adjust.
2598 * record-btrace.c (record_btrace_handle_async_inferior_event):
2600 * record-full.c (record_full_async_inferior_event_handler):
2602 * remote.c (remote_async_inferior_event_handler): Adjust.
2604 2020-07-01 Tom Tromey <tom@tromey.com>
2606 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2607 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2609 2020-07-01 Tom Tromey <tom@tromey.com>
2611 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2613 (tui_win_info::make_window): Merge with
2614 tui_gen_win_info::make_window.
2615 (tui_win_info::make_visible): Move from tui_gen_win_info.
2616 * tui/tui-win.c (tui_win_info::max_width): Move from
2618 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2620 <window_factory>: Likewise.
2621 * tui/tui-layout.c (tui_win_info::resize): Move from
2623 (make_standard_window): Change return type.
2624 (get_locator_window, tui_get_window_by_name): Likewise.
2625 (tui_layout_window::apply): Remove a cast.
2626 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2627 (struct tui_win_info): Merge with tui_gen_win_info.
2628 (struct tui_gen_win_info): Remove.
2630 2020-07-01 Tom Tromey <tom@tromey.com>
2632 * tui/tui-stack.h (struct tui_locator_window): Derive from
2634 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2635 <can_box>: New method.
2637 2020-07-01 Tom Tromey <tom@tromey.com>
2639 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2641 2020-07-01 Tom Tromey <tom@tromey.com>
2643 * tui/tui-regs.c (tui_data_window::display_registers_from)
2644 (tui_data_window::display_registers_from)
2645 (tui_data_window::first_data_item_displayed)
2646 (tui_data_window::delete_data_content_windows): Update.
2647 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2649 (tui_data_window::check_register_values): Update.
2650 (tui_data_item_window::rerender): Add parameters. Update.
2651 (tui_data_item_window::refresh_window): Remove.
2652 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2654 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2656 <refresh_window, max_height, min_height>: Remove.
2657 <rerender>: Add parameters.
2658 <x, y, visible>: New members.
2659 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2660 <m_item_width>: New member.
2662 2020-07-01 Tom Tromey <tom@tromey.com>
2664 * tui/tui-regs.c (tui_data_window::show_register_group)
2665 (tui_data_window::check_register_values): Update.
2666 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2669 2020-07-01 Tom Tromey <tom@tromey.com>
2671 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2674 2020-07-01 Tom Tromey <tom@tromey.com>
2676 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2677 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2679 2020-07-01 Tom Tromey <tom@tromey.com>
2681 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2682 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2683 (struct tui_line_or_address): Move from tui-data.h.
2684 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2685 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2686 (tui_cmd_window, tui_source_window_base, tui_source_window)
2687 (tui_disasm_window): Don't declare.
2688 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2690 (SINGLE_KEY): Move to tui-stack.c.
2692 2020-07-01 Tom Tromey <tom@tromey.com>
2694 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2696 * tui/tui-regs.c (class tab_expansion_file): New.
2697 (tab_expansion_file::write): New method.
2698 (tui_register_format): Change return type. Use
2700 (tui_get_register, tui_data_window::display_registers_from)
2701 (tui_data_item_window::rerender): Update.
2702 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2703 * tui/tui-io.c (tui_expand_tabs): Remove.
2705 2020-07-01 Tom Tromey <tom@tromey.com>
2707 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2709 2020-07-01 Fangrui Song <maskray@google.com>
2711 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2713 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2715 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2716 forms for DW_AT_associated and DW_AT_allocated attributes,
2717 which is already checked in function attr_to_dynamic_prop.
2719 2020-06-30 Tom Tromey <tromey@adacore.com>
2721 * dwarf2/read.c (quirk_rust_enum): Correctly call
2722 alloc_rust_variant for default-less enum.
2724 2020-06-30 Tom Tromey <tromey@adacore.com>
2727 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2730 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2732 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2733 * gdbarch.h: Re-generate.
2735 2020-06-28 Tom Tromey <tom@tromey.com>
2737 * command.h (cmd_types): Remove.
2738 (cmd_type): Don't declare.
2739 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2741 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2742 * cli/cli-decode.c (cmd_type): Remove.
2744 2020-06-27 Pedro Alves <palves@redhat.com>
2746 * fork-child.c (prefork_hook): Adjust.
2747 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2749 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2750 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2751 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2752 Remove declarations.
2753 (struct inferior) <set_tty, tty>: New methods.
2754 (struct inferior) <terminal>: Rename to ...
2755 (struct inferior) <m_terminal>: ... this and make private.
2756 * main.c (captured_main_1): Adjust.
2757 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2758 (mi_cmd_inferior_tty_show): Adjust.
2759 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2760 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2762 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2764 * configure.ac: Add --enable-libctf: handle --disable-static
2766 * acinclude.m4: sinclude ../config/enable.m4.
2767 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2768 (LIBCTF): Substitute in.
2769 (CTF_DEPS): New, likewise.
2770 (CLIBS): libctf needs symbols from libbfd: move earlier.
2771 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2773 * ctfread.c: Surround in ENABLE_LIBCTF.
2774 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2775 * configure: Regenerate.
2776 * config.in: Likewise.
2778 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2780 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2782 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2784 * inferior.h (struct inferior) <terminal>: Change type to
2785 gdb::unique_xmalloc_ptr<char>.
2786 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2787 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2788 field, adjust to unique pointer.
2789 (get_inferior_io_terminal): Adjust to unique pointer.
2791 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2793 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2794 registers, not just the known core set of registers.
2796 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2798 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2799 fflags, frm, and fcsr registers.
2800 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2802 (riscv_tdesc_unknown_reg): New function.
2803 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2804 tdesc_use_registers.
2805 * riscv-tdep.h (struct gdbarch_tdep): Add
2806 unknown_csrs_first_regnum, unknown_csrs_count,
2807 duplicate_fflags_regnum, duplicate_frm_regnum, and
2808 duplicate_fcsr_regnum fields.
2810 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2812 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2813 callback, use the callback (when not null) to help number unknown
2815 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2816 (tdesc_use_registers): Add extra parameter to declaration.
2818 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2820 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2822 (class riscv_pending_register_alias): Likewise.
2823 (riscv_register_feature::register_info): Change 'required_p' field
2824 to 'required', and change its type. Add 'check' member function.
2825 (riscv_register_feature::register_info::check): Define new member
2827 (riscv_xreg_feature): Change initialisation of 'required' field.
2828 (riscv_freg_feature): Likewise.
2829 (riscv_virtual_feature): Likewise.
2830 (riscv_csr_feature): Likewise.
2831 (riscv_check_tdesc_feature): Take extra parameter, the csr
2832 tdesc_feature, rewrite the function to use the new
2833 riscv_register_feature::register_info::check function.
2834 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2836 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2838 * features/Makefile: Remove all references to the deleted files
2840 * features/riscv/32bit-csr.c: Deleted.
2841 * features/riscv/32bit-csr.xml: Deleted.
2842 * features/riscv/64bit-csr.c: Deleted.
2843 * features/riscv/64bit-csr.xml: Deleted.
2844 * features/riscv/rebuild-csr-xml.sh: Deleted.
2846 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2848 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2849 whitespace error for declaration of names member variable.
2850 (struct riscv_register_feature): Add new prefer_first_name member
2851 variable, and fix whitespace error in declaration of registers.
2852 (riscv_xreg_feature): Initialize prefer_first_name field.
2853 (riscv_freg_feature): Likewise.
2854 (riscv_virtual_feature): Likewise.
2855 (riscv_csr_feature): Likewise.
2856 (riscv_register_name): Expand on comments. Remove register name
2857 modifications for CSR and virtual registers.
2859 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2861 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2864 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2866 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2868 (class riscv_pending_register_alias): New class.
2869 (riscv_check_tdesc_feature): Take vector of pending aliases and
2870 populate it as appropriate.
2871 (riscv_setup_register_aliases): Delete.
2872 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2873 to riscv_check_tdesc_feature in all cases. Use the vector to
2874 create the register aliases.
2876 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2878 * sol2-tdep.c (sol2_static_transform_name): Remove.
2879 (sol2_init_abi): Don't register it.
2880 * gdbarch.sh (static_transform_name): Remove.
2881 * gdbarch.c, gdbarch.h: Regenerate.
2883 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2884 gdbarch_static_transform_name.
2885 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2886 * stabsread.c (define_symbol) <'X'>: Remove.
2887 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2890 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2891 <'S'>: Remove call to gdbarch_static_transform_name.
2893 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2895 * procfs.c (procfs_pre_trace): New function.
2896 (procfs_target::create_inferior): Pass it to fork_inferior.
2898 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2900 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2901 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2902 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2903 sol2-tdep.o, sparc-sol2-tdep.o.
2904 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2905 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2906 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2907 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2909 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2911 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2912 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2914 Remove calls to set_gdbarch_skip_solib_resolver,
2915 set_gdbarch_core_pid_to_str.
2916 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2917 (i386_sol2_static_transform_name): Remove.
2918 (i386_sol2_init_abi): Call sol2_init_abi.
2919 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2920 set_gdbarch_static_transform_name,
2921 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2922 Use sol2_sigtramp_p.
2923 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2924 (sol2_sigtramp_p): New function.
2925 (sol2_static_transform_name): New function.
2926 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2927 (sol2_init_abi): New function.
2928 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2929 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2930 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2931 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2932 (sparc_sol2_static_transform_name): Remove.
2933 (sparc32_sol2_init_abi): Call sol2_init_abi.
2934 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2935 set_gdbarch_static_transform_name,
2936 set_gdbarch_skip_solib_resolver,
2937 set_gdbarch_core_pid_to_str.
2938 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2939 (sparc_sol2_static_transform_name): Remove
2940 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2941 call sol2_sigtramp_p.
2942 (sparc64_sol2_init_abi): Call sol2_init_abi.
2943 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2944 set_gdbarch_static_transform_name,
2945 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2947 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2949 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2950 * exec.c (validate_exec_file): If from_tty, set both
2951 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2952 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2953 and from_tty, unconditionally ask a confirmation.
2955 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2957 * target-descriptions.c (tdesc_architecture_name): Protect against
2958 NULL pointer dereference.
2959 (maint_print_xml_tdesc_cmd): New function.
2960 (_initialize_target_descriptions): Register new 'maint print
2961 xml-tdesc' command and give it the filename completer.
2962 * NEWS: Mention new 'maint print xml-tdesc' command.
2964 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2966 * target-descriptions.c (class tdesc_compatible_info): New class.
2967 (struct target_desc): Change type of compatible vector.
2968 (tdesc_compatible_p): Update for change in type of
2969 target_desc::compatible.
2970 (tdesc_compatible_info_list): New function.
2971 (tdesc_compatible_info_arch_name): New function.
2972 (tdesc_add_compatible): Update for change in type of
2973 target_desc::compatible.
2974 (print_c_tdesc::visit_pre): Likewise.
2976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2978 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2979 whitespace to underscore.
2980 (maint_print_c_tdesc_cmd): Use fake filename for target
2981 descriptions that came from the target.
2982 (_initialize_target_descriptions): Add filename command completion
2983 for 'maint print c-tdesc'.
2985 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2987 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2990 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2992 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2994 (dwarf2_find_location_expression): Likewise.
2995 (call_site_parameter_matches): Likewise.
2996 (dwarf2_compile_expr_to_ax): Likewise.
2997 (disassemble_dwarf_expression): Likewise.
2998 (loclist_describe_location): Likewise.
3000 2020-06-23 Pedro Alves <palves@redhat.com>
3002 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3003 progspace-and-thread.h. Include scoped-mock-context.h instead.
3004 (register_to_value_test): Use scoped_mock_context.
3005 * regcache.c: Include "scoped-mock-context.h".
3006 (cooked_read_test): Don't error out if a target is already pushed.
3007 Use scoped_mock_context. Adjust.
3008 * scoped-mock-context.h: New file.
3010 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3012 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3014 (ada_language::is_string_type_p): New member function.
3015 * c-lang.c (c_language_data): Delete la_is_string_type_p
3017 (cplus_language_data): Likewise.
3018 (asm_language_data): Likewise.
3019 (minimal_language_data): Likewise.
3020 * d-lang.c (d_language_data): Likewise.
3021 * f-lang.c (f_is_string_type_p): Delete function, implementation
3022 moved to f_language::is_string_type_p.
3023 (f_language_data): Delete la_is_string_type_p initializer.
3024 (f_language::is_string_type_p): New member function,
3025 implementation from f_is_string_type_p.
3026 * go-lang.c (go_is_string_type_p): Delete function, implementation
3027 moved to go_language::is_string_type_p.
3028 (go_language_data): Delete la_is_string_type_p initializer.
3029 (go_language::is_string_type_p): New member function,
3030 implementation from go_is_string_type_p.
3031 * language.c (language_defn::is_string_type_p): Define new member
3033 (default_is_string_type_p): Make static, add comment copied from
3035 (unknown_language_data): Delete la_is_string_type_p initializer.
3036 (unknown_language::is_string_type_p): New member function.
3037 (auto_language_data): Delete la_is_string_type_p initializer.
3038 (auto_language::is_string_type_p): New member function.
3039 * language.h (language_data): Delete la_is_string_type_p field.
3040 (language_defn::is_string_type_p): Declare new function.
3041 (default_is_string_type_p): Delete desclaration, move comment to
3043 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3044 moved to m2_language::is_string_type_p.
3045 (m2_language_data): Delete la_is_string_type_p initializer.
3046 (m2_language::is_string_type_p): New member function,
3047 implementation from m2_is_string_type_p.
3048 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3050 * opencl-lang.c (opencl_language_data): Likewise.
3051 * p-lang.c (pascal_is_string_type_p): Delete function,
3052 implementation moved to pascal_language::is_string_type_p.
3053 (pascal_language_data): Delete la_is_string_type_p initializer.
3054 (pascal_language::is_string_type_p): New member function,
3055 implementation from pascal_is_string_type_p.
3056 * rust-lang.c (rust_is_string_type_p): Delete function,
3057 implementation moved to rust_language::is_string_type_p.
3058 (rust_language_data): Delete la_is_string_type_p initializer.
3059 (rust_language::is_string_type_p): New member function,
3060 implementation from rust_is_string_type_p.
3061 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3066 * ada-lang.c (ada_language_data): Delete la_print_typedef
3068 (ada_language::print_typedef): New member function.
3069 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3070 (cplus_language_data): Likewise.
3071 (asm_language_data): Likewise.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_language_data): Likewise.
3075 (f_language::print_typedef): New member function.
3076 * go-lang.c (go_language_data): Delete la_print_typedef
3078 * language.c (language_defn::print_typedef): Define member
3080 (unknown_language_data): Delete la_print_typedef initializer.
3081 (unknown_language::print_typedef): New member function.
3082 (auto_language_data): Delete la_print_typedef initializer.
3083 (auto_language::print_typedef): New member function.
3084 * language.h (language_data): Delete la_print_typedef field.
3085 (language_defn::print_typedef): Declare new member function.
3086 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3087 (default_print_typedef): Delete declaration.
3088 * m2-lang.c (m2_language_data): Delete la_print_typedef
3090 (m2_language::print_typedef): New member function.
3091 * objc-lang.c (objc_language_data): Delete la_print_typedef
3093 * opencl-lang.c (opencl_language_data): Likewise.
3094 * p-lang.c (pascal_language_data): Likewise.
3095 (pascal_language::print_typedef): New member function.
3096 * rust-lang.c (rust_print_typedef): Delete function,
3097 implementation moved to rust_language::print_typedef.
3098 (rust_language): Delete la_print_typedef initializer.
3099 (rust_language::print_typedef): New member function,
3100 implementation from rust_print_typedef.
3101 * typeprint.c (default_print_typedef): Delete.
3103 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3105 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3106 (ada_language::printstr): New member function.
3107 * c-lang.c (c_language_data): Delete la_printstr initializer.
3108 (cplus_language_data): Likewise.
3109 (asm_language_data): Likewise.
3110 (minimal_language_data): Likewise.
3111 * d-lang.c (d_language_data): Likewise.
3112 * f-lang.c (f_printstr): Rename to f_language::printstr.
3113 (f_language_data): Delete la_printstr initializer.
3114 (f_language::printstr): New member function, implementation from
3116 * go-lang.c (go_language_data): Delete la_printstr initializer.
3117 * language.c (language_defn::printstr): Define new member
3119 (unk_lang_printstr): Delete.
3120 (unknown_language_data): Delete la_printstr initializer.
3121 (unknown_language::printstr): New member function.
3122 (auto_language_data): Delete la_printstr initializer.
3123 (auto_language::printstr): New member function.
3124 * language.h (language_data): Delete la_printstr field.
3125 (language_defn::printstr): Declare new member function.
3126 (LA_PRINT_STRING): Update call to printstr.
3127 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3128 (m2_language_data): Delete la_printstr initializer.
3129 (m2_language::printstr): New member function, implementation from
3131 * objc-lang.c (objc_language_data): Delete la_printstr
3133 * opencl-lang.c (opencl_language_data): Likewise.
3134 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3135 (pascal_language_data): Delete la_printstr initializer.
3136 (pascal_language::printstr): New member function, implementation
3137 from pascal_printstr.
3138 * p-lang.h (pascal_printstr): Delete declaration.
3139 * rust-lang.c (rust_printstr): Update header comment.
3140 (rust_language_data): Delete la_printstr initializer.
3141 (rust_language::printstr): New member function.
3143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3145 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3146 (ada_language::printchar): New member function.
3147 * c-lang.c (c_language_data): Delete la_printchar initializer.
3148 (cplus_language_data): Likewise.
3149 (asm_language_data): Likewise.
3150 (minimal_language_data): Likewise.
3151 * d-lang.c (d_language_data): Likewise.
3152 * f-lang.c (f_printchar): Rename to f_language::printchar.
3153 (f_language_data): Delete la_printchar initializer.
3154 (f_language::printchar): New member function, implementation from
3156 * go-lang.c (go_language_data): Delete la_printchar initializer.
3157 * language.c (unk_lang_printchar): Delete.
3158 (language_defn::printchar): Define new member function.
3159 (unknown_language_data): Delete la_printchar initializer.
3160 (unknown_language::printchar): New member function.
3161 (auto_language_data): Delete la_printchar initializer.
3162 (auto_language::printchar): New member function.
3163 * language.h (language_data): Delete la_printchar field.
3164 (language_defn::printchar): Declare new member function.
3165 (LA_PRINT_CHAR): Update call to printchar.
3166 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3167 (m2_language::printchar): New member function.
3168 * objc-lang.c (objc_language_data): Delete la_printchar
3170 * opencl-lang.c (opencl_language_data): Likewise.
3171 * p-lang.c (pascal_language_data): Delete la_printchar
3173 (pascal_language::printchar): New member function.
3174 * rust-lang.c (rust_printchar): Rename to
3175 rust_language::printchar.
3176 (rust_language_data): Delete la_printchar initializer.
3177 (rust_language::printchar): New member function, implementation
3178 from rust_printchar.
3180 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3182 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3183 (ada_language_data): Delete la_emitchar initializer.
3184 (ada_language::emitchar): New member function, implementation from
3186 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3187 (cplus_language_data): Likewise.
3188 (asm_language_data): Likewise.
3189 (minimal_language_data): Likewise.
3190 * d-lang.c (d_language_data): Likewise.
3191 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3192 (f_language_data): Delete la_emitchar initializer.
3193 (f_language::emitchar): New member function, implementation from
3195 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3196 * language.c (unk_lang_emit_char): Delete.
3197 (language_defn::emitchar): New member function definition.
3198 (unknown_language_data): Delete la_emitchar initializer.
3199 (unknown_language::emitchar): New member function.
3200 (auto_language_data): Delete la_emitchar initializer.
3201 (auto_language::emitchar): New member function.
3202 * language.h (language_data): Delete la_emitchar field.
3203 (language_defn::emitchar): New member field declaration.
3204 (LA_EMIT_CHAR): Update call to emitchar.
3205 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3206 (m2_language_data): Delete la_emitchar initializer.
3207 (m2_language::emitchar): New member function, implementation from
3209 * objc-lang.c (objc_language_data): Delete la_emitchar
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3213 (pascal_language_data): Delete la_emitchar initializer.
3214 (pascal_language::emitchar): New member function, implementation
3215 from pascal_emit_char.
3216 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3217 (rust_language_data): Delete la_emitchar initializer.
3218 (rust_language::emitchar): New member function, implementation
3221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3223 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3224 (ada_language_data): Delete la_post_parser initializer.
3225 (ada_language::post_parser): New member function.
3226 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3227 (cplus_language_data): Likewise.
3228 (asm_language_data): Likewise.
3229 (minimal_language_data): Likewise.
3230 * d-lang.c (d_language_data): Likewise.
3231 * f-lang.c (f_language_data): Likewise.
3232 * go-lang.c (go_language_data): Likewise.
3233 * language.c (unknown_language_data): Likewise.
3234 (auto_language_data): Likewise.
3235 * language.h (language_data): Delete la_post_parser field.
3236 (language_defn::post_parser): New member function.
3237 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3238 * objc-lang.c (objc_language_data): Likewise.
3239 * opencl-lang.c (opencl_language_data): Likewise.
3240 * p-lang.c (pascal_language_data): Likewise.
3241 * parse.c (parse_exp_in_context): Update call to post_parser.
3242 (null_post_parser): Delete definition.
3243 * parser-defs.h (null_post_parser): Delete declaration.
3244 * rust-lang.c (rust_language_data): Delete la_post_parser
3247 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3249 * ada-lang.c (parse): Rename to ada_language::parser.
3250 (ada_language_data): Delete la_parser initializer.
3251 (ada_language::parser): New member function, implementation from
3253 * c-lang.c (c_language_data): Delete la_parser initializer.
3254 (cplus_language_data): Likewise.
3255 (asm_language_data): Likewise.
3256 (minimal_language_data): Likewise.
3257 * d-lang.c (d_language_data): Likewise.
3258 (d_language::parser): New member function.
3259 * f-lang.c (f_language_data): Delete la_parser initializer.
3260 (f_language::parser): New member function.
3261 * go-lang.c (go_language_data): Delete la_parser initializer.
3262 (go_language::parser): New member function.
3263 * language.c (unk_lang_parser): Delete.
3264 (language_defn::parser): Define new member function.
3265 (unknown_language_data): Delete la_parser initializer.
3266 (unknown_language::parser): New member function.
3267 (auto_language_data): Delete la_parser initializer.
3268 (auto_language::parser): New member function.
3269 * language.h (language_data): Delete la_parser field.
3270 (language_defn::parser): Declare new member function.
3271 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3272 (m2_language::parser): New member function.
3273 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3274 * opencl-lang.c (opencl_language_data): Likewise.
3275 * p-lang.c (pascal_language_data): Likewise.
3276 (pascal_language::parser): New member function.
3277 * parse.c (parse_exp_in_context): Update call to parser.
3278 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3279 (rust_language::parser): New member function.
3281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3283 * top.c (print_gdb_configuration): Print --with-python-libdir
3284 configuration value.
3286 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3288 * NEWS: Mention change to the alias command.
3290 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3292 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3293 (alias_command_completer)
3294 (make_alias_options_def_group): New functions.
3295 (alias_opts, alias_option_defs): New struct and array.
3296 (alias_usage_error): Update usage.
3297 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3298 Use option framework.
3299 (_initialize_cli_cmds): Update alias command help.
3300 Update aliases command help.
3302 Add NULL for new default_args lookup_cmd argument.
3303 (valid_command_p): Rename to validate_aliased_command.
3304 Add NULL for new default_args lookup_cmd argument. Verify that the
3305 aliased_command has no default args.
3306 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3307 (lookup_cmd_1, lookup_cmd): New argument default_args.
3309 Add NULL for new default_args lookup_cmd argument.
3310 (print_help_for_command): Show default args under the layout
3311 alias some_alias = some_aliased_cmd some_alias_default_arg.
3312 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3313 xfree default_args in destructor.
3314 * cli/cli-script.c (process_next_line, do_define_command):
3315 Add NULL for new default_args lookup_cmd argument.
3316 * command.h: Declare new default_args argument in lookup_cmd
3318 * completer.c (complete_line_internal_1):
3319 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3320 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3321 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3323 * infcmd.c (_initialize_infcmd): Likewise.
3324 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3325 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3326 * python/py-param.c (add_setshow_generic): Likewise.
3327 * remote.c (_initialize_remote): Likewise.
3328 * top.c (execute_command): Prepend default_args if command has some.
3330 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3331 * tracepoint.c (validate_actionline, encode_actions_1):
3332 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3334 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3336 * jit.c (jit_read_descriptor): Use bool as the return type.
3337 (jit_breakpoint_re_set_internal): Use bool as the return type.
3338 Invert the return value logic; return true if the jit breakpoint
3339 has been successfully initialized.
3340 (jit_inferior_init): Update the call to
3341 jit_breakpoint_re_set_internal.
3343 2020-06-22 Pedro Alves <palves@redhat.com>
3346 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3347 Use the current inferior instead. Don't return
3348 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3350 * sol-thread.c (sol_thread_target::wait): Don't reference
3352 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3353 (sol_update_thread_list_callback): Use the current inferior's pid
3354 instead of inferior_ptid.
3356 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3358 * procfs.c: Cleanup many comments.
3360 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3361 (AFTER_WATCHFLAG): Replace by value.
3363 (MAIN_PROC_NAME_FORMAT): Inline ...
3364 (create_procinfo): ... here.
3366 (procfs_debug_inferior): Remove SYS_exec handling.
3367 (syscall_is_exec): Likewise.
3368 (procfs_set_exec_trap): Likewise.
3370 (syscall_is_lwp_exit): Inline in callers.
3371 (syscall_is_exit): Likewise.
3372 (syscall_is_exec): Likewise.
3373 (syscall_is_lwp_create): Likewise.
3375 (invalidate_cache): Remove #if 0 code.
3377 (make_signal_thread_runnable): Remove.
3378 (procfs_target::resume): Remove #if 0 code.
3380 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3383 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3385 (procfs_target::create_inferior): ... here.
3387 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3389 * exec.c (validate_exec_file): Ensure the build-id is up to
3390 date by calling reopen_exec_file (that checks file timestamp
3391 to decide to re-read the file).
3393 2020-06-18 Pedro Alves <palves@redhat.com>
3396 * gdbthread.h (delete_thread, delete_thread_silent)
3397 (find_thread_ptid): Update comments.
3398 * thread.c (current_thread_): New global.
3399 (is_current_thread): Move higher, and reimplement.
3400 (inferior_thread): Reimplement.
3401 (set_thread_exited): Use bool. Add assertions.
3402 (add_thread_silent): Simplify thread-reuse handling by always
3403 calling delete_thread.
3404 (delete_thread): Remove intro comment.
3405 (find_thread_ptid): Skip exited threads.
3406 (switch_to_thread_no_regs): Write to current_thread_.
3407 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3408 INFERIOR_PTID. Clear current_thread_.
3410 2020-06-18 Pedro Alves <palves@redhat.com>
3412 * aix-thread.c (pd_update): Use switch_to_thread.
3414 2020-06-18 Pedro Alves <palves@redhat.com>
3416 * ravenscar-thread.c (ravenscar_thread_target): Update.
3417 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3418 (ravenscar_thread_target::add_active_thread): ... this. Don't
3419 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3420 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3422 2020-06-18 Pedro Alves <palves@redhat.com>
3424 * nat/windows-nat.c (current_windows_thread): Remove.
3425 * nat/windows-nat.h (current_windows_thread): Remove.
3426 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3428 (display_selectors): Adjust to fetch the current
3429 windows_thread_info based on inferior_ptid.
3430 (fake_create_process): No longer write to current_windows_thread.
3431 (windows_nat_target::get_windows_debug_event):
3432 Don't set inferior_ptid or current_windows_thread.
3433 (windows_nat_target::wait): Adjust to not rely on
3434 current_windows_thread.
3435 (do_initial_windows_stuff): Now a method of windows_nat_target.
3436 Switch to the last_ptid thread.
3437 (windows_nat_target::attach): Adjust.
3438 (windows_nat_target::detach): Use switch_to_no_thread instead of
3439 writing to inferior_ptid directly.
3440 (windows_nat_target::create_inferior): Adjust.
3442 2020-06-18 Pedro Alves <palves@redhat.com>
3444 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3446 2020-06-18 Pedro Alves <palves@redhat.com>
3448 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3449 after creating it, instead of writing to inferior_ptid. Don't
3450 write to inferior_ptid.
3452 2020-06-18 Pedro Alves <palves@redhat.com>
3454 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3456 2020-06-18 Pedro Alves <palves@redhat.com>
3458 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3459 it, instead of writing to inferior_ptid.
3461 2020-06-18 Pedro Alves <palves@redhat.com>
3463 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3466 2020-06-18 Pedro Alves <palves@redhat.com>
3468 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3469 instead of writing to inferior_ptid directly.
3471 2020-06-18 Pedro Alves <palves@redhat.com>
3473 * corelow.c (core_target::close): Use switch_to_no_thread instead
3474 of writing to inferior_ptid directly.
3475 (add_to_thread_list, core_target_open): Use switch_to_thread
3476 instead of writing to inferior_ptid directly.
3478 2020-06-18 Pedro Alves <palves@redhat.com>
3480 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3482 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3484 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3485 inferior_ptid directly.
3486 (darwin_nat_target::init_thread_list): Switch to thread, instead
3487 of writing to inferior_ptid.
3488 (darwin_nat_target::attach): Don't write to inferior_ptid.
3489 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3491 2020-06-18 Pedro Alves <palves@redhat.com>
3493 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3495 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3496 Instead use switch_to_thread.
3497 (gnu_nat_target::detach): Use switch_to_no_thread
3498 instead of writing to inferior_ptid directly. Used passed-in
3499 inferior instead of looking up the inferior by pid.
3501 2020-06-18 Pedro Alves <palves@redhat.com>
3503 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3506 2020-06-18 Pedro Alves <palves@redhat.com>
3508 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3510 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3512 (nto_procfs_target::detach): Avoid referencing
3513 inferior_ptid. Use switch_to_no_thread instead of writing to
3514 inferior_ptid directly.
3515 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3516 instead of writing to inferior_ptid directly.
3517 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3520 2020-06-18 Pedro Alves <palves@redhat.com>
3522 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3523 after creating it, instead of writing to inferior_ptid.
3524 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3525 to inferior_ptid directly.
3526 (gdbsim_target::wait): Don't write to inferior_ptid.
3528 2020-06-18 Pedro Alves <palves@redhat.com>
3530 * remote.c (remote_target::remote_notice_new_inferior): Use
3531 switch_to_thread instead of writing to inferior_ptid directly.
3532 (remote_target::add_current_inferior_and_thread): Use
3533 switch_to_no_thread instead of writing to inferior_ptid directly.
3534 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3535 and switch_to_thread instead of using set_current_inferior or
3536 writing to inferior_ptid directly.
3538 2020-06-18 Pedro Alves <palves@redhat.com>
3540 * tracectf.c (ctf_target_open): Switch to added thread instead of
3541 writing to inferior_ptid directly.
3542 (ctf_target::close): Use switch_to_no_thread instead of writing to
3543 inferior_ptid directly.
3545 2020-06-18 Pedro Alves <palves@redhat.com>
3547 * tracefile-tfile.c (tfile_target_open): Don't write to
3548 inferior_ptid directly, instead switch to added thread.
3549 (tfile_target::close): Use switch_to_no_thread instead of writing
3550 to inferior_ptid directly.
3552 2020-06-18 Pedro Alves <palves@redhat.com>
3554 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3555 (procfs_target::detach): Use switch_to_no_thread
3556 instead of writing to inferior_ptid directly.
3557 (do_attach): Change return type to void. Switch to the added
3559 (procfs_target::create_inferior): Switch to the added thread.
3560 (procfs_do_thread_registers): Don't write to inferior_ptid.
3562 2020-06-18 Pedro Alves <palves@redhat.com>
3564 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3565 of writing to inferior_ptid.
3566 (scoped_restore_exited_inferior): Delete.
3567 (handle_vfork_child_exec_or_exit): Simplify using
3568 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3569 instead of writing to inferior_ptid.
3570 (THREAD_STOPPED_BY): Delete.
3571 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3572 (thread_stopped_by_hw_breakpoint): Delete.
3573 (save_waitstatus): Use
3574 scoped_restore_current_thread+switch_to_thread, and call
3575 target_stopped_by_watchpoint instead of
3576 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3577 instead of thread_stopped_by_sw_breakpoint, and
3578 target_stopped_by_hw_breakpoint instead of
3579 thread_stopped_by_hw_breakpoint.
3580 (handle_inferior_event)
3581 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3582 inferior_ptid directly, nor
3583 set_current_inferior/set_current_program_space. Use
3584 switch_to_thread / switch_to_inferior_no_thread instead.
3586 2020-06-18 Pedro Alves <palves@redhat.com>
3588 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3589 instead of writing to inferior_ptid.
3591 2020-06-18 Pedro Alves <palves@redhat.com>
3593 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3595 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3596 to the added thread.
3597 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3598 instead of writing to inferior_ptid.
3600 2020-06-18 Pedro Alves <palves@redhat.com>
3602 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3603 (register_to_value_test): Mock a program_space too. Heap-allocate
3604 the address space. Don't write to inferior_ptid. Use
3605 switch_to_thread instead.
3607 2020-06-18 Pedro Alves <palves@redhat.com>
3609 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3611 (find_signalled_thread()): New, factored out from
3612 linux_make_corefile_notes and adjusted to handle exited threads.
3613 (linux_make_corefile_notes): Adjust to use the new
3614 find_signalled_thread.
3616 2020-06-18 Pedro Alves <palves@redhat.com>
3618 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3619 of saving/restoring inferior_ptid.
3621 2020-06-17 Tom Tromey <tom@tromey.com>
3623 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3624 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3626 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3628 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3630 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3633 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3635 * regformats/reg-arm.dat: Remove.
3636 * regformats/reg-bfin.dat: Remove.
3637 * regformats/reg-cris.dat: Remove.
3638 * regformats/reg-crisv32.dat: Remove.
3639 * regformats/reg-m32r.dat: Remove.
3640 * regformats/reg-tilegx.dat: Remove.
3641 * regformats/reg-tilegx32.dat: Remove.
3643 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3645 * features/Makefile (WHICH): Remove arm files.
3646 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3647 * regformats/arm/arm-with-neon.dat: Remove.
3648 * regformats/arm/arm-with-vfpv2.dat: Remove.
3649 * regformats/arm/arm-with-vfpv3.dat: Remove.
3651 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3653 * features/Makefile (XMLTOC): Remove rx.xml.
3655 2020-06-17 Pedro Alves <palves@redhat.com>
3657 * gdbthread.h (thread_control_state) <trap_expected> Update
3660 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3662 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3663 ada_language::lookup_symbol_nonlocal.
3664 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3665 (ada_language::lookup_symbol_nonlocal): New member function,
3666 implementation from ada_lookup_symbol_nonlocal.
3667 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3669 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3671 (cplus_language::lookup_symbol_nonlocal): New member function.
3672 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3673 (minimal_language_data) Likewise.
3674 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3675 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3677 (d_language::lookup_symbol_nonlocal): New member function.
3678 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3680 (f_language::lookup_symbol_nonlocal): New member function.
3681 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3683 * language.c (unknown_language_data): Likewise.
3684 (auto_language_data): Likewise.
3685 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3687 (language_defn::lookup_symbol_nonlocal): New member function.
3688 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3690 * objc-lang.c (objc_language_data): Likewise.
3691 * opencl-lang.c (opencl_language_data): Likewise.
3692 * p-lang.c (pascal_language_data): Likewise.
3693 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3694 rust_language::lookup_symbol_nonlocal.
3695 (rust_language_data): Delete la_lookup_symbol_nonlocal
3697 (rust_language::lookup_symbol_nonlocal): New member function,
3698 implementation from rust_lookup_symbol_nonlocal.
3699 * symtab.c (lookup_symbol_aux): Update call to
3700 lookup_symbol_nonlocal.
3701 (basic_lookup_symbol_nonlocal): Rename to...
3702 (language_defn::lookup_symbol_nonlocal): ...this, and update
3703 header comment. Remove language_defn parameter, and replace with
3705 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3709 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3711 (ada_language::value_print_inner): New member function.
3712 * c-lang.c (c_language_data): Delete la_value_print_inner
3714 (cplus_language_data): Likewise.
3715 (asm_language_data): Likewise.
3716 (minimal_language_data): Likewise.
3717 * d-lang.c (d_language_data): Likewise.
3718 (d_language::value_print_inner): New member function.
3719 * f-lang.c (f_language_data): Delete la_value_print_inner
3721 (f_language::value_print_inner): New member function.
3722 * f-lang.h (f_value_print_innner): Rename to...
3723 (f_value_print_inner): ...this (note spelling of 'inner').
3724 * f-valprint.c (f_value_print_innner): Rename to...
3725 (f_value_print_inner): ...this (note spelling of 'inner').
3726 * go-lang.c (go_language_data): Delete la_value_print_inner
3728 (go_language::value_print_inner): New member function.
3729 * language.c (language_defn::value_print_inner): Define new member
3731 (unk_lang_value_print_inner): Delete.
3732 (unknown_language_data): Delete la_value_print_inner initializer.
3733 (unknown_language::value_print_inner): New member function.
3734 (auto_language_data): Delete la_value_print_inner initializer.
3735 (auto_language::value_print_inner): New member function.
3736 * language.h (language_data): Delete la_value_print_inner field.
3737 (language_defn::value_print_inner): Delcare new member function.
3738 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3740 (m2_language::value_print_inner): New member function.
3741 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3743 * opencl-lang.c (opencl_language_data): Likewise.
3744 * p-lang.c (pascal_language_data): Likewise.
3745 (pascal_language::value_print_inner): New member function.
3746 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3748 (rust_language::value_print_inner): New member function.
3749 * valprint.c (do_val_print): Update call to value_print_inner.
3751 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3753 * ada-lang.c (ada_language_data): Delete la_value_print
3755 (ada_language::value_print): New member function.
3756 * c-lang.c (c_language_data): Delete la_value_print initializer.
3757 (cplus_language_data): Likewise.
3758 (asm_language_data): Likewise.
3759 (minimal_language_data): Likewise.
3760 * d-lang.c (d_language_data): Likewise.
3761 * f-lang.c (f_language_data): Likewise.
3762 * go-lang.c (go_language_data): Likewise.
3763 * language.c (unk_lang_value_print): Delete.
3764 (language_defn::value_print): Define new member function.
3765 (unknown_language_data): Delete la_value_print initializer.
3766 (unknown_language::value_print): New member function.
3767 (auto_language_data): Delete la_value_print initializer.
3768 (auto_language::value_print): New member function.
3769 * language.h (language_data): Delete la_value_print field.
3770 (language_defn::value_print): Declare new member function.
3771 (LA_VALUE_PRINT): Update call to value_print.
3772 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3773 * objc-lang.c (objc_language_data): Likewise.
3774 * opencl-lang.c (opencl_language_data): Likewise.
3775 * p-lang.c (pascal_language_data): Likewise.
3776 (pascal_language::value_print): New member function.
3777 * rust-lang.c (rust_language_data): Delete la_value_print
3780 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3782 * ada-lang.c (ada_watch_location_expression): Rename to
3783 ada_language::watch_location_expression.
3784 (ada_language_data): Delete la_watch_location_expression
3786 (ada_language::watch_location_expression): New member function,
3787 implementation from ada_watch_location_expression.
3788 * breakpoint.c (watch_command_1): Update call to
3789 watch_location_expression.
3790 * c-lang.c (c_watch_location_expression): Rename to
3791 language_defn::watch_location_expression.
3792 (c_language_data): Delete la_watch_location_expression
3794 (cplus_language_data): Likewise.
3795 (asm_language_data): Likewise.
3796 (minimal_language_data): Likewise.
3797 * c-lang.h (c_watch_location_expression): Delete declaration.
3798 * d-lang.c (d_language_data): Delete la_watch_location_expression
3800 * f-lang.c (f_language_data): Likewise.
3801 * go-lang.c (go_language_data): Likewise.
3802 * language.c (language_defn::watch_location_expression): Member
3803 function implementation from c_watch_location_expression.
3804 (unknown_language_data): Delete la_watch_location_expression
3806 (auto_language_data): Likewise.
3807 * language.h (language_data): Delete la_watch_location_expression
3809 (language_defn::watch_location_expression): Declare new member
3811 * m2-lang.c (m2_language_data): Delete
3812 la_watch_location_expression initializer.
3813 * objc-lang.c (objc_language_data): Likewise.
3814 * opencl-lang.c (opencl_language_data): Likewise.
3815 * p-lang.c (pascal_language_data): Likewise.
3816 * rust-lang.c (rust_watch_location_expression): Rename to
3817 rust_language::watch_location_expression.
3818 (rust_language_data): Delete la_watch_location_expression
3820 (rust_language::watch_location_expression): New member function,
3821 implementation from rust_watch_location_expression.
3823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3825 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3826 ada_language::collect_symbol_completion_matches.
3827 (ada_language_data): Delete la_collect_symbol_completion_matches
3829 (ada_language::collect_symbol_completion_matches): New member
3830 function, implementation from
3831 ada_collect_symbol_completion_matches.
3832 * c-lang.c (c_language_data): Delete
3833 la_collect_symbol_completion_matches initializer.
3834 (cplus_language_data): Likewise.
3835 (asm_language_data): Likewise.
3836 (minimal_language_data): Likewise.
3837 * d-lang.c (d_language_data): Likewise.
3838 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3839 f_language::collect_symbol_completion_matches.
3840 (f_language_data): Delete la_collect_symbol_completion_matches
3842 (f_language::collect_symbol_completion_matches) New member
3843 function, implementation from f_collect_symbol_completion_matches.
3844 * go-lang.c (go_language_data): Delete
3845 la_collect_symbol_completion_matches initializer.
3846 * language.c (unknown_language_data): Likewise.
3847 (auto_language_data): Likewise.
3848 * language.h (language_data): Delete
3849 la_collect_symbol_completion_matches field.
3850 (language_defn::collect_symbol_completion_matches): New member
3852 * m2-lang.c (m2_language_data): Delete
3853 la_collect_symbol_completion_matches initializer.
3854 * objc-lang.c (objc_language_data): Likewise.
3855 * opencl-lang.c (opencl_language_data): Likewise.
3856 * p-lang.c (pascal_language_data): Likewise.
3857 * rust-lang.c (rust_language_data): Likewise.
3858 * symtab.c (default_collect_symbol_completion_matches): Delete.
3859 (collect_symbol_completion_matches): Update call to
3860 collect_symbol_completion_matches.
3861 (collect_symbol_completion_matches_type): Likewise.
3862 * symtab.h (default_collect_symbol_completion_matches): Delete
3865 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3867 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3868 (ada_language_data): Delete la_word_break_characters initializer.
3869 (ada_language::word_break_characters): New member function.
3870 * c-lang.c (c_language_data): Delete la_word_break_characters
3872 (cplus_language_data): Likewise.
3873 (asm_language_data): Likewise.
3874 (minimal_language_data): Likewise.
3875 * completer.c: Update global comment.
3876 (advance_to_expression_complete_word_point): Update call to
3877 word_break_characters.
3878 (complete_files_symbols): Likewise.
3879 (complete_line_internal_1): Likewise.
3880 (default_completer_handle_brkchars): Likewise.
3881 (skip_quoted_chars): Likewise.
3882 * d-lang.c (d_language_data): Delete la_word_break_characters
3884 * f-lang.c (f_word_break_characters): Delete.
3885 (f_language_data): Delete la_word_break_characters initializer.
3886 (f_language::word_break_characters): New member function.
3887 * go-lang.c (go_language_data): Delete la_word_break_characters
3889 * language.c (unknown_language_data): Likewise.
3890 (auto_language_data): Likewise.
3891 * language.h (default_word_break_characters): Move declaration to
3892 earlier in the file.
3893 (language_data): Delete la_word_break_characters field.
3894 (language_defn::word_break_characters): New member function.
3895 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3897 * objc-lang.c (objc_language_data): Likewise.
3898 * opencl-lang.c (opencl_language_data): Likewise.
3899 * p-lang.c (pascal_language_data): Likewise.
3900 * rust-lang.c (rust_language_data): Likewise.
3902 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3904 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3905 (ada_language_data): Delete la_get_symbol_name_matcher
3907 (language_defn::get_symbol_name_matcher_inner): New member
3909 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3911 (cplus_language_data): Likewise.
3912 (cplus_language::get_symbol_name_matcher_inner): New member
3914 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3915 (minimal_language_data): Likewise.
3916 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3917 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3919 * dictionary.c (iter_match_first_hashed): Update call to
3920 get_symbol_name_matcher.
3921 (iter_match_next_hashed): Likewise.
3922 (iter_match_next_linear): Likewise.
3923 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3924 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3926 (f_language::get_symbol_name_matcher_inner): New member function.
3927 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3929 * language.c (default_symbol_name_matcher): Update header comment,
3931 (language_defn::get_symbol_name_matcher): New definition.
3932 (language_defn::get_symbol_name_matcher_inner): Likewise.
3933 (get_symbol_name_matcher): Delete.
3934 (unknown_language_data): Delete la_get_symbol_name_matcher
3936 (auto_language_data): Likewise.
3937 * language.h (language_data): Delete la_get_symbol_name_matcher
3939 (language_defn::get_symbol_name_matcher): New member function.
3940 (language_defn::get_symbol_name_matcher_inner): Likewise.
3941 (default_symbol_name_matcher): Delete declaration.
3942 * linespec.c (find_methods): Update call to
3943 get_symbol_name_matcher.
3944 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3946 * minsyms.c (lookup_minimal_symbol): Update call to
3947 get_symbol_name_matcher.
3948 (iterate_over_minimal_symbols): Likewise.
3949 * objc-lang.c (objc_language_data): Delete
3950 la_get_symbol_name_matcher initializer.
3951 * opencl-lang.c (opencl_language_data): Likewise.
3952 * p-lang.c (pascal_language_data): Likewise.
3953 * psymtab.c (psymbol_name_matches): Update call to
3954 get_symbol_name_matcher.
3955 * rust-lang.c (rust_language_data): Delete
3956 la_get_symbol_name_matcher initializer.
3957 * symtab.c (symbol_matches_search_name): Update call to
3958 get_symbol_name_matcher.
3959 (compare_symbol_name): Likewise.
3961 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3963 * ada-lang.c (ada_language_data): Delete la_compute_program
3965 * c-lang.c (c_language_data): Likewise.
3966 (c_language::compute_program): New member function.
3967 (cplus_language_data): Delete la_compute_program initializer.
3968 (cplus_language::compute_program): New member function.
3969 (asm_language_data): Delete la_compute_program initializer.
3970 (minimal_language_data): Likewise.
3971 * c-lang.h (c_compute_program): Update comment.
3972 (cplus_compute_program): Likewise.
3973 * compile/compile-c-support.c (c_compute_program): Likewise.
3974 (cplus_compute_program): Likewise.
3975 * compile/compile.c (compile_to_object): Update call to
3977 * d-lang.c (d_language_data): Delete la_compute_program
3979 * f-lang.c (f_language_data): Likewise.
3980 * go-lang.c (go_language_data): Likewise.
3981 * language.c (unknown_language_data): Likewise.
3982 (auto_language_data): Likewise.
3983 * language.h (language_data): Delete la_compute_program field.
3984 (language_defn::compute_program): New member function.
3985 * m2-lang.c (m2_language_data): Delete la_compute_program
3987 * objc-lang.c (objc_language_data): Likewise.
3988 * opencl-lang.c (opencl_language_data): Likewise.
3989 * p-lang.c (pascal_language_data): Likewise.
3990 * rust-lang.c (rust_language_data): Likewise.
3992 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3994 * ada-lang.c (ada_language_data) Delete
3995 la_class_name_from_physname initializer.
3996 * c-lang.c (c_language_data): Likewise.
3997 (cplus_language_data): Likewise.
3998 (cplus_language::class_name_from_physname): New member function.
3999 (asm_language_data): Delete la_class_name_from_physname
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4004 method on language_defn class.
4005 (guess_full_die_structure_name): Likewise.
4006 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4008 * go-lang.c (go_language_data): Likewise.
4009 * language.c (language_class_name_from_physname): Delete.
4010 (unk_lang_class_name): Delete.
4011 (unknown_language_data): Delete la_class_name_from_physname
4013 (auto_language_data): Likewise.
4014 * language.h (language_data): Delete la_class_name_from_physname
4016 (language_defn::class_name_from_physname): New function.
4017 (language_class_name_from_physname): Delete declaration.
4018 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4020 * objc-lang.c (objc_language_data): Likewise.
4021 * opencl-lang.c (opencl_language_data): Likewise.
4022 * p-lang.c (pascal_language_data): Likewise.
4023 * rust-lang.c (rust_language_data): Likewise.
4025 2020-06-16 Tom Tromey <tom@tromey.com>
4027 * tui/tui-data.h (STATUS_NAME): New macro.
4028 * tui/tui-layout.c (tui_remove_some_windows)
4029 (initialize_known_windows, tui_register_window)
4030 (tui_layout_split::remove_windows, initialize_layouts)
4031 (tui_new_layout_command): Don't use hard-coded window names.
4033 2020-06-16 Tom Tromey <tom@tromey.com>
4036 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4037 tui_initialize_readline. Only run once. Call rl_initialize.
4038 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4039 tui_initialize_readline.
4040 * tui/tui-io.c (tui_setup_io): Call
4041 tui_ensure_readline_initialized.
4042 * tui/tui-interp.c (tui_interp::init): Update.
4044 2020-06-16 Tom Tromey <tom@tromey.com>
4046 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4047 Also preserve the status window.
4049 2020-06-16 Tom Tromey <tom@tromey.com>
4051 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4052 where m_window==nullptr.
4054 2020-06-15 Tom Tromey <tromey@adacore.com>
4056 * windows-nat.c (windows_nat::handle_output_debug_string):
4058 (windows_nat::handle_ms_vc_exception): Update.
4059 * target.h (target_read_string): Change API.
4060 * target.c (target_read_string): Change API.
4061 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4063 * solib-frv.c (frv_current_sos): Update.
4064 * solib-dsbt.c (dsbt_current_sos): Update.
4065 * solib-darwin.c (darwin_current_sos): Update.
4066 * linux-thread-db.c (inferior_has_bug): Update.
4067 * expprint.c (print_subexp_standard): Update.
4068 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4069 (ada_exception_message_1): Update.
4071 2020-06-15 Tom Tromey <tromey@adacore.com>
4073 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4075 2020-06-15 Tom Tromey <tromey@adacore.com>
4077 * valprint.c (read_string): Update comment.
4078 * target.c (MIN): Remove.
4079 (target_read_string): Rewrite.
4081 2020-06-15 Tom Tromey <tromey@adacore.com>
4083 * corefile.c (read_memory_string): Remove.
4084 * ada-valprint.c (ada_value_print_ptr): Update.
4085 * ada-lang.h (ada_tag_name): Change return type.
4086 * ada-lang.c (type_from_tag): Update.
4087 (ada_tag_name_from_tsd): Change return type. Use
4089 (ada_tag_name): Likewise.
4090 * gdbcore.h (read_memory_string): Don't declare.
4092 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4094 * symtab.c (rbreak_command): Ignore Windows drive colon.
4096 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4098 * NEWS: Mention removed GDBserver host support.
4100 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4102 * features/riscv/rebuild-csr-xml.sh: Updated.
4104 2020-06-11 Tom Tromey <tom@tromey.com>
4107 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4109 2020-06-09 Jonny Grant <jg@jguk.org>
4110 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4112 * main.c (captured_main_1): Don't print new line after help.
4113 (print_gdb_help): add mailing list and IRC channel information
4114 to --help. Add new lines between items in the footer. Remove
4115 quotes around bug url.
4117 2020-06-11 Keith Seitz <keiths@redhat.com>
4120 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4121 Resolve typedefs for type length calculations.
4123 2020-06-10 Tom de Vries <tdevries@suse.de>
4126 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4127 (write_psymbols): Enable .gdb_index for ada.
4128 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4131 2020-06-10 Tom de Vries <tdevries@suse.de>
4133 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4134 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4135 namei" instead of "const char *name" argument.
4136 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4137 dw2_symtab_iter_init.
4139 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4141 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4142 to use type::field and field::type instead.
4144 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4146 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4147 to use field::type instead.
4149 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4151 * gdbtypes.h (struct field) <type, set_type>: New methods.
4152 Rename `type` field to...
4153 <m_type>: ... this. Change references throughout to use type or
4155 (FIELD_TYPE): Use field::type. Change call sites that modify
4156 the field's type to use field::set_type instead.
4158 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4160 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4161 to use type::index_type instead.
4163 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4165 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4167 (TYPE_INDEX_TYPE): Use type::index_type.
4168 * gdbtypes.c (create_array_type_with_stride): Likewise.
4170 2020-06-07 Tom Tromey <tom@tromey.com>
4172 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4174 (generic_value_print): Update.
4176 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4178 Revert commit 982a38f60b0.
4179 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4181 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4183 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4184 avoid use after free.
4186 2020-06-05 Tom de Vries <tdevries@suse.de>
4190 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4192 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4194 (dwarf2_read_debug_names): Likewise.
4195 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4196 object when re-using a per_bfd object with an index.
4198 2020-06-03 Tom de Vries <tdevries@suse.de>
4201 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4203 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4206 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4208 * ada-lang.c (ada_language_data): Delete skip_trampoline
4210 * c-lang.c (c_language_data): Likewise.
4211 (cplus_language_data): Likewise.
4212 (cplus_language::skip_trampoline): New member function.
4213 (asm_language_data): Delete skip_trampoline initializer.
4214 (minimal_language_data): Likewise.
4215 * d-lang.c (d_language_data): Likewise.
4216 * f-lang.c (f_language_data): Likewise.
4217 * go-lang.c (go_language_data): Likewise.
4218 * language.c (unk_lang_trampoline): Delete function.
4219 (skip_language_trampoline): Update.
4220 (unknown_language_data): Delete skip_trampoline initializer.
4221 (auto_language_data): Likewise.
4222 * language.h (language_data): Delete skip_trampoline field.
4223 (language_defn::skip_trampoline): New function.
4224 * m2-lang.c (m2_language_data): Delete skip_trampoline
4226 * objc-lang.c (objc_skip_trampoline): Delete function, move
4227 implementation to objc_language::skip_trampoline.
4228 (objc_language_data): Delete skip_trampoline initializer.
4229 (objc_language::skip_trampoline): New member function with
4230 implementation from objc_skip_trampoline.
4231 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4233 * p-lang.c (pascal_language_data): Likewise.
4234 * rust-lang.c (rust_language_data): Likewise.
4236 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4238 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4239 (ada_language::demangle): New member function.
4240 * c-lang.c (c_language_data): Delete la_demangle initializer.
4241 (cplus_language_data): Delete la_demangle initializer.
4242 (cplus_language::demangle): New member function.
4243 (asm_language_data): Delete la_demangle initializer.
4244 (minimal_language_data): Delete la_demangle initializer.
4245 * d-lang.c (d_language_data): Delete la_demangle initializer.
4246 (d_language::demangle): New member function.
4247 * f-lang.c (f_language_data): Delete la_demangle initializer.
4248 (f_language::demangle): New member function.
4249 * go-lang.c (go_language_data): Delete la_demangle initializer.
4250 (go_language::demangle): New member function.
4251 * language.c (language_demangle): Update.
4252 (unk_lang_demangle): Delete.
4253 (unknown_language_data): Delete la_demangle initializer.
4254 (unknown_language::demangle): New member function.
4255 (auto_language_data): Delete la_demangle initializer.
4256 (auto_language::demangle): New member function.
4257 * language.h (language_data): Delete la_demangle field.
4258 (language_defn::demangle): New function.
4259 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4260 * objc-lang.c (objc_language_data): Delete la_demangle
4262 (objc_language::demangle): New member function.
4263 * opencl-lang.c (opencl_language_data): Delete la_demangle
4265 * p-lang.c (pascal_language_data): Likewise.
4266 * rust-lang.c (rust_language_data): Likewise.
4267 (rust_language::demangle): New member function.
4269 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4271 * ada-lang.c (ada_language_data): Delete la_print_type
4273 (ada_language::print_type): New member function.
4274 * c-lang.c (c_language_data): Delete la_print_type initializer.
4275 (c_language::print_type): New member function.
4276 (cplus_language_data): Delete la_print_type initializer.
4277 (cplus_language::print_type): New member function.
4278 (asm_language_data): Delete la_print_type initializer.
4279 (asm_language::print_type): New member function.
4280 (minimal_language_data): Delete la_print_type initializer.
4281 (minimal_language::print_type): New member function.
4282 * d-lang.c (d_language_data): Delete la_print_type initializer.
4283 (d_language::print_type): New member function.
4284 * f-lang.c (f_language_data): Delete la_print_type initializer.
4285 (f_language::print_type): New member function.
4286 * go-lang.c (go_language_data): Delete la_print_type initializer.
4287 (go_language::print_type): New member function.
4288 * language.c (unk_lang_print_type): Delete.
4289 (unknown_language_data): Delete la_print_type initializer.
4290 (unknown_language::print_type): New member function.
4291 (auto_language_data): Delete la_print_type initializer.
4292 (auto_language::print_type): New member function.
4293 * language.h (language_data): Delete la_print_type field.
4294 (language_defn::print_type): New function.
4295 (LA_PRINT_TYPE): Update.
4296 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4297 (m2_language::print_type): New member function.
4298 * objc-lang.c (objc_language_data): Delete la_print_type
4300 (objc_language::print_type): New member function.
4301 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4302 to opencl_language::print_type.
4303 (opencl_language_data): Delete la_print_type initializer.
4304 (opencl_language::print_type): New member function, implementation
4305 from opencl_print_type.
4306 * p-lang.c (pascal_language_data): Delete la_print_type
4308 (pascal_language::print_type): New member function.
4309 * rust-lang.c (rust_print_type): Delete, implementation moved to
4310 rust_language::print_type.
4311 (rust_language_data): Delete la_print_type initializer.
4312 (rust_language::print_type): New member function, implementation
4313 from rust_print_type.
4315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4317 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4318 implementation moves to...
4319 (ada_language::sniff_from_mangled_name): ...here. Update return
4321 (ada_language_data): Delete la_sniff_from_mangled_name
4323 * c-lang.c (c_language_data): Likewise.
4324 (cplus_language_data): Likewise.
4325 (cplus_language::sniff_from_mangled_name): New member function,
4326 implementation taken from gdb_sniff_from_mangled_name.
4327 (asm_language_data): Delete la_sniff_from_mangled_name
4329 (minimal_language_data): Likewise.
4330 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4331 implementation moves to cplus_language::sniff_from_mangled_name.
4332 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4333 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4335 (d_language::sniff_from_mangled_name): ...here.
4336 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4337 * f-lang.c (f_language_data): Likewise.
4338 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4340 (go_language::sniff_from_mangled_name): ...here.
4341 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4342 * language.c (language_sniff_from_mangled_name): Delete.
4343 (unknown_language_data): Delete la_sniff_from_mangled_name
4345 (auto_language_data): Likewise.
4346 * language.h (language_data): Delete la_sniff_from_mangled_name
4348 (language_defn::sniff_from_mangled_name): New function.
4349 (language_sniff_from_mangled_name): Delete declaration.
4350 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4352 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4353 implementation moves to...
4354 (objc_language::sniff_from_mangled_name): ...here.
4355 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4356 * opencl-lang.c (opencl_language_data): Likewise.
4357 * p-lang.c (pascal_language_data): Likewise.
4358 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4359 implementation moves to...
4360 (rust_language::sniff_from_mangled_name): ...here.
4361 (rust_language_data): Delete la_sniff_from_mangled_name
4363 * symtab.c (symbol_find_demangled_name): Call
4364 sniff_from_mangled_name member function.
4366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4368 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4370 * c-lang.c (c_language_data): Likewise.
4371 (cplus_language_data): Likewise.
4372 (cplus_language::search_name_hash): New member function.
4373 (asm_language_data): Delete la_search_name_hash initializer.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 * dictionary.c (default_search_name_hash): Rename to...
4377 (language_defn::search_name_hash): ...this.
4378 * f-lang.c (f_language_data): Likewise.
4379 (f_language::search_name_hash): New member function.
4380 * go-lang.c (go_language_data): Delete la_search_name_hash
4382 * language.c (unknown_language_data): Likewise.
4383 (auto_language_data): Likewise.
4384 * language.h (struct language_data): Delete la_search_name_hash
4386 (language_defn::search_name_hash): Declare new member function.
4387 (default_search_name_hash): Delete declaration.
4388 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4390 * objc-lang.c (objc_language_data): Likewise.
4391 * opencl-lang.c (opencl_language_data): Likewise.
4392 * p-lang.c (pascal_language_data): Likewise.
4393 * rust-lang.c (rust_language_data): Likewise.
4394 * symtab.c (search_name_hash): Update call.
4396 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4398 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4400 * c-lang.c (class compile_instance): Declare.
4401 (c_language_data): Delete la_get_compile_instance initializer.
4402 (c_language::get_compile_instance): New member function.
4403 (cplus_language_data): Delete la_get_compile_instance initializer.
4404 (cplus_language::get_compile_instance): New member function.
4405 (asm_language_data): Delete la_get_compile_instance initializer.
4406 (minimal_language_data): Likewise.
4407 * c-lang.h (c_get_compile_context): Update comment.
4408 (cplus_get_compile_context): Update comment.
4409 * compile/compile.c (compile_to_object): Update calls, don't rely
4410 on function pointer being NULL.
4411 * d-lang.c (d_language_data): Delete la_get_compile_instance
4413 * f-lang.c (f_language_data): Likewise.
4414 * go-lang.c (go_language_data): Likewise.
4415 * language.c (unknown_language_data): Likewise.
4416 (auto_language_data): Likewise.
4417 * language.h (language_data): Delete la_get_compile_instance field.
4418 (language_defn::get_compile_instance): New member function.
4419 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4421 * objc-lang.c (objc_language_data): Likewise.
4422 * opencl-lang.c (opencl_language_data): Likewise.
4423 * p-lang.c (pascal_language_data): Likewise.
4424 * rust-lang.c (rust_language_data): Likewise.
4426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4428 * ada-lang.c (ada_add_all_symbols): Update comment.
4429 (ada_iterate_over_symbols): Delete, move implementation to...
4430 (ada_language::iterate_over_symbols): ...here, a new member
4431 function, rewrite to use range based for loop.
4432 (ada_language_data): Delete la_iterate_over_symbols initializer.
4433 * c-lang.c (c_language_data): Likewise.
4434 (cplus_language_data): Likewise.
4435 (asm_language_data): Likewise.
4436 (minimal_language_data): Likewise.
4437 * d-lang.c (d_language_data): Likewise.
4438 * f-lang.c (f_language_data): Likewise.
4439 * go-lang.c (go_language_data): Likewise.
4440 * language.c (unknown_language_data): Likewise.
4441 (auto_language_data): Likewise.
4442 * language.h (language_data): Delete la_iterate_over_symbols field.
4443 (language_defn::iterate_over_symbols): New member function.
4444 (LA_ITERATE_OVER_SYMBOLS): Update.
4445 * linespec.c (iterate_over_all_matching_symtabs): Update.
4446 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4448 * objc-lang.c (objc_language_data): Likewise.
4449 * opencl-lang.c (opencl_language_data): Likewise.
4450 * p-lang.c (pascal_language_data): Likewise.
4451 * rust-lang.c (rust_language_data): Likewise.
4453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4455 * ada-lang.c (ada_language_data): Delete
4456 la_lookup_transparent_type initializer.
4457 * c-lang.c (c_language_data): Likewise.
4458 (cplus_language_data): Likewise.
4459 (cplus_language::lookup_transparent_type): New member function.
4460 (asm_language_data): Delete la_lookup_transparent_type
4462 (minimal_language_data): Likewise.
4463 * d-lang.c (d_language_data): Likewise.
4464 * f-lang.c (f_language_data): Likewise.
4465 * go-lang.c (go_language_data): Likewise.
4466 * language.c (unknown_language_data): Likewise.
4467 (auto_language_data): Likewise.
4468 * language.h (struct language_data): Delete
4469 la_lookup_transparent_type field.
4470 (language_defn::lookup_transparent_type): New member function.
4471 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4473 * objc-lang.c (objc_language_data): Likewise.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 * rust-lang.c (rust_language_data): Likewise.
4477 * symtab.c (symbol_matches_domain): Update call.
4479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4481 * ada-lang.c (ada_language_arch_info): Delete function, move
4482 implementation to...
4483 (ada_language::language_arch_info): ...here, a new member
4485 (ada_language_data): Delete la_language_arch_info.
4486 * c-lang.c (c_language_data): Likewise.
4487 (c_language::language_arch_info): New member function.
4488 (cplus_language_arch_info): Delete function, move
4489 implementation to...
4490 (cplus_language::language_arch_info): ...here, a new member
4492 (cplus_language_data): Delete la_language_arch_info.
4493 (asm_language_data): Likewise.
4494 (asm_language::language_arch_info): New member function.
4495 (minimal_language_data): Delete la_language_arch_info.
4496 (minimal_language::language_arch_info): New member function.
4497 * d-lang.c (d_language_arch_info): Delete function, move
4498 implementation to...
4499 (d_language::language_arch_info): ...here, a new member
4501 (d_language_data): Delete la_language_arch_info.
4502 * f-lang.c (f_language_arch_info): Delete function, move
4503 implementation to...
4504 (f_language::language_arch_info): ...here, a new member
4506 (f_language_data): Delete la_language_arch_info.
4507 * go-lang.c (go_language_arch_info): Delete function, move
4508 implementation to...
4509 (go_language::language_arch_info): ...here, a new member
4511 (go_language_data): Delete la_language_arch_info.
4512 * language.c (unknown_language_data): Likewise.
4513 (unknown_language::language_arch_info): New member function.
4514 (auto_language_data): Delete la_language_arch_info.
4515 (auto_language::language_arch_info): New member function.
4516 (language_gdbarch_post_init): Update call to
4517 la_language_arch_info.
4518 * language.h (language_data): Delete la_language_arch_info
4520 (language_defn::language_arch_info): New function.
4521 * m2-lang.c (m2_language_arch_info): Delete function, move
4522 implementation to...
4523 (m2_language::language_arch_info): ...here, a new member
4525 (m2_language_data): Delete la_language_arch_info.
4526 * objc-lang.c (objc_language_arch_info): Delete function, move
4527 implementation to...
4528 (objc_language::language_arch_info): ...here, a new member
4530 (objc_language_data): Delete la_language_arch_info.
4531 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4532 implementation to...
4533 (opencl_language::language_arch_info): ...here, a new member
4535 (opencl_language_data): Delete la_language_arch_info.
4536 * p-lang.c (pascal_language_arch_info): Delete function, move
4537 implementation to...
4538 (pascal_language::language_arch_info): ...here, a new member
4540 (pascal_language_data): Delete la_language_arch_info.
4541 * rust-lang.c (rust_language_arch_info): Delete function, move
4542 implementation to...
4543 (rust_language::language_arch_info): ...here, a new member
4545 (rust_language_data): Delete la_language_arch_info.
4547 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4549 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4551 * c-lang.c (c_language_data): Likewise.
4552 (cplus_language_data): Likewise.
4553 (cplus_language::pass_by_reference_info): New method.
4554 (asm_language_data): Delete la_pass_by_reference initializer.
4555 (minimal_language_data): Likewise.
4556 * cp-abi.c (cp_pass_by_reference): Remove use of
4557 default_pass_by_reference.
4558 * d-lang.c (d_language_data): Likewise.
4559 * f-lang.c (f_language_data): Likewise.
4560 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4561 default_pass_by_reference.
4562 * go-lang.c (go_language_data): Likewise.
4563 * language.c (language_pass_by_reference): Update.
4564 (default_pass_by_reference): Delete.
4565 (unknown_language_data): Delete la_pass_by_reference
4567 (auto_language_data): Likewise.
4568 * language.h (struct language_data): Delete la_pass_by_reference
4570 (language_defn::pass_by_reference_info): New member function.
4571 (default_pass_by_reference): Delete declaration.
4572 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4574 * objc-lang.c (objc_language_data): Likewise.
4575 * opencl-lang.c (opencl_language_data): Likewise.
4576 * p-lang.c (pascal_language_data): Likewise.
4577 * rust-lang.c (rust_language_data): Likewise.
4579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4581 * ada-lang.c (ada_read_var_value): Delete function, move
4582 implementation to...
4583 (ada_language::read_var_value): ...here.
4584 (ada_language_data): Delete la_read_var_value initializer.
4585 * c-lang.c (c_language_data): Likewise.
4586 (cplus_language_data): Likewise.
4587 (minimal_language_data): Likewise.
4588 * d-lang.c (d_language_data): Likewise.
4589 * f-lang.c (f_language_data): Likewise.
4590 * findvar.c (default_read_var_value): Rename to...
4591 (language_defn::read_var_value): ...this.
4592 * findvar.c (read_var_value): Update header comment, and change to
4593 call member function instead of function pointer.
4594 * go-lang.c (go_language_data): Likewise.
4595 * language.c (unknown_language_data): Delete la_read_var_value
4597 (auto_language_data): Likewise.
4598 * language.h (struct language_data): Delete la_read_var_value
4600 (language_defn::read_var_value): New member function.
4601 (default_read_var_value): Delete declaration.
4602 * m2-lang.c (m2_language_data): Delete la_read_var_value
4604 * objc-lang.c (objc_language_data): Likewise.
4605 * opencl-lang.c (opencl_language_data): Likewise.
4606 * p-lang.c (pascal_language_data): Likewise.
4607 * rust-lang.c (rust_language_data): Likewise.
4608 * value.h (default_read_var_value): Delete declaration.
4610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4612 * ada-lang.c (ada_print_array_index): Delete function, move
4613 implementation to...
4614 (ada_language::print_array_index): ...here.
4615 (ada_language_data): Delete la_print_array_index initializer.
4616 * c-lang.c (c_language_data): Likewise.
4617 (cplus_language_data): Likewise.
4618 (minimal_language_data): Likewise.
4619 * d-lang.c (d_language_data): Likewise.
4620 * f-lang.c (f_language_data): Likewise.
4621 * go-lang.c (go_language_data): Likewise.
4622 * language.c (default_print_array_index): Delete function, move
4623 implementation to...
4624 (language_defn::print_array_index): ...here.
4625 (unknown_language_data): Delete la_print_array_index initializer.
4626 (auto_language_data): Likewise.
4627 * language.h (struct language_data): Delete la_print_array_index
4629 (language_defn::print_array_index): New member function.
4630 (LA_PRINT_ARRAY_INDEX): Update.
4631 (default_print_array_index): Delete declaration.
4632 * m2-lang.c (m2_language_data): Delete la_print_array_index
4634 * objc-lang.c (objc_language_data): Likewise.
4635 * opencl-lang.c (opencl_language_data): Likewise.
4636 * p-lang.c (pascal_language_data): Likewise.
4637 * rust-lang.c (rust_language_data): Likewise.
4639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4641 * gdb/ada-lang.c (ada_language_defn): Convert to...
4642 (ada_language_data): ...this.
4643 (class ada_language): New class.
4644 (ada_language_defn): New static global.
4645 * gdb/c-lang.c (c_language_defn): Convert to...
4646 (c_language_data): ...this.
4647 (class c_language): New class.
4648 (c_language_defn): New static global.
4649 (cplus_language_defn): Convert to...
4650 (cplus_language_data): ...this.
4651 (class cplus_language): New class.
4652 (cplus_language_defn): New static global.
4653 (asm_language_defn): Convert to...
4654 (asm_language_data): ...this.
4655 (class asm_language): New class.
4656 (asm_language_defn): New static global.
4657 (minimal_language_defn): Convert to...
4658 (minimal_language_data): ...this.
4659 (class minimal_language): New class.
4660 (minimal_language_defn): New static global.
4661 * gdb/d-lang.c (d_language_defn): Convert to...
4662 (d_language_data): ...this.
4663 (class d_language): New class.
4664 (d_language_defn): New static global.
4665 * gdb/f-lang.c (f_language_defn): Convert to...
4666 (f_language_data): ...this.
4667 (class f_language): New class.
4668 (f_language_defn): New static global.
4669 * gdb/go-lang.c (go_language_defn): Convert to...
4670 (go_language_data): ...this.
4671 (class go_language): New class.
4672 (go_language_defn): New static global.
4673 * gdb/language.c (unknown_language_defn): Remove declaration.
4674 (current_language): Initialize to nullptr, real initialization is
4675 moved to _initialize_language.
4676 (languages): Delete global.
4677 (language_defn::languages): Define.
4678 (set_language_command): Use language_defn::languages.
4679 (set_language): Likewise.
4680 (range_error): Likewise.
4681 (language_enum): Likewise.
4682 (language_def): Likewise.
4683 (add_set_language_command): Use language_def::languages for the
4684 language list, and language_def to lookup language pointers.
4685 (skip_language_trampoline): Use language_defn::languages.
4686 (unknown_language_defn): Convert to...
4687 (unknown_language_data): ...this.
4688 (class unknown_language): New class.
4689 (unknown_language_defn): New static global.
4690 (auto_language_defn): Convert to...
4691 (auto_language_data): ...this.
4692 (class auto_language): New class.
4693 (auto_language_defn): New static global.
4694 (language_gdbarch_post_init): Use language_defn::languages.
4695 (_initialize_language): Initialize current_language.
4696 * gdb/language.h (struct language_defn): Rename to...
4697 (struct language_data): ...this.
4698 (struct language_defn): New.
4699 (auto_language_defn): Delete.
4700 (unknown_language_defn): Delete.
4701 (minimal_language_defn): Delete.
4702 (ada_language_defn): Delete.
4703 (asm_language_defn): Delete.
4704 (c_language_defn): Delete.
4705 (cplus_language_defn): Delete.
4706 (d_language_defn): Delete.
4707 (f_language_defn): Delete.
4708 (go_language_defn): Delete.
4709 (m2_language_defn): Delete.
4710 (objc_language_defn): Delete.
4711 (opencl_language_defn): Delete.
4712 (pascal_language_defn): Delete.
4713 (rust_language_defn): Delete.
4714 * gdb/m2-lang.c (m2_language_defn): Convert to...
4715 (m2_language_data): ...this.
4716 (class m2_language): New class.
4717 (m2_language_defn): New static global.
4718 * gdb/objc-lang.c (objc_language_defn): Convert to...
4719 (objc_language_data): ...this.
4720 (class objc_language): New class.
4721 (objc_language_defn): New static global.
4722 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4723 (opencl_language_data): ...this.
4724 (class opencl_language): New class.
4725 (opencl_language_defn): New static global.
4726 * gdb/p-lang.c (pascal_language_defn): Convert to...
4727 (pascal_language_data): ...this.
4728 (class pascal_language): New class.
4729 (pascal_language_defn): New static global.
4730 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4731 language pointer, update comment format.
4732 * gdb/rust-lang.c (rust_language_defn): Convert to...
4733 (rust_language_data): ...this.
4734 (class rust_language): New class.
4735 (rust_language_defn): New static global.
4737 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4739 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4741 <m_stmt_at_address>: New member variable.
4742 (lnp_state_machine::record_line): Don't record some lines, update
4743 tracking of is_stmt at the same address.
4744 (lnp_state_machine::lnp_state_machine): Initialise new member
4747 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4749 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4750 "-include gnu-nat-mig.h".
4751 * gnu-nat-mig.h: New file.
4752 * gnu-nat.c: Include "gnu-nat-mig.h".
4753 (exc_server, msg_reply_server, notify_server,
4754 process_reply_server): Remove declarations.
4756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4758 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4759 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4760 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4761 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4762 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4763 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4764 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4765 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4766 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4767 to gnu_nat_target class.
4768 * gnu-nat.c: Likewise.
4769 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4770 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4771 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4773 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4774 instead of `gnu_target'.
4776 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4778 * i386-gnu-tdep.c: Include "gdbcore.h"
4779 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4780 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4781 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4782 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4783 i386_gnu_sigcontext_addr): New functions
4784 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4785 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4790 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4791 before fork_inferior call. Avoid calling it if target_is_pushed returns
4794 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4796 * gnu-nat.h (gnu_target): New variable declaration.
4797 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4799 * gnu-nat.c (gnu_target): New variable.
4800 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4801 add_thread_silent, and add_thread calls.
4802 (gnu_nat_target::create_inferior): Pass gnu_target to
4803 add_thread_silent, thread_change_ptid call.
4804 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4807 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4809 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4810 (gnu_nat_target::find_memory_regions): Remove unused
4811 `old_address' variable.
4813 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4815 * gnu-nat.c: Include "gdbarch.h".
4817 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4819 * reply_mig_hack.awk (Error return): Cast function through
4820 void *, to bypass compiler function call check.
4822 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4824 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4825 $(srcdir)/reply_mig_hack.awk.
4827 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4829 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4831 2020-05-30 Jonny Grant <jg@jguk.org>
4833 * configure.ac (ACX_BUGURL): change bug URL to https.
4835 2020-05-30 Pedro Alves <palves@redhat.com>
4837 * cp-support.c (replace_typedefs_template): New.
4838 (replace_typedefs_qualified_name): Handle
4839 DEMANGLE_COMPONENT_TEMPLATE.
4841 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4843 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4844 dwarf2/index-cache.h, dwarf2/index-write.c,
4845 dwarf2/index-write.h, dwarf2/line-header.c,
4846 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4847 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4848 variables and fields from `dwarf2_per_objfile` to just
4849 `per_objfile` throughout.
4851 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4853 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4854 <push_dwarf_reg_entry_value>: Add comment.
4856 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4857 Keith Seitz <keiths@redhat.com>
4859 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4860 instead of PyEval_ReleaseLock.
4861 (class gdbpy_gil): Move to earlier in file.
4862 (finalize_python): Set gdb_python_initialized.
4863 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4864 when not initialized.
4866 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4868 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4869 <push_dwarf_reg_entry_value>: Remove assert. Override
4870 per_objfile with caller_per_objfile.
4872 2020-05-28 Tom de Vries <tdevries@suse.de>
4874 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4875 PR gold/15646 workaround to symbol kind "type".
4877 2020-05-27 Tom Tromey <tromey@adacore.com>
4879 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4881 2020-05-27 Tom Tromey <tromey@adacore.com>
4883 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4884 Use htab_find_with_hash.
4885 <add_abbrev>: Remove "abbrev_number" parameter.
4886 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4887 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4888 (hash_abbrev): Add comment.
4889 (abbrev_table::lookup_abbrev): Move to header file.
4890 (abbrev_table::read): Update.
4892 2020-05-27 Tom Tromey <tromey@adacore.com>
4894 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4896 <canonical_name>: New member.
4897 <raw_name>: Rename from "name".
4898 (partial_die_info): Initialize canonical_name.
4899 (scan_partial_symbols): Check raw_name.
4900 (partial_die_parent_scope, partial_die_full_name)
4901 (add_partial_symbol, add_partial_subprogram)
4902 (add_partial_enumeration, load_partial_dies): Use "name" method.
4903 (partial_die_info::name): New method.
4904 (partial_die_info::read, guess_partial_die_structure_name)
4905 (partial_die_info::fixup): Update.
4907 2020-05-27 Tom Tromey <tromey@adacore.com>
4909 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4910 <get_ref_die_offset>: Inline.
4911 <get_ref_die_offset_complaint>: New method.
4912 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4913 (attribute::get_ref_die_offset_complaint): Rename from
4914 get_ref_die_offset. Just issue complaint.
4916 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4918 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4920 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4922 * exec.c (exec_file_attach): Use errno value of first openp failure.
4924 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4926 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4927 Don't close thread handle.
4929 2020-05-27 Tom Tromey <tom@tromey.com>
4930 Simon Marchi <simon.marchi@efficios.com>
4932 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4934 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4936 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4937 dwarf2_per_bfd_objfile_data_key>: New globals.
4938 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4939 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4940 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4942 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4943 short-circuit when sharing.
4944 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4945 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4949 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4951 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4952 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4956 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4957 build_name_components, find_name_components_bounds>:
4958 Add per_objfile parameter.
4959 (struct mapped_index) <symbol_name_at>: Likewise.
4960 (struct mapped_debug_names): Remove constructor.
4961 <dwarf2_per_objfile>: Remove field.
4962 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4963 (mapped_index_base::find_name_components_bounds,
4964 mapped_index_base::build_name_components,
4965 dw2_expand_symtabs_matching_symbol): Likewise.
4966 (class mock_mapped_index) <symbol_name_at>: Likewise.
4967 (check_match): Likewise.
4968 (check_find_bounds_finds): Likewise.
4969 (test_mapped_index_find_name_component_bounds): Update.
4970 (CHECK_MATCH): Update.
4971 (dw2_expand_symtabs_matching): Update.
4972 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4973 per_objfile parameter.
4974 <find_vec_in_debug_names>: Likewise.
4975 <m_per_objfile>: New field.
4976 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4978 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4979 (dw2_debug_names_iterator::next): Update.
4980 (dw2_debug_names_lookup_symbol): Update.
4981 (dw2_debug_names_expand_symtabs_for_function): Update.
4982 (dw2_debug_names_map_matching_symbols): Update.
4983 (dw2_debug_names_expand_symtabs_matching): Update.
4984 (dwarf2_read_debug_names): Update.
4986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4988 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4989 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4990 move to dwarf2_per_objfile.
4991 <read_in_chain>: Remove.
4992 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4993 remove_all_cus, age_comp_units>: New methods.
4994 <m_dwarf2_cus>: New member.
4995 (struct dwarf2_per_cu_data) <cu>: Remove.
4996 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4997 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4998 moved to methods of dwarf2_per_objfile.
4999 (dwarf2_clear_marks): Remove.
5000 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5001 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5002 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5003 (dwarf2_per_objfile::remove_all_cus): New.
5004 (class free_cached_comp_units) <~free_cached_comp_units>:
5007 (dw2_do_instantiate_symtab): Adjust.
5008 (fill_in_sig_entry_from_dwo_entry): Adjust.
5009 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5010 (cutu_reader::cutu_reader): Likewise.
5011 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5012 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5013 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5014 and dwarf2_per_objfile::age_comp_units.
5015 (load_partial_comp_unit): Update.
5016 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5017 (process_queue): Likewise.
5018 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5020 (dwarf2_read_addr_index): Likewise.
5021 (follow_die_offset): Likewise.
5022 (dwarf2_fetch_die_loc_sect_off): Likewise.
5023 (dwarf2_fetch_constant_bytes): Likewise.
5024 (dwarf2_fetch_die_type_sect_off): Likewise.
5025 (follow_die_sig_1): Likewise.
5026 (load_full_type_unit): Likewise.
5027 (read_signatured_type): Likewise.
5028 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5029 (dwarf2_cu::~dwarf2_cu): Remove.
5030 (dwarf2_per_objfile::get_cu): New.
5031 (dwarf2_per_objfile::set_cu): New.
5032 (age_cached_comp_units): Rename to...
5033 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5034 to std::unordered_map.
5035 (free_one_cached_comp_unit): Rename to...
5036 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5037 to std::unordered_map.
5038 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5039 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5040 a dwarf2_per_objfile in data.
5041 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5042 (dwarf2_clear_marks): Remove.
5044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5046 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5047 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5048 (init_tu_and_read_dwo_dies): Likewise.
5049 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5050 (cutu_reader::cutu_reader): Likewise.
5051 (load_partial_comp_unit): Likewise.
5052 (process_psymtab_comp_unit): Update.
5053 (build_type_psymtabs_1): Update.
5054 (process_skeletonless_type_unit): Update.
5055 (load_full_comp_unit): Update.
5056 (find_partial_die): Update.
5057 (dwarf2_read_addr_index): Update.
5058 (read_signatured_type): Update.
5060 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5062 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5063 m_header_read_in>: New fields.
5064 <get_header>: New method.
5065 * dwarf2/read.c (per_cu_header_read_in): Remove.
5066 (dwarf2_per_cu_data::get_header): New.
5067 (dwarf2_per_cu_data::addr_size): Update.
5068 (dwarf2_per_cu_data::offset_size): Update.
5069 (dwarf2_per_cu_data::ref_addr_size): Update.
5071 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5073 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5074 (dw2_do_instantiate_symtab): Update.
5075 (queue_and_load_all_dwo_tus): Change parameter from
5076 dwarf2_per_cu_data to dwarf2_cu.
5077 (dwarf2_fetch_die_loc_sect_off): Update.
5078 (dwarf2_fetch_constant_bytes): Update.
5079 (dwarf2_fetch_die_type_sect_off): Update.
5081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5083 * dwarf2/read.c (process_full_comp_unit,
5084 process_full_type_unit): Remove per_cu, per_objfile paramters.
5085 Add dwarf2_cu parameter.
5086 (process_queue): Update.
5088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5090 * dwarf2/read.c (create_cu_from_index_list): Replace
5091 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5092 (create_cus_from_index_list): Likewise.
5093 (create_cus_from_index): Likewise.
5094 (create_signatured_type_table_from_index): Likewise.
5095 (create_cus_from_debug_names_list): Likewise.
5096 (create_cus_from_debug_names): Likewise.
5097 (dwarf2_read_gdb_index): Update.
5098 (dwarf2_read_debug_names): Update.
5100 2020-05-27 Tom Tromey <tom@tromey.com>
5101 Simon Marchi <simon.marchi@efficios.com>
5103 * dwarf2/read.h (struct dwarf2_per_objfile)
5104 <get_type_for_signatured_type, set_type_for_signatured_type>:
5106 <m_type_map>: New member.
5107 (struct signatured_type) <type>: Remove.
5109 (dwarf2_per_objfile::get_type_for_signatured_type,
5110 dwarf2_per_objfile::set_type_for_signatured_type): New.
5111 (get_signatured_type): Use new methods.
5113 2020-05-27 Tom Tromey <tom@tromey.com>
5114 Simon Marchi <simon.marchi@efficios.com>
5116 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5117 (struct dwarf2_per_objfile) <type_units>: New member.
5118 <get_type_unit_group_unshareable>: New method.
5119 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5120 num_symtabs, symtabs>: Remove; move to
5121 type_unit_group_unshareable.
5122 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5123 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5124 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5128 * dwarf2/read.h (struct dwarf2_per_cu_data):
5129 <dwarf2_per_objfile>: Remove.
5130 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5132 (create_signatured_type_table_from_index): Likewise.
5133 (create_signatured_type_table_from_debug_names): Likewise.
5134 (create_debug_type_hash_table): Likewise.
5135 (fill_in_sig_entry_from_dwo_entry): Likewise.
5136 (create_type_unit_group): Likewise.
5137 (read_comp_units_from_section): Likewise.
5138 (create_cus_hash_table): Likewise.
5140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5142 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5143 dwarf2_per_cu_data::dwarf2_per_objfile.
5144 (compute_compunit_symtab_includes): Likewise.
5145 (dwarf2_cu::start_symtab): Likewise.
5147 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5149 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5151 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5152 (read_namespace_alias): Update.
5153 (lookup_die_type): Update.
5154 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5157 (disassemble_dwarf_expression): Update.
5159 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5161 * dwarf2/read.h (struct dwarf2_queue_item): Add
5162 dwarf2_per_objfile parameter, assign new parameter.
5163 <per_objfile>: New field.
5164 * dwarf2/read.c (free_one_cached_comp_unit): Add
5165 dwarf2_per_objfile parameter.
5166 (queue_comp_unit): Likewise.
5167 (dw2_do_instantiate_symtab): Update.
5168 (process_psymtab_comp_unit): Update.
5169 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5170 (process_imported_unit_die): Update.
5171 (queue_and_load_dwo_tu): Update.
5172 (follow_die_offset): Update.
5173 (follow_die_sig_1): Update.
5175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5177 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5178 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5179 (read_call_site_scope): Assign per_objfile.
5180 (dwarf2_per_cu_data::objfile): Remove.
5181 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5182 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5183 dwarf2_per_objfile parameter.
5184 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5185 dwarf2_per_objfile parameter.
5186 (dwarf_expr_reg_to_entry_parameter): Add output
5187 dwarf2_per_objfile parameter.
5188 (locexpr_get_frame_base): Update.
5189 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5190 <push_dwarf_reg_entry_value>: Update.
5191 <call_site_to_target_addr>: Update.
5192 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5194 (value_of_dwarf_reg_entry): Update.
5195 (rw_pieced_value): Update.
5196 (indirect_synthetic_pointer): Update.
5197 (dwarf2_evaluate_property): Update.
5198 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5200 (locexpr_read_variable): Update.
5201 (locexpr_get_symbol_read_needs): Update.
5202 (loclist_read_variable): Update.
5204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5206 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5207 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5208 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5210 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5211 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5212 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5214 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5215 sect_variable_value): Add dwarf2_per_objfile parameter.
5216 (class dwarf_evaluate_loc_desc) <dwarf_call,
5217 dwarf_variable_value>: Update.
5218 (fetch_const_value_from_synthetic_pointer): Add
5219 dwarf2_per_objfile parameter.
5220 (fetch_const_value_from_synthetic_pointer): Update.
5221 (coerced_pieced_ref): Update.
5222 (class symbol_needs_eval_context) <dwarf_call,
5223 dwarf_variable_value>: Update.
5224 (dwarf2_compile_expr_to_ax): Update.
5226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5228 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5230 (dwarf2_evaluate_loc_desc_full): Update.
5232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5234 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5236 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5237 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5238 dwarf2_per_objfile parameter.
5239 (decode_debug_loc_dwo_addresses): Likewise.
5240 (dwarf2_find_location_expression): Update.
5241 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5242 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5244 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5246 (locexpr_describe_location_1): Likewise.
5247 (locexpr_describe_location): Update.
5249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5251 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5253 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5254 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5255 (dwarf2_compile_property_to_c): Update.
5256 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5257 use text offset from objfile.
5258 (locexpr_tracepoint_var_ref): Update.
5259 (locexpr_generate_c_location): Update.
5260 (loclist_describe_location): Update.
5261 (loclist_tracepoint_var_ref): Update.
5262 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5263 dwarf2_per_objfile parameter.
5264 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5265 use text offset from objfile.
5266 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5270 * dwarf2/expr.h (struct dwarf_expr_context)
5271 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5273 <per_objfile>: New member.
5274 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5275 dwarf2_per_objfile parameter. Don't set offset, set
5277 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5278 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5279 a dwarf2_per_objfile object instead of an offset.
5280 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5282 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5283 to dwarf2_expr_executor constructor. Don't set offset.
5284 (dwarf2_fetch_cfa_info): Update.
5285 (struct dwarf2_frame_cache) <text_offset>: Remove.
5286 <per_objfile>: New field.
5287 (dwarf2_frame_cache): Update.
5288 (dwarf2_frame_prev_register): Update.
5289 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5290 <dwarf_evaluate_loc_desc>: Add constructor.
5291 (dwarf2_evaluate_loc_desc_full): Update.
5292 (dwarf2_locexpr_baton_eval): Update.
5293 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5295 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5299 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5300 addr_sized_int_type>: Move to dwarf2_cu.
5301 <int_type>: Move to dwarf2_per_objfile.
5302 (struct dwarf2_per_objfile) <int_type>: Move here.
5303 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5304 addr_sized_int_type>: Move here.
5305 (read_func_scope): Update.
5306 (read_array_type): Update.
5307 (read_tag_string_type): Update.
5308 (attr_to_dynamic_prop): Update.
5309 (dwarf2_per_cu_data::int_type): Rename to...
5310 (dwarf2_per_objfile::int_type): ... this.
5311 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5312 (dwarf2_cu::addr_sized_int_type): ... this.
5313 (read_subrange_type): Update.
5314 (dwarf2_per_cu_data::addr_type): Rename to...
5315 (dwarf2_cu::addr_type): ... this.
5316 (set_die_type): Update.
5318 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5320 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5321 data through per_cu->cu.
5323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5325 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5326 dwarf2_per_cu_data parameter fo dwarf2_cu.
5327 (lookup_dwo_type_unit): Likewise.
5328 (read_cutu_die_from_dwo): Likewise.
5329 (lookup_dwo_unit): Likewise.
5330 (open_and_init_dwo_file): Likewise.
5331 (lookup_dwo_cutu): Likewise.
5332 (lookup_dwo_comp_unit): Likewise.
5333 (lookup_dwo_type_unit): Likewise.
5334 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5335 (cutu_reader::cutu_reader): Update.
5337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5339 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5341 (process_full_type_unit): Likewise.
5342 (process_queue): Update.
5344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5346 * dwarf2/read.c (recursively_compute_inclusions): Add
5347 dwarf2_per_objfile parameter.
5348 (compute_compunit_symtab_includes): Likewise.
5349 (process_cu_includes): Update.
5351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5353 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5355 (create_type_unit_group): Update.
5356 (process_psymtab_comp_unit_reader): Update.
5357 (build_type_psymtabs_reader): Update.
5359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5361 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5362 object through m_this_cu->cu.
5364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5366 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5368 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5370 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5372 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5373 per_objfile parameter.
5374 (load_full_type_unit): Add per_objfile parameter.
5375 (read_signatured_type): Likewise.
5376 (load_full_comp_unit): Likewise.
5377 (load_cu): Likewise.
5378 (dw2_do_instantiate_symtab): Likewise.
5379 (dw2_get_file_names): Likewise.
5380 (dw2_map_symtabs_matching_filename): Update.
5381 (dw_expand_symtabs_matching_file_matcher): Update.
5382 (dw2_map_symbol_filenames): Update.
5383 (process_psymtab_comp_unit): Add per_objfile parameter.
5384 (build_type_psymtabs_1): Update.
5385 (process_skeletonless_type_unit): Update.
5386 (dwarf2_build_psymtabs_hard): Update.
5387 (load_partial_comp_unit): Add per_objfile parameter.
5388 (scan_partial_symbols): Update.
5389 (load_full_comp_unit): Add per_objfile parameter.
5390 (process_imported_unit_die): Update.
5391 (create_cus_hash_table): Update.
5392 (find_partial_die): Update.
5393 (dwarf2_read_addr_index): Update.
5394 (follow_die_offset): Update.
5395 (dwarf2_fetch_die_loc_sect_off): Update.
5396 (dwarf2_fetch_constant_bytes): Update.
5397 (dwarf2_fetch_die_type_sect_off): Update.
5398 (follow_die_sig_1): Update.
5399 (load_full_type_unit): Add per_objfile parameter.
5400 (read_signatured_type): Likewise.
5402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5404 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5407 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5409 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5410 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5411 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5413 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5414 (create_cus_from_index): Update.
5415 (dwarf2_read_gdb_index): Update.
5416 (create_cus_from_debug_names): Update.
5417 (dwarf2_read_debug_names): Update.
5418 (get_abbrev_section_for_cu): Update.
5419 (create_all_comp_units): Update.
5420 (read_attribute_value): Update.
5421 (get_debug_line_section): Update.
5422 * dwarf2/index-cache.c (index_cache::store): Update.
5423 * dwarf2/index-write.c (save_gdb_index_command): Update.
5424 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5426 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5428 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5430 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5431 dwarf2_per_cu_data::per_bfd.
5432 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5433 (create_type_unit_group): Likewise.
5434 (queue_comp_unit): Remove reference to
5435 per_cu->dwarf2_per_objfile.
5436 (maybe_queue_comp_unit): Likewise.
5437 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5438 (create_cus_hash_table): Assign new field.
5440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5442 * dwarf2/read.c: Replace
5443 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5444 dwarf2_cu->per_objfile throughout.
5446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5448 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5449 parameter, don't use per_cu->dwarf2_per_objfile.
5450 (dw2_instantiate_symtab): Likewise.
5451 (dw2_find_last_source_symtab): Update.
5452 (dw2_map_expand_apply): Update.
5453 (dw2_lookup_symbol): Update.
5454 (dw2_expand_symtabs_for_function): Update.
5455 (dw2_expand_all_symtabs): Update.
5456 (dw2_expand_symtabs_with_fullname): Update.
5457 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5458 don't use per_cu->dwarf2_per_objfile.
5459 (dw2_expand_marked_cus): Update.
5460 (dw2_find_pc_sect_compunit_symtab): Update.
5461 (dw2_debug_names_lookup_symbol): Update.
5462 (dw2_debug_names_expand_symtabs_for_function): Update.
5463 (dw2_debug_names_map_matching_symbols): Update.
5464 (dwarf2_psymtab::expand_psymtab): Update.
5466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5468 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5469 <per_objfile>: New member.
5470 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5471 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5473 (cutu_reader::cutu_reader): Update.
5474 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5478 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5479 struct dwarf2_per_objfile.
5480 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5482 * dwarf2/read.c (set_die_type): Update.
5483 (get_die_type_at_offset): Update.
5485 2020-05-27 Tom Tromey <tom@tromey.com>
5486 Simon Marchi <simon.marchi@efficios.com>
5488 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5490 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5491 get_symtab, set_symtab>: New methods.
5492 <m_symtabs>: New field.
5493 (struct dwarf2_psymtab): Derive from partial_symtab.
5494 <readin_p, get_compunit_symtab>: Declare methods.
5495 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5496 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5498 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5499 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5500 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5501 (dw2_symtab_iter_next, dw2_print_stats)
5502 (dw2_expand_symtabs_with_fullname)
5503 (dw2_expand_symtabs_matching_one)
5504 (dw_expand_symtabs_matching_file_matcher)
5505 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5506 (dw2_debug_names_iterator::next)
5507 (dw2_debug_names_map_matching_symbols)
5508 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5509 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5510 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5512 (get_compunit_symtab, process_full_comp_unit)
5513 (process_full_type_unit): Update.
5514 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5516 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5518 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5519 then introduce a new dwarf2_per_objfile type.
5520 <read_line_string>: Move to the new dwarf2_per_objfile type.
5521 <objfile>: Likewise.
5522 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5523 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5524 dwarf2_per_objfile->per_bfd.
5525 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5526 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5527 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5528 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5529 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5530 (dwarf2_per_objfile::locate_sections): Rename to...
5531 (dwarf2_per_bfd::locate_sections): ... this.
5532 (dwarf2_per_objfile::get_cutu): Rename to...
5533 (dwarf2_per_bfd::get_cutu): ... this.
5534 (dwarf2_per_objfile::get_cu): Rename to...
5535 (dwarf2_per_bfd::get_cu): ... this.
5536 (dwarf2_per_objfile::get_tu): Rename to...
5537 (dwarf2_per_bfd::get_tu): ... this.
5538 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5539 (dwarf2_per_bfd::allocate_per_cu): ... this.
5540 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5541 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5542 (get_gdb_index_contents_ftype): Change parameter from
5543 dwarf2_per_objfile to dwarf2_per_bfd.
5544 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5545 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5547 2020-05-27 Tom Tromey <tom@tromey.com>
5548 Simon Marchi <simon.marchi@efficios.com>
5550 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5551 (allocate_piece_closure): Set "per_objfile" member.
5552 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5553 (locexpr_describe_location, loclist_describe_location): Use new
5555 * dwarf2/read.c (read_call_site_scope)
5556 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5557 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5558 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5559 handle_data_member_location): Set per_objfile member.
5560 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5562 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5564 2020-05-27 Tom Tromey <tom@tromey.com>
5566 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5567 allocate_signatured_type>: Declare new methods.
5568 <m_num_psymtabs>: New member.
5569 (struct dwarf2_per_cu_data) <index>: New member.
5570 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5571 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5572 (create_cu_from_index_list): Use allocate_per_cu.
5573 (create_signatured_type_table_from_index)
5574 (create_signatured_type_table_from_debug_names)
5575 (create_debug_type_hash_table, add_type_unit)
5576 (read_comp_units_from_section): Use allocate_signatured_type.
5578 2020-05-27 Tom Tromey <tom@tromey.com>
5580 * psymtab.c (partial_map_expand_apply)
5581 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5582 (psym_lookup_global_symbol_language)
5583 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5584 (psym_print_stats, psym_expand_symtabs_for_function)
5585 (psym_map_symbol_filenames, psym_map_matching_symbols)
5586 (psym_expand_symtabs_matching)
5587 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5588 (maintenance_check_psymtabs): Update.
5589 * psympriv.h (struct partial_symtab) <readin_p,
5590 get_compunit_symtab>: Add objfile parameter.
5591 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5593 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5594 get_compunit_symtab>: Likewise.
5595 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5597 2020-05-27 Tom Tromey <tom@tromey.com>
5599 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5601 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5602 (create_cu_from_index_list)
5603 (create_signatured_type_table_from_index)
5604 (create_signatured_type_table_from_debug_names)
5605 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5606 (dwarf2_create_include_psymtab)
5607 (create_debug_type_hash_table, add_type_unit)
5608 (create_type_unit_group, read_comp_units_from_section)
5609 (dwarf2_compute_name, create_cus_hash_table)
5610 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5611 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5613 (dw2_get_real_path): Likewise. Change argument to
5616 2020-05-27 Luis Machado <luis.machado@linaro.org>
5619 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5620 for ldrd (immediate).
5622 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624 * command.h: Add comment giving the name of class_tui.
5625 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5626 create the fake command for the help for class_tui.
5628 2020-05-26 Tom Tromey <tromey@adacore.com>
5630 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5631 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5632 (val_atr): New function.
5633 (value_val_atr): Use it.
5634 * ada-valprint.c (print_optional_low_bound): Change low bound
5636 (val_print_packed_array_elements): Don't call discrete_position.
5637 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5638 discrete_position for enum types.
5639 * language.c (default_print_array_index): Change type.
5640 * language.h (struct language_defn) <la_print_array_index>: Add
5641 index_type parameter, change type of index_value.
5642 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5643 (default_print_array_index): Update.
5644 * valprint.c (maybe_print_array_index): Don't call
5645 value_from_longest. Update.
5646 (value_print_array_elements): Don't call discrete_position.
5648 2020-05-26 Tom Tromey <tromey@adacore.com>
5650 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5651 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5653 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5656 * avr-tdep.c (avr_integer_to_address): Return data or code
5657 address accordingly to the second 'type' argument of the
5660 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5662 * infcmd.c, inferior.h: (construct_inferior_arguments):
5663 Moved function from here to gdbsupport/common-inferior.{h,cc}
5665 2020-05-23 Tom Tromey <tom@tromey.com>
5667 Revert commit eca1f90c:
5668 * NEWS: Remove entry for completion styling.
5669 * completer.c (_rl_completion_prefix_display_length): Move
5671 (gdb_fnprint): Revert.
5672 (gdb_display_match_list_1): Likewise.
5673 * cli/cli-style.c (completion_prefix_style)
5674 (completion_difference_style, completion_suffix_style): Remove.
5675 (_initialize_cli_style): Revert.
5676 * cli/cli-style.h (completion_prefix_style)
5677 (completion_difference_style, completion_suffix_style): Don't
5680 2020-05-24 Pedro Alves <palves@redhat.com>
5682 * symtab.c (completion_list_add_name): Return boolean indication
5683 of whether the symbol matched.
5684 (completion_list_add_symbol): Don't try to remove C++ aliases if
5685 the symbol didn't match in the first place.
5686 * symtab.h (completion_list_add_name): Return bool.
5688 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5690 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5693 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5697 2020-05-23 Tom Tromey <tom@tromey.com>
5699 * NEWS: Add entry for completion styling.
5700 * completer.c (_rl_completion_prefix_display_length): Move
5701 declaration earlier.
5702 (gdb_fnprint): Use completion_style.
5703 (gdb_display_match_list_1): Likewise.
5704 * cli/cli-style.c (completion_prefix_style)
5705 (completion_difference_style, completion_suffix_style): New
5707 (_initialize_cli_style): Register new globals.
5708 * cli/cli-style.h (completion_prefix_style)
5709 (completion_difference_style, completion_suffix_style): Declare.
5711 2020-05-23 Pedro Alves <palves@redhat.com>
5713 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5714 (parse_escape): Use ISDIGIT instead of isdigit.
5715 (puts_debug): Use gdb_isprint instead of isprint.
5716 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5717 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5718 ISSPACE instead of isspace.
5719 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5721 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5722 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5723 instead of isxdigit and ISDIGIT instead of isdigit.
5725 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5727 * gdbtypes.h (struct type) <field>: New method.
5728 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5731 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5733 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5734 (TYPE_FIELDS): Use type::fields. Change all call sites that
5735 modify the propery to use type::set_fields instead.
5737 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5739 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5740 type::num_fields instead.
5742 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5744 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5746 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5747 that modify the number of fields to use type::set_num_fields
5750 2020-05-22 Tom Tromey <tromey@adacore.com>
5752 * compile/compile-object-load.h (munmap_list_free): Don't
5755 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5757 * annotate.c (annotate_source_line): Update return type, add call
5758 to update current symtab and line.
5759 * annotate.h (annotate_source_line): Update return type, and
5760 extend header comment.
5761 * source.c (info_line_command): Check annotation_level before
5762 calling annotate_source_line.
5763 * stack.c (print_frame_info): If calling annotate_source_line
5764 returns true, then don't print any other source line information.
5766 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5768 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5770 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5772 * coffread.c (patch_type): Remove NULL check before xfree.
5773 * corefile.c (set_gnutarget): Likewise.
5774 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5775 * exec.c (build_section_table): Likewise.
5776 * remote.c (remote_target::pass_signals): Likewise.
5777 * utils.c (n_spaces): Likewise.
5778 * cli/cli-script.c (document_command): Likewise.
5779 * i386-windows-tdep.c (core_process_module_section): Likewise.
5780 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5782 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5784 * symfile.c (reread_symbols): Clear objfile's section_offsets
5785 vector and section indices, re-compute them by calling
5788 2020-05-20 Tom Tromey <tromey@adacore.com>
5790 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5791 (desc_one_bound, desc_index_type): Compute field name.
5793 2020-05-20 Tom de Vries <tdevries@suse.de>
5796 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5798 2020-05-20 Alan Modra <amodra@gmail.com>
5801 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5803 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5804 passed to bfd_set_filename.
5805 * symfile-mem.c (add_vsyscall_page): Likewise for string
5806 passed to symbol_file_add_from_memory.
5807 (symbol_file_add_from_memory): Make name param a const char* and
5810 2020-05-20 Alan Modra <amodra@gmail.com>
5812 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5813 rather than accessing bfd->filename directly.
5814 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5815 and use bfd_section_name.
5816 * dwarf2/frame.c (decode_frame_entry): Likewise.
5817 * exec.c (exec_set_section_address): Likewise.
5818 * solib-aix.c (solib_aix_bfd_open): Likewise.
5819 * stap-probe.c (get_stap_base_address): Likewise.
5820 * symfile.c (reread_symbols): Likewise.
5822 2020-05-19 Tom Tromey <tromey@adacore.com>
5824 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5826 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5828 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5830 2020-05-19 Pedro Alves <palves@redhat.com>
5832 * NEWS (set exec-file-mismatch): Adjust entry.
5833 * exec.c: Include "build-id.h".
5834 (validate_exec_file): Try to match build IDs instead of filenames.
5835 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5836 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5837 and pass down 'warn_if_slow'.
5838 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5839 gdb_bfd_open_closure to pass it down.
5840 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5842 2020-05-19 Pedro Alves <palves@redhat.com>
5844 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5845 * target.c (target_fileio_open_1): Rename to target_fileio_open
5846 and make extern. Use bool.
5847 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5848 (target_fileio_read_alloc_1): Adjust.
5849 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5850 (target_fileio_open_warn_if_slow): Delete declaration.
5852 2020-05-19 Pedro Alves <palves@redhat.com>
5854 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5857 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5859 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5860 whether disp is negative.
5862 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5864 * symfile.h (struct symfile_segment_data)
5865 <~symfile_segment_data>: Remove.
5866 <segment_info>: Change to std::vector.
5867 * symfile.c (default_symfile_segments): Update.
5868 * elfread.c (elf_symfile_segments): Update.
5870 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5872 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5874 <segment_bases, segment_sizes>: Remove.
5875 * symfile.c (default_symfile_segments): Update.
5876 * elfread.c (elf_symfile_segments): Update.
5877 * remote.c (remote_target::get_offsets): Update.
5878 * solib-target.c (solib_target_relocate_section_addresses):
5881 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5883 * symfile.h (struct symfile_segment_data): Initialize fields.
5884 <~symfile_segment_data>: Add.
5885 (symfile_segment_data_up): New.
5886 (struct sym_fns) <sym_segments>: Return a
5887 symfile_segment_data_up.
5888 (default_symfile_segments): Return a symfile_segment_data_up.
5889 (free_symfile_segment_data): Remove.
5890 (get_symfile_segment_data): Return a symfile_segment_data_up.
5891 * symfile.c (default_symfile_segments): Likewise.
5892 (get_symfile_segment_data): Likewise.
5893 (free_symfile_segment_data): Remove.
5894 (symfile_find_segment_sections): Update.
5895 * elfread.c (elf_symfile_segments): Return a
5896 symfile_segment_data_up.
5897 * remote.c (remote_target::get_offsets): Update.
5898 * solib-target.c (solib_target_relocate_section_addresses):
5900 * symfile-debug.c (debug_sym_segments): Return a
5901 symfile_segment_data_up.
5903 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5906 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5907 Hardcode register numbers.
5910 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5911 procfs_find_LDT_entry): Remove.
5912 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5913 procfs_find_LDT_entry): Remove.
5914 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5917 2020-05-17 Pedro Alves <palves@redhat.com>
5918 Andrew Burgess <andrew.burgess@embecosm.com>
5919 Keno Fischer <keno@juliacomputing.com>
5922 * breakpoint.c (build_target_condition_list): Update comments.
5923 (build_target_command_list): Update comments and skip matching
5925 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5926 a separate function. Simplify "set breakpoint auto-hw off"
5928 (insert_breakpoints): Update comment.
5929 (tracepoint_locations_match): New parameter. For breakpoints,
5930 compare location types too, if the caller wants to.
5931 (handle_automatic_hardware_breakpoints): New functions.
5932 (bp_location_is_less_than): Also sort by location type and
5933 hardware breakpoint length.
5934 (update_global_location_list): Handle "set breakpoint auto-hw on"
5936 (update_breakpoint_locations): Ask breakpoint_locations_match to
5937 ignore location types.
5939 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5941 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5944 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5946 * gdbtypes.h (struct type) <name, set_name>: New methods.
5947 (TYPE_CODE): Use type::name. Change all call sites used to set
5948 the name to use type::set_name instead.
5950 2020-05-16 Tom Tromey <tom@tromey.com>
5952 * top.c (quit_force): Update.
5953 * infrun.c (handle_no_resumed): Update.
5954 * top.h (all_uis): New function.
5957 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5959 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5961 2020-05-16 Pedro Alves <palves@redhat.com>
5964 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5966 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5968 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5970 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5971 (sparc64_adi_info): Likewise.
5973 2020-05-15 Tom Tromey <tom@tromey.com>
5975 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5977 (lookup_objfile_from_block): Remove.
5978 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5979 (lookup_global_symbol): Use block_objfile.
5980 * symtab.h (lookup_objfile_from_block): Don't declare.
5981 * printcmd.c (clear_dangling_display_expressions): Use
5983 * parse.c (operator_check_standard): Use block_objfile.
5985 2020-05-15 Tom Tromey <tom@tromey.com>
5987 * language.c (language_alloc_type_symbol): Set
5989 * symtab.c (initialize_objfile_symbol): Remove.
5990 (allocate_symbol): Remove.
5991 (allocate_template_symbol): Remove.
5992 * dwarf2/read.c (fixup_go_packaging): Use "new".
5993 (new_symbol): Use "new".
5994 (read_variable): Don't call initialize_objfile_symbol. Use
5996 (read_func_scope): Use "new".
5997 * xcoffread.c (process_xcoff_symbol): Don't call
5998 initialize_objfile_symbol.
5999 (SYMBOL_DUP): Remove.
6000 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6002 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6003 (allocate_template_symbol): Don't declare.
6004 (struct symbol): Add copy constructor. Change defaults.
6005 * jit.c (finalize_symtab): Use "new".
6006 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6008 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6009 (common_block_end): Use "new".
6010 * mdebugread.c (parse_symbol): Use "new".
6011 (new_symbol): Likewise.
6013 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6015 * NEWS: Mention changes to help and apropos.
6017 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6019 * command.h (enum command_class): Improve comments, document
6020 that class_alias is for user-defined aliases, give the class
6021 name for each class, remove unused class_xdb.
6022 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6023 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6025 * infcmd.c (_initialize_infcmd): Likewise.
6026 * reverse.c (_initialize_reverse): Likewise.
6027 * stack.c (_initialize_stack): Likewise.
6028 * symfile.c (_initialize_symfile): Likewise.
6029 * tracepoint.c (_initialize_tracepoint): Likewise.
6031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6033 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6034 when their aliased command is traversed.
6035 (help_cmd): Add fput_command_names_styled call to
6036 output command name and aliases when command has an alias.
6038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6040 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6041 * cli/cli-decode.c (help_cmd_list): Declare as static,
6042 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6043 a command together with the command.
6044 (fput_command_name_styled, fput_command_names_styled): New functions.
6045 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6046 fput_command_name_styled.
6047 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6048 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6052 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6053 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6054 * command.h (cmd_show_list): Likewise.
6055 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6056 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6058 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6060 * unittests/command-def-selftests.c (traverse_command_structure):
6061 Verify all commands of a list have the same prefix command and
6062 that only the top cmdlist commands have a null prefix.
6064 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6067 as prefix, not one of its aliases.
6068 (set_cmd_prefix): Remove.
6069 (do_add_cmd): Centralize the setting of the prefix of a command, when
6070 command is defined after its full chain of prefix commands.
6071 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6072 (add_setshow_cmd_full): Likewise.
6073 (update_prefix_field_of_prefixed_commands): New function.
6074 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6075 update_prefix_field_of_prefixed_commands.
6076 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6077 addresses of remote_set_cmdlist and remote_show_cmdlist given
6078 as argument, not the address of an argument.
6079 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6080 * gdb/remote.c (_initialize_remote): Likewise.
6082 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6084 * cli/cli-cmds.c (alias_command): Check for an existing alias
6085 using lookup_cmd_composition, as valid_command_p is too strict
6086 and forbids aliases that are the prefix of an existing alias
6088 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6089 command is properly recognised as a valid command.
6091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6093 * unittests/help-doc-selftests.c: Rename to
6094 unittests/command-def-selftests.c
6095 * unittests/command-def-selftests.c (help_doc_tests): Update some
6097 (command_structure_tests, traverse_command_structure): New namespace
6099 (command_structure_invariants_tests): New function.
6100 (_initialize_command_def_selftests) Renamed from
6101 _initialize_help_doc_selftests, register command_structure_invariants
6104 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6106 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6109 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6111 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6112 ada_is_fixed_point_type. Update all callers.
6113 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6115 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6117 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6118 print_fixed_point_type. Update all callers.
6119 * ada-valprint.c (ada_value_print_num): Replace call to
6120 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6122 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6124 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6126 (cpu_supports_bts): Add CV_AMD case.
6128 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6129 Simon Marchi <simon.marchi@efficios.com>
6131 * infrun.c (stop_all_threads): Collect multiple wait events at
6134 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6136 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6139 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6141 * gdbtypes.h (struct type) <code, set_code>: New methods.
6142 (TYPE_CODE): Use type::code. Change all call sites used to set
6143 the code to use type::set_code instead.
6145 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6146 Tom de Vries <tdevries@suse.de>
6147 Pedro Alves <palves@redhat.com>
6150 * infrun.c (stop_all_threads): Do NOT ignore
6151 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6152 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6154 (handle_no_resumed): Remove code handling a live inferior with no
6156 * remote.c (has_single_non_exited_thread): New.
6157 (remote_target::update_thread_list): Do not delete a thread if is
6158 the last thread of the process.
6159 * thread.c (thread_select): Call delete_exited_threads instead of
6162 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6164 * infrun.c (stop_all_threads): Enable/disable thread events of all
6165 targets. Move a debug message denoting the end of the function
6166 into the SCOPED_EXIT block.
6168 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6170 * process-stratum-target.h: Include <set>.
6171 (all_non_exited_process_targets, switch_to_target_no_thread): New
6172 function declarations.
6173 * process-stratum-target.c (all_non_exited_process_targets)
6174 (switch_to_target_no_thread): New function implementations.
6176 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6178 * infrun.c (handle_inferior_event): Extract out a piece of code
6180 (mark_non_executing_threads): ...this new function.
6182 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6184 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6187 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6189 * regcache.c (regcache_read_pc_protected): New function
6190 implementation that returns 0 if the PC cannot read via
6192 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6193 instead of 'regcache_read_pc'.
6194 (keep_going_pass_signal): Ditto.
6196 2020-05-13 Tom Tromey <tromey@adacore.com>
6198 * ada-lang.c (align_value): Remove.
6199 (ada_template_to_fixed_record_type_1): Use align_up.
6201 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6203 * async-event.c: Update the copyright year.
6204 * async-event.h: Update the copyright year.
6206 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6208 * objfiles.h (is_addr_in_objfile,
6209 shared_objfile_contains_address_p): Return bool.
6210 * objfile.c (is_addr_in_objfile,
6211 shared_objfile_contains_address_p): Return bool.
6213 2020-05-11 Tom Tromey <tromey@adacore.com>
6215 * cli/cli-cmds.c (info_command): Restore.
6216 (_initialize_cli_cmds): Use add_prefix_command for "info".
6217 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6219 2020-05-11 Tom Tromey <tromey@adacore.com>
6221 * ada-lang.c (ada_value_primitive_field): Now public.
6222 * ada-lang.h (ada_value_primitive_field): Declare.
6223 * ada-valprint.c (print_field_values): Use
6224 ada_value_primitive_field for wrapper fields.
6226 2020-05-11 Tom de Vries <tdevries@suse.de>
6228 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6231 2020-05-11 Tom de Vries <tdevries@suse.de>
6234 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6235 with length 0, if not gdb-produced.
6236 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6238 2020-05-09 Tom de Vries <tdevries@suse.de>
6241 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6244 2020-05-09 Tom Tromey <tom@tromey.com>
6246 * top.c (server_command): Now bool.
6247 * top.h (server_command): Now bool.
6249 2020-05-08 Tom Tromey <tromey@adacore.com>
6251 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6252 already being processed.
6254 2020-05-08 Tom Tromey <tom@tromey.com>
6256 * printcmd.c (struct display) <next>: Remove.
6257 <display>: New constructor.
6258 <exp_string>: Now a std::string.
6259 <enabled_p>: Now a bool.
6260 (display_number): Move definition earlier.
6261 (displays): Rename from display_chain. Now a std::vector.
6262 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6263 (display_command): Update.
6264 (do_one_display, disable_display)
6265 (enable_disable_display_command, do_enable_disable_display):
6267 (free_display): Remove.
6268 (clear_displays): Rewrite.
6269 (delete_display): Update.
6270 (map_display_numbers): Use function_view. Remove "data"
6272 (do_delete_display): Remove.
6273 (undisplay_command): Update.
6274 (do_one_display, do_displays, disable_display)
6275 (info_display_command): Update.
6276 (do_enable_disable_display): Remove.
6277 (enable_disable_display_command)
6278 (clear_dangling_display_expressions): Update.
6280 2020-05-08 Tom Tromey <tom@tromey.com>
6282 * symtab.c (set_symbol_cache_size)
6283 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6284 (maintenance_print_symbol_cache_statistics): Update.
6285 * symmisc.c (print_symbol_bcache_statistics)
6286 (print_objfile_statistics, maintenance_print_objfiles)
6287 (maintenance_info_symtabs, maintenance_check_symtabs)
6288 (maintenance_expand_symtabs, maintenance_info_line_tables):
6290 * symfile-debug.c (set_debug_symfile): Update.
6291 * source.c (forget_cached_source_info): Update.
6292 * python/python.c (gdbpy_progspaces): Update.
6293 * psymtab.c (maintenance_info_psymtabs): Update.
6294 * probe.c (parse_probes): Update.
6295 * linespec.c (iterate_over_all_matching_symtabs)
6296 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6297 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6298 * exec.c (exec_target::close): Update.
6299 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6300 * breakpoint.c (print_one_breakpoint_location)
6301 (create_longjmp_master_breakpoint)
6302 (create_std_terminate_master_breakpoint): Update.
6303 * progspace.c (program_spaces): Now a std::vector.
6304 (maybe_new_address_space): Update.
6305 (add_program_space): Remove.
6306 (program_space::program_space): Update.
6307 (remove_program_space): Update.
6308 (number_of_program_spaces): Remove.
6309 (print_program_space, update_address_spaces): Update.
6310 * progspace.h (program_spaces): Change type.
6311 (ALL_PSPACES): Remove.
6312 (number_of_program_spaces): Don't declare.
6313 (struct program_space) <next>: Remove.
6315 2020-05-08 Tom Tromey <tom@tromey.com>
6317 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6318 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6319 (enable_break): Update.
6320 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6321 (frv_fdpic_find_canonical_descriptor): Update.
6322 (frv_fetch_objfile_link_map): Update.
6323 * progspace.c (program_space::free_all_objfiles): Update.
6324 (program_space::solibs): New method.
6325 * progspace.h (struct program_space) <solibs>: New method.
6326 * solist.h (master_so_list): Don't declare.
6327 (ALL_SO_LIBS): Remove.
6328 * solib.h (so_list_head): Remove.
6329 (update_solib_list): Update comment.
6330 * solib.c (master_so_list): Remove.
6331 (solib_used, update_solib_list, solib_add)
6332 (info_sharedlibrary_command, clear_solib)
6333 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6335 2020-05-08 Tom Tromey <tom@tromey.com>
6337 * extension.c (extension_languages): Now a std::array.
6338 (ALL_EXTENSION_LANGUAGES): Remove.
6339 (get_ext_lang_defn, get_ext_lang_of_file)
6340 (eval_ext_lang_from_control_command): Update.
6341 (finish_ext_lang_initialization)
6342 (auto_load_ext_lang_scripts_for_objfile)
6343 (ext_lang_type_printers::ext_lang_type_printers)
6344 (apply_ext_lang_type_printers)
6345 (ext_lang_type_printers::~ext_lang_type_printers)
6346 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6347 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6348 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6349 (get_matching_xmethod_workers, ext_lang_colorize)
6350 (ext_lang_before_prompt): Update.
6351 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6353 2020-05-08 Tom Tromey <tom@tromey.com>
6355 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6357 <swap_string, m_string>: Remove.
6358 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6360 * stabsread.c (define_symbol, read_type): Update.
6361 * linespec.c (find_linespec_symbols): Update.
6362 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6363 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6364 * dbxread.c (read_dbx_symtab): Update.
6365 * cp-support.h (cp_canonicalize_string_full)
6366 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6367 Return unique_xmalloc_ptr.
6368 * cp-support.c (inspect_type): Update.
6369 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6370 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6372 * c-typeprint.c (print_name_maybe_canonical): Update.
6373 * break-catch-throw.c (check_status_exception_catchpoint):
6376 2020-05-08 Tom de Vries <tdevries@suse.de>
6378 * infrun.c (follow_fork): Copy current_line and current_symtab to
6381 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6383 * async-event.c (struct async_signal_handler, struct
6384 async_event_handler): Reformat, remove typedef.
6386 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6388 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6389 access thistype->main_type->dyn_prop_list directly.
6391 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6393 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6394 (remove_dyn_prop): Remove. Update all users to use
6395 type::remove_dyn_prop.
6396 * gdbtypes.c (remove_dyn_prop): Rename to...
6397 (type::remove_dyn_prop): ... this.
6399 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6401 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6402 (add_dyn_prop): Remove. Update all users to use
6404 * gdbtypes.c (add_dyn_prop): Rename to...
6405 (type::add_dyn_prop): ... this.
6407 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6409 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6410 (get_dyn_prop): Remove. Update all users to use
6412 * gdbtypes.c (get_dyn_prop): Rename to...
6413 (type::dyn_prop): ... this.
6415 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6417 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6419 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6421 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6422 instruction, skip it if it's there.
6424 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6426 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6428 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6430 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6431 * gdbtypes.c (recursive_dump_type): Remove use of
6434 2020-05-03 Tom Tromey <tom@tromey.com>
6436 * breakpoint.c (catch_command, tcatch_command): Remove.
6437 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6440 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6442 (add_internal_problem_command): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 * mips-tdep.c (set_mipsfpu_command): Remove.
6445 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6446 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6447 (_initialize_index_cache): Use add_basic_prefix_cmd.
6448 * memattr.c (dummy_cmd): Remove.
6449 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6450 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6451 (_initialize_tui_win): Use add_basic_prefix_cmd,
6452 add_show_prefix_cmd.
6453 * cli/cli-logging.c (set_logging_command): Remove.
6454 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 (show_logging_command): Remove.
6457 * target.c (target_command): Remove.
6458 (add_target): Use add_basic_prefix_cmd.
6460 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6462 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6464 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6466 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6469 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6471 * nbsd-nat.c (nbsd_enable_proc_events)
6472 (nbsd_nat_target::post_startup_inferior): Add.
6473 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6474 (nbsd_nat_target::update_thread_list): Rewrite.
6475 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6476 "PTRACE_LWP_CREATE".
6477 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6479 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6481 * stack.c (_initialize_stack): Remove duplicated creation
6482 of "frame" command and "f" alias.
6484 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6487 * gdbtypes.c (check_typedef): Calculate size of array of
6490 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6493 * i386-tdep.c (i386_push_dummy_call): Call
6494 i386_thiscall_push_dummy_call.
6495 (i386_thiscall_push_dummy_call): New function.
6496 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6497 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6498 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6500 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6502 * gdbarch.sh (do_read): Add shellcheck disable directive for
6505 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6507 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6508 "referenced but not assigned" warning.
6510 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6512 * gdbarch.sh: Remove code that sets fallbackdefault.
6514 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6516 * gdbarch.sh: Use shell operators && and || instead of
6519 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6521 * gdbarch.sh: Use $(...) instead of `...`.
6523 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6525 * gdbarch.sh: Use double quotes around variables.
6527 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6529 * gdbarch.sh: Use %s with printf, instead of variables in the
6532 2020-04-29 Tom Tromey <tromey@adacore.com>
6535 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6537 (read_enumeration_type): Call
6538 update_enumeration_type_from_children later. Update comments.
6539 (process_enumeration_scope): Don't create type fields.
6541 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6543 * nbsd-tdep.c: Include "xml-syscall.h".
6544 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6546 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6548 * nbsd-nat.c: Include "sys/wait.h".
6549 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6550 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6551 (nbsd_nat_target::remove_exec_catchpoint)
6552 (nbsd_nat_target::set_syscall_catchpoint): Add.
6553 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6554 (nbsd_nat_target::insert_exec_catchpoint)
6555 (nbsd_nat_target::remove_exec_catchpoint)
6556 (nbsd_nat_target::set_syscall_catchpoint): Add.
6557 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6558 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6559 `nbsd_get_syscall_number'.
6561 2020-04-29 Tom Tromey <tom@tromey.com>
6563 * stack.c (print_block_frame_labels): Remove.
6565 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6568 * ada-valprint.c (val_print_packed_array_elements): Move array
6569 end bracket to new line.
6570 (ada_val_print_string): Remove extra spaces before first array
6572 * c-valprint.c (c_value_print_array): Likewise.
6573 * m2-valprint.c (m2_print_array_contents): Likewise.
6574 (m2_value_print_inner): Likewise.
6575 * p-valprint.c (pascal_value_print_inner): Likewise.
6576 * valprint.c (generic_val_print_array): Likewise.
6577 (value_print_array_elements): Move first array element and array
6578 end bracket to new line.
6580 2020-04-29 Tom de Vries <tdevries@suse.de>
6583 * linespec.c (find_method): Fix ix calculation.
6585 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6587 * syscalls/update-netbsd.sh: New file.
6588 * syscalls/netbsd.xml: Regenerate.
6589 * data-directory/Makefile.in: Register `netbsd.xml' in
6592 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6594 * syscalls/update-freebsd.sh: Add double quotes.
6596 2020-04-28 Tom Tromey <tom@tromey.com>
6599 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6600 (cmdpy_init): Allow class_tui.
6602 2020-04-28 Mark Williams <mark@myosotissp.com>
6605 * dwarf2read.c: Add missing assingments to list_in_scope when
6606 start_symtab was already called.
6608 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6611 * dwarf2/read.c (offset_map_type): Use
6612 gdb:hash_enum<sect_offset> as hash function.
6614 2020-04-28 Tom de Vries <tdevries@suse.de>
6616 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6617 with DW_AT_signature.
6619 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6621 * configure.ac: Remove check for fs_base/gs_base in
6623 * configure: Re-generate.
6624 * config.in: Re-generate.
6625 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6626 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6627 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6629 2020-04-27 Luis Machado <luis.machado@linaro.org>
6631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6632 problematic inline frame unwinding situation.
6633 * frame.c (frame_id_computed_p): New function.
6634 * frame.h (frame_id_computed_p): New prototype.
6636 2020-04-26 Tom Tromey <tom@tromey.com>
6638 * command.h (enum command_class) <class_pseudo>: Remove.
6640 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6642 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6645 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6647 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6648 `PT_GET_PROCESS_STATE' block.
6650 2020-04-24 Tom Tromey <tom@tromey.com>
6652 * symtab.h (symbol_get_demangled_name): Don't declare.
6653 * symtab.c (symbol_get_demangled_name): Remove.
6654 (general_symbol_info::natural_name)
6655 (general_symbol_info::demangled_name): Update.
6657 2020-04-24 Tom Tromey <tom@tromey.com>
6660 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6662 2020-04-24 Tom Tromey <tom@tromey.com>
6665 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6667 (new_symbol): Likewise.
6668 * compile/compile-object-load.c (get_out_value_type): Use
6669 symbol_matches_search_name.
6671 2020-04-24 Tom Tromey <tom@tromey.com>
6673 * dwarf2/read.c (add_partial_symbol): Do not call
6674 compute_and_set_names.
6676 2020-04-24 Tom Tromey <tom@tromey.com>
6678 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6681 2020-04-24 Tom Tromey <tom@tromey.com>
6683 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6684 (add_psymbol_to_list): New overload. Make old overload call new
6686 * psympriv.h (add_psymbol_to_list): New overload.
6688 2020-04-24 Tom Tromey <tom@tromey.com>
6690 * dwarf2/read.c (partial_die_info::read) <case
6691 DW_AT_linkage_name>: Use value_as_string.
6692 (dwarf2_string_attr): Use value_as_string.
6693 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6695 * dwarf2/attribute.c (attribute::value_as_string): New method.
6697 2020-04-24 Tom Tromey <tom@tromey.com>
6699 * symtab.c (general_symbol_info::natural_name)
6700 (general_symbol_info::demangled_name): Check for language_rust.
6702 2020-04-24 Tom Tromey <tom@tromey.com>
6704 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6705 (dwarf2_physname): ... from here.
6706 (partial_die_info::read): Add Rust "{" hack.
6708 2020-04-24 Tom Tromey <tom@tromey.com>
6710 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6712 (symbol_set_demangled_name): Don't declare.
6713 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6714 symbol_set_demangled_name.
6715 (general_symbol_info::set_language)
6716 (general_symbol_info::compute_and_set_names): Update.
6717 * minsyms.c (minimal_symbol_reader::install): Update.
6718 * dwarf2/read.c (new_symbol): Update.
6720 2020-04-24 Tom Tromey <tromey@adacore.com>
6723 * python/py-type.c (convert_field): Handle
6724 FIELD_LOC_KIND_DWARF_BLOCK.
6725 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6726 (typy_get_dynamic): Nw function.
6727 (type_object_getset): Add "dynamic".
6730 2020-04-24 Tom Tromey <tromey@adacore.com>
6732 * ada-typeprint.c (print_choices, print_variant_part)
6733 (print_record_field_types_dynamic): New functions.
6734 (print_record_field_types): Use print_record_field_types_dynamic.
6736 2020-04-24 Tom Tromey <tromey@adacore.com>
6738 * dwarf2/read.c (handle_data_member_location): New overload.
6739 (dwarf2_add_field): Use it.
6740 (decode_locdesc): Add "computed" parameter. Update comment.
6741 * gdbtypes.c (is_dynamic_type_internal): Also look for
6742 FIELD_LOC_KIND_DWARF_BLOCK.
6743 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6744 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6745 virtual base classes.
6746 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6747 FIELD_LOC_KIND_DWARF_BLOCK.
6749 2020-04-24 Tom Tromey <tromey@adacore.com>
6751 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6752 * gdbtypes.c (is_dynamic_type_internal): Check
6753 TYPE_HAS_DYNAMIC_LENGTH.
6754 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6755 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6757 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6760 2020-04-24 Tom Tromey <tromey@adacore.com>
6762 * dwarf2/read.c (struct variant_field): Rewrite.
6763 (struct variant_part_builder): New.
6764 (struct nextfield): Remove "variant" field. Add "offset".
6765 (struct field_info): Add "current_variant_part" and
6767 (alloc_discriminant_info): Remove.
6768 (alloc_rust_variant): New function.
6769 (quirk_rust_enum): Update.
6770 (dwarf2_add_field): Set "offset" member. Don't handle
6771 DW_TAG_variant_part.
6772 (offset_map_type): New typedef.
6773 (convert_variant_range, create_one_variant)
6774 (create_one_variant_part, create_variant_parts)
6775 (add_variant_property): New functions.
6776 (dwarf2_attach_fields_to_type): Call add_variant_property.
6777 (read_structure_type): Don't handle DW_TAG_variant_part.
6778 (handle_variant_part, handle_variant): New functions.
6779 (handle_struct_member_die): Use them.
6780 (process_structure_scope): Don't handle variant parts.
6781 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6782 (struct discriminant_info): Remove.
6783 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6784 (struct main_type) <flag_discriminated_union>: Remove.
6785 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6786 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6787 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6789 * valops.c (value_union_variant): Remove.
6790 * value.h (value_union_variant): Don't declare.
6792 2020-04-24 Tom Tromey <tromey@adacore.com>
6794 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6795 (ada_value_primitive_packed_val): Update.
6796 * ada-valprint.c (ada_value_print_1): Update.
6797 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6798 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6799 just an address. Use evaluate_for_locexpr_baton.
6800 (dwarf2_evaluate_property): Update.
6801 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6803 * findvar.c (default_read_var_value): Update.
6804 * gdbtypes.c (compute_variant_fields_inner)
6805 (resolve_dynamic_type_internal): Update.
6806 (resolve_dynamic_type): Change type of valaddr parameter.
6807 * gdbtypes.h (resolve_dynamic_type): Update.
6808 * valarith.c (value_subscripted_rvalue): Update.
6809 * value.c (value_from_contents_and_address): Update.
6811 2020-04-24 Tom Tromey <tromey@adacore.com>
6813 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6814 "push_initial_value" parameter.
6815 (dwarf2_evaluate_property): Likewise.
6816 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6818 2020-04-24 Tom Tromey <tromey@adacore.com>
6820 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6821 (variant::matches, compute_variant_fields_recurse)
6822 (compute_variant_fields_inner, compute_variant_fields): New
6824 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6825 Use resolved_type after type is made.
6826 (operator==): Add new cases.
6827 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6828 (struct discriminant_range, struct variant, struct variant_part):
6830 (union dynamic_prop_data) <variant_parts, original_type>: New
6832 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6833 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6835 * value.c (unpack_bits_as_long): Now public.
6836 * value.h (unpack_bits_as_long): Declare.
6838 2020-04-24 Tom Tromey <tromey@adacore.com>
6840 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6841 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6843 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6845 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6847 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6849 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6850 (remove_fork_catchpoint, post_startup_inferior)
6851 (post_attach): Move...
6852 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6853 (remove_fork_catchpoint, post_startup_inferior)
6854 (post_attach): ...here.
6855 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6856 (remove_fork_catchpoint, post_startup_inferior)
6857 (post_attach): Move...
6858 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6859 (remove_fork_catchpoint, post_startup_inferior)
6860 (post_attach): ...here.
6862 2020-04-24 Tom Tromey <tromey@adacore.com>
6864 * nat/windows-nat.h (struct windows_thread_info)
6865 <pc_adjusted>: New member.
6866 * windows-nat.c (windows_fetch_one_register): Check
6868 (windows_nat_target::get_windows_debug_event)
6869 (windows_nat_target::wait): Set pc_adjusted.
6871 2020-04-24 Tom de Vries <tdevries@suse.de>
6873 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6874 Run gdb-add-index inside temp dir.
6876 2020-04-23 Tom Tromey <tromey@adacore.com>
6878 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6881 2020-04-23 Luis Machado <luis.machado@linaro.org>
6883 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6884 get_frame_register instead of gdbarch_unwind_pc.
6886 2020-04-23 Tom de Vries <tdevries@suse.de>
6888 * symtab.c (lookup_global_symbol): Prefer def over decl.
6890 2020-04-23 Tom de Vries <tdevries@suse.de>
6893 * block.c (best_symbol, better_symbol): Promote to external.
6894 * block.h (best_symbol, better_symbol): Declare.
6895 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6898 2020-04-23 Tom Tromey <tromey@adacore.com>
6901 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6902 "const char *", not a "const std::string &".
6903 <name_and_matcher::operator==>: Update.
6904 * unittests/lookup_name_info-selftests.c: Change type of
6907 2020-04-23 Tom Tromey <tom@tromey.com>
6909 * inferior.h (iterate_over_inferiors): Don't declare.
6910 * inferior.c (iterate_over_inferiors): Remove.
6911 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6913 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6914 use iterate_over_inferiors.
6915 (darwin_resume_inferior_it)
6916 (struct resume_inferior_threads_param)
6917 (darwin_resume_inferior_threads_it): Remove.
6918 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6920 2020-04-23 Tom de Vries <tdevries@suse.de>
6922 * blockframe.c (find_pc_partial_function): Use
6923 find_pc_sect_compunit_symtab rather than
6924 objfile->sf->qf->find_pc_sect_compunit_symtab.
6926 2020-04-22 Tom de Vries <tdevries@suse.de>
6929 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6932 2020-04-22 Tom de Vries <tdevries@suse.de>
6935 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6938 2020-04-22 Tom de Vries <tdevries@suse.de>
6941 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6942 CU if already created.
6944 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6946 * infrun.c (displaced_step_fixup): Switch to the event_thread
6947 before calling displaced_step_restore, not after.
6949 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6951 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6952 its inferior is not recorded by us.
6953 (record_btrace_target_open): Replace call to
6954 all_non_exited_threads () with call to current_inferior
6955 ()->non_exited_threads ().
6956 (record_btrace_target::stop_recording): Likewise.
6957 (record_btrace_target::close): Likewise.
6958 (record_btrace_target::wait): Likewise.
6959 (record_btrace_target::record_stop_replaying): Likewise.
6961 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6963 * btrace.c (btrace_enable): Throw an error on double enables and
6964 when enabling recording fails.
6965 (btrace_disable): Throw an error if the thread is not recorded.
6967 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6969 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6970 request if we do not have a thread_info.
6972 2020-04-21 Tom de Vries <tdevries@suse.de>
6976 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6977 exception in get_frame_id.
6979 2020-04-20 Tom Tromey <tromey@adacore.com>
6981 * python/python.c (struct gdbpy_event): Mark move constructor as
6983 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6984 constructor as noexcept.
6985 * completer.h (struct completion_result): Mark move constructor as
6987 * completer.c (completion_result::completion_result): Use
6988 initialization style. Don't call reset_match_list.
6990 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6992 * MAINTAINERS (Write After Approval): Add myself.
6994 2020-04-18 Tom Tromey <tom@tromey.com>
6996 * windows-tdep.c (init_w32_command_list)
6997 (w32_prefix_command_valid): Restore.
6998 (_initialize_windows_tdep): Call init_w32_command_list.
7000 2020-04-18 Tom Tromey <tom@tromey.com>
7002 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7003 * value.c (value_fn_field): Update.
7004 * valops.c (find_function_in_inferior)
7005 (value_allocate_space_in_inferior): Update.
7006 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7008 * tui/tui-source.c (tui_source_window::set_contents): Update.
7009 * symtab.c (lookup_global_or_static_symbol)
7010 (find_function_start_sal_1, skip_prologue_sal)
7011 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7012 * symmisc.c (dump_msymbols, dump_symtab_1)
7013 (maintenance_print_one_line_table): Update.
7014 * symfile.c (init_entry_point_info, section_is_mapped)
7015 (list_overlays_command, simple_read_overlay_table)
7016 (simple_overlay_update_1): Update.
7017 * stap-probe.c (handle_stap_probe): Update.
7018 * stabsread.c (dbx_init_float_type, define_symbol)
7019 (read_one_struct_field, read_enum_type, read_range_type): Update.
7020 * source.c (info_line_command): Update.
7021 * python/python.c (gdbpy_source_objfile_script)
7022 (gdbpy_execute_objfile_script): Update.
7023 * python/py-type.c (save_objfile_types): Update.
7024 * python/py-objfile.c (py_free_objfile): Update.
7025 * python/py-inferior.c (python_new_objfile): Update.
7026 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7027 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7028 (maintenance_check_psymtabs): Update.
7029 * printcmd.c (info_address_command): Update.
7030 * objfiles.h (struct objfile) <arch>: New method, from
7032 (get_objfile_arch): Don't declare.
7033 * objfiles.c (get_objfile_arch): Remove.
7034 (filter_overlapping_sections): Update.
7035 * minsyms.c (msymbol_is_function): Update.
7036 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7037 (output_nondebug_symbol): Update.
7038 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7039 (mdebug_expand_psymtab): Update.
7040 * machoread.c (macho_add_oso_symfile): Update.
7041 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7043 * linux-fork.c (checkpoint_command): Update.
7044 * linespec.c (convert_linespec_to_sals): Update.
7045 * jit.c (finalize_symtab): Update.
7046 * infrun.c (insert_exception_resume_from_probe): Update.
7047 * ia64-tdep.c (ia64_find_unwind_table): Update.
7048 * hppa-tdep.c (internalize_unwinds): Update.
7049 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7051 * gcore.c (call_target_sbrk): Update.
7052 * elfread.c (record_minimal_symbol, elf_symtab_read)
7053 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7054 (elf_gnu_ifunc_resolve_by_got): Update.
7055 * dwarf2/read.c (create_addrmap_from_index)
7056 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7057 (read_debug_names_from_section)
7058 (process_psymtab_comp_unit_reader, add_partial_symbol)
7059 (add_partial_subprogram, process_full_comp_unit)
7060 (read_file_scope, read_func_scope, read_lexical_block_scope)
7061 (read_call_site_scope, dwarf2_ranges_read)
7062 (dwarf2_record_block_ranges, dwarf2_add_field)
7063 (mark_common_block_symbol_computed, read_tag_pointer_type)
7064 (read_tag_string_type, dwarf2_init_float_type)
7065 (dwarf2_init_complex_target_type, read_base_type)
7066 (partial_die_info::read, partial_die_info::read)
7067 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7068 (dwarf2_fetch_die_loc_sect_off): Update.
7069 * dwarf2/loc.c (dwarf2_find_location_expression)
7070 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7071 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7072 (dwarf2_loc_desc_get_symbol_read_needs)
7073 (locexpr_describe_location_piece, locexpr_describe_location_1)
7074 (loclist_describe_location): Update.
7075 * dwarf2/index-write.c (write_debug_names): Update.
7076 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7077 * dtrace-probe.c (dtrace_process_dof): Update.
7078 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7079 (process_one_symbol): Update.
7080 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7081 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7082 (coff_read_enum_type): Update.
7083 * cli/cli-cmds.c (edit_command, list_command): Update.
7084 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7085 * breakpoint.c (create_overlay_event_breakpoint)
7086 (create_longjmp_master_breakpoint)
7087 (create_std_terminate_master_breakpoint)
7088 (create_exception_master_breakpoint, get_sal_arch): Update.
7089 * block.c (block_gdbarch): Update.
7090 * annotate.c (annotate_source_line): Update.
7092 2020-04-17 Tom Tromey <tromey@adacore.com>
7094 * auto-load.c (show_auto_load_cmd): Remove.
7095 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7096 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7097 (maintenance_print_arc_command): Remove.
7098 * tui/tui-win.c (tui_command): Remove.
7099 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7100 * tui/tui-layout.c (tui_layout_command): Remove.
7101 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7102 * python/python.c (user_set_python, user_show_python): Remove.
7103 (_initialize_python): Use add_basic_prefix_cmd,
7104 add_show_prefix_cmd.
7105 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7106 (install_gdb_commands): Use add_basic_prefix_cmd,
7107 add_show_prefix_cmd.
7108 (info_guile_command): Remove.
7109 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7110 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7111 add_show_prefix_cmd.
7112 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7113 Remove do_set and do_show parameters.
7114 * cli/cli-style.c (set_style, show_style): Remove.
7115 (_initialize_cli_style): Use add_basic_prefix_cmd,
7116 add_show_prefix_cmd.
7117 (cli_style_option::add_setshow_commands): Remove do_set and
7119 (cli_style_option::add_setshow_commands): Use
7120 add_basic_prefix_cmd, add_show_prefix_cmd.
7121 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7122 (set_style_name): Remove.
7123 * cli/cli-dump.c (dump_command, append_command): Remove.
7124 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7125 (tekhex_dump_command, binary_dump_command)
7126 (binary_append_command): Remove.
7127 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7128 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7129 (init_w32_command_list): Remove; move into ...
7130 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7131 * valprint.c (set_print, show_print, set_print_raw)
7132 (show_print_raw): Remove.
7133 (_initialize_valprint): Use add_basic_prefix_cmd,
7134 add_show_prefix_cmd.
7135 * typeprint.c (set_print_type, show_print_type): Remove.
7136 (_initialize_typeprint): Use add_basic_prefix_cmd,
7137 add_show_prefix_cmd.
7138 * record.c (set_record_command, show_record_command): Remove.
7139 (_initialize_record): Use add_basic_prefix_cmd,
7140 add_show_prefix_cmd.
7141 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7142 add_show_prefix_cmd.
7143 (info_command, show_command, set_debug, show_debug): Remove.
7144 * top.h (set_history, show_history): Don't declare.
7145 * top.c (set_history, show_history): Remove.
7146 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7147 (unset_tdesc_cmd): Remove.
7148 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7149 add_show_prefix_cmd.
7150 * symtab.c (info_module_command): Remove.
7151 (_initialize_symtab): Use add_basic_prefix_cmd.
7152 * symfile.c (overlay_command): Remove.
7153 (_initialize_symfile): Use add_basic_prefix_cmd.
7154 * sparc64-tdep.c (info_adi_command): Remove.
7155 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7156 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7157 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7158 add_show_prefix_cmd.
7159 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7160 (_initialize_serial): Use add_basic_prefix_cmd,
7161 add_show_prefix_cmd.
7162 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7163 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7164 add_show_prefix_cmd.
7165 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7166 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7167 add_show_prefix_cmd.
7168 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7169 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7170 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7171 add_show_prefix_cmd.
7172 * remote.c (remote_command, set_remote_cmd): Remove.
7173 (_initialize_remote): Use add_basic_prefix_cmd.
7174 * record-full.c (set_record_full_command)
7175 (show_record_full_command): Remove.
7176 (_initialize_record_full): Use add_basic_prefix_cmd,
7177 add_show_prefix_cmd.
7178 * record-btrace.c (cmd_set_record_btrace)
7179 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7180 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7181 (cmd_show_record_btrace_pt): Remove.
7182 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7183 add_show_prefix_cmd.
7184 * ravenscar-thread.c (set_ravenscar_command)
7185 (show_ravenscar_command): Remove.
7186 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7187 add_show_prefix_cmd.
7188 * mips-tdep.c (show_mips_command, set_mips_command)
7189 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7190 add_show_prefix_cmd.
7191 * maint.c (maintenance_command, maintenance_info_command)
7192 (maintenance_check_command, maintenance_print_command)
7193 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7194 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7195 add_show_prefix_cmd.
7196 (show_per_command_cmd): Remove.
7197 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7199 (maintenance_show_test_settings_cmd): Remove.
7200 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7201 add_show_prefix_cmd.
7202 * maint-test-options.c (maintenance_test_options_command):
7204 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7205 * macrocmd.c (macro_command): Remove
7206 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7207 * language.c (set_check, show_check): Remove.
7208 (_initialize_language): Use add_basic_prefix_cmd,
7209 add_show_prefix_cmd.
7210 * infcmd.c (unset_command): Remove.
7211 (_initialize_infcmd): Use add_basic_prefix_cmd.
7212 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7213 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 * go32-nat.c (go32_info_dos_command): Remove.
7216 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7217 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7218 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7219 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7220 (_initialize_frame): Use add_basic_prefix_cmd,
7221 add_show_prefix_cmd.
7222 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7223 (_initialize_dcache): Use add_basic_prefix_cmd,
7224 add_show_prefix_cmd.
7225 * cp-support.c (maint_cplus_command): Remove.
7226 (_initialize_cp_support): Use add_basic_prefix_cmd.
7227 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7228 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7229 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7230 add_basic_prefix_cmd, add_show_prefix_cmd.
7231 * breakpoint.c (save_command): Remove.
7232 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7233 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7234 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7235 add_show_prefix_cmd.
7236 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7237 (set_ada_command, show_ada_command): Remove.
7238 (_initialize_ada_language): Use add_basic_prefix_cmd,
7239 add_show_prefix_cmd.
7240 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7242 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7244 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7245 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7247 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7249 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7252 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7254 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7255 import table is not at beginning of .idata section.
7257 2020-04-16 Pedro Alves <palves@redhat.com>
7259 * inferior.c (delete_inferior): Use delete operator directly
7260 instead of delete_program_space.
7261 * progspace.c (add_program_space): New, factored out from
7262 program_space::program_space.
7263 (remove_program_space): New, factored out from
7264 delete_program_space.
7265 (program_space::program_space): Remove intro comment. Rewrite.
7266 (program_space::~program_space): Remove intro comment. Call
7267 remove_program_space.
7268 (delete_program_space): Delete.
7269 * progspace.h (program_space::program_space): Make explicit. Move
7270 intro comment here, adjusted.
7271 (program_space::~program_space): Move intro comment here,
7273 (delete_program_space): Remove.
7275 2020-04-16 Tom Tromey <tromey@adacore.com>
7277 * windows-nat.c (windows_nat::handle_access_violation): New
7279 * nat/windows-nat.h (handle_access_violation): Declare.
7280 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7281 windows-nat.c. Call handle_access_violation.
7283 2020-04-16 Tom de Vries <tdevries@suse.de>
7286 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7287 CUs without psymtab.
7289 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7291 * python/python.c (do_start_initialization): Don't call
7292 PyEval_InitThreads for Python 3.9 and beyond.
7294 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7296 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7298 (obsd_nat_target::wait): Likewise.
7300 2020-04-15 Tom Tromey <tromey@adacore.com>
7302 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7303 (DEBUG_EXCEPT): Use debug_printf.
7305 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7307 * completer.c (class completion_tracker::completion_hash_entry)
7308 <hash_name>: New member function.
7309 (completion_tracker::discard_completions): New callback to hash a
7310 completion_hash_entry, pass this to htab_create_alloc.
7312 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7314 * windows-nat.c (windows_make_so): Warn rather than stopping with
7315 an error if realpath() fails.
7317 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7319 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7320 (nbsd_nat_target::info_proc): Add do_status.
7322 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7323 Tom de Vries <tdevries@suse.de>
7326 * psympriv.h (struct partial_symtab::read_symtab)
7327 (struct partial_symtab::expand_psymtab)
7328 (struct partial_symtab::read_dependencies): Update comments.
7329 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7330 read_symtab for includer.
7331 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7332 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7333 (struct dwarf2_include_psymtab::m_readin): Remove.
7334 (struct dwarf2_include_psymtab::includer): New member function.
7335 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7337 2020-04-14 Tom de Vries <tdevries@suse.de>
7340 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7341 with NULL symbol_matcher and lookup_name.
7342 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7344 * dwarf2/read.c (dw2_expand_symtabs_matching)
7345 (dw2_debug_names_expand_symtabs_matching): Same.
7346 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7347 Make lookup_name a pointer. Update comment.
7348 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7349 lookup_name being a pointer.
7350 * symfile.c (expand_symtabs_matching): Same.
7351 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7352 * linespec.c (iterate_over_all_matching_symtabs): Same.
7354 2020-04-13 Tom Tromey <tom@tromey.com>
7356 * run-on-main-thread.c: Update include.
7357 * unittests/main-thread-selftests.c: Update include.
7358 * tui/tui-win.c: Update include.
7359 * tui/tui-io.c: Update include.
7360 * tui/tui-interp.c: Update include.
7361 * tui/tui-hooks.c: Update include.
7362 * top.h: Update include.
7363 * top.c: Update include.
7364 * ser-base.c: Update include.
7365 * remote.c: Update include.
7366 * remote-notif.c: Update include.
7367 * remote-fileio.c: Update include.
7368 * record-full.c: Update include.
7369 * record-btrace.c: Update include.
7370 * python/python.c: Update include.
7371 * posix-hdep.c: Update include.
7372 * mingw-hdep.c: Update include.
7373 * mi/mi-main.c: Update include.
7374 * mi/mi-interp.c: Update include.
7375 * main.c: Update include.
7376 * linux-nat.c: Update include.
7377 * interps.c: Update include.
7378 * infrun.c: Update include.
7379 * inf-loop.c: Update include.
7380 * event-top.c: Update include.
7381 * event-loop.c: Move to ../gdbsupport/.
7382 * event-loop.h: Move to ../gdbsupport/.
7383 * async-event.h: Update include.
7384 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7386 2020-04-13 Tom Tromey <tom@tromey.com>
7388 * tui/tui-win.c: Include async-event.h.
7389 * remote.c: Include async-event.h.
7390 * remote-notif.c: Include async-event.h.
7391 * record-full.c: Include async-event.h.
7392 * record-btrace.c: Include async-event.h.
7393 * infrun.c: Include async-event.h.
7394 * event-top.c: Include async-event.h.
7395 * event-loop.h: Move some declarations to async-event.h.
7396 * event-loop.c: Don't include ser-event.h or top.h. Move some
7397 code to async-event.c.
7398 * async-event.h: New file.
7399 * async-event.c: New file.
7400 * Makefile.in (COMMON_SFILES): Add async-event.c.
7401 (HFILES_NO_SRCDIR): Add async-event.h.
7403 2020-04-13 Tom Tromey <tom@tromey.com>
7405 * utils.c (flush_streams): New function.
7406 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7408 2020-04-13 Tom Tromey <tom@tromey.com>
7410 * event-loop.c (handle_file_event): Use warning, not
7413 2020-04-13 Tom Tromey <tom@tromey.com>
7415 * event-loop.c: Include <chrono>.
7417 2020-04-13 Tom Tromey <tom@tromey.com>
7419 * gdb_select.h: Move to ../gdbsupport/.
7420 * event-loop.c: Update include path.
7421 * top.c: Update include path.
7422 * ser-base.c: Update include path.
7423 * ui-file.c: Update include path.
7424 * ser-tcp.c: Update include path.
7425 * guile/scm-ports.c: Update include path.
7426 * posix-hdep.c: Update include path.
7427 * ser-unix.c: Update include path.
7428 * gdb_usleep.c: Update include path.
7429 * mingw-hdep.c: Update include path.
7430 * inflow.c: Update include path.
7431 * infrun.c: Update include path.
7432 * event-top.c: Update include path.
7434 2020-04-13 Tom Tromey <tom@tromey.com>
7436 * configure: Rebuild.
7437 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7439 2020-04-13 Tom Tromey <tom@tromey.com>
7441 * event-loop.h (start_event_loop): Don't declare.
7442 * event-loop.c (start_event_loop): Move...
7443 * main.c (start_event_loop): ...here. Now static.
7445 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7447 * MAINTAINERS: Update my email address.
7449 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7451 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7454 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7456 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7457 (nbsd_nat_target::info_proc): Add do_cmdline.
7459 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7461 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7462 (nbsd_nat_target::info_proc): Add do_cwd.
7464 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7466 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7468 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7470 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7471 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7472 (nbsd_nat_target::info_proc): New functions.
7473 * nbsd-nat.c (kinfo_get_vmmap): New function.
7474 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7475 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7476 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7477 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7479 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7480 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7481 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7482 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7483 (KINFO_VME_FLAG_GROWS_DOWN): New.
7485 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7487 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7490 2020-04-10 Tom Tromey <tromey@adacore.com>
7492 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7494 2020-04-10 Tom Tromey <tromey@adacore.com>
7496 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7497 separate debug files.
7499 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7501 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7503 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7505 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7506 Check for STATUS_WX86_BREAKPOINT.
7507 (windows_nat_target::wait): Same.
7509 2020-04-10 Tom de Vries <tdevries@suse.de>
7512 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7514 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7516 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7517 (Write After Approval): Remove Tom de Vries.
7519 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7522 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7524 * buildsym.c (record_line): Fix undefined behavior and preserve
7527 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7529 * auxv.h (svr4_auxv_parse): New.
7530 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7531 and generic_auxv_parse.
7532 (svr4_auxv_parse): Add.
7533 * obsd-tdep.c: Include "auxv.h".
7534 (obsd_auxv_parse): Remove.
7535 (obsd_init_abi): Remove comment.
7536 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7537 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7538 * nbsd-tdep.c: Include "auxv.h".
7539 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7541 2020-04-08 Tom Tromey <tromey@adacore.com>
7543 * nat/windows-nat.h (last_wait_event): Don't declare.
7544 (wait_for_debug_event): Update comment.
7545 * nat/windows-nat.c (last_wait_event): Now static.
7547 2020-04-08 Tom Tromey <tromey@adacore.com>
7549 * windows-nat.c (wait_for_debug_event): Move to
7551 * nat/windows-nat.h (wait_for_debug_event): Declare.
7552 * nat/windows-nat.c (wait_for_debug_event): Move from
7553 windows-nat.c. No longer static.
7555 2020-04-08 Tom Tromey <tromey@adacore.com>
7557 * windows-nat.c (get_windows_debug_event): Use
7559 * nat/windows-nat.h (fetch_pending_stop): Declare.
7560 * nat/windows-nat.c (fetch_pending_stop): New function.
7562 2020-04-08 Tom Tromey <tromey@adacore.com>
7564 * windows-nat.c (windows_continue): Use matching_pending_stop and
7565 continue_last_debug_event.
7566 * nat/windows-nat.h (matching_pending_stop)
7567 (continue_last_debug_event): Declare.
7568 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7569 (matching_pending_stop, continue_last_debug_event): New
7572 2020-04-08 Tom Tromey <tromey@adacore.com>
7574 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7575 (handle_exception_result): Move to nat/windows-nat.h.
7576 (DEBUG_EXCEPTION_SIMPLE): Remove.
7577 (windows_nat::handle_ms_vc_exception): New function.
7578 (handle_exception): Move to nat/windows-nat.c.
7579 (get_windows_debug_event): Update.
7580 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7582 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7583 (handle_exception_result): Move from windows-nat.c.
7584 (handle_exception): Declare.
7585 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7586 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7589 2020-04-08 Tom Tromey <tromey@adacore.com>
7591 * windows-nat.c (exception_count, event_count): Remove.
7592 (handle_exception, get_windows_debug_event)
7593 (do_initial_windows_stuff): Update.
7595 2020-04-08 Tom Tromey <tromey@adacore.com>
7597 * windows-nat.c (windows_nat::handle_load_dll)
7598 (windows_nat::handle_unload_dll): Rename. No longer static.
7599 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7602 2020-04-08 Tom Tromey <tromey@adacore.com>
7604 * complaints.h (stop_whining): Declare at top-level.
7605 (complaint): Don't declare stop_whining.
7607 2020-04-08 Tom Tromey <tromey@adacore.com>
7609 * windows-nat.c (windows_nat::handle_output_debug_string):
7610 Rename. No longer static.
7611 * nat/windows-nat.h (handle_output_debug_string): Declare.
7613 2020-04-08 Tom Tromey <tromey@adacore.com>
7615 * windows-nat.c (current_process_handle, current_process_id)
7616 (main_thread_id, last_sig, current_event, last_wait_event)
7617 (current_windows_thread, desired_stop_thread_id, pending_stops)
7618 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7619 (display_selectors, fake_create_process)
7620 (get_windows_debug_event): Update.
7621 * nat/windows-nat.h (current_process_handle, current_process_id)
7622 (main_thread_id, last_sig, current_event, last_wait_event)
7623 (current_windows_thread, desired_stop_thread_id, pending_stops)
7624 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7625 * nat/windows-nat.c (current_process_handle, current_process_id)
7626 (main_thread_id, last_sig, current_event, last_wait_event)
7627 (current_windows_thread, desired_stop_thread_id, pending_stops)
7628 (siginfo_er): New globals. Move from windows-nat.c.
7630 2020-04-08 Tom Tromey <tromey@adacore.com>
7632 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7633 (handle_load_dll): Update.
7634 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7636 2020-04-08 Tom Tromey <tromey@adacore.com>
7638 * windows-nat.c (enum thread_disposition_type): Move to
7640 (windows_nat::thread_rec): Rename from thread_rec. No longer
7642 (windows_add_thread, windows_nat_target::fetch_registers)
7643 (windows_nat_target::store_registers, handle_exception)
7644 (windows_nat_target::resume, get_windows_debug_event)
7645 (windows_nat_target::get_tib_address)
7646 (windows_nat_target::thread_name)
7647 (windows_nat_target::thread_alive): Update.
7648 * nat/windows-nat.h (enum thread_disposition_type): Move from
7650 (thread_rec): Declare.
7652 2020-04-08 Tom Tromey <tromey@adacore.com>
7654 * windows-nat.c: Add "using namespace".
7655 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7656 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7658 2020-04-08 Tom Tromey <tromey@adacore.com>
7660 * nat/windows-nat.h (struct windows_thread_info): Declare
7662 * nat/windows-nat.c (~windows_thread_info): New.
7664 2020-04-08 Tom Tromey <tromey@adacore.com>
7667 * windows-nat.c (current_event): Update comment.
7668 (last_wait_event, desired_stop_thread_id): New globals.
7669 (struct pending_stop): New.
7670 (pending_stops): New global.
7671 (windows_nat_target) <stopped_by_sw_breakpoint>
7672 <supports_stopped_by_sw_breakpoint>: New methods.
7673 (windows_fetch_one_register): Add assertions. Adjust PC.
7674 (windows_continue): Handle pending stops. Suspend other threads
7675 when stepping. Use last_wait_event
7676 (wait_for_debug_event): New function.
7677 (get_windows_debug_event): Use wait_for_debug_event. Handle
7678 pending stops. Queue spurious stops.
7679 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7680 (windows_nat_target::kill): Use wait_for_debug_event.
7681 * nat/windows-nat.h (struct windows_thread_info)
7682 <stopped_at_software_breakpoint>: New field.
7683 * nat/windows-nat.c (windows_thread_info::resume): Clear
7684 stopped_at_software_breakpoint.
7686 2020-04-08 Tom Tromey <tromey@adacore.com>
7688 * windows-nat.c (enum thread_disposition_type): New.
7689 (thread_rec): Replace "get_context" parameter with "disposition";
7691 (windows_add_thread, windows_nat_target::fetch_registers)
7692 (windows_nat_target::store_registers, handle_exception)
7693 (windows_nat_target::resume, get_windows_debug_event)
7694 (windows_nat_target::get_tib_address)
7695 (windows_nat_target::thread_name)
7696 (windows_nat_target::thread_alive): Update.
7698 2020-04-08 Tom Tromey <tromey@adacore.com>
7700 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7701 (windows_continue): Use windows_continue::resume.
7702 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7703 resume>: Declare new methods.
7704 * nat/windows-nat.c: New file.
7705 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7707 2020-04-08 Tom Tromey <tromey@adacore.com>
7709 * windows-nat.c (windows_add_thread, windows_delete_thread)
7710 (windows_nat_target::fetch_registers)
7711 (windows_nat_target::store_registers, fake_create_process)
7712 (windows_nat_target::resume, windows_nat_target::resume)
7713 (get_windows_debug_event, windows_nat_target::wait)
7714 (windows_nat_target::pid_to_str)
7715 (windows_nat_target::get_tib_address)
7716 (windows_nat_target::get_ada_task_ptid)
7717 (windows_nat_target::thread_name)
7718 (windows_nat_target::thread_alive): Use lwp, not tid.
7720 2020-04-08 Tom Tromey <tromey@adacore.com>
7722 * windows-nat.c (handle_exception)
7723 (windows_nat_target::thread_name): Update.
7724 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7725 <name>: Now unique_xmalloc_ptr.
7727 2020-04-08 Tom Tromey <tromey@adacore.com>
7729 * windows-nat.c (thread_rec)
7730 (windows_nat_target::fetch_registers): Update.
7731 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7733 <debug_registers_changed, reload_context>: Now bool.
7735 2020-04-08 Tom Tromey <tromey@adacore.com>
7737 * windows-nat.c (windows_add_thread): Use new.
7738 (windows_init_thread_list, windows_delete_thread): Use delete.
7739 (get_windows_debug_event): Update.
7740 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7741 destructor, and initializers.
7743 2020-04-08 Tom Tromey <tromey@adacore.com>
7745 * windows-nat.c (struct windows_thread_info): Remove.
7746 * nat/windows-nat.h: New file.
7748 2020-04-08 Tom Tromey <tromey@adacore.com>
7750 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7751 (thread_rec, windows_add_thread, windows_delete_thread)
7752 (windows_continue): Update.
7754 2020-04-08 Tom Tromey <tromey@adacore.com>
7756 * windows-nat.c (struct windows_thread_info): Remove typedef.
7757 (thread_head): Remove.
7758 (thread_list): New global.
7759 (thread_rec, windows_add_thread, windows_init_thread_list)
7760 (windows_delete_thread, windows_continue): Update.
7762 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7764 * windows-tdep.h (windows_init_abi): Add comment.
7765 (cygwin_init_abi): New declaration.
7766 * windows-tdep.c: Split signal enumeration in two, one for
7767 Windows and one for Cygwin.
7768 (windows_gdb_signal_to_target): Only deal with signal of the
7770 (cygwin_gdb_signal_to_target): New function.
7771 (windows_init_abi): Rename to windows_init_abi_common, don't set
7772 gdb_signal_to_target gdbarch method. Add new new function with
7774 (cygwin_init_abi): New function.
7775 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7776 comment. Don't call windows_init_abi.
7777 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7778 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7779 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7780 i386_windows_init_abi_common, don't call windows_init_abi. Add
7781 a new function of this name.
7782 (i386_cygwin_init_abi): New function.
7783 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7786 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7788 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7790 (dwarf2_read_gdb_index): Update.
7792 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7794 * nbsd-tdep.c: Include "objfiles.h".
7795 (nbsd_skip_solib_resolver): New.
7796 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7798 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7800 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7801 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7802 with DW_LLE_base_addressx are being emitted in DWARFv5.
7803 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7804 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7807 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7809 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7810 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7811 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7812 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7813 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7814 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7815 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7818 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7820 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7821 (read_loclist_index): New function definition.
7822 (lookup_loclist_base): New function definition.
7823 (read_loclist_header): New function definition.
7824 (dwarf2_cu): Add loclist_base and loclist_header field.
7825 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7826 (read_full_die_1): Read the value of DW_AT_loclists_base.
7827 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7828 (read_attribute_value): Handle DW_FORM_loclistx.
7829 (skip_one_die): Handle DW_FORM_loclistx.
7830 (loclist_header): New structure declaration.
7831 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7833 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7835 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7836 constructor. Remove `addr` parameter from other constructor and
7837 add `per_cu` parameter.
7838 * dwarf2/read.c (create_partial_symtab): Update.
7840 2020-04-07 Tom de Vries <tdevries@suse.de>
7843 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7844 (partial_die_info::fixup): Inherit has_const_value.
7846 2020-04-07 Tom de Vries <tdevries@suse.de>
7848 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7849 symbols without address.
7851 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7853 * nbsd-nat.h (struct thread_info): Add forward declaration.
7854 (nbsd_nat_target::thread_alive): Add.
7855 (nbsd_nat_target::thread_name): Likewise.
7856 (nbsd_nat_target::update_thread_list): Likewise.
7857 (update_thread_list::post_attach): Likewise.
7858 (post_attach::pid_to_str): Likewise.
7859 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7860 (nbsd_thread_lister): Add.
7861 (nbsd_nat_target::thread_alive): Likewise.
7862 (nbsd_nat_target::thread_name): Likewise.
7863 (nbsd_add_threads): Likewise.
7864 (update_thread_list::post_attach): Likewise.
7865 (nbsd_nat_target::update_thread_list): Likewise.
7866 (post_attach::pid_to_str): Likewise.
7868 2020-04-06 Tom Tromey <tromey@adacore.com>
7870 * ada-valprint.c (print_variant_part): Extract the variant field.
7871 (print_field_values): Use the field as the outer value when
7874 2020-04-06 Tom Tromey <tromey@adacore.com>
7876 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7877 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7878 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7879 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7880 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7882 2020-04-06 Tom Tromey <tromey@adacore.com>
7884 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7887 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7889 * nbsd-tdep.c: Include "gdbarch.h".
7890 Define enum with NetBSD signal numbers.
7891 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7892 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7893 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7894 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7895 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7896 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7897 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7898 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7899 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7900 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7901 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7902 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7904 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7907 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7909 2020-04-03 Tom Tromey <tromey@adacore.com>
7911 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7912 Read constant block.
7914 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7916 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7917 (gdb_bfd_get_full_section_contents): New declaration.
7918 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7919 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7920 gdb_bfd_get_full_section_contents.
7922 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7924 * exec.c (build_section_table): Replace internal_error with
7926 (section_table_xfer_memory_partial): Likewise.
7927 * mdebugread.c (parse_partial_symbols): Likewise.
7928 * psymtab.c (lookup_partial_symbol): Likewise.
7929 * utils.c (wrap_here): Likewise.
7931 2020-04-02 Tom Tromey <tromey@adacore.com>
7933 * f-lang.c (build_fortran_types): Use arch_type to initialize
7934 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7936 2020-04-02 Tom Tromey <tromey@adacore.com>
7938 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7941 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7942 Bernd Edlinger <bernd.edlinger@hotmail.de>
7943 Tom Tromey <tromey@adacore.com>
7945 * buildsym.c (buildsym_compunit::record_line): Remove
7948 2020-04-02 Tom de Vries <tdevries@suse.de>
7951 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7953 2020-04-02 Tom de Vries <tdevries@suse.de>
7955 * dwarf2/read.c (dwarf2_gdb_index_functions,
7956 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7958 * psymtab.c (psym_lookup_global_symbol_language): New function.
7959 (psym_functions): Init psym_lookup_global_symbol_language with
7960 psym_lookup_global_symbol_language.
7961 * symfile-debug.c (debug_sym_quick_functions): Init
7962 lookup_global_symbol_language with NULL.
7963 * symfile.c (set_initial_language): Remove fixme comment.
7964 * symfile.h (struct quick_symbol_functions): Add
7965 lookup_global_symbol_language.
7966 * symtab.c (find_quick_global_symbol_language): New function.
7967 (find_main_name): Use find_quick_global_symbol_language.
7969 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7971 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7973 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7975 * buildsym.c (record_line): Fix undefined behavior and preserve
7978 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7980 * buildsym.c (record_line): Fix the resizing condition.
7982 2020-04-01 Tom Tromey <tom@tromey.com>
7984 * value.h (value_literal_complex): Add comment.
7985 * valops.c (value_literal_complex): Refer to value.h.
7987 2020-04-01 Tom Tromey <tom@tromey.com>
7989 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7990 (scalar_type): New rule, from typebase.
7991 (typebase): Use scalar_type. Recognize complex types.
7992 (field_name): Handle FLOAT_KEYWORD.
7993 (ident_tokens): Add _Complex and __complex__.
7995 2020-04-01 Tom Tromey <tom@tromey.com>
7998 * valarith.c (promotion_type, complex_binop): New functions.
7999 (scalar_binop): Handle complex numbers. Use promotion_type.
8000 (value_pos, value_neg, value_complement): Handle complex numbers.
8002 2020-04-01 Tom Tromey <tom@tromey.com>
8004 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8005 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8006 (parse_number): Handle complex numbers.
8008 2020-04-01 Tom Tromey <tom@tromey.com>
8010 * c-valprint.c (c_decorations): Change complex suffix to "i".
8012 2020-04-01 Tom Tromey <tom@tromey.com>
8014 * valprint.c (generic_value_print_complex): Use accessors.
8015 * value.h (value_real_part, value_imaginary_part): Declare.
8016 * valops.c (value_real_part, value_imaginary_part): New
8018 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8020 2020-04-01 Tom Tromey <tom@tromey.com>
8022 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8023 (read_range_type): Update.
8024 * mdebugread.c (basic_type): Update.
8025 * go-lang.c (build_go_types): Use init_complex_type.
8026 * gdbtypes.h (struct main_type) <complex_type>: New member.
8027 (init_complex_type): Update.
8028 (arch_complex_type): Don't declare.
8029 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8030 Make name if none given. Use alloc_type_copy. Look for cached
8032 (arch_complex_type): Remove.
8033 (gdbtypes_post_init): Use init_complex_type.
8034 * f-lang.c (build_fortran_types): Use init_complex_type.
8035 * dwarf2/read.c (read_base_type): Update.
8036 * d-lang.c (build_d_types): Use init_complex_type.
8037 * ctfread.c (read_base_type): Update.
8039 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8041 * infrun.c (stop_all_threads): Update assertion, plus when
8042 stopping threads, take into account that we might be trying
8043 to stop an all-stop target.
8044 (stop_waiting): Call 'stop_all_threads' if there exists a
8047 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8049 * target.h (exists_non_stop_target): New function declaration.
8050 * target.c (exists_non_stop_target): New function.
8052 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8055 * eval.c (is_integral_or_integral_reference): New function.
8056 (evaluate_subexp_standard): Allow integer references in
8059 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8061 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8062 check for no ptid in the stop reply when the target is non-stop.
8064 2020-04-01 Tom Tromey <tromey@adacore.com>
8066 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8067 "name" parameter to rvalue reference. Initialize m_name_holder.
8068 <lookup_name_info>: New overloads.
8069 <name>: Return gdb::string_view.
8070 <c_str>: New method.
8071 <make_ignore_params>: Update.
8072 <search_name_hash>: Update.
8073 <language_lookup_name>: Return const char *.
8074 <m_name>: Change type.
8075 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8076 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8077 (lookup_name_info::match_any): Update.
8078 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8080 * minsyms.c (linkage_name_str): Update.
8081 * language.c (default_symbol_name_matcher): Update.
8082 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8084 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8085 (ada_lookup_name_info::ada_lookup_name_info): Update.
8086 (literal_symbol_name_matcher): Update.
8088 2020-04-01 Tom Tromey <tromey@adacore.com>
8090 * psymtab.c (psymtab_search_name): Remove function.
8091 (psym_lookup_symbol): Create search name and lookup name here.
8092 (lookup_partial_symbol): Remove "name" parameter; add
8094 (psym_expand_symtabs_for_function): Update.
8096 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8099 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8101 2020-03-31 Tom Tromey <tromey@adacore.com>
8103 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8106 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8108 * features/riscv/32bit-csr.xml: Regenerated.
8109 * features/riscv/64bit-csr.xml: Regenerated.
8111 2020-03-30 Tom Tromey <tromey@adacore.com>
8113 * ada-valprint.c (print_variant_part): Update.
8114 * ada-lang.h (ada_which_variant_applies): Update.
8115 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8116 outer_valaddr parameters; replace with "outer" value parameter.
8117 (to_fixed_variant_branch_type): Update.
8119 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8121 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8122 <list>. Remove inclusion of observable.h.
8123 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8124 (struct arch_lwp_info): New struct.
8125 (class ppc_linux_dreg_interface): New class.
8126 (struct ppc_linux_process_info): New struct.
8127 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8128 <low_new_clone, low_forget_process, low_prepare_to_resume>
8129 <copy_thread_dreg_state, mark_thread_stale>
8130 <mark_debug_registers_changed, register_hw_breakpoint>
8131 <clear_hw_breakpoint, register_wp, clear_wp>
8132 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8133 <num_memory_accesses, get_trigger_type>
8134 <create_watchpoint_request, hwdebug_point_cmp>
8135 <init_arch_lwp_info, get_arch_lwp_info>
8136 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8138 <struct ptid_hash>: New inner struct.
8139 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8141 (saved_dabr_value, hwdebug_info, max_slots_number)
8142 (struct hw_break_tuple, struct thread_points, ppc_threads)
8143 (have_ptrace_hwdebug_interface)
8144 (hwdebug_find_thread_points_by_tid)
8145 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8146 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8147 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8148 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8149 use m_dreg_interface.
8150 (hwdebug_point_cmp): Change to...
8151 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8152 reference arguments instead of pointers.
8153 (ppc_linux_nat_target::ranged_break_num_registers): Use
8155 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8156 m_dreg_interface. Call register_hw_breakpoint.
8157 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8158 m_dreg_interface. Call clear_hw_breakpoint.
8159 (get_trigger_type): Change to...
8160 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8162 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8163 use m_dreg_interface. Call register_hw_breakpoint.
8164 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8165 use m_dreg_interface. Call clear_hw_breakpoint.
8166 (can_use_watchpoint_cond_accel): Change to...
8167 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8168 method. Update comment, use m_dreg_interface and
8170 (calculate_dvc): Change to...
8171 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8173 (num_memory_accesses): Change to...
8174 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8175 (check_condition): Change to...
8176 (ppc_linux_nat_target::check_condition): ...this method.
8177 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8178 comment, use m_dreg_interface.
8179 (create_watchpoint_request): Change to...
8180 (ppc_linux_nat_target::create_watchpoint_request): ...this
8181 method. Use m_dreg_interface.
8182 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8183 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8184 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8185 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8186 (ppc_linux_nat_target::low_forget_process)
8187 (ppc_linux_nat_target::low_new_fork)
8188 (ppc_linux_nat_target::low_new_clone)
8189 (ppc_linux_nat_target::low_delete_thread)
8190 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8191 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8192 only call mark_thread_stale.
8193 (ppc_linux_thread_exit): Remove.
8194 (ppc_linux_nat_target::stopped_data_address): Change to...
8195 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8196 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8197 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8198 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8199 comment. Call low_stopped_data_address.
8200 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8202 (ppc_linux_nat_target::masked_watch_num_registers): Use
8204 (ppc_linux_nat_target::copy_thread_dreg_state)
8205 (ppc_linux_nat_target::mark_thread_stale)
8206 (ppc_linux_nat_target::mark_debug_registers_changed)
8207 (ppc_linux_nat_target::register_hw_breakpoint)
8208 (ppc_linux_nat_target::clear_hw_breakpoint)
8209 (ppc_linux_nat_target::register_wp)
8210 (ppc_linux_nat_target::clear_wp)
8211 (ppc_linux_nat_target::init_arch_lwp_info)
8212 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8213 (_initialize_ppc_linux_nat): Remove observer callback.
8215 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8217 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8218 (ppc_linux_nat_target::auxv_parse)
8219 (ppc_linux_nat_target::read_description)
8220 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8223 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8225 * linux-nat.h (low_new_clone): New method.
8226 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8228 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8230 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8231 (dbx_expand_psymtab): ... this.
8232 (start_psymtab): Update.
8233 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8234 (mdebug_expand_psymtab): ... this.
8235 (parse_partial_symbols): Update.
8236 (new_psymtab): Update.
8237 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8238 (xcoff_expand_psymtab): ... this.
8239 (xcoff_start_psymtab): Update.
8241 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8243 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8244 <expand_dependencies>: ... this.
8245 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8246 (partial_symtab::expand_dependencies): ... this.
8247 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8249 (dwarf2_psymtab::expand_psymtab): Update.
8250 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8251 * mdebugread.c (psymtab_to_symtab_1): Update.
8252 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8254 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8256 * psympriv.h (discard_psymtab): Remove.
8257 * dbxread.c (dbx_end_psymtab): Update.
8258 * xcoffread.c (xcoff_end_psymtab): Update.
8260 2020-03-28 Tom Tromey <tom@tromey.com>
8262 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8265 2020-03-28 Tom Tromey <tom@tromey.com>
8267 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8269 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8271 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8273 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8275 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8277 2020-03-26 Tom Tromey <tom@tromey.com>
8279 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8280 (mark_common_block_symbol_computed, read_tag_string_type)
8281 (attr_to_dynamic_prop, read_subrange_type): Update.
8282 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8283 to be methods on struct attribute.
8284 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8285 (read_call_site_scope, partial_die_info::read)
8286 (partial_die_info::read, lookup_die_type, follow_die_ref):
8288 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8289 from dwarf2_get_ref_die_offset.
8290 (attribute::constant_value): New method, from
8291 dwarf2_get_attr_constant_value.
8292 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8294 <constant_value>: New method.
8296 2020-03-26 Tom Tromey <tom@tromey.com>
8298 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8299 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8300 (dwarf_type_encoding_name): Move to stringify.c.
8301 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8302 * dwarf2/stringify.c: New file.
8303 * dwarf2/stringify.h: New file.
8305 2020-03-26 Tom Tromey <tom@tromey.com>
8307 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8310 2020-03-26 Tom Tromey <tom@tromey.com>
8312 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8314 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8315 (lookup_ranges_base): Likewise.
8316 (read_cutu_die_from_dwo, read_full_die_1): Update.
8318 2020-03-26 Tom Tromey <tom@tromey.com>
8320 * dwarf2/read.c (read_import_statement, read_file_scope)
8321 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8322 (read_lexical_block_scope, read_call_site_scope)
8323 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8324 (handle_struct_member_die, process_structure_scope)
8325 (update_enumeration_type_from_children)
8326 (process_enumeration_scope, read_array_type, read_common_block)
8327 (read_namespace, read_module, read_subroutine_type): Update.
8328 (sibling_die): Remove.
8330 2020-03-26 Tom Tromey <tom@tromey.com>
8332 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8333 (build_type_psymtabs_reader, read_structure_type)
8334 (read_enumeration_type, read_full_die_1): Update.
8335 (dwarf2_attr_no_follow): Move to die.h.
8336 * dwarf2/die.h (struct die_info) <attr>: New method.
8338 2020-03-26 Tom Tromey <tom@tromey.com>
8340 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8341 <base_address>: Now an optional.
8342 (dwarf2_find_base_address, dwarf2_rnglists_process)
8343 (dwarf2_ranges_process, fill_in_loclist_baton)
8344 (dwarf2_symbol_mark_computed): Update.
8346 2020-03-26 Tom Tromey <tom@tromey.com>
8348 * dwarf2/read.c (struct die_info): Move to die.h.
8349 * dwarf2/die.h: New file.
8351 2020-03-26 Tom Tromey <tom@tromey.com>
8353 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8355 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8356 Move to line-header.c.
8357 (read_checked_initial_length_and_offset, read_formatted_entries):
8359 (dwarf_decode_line_header): Split into two.
8360 * dwarf2/line-header.c
8361 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8363 (read_checked_initial_length_and_offset, read_formatted_entries):
8365 (dwarf_decode_line_header): New function, split from read.c.
8367 2020-03-26 Tom Tromey <tom@tromey.com>
8369 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8371 * dwarf2/read.c (read_attribute_value): Update.
8372 (dwarf2_per_objfile::read_line_string): Rename from
8373 read_indirect_line_string.
8374 (read_formatted_entries): Update.
8376 2020-03-26 Tom Tromey <tom@tromey.com>
8378 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8381 2020-03-26 Tom Tromey <tom@tromey.com>
8383 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8385 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8386 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8389 2020-03-26 Tom Tromey <tom@tromey.com>
8391 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8392 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8393 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8394 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8396 2020-03-26 Tom Tromey <tom@tromey.com>
8398 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8399 file_names_size, file_full_name, file_file_name>: Use const.
8400 <file_name_at, file_names>: Add const overload.
8401 * dwarf2/line-header.c (line_header::file_file_name)
8402 (line_header::file_full_name): Update.
8404 2020-03-26 Tom Tromey <tom@tromey.com>
8406 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8407 (macro_start_file, consume_improper_spaces)
8408 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8409 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8410 (dwarf_decode_macros): Move to macro.c.
8411 * dwarf2/macro.c: New file.
8412 * dwarf2/macro.h: New file.
8413 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8415 2020-03-26 Tom Tromey <tom@tromey.com>
8417 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8419 * dwarf2/section.c: New method. From
8420 read_indirect_string_at_offset_from.
8421 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8422 (read_indirect_string_at_offset_from): Move to section.c.
8423 (read_indirect_string_at_offset): Rewrite.
8424 (read_indirect_line_string_at_offset): Remove.
8425 (read_indirect_string, read_indirect_line_string)
8426 (dwarf_decode_macro_bytes): Update.
8428 2020-03-26 Tom Tromey <tom@tromey.com>
8430 * dwarf2/section.h (struct dwarf2_section_info)
8431 <overload_complaint>: Declare.
8432 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8433 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8434 Rename from dwarf2_section_buffer_overflow_complaint.
8435 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8436 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8438 2020-03-26 Tom Tromey <tom@tromey.com>
8440 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8442 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8444 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8447 2020-03-26 Tom Tromey <tom@tromey.com>
8449 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8451 2020-03-26 Tom Tromey <tom@tromey.com>
8453 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8455 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8457 (dwarf_decode_macros): Update.
8459 2020-03-26 Tom Tromey <tom@tromey.com>
8461 * dwarf2/read.c (read_attribute_value): Update.
8462 (read_indirect_string_from_dwz): Move to dwz.c; change into
8464 (dwarf_decode_macro_bytes): Update.
8465 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8466 * dwarf2/dwz.c: New file.
8467 * Makefile.in (COMMON_SFILES): Add dwz.c.
8469 2020-03-26 Tom Tromey <tom@tromey.com>
8471 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8472 * dwarf2/read.c: Add include.
8473 * dwarf2/index-write.c: Add include.
8474 * dwarf2/index-cache.c: Add include.
8475 * dwarf2/dwz.h: New file.
8477 2020-03-25 Tom Tromey <tom@tromey.com>
8479 * compile/compile-object-load.c (get_out_value_type): Mention
8480 correct symbol name in error message.
8482 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8484 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8486 2020-03-25 Tom de Vries <tdevries@suse.de>
8488 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8489 * symmisc.c (dump_symtab_1): Print user and includes fields.
8490 (maintenance_info_symtabs): Same.
8492 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8495 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8496 (riscv_regcache_cooked_write): New function.
8497 (riscv_push_dummy_call): Use new function.
8498 (riscv_return_value): Likewise.
8500 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8502 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8503 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8504 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8505 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8506 * infrun.c (follow_fork): Likewise.
8507 (follow_fork_inferior): Likewise.
8508 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8509 * linux-nat.h (class linux_nat_target): Likewise.
8510 * remote.c (class remote_target) <follow_fork>: Likewise.
8511 (remote_target::follow_fork): Likewise.
8512 * target-delegates.c: Re-generate.
8513 * target.c (default_follow_fork): Likewise.
8514 (target_follow_fork): Likewise.
8515 * target.h (struct target_ops) <follow_fork>: Likewise.
8516 (target_follow_fork): Likewise.
8518 2020-03-24 Tom de Vries <tdevries@suse.de>
8520 * psymtab.c (maintenance_info_psymtabs): Print user field.
8522 2020-03-20 Tom Tromey <tromey@adacore.com>
8524 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8526 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8529 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8531 * ptrace.m4: Don't check for ptrace declaration.
8532 * config.in: Re-generate.
8533 * configure: Re-generate.
8534 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8537 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8539 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8541 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8542 * sparc-nat.c (gdb_ptrace): Likewise.
8543 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8545 2020-03-20 Tom Tromey <tromey@adacore.com>
8547 * c-exp.y (lex_one_token): Fix assert.
8549 2020-03-20 Tom Tromey <tromey@adacore.com>
8551 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8552 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8555 2020-03-20 Tom Tromey <tromey@adacore.com>
8557 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8559 2020-03-20 Tom Tromey <tromey@adacore.com>
8561 * ada-valprint.c (print_variant_part): Remove parameters; switch
8563 (print_field_values): Likewise.
8564 (ada_val_print_struct_union): Likewise.
8565 (ada_value_print_1): Update.
8567 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8569 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8570 nbsd_nat_target instead of inf_ptrace_target.
8571 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8574 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8576 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8577 it to the ptrace call.
8578 * (store_registers): Likewise.
8580 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8582 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8583 it to the ptrace call.
8584 * (store_registers): Likewise.
8586 2020-03-19 Luis Machado <luis.machado@linaro.org>
8588 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8589 valid, fetch vg value from ptrace.
8591 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8592 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8593 * inf-ptrace.c: Likewise.
8594 * (gdb_ptrace): Add.
8595 * (inf_ptrace_target::resume): Update.
8596 * (inf_ptrace_target::xfer_partial): Likewise.
8597 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8598 * (inf_ptrace_peek_poke): Update.
8600 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8602 * x86-bsd-nat.c (gdb_ptrace): New.
8603 * (x86bsd_dr_set): Add new argument `ptid'.
8604 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8605 x86bsd_dr_set_addr): Update.
8607 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8609 * remote.c (remote_target::process_stop_reply): Handle events for
8610 all threads differently.
8612 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8614 * completer.c (completion_tracker::remove_completion): Define new
8616 * completer.h (completion_tracker::remove_completion): Declare new
8618 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8619 when adding a C++ function symbol.
8621 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8623 * completer.c (completion_tracker::completion_hash_entry): Define
8625 (advance_to_filename_complete_word_point): Call
8626 recompute_lowest_common_denominator.
8627 (completion_tracker::completion_tracker): Call discard_completions
8628 to setup the hash table.
8629 (completion_tracker::discard_completions): Allow for being called
8630 from the constructor, pass new equal function, and element deleter
8631 when constructing the hash table. Initialise new class member
8633 (completion_tracker::maybe_add_completion): Remove use of
8634 m_entries_vec, and store more information into m_entries_hash.
8635 (completion_tracker::recompute_lcd_visitor): New function, most
8636 content taken from...
8637 (completion_tracker::recompute_lowest_common_denominator):
8638 ...here, this now just visits each item in the hash calling the
8640 (completion_tracker::build_completion_result): Remove use of
8641 m_entries_vec, call recompute_lowest_common_denominator.
8642 * completer.h (completion_tracker::have_completions): Remove use
8644 (completion_tracker::completion_hash_entry): Declare new class.
8645 (completion_tracker::recompute_lowest_common_denominator): Change
8647 (completion_tracker::recompute_lcd_visitor): Declare new function.
8648 (completion_tracker::m_entries_vec): Delete.
8649 (completion_tracker::m_entries_hash): Initialize to NULL.
8650 (completion_tracker::m_lowest_common_denominator_valid): New
8652 (completion_tracker::m_lowest_common_denominator_max_length): New
8655 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8657 * regformats/regdef.h: Put reg in gdb namespace.
8659 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8661 * i386-bsd-nat.c (gdb_ptrace): New.
8662 * (i386bsd_fetch_inferior_registers,
8663 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8664 * (i386bsd_fetch_inferior_registers,
8665 i386bsd_store_inferior_registers) Use gdb_ptrace.
8667 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8669 * amd64-bsd-nat.c (gdb_ptrace): New.
8670 * (amd64bsd_fetch_inferior_registers,
8671 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8672 * (amd64bsd_fetch_inferior_registers,
8673 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8675 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8677 * user-regs.c (user_reg::read): Rename to...
8678 (user_reg::xread): ...this.
8679 * (append_user_reg): Rename argument `read' to `xread'.
8680 * (user_reg_add_builtin): Likewise.
8681 * (user_reg_add): Likewise.
8682 * (value_of_user_reg): Likewise.
8684 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8686 * sparc-nat.c (gdb_ptrace): New.
8687 * sparc-nat.c (sparc_fetch_inferior_registers)
8688 (sparc_store_inferior_registers) Remove obsolete comment.
8689 * sparc-nat.c (sparc_fetch_inferior_registers)
8690 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8691 * sparc-nat.c (sparc_fetch_inferior_registers)
8692 (sparc_store_inferior_registers) Use gdb_ptrace.
8694 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8696 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8697 it to the ptrace call.
8698 * sh-nbsd-nat.c (store_registers): Likewise.
8700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8702 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8703 nbsd_nat_target instead of inf_ptrace_target.
8704 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8707 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8709 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8711 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8713 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8715 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8717 2020-03-17 Tom de Vries <tdevries@suse.de>
8720 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8722 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8724 (process_imported_unit_die): Skip import of c++ CUs.
8726 2020-03-16 Tom Tromey <tom@tromey.com>
8728 * p-valprint.c (pascal_object_print_value): Initialize
8731 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8732 Shahab Vahedi <shahab@synopsys.com>
8734 * Makefile.in: Add arch/arc.o
8735 * configure.tgt: Likewise.
8736 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8737 (_initialize_arc_tdep): Don't initialize old target descriptions.
8738 (arc_read_description): New function to cache target descriptions.
8739 * arc-tdep.h (arc_read_description): Add proto type.
8740 * arch/arc.c: New file.
8741 * arch/arc.h: Likewise.
8742 * features/Makefile: Replace old target descriptions with new.
8743 * features/arc-arcompact.c: Remove.
8744 * features/arc-arcompact.xml: Likewise.
8745 * features/arc-v2.c: Likewise
8746 * features/arc-v2.xml: Likewise
8747 * features/arc/aux-arcompact.xml: New file.
8748 * features/arc/aux-v2.xml: Likewise.
8749 * features/arc/core-arcompact.xml: Likewise.
8750 * features/arc/core-v2.xml: Likewise.
8751 * features/arc/aux-arcompact.c: Generate.
8752 * features/arc/aux-v2.c: Likewise.
8753 * features/arc/core-arcompact.c: Likewise.
8754 * features/arc/core-v2.c: Likewise.
8755 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8757 2020-03-16 Tom Tromey <tromey@adacore.com>
8760 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8761 putting value into bcache.
8763 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8766 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8768 (amd64_windows_init_abi_common): ... this. Don't set size of
8770 (amd64_windows_init_abi): New function.
8771 (amd64_cygwin_init_abi): New function.
8772 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8774 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8777 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8779 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8780 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8781 (pe_import_directory_entry): New struct type.
8782 (is_linked_with_cygwin_dll): New function.
8783 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8784 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8785 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8787 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8789 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8790 i386_cygwin_core_osabi_sniffer.
8792 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8794 * i386-cygwin-tdep.c: Rename to...
8795 * i386-windows-tdep.c: ... this.
8796 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8797 i386-windows-tdep.c.
8798 * configure.tgt: Likewise.
8800 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8802 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8803 * osabi.c (gdb_osabi_names): Add "Windows".
8804 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8805 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8806 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8807 i386_cygwin_osabi_sniffer.
8808 (_initialize_i386_cygwin_tdep): Register OS ABI
8809 GDB_OSABI_WINDOWS for i386.
8810 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8811 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8812 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8814 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8815 when the target matches '*-*-mingw*'.
8817 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8819 * defs.h (enum gdb_osabi): Move to...
8820 * osabi.h (enum gdb_osabi): ... here.
8821 * gdbarch.sh: Include osabi.h in gdbarch.h.
8822 * gdbarch.h: Re-generate.
8824 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8826 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8828 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8830 2020-03-14 Tom Tromey <tom@tromey.com>
8832 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8834 (c_type_print_modifier): Likewise. Add "language" parameter.
8835 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8836 (c_type_print_base_1): Update.
8837 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8839 * type-stack.c (type_stack::insert): Handle tp_atomic and
8841 (type_stack::follow_type_instance_flags): Likewise.
8842 (type_stack::follow_types): Likewise. Merge type-following code.
8843 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8844 (space_identifier, cv_with_space_id)
8845 (const_or_volatile_or_space_identifier_noopt)
8846 (const_or_volatile_or_space_identifier): Remove.
8847 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8849 (ptr_operator, typebase): Update.
8850 (enum token_flag) <FLAG_C>: New constant.
8851 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8853 (lex_one_token): Handle FLAG_C.
8855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8857 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8858 it to the ptrace call.
8859 * m68k-bsd-nat.c (store_registers): Likewise.
8861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8863 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8865 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8866 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8867 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8871 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8872 nbsd_nat_target instead of inf_ptrace_target.
8873 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8876 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8878 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8883 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8884 it to the ptrace call.
8885 * alpha-bsd-nat.c (store_registers): Likewise.
8887 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8889 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8891 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8892 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8893 fill_fpregset): Likewise.
8895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8897 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8898 nbsd_nat_target instead of inf_ptrace_target.
8899 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8904 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8909 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8910 it to the ptrace call.
8911 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8912 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8913 * arm-nbsd-nat.c (store_register): Likewise.
8914 * arm-nbsd-nat.c (store_regs): Likewise.
8915 * arm-nbsd-nat.c (store_fp_register): Likewise.
8916 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8918 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8920 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8921 nbsd_nat_target instead of inf_ptrace_target.
8922 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8927 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8928 it to the ptrace call.
8929 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8931 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8933 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8934 it to the ptrace call.
8935 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8937 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8939 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8941 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8945 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8946 instead of inf_ptrace_target.
8947 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8952 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8957 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8962 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8965 2020-03-13 Tom Tromey <tom@tromey.com>
8967 * value.h (val_print): Don't declare.
8968 * valprint.h (val_print_array_elements)
8969 (val_print_scalar_formatted, generic_val_print): Don't declare.
8970 * valprint.c (generic_val_print_array): Take a struct value.
8971 (generic_val_print_ptr, generic_val_print_memberptr)
8972 (generic_val_print_bool, generic_val_print_int)
8973 (generic_val_print_char, generic_val_print_complex)
8974 (generic_val_print): Remove.
8975 (generic_value_print): Update.
8976 (do_val_print): Remove unused parameters. Don't call
8978 (val_print): Remove.
8979 (common_val_print): Update. Don't call value_check_printable.
8980 (val_print_scalar_formatted, val_print_array_elements): Remove.
8981 * rust-lang.c (rust_val_print): Remove.
8982 (rust_language_defn): Update.
8983 * p-valprint.c (pascal_val_print): Remove.
8984 (pascal_value_print_inner): Update.
8985 (pascal_object_print_val_fields, pascal_object_print_val):
8987 (pascal_object_print_static_field): Update.
8988 * p-lang.h (pascal_val_print): Don't declare.
8989 * p-lang.c (pascal_language_defn): Update.
8990 * opencl-lang.c (opencl_language_defn): Update.
8991 * objc-lang.c (objc_language_defn): Update.
8992 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8993 * m2-lang.h (m2_val_print): Don't declare.
8994 * m2-lang.c (m2_language_defn): Update.
8995 * language.h (struct language_defn) <la_val_print>: Remove.
8996 * language.c (unk_lang_value_print_inner): Rename. Change
8998 (unknown_language_defn, auto_language_defn): Update.
8999 * go-valprint.c (go_val_print): Remove.
9000 * go-lang.h (go_val_print): Don't declare.
9001 * go-lang.c (go_language_defn): Update.
9002 * f-valprint.c (f_val_print): Remove.
9003 * f-lang.h (f_value_print): Don't declare.
9004 * f-lang.c (f_language_defn): Update.
9005 * d-valprint.c (d_val_print): Remove.
9006 * d-lang.h (d_value_print): Don't declare.
9007 * d-lang.c (d_language_defn): Update.
9008 * cp-valprint.c (cp_print_value_fields)
9009 (cp_print_value_fields_rtti, cp_print_value): Remove.
9010 (cp_print_static_field): Update.
9011 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9012 (c_val_print_struct, c_val_print_union, c_val_print_int)
9013 (c_val_print_memberptr, c_val_print): Remove.
9014 * c-lang.h (c_val_print_array, cp_print_value_fields)
9015 (cp_print_value_fields_rtti): Don't declare.
9016 * c-lang.c (c_language_defn, cplus_language_defn)
9017 (asm_language_defn, minimal_language_defn): Update.
9018 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9019 (ada_val_print_enum): Take a struct value.
9020 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9021 (ada_val_print): Remove.
9022 (ada_value_print_1): Update.
9023 (printable_val_type): Remove.
9024 * ada-lang.h (ada_val_print): Don't declare.
9025 * ada-lang.c (ada_language_defn): Update.
9027 2020-03-13 Tom Tromey <tom@tromey.com>
9029 * valprint.c (do_val_print): Update.
9030 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9032 (value_to_value_object_no_release): Declare.
9033 * python/py-value.c (value_to_value_object_no_release): New
9035 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9037 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9039 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9041 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9043 (gdbscm_apply_val_pretty_printer): Take a struct value.
9044 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9046 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9048 * extension-priv.h (struct extension_language_ops)
9049 <apply_val_pretty_printer>: Take a struct value.
9050 * cp-valprint.c (cp_print_value): Create a struct value.
9051 (cp_print_value): Update.
9053 2020-03-13 Tom Tromey <tom@tromey.com>
9055 * ada-valprint.c (print_field_values): Call common_val_print.
9057 2020-03-13 Tom Tromey <tom@tromey.com>
9059 * ada-valprint.c (val_print_packed_array_elements): Remove
9060 bitoffset and val parameters. Call common_val_print.
9061 (ada_val_print_string): Remove offset, address, and original_value
9063 (ada_val_print_array): Update.
9064 (ada_value_print_array): New function.
9065 (ada_value_print_1): Call it.
9067 2020-03-13 Tom Tromey <tom@tromey.com>
9069 * ada-valprint.c (ada_value_print): Use common_val_print.
9071 2020-03-13 Tom Tromey <tom@tromey.com>
9073 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9075 2020-03-13 Tom Tromey <tom@tromey.com>
9077 * ada-valprint.c (ada_value_print_num): New function.
9078 (ada_value_print_1): Use it.
9080 2020-03-13 Tom Tromey <tom@tromey.com>
9082 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9084 2020-03-13 Tom Tromey <tom@tromey.com>
9086 * ada-valprint.c (ada_value_print_ptr): New function.
9087 (ada_value_print_1): Use it.
9089 2020-03-13 Tom Tromey <tom@tromey.com>
9091 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9092 call common_val_print.
9093 (ada_val_print_1): Update.
9094 (ada_value_print_1): New function.
9095 (ada_value_print_inner): Rewrite.
9097 2020-03-13 Tom Tromey <tom@tromey.com>
9099 * cp-valprint.c (cp_print_value_fields): Update.
9100 (cp_print_value): New function.
9102 2020-03-13 Tom Tromey <tom@tromey.com>
9104 * m2-valprint.c (m2_value_print_inner): Use
9105 cp_print_value_fields.
9106 * cp-valprint.c (cp_print_value_fields): New function.
9107 * c-valprint.c (c_value_print_struct): New function.
9108 (c_value_print_inner): Use c_value_print_struct.
9109 * c-lang.h (cp_print_value_fields): Declare.
9111 2020-03-13 Tom Tromey <tom@tromey.com>
9113 * c-valprint.c (c_value_print_array): New function.
9114 (c_value_print_inner): Use it.
9116 2020-03-13 Tom Tromey <tom@tromey.com>
9118 * c-valprint.c (c_value_print_memberptr): New function.
9119 (c_value_print_inner): Use it.
9121 2020-03-13 Tom Tromey <tom@tromey.com>
9123 * c-valprint.c (c_value_print_int): New function.
9124 (c_value_print_inner): Use it.
9126 2020-03-13 Tom Tromey <tom@tromey.com>
9128 * c-valprint.c (c_value_print_ptr): New function.
9129 (c_value_print_inner): Use it.
9131 2020-03-13 Tom Tromey <tom@tromey.com>
9133 * c-valprint.c (c_value_print_inner): Rewrite.
9135 2020-03-13 Tom Tromey <tom@tromey.com>
9137 * valprint.c (generic_value_print_complex): New function.
9138 (generic_value_print): Use it.
9140 2020-03-13 Tom Tromey <tom@tromey.com>
9142 * valprint.c (generic_val_print_float): Don't call
9143 val_print_scalar_formatted.
9144 (generic_val_print, generic_value_print): Update.
9146 2020-03-13 Tom Tromey <tom@tromey.com>
9148 * valprint.c (generic_value_print_char): New function
9149 (generic_value_print): Use it.
9151 2020-03-13 Tom Tromey <tom@tromey.com>
9153 * valprint.c (generic_value_print_int): New function.
9154 (generic_value_print): Use it.
9156 2020-03-13 Tom Tromey <tom@tromey.com>
9158 * valprint.c (generic_value_print_bool): New function.
9159 (generic_value_print): Use it.
9161 2020-03-13 Tom Tromey <tom@tromey.com>
9163 * valprint.c (generic_val_print_func): Simplify.
9164 (generic_val_print, generic_value_print): Update.
9166 2020-03-13 Tom Tromey <tom@tromey.com>
9168 * valprint.c (generic_val_print_flags): Remove.
9169 (generic_val_print, generic_value_print): Update.
9170 (val_print_type_code_flags): Add original_value parameter.
9172 2020-03-13 Tom Tromey <tom@tromey.com>
9174 * valprint.c (generic_val_print): Update.
9175 (generic_value_print): Update.
9176 * valprint.c (generic_val_print_enum): Don't call
9177 val_print_scalar_formatted.
9179 2020-03-13 Tom Tromey <tom@tromey.com>
9181 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9182 * valprint.c (generic_value_print_ptr): New function.
9184 2020-03-13 Tom Tromey <tom@tromey.com>
9186 * valprint.c (generic_value_print): Rewrite.
9188 2020-03-13 Tom Tromey <tom@tromey.com>
9190 * p-valprint.c (pascal_object_print_value_fields)
9191 (pascal_object_print_value): New functions.
9193 2020-03-13 Tom Tromey <tom@tromey.com>
9195 * p-valprint.c (pascal_value_print_inner): Rewrite.
9197 2020-03-13 Tom Tromey <tom@tromey.com>
9199 * f-valprint.c (f_value_print_innner): Rewrite.
9201 2020-03-13 Tom Tromey <tom@tromey.com>
9203 * m2-valprint.c (m2_print_unbounded_array): New overload.
9204 (m2_print_unbounded_array): Update.
9205 (m2_print_array_contents): Take a struct value.
9206 (m2_value_print_inner): Rewrite.
9208 2020-03-13 Tom Tromey <tom@tromey.com>
9210 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9211 (d_value_print_inner): New function.
9212 * d-lang.h (d_value_print_inner): Declare.
9213 * d-lang.c (d_language_defn): Use d_value_print_inner.
9215 2020-03-13 Tom Tromey <tom@tromey.com>
9217 * go-valprint.c (go_value_print_inner): New function.
9218 * go-lang.h (go_value_print_inner): Declare.
9219 * go-lang.c (go_language_defn): Use go_value_print_inner.
9221 2020-03-13 Tom Tromey <tom@tromey.com>
9223 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9225 (rust_val_print): Rewrite.
9226 (rust_value_print_inner): New function, from rust_val_print.
9227 (rust_language_defn): Use rust_value_print_inner.
9229 2020-03-13 Tom Tromey <tom@tromey.com>
9231 * ada-valprint.c (ada_value_print_inner): New function.
9232 * ada-lang.h (ada_value_print_inner): Declare.
9233 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9235 2020-03-13 Tom Tromey <tom@tromey.com>
9237 * f-valprint.c (f_value_print_innner): New function.
9238 * f-lang.h (f_value_print_innner): Declare.
9239 * f-lang.c (f_language_defn): Use f_value_print_innner.
9241 2020-03-13 Tom Tromey <tom@tromey.com>
9243 * p-valprint.c (pascal_value_print_inner): New function.
9244 * p-lang.h (pascal_value_print_inner): Declare.
9245 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9247 2020-03-13 Tom Tromey <tom@tromey.com>
9249 * m2-valprint.c (m2_value_print_inner): New function.
9250 * m2-lang.h (m2_value_print_inner): Declare.
9251 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9253 2020-03-13 Tom Tromey <tom@tromey.com>
9255 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9256 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9257 * c-valprint.c (c_value_print_inner): New function.
9258 * c-lang.h (c_value_print_inner): Declare.
9259 * c-lang.c (c_language_defn, cplus_language_defn)
9260 (asm_language_defn, minimal_language_defn): Use
9261 c_value_print_inner.
9263 2020-03-13 Tom Tromey <tom@tromey.com>
9265 * p-valprint.c (pascal_object_print_value_fields): Now static.
9266 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9268 2020-03-13 Tom Tromey <tom@tromey.com>
9270 * c-valprint.c (c_val_print_array): Simplify.
9272 2020-03-13 Tom Tromey <tom@tromey.com>
9274 * valprint.c (value_print_array_elements): New function.
9275 * valprint.h (value_print_array_elements): Declare.
9277 2020-03-13 Tom Tromey <tom@tromey.com>
9279 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9280 * mips-tdep.c (mips_print_register): Use
9281 value_print_scalar_formatted.
9283 2020-03-13 Tom Tromey <tom@tromey.com>
9285 * valprint.h (value_print_scalar_formatted): Declare.
9286 * valprint.c (value_print_scalar_formatted): New function.
9288 2020-03-13 Tom Tromey <tom@tromey.com>
9290 * valprint.h (generic_value_print): Declare.
9291 * valprint.c (generic_value_print): New function.
9293 2020-03-13 Tom Tromey <tom@tromey.com>
9295 * valprint.c (do_val_print): Call la_value_print_inner, if
9297 * rust-lang.c (rust_language_defn): Update.
9298 * p-lang.c (pascal_language_defn): Update.
9299 * opencl-lang.c (opencl_language_defn): Update.
9300 * objc-lang.c (objc_language_defn): Update.
9301 * m2-lang.c (m2_language_defn): Update.
9302 * language.h (struct language_defn) <la_value_print_inner>: New
9304 * language.c (unknown_language_defn, auto_language_defn): Update.
9305 * go-lang.c (go_language_defn): Update.
9306 * f-lang.c (f_language_defn): Update.
9307 * d-lang.c (d_language_defn): Update.
9308 * c-lang.c (c_language_defn, cplus_language_defn)
9309 (asm_language_defn, minimal_language_defn): Update.
9310 * ada-lang.c (ada_language_defn): Update.
9312 2020-03-13 Tom Tromey <tom@tromey.com>
9314 * c-valprint.c (c_value_print): Use common_val_print.
9316 2020-03-13 Tom Tromey <tom@tromey.com>
9318 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9320 2020-03-13 Tom Tromey <tom@tromey.com>
9322 * f-valprint.c (f77_print_array_1, f_val_print): Use
9325 2020-03-13 Tom Tromey <tom@tromey.com>
9327 * riscv-tdep.c (riscv_print_one_register_info): Use
9330 2020-03-13 Tom Tromey <tom@tromey.com>
9332 * mi/mi-main.c (output_register): Use common_val_print.
9334 2020-03-13 Tom Tromey <tom@tromey.com>
9336 * infcmd.c (default_print_one_register_info): Use
9339 2020-03-13 Tom Tromey <tom@tromey.com>
9341 * valprint.h (common_val_print_checked): Declare.
9342 * valprint.c (common_val_print_checked): New function.
9343 * stack.c (print_frame_arg): Use common_val_print_checked.
9345 2020-03-13 Tom Tromey <tom@tromey.com>
9347 * valprint.c (do_val_print): New function, from val_print.
9348 (val_print): Use do_val_print.
9349 (common_val_print): Use do_val_print.
9351 2020-03-13 Tom Tromey <tom@tromey.com>
9353 * valprint.c (value_print): Use scoped_value_mark.
9355 2020-03-13 Tom de Vries <tdevries@suse.de>
9358 * psymtab.c (partial_symtab::partial_symtab): Don't set
9359 globals_offset and statics_offset. Push element onto
9360 current_global_psymbols and current_static_psymbols stacks.
9361 (concat): New function.
9362 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9363 element from current_global_psymbols and current_static_psymbols
9364 stacks. Concat popped elements to global_psymbols and
9366 (add_psymbol_to_list): Use current_global_psymbols and
9367 current_static_psymbols stacks.
9368 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9369 current_static_psymbols fields.
9371 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9373 * corelow.c (sniff_core_bfd): Remove.
9374 (class core_target) <m_core_vec>: Remove.
9375 (core_target::core_target): Update.
9376 (core_file_fns): Remove.
9377 (deprecated_add_core_fns): Remove.
9378 (default_core_sniffer): Remove.
9379 (sniff_core_bfd): Remove.
9380 (default_check_format): Remove.
9381 (gdb_check_format): Remove.
9382 (core_target_open): Update.
9383 (core_target::get_core_register_section): Update.
9384 (get_core_registers_cb): Update.
9385 (core_target::fetch_registers): Update.
9386 * gdbcore.h (struct core_fns): Remove.
9387 (deprecated_add_core_fns): Remove.
9388 (default_core_sniffer): Remove.
9389 (default_check_format): Remove.
9391 2020-03-12 Tom Tromey <tom@tromey.com>
9393 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9395 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9397 2020-03-12 Tom Tromey <tom@tromey.com>
9399 * remote.c (remote_target::download_tracepoint)
9400 (remote_target::enable_tracepoint)
9401 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9402 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9405 2020-03-12 Tom Tromey <tom@tromey.com>
9407 * symfile-mem.c: Update CORE_ADDR size assert.
9409 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9411 * selftest.m4: Move to gdbsupport/.
9412 * acinclude.m4: Update path to selftest.m4.
9414 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9416 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9417 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9418 gdbarch-selfselftests.c and selftest-arch.c.
9419 (SUBDIR_UNITTESTS_OBS): Rename to...
9420 (SELFTESTS_OBS): ... this.
9421 (COMMON_SFILES): Remove disasm-selftests.c and
9422 gdbarch-selftests.c.
9423 * configure.ac: Don't add selftest-arch.{c,o} to
9425 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9426 preprocessor conditions.
9428 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9430 * configure.ac: Don't source bfd/development.sh.
9431 * selftest.m4: Modify comment.
9432 * configure: Re-generate.
9434 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9436 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9437 not "true" or "false".
9438 * configure: Re-generate.
9440 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9442 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9443 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9444 renamed to arm_nbsd_supply_gregset.
9445 (fetch_register): Update to call arm_nbsd_supply_gregset.
9446 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9447 (arm_netbsd_nat_target::fetch_registers): Update.
9448 (fetch_elfcore_registers): Removed.
9449 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9450 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9451 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9452 not require NetBSD system headers.
9453 (arm_nbsd_regset): New struct.
9454 (arm_nbsd_iterate_over_regset_sections): New function.
9455 (arm_netbsd_init_abi_common): Updated to call
9456 set_gdbarch_iterate_over_regset_sections.
9457 * arm-nbsd-tdep.h: New file.
9459 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9461 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9464 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9466 * configure: Re-generate.
9468 2020-03-11 Tom Tromey <tromey@adacore.com>
9470 * ada-typeprint.c (print_choices): Fix comment.
9472 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9474 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9475 previous item in the list, when the list has no items.
9477 2020-03-11 Tom de Vries <tdevries@suse.de>
9479 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9480 PROP_LOCLIST handling code.
9482 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9484 * buildsym-legacy.c (record_line): Pass extra parameter to
9486 * buildsym.c (buildsym_compunit::record_line): Take an extra
9487 parameter, reduce duplication in the line table, and record the
9488 is_stmt flag in the line table.
9489 * buildsym.h (buildsym_compunit::record_line): Add extra
9491 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9492 non-statement lines.
9493 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9494 this to the symtab builder.
9495 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9496 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9497 through to dwarf_record_line_1.
9498 * infrun.c (process_event_stop_test): When stepping, don't stop at
9499 a non-statement instruction, and only refresh the step info when
9500 we land in the middle of a line's range. Also add an extra
9502 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9504 * record-btrace.c (btrace_find_line_range): Only record lines
9505 marked as is-statement.
9506 * stack.c (frame_show_address): Show the frame address if we are
9507 in a non-statement sal.
9508 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9509 (maintenance_print_one_line_table): Print a header for the is_stmt
9510 column, and include is_stmt information in the output.
9511 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9512 preference to non-statements.
9513 (find_pcs_for_symtab_line): Prefer is-statement entries.
9514 (find_line_common): Likewise.
9515 * symtab.h (struct linetable_entry): Add is_stmt field.
9516 (struct symtab_and_line): Likewise.
9517 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9518 arranging the line table.
9520 2020-03-07 Tom de Vries <tdevries@suse.de>
9522 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9525 2020-03-07 Tom Tromey <tom@tromey.com>
9527 * valops.c (value_literal_complex): Remove obsolete comment.
9528 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9531 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9533 * infrun.h: Forward-declare thread_info.
9534 (set_step_info): Add thread_info parameter, add doc.
9535 * infrun.c (set_step_info): Add thread_info parameter, move doc
9537 * infrun.c (process_event_stop_test): Pass thread to
9539 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9541 (prepare_one_step): Add thread_info parameter, pass it to
9542 set_step_frame and prepare_one_step (recursive) call.
9543 (step_1): Pass thread to prepare_one_step call.
9544 (step_command_fsm::should_stop): Pass thread to
9546 (until_next_fsm): Pass thread to set_step_frame call.
9547 (finish_command): Pass thread to set_step_info call.
9549 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9551 * windows-tdep.c (windows_solib_create_inferior_hook):
9552 Check if inferior is running.
9554 2020-03-06 Tom de Vries <tdevries@suse.de>
9556 * NEWS: Fix "the the".
9559 2020-03-06 Tom de Vries <tdevries@suse.de>
9561 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9563 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9565 * .dir-locals.el: Add a comment referencing the other copies of
9568 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9570 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9573 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9575 * .gitattributes: New file.
9577 2020-03-04 Tom Tromey <tom@tromey.com>
9579 * symmisc.c (print_symbol_bcache_statistics)
9580 (print_objfile_statistics): Update.
9581 * symfile.c (allocate_symtab): Use intern.
9582 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9583 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9584 macro_cache>: Remove.
9585 <string_cache>: New member.
9586 (struct objfile) <intern>: New methods.
9587 * elfread.c (elf_symtab_read): Use intern.
9588 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9589 (dwarf2_compute_name, dwarf2_physname)
9590 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9592 (guess_partial_die_structure_name): Update.
9593 (partial_die_info::fixup): Intern name.
9594 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9596 (dwarf2_name): Intern name. Update.
9597 * buildsym.c (buildsym_compunit::get_macro_table): Use
9600 2020-03-04 Tom Tromey <tom@tromey.com>
9602 * jit.c (bfd_open_from_target_memory): Make "target" const.
9603 * corefile.c (gnutarget): Now const.
9604 * gdbcore.h (gnutarget): Now const.
9606 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9608 * NEWS: Mention support for WOW64 processes.
9609 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9610 (amd64_windows_segment_register_p): Remove static.
9611 (_initialize_amd64_windows_nat): Update.
9612 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9613 * i386-windows-nat.c (context_offset): Update.
9614 (i386_mappings): Rename and remove static.
9615 (i386_windows_segment_register_p): Remove static.
9616 (_initialize_i386_windows_nat): Update.
9617 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9618 (STATUS_WX86_SINGLE_STEP): New macro.
9619 (EnumProcessModulesEx): New macro.
9620 (Wow64SuspendThread): New macro.
9621 (Wow64GetThreadContext): New macro.
9622 (Wow64SetThreadContext): New macro.
9623 (Wow64GetThreadSelectorEntry): New macro.
9624 (windows_set_context_register_offsets): Add static.
9625 (windows_set_segment_register_p): Likewise.
9626 (windows_add_thread): Adapt for WOW64 processes.
9627 (windows_fetch_one_register): Likewise.
9628 (windows_nat_target::fetch_registers): Likewise.
9629 (windows_store_one_register): Likewise.
9630 (display_selector): Likewise.
9631 (display_selectors): Likewise.
9632 (handle_exception): Likewise.
9633 (windows_continue): Likewise.
9634 (windows_nat_target::resume): Likewise.
9635 (windows_add_all_dlls): Likewise.
9636 (do_initial_windows_stuff): Likewise.
9637 (windows_nat_target::attach): Likewise.
9638 (windows_get_exec_module_filename): Likewise.
9639 (windows_nat_target::create_inferior): Likewise.
9640 (windows_xfer_siginfo): Likewise.
9641 (_initialize_loadable): Initialize Wow64SuspendThread,
9642 Wow64GetThreadContext, Wow64SetThreadContext,
9643 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9644 * windows-nat.h (windows_set_context_register_offsets):
9646 (windows_set_segment_register_p): Likewise.
9647 (i386_windows_segment_register_p): Add declaration.
9648 (amd64_windows_segment_register_p): Likewise.
9650 2020-03-04 Luis Machado <luis.machado@linaro.org>
9652 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9653 in "info registers" for AArch64/ARM.
9655 The change caused "info registers" to not print GPR's.
9659 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9661 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9662 when reg->group is empty and reggroup is not.
9664 2020-03-03 Tom Tromey <tromey@adacore.com>
9666 * dwarf2/frame.c (struct dwarf2_frame_cache)
9667 <checked_tailcall_bottom, entry_cfa_sp_offset,
9668 entry_cfa_sp_offset_p>: Remove members.
9669 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9670 (dwarf2_frame_prev_register): Don't call
9671 dwarf2_tailcall_sniffer_first.
9672 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9673 * frame-unwind.c (add_unwinder): New fuction.
9674 (frame_unwind_init): Use it. Add tailcall unwinder.
9676 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9677 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9679 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9680 value should be printed as true.
9682 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9684 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9685 (windows_init_abi): Set and use windows_so_ops.
9687 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9689 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9690 when verifying if dealing with a convenience variable.
9692 2020-03-03 Luis Machado <luis.machado@linaro.org>
9694 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9696 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9698 * infrun.c (gdbarch_supports_displaced_stepping): New.
9699 (use_displaced_stepping): Break up conditions in smaller pieces.
9700 Use gdbarch_supports_displaced_stepping.
9701 (displaced_step_prepare_throw): Use
9702 gdbarch_supports_displaced_stepping.
9704 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9706 * NEWS: Mention new behaviour of the history filename.
9707 * top.c (write_history_p): Add comment.
9708 (show_write_history_p): Add header comment, give a different
9709 message when history writing is on, but the history filename is
9711 (history_filename): Add comment.
9712 (history_filename_empty): New function.
9713 (show_history_filename): Add header comment, give a different
9714 message when the filename is empty.
9715 (init_history): Compare history_filename against nullptr, and only
9716 read history if the filename is not empty.
9717 (set_history_filename): Add header comment, and only make
9718 non-empty filenames absolute.
9719 (init_main): Make the filename argument to 'set history filename'
9722 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9724 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9725 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9726 (fetch_fp_register): Update.
9727 (fetch_fp_regs): Update.
9728 (store_fp_register): Update.
9729 (store_fp_regs): Update.
9730 (arm_netbsd_nat_target::read_description): New function.
9731 (fetch_elfcore_registers): Update.
9733 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9735 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9736 general_thread if the stop reply is missing a thread-id.
9737 (remote_target::process_stop_reply): Use the first non-exited
9738 thread if the target didn't pass a thread-id.
9739 * infrun.c (do_target_wait): Move call to
9740 switch_to_inferior_no_thread to ....
9741 (do_target_wait_1): ... here.
9743 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9745 * debuginfod-support.c: Include defs.h first.
9747 2020-02-28 Tom de Vries <tdevries@suse.de>
9749 * symfile.c (set_initial_language): Use default language for lookup.
9751 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9753 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9754 reader variable, pass `this` to read_cutu_die_from_dwo.
9756 2020-02-27 Aaron Merey <amerey@redhat.com>
9758 * source.c (open_source_file): Check for nullptr when computing
9761 2020-02-27 Tom Tromey <tromey@adacore.com>
9763 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9765 (dwarf2_add_field): Don't update nfields.
9766 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9768 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9770 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9773 2020-02-26 Tom Tromey <tom@tromey.com>
9775 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9776 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9777 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9778 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9781 2020-02-26 Tom Tromey <tom@tromey.com>
9783 * dwarf2/index-write.c (psym_index_map): Change type.
9784 (add_address_entry_worker, write_one_signatured_type)
9785 (recursively_count_psymbols, recursively_write_psymbols)
9786 (class debug_names, psyms_seen_size, write_gdbindex)
9787 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9789 2020-02-26 Aaron Merey <amerey@redhat.com>
9791 * Makefile.in: Handle optional debuginfod support.
9793 * README: Add --with-debuginfod summary.
9794 * config.in: Regenerate.
9795 * configure: Regenerate.
9796 * configure.ac: Handle optional debuginfod support.
9797 * debuginfod-support.c: debuginfod helper functions.
9798 * debuginfod-support.h: Ditto.
9799 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9801 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9802 when a dwz file cannot be found.
9803 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9804 debuginfo file cannot be found.
9805 * source.c (open_source_file): Query debuginfod servers when a
9806 source file cannot be found.
9807 * top.c (print_gdb_configuration): Include
9808 --{with,without}-debuginfod in the output.
9810 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9812 * thread.c (thr_try_catch_cmd): Print thread name.
9814 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9816 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9817 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9818 dwarf2_fetch_die_type_sect_off): Move to...
9819 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9820 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9821 dwarf2_fetch_die_type_sect_off): ... here.
9822 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9824 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9826 2020-02-26 Tom de Vries <tdevries@suse.de>
9829 * symfile.c (set_initial_language): Exit-early if
9830 language_mode == language_mode_manual.
9832 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9834 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9835 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9836 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9838 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9840 * gdbtypes.c (create_array_type_with_stride): Handle negative
9842 * valarith.c (value_subscripted_rvalue): Likewise.
9844 2020-02-25 Luis Machado <luis.machado@linaro.org>
9846 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9848 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9850 * loc.h (dwarf2_get_die_type): Move to...
9851 * read.h (dwarf2_get_die_type): ... here.
9852 * read.c (dwarf2_get_die_type): Move doc to header.
9854 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9856 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9857 'gnulib/Makefile.in' to the list.
9859 2020-02-24 Tom Tromey <tom@tromey.com>
9861 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9863 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9866 2020-02-24 Tom Tromey <tom@tromey.com>
9868 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9870 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9871 (dw2_do_instantiate_symtab, dw2_get_file_names)
9872 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9874 2020-02-24 Tom Tromey <tom@tromey.com>
9876 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9877 make_scoped_restore.
9878 (dwarf2_psymtab::read_symtab): Don't clear
9879 reading_partial_symbols.
9881 2020-02-24 Tom de Vries <tdevries@suse.de>
9884 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9886 2020-02-24 Tom de Vries <tdevries@suse.de>
9888 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9889 commands layout next/prev/regs.
9891 2020-02-22 Tom Tromey <tom@tromey.com>
9893 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9894 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9896 2020-02-22 Tom Tromey <tom@tromey.com>
9898 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9900 2020-02-22 Tom Tromey <tom@tromey.com>
9902 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9903 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9904 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9905 * tui/tui.c (_initialize_tui): Add usage text.
9907 2020-02-22 Tom Tromey <tom@tromey.com>
9909 * tui/tui-win.c (tui_set_focus_command)
9910 (tui_set_win_height_command): Use error_no_arg.
9911 (_initialize_tui_win): Update help text.
9912 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9914 2020-02-22 Tom Tromey <tom@tromey.com>
9916 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9917 * tui/tui-disasm.h (struct tui_disasm_window)
9918 <display_start_addr>: Declare.
9919 * tui/tui-source.h (struct tui_source_window)
9920 <display_start_addr>: Declare.
9921 * tui/tui-winsource.h (struct tui_source_window_base)
9922 <show_source_line, display_start_addr>: New methods.
9923 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9924 Rename and move to protected section.
9925 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9926 (tui_source_window_base::do_erase_source_content): Update.
9927 (tui_source_window_base::show_source_line): Now a method.
9928 (tui_source_window_base::show_source_content)
9929 (tui_source_window_base::tui_source_window_base)
9930 (tui_source_window_base::rerender)
9931 (tui_source_window_base::refill)
9932 (tui_source_window_base::do_scroll_horizontal)
9933 (tui_source_window_base::set_is_exec_point_at)
9934 (tui_source_window_base::update_breakpoint_info)
9935 (tui_source_window_base::update_exec_info): Update.
9936 * tui/tui-source.c (tui_source_window::set_contents)
9937 (tui_source_window::showing_source_p)
9938 (tui_source_window::do_scroll_vertical)
9939 (tui_source_window::location_matches_p)
9940 (tui_source_window::line_is_displayed): Update.
9941 (tui_source_window::display_start_addr): New method.
9942 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9943 (tui_disasm_window::do_scroll_vertical)
9944 (tui_disasm_window::location_matches_p): Update.
9945 (tui_disasm_window::display_start_addr): New method.
9947 2020-02-22 Tom Tromey <tom@tromey.com>
9949 * NEWS: Add entry for gdb.register_window_type.
9950 * tui/tui-layout.h (window_factory): New typedef.
9951 (tui_register_window): Declare.
9952 * tui/tui-layout.c (saved_tui_windows): New global.
9953 (tui_apply_current_layout): Use it.
9954 (tui_register_window): New function.
9955 * python/python.c (do_start_initialization): Call
9956 gdbpy_initialize_tui.
9957 (python_GdbMethods): Add "register_window_type" function.
9958 * python/python-internal.h (gdbpy_register_tui_window)
9959 (gdbpy_initialize_tui): Declare.
9960 * python/py-tui.c: New file.
9961 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9963 2020-02-22 Tom Tromey <tom@tromey.com>
9965 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9967 2020-02-22 Tom Tromey <tom@tromey.com>
9969 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9970 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9971 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9972 (tui_set_win_focus_to): Move from tui-win.c.
9974 2020-02-22 Tom Tromey <tom@tromey.com>
9976 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9978 (known_window_types): New global.
9979 (tui_get_window_by_name): Reimplement.
9980 (initialize_known_windows): New function.
9981 (validate_window_name): Rewrite.
9982 (_initialize_tui_layout): Call initialize_known_windows.
9984 2020-02-22 Tom Tromey <tom@tromey.com>
9986 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9988 * tui/tui-winsource.h (struct tui_source_window_base)
9989 <tui_source_window_base>: Remove parameter.
9990 * tui/tui-winsource.c
9991 (tui_source_window_base::tui_source_window_base): Remove
9993 (tui_source_window_base::refill): Update.
9994 * tui/tui-stack.h (struct tui_locator_window)
9995 <tui_locator_window>: Update.
9996 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9997 Default the constructor.
9998 * tui/tui-regs.h (struct tui_data_item_window)
9999 <tui_data_item_window>: Default the constructor.
10000 (struct tui_data_window) <tui_data_window>: Likewise.
10001 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10002 Default the constructor.
10003 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10004 Default the constructor.
10006 (struct tui_win_info) <tui_win_info>: Default the constructor.
10007 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10008 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10009 Default the constructor.
10011 2020-02-22 Tom Tromey <tom@tromey.com>
10013 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10014 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10015 * tui/tui-win.c (tui_resize_all): Don't call
10016 tui_delete_invisible_windows.
10017 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10019 (tui_set_layout): Update.
10020 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10021 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10022 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10024 2020-02-22 Tom Tromey <tom@tromey.com>
10026 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10029 2020-02-22 Tom Tromey <tom@tromey.com>
10031 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10033 2020-02-22 Tom Tromey <tom@tromey.com>
10035 * tui/tui-winsource.h (struct tui_source_window_iterator)
10036 <inner_iterator>: New etytypedef.
10037 <tui_source_window_iterator>: Take "end" parameter.
10038 <tui_source_window_iterator>: Take iterator.
10039 <operator*, advance>: Update.
10040 <m_iter>: Change type.
10041 <m_end>: New field.
10042 (struct tui_source_windows) <begin, end>: Update.
10043 * tui/tui-layout.c (tui_windows): New global.
10044 (tui_apply_current_layout): Clear tui_windows.
10045 (tui_layout_window::apply): Update tui_windows.
10046 * tui/tui-data.h (tui_windows): Declare.
10047 (all_tui_windows): Now inline function.
10048 (class tui_window_iterator, struct all_tui_windows): Remove.
10050 2020-02-22 Tom Tromey <tom@tromey.com>
10053 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10054 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10056 (class tui_layout_window) <get_sizes>: Likewise.
10057 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10059 <get_sizes>: Add "height" argument.
10060 <m_vertical>: New field.
10061 * tui/tui-layout.c (tui_layout_split::clone): Update.
10062 (tui_layout_split::get_sizes): Add "height" argument.
10063 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10064 (tui_new_layout_command): Parse "-horizontal".
10065 (_initialize_tui_layout): Update help string.
10066 (tui_layout_split::specification): Add "-horizontal" when needed.
10067 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10069 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10072 2020-02-22 Tom Tromey <tom@tromey.com>
10074 * tui/tui-layout.h (enum tui_adjust_result): New.
10075 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10076 (class tui_layout_window) <adjust_size>: Return
10077 tui_adjust_result. Rewrite.
10078 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10079 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10081 2020-02-22 Tom Tromey <tom@tromey.com>
10083 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10084 parameter and return types.
10085 (class tui_layout_base) <specification>: Add "depth".
10086 (class tui_layout_window) <specification>: Add "depth".
10087 (class tui_layout_split) <specification>: Add "depth".
10088 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10090 (tui_new_layout_command): Parse sub-layouts.
10091 (_initialize_tui_layout): Update help string.
10092 (tui_layout_window::specification): Add "depth".
10093 (add_layout_command): Update.
10095 2020-02-22 Tom Tromey <tom@tromey.com>
10097 * NEWS: Add "tui new-layout" item.
10098 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10099 Add new-layout command to help text.
10100 (validate_window_name): New function.
10101 (tui_new_layout_command): New function.
10102 (_initialize_tui_layout): Register "new-layout".
10103 (tui_layout_window::specification): New method.
10104 (tui_layout_window::specification): New method.
10105 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10107 (class tui_layout_window) <specification>: New method.
10108 (class tui_layout_split) <specification>: New method.
10110 2020-02-22 Tom Tromey <tom@tromey.com>
10112 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10113 * tui/tui-win.c (window_name_completer): Update comment.
10114 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10116 (class tui_layout_window) <replace_window>: Likewise.
10117 (class tui_layout_split) <replace_window>: Likewise.
10118 (tui_set_layout): Don't declare.
10119 (tui_set_initial_layout): Declare function.
10120 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10121 (asm_regs_layout): New globals.
10122 (tui_current_layout, show_layout): Remove.
10123 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10124 (find_layout, tui_apply_layout): New function.
10125 (layout_completer): Remove.
10126 (tui_next_layout): Reimplement.
10127 (tui_next_layout_command): New function.
10128 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10129 (tui_regs_layout): Reimplement.
10130 (tui_regs_layout_command): New function.
10131 (extract_display_start_addr): Rewrite.
10132 (next_layout, prev_layout): Remove.
10133 (tui_layout_window::replace_window): New method.
10134 (tui_layout_split::replace_window): New method.
10135 (destroy_layout): New function.
10136 (layout_list): New global.
10137 (add_layout_command): New function.
10138 (initialize_layouts): Update.
10139 (tui_layout_command): New function.
10140 (_initialize_tui_layout): Install "layout" commands.
10141 * tui/tui-data.h (enum tui_layout_type): Remove.
10142 (tui_current_layout): Don't declare.
10144 2020-02-22 Tom Tromey <tom@tromey.com>
10146 * tui/tui-regs.c (tui_reg_layout): Remove.
10147 (tui_reg_command): Use tui_regs_layout.
10148 * tui/tui-layout.h (tui_reg_command): Declare.
10149 * tui/tui-layout.c (tui_reg_command): New function.
10151 2020-02-22 Tom Tromey <tom@tromey.com>
10153 * tui/tui.c (tui_rl_delete_other_windows): Call
10154 tui_remove_some_windows.
10155 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10157 (class tui_layout_window) <remove_windows>: New method.
10158 (class tui_layout_split) <remove_windows>: Declare.
10159 (tui_remove_some_windows): Declare.
10160 * tui/tui-layout.c (tui_remove_some_windows): New function.
10161 (tui_layout_split::remove_windows): New method.
10163 2020-02-22 Tom Tromey <tom@tromey.com>
10165 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10166 * tui/tui-layout.h (tui_next_layout): Declare.
10167 * tui/tui-layout.c (tui_next_layout): New function.
10169 2020-02-22 Tom Tromey <tom@tromey.com>
10171 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10172 correct coordinates.
10174 2020-02-22 Tom Tromey <tom@tromey.com>
10176 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10177 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10180 2020-02-22 Tom Tromey <tom@tromey.com>
10182 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10183 TUI_DISASM_WIN, not tui_win_list.
10185 2020-02-22 Tom Tromey <tom@tromey.com>
10187 * valprint.c (generic_val_print_enum_1)
10188 (val_print_type_code_flags): Style member names.
10189 * rust-lang.c (val_print_struct, rust_print_enum)
10190 (rust_print_struct_def, rust_internal_print_type): Style member
10192 * p-valprint.c (pascal_object_print_value_fields): Style member
10193 names. Only call fprintf_symbol_filtered for static members.
10194 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10195 * f-valprint.c (f_val_print): Style member names.
10196 * f-typeprint.c (f_type_print_base): Style member names.
10197 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10198 call fprintf_symbol_filtered for static members.
10199 (cp_print_class_member): Style member names.
10200 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10202 * ada-valprint.c (ada_print_scalar): Style enum names.
10203 (ada_val_print_enum): Likewise.
10204 * ada-typeprint.c (print_enum_type): Style enum names.
10206 2020-02-21 Tom Tromey <tom@tromey.com>
10208 * psympriv.h (struct partial_symtab): Update comment.
10210 2020-02-21 Tom Tromey <tromey@adacore.com>
10212 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10215 2020-02-21 Tom de Vries <tdevries@suse.de>
10218 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10219 if dependencies[i]->user != NULL.
10221 2020-02-21 Ali Tamur <tamur@google.com>
10223 * dwarf2/read.c (dwarf2_name): Add null check.
10225 2020-02-20 Tom Tromey <tom@tromey.com>
10227 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10228 ">=", in binary search.
10229 (dwarf2_find_containing_comp_unit): New overload.
10230 (run_test): New self-test.
10231 (_initialize_dwarf2_read): Register new test.
10233 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10235 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10236 * riscv-tdep.h: Likewise.
10237 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10239 * features/riscv/64bit-csr.xml: Regenerated.
10241 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10242 Tom Tromey <tom@tromey.com>
10244 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10245 of 'fputc_unfiltered'.
10246 (putchar_unfiltered): Call 'fputc_unfiltered'.
10247 (fputc_unfiltered): Call 'fputs_unfiltered'.
10249 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10251 * config.in: Regenerate.
10252 * configure: Regenerate.
10253 * configure.ac: Add --with-python-libdir option.
10254 * main.c: Use WITH_PYTHON_LIBDIR.
10256 2020-02-19 Tom Tromey <tom@tromey.com>
10258 * symtab.c (general_symbol_info::compute_and_set_names): Use
10259 obstack_strndup. Simplify call to symbol_set_demangled_name.
10261 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10263 * dwarf2/read.c (allocate_signatured_type_table,
10264 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10265 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10266 Remove objfile parameter, update all callers.
10268 2020-02-19 Doug Evans <dje@google.com>
10271 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10272 rust_enum_variant calculation.
10274 2020-02-19 Tom Tromey <tromey@adacore.com>
10276 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10278 2020-02-19 Tom Tromey <tromey@adacore.com>
10280 * ada-lang.c (cache_symbol): Use obstack_strdup.
10282 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10284 * configure: Regenerate.
10286 2020-02-19 Tom Tromey <tromey@adacore.com>
10288 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10291 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10293 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10295 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10297 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10298 if GDBSERVER is not defined.
10299 (riscv_tdesc_cache): Likewise, also store const target_desc.
10300 (STATIC_IN_GDB): Define.
10301 (riscv_create_target_description): Update declaration with
10303 (riscv_lookup_target_description): New function, only define if
10304 GDBSERVER is not defined.
10305 * arch/riscv.h (riscv_create_target_description): Declare only
10306 when GDBSERVER is defined.
10307 (riscv_lookup_target_description): New declaration when GDBSERVER
10309 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10310 (riscv_linux_read_features): ...this, and return
10311 riscv_gdbarch_features instead of target_desc.
10312 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10313 (riscv_linux_read_description): Rename to...
10314 (riscv_linux_read_features): ...this.
10315 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10316 Update to use riscv_gdbarch_features and
10317 riscv_lookup_target_description.
10318 * riscv-tdep.c (riscv_find_default_target_description): Use
10319 riscv_lookup_target_description instead of
10320 riscv_create_target_description.
10322 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10324 * valprint.c (generic_val_print_enum_1): When printing a flag
10325 enum with value 0 and there is no enumerator with value 0, print
10326 just "0" instead of "(unknown: 0x0)".
10328 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10330 * valprint.c (generic_val_print_enum_1): Print unknown part of
10333 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10335 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10336 flag enums to contain duplicate enumerators.
10337 * valprint.c (generic_val_print_enum_1): Update comment.
10339 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10341 * dwarf2/read.c: Include "count-one-bits.h".
10342 (update_enumeration_type_from_children): If an enumerator has
10343 multiple bits set, don't treat the enumeration as a "flag enum".
10344 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10345 of flag enums have 0 or 1 bit set.
10347 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10349 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10351 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10352 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10353 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10354 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10355 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10357 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10359 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10361 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10363 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10364 displaced_step_closure_up.
10365 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10366 (struct displaced_step_closure_up):
10367 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10368 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10369 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10371 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10372 * gdbarch.c, gdbarch.h: Re-generate.
10373 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10374 displaced_step_closure_up.
10375 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10376 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10377 * infrun.h (displaced_step_closure_up): New type alias.
10378 (struct displaced_step_inferior_state) <step_closure>: Change
10379 type to displaced_step_closure_up.
10380 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10381 displaced_step_closure_up.
10382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10384 2020-02-14 Tom Tromey <tom@tromey.com>
10386 * minidebug.c (gnu_debug_key): New global.
10387 (find_separate_debug_file_in_section): Use it.
10389 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10391 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10393 * gdbarch.c: Re-generate.
10394 * gdbarch.h: Re-generate.
10395 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10397 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10398 type to std::unique_ptr.
10399 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10400 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10401 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10402 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10403 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10404 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10405 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10406 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10407 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10409 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10411 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10413 (displaced_step_clear): Rename to...
10414 (displaced_step_reset): ... this. Just call displaced->reset ().
10415 (displaced_step_clear_cleanup): Rename to...
10416 (displaced_step_reset_cleanup): ... this.
10417 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10418 (displaced_step_fixup): Likewise.
10419 (resume_1): Likewise.
10420 (handle_inferior_event): Restore child's memory before calling
10421 displaced_step_fixup on the parent.
10422 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10423 to std::unique_ptr.
10424 <step_closure>: Change type to std::unique_ptr.
10426 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10428 * arm-tdep.c: Include count-one-bits.h.
10429 (cleanup_block_store_pc): Use count_one_bits.
10430 (cleanup_block_load_pc): Use count_one_bits.
10431 (arm_copy_block_xfer): Use count_one_bits.
10432 (thumb2_copy_block_xfer): Use count_one_bits.
10433 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10434 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10435 (thumb_get_next_pcs_raw): Use count_one_bits.
10436 (arm_get_next_pcs_raw): Use count_one_bits_l.
10437 * arch/arm.c (bitcount): Remove.
10438 * arch/arm.h (bitcount): Remove.
10440 2020-02-14 Tom Tromey <tromey@adacore.com>
10442 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10444 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10445 * dwarf2/loc.c (call_site_find_chain_1): Return
10446 unique_xmalloc_ptr.
10447 (call_site_find_chain): Likewise.
10449 2020-02-14 Richard Biener <rguenther@suse.de>
10451 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10452 on expression with division operators.
10454 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10456 * MAINTAINERS (Write After Approval): Adding myself.
10458 2020-02-12 Tom Tromey <tom@tromey.com>
10460 * event-loop.c (event_data, gdb_event, event_handler_func):
10463 2020-02-12 Tom Tromey <tom@tromey.com>
10465 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10466 (dwarf2_frame_objfile_data): Add comment.
10467 (find_comp_unit, set_comp_unit): New functions.
10468 (dwarf2_frame_find_fde): Use find_comp_unit.
10469 (dwarf2_build_frame_info): Use set_comp_unit.
10471 2020-02-12 Tom Tromey <tom@tromey.com>
10473 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10474 (comp_unit): Don't initialize objfile.
10475 (execute_cfa_program): Add text_offset parameter.
10476 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10477 (dwarf2_frame_cache): Update.
10478 (dwarf2_build_frame_info): Don't set "objfile" member.
10480 2020-02-12 Tom Tromey <tom@tromey.com>
10482 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10483 (decode_frame_entry): Likewise.
10484 (dwarf2_build_frame_info): Update.
10486 2020-02-12 Tom Tromey <tom@tromey.com>
10488 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10489 (decode_frame_entry_1): Use the comp_unit obstack.
10491 2020-02-12 Tom Tromey <tom@tromey.com>
10493 * dwarf2/frame.c (struct comp_unit): Add initializers and
10495 (dwarf2_frame_objfile_data): Store a comp_unit.
10496 (dwarf2_frame_find_fde): Update.
10497 (dwarf2_build_frame_info): Use "new".
10499 2020-02-12 Tom Tromey <tom@tromey.com>
10501 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10502 (dwarf2_fde_table): Typedef for std::vector.
10503 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10504 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10505 (decode_frame_entry): Update.
10506 (dwarf2_build_frame_info): Use "new".
10508 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10510 * arm-tdep.c (arm_gdbarch_init): Update.
10511 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10512 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10513 have_neon, is_m>: Change to bool.
10515 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10517 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10519 2020-02-12 Tom Tromey <tom@tromey.com>
10521 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10523 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10525 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10526 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10528 2020-02-11 Tom Tromey <tom@tromey.com>
10530 * psymtab.h: Update comment.
10532 2020-02-11 Tom Tromey <tom@tromey.com>
10534 * gdb_obstack.h (struct auto_obstack): Use
10535 DISABLE_COPY_AND_ASSIGN.
10537 2020-02-11 Tom Tromey <tom@tromey.com>
10539 * dwarf2/frame.h (struct objfile): Don't forward declare.
10541 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10543 * cris-tdep.c (cris_supply_gregset): Change signature to match
10544 what struct regset expects.
10545 (cris_regset): New struct.
10546 (fetch_core_registers): Remove.
10547 (cris_iterate_over_regset_sections): New function.
10548 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10549 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10551 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10553 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10556 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10558 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10560 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10562 * configure: Re-generate.
10564 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10566 * configure: Re-generate.
10568 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10570 * acinclude: Update warning.m4 path.
10571 * warning.m4: Move to gdbsupport.
10573 2020-02-11 Tom Tromey <tromey@adacore.com>
10575 * remote.c (remote_console_output): Update.
10576 * printcmd.c (printf_command): Update.
10577 * event-loop.c (gdb_wait_for_event): Update.
10578 * linux-nat.c (sigchld_handler): Update.
10579 * remote-sim.c (gdb_os_write_stdout): Update.
10580 (gdb_os_flush_stdout): Update.
10581 (gdb_os_flush_stderr): Update.
10582 (gdb_os_write_stderr): Update.
10583 * exceptions.c (print_exception): Update.
10584 * remote-fileio.c (remote_fileio_func_read): Update.
10585 (remote_fileio_func_write): Update.
10586 * tui/tui.c (tui_enable): Update.
10587 * tui/tui-interp.c (tui_interp::init): Update.
10588 * utils.c (init_page_info): Update.
10589 (putchar_unfiltered, fputc_unfiltered): Update.
10590 (gdb_flush): Update.
10591 (emit_style_escape): Update.
10592 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10593 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10594 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10595 (stderr_file::write): Update.
10596 (stderr_file::puts): Update.
10597 * ui-file.h (ui_file_isatty, ui_file_write)
10598 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10599 (ui_file_puts): Don't declare.
10601 2020-02-10 Tom de Vries <tdevries@suse.de>
10603 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10604 sentinel to char *.
10606 2020-02-09 Tom de Vries <tdevries@suse.de>
10608 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10609 filename if it matches "<artificial>".
10611 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10613 * windows-tdep.c (struct enum_value_name): New struct.
10614 (create_enum): New function.
10615 (windows_get_siginfo_type): Create and use enum types.
10617 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10619 * NEWS: Mention $_siginfo support for Windows.
10620 * windows-nat.c (handle_exception): Set siginfo_er.
10621 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10622 (windows_xfer_siginfo): New function.
10623 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10624 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10625 (init_windows_gdbarch_data): New function.
10626 (get_windows_gdbarch_data): New function.
10627 (windows_get_siginfo_type): New function.
10628 (windows_init_abi): Register windows_get_siginfo_type.
10629 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10631 2020-02-08 Tom Tromey <tom@tromey.com>
10633 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10634 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10635 <keep>: Declare method.
10636 <m_keep>: Remove member.
10637 <~cutu_reader>: Remove.
10638 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10639 (cutu_reader::cutu_reader): Update.
10640 (cutu_reader::keep): Rename from ~cutu_reader.
10641 (process_psymtab_comp_unit, build_type_psymtabs_1)
10642 (process_skeletonless_type_unit, load_partial_comp_unit)
10643 (load_full_comp_unit, dwarf2_read_addr_index)
10644 (read_signatured_type): Update.
10646 2020-02-08 Tom Tromey <tom@tromey.com>
10648 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10649 "want_partial_unit" parameter.
10650 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10651 Inline check for DW_TAG_partial_unit.
10652 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10654 2020-02-08 Tom Tromey <tom@tromey.com>
10656 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10658 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10661 2020-02-08 Tom Tromey <tom@tromey.com>
10663 * dwarf2/read.c (read_address): Move to comp-unit.c.
10664 (dwarf2_rnglists_process, dwarf2_ranges_process)
10665 (read_attribute_value, dwarf_decode_lines_1)
10666 (var_decode_location, decode_locdesc): Update.
10667 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10668 read.c. Remove "cu" parameter.
10669 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10672 2020-02-08 Tom Tromey <tom@tromey.com>
10674 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10675 (read_indirect_line_string): Update.
10676 * dwarf2/comp-unit.c (read_offset): Remove.
10677 (read_comp_unit_head): Update.
10678 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10680 (read_offset): Don't declare.
10682 2020-02-08 Tom Tromey <tom@tromey.com>
10684 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10685 * dwarf2/read.c (struct comp_unit_head): Move to
10686 dwarf2/comp-unit.h.
10687 (enum class rcuh_kind): Move to comp-unit.h.
10688 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10689 (read_comp_unit_head, error_check_comp_unit_head)
10690 (read_and_check_comp_unit_head): Move to comp-unit.c.
10691 (read_offset, dwarf_unit_type_name): Likewise.
10692 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10693 (cutu_reader::cutu_reader, read_call_site_scope)
10694 (find_partial_die, follow_die_offset): Update.
10695 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10697 2020-02-08 Tom Tromey <tom@tromey.com>
10699 * dwarf2/read.c (read_offset_1): Move to leb.c.
10700 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10701 (dwarf_decode_macro_bytes): Update.
10702 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10703 * dwarf2/leb.h (read_offset): Declare.
10705 2020-02-08 Tom Tromey <tom@tromey.com>
10707 * dwarf2/read.c (dwarf2_section_size): Remove.
10708 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10710 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10712 2020-02-08 Tom Tromey <tom@tromey.com>
10714 * dwarf2/read.c (read_initial_length): Move to leb.c.
10715 * dwarf2/leb.h (read_initial_length): Declare.
10716 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10717 handle_nonstd parameter.
10718 * dwarf2/frame.c (read_initial_length): Remove.
10719 (decode_frame_entry_1): Update.
10721 2020-02-08 Tom Tromey <tom@tromey.com>
10723 * dwarf2/loc.c (dwarf2_find_location_expression)
10724 (dwarf_evaluate_loc_desc::get_tls_address)
10725 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10726 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10727 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10728 (dwarf2_compile_property_to_c)
10729 (dwarf2_loc_desc_get_symbol_read_needs)
10730 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10731 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10732 (loclist_describe_location, loclist_tracepoint_var_ref)
10733 (loclist_generate_c_location): Update.
10734 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10735 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10736 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10737 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10738 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10739 (dwarf2_per_cu_data::addr_size)
10740 (dwarf2_per_cu_data::ref_addr_size)
10741 (dwarf2_per_cu_data::text_offset)
10742 (dwarf2_per_cu_data::addr_type): Now methods.
10743 (per_cu_header_read_in): Make per_cu "const".
10744 (dwarf2_version): Remove.
10745 (dwarf2_per_cu_data::int_type): Now a method.
10746 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10747 (set_die_type, read_array_type, read_subrange_index_type)
10748 (read_tag_string_type, read_subrange_type): Update.
10749 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10750 offset_size, ref_addr_size, text_offset, addr_type, version,
10751 objfile, int_type, addr_sized_int_type>: Declare methods.
10753 2020-02-08 Tom Tromey <tom@tromey.com>
10755 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10758 2020-02-08 Tom Tromey <tom@tromey.com>
10760 * dwarf2/read.h (dwarf_line_debug): Declare.
10761 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10762 * dwarf2/read.c: Move line_header code to new files.
10763 (dwarf_line_debug): No longer static.
10764 * dwarf2/line-header.c: New file.
10765 * dwarf2/line-header.h: New file.
10767 2020-02-08 Tom Tromey <tom@tromey.com>
10769 * dwarf2/read.c (struct line_header) <file_full_name,
10770 file_file_name>: Return unique_xmalloc_ptr.
10771 (line_header::file_file_name): Update.
10772 (line_header::file_full_name): Update.
10773 (dw2_get_file_names_reader): Update.
10774 (macro_start_file): Update.
10776 2020-02-08 Tom Tromey <tom@tromey.com>
10778 * dwarf2/read.c (struct line_header) <file_full_name,
10779 file_file_name>: Declare methods.
10780 (dw2_get_file_names_reader): Update.
10781 (file_file_name): Now a method.
10782 (file_full_name): Likewise.
10783 (macro_start_file): Update.
10785 2020-02-08 Tom Tromey <tom@tromey.com>
10787 * dwarf2/read.c (dwarf_always_disassemble)
10788 (show_dwarf_always_disassemble): Move to loc.c.
10789 (_initialize_dwarf2_read): Move "always-disassemble" registration
10791 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10792 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10794 (show_dwarf_always_disassemble): Move from read.c.
10795 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10797 2020-02-08 Tom Tromey <tom@tromey.com>
10799 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10800 (create_quick_file_names_table): Return htab_up.
10801 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10803 * dwarf2/read.h (struct dwarf2_per_objfile)
10804 <quick_file_names_table>: Now htab_up.
10806 2020-02-08 Tom Tromey <tom@tromey.com>
10808 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10810 2020-02-08 Tom Tromey <tom@tromey.com>
10812 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10814 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10815 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10816 (abbrev_table::abbrev_table): No longer inline.
10817 (ABBREV_HASH_SIZE): Remove.
10818 (abbrev_table::m_abbrevs): Now an htab_up.
10820 2020-02-08 Tom Tromey <tom@tromey.com>
10822 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10823 (cutu_reader): Update.
10824 (build_type_psymtabs_1): Update.
10825 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10826 (abbrev_table::alloc_abbrev): Update.
10827 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10828 (abbrev_table::read): New static method, renamed from
10829 abbrev_table_read_table.
10830 (abbrev_table::alloc_abbrev)
10831 (abbrev_table::add_abbrev): Now private.
10832 (abbrev_table::abbrev_table): Now private.
10833 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10835 2020-02-08 Tom Tromey <tom@tromey.com>
10837 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10838 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10841 2020-02-08 Tom Tromey <tom@tromey.com>
10843 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10845 (lookup_dwo_unit_in_dwp): Update.
10846 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10849 2020-02-08 Tom Tromey <tom@tromey.com>
10851 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10854 2020-02-08 Tom Tromey <tom@tromey.com>
10856 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10858 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10859 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10860 Change type to htab_up.
10862 2020-02-08 Tom Tromey <tom@tromey.com>
10864 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10865 htab_up. Don't allocate on obstack.
10866 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10867 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10868 Change type to htab_up.
10870 2020-02-08 Tom Tromey <tom@tromey.com>
10872 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10873 Change type to htab_up.
10874 * dwarf2/read.c (create_signatured_type_table_from_index)
10875 (create_signatured_type_table_from_debug_names)
10876 (create_all_type_units, add_type_unit)
10877 (lookup_dwo_signatured_type, lookup_signatured_type)
10878 (process_skeletonless_type_unit): Update.
10879 (create_debug_type_hash_table, create_debug_types_hash_table):
10880 Change type of types_htab.
10881 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10882 htab_up. Don't allocate on obstack.
10883 (create_cus_hash_table): Change type of cus_htab parameter.
10884 (struct dwo_file) <cus, tus>: Now htab_up.
10885 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10886 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10887 (queue_and_load_all_dwo_tus): Update.
10888 * dwarf2/index-write.c (write_gdbindex): Update.
10889 (write_debug_names): Update.
10891 2020-02-08 Tom Tromey <tom@tromey.com>
10893 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10894 dwarf2/read.c. Remove "next" member. Add constructor ntad
10896 (struct dwarf2_per_objfile) <queue>: New member.
10897 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10899 (dwarf2_queue, dwarf2_queue_tail): Remove.
10900 (class dwarf2_queue_guard): Add parameter to constructor. Use
10901 DISABLE_COPY_AND_ASSIGN.
10902 <m_per_objfile>: New member.
10903 <~dwarf2_queue_guard>: Rewrite.
10904 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10906 (~dwarf2_queue_item): New.
10908 2020-02-08 Tom Tromey <tom@tromey.com>
10910 * dwarf2/read.c (struct die_info) <has_children>: New member.
10911 (dw2_get_file_names_reader): Remove has_children.
10912 (dw2_get_file_names): Update.
10913 (read_cutu_die_from_dwo): Remove has_children.
10914 (cutu_reader::init_tu_and_read_dwo_dies)
10915 (cutu_reader::cutu_reader): Update.
10916 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10917 Remove has_children.
10918 (build_type_psymtabs_1, process_skeletonless_type_unit)
10919 (load_partial_comp_unit, load_full_comp_unit): Update.
10920 (create_dwo_cu_reader): Remove has_children.
10921 (create_cus_hash_table, read_die_and_children): Update.
10922 (read_full_die_1,read_full_die): Remove has_children.
10923 (read_signatured_type): Update.
10924 (class cutu_reader) <has_children>: Remove.
10926 2020-02-08 Tom Tromey <tom@tromey.com>
10928 * dwarf2/expr.c: Rename from dwarf2expr.c.
10929 * dwarf2/expr.h: Rename from dwarf2expr.h.
10930 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10931 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10932 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10933 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10934 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10935 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10936 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10937 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10938 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10939 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10940 * dwarf2/loc.c: Rename from dwarf2loc.c.
10941 * dwarf2/loc.h: Rename from dwarf2loc.h.
10942 * dwarf2/read.c: Rename from dwarf2read.c.
10943 * dwarf2/read.h: Rename from dwarf2read.h.
10944 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10945 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10946 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10947 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10948 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10949 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10950 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10951 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10952 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10953 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10954 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10955 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10956 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10958 * Makefile.in (COMMON_SFILES): Update.
10959 (HFILES_NO_SRCDIR): Update.
10961 2020-02-08 Tom Tromey <tom@tromey.com>
10963 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10964 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10966 2020-02-08 Tom Tromey <tom@tromey.com>
10968 * dwarf2read.h (struct die_info): Don't declare.
10970 2020-02-08 Tom Tromey <tom@tromey.com>
10972 * dwarf2read.h (die_info_ptr): Remove typedef.
10974 2020-02-08 Tom Tromey <tom@tromey.com>
10976 * dwarf2read.c (read_call_site_scope)
10977 (handle_data_member_location, dwarf2_add_member_fn)
10978 (mark_common_block_symbol_computed, read_common_block)
10979 (attr_to_dynamic_prop, partial_die_info::read)
10980 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10981 (dwarf2_symbol_mark_computed, set_die_type): Update.
10982 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10984 (attr_form_is_block): Don't declare.
10985 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10987 2020-02-08 Tom Tromey <tom@tromey.com>
10989 * dwarf2read.c (dwarf2_find_base_address, )
10990 (read_call_site_scope, rust_containing_type)
10991 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10992 (handle_data_member_location, dwarf2_add_member_fn)
10993 (get_alignment, read_structure_type, process_structure_scope)
10994 (mark_common_block_symbol_computed, read_common_block)
10995 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10996 (partial_die_info::read, read_attribute_value, new_symbol)
10997 (lookup_die_type, dwarf2_get_ref_die_offset)
10998 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10999 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11000 (dwarf2_symbol_mark_computed): Update.
11001 * dwarf2/attribute.h (struct attribute) <value_as_address,
11002 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11004 (value_as_address, attr_form_is_section_offset)
11005 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11006 * dwarf2/attribute.c (attribute::value_as_address)
11007 (attribute::form_is_section_offset, attribute::form_is_constant)
11008 (attribute::form_is_ref): Now methods.
11010 2020-02-08 Tom Tromey <tom@tromey.com>
11012 * dwarf2read.c (struct attribute, DW_STRING)
11013 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11014 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11015 (attr_form_is_block, attr_form_is_section_offset)
11016 (attr_form_is_constant, attr_form_is_ref): Move.
11017 * dwarf2/attribute.h: New file.
11018 * dwarf2/attribute.c: New file, from dwarf2read.c.
11019 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11021 2020-02-08 Tom Tromey <tom@tromey.com>
11023 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11024 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11026 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11027 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11028 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11030 * dwarf2/abbrev.h: New file.
11031 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11032 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11034 2020-02-08 Tom Tromey <tom@tromey.com>
11036 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11037 (dwarf2_section_size, dwarf2_get_section_info)
11038 (create_signatured_type_table_from_debug_names)
11039 (create_addrmap_from_aranges, read_debug_names_from_section)
11040 (get_gdb_index_contents_from_section, read_comp_unit_head)
11041 (error_check_comp_unit_head, read_abbrev_offset)
11042 (create_debug_type_hash_table, init_cu_die_reader)
11043 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11044 (read_comp_units_from_section, create_cus_hash_table)
11045 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11046 (create_dwp_v2_section, dwarf2_rnglists_process)
11047 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11048 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11049 (read_indirect_string_from_dwz, read_addr_index_1)
11050 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11051 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11052 (fill_in_loclist_baton): Update.
11053 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11054 get_containing_section, get_bfd_owner, get_bfd_section,
11055 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11056 (dwarf2_read_section, get_section_name, get_section_file_name)
11057 (get_containing_section, get_section_bfd_owner)
11058 (get_section_bfd_section, get_section_name, get_section_file_name)
11059 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11061 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11062 (dwarf2_section_info::get_bfd_owner)
11063 (dwarf2_section_info::get_bfd_section)
11064 (dwarf2_section_info::get_name)
11065 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11066 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11067 (dwarf2_section_info::read): Now methods.
11068 * dwarf-index-write.c (class debug_names): Update.
11070 2020-02-08 Tom Tromey <tom@tromey.com>
11072 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11073 Move to dwarf2/section.h.
11074 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11075 (get_section_bfd_section, get_section_name)
11076 (get_section_file_name, get_section_id, get_section_flags)
11077 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11079 * dwarf2/section.h: New file.
11080 * dwarf2/section.c: New file, from dwarf2read.c.
11081 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11083 2020-02-08 Tom Tromey <tom@tromey.com>
11085 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11086 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11087 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11088 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11089 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11090 * dwarf2/leb.h: New file, from dwarf2read.c.
11091 * dwarf2/leb.c: New file, from dwarf2read.c.
11092 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11094 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11095 (COMMON_SFILES): Add dwarf2/leb.c.
11097 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11101 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11104 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11105 * gdb/remote.c (remote_console_output): Update.
11106 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11107 (ui_file_puts): ...this.
11108 * gdb/ui-file.h (ui_file_puts): Add declaration.
11109 * gdb/utils.c (emit_style_escape): Update.
11110 (flush_wrap_buffer): Update.
11111 (fputs_maybe_filtered): Update.
11112 (fputs_unfiltered): Add function.
11114 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11116 * gdb/event-loop.c (gdb_wait_for_event): Update.
11117 * gdb/printcmd.c (printf_command): Update.
11118 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11119 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11120 (gdb_os_flush_stderr): Update.
11121 * gdb/remote.c (remote_console_output): Update.
11122 * gdb/ui-file.c (gdb_flush): Rename to...
11123 (ui_file_flush): ...this.
11124 (stderr_file::write): Update.
11125 (stderr_file::puts): Update.
11126 * gdb/ui-file.h (gdb_flush): Rename to...
11127 (ui_file_flush): ...this.
11128 * gdb/utils.c (gdb_flush): Add function.
11129 * gdb/utils.h (gdb_flush): Add declaration.
11131 2020-02-07 Tom Tromey <tromey@adacore.com>
11133 PR breakpoints/24915:
11134 * source.c (find_and_open_source): Do not check basenames_may_differ.
11136 2020-02-07 Tom Tromey <tom@tromey.com>
11138 * README: Update gdbserver documentation.
11139 * gdbserver: Move to top level.
11140 * configure.tgt (build_gdbserver): Remove.
11141 * configure.ac: Remove --enable-gdbserver.
11142 * configure: Rebuild.
11143 * Makefile.in (distclean): Don't mention gdbserver.
11145 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11147 * source-cache.c (source_cache::ensure): Surround
11148 get_plain_source_lines with a try/catch.
11149 (source_cache::get_line_charpos): Get rid of try/catch
11150 and only check for the return value of "ensure".
11151 * tui/tui-source.c (tui_source_window::set_contents):
11152 Simplify "nlines" calculation.
11154 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11156 * MAINTAINERS (Write After Approval): Add myself.
11158 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11160 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11163 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11165 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11167 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11169 * nat/riscv-linux-tdesc.h: New file.
11170 * nat/riscv-linux-tdesc.c: New file, taking code from...
11171 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11173 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11176 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11178 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11179 we don't set the fake simulator ptid to the null_ptid.
11181 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11183 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11184 * gdbthread.h (class thread_info) <resumed>: Likewise.
11185 * infrun.c (resume_1): Likewise.
11186 (proceed): Likewise.
11187 (infrun_thread_stop_requested): Likewise.
11188 (stop_all_threads): Likewise.
11189 (handle_inferior_event): Likewise.
11190 (restart_threads): Likewise.
11191 (finish_step_over): Likewise.
11192 (keep_going_stepped_thread): Likewise.
11193 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11194 (linux_handle_extended_wait): Likewise.
11195 * record-btrace.c (get_thread_current_frame_id): Likewise.
11196 * record-full.c (record_full_wait_1): Likewise.
11197 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11198 * target.c (target_resume): Likewise.
11199 * thread.c (set_running_thread): Likewise.
11201 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11203 * f-valprint.c (f77_print_array_1): Changed datatype of index
11204 variable to LONGEST from int to enable it to contain bound
11207 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11209 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11210 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11211 offsets according to FLEN determined.
11212 (riscv_linux_nat_target::read_description): Determine FLEN
11214 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11215 according to FLEN determined.
11216 (riscv_linux_nat_target::store_registers): Likewise.
11218 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11220 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11221 when reg->group is empty and reggroup is not.
11223 2020-01-31 Tom Tromey <tromey@adacore.com>
11225 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11226 Call beneath target's mourn_inferior after unpushing.
11228 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11231 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11232 have enough lines to fill the screen, still return the lowest
11235 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11237 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11238 '-', '<', and '>' commands.
11240 2020-01-29 Pedro Alves <palves@redhat.com>
11241 Sergio Durigan Junior <sergiodj@redhat.com>
11243 * infcmd.c (construct_inferior_arguments): Assert that
11244 'argc' is greater than 0.
11246 2020-01-29 Luis Machado <luis.machado@linaro.org>
11248 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11249 (BRK_INSN_MASK): Define to 0xd4200000.
11250 (aarch64_program_breakpoint_here_p): New function.
11251 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11252 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11254 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11256 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11257 call gdbarch_program_breakpoint_here_p.
11258 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11259 default_program_breakpoint_here_p, changed return type to bool and
11261 * breakpoint.h (program_breakpoint_here): Moved prototype to
11262 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11263 return type to bool.
11264 * gdbarch.c: Regenerate.
11265 * gdbarch.h: Regenerate.
11266 * gdbarch.sh (program_breakpoint_here_p): New method.
11267 * infrun.c (handle_signal_stop): Call
11268 gdbarch_program_breakpoint_here_p.
11270 2020-01-26 Tom Tromey <tom@tromey.com>
11272 * ctfread.c (struct ctf_fp_info): Reindent.
11273 (_initialize_ctfread): Remove.
11275 2020-01-26 Tom Tromey <tom@tromey.com>
11277 * psymtab.c (partial_map_expand_apply)
11278 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11279 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11280 (psym_print_stats, psym_expand_symtabs_for_function)
11281 (psym_map_symbol_filenames, psym_map_matching_symbols)
11282 (psym_expand_symtabs_matching)
11283 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11284 (maintenance_check_psymtabs): Use new methods.
11285 * psympriv.h (struct partial_symtab) <readin_p,
11286 get_compunit_symtab>: New methods.
11287 <readin, compunit_symtab>: Remove members.
11288 (struct standard_psymtab): New.
11289 (struct legacy_psymtab): Derive from standard_psymtab.
11290 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11292 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11294 2020-01-26 Tom Tromey <tom@tromey.com>
11296 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11297 read_dependencies. Add assert.
11298 * psymtab.c (partial_symtab::read_dependencies): New method.
11299 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11301 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11302 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11304 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11307 2020-01-26 Tom Tromey <tom@tromey.com>
11309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11310 Call expand_psymtab.
11311 (xcoff_read_symtab): Call expand_psymtab.
11312 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11313 legacy_expand_psymtab.
11314 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11316 (struct legacy_psymtab) <expand_psymtab>: Implement.
11317 <legacy_expand_psymtab>: New member.
11318 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11319 (parse_partial_symbols): Set legacy_expand_psymtab.
11320 (psymtab_to_symtab_1): Change argument order. Call
11322 (new_psymtab): Set legacy_expand_psymtab.
11323 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11324 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11326 (dwarf2_psymtab::expand_psymtab): Rename from
11327 psymtab_to_symtab_1. Call expand_psymtab.
11328 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11329 (dbx_end_psymtab): Likewise.
11330 (dbx_psymtab_to_symtab_1): Change argument order. Call
11332 (dbx_read_symtab): Call expand_psymtab.
11333 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11334 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11335 (ctf_psymtab::read_symtab): Call expand_psymtab.
11337 2020-01-26 Tom Tromey <tom@tromey.com>
11339 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11340 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11342 * mdebugread.c (mdebug_read_symtab): Remove prints.
11343 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11345 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11347 2020-01-26 Tom Tromey <tom@tromey.com>
11349 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11350 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11351 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11353 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11354 * psymtab.c (psymtab_to_symtab): Call method.
11355 (dump_psymtab): Update.
11356 * psympriv.h (struct partial_symtab): Add virtual destructor.
11357 <read_symtab>: New method.
11358 (struct legacy_symtab): New.
11359 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11360 (struct pst_map) <pst>: Now a legacy_psymtab.
11361 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11362 (new_psymtab): Use legacy_psymtab.
11363 * dwarf2read.h (struct dwarf2_psymtab): New.
11364 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11365 * dwarf2read.c (dwarf2_create_include_psymtab)
11366 (dwarf2_build_include_psymtabs, create_type_unit_group)
11367 (create_partial_symtab, process_psymtab_comp_unit_reader)
11368 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11369 (set_partial_user): Use dwarf2_psymtab.
11370 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11371 (psymtab_to_symtab_1, process_full_comp_unit)
11372 (process_full_type_unit, dwarf2_ranges_read)
11373 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11374 (dwarf_decode_lines): Use dwarf2_psymtab.
11375 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11376 (add_address_entry_worker, write_one_signatured_type)
11377 (recursively_count_psymbols, recursively_write_psymbols)
11378 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11379 (write_debug_names): Likewise.
11380 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11381 <pst>: Now a legacy_psymtab.
11382 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11383 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11384 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11385 * ctfread.c (struct ctf_psymtab): New.
11386 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11388 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11389 (create_partial_symtab): Return a ctf_psymtab.
11390 (scan_partial_symbols): Update.
11392 2020-01-26 Tom Tromey <tom@tromey.com>
11394 * xcoffread.c (xcoff_start_psymtab): Use new.
11395 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11396 renamed from start_psymtab_common.
11397 * psympriv.h (struct partial_symtab): Add new constructor.
11398 (start_psymtab_common): Don't declare.
11399 * mdebugread.c (parse_partial_symbols): Use new.
11400 * dwarf2read.c (create_partial_symtab): Use new.
11401 * dbxread.c (start_psymtab): Use new.
11402 * ctfread.c (create_partial_symtab): Use new.
11404 2020-01-26 Tom Tromey <tom@tromey.com>
11406 * xcoffread.c (xcoff_end_psymtab): Use new.
11407 * psymtab.c (start_psymtab_common): Use new.
11408 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11410 * psympriv.h (struct partial_symtab): Add parameters to
11411 constructor. Don't inline.
11412 (allocate_psymtab): Don't declare.
11413 * mdebugread.c (new_psymtab): Use new.
11414 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11415 * dbxread.c (dbx_end_psymtab): Use new.
11417 2020-01-26 Tom Tromey <tom@tromey.com>
11419 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11420 allocate_psymtab. Update documentation.
11421 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11422 allocate_psymtab. Do not use new.
11423 (allocate_psymtab): Use new. Update.
11425 2020-01-26 Tom Tromey <tom@tromey.com>
11427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11428 * psymtab.c (psym_print_stats): Update.
11429 * psympriv.h (struct partial_symtab) <readin,
11430 psymtabs_addrmap_supported, anonymous>: Now bool.
11431 * mdebugread.c (psymtab_to_symtab_1): Update.
11432 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11433 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11434 (process_full_comp_unit, process_full_type_unit): Update.
11435 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11436 * ctfread.c (psymtab_to_symtab): Update.
11438 2020-01-26 Tom Tromey <tom@tromey.com>
11440 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11441 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11442 * psymtab.c (psymtab_storage): Delete psymtabs.
11443 (psymtab_storage::allocate_psymtab): Use new.
11444 (psymtab_storage::discard_psymtab): Use delete.
11445 * psympriv.h (struct partial_symtab): Add constructor and
11448 2020-01-26 Tom Tromey <tom@tromey.com>
11450 * machoread.c: Do not include psympriv.h.
11452 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11454 * NEWS: Mention the new option and the set/show commands.
11456 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11458 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11459 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11460 (validate_exec_file): New variables, enums, functions.
11461 (exec_file_locate_attach, print_section_info): Style the filenames.
11462 (_initialize_exec): Install show_exec_file_mismatch_command and
11463 set_exec_file_mismatch_command.
11464 * gdbcore.h (validate_exec_file): Declare.
11465 * infcmd.c (attach_command): Call validate_exec_file.
11466 * remote.c ( remote_target::remote_add_inferior): Likewise.
11468 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11470 * frame.c (find_frame_sal): Move call to get_next_frame into more
11472 * inline-frame.c (inilne_state) <inline_state>: Update argument
11474 (inilne_state) <skipped_symbol>: Rename to...
11475 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11476 (skip_inline_frames): Build vector of skipped symbols and use this
11477 to reate the inline_state.
11478 (inline_skipped_symbol): Add a comment and some assertions, fetch
11479 skipped symbol from the list.
11481 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11483 * buildsym.c (lte_is_less_than): Delete.
11484 (buildsym_compunit::end_symtab_with_blockvector): Create local
11485 lambda function to sort line table entries, and use
11486 std::stable_sort instead of std::sort.
11487 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11488 markers when looking for a previous line.
11490 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11492 * dwarf2read.c (lnp_state_machine::record_line): Include
11493 end_sequence parameter in debug print out. Record the line if we
11494 are at an end_sequence marker even if it's not the start of a
11496 * symmisc.c (maintenance_print_one_line_table): Print end of
11497 sequence markers with 'END' not '0'.
11499 2020-01-24 Pedro Alves <palves@redhat.com>
11502 * thread.c (scoped_restore_current_thread::restore): Use
11503 switch_to_inferior_no_thread.
11504 * exec.c: Include "progspace-and-thread.h".
11505 (add_target_sections, remove_target_sections):
11506 scoped_restore_current_pspace_and_thread instead of
11507 scoped_restore_current_thread.
11508 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11509 and aspace to the inferior before calling clone_program_space.
11510 Remove stale comment.
11512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11514 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11515 (arm_netbsd_nat_target::fetch_registers): ...this.
11516 (arm_nbsd_nat_target::store_registers): Rename to...
11517 (arm_netbsd_nat_target::store_registers): ...this.
11519 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11521 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11524 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11526 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11528 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11530 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11531 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11532 the correct replacement (iterate_over_regset_sections).
11533 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11536 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11539 * gdb/python/python.c (execute_gdb_command): Call
11540 async_enable_stdin in catch block.
11542 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11544 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11545 SWITCH_THRU_ALL_UIS.
11547 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11550 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11551 comment, add extra parameter, and update to store previous symbol
11553 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11554 add extra parameter.
11555 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11556 remove unneeded parameter, add try/catch around gdb_print_insn,
11557 rewrite to add items to asm_lines vector.
11558 (tui_find_backward_disassembly_start_address): New function.
11559 (tui_find_disassembly_address): Updated throughout.
11560 (tui_disasm_window::set_contents): Update for changes to
11562 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11563 number of lines to scroll.
11565 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11567 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11568 (SECT_OFF_DATA): Likewise.
11569 (SECT_OFF_RODATA): Likewise.
11570 (SECT_OFF_TEXT): Likewise.
11571 (SECT_OFF_BSS): Likewise.
11572 (struct objfile) <text_section_offset, data_section_offset>: New
11574 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11575 objfile::text_section_offset.
11576 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11577 * coffread.c (coff_symtab_read): Likewise.
11578 (enter_linenos): Likewise.
11579 (process_coff_symbol): Likewise.
11580 * ctfread.c (get_objfile_text_range): Likewise.
11581 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11582 Use objfile::data_section_offset.
11583 * dwarf2-frame.c (execute_cfa_program): Use
11584 objfile::text_section_offset.
11585 (dwarf2_frame_find_fde): Likewise.
11586 * dwarf2read.c (create_addrmap_from_index): Likewise.
11587 (create_addrmap_from_aranges): Likewise.
11588 (dw2_find_pc_sect_compunit_symtab): Likewise.
11589 (process_psymtab_comp_unit_reader): Likewise.
11590 (add_partial_symbol): Likewise.
11591 (add_partial_subprogram): Likewise.
11592 (process_full_comp_unit): Likewise.
11593 (read_file_scope): Likewise.
11594 (read_func_scope): Likewise.
11595 (read_lexical_block_scope): Likewise.
11596 (read_call_site_scope): Likewise.
11597 (dwarf2_rnglists_process): Likewise.
11598 (dwarf2_ranges_process): Likewise.
11599 (dwarf2_ranges_read): Likewise.
11600 (dwarf_decode_lines_1): Likewise.
11601 (new_symbol): Likewise.
11602 (dwarf2_fetch_die_loc_sect_off): Likewise.
11603 (dwarf2_per_cu_text_offset): Likewise.
11604 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11605 * hppa-tdep.c (read_unwind_info): Likewise.
11606 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11607 * psympriv.h (struct partial_symtab): Likewise.
11608 * psymtab.c (find_pc_sect_psymtab): Likewise.
11609 * solib-svr4.c (enable_break): Likewise.
11610 * stap-probe.c (relocate_address): Use
11611 objfile::data_section_offset.
11612 * xcoffread.c (enter_line_range): Use
11613 objfile::text_section_offset.
11614 (read_xcoff_symtab): Likewise.
11616 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11618 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11619 declaration to narrower scopes.
11621 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11623 * darwin-nat.h (struct darwin_exception_msg, enum
11624 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11626 (class darwin_nat_target) <wait_1, check_new_threads,
11627 decode_exception_message, decode_message, stop_inferior,
11628 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11629 * darwin-nat.c (darwin_check_new_threads): Rename to...
11630 (darwin_nat_target::check_new_threads): ... this.
11631 (darwin_suspend_inferior_it): Remove.
11632 (darwin_decode_exception_message): Rename to...
11633 (darwin_nat_target::decode_exception_message): ... this.
11634 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11635 (darwin_decode_message): Rename to...
11636 (darwin_nat_target::decode_message): ... this.
11637 (cancel_breakpoint): Rename to...
11638 (darwin_nat_target::cancel_breakpoint): ... this.
11639 (darwin_wait): Rename to...
11640 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11641 instead of iterate_over_inferiors.
11642 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11643 (darwin_stop_inferior): Rename to...
11644 (darwin_nat_target::stop_inferior): ... this.
11645 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11646 (darwin_init_thread_list): Rename to...
11647 (darwin_nat_target::init_thread_list): ... this.
11648 (darwin_ptrace_him): Rename to...
11649 (darwin_nat_target::ptrace_him): ... this.
11650 (darwin_nat_target::create_inferior): Pass lambda function to
11652 (darwin_nat_target::detach): Call stop_inferior instead of
11653 darwin_stop_inferior.
11654 * fork-inferior.h (fork_inferior): Change init_trace_fun
11655 parameter to gdb::function_view.
11656 * fork-inferior.c (fork_inferior): Likewise.
11658 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11660 * i386-cygwin-tdep.c (core_process_module_section): Update.
11661 * windows-nat.c (struct lm_info_windows): Add text_offset.
11662 (windows_xfer_shared_libraries): Update.
11663 * windows-tdep.c (windows_xfer_shared_library):
11664 Add text_offset_cached argument.
11665 * windows-tdep.h (windows_xfer_shared_library): Update.
11667 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11669 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11671 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11673 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11674 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11675 replace with range-based for.
11676 (gdbsim_interrupt_inferior): Remove.
11677 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11678 with a range-based for. Inline code from
11679 gdbsim_interrupt_inferior.
11681 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11683 * infrun.c (proceed): Fix indentation.
11685 2020-01-21 Tom Tromey <tromey@adacore.com>
11687 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11688 * python/python.c (python_extension_ops): Update.
11689 (gdbpy_colorize): New function.
11690 * python/lib/gdb/__init__.py (colorize): New function.
11691 * extension.h (ext_lang_colorize): Declare.
11692 * extension.c (ext_lang_colorize): New function.
11693 * extension-priv.h (struct extension_language_ops) <colorize>: New
11695 * cli/cli-style.c (_initialize_cli_style): Update help text.
11697 2020-01-21 Luis Machado <luis.machado@linaro.org>
11699 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11700 <cond>: Change type to bool.
11701 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11702 (aarch64_displaced_step_cb): Likewise.
11703 (aarch64_displaced_step_tb): Likewise.
11705 2020-01-21 Luis Machado <luis.machado@linaro.org>
11707 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11710 2020-01-21 Luis Machado <luis.machado@linaro.org>
11712 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11713 <pc_adjust>: Adjust the documentation.
11714 (aarch64_displaced_step_fixup): Check if PC really moved before
11717 2020-01-19 Tom Tromey <tom@tromey.com>
11719 * disasm.c (~gdb_disassembler): New destructor.
11720 (gdb_buffered_insn_length): Call disassemble_free_target.
11721 * disasm.h (class gdb_disassembler): Declare destructor. Use
11722 DISABLE_COPY_AND_ASSIGN.
11724 2020-01-19 Tom Tromey <tom@tromey.com>
11726 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11727 (die_reader_func_ftype): Remove.
11728 (cutu_reader): New class.
11729 (dw2_get_file_names_reader): Remove "data" parameter.
11730 (dw2_get_file_names): Use cutu_reader.
11731 (create_debug_type_hash_table): Update.
11732 (read_cutu_die_from_dwo): Update comment.
11733 (lookup_dwo_unit): Add dwo_name parameter.
11734 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11735 die_reader_func_ftype and data parameters.
11736 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11737 Remove die_reader_func_ftype and data parameters.
11738 (~cutu_reader): New; from init_cutu_and_read_dies.
11739 (cutu_reader::cutu_reader): Rename from
11740 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11741 and data parameters.
11742 (init_cutu_and_read_dies_simple): Remove.
11743 (struct process_psymtab_comp_unit_data): Remove.
11744 (process_psymtab_comp_unit_reader): Remove data parameter; add
11745 want_partial_unit and pretend_language parameters.
11746 (process_psymtab_comp_unit): Use cutu_reader.
11747 (build_type_psymtabs_reader): Remove data parameter.
11748 (build_type_psymtabs_1): Use cutu_reader.
11749 (process_skeletonless_type_unit): Likewise.
11750 (load_partial_comp_unit_reader): Remove.
11751 (load_partial_comp_unit): Use cutu_reader.
11752 (load_full_comp_unit_reader): Remove.
11753 (load_full_comp_unit): Use cutu_reader.
11754 (struct create_dwo_cu_data): Remove.
11755 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11756 dwo_unit parameters.
11757 (create_cus_hash_table): Use cutu_reader.
11758 (struct dwarf2_read_addr_index_data): Remove.
11759 (dwarf2_read_addr_index_reader): Remove.
11760 (dwarf2_read_addr_index): Use cutu_reader.
11761 (read_signatured_type_reader): Remove.
11762 (read_signatured_type): Use cutu_reader.
11764 2020-01-19 Tom Tromey <tom@tromey.com>
11766 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11767 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11768 (tui_wrefresh): Declare.
11769 * tui/tui-wingeneral.c (suppress_output): New global.
11770 (tui_suppress_output, ~tui_suppress_output): New constructor and
11772 (tui_wrefresh): New function.
11773 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11774 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11775 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11777 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11779 (tui_data_window::no_refresh): New method.
11780 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11781 (tui_reg_command): Use tui_suppress_output
11782 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11783 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11785 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11787 2020-01-19 Tom Tromey <tom@tromey.com>
11789 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11790 Handle case where symtab is null.
11792 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11794 * linux-fork.c (one_fork_p): Simplify.
11796 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11798 * top.c (struct qt_args): Remove.
11799 (kill_or_detach): Change return type to void, replace `void *`
11800 parameter with a proper one.
11801 (print_inferior_quit_action): Likewise.
11802 (quit_confirm): Use range-based for loop to iterate over inferiors.
11803 (quit_force): Likewise.
11805 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11807 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11808 `void *` parameter with proper parameters.
11809 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11810 (print_one_inferior): Change return type to void, replace `void *`
11811 parameter with proper parameters.
11812 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11814 (get_other_inferior): Remove.
11815 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11818 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11820 * mi/mi-interp.c (report_initial_inferior): Remove.
11821 (mi_interp::init): Use range-based for to iterate over inferiors.
11823 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11825 * python/py-inferior.c (build_inferior_list): Remove.
11826 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11828 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11830 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11831 (btrace_stitch_trace): Likewise.
11832 * charset.c (intermediate_encoding): Likewise (vaild).
11833 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11834 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11835 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11837 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11839 * windows-tdep.c (windows_get_tlb_type):
11840 Add rtl_user_process_parameters type.
11842 2020-01-16 Pedro Alves <palves@redhat.com>
11843 Norbert Lange <nolange79@gmail.com>
11846 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11847 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11848 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11849 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11850 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11851 (ps_plog): Redeclare exported functions with default visibility.
11853 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11855 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11856 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11858 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11860 * infcmd.c (post_create_inferior): Use get_thread_regcache
11861 instead of get_current_regcache.
11863 2020-01-14 Tom Tromey <tom@tromey.com>
11866 * python/python.c (gdbpy_decode_line): Treat empty string the same
11869 2020-01-14 Tom Tromey <tom@tromey.com>
11871 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11873 2020-01-14 Tom Tromey <tom@tromey.com>
11875 * nat/linux-btrace.c: Don't include <config.h>.
11876 * nat/linux-ptrace.c: Don't include <config.h>.
11877 * nat/x86-linux-dregs.c: Don't include <config.h>.
11879 2020-01-14 Tom Tromey <tom@tromey.com>
11881 * configure: Rebuild.
11882 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11884 2020-01-14 Tom Tromey <tom@tromey.com>
11886 * nat/x86-linux-dregs.c: Include configh.h.
11887 * nat/linux-ptrace.c: Include configh.h.
11888 * nat/linux-btrace.c: Include configh.h.
11889 * defs.h: Include config.h, bfd.h.
11890 * configure.ac: Don't source common.host.
11891 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11892 * configure: Rebuild.
11893 * acinclude.m4: Update path.
11894 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11895 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11896 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11897 (CLIBS): Add LIBSUPPORT.
11899 (COMMON_SFILES): Remove gdbsupport files.
11900 (HFILES_NO_SRCDIR): Likewise.
11901 (stamp-version): Update path to create-version.sh.
11902 (ALLDEPFILES): Remove gdbsupport files.
11904 2020-01-14 Tom Tromey <tom@tromey.com>
11906 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11907 USE_WIN32API when needed.
11908 * configure.ac (USE_WIN32API): Don't define.
11909 (WIN32LIBS): Use WIN32APILIBS.
11910 * configure: Rebuild.
11912 2020-01-14 Tom Tromey <tom@tromey.com>
11914 * configure: Rebuild.
11915 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11917 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11919 * skip.c (skip_function_command): Make skip w/o arguments use the
11920 name of the inlined function if pc is inside any inlined function.
11922 2020-01-14 Luis Machado <luis.machado@linaro.org>
11924 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11925 * infrun.c (resume_1): Likewise.
11926 (handle_inferior_event): Remove stale comment.
11927 * linux-nat.c (linux_nat_target::resume): Update comments.
11928 (save_stop_reason): Likewise.
11929 (linux_nat_filter_event): Likewise.
11930 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11932 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11934 * elfread.c (record_minimal_symbol): Set section index to 0 for
11935 non-allocatable sections.
11938 2020-01-13 Ali Tamur <tamur@google.com>
11940 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11941 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11942 to gdb::optional. Update comments.
11943 (dwo_file): Update comments.
11944 (read_attribute): Update API to take an additional out parameter,
11945 need_reprocess. This is used to mark attributes that need other
11946 attributes (e.g. str_offsets_base) for correct computation which may not
11947 have been read yet.
11948 (read_attribute_reprocess): New function declaration.
11949 (read_addr_index): Likewise.
11950 (read_dwo_str_index): Likewise.
11951 (read_stub_str_index): Likewise.
11952 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11953 (lookup_addr_base): New function definition.
11954 (lookup_ranges_base): Likewise.
11955 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11956 lookup_ranges_base.
11957 (init_cutu_and_read_dies): Update comments.
11958 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11959 unit. This is used to inherit parent's str_offsets_base and addr_base.
11961 (init_cutu_and_read_dies_simple): Reflect API changes.
11962 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11963 (create_cus_hash_table): Change API to take parent compile unit.
11964 Reflect API changes.
11965 (open_and_init_dwo_file): Reflect API changes.
11966 (dwarf2_get_pc_bounds): Update comments.
11967 (dwarf2_record_block_ranges): Likewise.
11968 (read_full_die_1): Change implementation to reprocess attributes that
11969 need str_offsets_base and addr_base.
11970 (partial_die_info::read): Likewise.
11971 (read_attribute_reprocess): New function definition.
11972 (read_attribute_value): Change API to take an additional out parameter,
11973 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11974 when a non-dwo compile unit has index based attributes.
11975 (read_attribute): Reflect API changes.
11976 (read_addr_index_1): Reflect API changes. Update comments.
11977 (dwarf2_read_addr_index_data): Reflect API changes.
11978 (dwarf2_read_addr_index): Likewise.
11979 (read_str_index): Change API and implementation. This becomes a helper
11980 to be used by the new string index related methods. Update error
11981 message and comments.
11982 (read_dwo_str_index): New function definition.
11983 (read_stub_str_index): Likewise.
11984 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11985 * symfile.h (dwarf2_debug_sections): Likewise.
11986 * xcoffread.c (dwarf2_debug_sections): Likewise.
11988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11990 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11991 core_reg_sect type to gdb_byte *.
11992 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11993 * cris-tdep.c (fetch_core_registers): Likewise.
11994 * corelow.c (core_target::get_core_register_section): Change
11995 type of `contents` to gdb::byte_vector.
11997 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11999 * tui/tui-wingeneral.c (box_win): Position the title in the center
12002 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12004 * corelow.c (core_target::get_core_register_section): Use
12005 std::vector instead of alloca.
12007 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12009 * warning.m4: Add -Wmissing-declarations to build_warnings.
12010 * configure: Re-generate.
12012 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12014 * python/python.c (init__gdb_module): Add declaration.
12016 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12018 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12019 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12020 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12021 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12022 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12023 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12024 * ada-exp.y (_initialize_ada_exp): Add declaration.
12025 * ada-lang.c (_initialize_ada_language): Add declaration.
12026 * ada-tasks.c (_initialize_tasks): Add declaration.
12027 * agent.c (_initialize_agent): Add declaration.
12028 * aix-thread.c (_initialize_aix_thread): Add declaration.
12029 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12030 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12031 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12032 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12033 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12034 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12035 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12036 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12037 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12038 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12039 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12040 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12041 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12042 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12043 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12044 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12045 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12046 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12047 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12048 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12049 * annotate.c (_initialize_annotate): Add declaration.
12050 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12051 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12052 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12053 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12054 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12055 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12056 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12057 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12058 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12059 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12060 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12061 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12063 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12064 * auto-load.c (_initialize_auto_load): Add declaration.
12065 * auxv.c (_initialize_auxv): Add declaration.
12066 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12067 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12068 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12069 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12070 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12071 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12072 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12073 * breakpoint.c (_initialize_breakpoint): Add declaration.
12074 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12075 * btrace.c (_initialize_btrace): Add declaration.
12076 * charset.c (_initialize_charset): Add declaration.
12077 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12078 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12079 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12080 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12081 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12082 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12083 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12084 * coffread.c (_initialize_coffread): Add declaration.
12085 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12086 * compile/compile.c (_initialize_compile): Add declaration.
12087 * complaints.c (_initialize_complaints): Add declaration.
12088 * completer.c (_initialize_completer): Add declaration.
12089 * copying.c (_initialize_copying): Add declaration.
12090 * corefile.c (_initialize_core): Add declaration.
12091 * corelow.c (_initialize_corelow): Add declaration.
12092 * cp-abi.c (_initialize_cp_abi): Add declaration.
12093 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12094 * cp-support.c (_initialize_cp_support): Add declaration.
12095 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12096 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12097 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12098 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12099 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12100 * ctfread.c (_initialize_ctfread): Add declaration.
12101 * d-lang.c (_initialize_d_language): Add declaration.
12102 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12103 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12104 * dbxread.c (_initialize_dbxread): Add declaration.
12105 * dcache.c (_initialize_dcache): Add declaration.
12106 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12107 * disasm.c (_initialize_disasm): Add declaration.
12108 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12109 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12110 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12111 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12112 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12113 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12114 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12115 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12116 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12117 * elfread.c (_initialize_elfread): Add declaration.
12118 * exec.c (_initialize_exec): Add declaration.
12119 * extension.c (_initialize_extension): Add declaration.
12120 * f-lang.c (_initialize_f_language): Add declaration.
12121 * f-valprint.c (_initialize_f_valprint): Add declaration.
12122 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12123 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12124 * filesystem.c (_initialize_filesystem): Add declaration.
12125 * findcmd.c (_initialize_mem_search): Add declaration.
12126 * findvar.c (_initialize_findvar): Add declaration.
12127 * fork-child.c (_initialize_fork_child): Add declaration.
12128 * frame-base.c (_initialize_frame_base): Add declaration.
12129 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12130 * frame.c (_initialize_frame): Add declaration.
12131 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12132 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12133 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12134 * gcore.c (_initialize_gcore): Add declaration.
12135 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12136 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12137 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12138 * gdbarch.c (_initialize_gdbarch): Add declaration.
12139 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12140 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12141 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12142 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12143 * go-lang.c (_initialize_go_language): Add declaration.
12144 * go32-nat.c (_initialize_go32_nat): Add declaration.
12145 * guile/guile.c (_initialize_guile): Add declaration.
12146 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12147 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12148 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12149 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12150 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12151 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12152 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12153 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12154 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12155 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12156 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12157 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12158 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12159 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12160 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12161 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12162 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12163 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12164 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12165 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12166 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12167 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12168 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12169 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12170 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12171 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12172 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12173 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12174 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12175 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12176 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12177 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12178 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12179 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12180 * infcall.c (_initialize_infcall): Add declaration.
12181 * infcmd.c (_initialize_infcmd): Add declaration.
12182 * inflow.c (_initialize_inflow): Add declaration.
12183 * infrun.c (_initialize_infrun): Add declaration.
12184 * interps.c (_initialize_interpreter): Add declaration.
12185 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12186 * jit.c (_initialize_jit): Add declaration.
12187 * language.c (_initialize_language): Add declaration.
12188 * linux-fork.c (_initialize_linux_fork): Add declaration.
12189 * linux-nat.c (_initialize_linux_nat): Add declaration.
12190 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12191 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12192 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12193 * m2-lang.c (_initialize_m2_language): Add declaration.
12194 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12195 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12196 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12197 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12198 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12199 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12200 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12201 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12202 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12203 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12204 * machoread.c (_initialize_machoread): Add declaration.
12205 * macrocmd.c (_initialize_macrocmd): Add declaration.
12206 * macroscope.c (_initialize_macroscope): Add declaration.
12207 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12208 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12209 * maint.c (_initialize_maint_cmds): Add declaration.
12210 * mdebugread.c (_initialize_mdebugread): Add declaration.
12211 * memattr.c (_initialize_mem): Add declaration.
12212 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12213 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12214 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12215 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12216 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12217 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12218 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12219 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12220 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12221 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12222 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12223 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12224 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12225 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12226 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12227 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12228 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12229 * mipsread.c (_initialize_mipsread): Add declaration.
12230 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12231 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12232 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12233 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12234 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12235 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12236 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12237 * nto-procfs.c (_initialize_procfs): Add declaration.
12238 * objc-lang.c (_initialize_objc_language): Add declaration.
12239 * observable.c (_initialize_observer): Add declaration.
12240 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12241 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12242 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12243 * osabi.c (_initialize_gdb_osabi): Add declaration.
12244 * osdata.c (_initialize_osdata): Add declaration.
12245 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12246 * parse.c (_initialize_parse): Add declaration.
12247 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12248 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12249 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12250 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12251 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12252 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12253 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12254 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12255 * printcmd.c (_initialize_printcmd): Add declaration.
12256 * probe.c (_initialize_probe): Add declaration.
12257 * proc-api.c (_initialize_proc_api): Add declaration.
12258 * proc-events.c (_initialize_proc_events): Add declaration.
12259 * proc-service.c (_initialize_proc_service): Add declaration.
12260 * procfs.c (_initialize_procfs): Add declaration.
12261 * producer.c (_initialize_producer): Add declaration.
12262 * psymtab.c (_initialize_psymtab): Add declaration.
12263 * python/python.c (_initialize_python): Add declaration.
12264 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12265 * record-btrace.c (_initialize_record_btrace): Add declaration.
12266 * record-full.c (_initialize_record_full): Add declaration.
12267 * record.c (_initialize_record): Add declaration.
12268 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12269 * regcache.c (_initialize_regcache): Add declaration.
12270 * reggroups.c (_initialize_reggroup): Add declaration.
12271 * remote-notif.c (_initialize_notif): Add declaration.
12272 * remote-sim.c (_initialize_remote_sim): Add declaration.
12273 * remote.c (_initialize_remote): Add declaration.
12274 * reverse.c (_initialize_reverse): Add declaration.
12275 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12276 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12277 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12278 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12279 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12280 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12281 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12282 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12284 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12285 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12286 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12287 * rust-exp.y (_initialize_rust_exp): Add declaration.
12288 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12289 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12290 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12291 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12292 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12293 * score-tdep.c (_initialize_score_tdep): Add declaration.
12294 * ser-go32.c (_initialize_ser_dos): Add declaration.
12295 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12296 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12297 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12298 * ser-uds.c (_initialize_ser_socket): Add declaration.
12299 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12300 * serial.c (_initialize_serial): Add declaration.
12301 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12302 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12303 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12304 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12305 * skip.c (_initialize_step_skip): Add declaration.
12306 * sol-thread.c (_initialize_sol_thread): Add declaration.
12307 * solib-aix.c (_initialize_solib_aix): Add declaration.
12308 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12309 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12310 * solib-frv.c (_initialize_frv_solib): Add declaration.
12311 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12312 * solib-target.c (_initialize_solib_target): Add declaration.
12313 * solib.c (_initialize_solib): Add declaration.
12314 * source-cache.c (_initialize_source_cache): Add declaration.
12315 * source.c (_initialize_source): Add declaration.
12316 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12317 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12318 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12319 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12320 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12321 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12322 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12323 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12324 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12325 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12326 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12327 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12328 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12329 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12330 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12331 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12332 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12333 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12334 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12335 * stabsread.c (_initialize_stabsread): Add declaration.
12336 * stack.c (_initialize_stack): Add declaration.
12337 * stap-probe.c (_initialize_stap_probe): Add declaration.
12338 * std-regs.c (_initialize_frame_reg): Add declaration.
12339 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12340 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12341 * symfile.c (_initialize_symfile): Add declaration.
12342 * symmisc.c (_initialize_symmisc): Add declaration.
12343 * symtab.c (_initialize_symtab): Add declaration.
12344 * target.c (_initialize_target): Add declaration.
12345 * target-connection.c (_initialize_target_connection): Add
12347 * target-dcache.c (_initialize_target_dcache): Add declaration.
12348 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12349 * thread.c (_initialize_thread): Add declaration.
12350 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12351 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12352 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12353 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12354 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12355 * tracectf.c (_initialize_ctf): Add declaration.
12356 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12357 * tracefile.c (_initialize_tracefile): Add declaration.
12358 * tracepoint.c (_initialize_tracepoint): Add declaration.
12359 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12360 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12361 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12362 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12363 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12364 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12365 * tui/tui.c (_initialize_tui): Add declaration.
12366 * typeprint.c (_initialize_typeprint): Add declaration.
12367 * ui-style.c (_initialize_ui_style): Add declaration.
12368 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12369 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12370 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12371 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12372 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12373 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12374 * unittests/filtered_iterator-selftests.c
12375 (_initialize_filtered_iterator_selftests): Add declaration.
12376 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12377 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12378 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12379 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12380 * unittests/main-thread-selftests.c
12381 (_initialize_main_thread_selftests): Add declaration.
12382 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12383 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12384 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12385 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12386 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12387 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12388 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12389 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12390 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12391 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12392 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12393 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12394 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12395 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12396 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12398 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12399 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12400 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12401 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12402 * user-regs.c (_initialize_user_regs): Add declaration.
12403 * utils.c (_initialize_utils): Add declaration.
12404 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12405 * valops.c (_initialize_valops): Add declaration.
12406 * valprint.c (_initialize_valprint): Add declaration.
12407 * value.c (_initialize_values): Add declaration.
12408 * varobj.c (_initialize_varobj): Add declaration.
12409 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12410 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12411 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12412 * windows-nat.c (_initialize_windows_nat): Add declaration.
12413 (_initialize_check_for_gdb_ini): Add declaration.
12414 (_initialize_loadable): Add declaration.
12415 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12416 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12417 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12418 * xcoffread.c (_initialize_xcoffread): Add declaration.
12419 * xml-support.c (_initialize_xml_support): Add declaration.
12420 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12421 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12422 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12423 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12425 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12427 * regformats/regdat.sh: Generate declaration for init function.
12429 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12431 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12433 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12434 close_one_inferior>: New methods.
12435 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12436 pass down target to find_inferior_pid.
12437 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12438 Pass down target to find_inferior_ptid.
12439 (gdbsim_target::create_inferior): Pass down target to
12441 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12442 target down to find_inferior_ptid and switch_to_thread.
12443 (gdbsim_target::close): Update to call close_one_inferior.
12444 (struct resume_data): Remove.
12445 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12446 directly, rather than through a void pointer.
12447 (gdbsim_target::resume): Update to call resume_one_inferior.
12449 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12451 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12453 2020-01-12 Pedro Alves <palves@redhat.com>
12455 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12456 directly for the current inferior instead of
12457 discard_all_inferiors.
12458 (discard_all_inferiors): Delete.
12460 2020-01-11 Tom Tromey <tom@tromey.com>
12462 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12463 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12464 deprecated_safe_get_selected_frame.
12466 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12468 * inferior.c (print_inferior): Switch inferior before printing it.
12470 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12471 Pedro Alves <palves@redhat.com>
12473 * progspace-and-thread.c (switch_to_program_space_and_thread):
12474 Assert there's an inferior for PSPACE. Use
12475 switch_to_inferior_no_thread to switch the inferior too.
12476 * progspace.c (program_space::~program_space): Call
12477 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12478 (program_space::free_all_objfiles): Don't call clear_symtab_users
12480 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12482 2020-01-10 Pedro Alves <palves@redhat.com>
12484 * NEWS: Mention multi-target debugging, "info connections", and
12485 "add-inferior -no-connection".
12487 2020-01-10 Pedro Alves <palves@redhat.com>
12489 * infrun.c: Include "target-connection.h".
12490 (check_multi_target_resumption): New.
12491 (proceed): Call it.
12492 * target-connection.c (make_target_connection_string): Make
12494 * target-connection.h (make_target_connection_string): Declare.
12496 2020-01-10 Pedro Alves <palves@redhat.com>
12498 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12499 * inferior.c (uiout_field_connection): New function.
12500 (print_inferior): Add new "connection-id" column.
12501 (add_inferior_command): Show connection number/string of added
12503 * process-stratum-target.h
12504 (process_stratum_target::connection_string): New virtual method.
12505 (process_stratum_target::connection_number): New field.
12506 * remote.c (remote_target::connection_string): New override.
12507 * target-connection.c: New file.
12508 * target-connection.h: New file.
12509 * target.c (decref_target): Remove process_stratum targets from
12510 the connection list.
12511 (target_stack::push): Add process_stratum targets to the
12514 2020-01-10 Pedro Alves <palves@redhat.com>
12517 2016-04-12 Pedro Alves <palves@redhat.com>
12518 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12519 Remove references to name.
12520 * serial.h (struct serial) <name>: Delete.
12522 2020-01-10 Pedro Alves <palves@redhat.com>
12524 * gdbarch-selftests.c (register_to_value_test): Remove "target
12525 already pushed" check.
12527 2020-01-10 Pedro Alves <palves@redhat.com>
12528 John Baldwin <jhb@FreeBSD.org>
12530 * aarch64-linux-nat.c
12531 (aarch64_linux_nat_target::thread_architecture): Adjust.
12532 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12533 (task_command_1): Likewise.
12534 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12535 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12536 (aix_thread_target::store_registers)
12537 (aix_thread_target::thread_alive): Adjust.
12538 * amd64-fbsd-tdep.c: Include "inferior.h".
12539 (amd64fbsd_get_thread_local_address): Pass down target.
12540 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12541 thread's gdbarch instead of target_gdbarch.
12542 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12543 get_last_target_status.
12544 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12545 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12547 (update_inserted_breakpoint_locations): Skip if inferiors with no
12549 (update_global_location_list): When handling moribund locations,
12550 find representative inferior for location's pspace, and use thread
12551 count of its process_stratum target.
12552 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12553 * bsd-uthread.c (bsd_uthread_target::wait): Use
12554 as_process_stratum_target and adjust thread_change_ptid and
12556 (bsd_uthread_target::update_thread_list): Use
12557 as_process_stratum_target and adjust find_thread_ptid,
12558 thread_change_ptid and add_thread calls.
12559 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12560 find_thread_ptid call.
12561 * corelow.c (add_to_thread_list): Adjust add_thread call.
12562 (core_target_open): Adjust add_thread_silent and thread_count
12564 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12565 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12566 * event-top.c (async_disconnect): Pop targets from all inferiors.
12567 * exec.c (add_target_sections): Push exec target on all inferiors
12568 sharing the program space.
12569 (remove_target_sections): Remove the exec target from all
12570 inferiors sharing the program space.
12571 (exec_on_vfork): New.
12572 * exec.h (exec_on_vfork): Declare.
12573 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12575 (fbsd_nat_target::update_thread_list): Adjust.
12576 (fbsd_nat_target::resume): Adjust.
12577 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12579 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12580 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12581 get_thread_arch_regcache call.
12582 * fork-child.c (gdb_startup_inferior): Pass target down to
12583 startup_inferior and set_executing.
12584 * gdbthread.h (struct process_stratum_target): Forward declare.
12585 (add_thread, add_thread_silent, add_thread_with_info)
12586 (in_thread_list): Add process_stratum_target parameter.
12587 (find_thread_ptid(inferior*, ptid_t)): New overload.
12588 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12590 (all_threads()): Delete overload.
12591 (all_threads, all_non_exited_threads): Add process_stratum_target
12593 (all_threads_safe): Use brace initialization.
12594 (thread_count): Add process_stratum_target parameter.
12595 (set_resumed, set_running, set_stop_requested, set_executing)
12596 (threads_are_executing, finish_thread_state): Add
12597 process_stratum_target parameter.
12598 (switch_to_thread): Use is_current_thread.
12599 * i386-fbsd-tdep.c: Include "inferior.h".
12600 (i386fbsd_get_thread_local_address): Pass down target.
12601 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12602 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12603 have_inferiors check.
12604 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12605 (inf_ptrace_target::attach): Adjust.
12606 * infcall.c (run_inferior_call): Adjust.
12607 * infcmd.c (run_command_1): Pass target to
12608 scoped_finish_thread_state.
12609 (proceed_thread_callback): Skip inferiors with no execution.
12610 (continue_command): Rename 'all_threads' local to avoid hiding
12611 'all_threads' function. Adjust get_last_target_status call.
12612 (prepare_one_step): Adjust set_running call.
12613 (signal_command): Use user_visible_resume_target. Compare thread
12614 pointers instead of inferior_ptid.
12615 (info_program_command): Adjust to pass down target.
12616 (attach_command): Mark target's 'thread_executing' flag.
12617 (stop_current_target_threads_ns): New, factored out from ...
12618 (interrupt_target_1): ... this. Switch inferior before making
12621 (struct all_inferiors_iterator, struct all_inferiors_range)
12622 (struct all_inferiors_safe_range)
12623 (struct all_non_exited_inferiors_range): Filter on
12624 process_stratum_target too. Remove explicit.
12625 * inferior.c (inferior::inferior): Push dummy target on target
12627 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12628 Add process_stratum_target parameter, and pass it down.
12629 (have_live_inferiors): Adjust.
12630 (switch_to_inferior_and_push_target): New.
12631 (add_inferior_command, clone_inferior_command): Handle
12632 "-no-connection" parameter. Use
12633 switch_to_inferior_and_push_target.
12634 (_initialize_inferior): Mention "-no-connection" option in
12635 the help of "add-inferior" and "clone-inferior" commands.
12636 * inferior.h: Include "process-stratum-target.h".
12637 (interrupt_target_1): Use bool.
12638 (struct inferior) <push_target, unpush_target, target_is_pushed,
12639 find_target_beneath, top_target, process_target, target_at,
12641 (discard_all_inferiors): Delete.
12642 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12643 (all_inferiors, all_non_exited_inferiors): Add
12644 process_stratum_target parameter.
12645 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12646 (target_last_proc_target): New global.
12647 (follow_fork_inferior): Push target on new inferior. Pass target
12648 to add_thread_silent. Call exec_on_vfork. Handle target's
12650 (follow_fork): Adjust get_last_target_status call. Also consider
12652 (follow_exec): Push target on new inferior.
12653 (struct execution_control_state) <target>: New field.
12654 (user_visible_resume_target): New.
12655 (do_target_resume): Call target_async.
12656 (resume_1): Set target's threads_executing flag. Consider resume
12658 (commit_resume_all_targets): New.
12659 (proceed): Also consider resume target. Skip threads of inferiors
12660 with no execution. Commit resumtion in all targets.
12661 (start_remote): Pass current inferior to wait_for_inferior.
12662 (infrun_thread_stop_requested): Consider target as well. Pass
12663 thread_info pointer to clear_inline_frame_state instead of ptid.
12664 (infrun_thread_thread_exit): Consider target as well.
12665 (random_pending_event_thread): New inferior parameter. Use it.
12666 (do_target_wait): Rename to ...
12667 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12669 (threads_are_resumed_pending_p, do_target_wait): New.
12670 (prepare_for_detach): Adjust calls.
12671 (wait_for_inferior): New inferior parameter. Handle it. Use
12672 do_target_wait_1 instead of do_target_wait.
12673 (fetch_inferior_event): Adjust. Switch to representative
12674 inferior. Pass target down.
12675 (set_last_target_status): Add process_stratum_target parameter.
12676 Save target in global.
12677 (get_last_target_status): Add process_stratum_target parameter and
12679 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12680 (context_switch): Check inferior_ptid == null_ptid before calling
12682 (get_inferior_stop_soon): Pass down target.
12683 (wait_one): Rename to ...
12684 (poll_one_curr_target): ... this.
12685 (struct wait_one_event): New.
12687 (stop_all_threads): Adjust.
12688 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12690 (switch_back_to_stepped_thread): Also consider target.
12691 (print_stop_event): Update.
12692 (normal_stop): Update. Also consider the resume target.
12693 * infrun.h (wait_for_inferior): Remove declaration.
12694 (user_visible_resume_target): New declaration.
12695 (get_last_target_status, set_last_target_status): New
12696 process_stratum_target parameter.
12697 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12698 process_stratum_target parameter, and use it.
12699 (clear_inline_frame_state (thread_info*)): New.
12700 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12701 process_stratum_target parameter.
12702 (clear_inline_frame_state (thread_info*)): Declare.
12703 * linux-fork.c (delete_checkpoint_command): Pass target down to
12705 (checkpoint_command): Adjust.
12706 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12707 instead of just tweaking inferior_ptid.
12708 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12709 (exit_lwp): Pass target down to find_thread_ptid.
12710 (attach_proc_task_lwp_callback): Pass target down to
12711 add_thread/set_running/set_executing.
12712 (linux_nat_target::attach): Pass target down to
12713 thread_change_ptid.
12714 (get_detach_signal): Pass target down to find_thread_ptid.
12715 Consider last target status's target.
12716 (linux_resume_one_lwp_throw, resume_lwp)
12717 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12718 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12719 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12720 (linux_nat_target::async_wait_fd): New.
12721 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12723 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12724 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12725 * linux-thread-db.c (struct thread_db_info::process_target): New
12727 (add_thread_db_info): Save target.
12728 (get_thread_db_info): New process_stratum_target parameter. Also
12730 (delete_thread_db_info): New process_stratum_target parameter.
12732 (thread_from_lwp): Adjust to pass down target.
12733 (thread_db_notice_clone): Pass down target.
12734 (check_thread_db_callback): Pass down target.
12735 (try_thread_db_load_1): Always push the thread_db target.
12736 (try_thread_db_load, record_thread): Pass target down.
12737 (thread_db_target::detach): Pass target down. Always unpush the
12739 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12740 target down. Always unpush the thread_db target.
12741 (find_new_threads_callback, thread_db_find_new_threads_2)
12742 (thread_db_target::update_thread_list): Pass target down.
12743 (thread_db_target::pid_to_str): Pass current inferior down.
12744 (thread_db_target::get_thread_local_address): Pass target down.
12745 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12747 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12748 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12749 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12750 (procfs_init_inferior): Rename to ...
12751 (procfs_target::procfs_init_inferior): ... this and adjust.
12752 (procfs_target::create_inferior, procfs_notice_thread)
12753 (procfs_do_thread_registers): Adjust.
12754 * ppc-fbsd-tdep.c: Include "inferior.h".
12755 (ppcfbsd_get_thread_local_address): Pass down target.
12756 * proc-service.c (ps_xfer_memory): Switch current inferior and
12757 program space as well.
12758 (get_ps_regcache): Pass target down.
12759 * process-stratum-target.c
12760 (process_stratum_target::thread_address_space)
12761 (process_stratum_target::thread_architecture): Pass target down.
12762 * process-stratum-target.h
12763 (process_stratum_target::threads_executing): New field.
12764 (as_process_stratum_target): New.
12765 * ravenscar-thread.c
12766 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12767 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12769 * record-btrace.c (record_btrace_target::info_record): Adjust.
12770 (record_btrace_target::record_method)
12771 (record_btrace_target::record_is_replaying)
12772 (record_btrace_target::fetch_registers)
12773 (get_thread_current_frame_id, record_btrace_target::resume)
12774 (record_btrace_target::wait, record_btrace_target::stop): Pass
12776 * record-full.c (record_full_wait_1): Switch to event thread.
12778 * regcache.c (regcache::regcache)
12779 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12780 process_stratum_target parameter and handle it.
12781 (current_thread_target): New global.
12782 (get_thread_regcache): Add process_stratum_target parameter and
12783 handle it. Switch inferior before calling target method.
12784 (get_thread_regcache): Pass target down.
12785 (get_thread_regcache_for_ptid): Pass target down.
12786 (registers_changed_ptid): Add process_stratum_target parameter and
12788 (registers_changed_thread, registers_changed): Pass target down.
12789 (test_get_thread_arch_aspace_regcache): New.
12790 (current_regcache_test): Define a couple local test_target_ops
12791 instances and use them for testing.
12792 (readwrite_regcache): Pass process_stratum_target parameter.
12793 (cooked_read_test, cooked_write_test): Pass mock_target down.
12794 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12795 (get_thread_arch_aspace_regcache): Add process_stratum_target
12797 (regcache::target): New method.
12798 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12799 (regcache::registers_changed_ptid): Add process_stratum_target
12801 (regcache::m_target): New field.
12802 (registers_changed_ptid): Add process_stratum_target parameter.
12803 * remote.c (remote_state::supports_vCont_probed): New field.
12804 (remote_target::async_wait_fd): New method.
12805 (remote_unpush_and_throw): Add remote_target parameter.
12806 (get_current_remote_target): Adjust.
12807 (remote_target::remote_add_inferior): Push target.
12808 (remote_target::remote_add_thread)
12809 (remote_target::remote_notice_new_inferior)
12810 (get_remote_thread_info): Pass target down.
12811 (remote_target::update_thread_list): Skip threads of inferiors
12812 bound to other targets. (remote_target::close): Don't discard
12813 inferiors. (remote_target::add_current_inferior_and_thread)
12814 (remote_target::process_initial_stop_replies)
12815 (remote_target::start_remote)
12816 (remote_target::remote_serial_quit_handler): Pass down target.
12817 (remote_target::remote_unpush_target): New remote_target
12818 parameter. Unpush the target from all inferiors.
12819 (remote_target::remote_unpush_and_throw): New remote_target
12820 parameter. Pass it down.
12821 (remote_target::open_1): Check whether the current inferior has
12822 execution instead of checking whether any inferior is live. Pass
12824 (remote_target::remote_detach_1): Pass down target. Use
12825 remote_unpush_target.
12826 (extended_remote_target::attach): Pass down target.
12827 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12828 (remote_target::append_resumption): Pass down target.
12829 (remote_target::append_pending_thread_resumptions)
12830 (remote_target::remote_resume_with_hc, remote_target::resume)
12831 (remote_target::commit_resume): Pass down target.
12832 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12833 (remote_target::interrupt_query)
12834 (remote_target::remove_new_fork_children)
12835 (remote_target::check_pending_events_prevent_wildcard_vcont)
12836 (remote_target::remote_parse_stop_reply)
12837 (remote_target::process_stop_reply): Pass down target.
12838 (first_remote_resumed_thread): New remote_target parameter. Pass
12840 (remote_target::wait_as): Pass down target.
12841 (unpush_and_perror): New remote_target parameter. Pass it down.
12842 (remote_target::readchar, remote_target::remote_serial_write)
12843 (remote_target::getpkt_or_notif_sane_1)
12844 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12846 (remote_target::mourn_inferior): Pass down target. Use
12847 remote_unpush_target.
12848 (remote_target::core_of_thread)
12849 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12850 (remote_target::pid_to_exec_file)
12851 (remote_target::thread_handle_to_thread_info): Pass down target.
12852 (remote_target::async_wait_fd): New.
12853 * riscv-fbsd-tdep.c: Include "inferior.h".
12854 (riscv_fbsd_get_thread_local_address): Pass down target.
12855 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12856 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12857 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12859 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12860 * solib-svr4.c (enable_break): Pass down target.
12861 * spu-multiarch.c (parse_spufs_run): Pass down target.
12862 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12863 * target-delegates.c: Regenerate.
12864 * target.c (g_target_stack): Delete.
12865 (current_top_target): Return the current inferior's top target.
12866 (target_has_execution_1): Refer to the passed-in inferior's top
12868 (target_supports_terminal_ours): Check whether the initial
12869 inferior was already created.
12870 (decref_target): New.
12871 (target_stack::push): Incref/decref the target.
12872 (push_target, push_target, unpush_target): Adjust.
12873 (target_stack::unpush): Defref target.
12874 (target_is_pushed): Return bool. Adjust to refer to the current
12875 inferior's target stack.
12876 (dispose_inferior): Delete, and inline parts ...
12877 (target_preopen): ... here. Only dispose of the current inferior.
12878 (target_detach): Hold strong target reference while detaching.
12880 (target_thread_name): Add assertion.
12881 (target_resume): Pass down target.
12882 (target_ops::beneath, find_target_at): Adjust to refer to the
12883 current inferior's target stack.
12884 (get_dummy_target): New.
12885 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12886 has a thread running.
12887 (initialize_targets): Rename to ...
12888 (_initialize_target): ... this.
12889 * target.h: Include "gdbsupport/refcounted-object.h".
12890 (struct target_ops): Inherit refcounted_object.
12891 (target_ops::shortname, target_ops::longname): Make const.
12892 (target_ops::async_wait_fd): New method.
12893 (decref_target): Declare.
12894 (struct target_ops_ref_policy): New.
12895 (target_ops_ref): New typedef.
12896 (get_dummy_target): Declare function.
12897 (target_is_pushed): Return bool.
12898 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12899 (all_matching_threads_iterator::all_matching_threads_iterator):
12900 Handle filter target.
12901 * thread-iter.h (struct all_matching_threads_iterator, struct
12902 all_matching_threads_range, class all_non_exited_threads_range):
12903 Filter by target too. Remove explicit.
12904 * thread.c (threads_executing): Delete.
12905 (inferior_thread): Pass down current inferior.
12906 (clear_thread_inferior_resources): Pass down thread pointer
12908 (add_thread_silent, add_thread_with_info, add_thread): Add
12909 process_stratum_target parameter. Use it for thread and inferior
12911 (is_current_thread): New.
12912 (thread_info::deletable): Use it.
12913 (find_thread_ptid, thread_count, in_thread_list)
12914 (thread_change_ptid, set_resumed, set_running): New
12915 process_stratum_target parameter. Pass it down.
12916 (set_executing): New process_stratum_target parameter. Pass it
12917 down. Adjust reference to 'threads_executing'.
12918 (threads_are_executing): New process_stratum_target parameter.
12919 Adjust reference to 'threads_executing'.
12920 (set_stop_requested, finish_thread_state): New
12921 process_stratum_target parameter. Pass it down.
12922 (switch_to_thread): Also match inferior.
12923 (switch_to_thread): New process_stratum_target parameter. Pass it
12925 (update_threads_executing): Reimplement.
12926 * top.c (quit_force): Pop targets from all inferior.
12927 (gdb_init): Don't call initialize_targets.
12928 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12930 (windows_add_thread, windows_delete_thread): Adjust.
12931 (get_windows_debug_event): Rename to ...
12932 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12933 * tracefile-tfile.c (tfile_target_open): Pass down target.
12934 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12936 (switch_to_thread): Add process_stratum_target parameter.
12937 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12939 (mi_on_resume): Pass target down.
12940 * nat/fork-inferior.c (startup_inferior): Add
12941 process_stratum_target parameter. Pass it down.
12942 * nat/fork-inferior.h (startup_inferior): Add
12943 process_stratum_target parameter.
12944 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12946 2020-01-10 Pedro Alves <palves@redhat.com>
12948 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12949 directly. Instead find the first thread in the thread list and
12950 use switch_to_thread.
12952 2020-01-10 Pedro Alves <palves@redhat.com>
12954 * remote.c (remote_target::remote_add_inferior): Don't bind a
12955 process to the current inferior if the current inferior is already
12956 bound to a process.
12958 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12959 Pedro Alves <palves@redhat.com>
12961 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12962 If no process is specified, return null_ptid instead of
12964 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12965 TARGET_WAITKIND_SIGNALLED with no pid.
12967 2020-01-10 Pedro Alves <palves@redhat.com>
12969 * remote.c (first_remote_resumed_thread): New.
12970 (remote_target::wait_as): Use it as default event_ptid instead of
12973 2020-01-10 Pedro Alves <palves@redhat.com>
12975 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12977 2020-01-10 Pedro Alves <palves@redhat.com>
12979 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12982 2020-01-10 Pedro Alves <palves@redhat.com>
12984 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12985 ptid to get_last_target_status.
12986 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12987 ptid to get_last_target_status.
12988 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12989 get_last_target_status.
12990 (info_program_command): Don't pass a target_waitstatus to
12991 get_last_target_status.
12992 * infrun.c (init_wait_for_inferior): Use
12993 nullify_last_target_wait_ptid.
12994 (get_last_target_status): Handle nullptr arguments.
12995 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12996 (print_stop_event): Don't pass a ptid to get_last_target_status.
12997 (normal_stop): Don't pass a ptid to get_last_target_status.
12998 * infrun.h (get_last_target_status, set_last_target_status): Move
12999 comments here and update.
13000 (nullify_last_target_wait_ptid): Declare.
13001 * linux-fork.c (fork_load_infrun_state): Remove local extern
13002 declaration of nullify_last_target_wait_ptid.
13003 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13004 to get_last_target_status.
13006 2020-01-10 Pedro Alves <palves@redhat.com>
13008 * gdbthread.h (scoped_restore_current_thread)
13009 <dont_restore, restore, m_dont_restore>: Declare.
13010 * thread.c (thread_alive): Add assertion. Return bool.
13011 (switch_to_thread_if_alive): New.
13012 (prune_threads): Switch inferior/thread.
13013 (print_thread_info_1): Switch thread before calling target methods.
13014 (scoped_restore_current_thread::restore): New, factored out from
13016 (scoped_restore_current_thread::~scoped_restore_current_thread):
13018 (scoped_restore_current_thread::scoped_restore_current_thread):
13020 (thread_apply_all_command, thread_select): Use
13021 switch_to_thread_if_alive.
13022 * infrun.c (proceed, restart_threads, handle_signal_stop)
13023 (switch_back_to_stepped_thread): Switch current thread before
13024 calling target methods.
13026 2020-01-10 Pedro Alves <palves@redhat.com>
13028 * inferior.c (switch_to_inferior_no_thread): New function,
13029 factored out from ...
13030 (inferior_command): ... here.
13031 * inferior.h (switch_to_inferior_no_thread): Declare.
13032 * mi/mi-main.c (run_one_inferior): Use
13033 switch_to_inferior_no_thread.
13035 2020-01-10 Pedro Alves <palves@redhat.com>
13037 * infcmd.c (kill_command): Remove dead code.
13039 2020-01-10 Pedro Alves <palves@redhat.com>
13041 * remote.c (remote_target::mourn_inferior): No longer check
13042 whether the target is running.
13044 2020-01-10 Pedro Alves <palves@redhat.com>
13046 * corelow.c (core_target::has_execution): Change parameter type to
13048 * inferior.c (number_of_live_inferiors): Use
13049 inferior::has_execution instead of target_has_execution_1.
13050 * inferior.h (inferior::has_execution): New.
13051 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13052 inferior::has_execution instead of target_has_execution_1.
13053 * process-stratum-target.c
13054 (process_stratum_target::has_execution): Change parameter type to
13055 inferior pointer. Check the inferior's PID instead of
13057 * process-stratum-target.h
13058 (process_stratum_target::has_execution): Change parameter type to
13060 * record-full.c (record_full_core_target::has_execution): Change
13061 parameter type to inferior pointer.
13062 * target.c (target_has_execution_1): Change parameter type to
13064 (target_has_execution_current): Adjust.
13065 * target.h (target_ops::has_execution): Change parameter type to
13067 (target_has_execution_1): Change parameter type to inferior
13068 pointer. Change return type to bool.
13069 * tracefile.h (tracefile_target::has_execution): Change parameter
13070 type to inferior pointer.
13072 2020-01-10 Pedro Alves <palves@redhat.com>
13074 * exceptions.c (print_flush): Remove current_top_target() check.
13076 2020-01-10 Pedro Alves <palves@redhat.com>
13078 * remote.c (show_remote_exec_file): Show the current inferior's
13079 exec-file instead of the command variable's value.
13081 2020-01-10 Pedro Alves <palves@redhat.com>
13083 * record-full.c (record_full_resume_ptid): New global.
13084 (record_full_target::resume): Set it.
13085 (record_full_wait_1): Use record_full_resume_ptid instead of
13088 2020-01-10 Pedro Alves <palves@redhat.com>
13090 * gdbthread.h (scoped_restore_current_thread)
13091 <dont_restore, restore, m_dont_restore>: Declare.
13092 * thread.c (thread_alive): Add assertion. Return bool.
13093 (switch_to_thread_if_alive): New.
13094 (prune_threads): Switch inferior/thread.
13095 (print_thread_info_1): Switch thread before calling target methods.
13096 (scoped_restore_current_thread::restore): New, factored out from
13098 (scoped_restore_current_thread::~scoped_restore_current_thread):
13100 (scoped_restore_current_thread::scoped_restore_current_thread):
13102 (thread_apply_all_command, thread_select): Use
13103 switch_to_thread_if_alive.
13105 2020-01-10 George Barrett <bob@bob131.so>
13107 * stap-probe.c (stap_modify_semaphore): Don't check for null
13109 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13110 for null semaphores.
13112 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13114 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13115 all source windows, and maintain horizontal scroll status while
13118 2020-01-09 Tom Tromey <tom@tromey.com>
13121 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13122 update_source_window, not print_source_lines.
13124 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13126 * tui/tui.c (tui_enable): Register tui hooks after calling
13129 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13131 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13133 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13135 * thread.c (print_thread_info_1): Fix indentation.
13137 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13139 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13140 unique_xmalloc_ptr outside the if to always free the demangled name.
13142 2020-01-08 Tom Tromey <tromey@adacore.com>
13144 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13145 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13146 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13147 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13149 (section_offsets): New typedef.
13150 * symtab.c (fixup_section, get_msymbol_address): Update.
13151 * symmisc.c (dump_msymbols): Update.
13152 * symfile.h (relative_addr_info_to_section_offsets)
13153 (symfile_map_offsets_to_segments): Update.
13154 * symfile.c (build_section_addr_info_from_objfile)
13155 (init_objfile_sect_indices): Update.
13156 (struct place_section_arg): Change type of "offsets".
13157 (place_section): Update.
13158 (relative_addr_info_to_section_offsets): Change type of
13159 "section_offsets". Remove "num_sections" parameter.
13160 (default_symfile_offsets, syms_from_objfile_1)
13161 (set_objfile_default_section_offset): Update.
13162 (reread_symbols): No need to preserve section offsets by hand.
13163 (symfile_map_offsets_to_segments): Change type of "offsets".
13164 * stap-probe.c (relocate_address): Update.
13165 * stabsread.h (process_one_symbol): Update.
13166 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13167 (solib_target_relocate_section_addresses): Update.
13168 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13170 * solib-frv.c (frv_relocate_main_executable): Update.
13171 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13172 * solib-aix.c (solib_aix_get_section_offsets): Change return
13174 (solib_aix_solib_create_inferior_hook): Update.
13175 * remote.c (remote_target::get_offsets): Update.
13176 * psymtab.c (find_pc_sect_psymtab): Update.
13177 * psympriv.h (struct partial_symbol) <address, text_low,
13178 text_high>: Update.
13179 * objfiles.h (obj_section_offset): Update.
13180 (struct objfile) <section_offsets>: Change type.
13181 <num_sections>: Remove.
13182 (objfile_relocate): Update.
13183 * objfiles.c (entry_point_address_query): Update
13184 (relocate_one_symbol): Change type of "section_offsets".
13185 (objfile_relocate1, objfile_relocate1): Change type of
13187 (objfile_rebase1): Update.
13188 * mipsread.c (mipscoff_symfile_read): Update.
13189 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13191 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13192 (parse_external, psymtab_to_symtab_1): Update.
13193 * machoread.c (macho_symfile_offsets): Update.
13194 * ia64-tdep.c (ia64_find_unwind_table): Update.
13195 * hppa-tdep.c (read_unwind_info): Update.
13196 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13197 * dwarf2read.c (create_addrmap_from_index)
13198 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13199 (process_psymtab_comp_unit_reader, add_partial_symbol)
13200 (add_partial_subprogram, process_full_comp_unit)
13201 (read_file_scope, read_func_scope, read_lexical_block_scope)
13202 (read_call_site_scope, dwarf2_rnglists_process)
13203 (dwarf2_ranges_process, dwarf2_ranges_read)
13204 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13205 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13207 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13209 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13210 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13211 (process_one_symbol): Change type of "section_offsets".
13212 * ctfread.c (get_objfile_text_range): Update.
13213 * coffread.c (coff_symtab_read, enter_linenos)
13214 (process_coff_symbol): Update.
13215 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13216 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13218 2020-01-08 Tom Tromey <tromey@adacore.com>
13220 * dwarf2read.c (parse_macro_definition): Use std::string.
13221 (parse_macro_definition): Likewise.
13223 2020-01-08 Tom Tromey <tromey@adacore.com>
13225 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13226 (ATTR_ALLOC_CHUNK): Remove.
13228 2020-01-08 Tom Tromey <tromey@adacore.com>
13230 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13232 2020-01-08 Tom Tromey <tromey@adacore.com>
13234 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13235 (dwarf2_compute_name, open_dwo_file): Likewise.
13236 (process_enumeration_scope): Use std::vector.
13237 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13238 (partial_die_info::fixup, dwarf2_start_subfile)
13239 (guess_full_die_structure_name, dwarf2_name): Likewise.
13240 (determine_prefix): Update.
13241 (guess_full_die_structure_name): Make return type const.
13242 (partial_die_full_name): Return unique_xmalloc_ptr.
13243 (DW_FIELD_ALLOC_CHUNK): Remove.
13245 2020-01-07 Tom Tromey <tromey@adacore.com>
13248 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13250 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13252 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13254 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13256 * stack.c (print_frame_info): Move disassemble_next_line code
13257 inside source_print block.
13259 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13261 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13262 gdb/signals.h, as we are now using native signal symbols.
13264 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13266 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13267 overflow by an early check of content vs threshold.
13268 * tui/tui-source.c (tui_source_window::line_is_displayed):
13271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13273 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13275 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13277 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13278 export table if no section contains it's RVA.
13280 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13282 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13284 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13286 * source.c (print_source_lines_base): Set last_line_listed.
13288 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13290 * tui/tui-disasm.c: Remove trailing spaces.
13292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13293 Pedro Alves <palves@redhat.com>
13295 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13296 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13297 (windows_gdb_signal_to_target): New function, uses the above
13298 enumeration to convert GDB internal signal codes to equivalent
13300 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13301 * windows-nat.c: Include "gdb_wait.h".
13302 (get_windows_debug_event): Extract the fatal exception from the
13303 exit status and convert to the equivalent Posix signal number.
13304 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13305 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13306 * gdbsupport/gdb_wait.c: New file, implements
13307 windows_status_to_termsig.
13308 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13309 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13311 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13313 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13316 2020-01-05 Luis Machado <luis.machado@linaro.org>
13318 * aarch64-linux-nat.c
13319 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13320 and bfd_mach_aarch64.
13322 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13324 * ui-file.c (stdio_file::can_emit_style_escape)
13325 (tee_file::can_emit_style_escape): Ensure style is used also on
13326 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13328 * main.c (set_gdb_data_directory): Use file style to output the
13329 warning that the given pathname is not a directory.
13330 * top.c (show_history_filename, gdb_safe_append_history)
13331 (show_gdb_datadir): Use file style.
13333 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13335 * solib-target.c (struct lm_info_target):
13336 Change offsets to be a unique_xmalloc_ptr.
13337 (solib_target_relocate_section_addresses): Update.
13339 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13341 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13343 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13345 * MAINTAINERS (Write After Approval): Add myself.
13347 2020-01-02 Luis Machado <luis.machado@linaro.org>
13349 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13350 Cell BE architecture.
13351 * target.h (struct target_ops) <thread_architecture>: Likewise.
13353 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13355 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13357 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13359 * MAINTAINERS (Write After Approval): Add myself.
13361 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13363 * gdbarch.sh: Update copyright year range of generated files.
13365 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13367 Update copyright year range in all GDB files.
13369 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13371 * copyright.py: Convert to Python 3.
13373 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13375 * copyright.py: Adapt after move of gnulib directory from gdb
13376 directory to toplevel directory.
13378 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13380 * copyright.py (main): Exit if run from the wrong directory.
13382 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13384 * top.c (print_gdb_version): Change copyright year to 2020.
13386 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13388 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13390 For older changes see ChangeLog-2019.
13396 version-control: never