gdb: Convert la_filename_extensions to a method
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_extensions): Delete, moved into
4 ada_language::filename_extensions.
5 (ada_language_data): Remove la_filename_extensions initializer.
6 (ada_language::filename_extensions): New member function.
7 * c-lang.c (c_extensions): Delete, moved into
8 c_language::filename_extensions.
9 (c_language_data): Remove la_filename_extensions initializer.
10 (c_language::filename_extensions): New member function.
11 (cplus_extensions): Delete, moved into
12 cplus_language::filename_extensions.
13 (cplus_language_data): Remove la_filename_extensions initializer.
14 (cplus_language::filename_extensions): New member function.
15 (asm_extensions): Delete, moved into
16 asm_language::filename_extensions.
17 (asm_language_data): Remove la_filename_extensions initializer.
18 (asm_language::filename_extensions): New member function.
19 (minimal_language_data): Remove la_filename_extensions
20 initializer.
21 * d-lang.c (d_extensions): Delete, moved into
22 d_language::filename_extensions.
23 (d_language_data): Remove la_filename_extensions initializer.
24 (d_language::filename_extensions): New member function.
25 * f-lang.c (f_extensions): Delete, moved into
26 f_language::filename_extensions.
27 (f_language_data): Remove la_filename_extensions initializer.
28 (f_language::filename_extensions): New member function.
29 * go-lang.c (go_language_data): Remove la_filename_extensions
30 initializer.
31 * language.c (add_set_language_command): Update now that
32 filename_extensions returns a vector.
33 (unknown_language_data): Remove la_filename_extensions
34 initializer.
35 (auto_language_data): Likewise.
36 * language.h (language_data): Remove la_filename_extensions field.
37 (language_defn::filename_extensions): New member function.
38 * m2-lang.c (m2_language_data): Remove la_filename_extensions
39 initializer.
40 * objc-lang.c (objc_extensions): Delete, moved into
41 objc_language::filename_extensions.
42 (objc_language_data): Remove la_filename_extensions initializer.
43 (objc_language::filename_extensions): New member function.
44 * opencl-lang.c (opencl_language_data): Remove
45 la_filename_extensions initializer.
46 * p-lang.c (pascal_extensions): Delete, moved into
47 pascal_language::filename_extensions.
48 (pascal_language_data): Remove la_filename_extensions initializer.
49 (pascal_language::filename_extensions): New member function.
50 * rust-lang.c (rust_extensions): Delete, moved into
51 rust_language::filename_extensions.
52 (rust_language_data): Remove la_filename_extensions initializer.
53 (rust_language::filename_extensions): New member function.
54 * symfile.c (add_filename_language): Add new assert.
55
56 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * ada-lang.c (ada_language_data): Remove la_name and
59 la_natural_name initializers.
60 (ada_language::name): New member function.
61 (ada_language::natural_name): New member function.
62 * c-lang.c (c_language_data): Remove la_name and
63 la_natural_name initializers.
64 (c_language::name): New member function.
65 (c_language::natural_name): New member function.
66 (cplus_language_data): Remove la_name and
67 la_natural_name initializers.
68 (cplus_language::name): New member function.
69 (cplus_language::natural_name): New member function.
70 (asm_language_data): Remove la_name and
71 la_natural_name initializers.
72 (asm_language::name): New member function.
73 (asm_language::natural_name): New member function.
74 (minimal_language_data): Remove la_name and
75 la_natural_name initializers.
76 (minimal_language::name): New member function.
77 (minimal_language::natural_name): New member function.
78 * compile/compile.c (compile_to_object): Update call to
79 lanugage_defn::name.
80 * d-lang.c (d_language_data): Remove la_name and
81 la_natural_name initializers.
82 (d_language::name): New member function.
83 (d_language::natural_name): New member function.
84 * expprint.c (print_subexp_standard): Update call to
85 language_defn::name.
86 (dump_raw_expression): Likewise
87 (dump_prefix_expression): Likewise.
88 * f-lang.c (f_language_data): Remove la_name and
89 la_natural_name initializers.
90 (f_language::name): New member function.
91 (f_language::natural_name): New member function.
92 * go-lang.c (go_language_data): Remove la_name and
93 la_natural_name initializers.
94 (go_language::name): New member function.
95 (go_language::natural_name): New member function.
96 * language.c (show_language_command): Update call to
97 language_defn::name.
98 (set_language_command): Likewise.
99 (language_enum): Likewise.
100 (language_str): Likewise.
101 (add_set_language_command): Likewise, use
102 language_defn::natural_name in the doc string.
103 (unknown_language_data): Remove la_name and
104 la_natural_name initializers.
105 (unknown_language::name): New member function.
106 (unknown_language::natural_name): New member function.
107 (auto_language_data): Remove la_name and
108 la_natural_name initializers.
109 (auto_language::name): New member function.
110 (auto_language::natural_name): New member function.
111 (language_lookup_primitive_type_as_symbol): Update call to
112 language_defn::name.
113 * language.h (language_data): Remove la_name and la_natural_name
114 member variables.
115 (language_defn::name): New member function.
116 (language_defn::natural_name): New member function.
117 * m2-lang.c (m2_language_data): Remove la_name and
118 la_natural_name initializers.
119 (m2_language::name): New member function.
120 (m2_language::natural_name): New member function.
121 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
122 language_defn::natural_name.
123 * objc-lang.c (objc_language_data): Remove la_name and
124 la_natural_name initializers.
125 (objc_language::name): New member function.
126 (objc_language::natural_name): New member function.
127 * opencl-lang.c (opencl_language_data): Remove la_name and
128 la_natural_name initializers.
129 (opencl_language::name): New member function.
130 (opencl_language::natural_name): New member function.
131 * p-lang.c (pascal_language_data): Remove la_name and
132 la_natural_name initializers.
133 (pascal_language::name): New member function.
134 (pascal_language::natural_name): New member function.
135 * rust-lang.c (rust_language_data): Remove la_name and
136 la_natural_name initializers.
137 (rust_language::name): New member function.
138 (rust_language::natural_name): New member function.
139 * symtab.c (lookup_language_this): Update call to
140 language_defn::name.
141
142 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * ada-lang.c (ada_language_data): Remove la_name_of_this
145 initializer.
146 * ax-gdb.c (gen_expr): Update call to name_of_this.
147 * c-exp.y (classify_name): Likewise.
148 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
149 (cplus_language_data): Likewise.
150 (cplus_language::name_of_this): New member function.
151 (asm_language_data): Remove la_name_of_this initializer.
152 (minimal_language_data): Likewise.
153 * d-lang.c (d_language_data): Likewise.
154 (d_language::name_of_this): New member function.
155 * expprint.c (print_subexp_standard): Update call to name_of_this.
156 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
157 * go-lang.c (go_language_data): Likewise.
158 * language.c (unknown_language_data): Likewise.
159 (unknown_language::name_of_this): New member function.
160 (auto_language_data): Remove la_name_of_this initializer.
161 (auto_language::name_of_this): New member function.
162 * language.h (language_data): Delete la_name_of_this member
163 variable.
164 (language_defn::name_of_this): New member function.
165 * m2-lang.c (m2_language_data): Remove la_name_of_this
166 initializer.
167 * objc-lang.c (objc_language_data): Likewise.
168 (objc_language::name_of_this): New member function.
169 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
170 initializer.
171 * p-lang.c (pascal_language_data): Likewise.
172 (pascal_language::name_of_this): New member function.
173 * rust-lang.c (rust_language_data): Remove la_name_of_this
174 initializer.
175 * symtab.c (lookup_language_this): Update call to name_of_this.
176 (lookup_symbol_aux): Likewise.
177 * valops.c (value_of_this): Likewise.
178
179 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
180
181 * ada-lang.c (ada_language_data): Remove
182 la_struct_too_deep_ellipsis initializer.
183 (ada_language::struct_too_deep_ellipsis): New member function.
184 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
185 initializer.
186 (cplus_language_data): Likewise.
187 (asm_language_data): Likewise.
188 (minimal_language_data): Likewise.
189 * cp-valprint.c (cp_print_value): Update call to
190 struct_too_deep_ellipsis.
191 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
192 initializer.
193 * f-lang.c (f_language_data): Likewise.
194 (f_language::struct_too_deep_ellipsis): New member function.
195 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
196 initializer.
197 * language.c (unknown_language_data): Likewise.
198 (auto_language_data): Likewise.
199 * language.h (language_data): Delete la_struct_too_deep_ellipsis
200 member variable.
201 (language_defn::struct_too_deep_ellipsis): New member function.
202 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
203 initializer.Q
204 * objc-lang.c (objc_language_data): Likewise.
205 * opencl-lang.c (opencl_language_data): Likewise.
206 * p-lang.c (pascal_language_data): Likewise.
207 * rust-lang.c (rust_language_data): Likewise.
208 * valprint.c (val_print_check_max_depth): Update call to
209 struct_too_deep_ellipsis.
210
211 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
212
213 * MAINTAINERS (Write After Approval): Add myself.
214
215 2020-09-15 Tom Tromey <tom@tromey.com>
216
217 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
218 Remove.
219
220 2020-09-15 Tom Tromey <tom@tromey.com>
221
222 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
223 and TYPE_CODE_METHODPTR cases.
224 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
225 (c_value_print_inner): Update.
226 * valprint.c (generic_value_print_memberptr): New function, from
227 c_value_print_memberptr.
228 (generic_value_print): Use it. Call cplus_print_method_ptr.
229
230 2020-09-15 Tom Tromey <tromey@adacore.com>
231
232 * python/python-internal.h (PyInt_FromLong): Remove define.
233 * python/py-value.c (convert_value_from_python): Use
234 gdb_py_object_from_longest.
235 * python/py-type.c (typy_get_code): Use
236 gdb_py_object_from_longest.
237 * python/py-symtab.c (salpy_get_line): Use
238 gdb_py_object_from_longest.
239 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
240 gdb_py_object_from_longest.
241 * python/py-record.c (recpy_gap_reason_code): Use
242 gdb_py_object_from_longest.
243 * python/py-record-btrace.c (recpy_bt_insn_size)
244 (recpy_bt_func_level, btpy_list_count): Use
245 gdb_py_object_from_longest.
246 * python/py-infthread.c (gdbpy_create_ptid_object): Use
247 gdb_py_object_from_longest. Fix error handling.
248 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
249 gdb_py_object_from_longest.
250 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
251 gdb_py_object_from_longest.
252 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
253 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
254 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
255
256 2020-09-15 Tom Tromey <tromey@adacore.com>
257
258 * python/python.c (gdbpy_parameter_value): Use
259 gdb_py_object_from_ulongest.
260
261 2020-09-15 Tom Tromey <tromey@adacore.com>
262
263 * python/py-infevents.c (create_register_changed_event_object):
264 Use gdb_py_object_from_longest.
265 * python/py-exitedevent.c (create_exited_event_object): Use
266 gdb_py_object_from_longest.
267
268 2020-09-15 Tom Tromey <tromey@adacore.com>
269
270 * python/python.c (gdbpy_parameter_value): Use
271 gdb_py_object_from_longest.
272 * python/py-type.c (convert_field, typy_range): Use
273 gdb_py_object_from_longest.
274 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
275 gdb_py_object_from_longest.
276 * python/py-lazy-string.c (stpy_get_length): Use
277 gdb_py_object_from_longest.
278 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
279 gdb_py_object_from_longest.
280 * python/py-infevents.c (create_memory_changed_event_object): Use
281 gdb_py_object_from_longest.
282 * python/py-inferior.c (infpy_get_num): Use
283 gdb_py_object_from_longest.
284 (infpy_get_pid): Likewise.
285
286 2020-09-15 Tom Tromey <tromey@adacore.com>
287
288 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
289 defines.
290 * python/py-value.c (valpy_long): Use
291 gdb_py_object_from_ulongest.
292 * python/py-symtab.c (salpy_get_pc): Use
293 gdb_py_object_from_ulongest.
294 (salpy_get_last): Likewise.
295 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
296 gdb_py_object_from_ulongest.
297 * python/py-lazy-string.c (stpy_get_address): Use
298 gdb_py_object_from_ulongest.
299 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
300 * python/py-arch.c (archpy_disassemble): Use
301 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
302 error handling.
303
304 2020-09-15 Tom Tromey <tromey@adacore.com>
305
306 * python/python-internal.h (gdb_py_long_from_longest): Remove
307 defines.
308 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
309 * python/py-type.c (convert_field, typy_get_sizeof): Use
310 gdb_py_object_from_longest.
311 * python/py-record-btrace.c (btpy_list_index): Use
312 gdb_py_object_from_longest.
313
314 2020-09-15 Tom Tromey <tromey@adacore.com>
315
316 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
317 * python/py-record.c (recpy_element_number): Use
318 gdb_py_object_from_longest.
319 (recpy_gap_number): Likewise.
320
321 2020-09-15 Tom Tromey <tromey@adacore.com>
322
323 * top.c (ui::ui): Update.
324 (highest_ui_num): Remove.
325 * top.h (struct ui) <num>: Remove.
326
327 2020-09-15 Tom Tromey <tromey@adacore.com>
328
329 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
330 * ui-style.c (ansi_regex_text): Now array.
331 * rust-exp.y (number_regex_text): Now array.
332 * linespec.c (linespec_quote_characters): Now array.
333 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
334 Now arrays.
335
336 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * debuginfod-support.c (debuginfod_client_deleter): New.
339 (debuginfod_client_up): New.
340 (debuginfod_init): Return debuginfod_client_up.
341 (debuginfod_source_query): Adjust.
342 (debuginfod_debuginfo_query): Adjust.
343
344 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
345
346 * debuginfod-support.c (debuginfod_source_query): Use
347 make_unique_xstrdup.
348
349 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
350
351 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
352 with `type::instance_flags`.
353
354 2020-09-14 Michael Mullin <masmullin@gmail.com>
355
356 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
357 Remove baton parameter.
358
359 2020-09-14 Pedro Alves <pedro@palves.net>
360
361 * Makefile.in (SELFTESTS_SRCS): Add
362 unittests/enum-flags-selftests.c.
363 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
364 btrace_function_flags instead of enum btrace_function_flag.
365 * compile/compile-c-types.c (convert_qualified): Use
366 enum_flags::raw.
367 * compile/compile-cplus-symbols.c (convert_one_symbol)
368 (convert_symbol_bmsym):
369 * compile/compile-cplus-types.c (compile_cplus_convert_method)
370 (compile_cplus_convert_struct_or_union_methods)
371 (compile_cplus_instance::convert_qualified_base):
372 * go-exp.y (parse_string_or_char): Add cast to int.
373 * unittests/enum-flags-selftests.c: New file.
374 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
375 type to btrace_thread_flags from btrace_thread_flag.
376 (record_btrace_cancel_resume, record_btrace_step_thread): Change
377 local's type to btrace_thread_flags from btrace_thread_flag. Add
378 cast in DEBUG call.
379
380 2020-09-14 Pedro Alves <pedro@palves.net>
381
382 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
383 * gdbtypes.c (address_space_name_to_int): Rename to ...
384 (address_space_name_to_type_instance_flags): ... this.
385 (address_space_int_to_name): Rename to ...
386 (address_space_type_instance_flags_to_name): ... this.
387 * gdbtypes.h (address_space_name_to_int): Rename to ...
388 (address_space_name_to_type_instance_flags): ... this.
389 (address_space_int_to_name): Rename to ...
390 (address_space_type_instance_flags_to_name): ... this.
391 * type-stack.c (type_stack::insert): Adjust to rename.
392 * type-stack.h (type_stack::insert): Likewise.
393
394 2020-09-14 Pedro Alves <pedro@palves.net>
395 Andrew Burgess <andrew.burgess@embecosm.com>
396
397 * avr-tdep.c (avr_address_class_type_flags): Return
398 type_instance_flags.
399 (avr_address_class_type_flags_to_name): Take a
400 type_instance_flags.
401 (avr_address_class_name_to_type_flags): Return bool and take a
402 type_instance_flags.
403 * d-lang.c (build_d_types): Use type::set_instance_flags.
404 * ft32-tdep.c (ft32_address_class_type_flags): Return
405 type_instance_flags.
406 (ft32_address_class_type_flags_to_name): Take a
407 type_instance_flags.
408 (ft32_address_class_name_to_type_flags): Return bool and take a
409 type_instance_flags.
410 (ft32_gdbarch_init): Use type::set_instance_flags.
411 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
412 * gdbarch.h, gdbarch.c: Regenerate.
413 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
414 (address_class_name_to_type_flags): Use type_instance_flags and
415 bool.
416 * gdbtypes.c (address_space_name_to_int)
417 (address_space_int_to_name, make_qualified_type): Use
418 type_instance_flags.
419 (make_qualified_type): Use type_instance_flags and
420 type::set_instance_flags.
421 (make_type_with_address_space, make_cv_type, make_vector_type)
422 (check_typedef): Use type_instance_flags.
423 (recursive_dump_type): Cast type_instance_flags to unsigned for
424 printing.
425 (copy_type_recursive): Use type::set_instance_flags.
426 (gdbtypes_post_init): Use type::set_instance_flags.
427 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
428 <m_instance_flags>: ... this.
429 <instance_flags, set_instance_flags>: New methods.
430 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
431 (SET_TYPE_INSTANCE_FLAGS): New.
432 (address_space_name_to_int, address_space_int_to_name)
433 (make_type_with_address_space): Pass flags using
434 type_instance_flags instead of int.
435 * stabsread.c (cleanup_undefined_types_noname): Use
436 type::set_instance_flags.
437 * s390-tdep.c (s390_address_class_type_flags): Return
438 type_instance_flags.
439 (s390_address_class_type_flags_to_name): Take a
440 type_instance_flags.
441 (s390_address_class_name_to_type_flags): Return bool and take a
442 type_instance_flags.
443 * type-stack.c (type_stack::follow_types): Use
444 type_instance_flags.
445 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
446
447 2020-09-14 Tom Tromey <tromey@adacore.com>
448
449 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
450 * x86-tdep.c (x86_is_thunk_register_name)
451 (x86_in_indirect_branch_thunk): Update.
452 * sparc64-tdep.c (sparc64_fpu_register_names)
453 (sparc64_cp0_register_names, sparc64_register_names)
454 (sparc64_pseudo_register_names): Now const.
455 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
456 cp0_registers_num>: Now const.
457 * sparc-tdep.c (sparc_core_register_names)
458 (sparc32_fpu_register_names, sparc32_cp0_register_names)
459 (sparc32_pseudo_register_names): Now const.
460 (validate_tdesc_registers): Update.
461 * rust-lang.c (rust_extensions): Now const.
462 * p-lang.c (p_extensions): Now const.
463 * objc-lang.c (objc_extensions): Now const.
464 * nto-tdep.c (nto_thread_state_str): Now const.
465 * moxie-tdep.c (moxie_register_names): Now const.
466 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
467 Now const.
468 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
469 (mips_linux_reg_names): Now const.
470 (mips_gdbarch_init): Update.
471 * microblaze-tdep.c (microblaze_register_names): Now const.
472 * m68k-tdep.c (m68k_register_names): Now const.
473 * m32r-tdep.c (m32r_register_names): Now const.
474 * ia64-tdep.c (ia64_register_names): Now const.
475 * i386-tdep.h (struct gdbarch_tdep) <register_names,
476 ymmh_register_names, ymm16h_regnum, mpx_register_names,
477 k_register_names, zmmh_register_names, xmm_avx512_register_names,
478 ymm_avx512_register_names, pkeys_register_names>: Now const.
479 * i386-tdep.c (i386_register_names, i386_zmm_names)
480 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
481 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
482 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
483 * f-lang.c (f_extensions): Now const.
484 * d-lang.c (d_extensions): Now const.
485 * csky-tdep.c (csky_register_names): Now const.
486 * charset.c (default_charset_names, charset_enum): Now const.
487 (_initialize_charset): Update.
488 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
489 const.
490 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
491 (bsd_uthread_solib_loaded): Update.
492 (bsd_uthread_state): Now const.
493 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
494 (amd64_ymm_avx512_names, amd64_ymmh_names)
495 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
496 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
497 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
498 (amd64_dword_names): Now const.
499 * agent.c (can_use_agent_enum): Now const.
500 * ada-tasks.c (task_states, long_task_states): Now const.
501 * ada-lang.c (known_runtime_file_name_patterns)
502 (known_auxiliary_function_name_patterns, attribute_names)
503 (standard_exc, ada_extensions): Now const.
504
505 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * bcache.h (struct bcache) <bcache>: Remove constructor.
508 <m_hash_function, m_compare_function>: Remove.
509 <~bcache>: Make virtual.
510 <compare>: Remove static method, introduce virtual method.
511 <default_hash>: Remove.
512 <hash>: New virtual method.
513 * bcache.c (bcache::expand_hash_table): Update.
514 (bcache::insert): Update.
515 (bcache::hash): New.
516 (bcache::compare): Update comment and parameter names.
517 * gdbtypes.c (types_deeply_equal): Update.
518 * psymtab.h (struct psymbol_bcache): New struct.
519 (class psymtab_storage) <psymtab_storage>: Make default.
520 <psymbol_cache>: Change type to psymbol_bcache.
521 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
522 (psymbol_hash): Change to...
523 (psymbol_bcache::hash): ... this.
524 (psymbol_compare): Change to...
525 (psymbol_bcache::compare): ... this.
526
527 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
530 checking for initial lwp.
531
532 2020-09-14 Tom Tromey <tromey@adacore.com>
533
534 * m68k-tdep.c (m68k_extract_return_value): Use
535 pointer_result_regnum.
536 (m68k_store_return_value): Likewise.
537 (m68k_reg_struct_return_p): Handle vectors and arrays.
538 (m68k_return_value): Handle arrays.
539 (m68k_svr4_return_value): Fix single-element aggregate handling.
540 Handle long double. Adjust for embedded ABI.
541 (m68k_svr4_init_abi): Set pointer_result_regnum.
542 (m68k_embedded_init_abi): New function.
543 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
544 (m68k_osabi_sniffer): New function.
545 (_initialize_m68k_tdep): Register osabi sniffer.
546 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
547 member.
548
549 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
550
551 * xml-support.c (xml_fetch_content_from_file): Replace xfree
552 with gdb::unique_xmalloc_ptr<char>.
553
554 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
555
556 * xml-support.h (xml_fetch_another): Change type to be a
557 function_view.
558 (xml_process_xincludes): Remove baton parameter.
559 (xml_fetch_content_from_file): Change baton parameter to
560 dirname.
561 * xml-support.c (struct xinclude_parsing_data)
562 <xinclude_parsing_data>: Remove baton parameter.
563 <fetcher_baton>: Remove.
564 (xinclude_start_include): Adjust.
565 (xml_process_xincludes): Adjust.
566 (xml_fetch_content_from_file): Replace baton parameter with
567 dirname.
568 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
569 (xml_init_syscalls_info): Use a lambda.
570 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
571 (file_read_description_xml): Use a lambda.
572 (fetch_available_features_from_target): Change baton parameter
573 to target_ops.
574 (target_read_description_xml): Use a lambda.
575 (target_fetch_description_xml): Use a lambda.
576 (string_read_description_xml): Update.
577
578 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
581 uses with type::endianity_is_not_default.
582
583 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
584
585 * gdbtypes.h (struct type) <endianity_is_not_default,
586 set_endianity_is_not_default>: New methods.
587 (TYPE_ENDIANITY_NOT_DEFAULT): Use
588 type::endianity_is_not_default, change all write call sites to
589 use type::set_endianity_is_not_default.
590
591 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
592
593 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
594 uses with type::is_fixed_instance.
595
596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
597
598 * gdbtypes.h (struct type) <is_fixed_instance,
599 set_is_fixed_instance>: New methods.
600 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
601 write call sites to use type::set_is_fixed_instance.
602
603 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
604
605 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
606 uses with type::is_gnu_ifunc.
607
608 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
609
610 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
611 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
612 use type::set_is_gnu_ifunc.
613
614 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
615
616 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
617 uses with type::stub_is_supported.
618
619 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
620
621 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
622 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
623 use type::set_stub_is_supported.
624
625 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
626
627 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
628 uses with type::is_vector.
629
630 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
631
632 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
633 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
634 use type::set_is_vector.
635
636 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
637
638 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
639 uses with type::has_varargs.
640
641 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
642
643 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
644 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
645 use type::set_has_varargs.
646
647 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
648
649 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
650 uses with type::is_prototyped.
651
652 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
653
654 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
655 New methods.
656 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
657 call sites to use type::set_is_prototyped.
658
659 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
660
661 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
662 uses with type::target_is_stub.
663
664 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
665
666 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
667 New methods.
668 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
669 sites to use type::set_target_is_stub.
670
671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
672
673 * gdbtypes.h (TYPE_STUB): Remove, replace all
674 uses with type::is_stub.
675
676 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
677
678 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
679 (TYPE_STUB): Use type::is_stub, change all write call sites to
680 use type::set_is_stub.
681
682 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
683
684 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
685 type::has_no_signedness.
686
687 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
688
689 * gdbtypes.h (struct type) <has_no_signedness,
690 set_has_no_signedness>: New methods.
691 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
692 call sites to use type::set_has_no_signedness.
693
694 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
695
696 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
697 type::is_unsigned.
698
699 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
700
701 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
702 methods.
703 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
704 sites to use type::set_is_unsigned.
705
706 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
707 Adam Renquinha <arenquinha@cimeq.qc.ca>
708
709 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
710 pointer and stack frame offset when unwinding.
711
712 2020-09-13 Pedro Alves <pedro@palves.net>
713
714 * NEWS: Document "-break-insert --qualified".
715 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
716
717 2020-09-13 Pedro Alves <pedro@palves.net>
718
719 * linespec.c (classify_mtype, compare_msyms): Delete.
720 (search_minsyms_for_name): Remove classification logic. Instead
721 filter out trampoline symbols if we also found an external
722 function of the same name.
723
724 2020-09-13 Joel Brobecker <brobecker@adacore.com>
725
726 * NEWS: Create a new section for the next release branch.
727 Rename the section of the current branch, now that it has
728 been cut.
729
730 2020-09-13 Joel Brobecker <brobecker@adacore.com>
731
732 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
733 * version.in: Bump version to 11.0.50.DATE-git.
734
735 2020-09-12 Joel Brobecker <brobecker@adacore.com>
736
737 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
738
739 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
740 Felix Willgerodt <Felix.Willgerodt@intel.com>
741
742 * gdbarch.sh: Added bfloat16 type.
743 * gdbarch.c: Regenerated.
744 * gdbarch.h: Regenerated.
745 * gdbtypes.c (floatformats_bfloat16): New struct.
746 (gdbtypes_post_init): Add builtin_bfloat16.
747 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
748 (floatformats_bfloat16): New struct.
749 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
750 (i386_ymm_type): Add field "v16_bfloat16"
751 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
752 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
753 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
754 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
755 * features/i386/64bit-avx512.xml: Add bfloat16 type.
756 * features/i386/64bit-avx512.c: Regenerated.
757 * features/i386/64bit-sse.xml: Add bfloat16 type.
758 * features/i386/64bit-sse.c: Regenerated.
759
760 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
761
762 * i386-tdep.c (i386_zmm_type): Fix field names.
763 (i386_ymm_type): Fix field names.
764
765 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 * breakpoint.c: Fix typo in the help message of the
768 "set breakpoint condition-evaluation" command.
769
770 2020-09-10 Kamil Rytarowski <n54@gmx.com>
771
772 * nbsd-nat.c: Include "nat/netbsd-nat.h".
773 * (nbsd_nat_target::pid_to_exec_file)
774 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
775 (nbsd_nat_target::post_startup_inferior)
776 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
777 (nbsd_add_threads): Switch local code to common gdb/nat functions.
778 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
779 * (nbsd_thread_lister): Remove.
780
781 2020-09-10 Kamil Rytarowski <n54@gmx.com>
782
783 * fork-inferior.c (startup_inferior): Avoid double free.
784
785 2020-09-10 Kamil Rytarowski <n54@gmx.com>
786
787 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
788 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
789
790 2020-09-10 Kamil Rytarowski <n54@gmx.com>
791
792 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
793 * netbsd-nat.c: Include <sys/ptrace.h>.
794 * (netbsd_nat::enable_proc_events): Add.
795
796 2020-09-10 Kamil Rytarowski <n54@gmx.com>
797
798 * netbsd-nat.h: Include "gdbsupport/function-view.h".
799 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
800 (netbsd_nat::for_each_thread): Add.
801 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
802 "gdbsupport/common-debug.h".
803 * (netbsd_nat::netbsd_thread_lister)
804 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
805 (netbsd_nat::for_each_thread): Add.
806
807 2020-09-10 Kamil Rytarowski <n54@gmx.com>
808
809 * netbsd-nat.h: Include <unistd.h>.
810 * (netbsd_nat::pid_to_exec_file): Add.
811 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
812 * (netbsd_nat::pid_to_exec_file) Add.
813
814 2020-09-10 Kamil Rytarowski <n54@gmx.com>
815
816 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
817
818 2020-09-10 Kamil Rytarowski <n54@gmx.com>
819
820 * netbsd-nat.h: New file.
821 * netbsd-nat.c: Likewise.
822
823 2020-09-09 Tom Tromey <tromey@adacore.com>
824
825 * ada-lang.c (remove_extra_symbols): Do not increment when
826 removing an element
827
828 2020-09-08 Tom Tromey <tromey@adacore.com>
829
830 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
831
832 2020-09-08 Tom Tromey <tromey@adacore.com>
833
834 PR win32/25302:
835 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
836 (gdb_bfd_init_data): New function.
837 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
838
839 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840
841 * infrun.c (fetch_inferior_event): Use
842 `switch_to_target_no_thread` to switch the target.
843
844 2020-09-06 Tom Tromey <tom@tromey.com>
845
846 * symfile.h (dwarf2_free_objfile): Don't declare.
847
848 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
849
850 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
851 to match 16 byte real/complex type generated by Flang compiler.
852
853 2020-09-03 Tom de Vries <tdevries@suse.de>
854
855 PR breakpoint/26546
856 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
857 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
858
859 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * maint.c (index_digits): New function.
862 (struct maint_print_section_data): Remove.
863 (print_bfd_section_info): Remove print_data parameter, add arg
864 and index_digits.
865 (print_objfile_section_info): Likewise.
866 (print_bfd_section_info_maybe_relocated): Likewise (plus
867 objfile).
868 (maintenance_info_sections): Adjust calls.
869
870 2020-09-02 Tom Tromey <tromey@adacore.com>
871
872 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
873 for null pointers.
874 (ada_varobj_adjust_for_child_access): Special-case null pointers.
875
876 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
877
878 * bcache.h (struct bcache) <insert>: Change type of `added` to
879 pointer to bool.
880 * bcache.c (bcache::insert): Likewise.
881 * gdbtypes.c (check_types_worklist): Adjust.
882 * psymtab.c (add_psymbol_to_bcache): Adjust.
883
884 2020-08-31 Kevin Buettner <kevinb@redhat.com>
885
886 * corelow.c (unordered_set): Include.
887 (class core_target): Add field 'm_core_unavailable_mappings'.
888 (core_target::build_file_mappings): Print only one warning
889 per inaccessible file. Add unavailable/broken mappings
890 to m_core_unavailable_mappings.
891 (core_target::xfer_partial): Call...
892 (core_target::xfer_memory_via_mappings): New method.
893
894 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
897 type to bool.
898
899 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
900
901 * dwarf2/read.c (struct field_info): Fix indentation.
902
903 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
904
905 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
906 ordering in comment.
907 * frame.c (frame_id_eq): Fix indentation.
908
909 2020-08-31 Scott Linder <scott@scottlinder.com>
910 Simon Marchi <simon.marchi@efficios.com>
911
912 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
913 inline frame ids in outer frame.
914
915 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
916
917 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
918 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
919 (outer_frame_id): Use FID_STACK_OUTER instead of
920 FID_STACK_INVALID.
921 (frame_id_p): Don't check for outer_frame_id.
922
923 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
924
925 * frame-unwind.c (frame_unwind_got_optimized): Don't set
926 regnum/frame in value. Call allocate_value_lazy.
927 * frame.c (frame_unwind_register_value): Use
928 val_print_not_saved.
929
930 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
931
932 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
933
934 2020-08-29 Pedro Alves <pedro@palves.net>
935
936 * progspace.c (print_program_space): Use all_inferiors. Switch to
937 the inferior before calling target_pid_to_str.
938
939 2020-08-28 Tom Tromey <tom@tromey.com>
940
941 * xcoffread.c (xcoff_end_psymtab): Update comment.
942 * dbxread.c (dbx_end_psymtab): Update comment.
943
944 2020-08-28 Tom de Vries <tdevries@suse.de>
945
946 PR breakpoint/26544
947 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
948 event_location.
949 (create_breakpoint): Same.
950 (base_breakpoint_decode_location): Same.
951 (bkpt_create_sals_from_location): Same.
952 (bkpt_decode_location): Same.
953 (bkpt_probe_create_sals_from_location): Same.
954 (bkpt_probe_decode_location): Same.
955 (tracepoint_create_sals_from_location): Same.
956 (tracepoint_decode_location): Same.
957 (tracepoint_probe_decode_location): Same.
958 (strace_marker_create_sals_from_location): Same.
959 (strace_marker_decode_location): Same.
960 (create_sals_from_location_default): Same.
961 (decode_location_default): Same.
962 * breakpoint.h (struct breakpoint_ops): Same.
963 (create_breakpoint): Same.
964 * linespec.h (decode_line_full): Same.
965 * linespec.c (decode_line_full): Same. Throw error if
966 result.size () == 0.
967
968 2020-08-27 Pedro Alves <pedro@palves.net>
969
970 PR gdb/26524
971 * breakpoint.c (until_break_fsm) <location_breakpoint,
972 caller_breakpoint>: Delete fields.
973 <breakpoints>: New field.
974 <until_break_fsm>: Adjust to save a breakpoint vector instead of
975 two individual breakpoints.
976 (until_break_fsm::should_stop): Loop over breakpoints in the
977 breakpoint vector.
978 (until_break_fsm::clean_up): Adjust to clear the breakpoints
979 vector.
980 (until_break_command): Handle location expanding into multiple
981 sals.
982
983 2020-08-27 Pedro Alves <pedro@palves.net>
984
985 PR gdb/26523
986 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
987 bp_until breakpoints user-specified locations. Update intro
988 comment.
989
990 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
991
992 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
993 gdb_bfd_sections): New.
994 * maint.c (print_bfd_section_info): Change param type to
995 maint_print_section_data.
996 (print_objfile_section_info): Likewise.
997 (print_bfd_section_info_maybe_relocated): Likewise.
998 (maintenance_info_sections): Use gdb_bfd_sections.
999
1000 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1001
1002 * MAINTAINERS: Add ARC target and maintainer.
1003
1004 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1005
1006 * configure.tgt: ARC support for GNU/Linux.
1007 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1008 * arc-linux-tdep.c: New file.
1009 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1010 * arc-tdep.c (arc_write_pc): Use it.
1011
1012 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1013
1014 * arc-tdep.c (arc_check_for_hardware_loop): New.
1015 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1016
1017 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1018
1019 * arc-tdep.h: Include "gdbarch.h".
1020
1021 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1022
1023 * arch/arc.h
1024 (arc_gdbarch_features): New class to stir the selection of target XML.
1025 (arc_create_target_description): Use FEATURES to choose XML target.
1026 (arc_lookup_target_description): Use arc_create_target_description
1027 to create _new_ target descriptions or return the already created
1028 ones if the FEATURES is the same.
1029 * arch/arc.c: Implementation of prototypes described above.
1030 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1031 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1032 * arc-tdep.c (*_feature_name): Make feature names consistent.
1033 (arc_register_feature): A new struct to hold information about
1034 registers of a particular target/feature.
1035 (arc_check_tdesc_feature): Check if XML provides registers in
1036 compliance with ARC_REGISTER_FEATURE structs.
1037 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1038 (determine_*_reg_feature_set): Which feature name to look for.
1039 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1040 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1041 to expected ISA enums to be used in arc_gdbarch_features structs.
1042 * features/Makefile (FEATURE_XMLFILES): Add new files.
1043 * gdb/features/arc/v1-aux.c: New file.
1044 * gdb/features/arc/v1-aux.xml: Likewise.
1045 * gdb/features/arc/v1-core.c: Likewise.
1046 * gdb/features/arc/v1-core.xml: Likewise.
1047 * gdb/features/arc/v2-aux.c: Likewise.
1048 * gdb/features/arc/v2-aux.xml: Likewise.
1049 * gdb/features/arc/v2-core.c: Likewise.
1050 * gdb/features/arc/v2-core.xml: Likewise.
1051 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1052
1053 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1054 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 PR m2/26372
1057 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1058 an assert. Remove single element array indexing pattern as the
1059 MULTI_SUBSCRIPT support will handle this case too.
1060
1061 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1062
1063 * value.h (valprint_check_validity): Move declaration from
1064 here...
1065 * valprint.h (valprint_check_validity): ... to here.
1066
1067 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1068
1069 * debug.h: New file.
1070 * debug.c (debug_prefixed_vprintf): New function.
1071 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1072 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1073
1074 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * infrun.h (infrun_debug_printf_1): New function declaration.
1077 (infrun_debug_printf): New macro.
1078 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1079 throughout.
1080 (infrun_debug_printf): New function.
1081 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1082 (handle_jit_event): Likewise.
1083
1084 2020-08-21 Mark Wielaard <mark@klomp.org>
1085
1086 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1087
1088 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * frame.c (enum class frame_id_status): New.
1091 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1092 (fprintf_frame): Update.
1093 (compute_frame_id): Set frame id status to "computing" on entry.
1094 Set it back to "not_computed" on failure and to "computed" on
1095 success.
1096 (get_frame_id): Assert the frame id is not being computed.
1097 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1098 (create_new_frame): Likewise.
1099 (frame_cleanup_after_sniffer): Update assert.
1100
1101 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * regcache.c (pid_ptid_regcache_map): New type.
1104 (target_ptid_regcache_map): Remove.
1105 (target_pid_ptid_regcache_map): New type.
1106 (regcaches): Change type to target_pid_ptid_regcache_map.
1107 (get_thread_arch_aspace_regcache): Update.
1108 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1109 case.
1110 (regcaches_size): Update.
1111 (regcache_count): Update.
1112 (registers_changed_ptid_target_pid_test): New.
1113 (_initialize_regcache): Register new test.
1114
1115 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1116
1117 * regcache.c (regcache_count): New.
1118 (struct regcache_test_data): New.
1119 (regcache_test_data_up): New.
1120 (populate_regcaches_for_test): New.
1121 (regcaches_test): Remove.
1122 (get_thread_arch_aspace_regcache_test): New.
1123 (registers_changed_ptid_all_test): New.
1124 (registers_changed_ptid_target_test): New.
1125 (registers_changed_ptid_target_ptid_test): New.
1126 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1127 (_initialize_regcache): Register new tests.
1128
1129 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1132 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1133 gdbarch and aspace parameter. Use current inferior's aspace.
1134 Validate regcache's arch value.
1135 (regcaches_test): Update.
1136
1137 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1138
1139 * regcache.c (regcaches_test): Call registers_changed.
1140
1141 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1142
1143 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1144
1145 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1146
1147 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1148 to find the end of prologue for flang compiled binaries.
1149 * arm-tdep.c (arm_skip_prologue): Likewise.
1150 * i386-tdep.c (i386_skip_prologue): Likewise.
1151 * producer.c (producer_is_llvm): New function.
1152 (producer_parsing_tests): Added new tests for clang/flang.
1153 * producer.h (producer_is_llvm): New declaration.
1154
1155 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1156
1157 * linux-nat.c (linux_nat_debug_printf): New function.
1158 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1159
1160 2020-08-18 Aaron Merey <amerey@redhat.com>
1161
1162 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1163 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1164 (CLIBS): Add DEBUGINFOD_LIBS.
1165
1166 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1167
1168 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1169 'gdbarch_num_regs'.
1170
1171 2020-08-17 Tom Tromey <tromey@adacore.com>
1172
1173 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1174 ada_get_decoded_value returns NULL.
1175
1176 2020-08-17 Tom Tromey <tromey@adacore.com>
1177
1178 * python/py-inferior.c (infpy_search_memory): Use
1179 gdb_py_object_from_ulongest.
1180 * python/py-infevents.c (create_inferior_call_event_object)
1181 (create_memory_changed_event_object): Use
1182 gdb_py_object_from_ulongest.
1183 * python/py-linetable.c (ltpy_entry_get_pc): Use
1184 gdb_py_object_from_ulongest.
1185
1186 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1187
1188 * loc.c (class symbol_needs_eval_context): Fix indentation.
1189
1190 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1193 bool.
1194
1195 2020-08-17 Tom de Vries <tdevries@suse.de>
1196
1197 PR gdb/26393
1198 * gdbtypes.c (dump_dynamic_prop): New function.
1199 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1200
1201 2020-08-15 Tom de Vries <tdevries@suse.de>
1202
1203 PR backtrace/26390
1204 * stack.c (print_frame_args): Temporarily set the selected
1205 frame to FRAME while printing the frame's arguments.
1206
1207 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1208
1209 PR breakpoints/26385
1210 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1211 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1212
1213 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1214
1215 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1216 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1217 and >= to check return value instead of == -1 and != -1.
1218
1219 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1220
1221 * utils.h (class gdb_argv) <as_array_view>: New method.
1222 * utils.c (gdb_argv_as_array_view_test): New.
1223 (_initialize_utils): Register selftest.
1224 * maint.c (maintenance_selftest): Use the new method.
1225
1226 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1227
1228 * target.h (supports_dumpcore, dumpcore): New
1229 function declarations.
1230 * target.c (supports_dumpcore, dumpcore): New
1231 functions.
1232 * target-delegates.c: Rebuild.
1233 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1234 and target_dumpcore ().
1235
1236 2020-08-13 Aaron Merey <amerey@redhat.com>
1237
1238 * debuginfod-support.c: Replace global variables with user_data.
1239
1240 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * maint.c (maintenance_selftest): Split args and pass array_view
1243 to run_tests.
1244
1245 2020-08-12 Luis Machado <luis.machado@linaro.org>
1246
1247 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1248 type's length.
1249 Use %s and pulongest to print the length.
1250
1251 2020-08-12 Pedro Alves <palves@redhat.com>
1252
1253 * NEWS: Move "Multi-target debugging support" item to the
1254 "Changes since GDB 9" section.
1255
1256 2020-08-12 Pedro Alves <palves@redhat.com>
1257
1258 PR gdb/26336
1259 * progspace.c (program_space::remove_objfile): Invalidate the
1260 frame cache.
1261
1262 2020-08-11 Tom de Vries <tdevries@suse.de>
1263
1264 * MAINTAINERS: Mark ms1 as deleted.
1265
1266 2020-08-10 Luis Machado <luis.machado@linaro.org>
1267
1268 PR gdb/26310
1269
1270 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1271 act accordingly.
1272 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1273 movz/str/stur/stp skipping behavior.
1274
1275 2020-08-10 Luis Machado <luis.machado@linaro.org>
1276
1277 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1278 struct user_sve_header instead of struct sve_context.
1279
1280 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * read.h (dwarf2_fetch_die_loc_sect_off,
1283 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1284 `void *` parameter with function_view.
1285 * read.c (dwarf2_fetch_die_loc_sect_off,
1286 dwarf2_fetch_die_loc_cu_off): Likewise.
1287 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1288 (per_cu_dwarf_call): Adjust.
1289 (get_frame_address_in_block_wrapper): Remove.
1290 (indirect_synthetic_pointer): Adjust.
1291 (get_ax_pc): Remove.
1292 (dwarf2_compile_expr_to_ax): Adjust.
1293
1294 2020-08-08 Tom de Vries <tdevries@suse.de>
1295
1296 PR build/26344
1297 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1298 constructor.
1299 * regcache.c (get_thread_arch_aspace_regcache): Same.
1300
1301 2020-08-07 Tom Tromey <tromey@adacore.com>
1302
1303 * ravenscar-thread.c
1304 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1305 New method.
1306 (ravenscar_thread_target::wait): Check
1307 runtime_initialized.
1308 (ravenscar_thread_target::prepare_to_store)
1309 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1310 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1311 (ravenscar_thread_target::stopped_by_watchpoint)
1312 (ravenscar_thread_target::stopped_data_address)
1313 (ravenscar_thread_target::core_of_thread): Use
1314 scoped_restore_current_thread and
1315 set_base_thread_from_ravenscar_task.
1316
1317 2020-08-07 Tom Tromey <tromey@adacore.com>
1318
1319 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1320
1321 2020-08-07 Tom Tromey <tromey@adacore.com>
1322
1323 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1324 update_inferior_ptid before update_thread_list.
1325 (temporarily_change_regcache_ptid): New class.
1326 (ravenscar_thread_target::fetch_registers)
1327 (ravenscar_thread_target::store_registers)
1328 (ravenscar_thread_target::prepare_to_store): Use base thread when
1329 forwarding operation.
1330
1331 2020-08-07 Tom Tromey <tromey@adacore.com>
1332
1333 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1334 "is_pid" case.
1335
1336 2020-08-07 Tom Tromey <tromey@adacore.com>
1337
1338 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1339 New methods.
1340 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1341 first.
1342 (ravenscar_thread_target::add_thread): Rename from
1343 ravenscar_add_thread.
1344 (ravenscar_thread_target::update_thread_list): Use a lambda.
1345 (ravenscar_thread_target::xfer_partial): New method.
1346
1347 2020-08-07 Tom Tromey <tromey@adacore.com>
1348
1349 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1350 gdb::function_view.
1351 (iterate_over_live_ada_tasks): Change type of argument.
1352 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1353 of argument.
1354
1355 2020-08-07 Tom Tromey <tromey@adacore.com>
1356
1357 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1358 Remove.
1359 (ravenscar_thread_target::extra_thread_info): Remove.
1360 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1361 defer to target beneath for non-Ravenscar threads.
1362
1363 2020-08-07 Tom Tromey <tromey@adacore.com>
1364
1365 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1366 get_base_thread_from_ravenscar_task>: Now methods.
1367 <m_cpu_map>: New member.
1368 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1369 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1370 (ravenscar_thread_target::task_is_currently_active): Update.
1371 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1372 Now a method.
1373 (ravenscar_thread_target::add_active_thread): Put initial thread
1374 into the m_cpu_map.
1375
1376 2020-08-07 Tom Tromey <tromey@adacore.com>
1377
1378 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1379 event_ptid.
1380
1381 2020-08-07 Tom Tromey <tromey@adacore.com>
1382
1383 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1384 runtime_initialized.
1385
1386 2020-08-07 Tom Tromey <tromey@adacore.com>
1387
1388 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1389 add_active_thread.
1390 (ravenscar_thread_target::add_active_thread): Now public.
1391 (ravenscar_inferior_created): Call add_active_thread after pushing
1392 the target.
1393
1394 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1395
1396 * regcache.c (ptid_regcache_map): New type.
1397 (target_ptid_regcache_map): New type.
1398 (regcaches): Change type to target_ptid_regcache_map.
1399 (get_thread_arch_aspace_regcache): Update to regcaches' new
1400 type.
1401 (regcache_thread_ptid_changed): Likewise.
1402 (registers_changed_ptid): Likewise.
1403 (regcaches_size): Likewise.
1404 (regcaches_test): Update.
1405 (regcache_thread_ptid_changed): Update.
1406 * regcache.h (regcache_up): New type.
1407 * gdbsupport/ptid.h (hash_ptid): New struct.
1408
1409 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1410
1411 * observable.h (thread_ptid_changed): Add parameter
1412 `process_stratum_target *`.
1413 * infrun.c (infrun_thread_ptid_changed): Add parameter
1414 `process_stratum_target *` and use it.
1415 (selftests): New namespace.
1416 (infrun_thread_ptid_changed): New function.
1417 (_initialize_infrun): Register selftest.
1418 * regcache.c (regcache_thread_ptid_changed): Add parameter
1419 `process_stratum_target *` and use it.
1420 (regcache_thread_ptid_changed): New function.
1421 (_initialize_regcache): Register selftest.
1422 * thread.c (thread_change_ptid): Pass target to
1423 thread_ptid_changed observable.
1424
1425 2020-08-06 Caroline Tice <cmtice@google.com>
1426
1427 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1428 (struct dwp_sections): Update field comments. Add loclists and
1429 rnglists fields.
1430 (struct virtual_v2_dwo_sections): Rename struct to
1431 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1432 size & offset fields for loclists and rnglists.
1433 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1434 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1435 skipping dummy type units.
1436 (create_dwp_hash_table): Update the large comment above the function to
1437 discuss Version 5 DWP files as well, with references. Update all the
1438 version checks in the function to check for version 5 as well. Add new
1439 section at the end to create dwp hash table for version 5.
1440 (create_dwp_v2_section): Rename function to
1441 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1442 Add V5 to error message text.
1443 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1444 into calls to create_dwp_v2_or_v5_section.
1445 (create_dwo_unit_in_dwp_v5): New function.
1446 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1447 check for version2; add else clause to handle version 5.
1448 (open_and_init_dwo_file): Add code to check dwarf version & only call
1449 create_debug_types_hash_table (with sections.types) if version is not 5;
1450 else call create_debug_type_hash_table, with sections.info.
1451 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1452 version 5.
1453 (dwarf2_locate_v5_dwp_sections): New function.
1454 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1455 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1456
1457 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1458
1459 * regcache.h (class regcache): Remove friend
1460 registers_changed_ptid.
1461 <regcache_thread_ptid_changed>: Remove.
1462 <regcaches>: Remove.
1463 * regcache.c (regcache::regcaches): Rename to...
1464 (regcaches): ... this. Make static.
1465 (get_thread_arch_aspace_regcache): Update.
1466 (regcache::regcache_thread_ptid_changed): Rename to...
1467 (regcache_thread_ptid_changed): ... this. Update.
1468 (class regcache_access): Remove.
1469 (regcaches_test): Update.
1470 (_initialize_regcache): Update.
1471 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1472 <forward_list>.
1473
1474 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * regcache.h (class regcache) <current_regcache>: Rename to...
1477 <regcaches>: ... this. Move doc here.
1478 * regcache.c (regcache::current_regcache) Rename to...
1479 (regcache::regcaches): ... this. Move doc to header.
1480 (get_thread_arch_aspace_regcache): Update.
1481 (regcache::regcache_thread_ptid_changed): Update.
1482 (registers_changed_ptid): Update.
1483 (class regcache_access) <current_regcache_size>: Rename to...
1484 <regcaches_size>: ... this.
1485 (current_regcache_test): Rename to...
1486 (regcaches_test): ... this.
1487 (_initialize_regcache): Update.
1488
1489 2020-08-06 Victor Collod <vcollod@nvidia.com>
1490
1491 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1492
1493 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1494
1495 * corelow.c (core_target::build_file_mappings): Don't output
1496 null pathname in warning.
1497
1498 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1501 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1502 gdb.dwarf2/dw2-single-line-discriminators.exp,
1503 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1504
1505 2020-08-05 Tom Tromey <tromey@adacore.com>
1506
1507 PR rust/26197:
1508 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1509 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1510 Fix off-by-one and type size errors in ordinary case.
1511
1512 2020-08-05 Tom de Vries <tdevries@suse.de>
1513
1514 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1515 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1516
1517 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1518
1519 * frame.h (frame_id_p): Return bool.
1520 (frame_id_artificial_p): Return bool.
1521 (frame_id_eq): Return bool.
1522 (has_stack_frames): Return bool.
1523 (get_selected_frame): Fix typo in comment.
1524 (get_frame_pc_if_available): Return bool.
1525 (get_frame_address_in_block_if_available): Return bool.
1526 (get_frame_func_if_available): Return bool.
1527 (read_frame_register_unsigned): Return bool.
1528 (get_frame_register_bytes): Return bool.
1529 (safe_frame_unwind_memory): Return bool.
1530 (deprecated_frame_register_read): Return bool.
1531 (frame_unwinder_is): Return bool.
1532 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1533 bool.
1534 <this_id::p>: Likewise.
1535 <prev_p>: Likewise.
1536 (frame_stash_add): Return bool.
1537 (get_frame_id): Use bool.
1538 (frame_id_build_special) Use bool.
1539 (frame_id_build_unavailable_stack): Use bool.
1540 (frame_id_build): Use bool.
1541 (frame_id_p): Return bool, use true/false instead of 1/0.
1542 (frame_id_artificial_p): Likewise.
1543 (frame_id_eq): Likewise.
1544 (frame_id_inner): Likewise.
1545 (get_frame_func_if_available): Likewise.
1546 (read_frame_register_unsigned): Likewise.
1547 (deprecated_frame_register_read): Likewise.
1548 (get_frame_register_bytes): Likewise.
1549 (has_stack_frames): Likewise.
1550 (inside_main_func): Likewise.
1551 (inside_entry_func): Likewise.
1552 (get_frame_pc_if_available): Likewise.
1553 (get_frame_address_in_block_if_available): Likewise.
1554 (frame_unwinder_is): Likewise.
1555 (safe_frame_unwind_memory): Likewise.
1556 (frame_unwind_arch): Likewise.
1557
1558 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1561 type to cached_copy_status.
1562 (fprintf_frame): Adjust.
1563 (get_frame_func_if_available): Adjust.
1564 (frame_cleanup_after_sniffer): Adjust.
1565
1566 2020-08-04 Mark Wielaard <mark@klomp.org>
1567
1568 * MAINTAINERS (Write After Approval): Update email address.
1569
1570 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1571
1572 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1573 dynamic_prop::const_val.
1574
1575 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1576
1577 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1578 dynamic_prop::kind.
1579
1580 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1583
1584 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1585
1586 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1587
1588 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1589 Jose E. Marchesi <jose.marchesi@oracle.com>
1590
1591 * configure.tgt: Add entry for bpf-*-*.
1592 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1593 (ALLDEPFILES): Add bpf-tdep.c.
1594 * bpf-tdep.c: New file.
1595 * MAINTAINERS: Add bpf target and maintainer.
1596 * NEWS: Mention the support for the new target.
1597
1598 2020-08-04 Tom de Vries <tdevries@suse.de>
1599
1600 PR symtab/23270
1601 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1602 Error.
1603
1604 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1605
1606 * syscalls/freebsd.xml: Regenerate.
1607
1608 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1609
1610 * syscalls/update-freebsd.sh: Fix usage and year range.
1611
1612 2020-08-03 Tom de Vries <tdevries@suse.de>
1613
1614 PR symtab/26333
1615 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1616 DW_LNE_lo_user/DW_LNE_hi_user range.
1617
1618 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 PR ada/26318
1621 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1622 kind.
1623
1624 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1625
1626 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1627
1628 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1629
1630 * breakpoint.c (set_breakpoint_condition): Update the condition
1631 expressions after checking that the input condition string parses
1632 successfully and does not contain junk at the end.
1633
1634 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1635
1636 * breakpoint.c (set_breakpoint_condition): Update the
1637 condition string after parsing the new condition successfully.
1638
1639 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1640
1641 * proc-api.c (_STRUCTURED_PROC): Don't define.
1642 * proc-events.c: Likewise.
1643 * proc-flags.c: Likewise.
1644 * proc-why.c: Likewise.
1645 * procfs.c: Likewise.
1646
1647 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1648 * configure, config.in: Regenerate.
1649
1650 2020-07-30 Tom de Vries <tdevries@suse.de>
1651
1652 PR build/26320
1653 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1654 m_red/m_green/m_blue in a union.
1655
1656 2020-07-29 Tom de Vries <tdevries@suse.de>
1657
1658 PR tdep/26280
1659 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1660
1661 2020-07-28 Tom Tromey <tromey@adacore.com>
1662
1663 PR symtab/26270:
1664 * symtab.h (find_pc_partial_function_sym): Declare.
1665 * cli/cli-cmds.c (disassemble_command): Use
1666 find_pc_partial_function_sym. Check asm_demangle.
1667 * blockframe.c (cache_pc_function_sym): New global.
1668 (cache_pc_function_name): Remove.
1669 (clear_pc_function_cache): Update.
1670 (find_pc_partial_function_sym): New function, from
1671 find_pc_partial_function.
1672 (find_pc_partial_function): Rewrite using
1673 find_pc_partial_function_sym.
1674
1675 2020-07-28 Tom Tromey <tromey@adacore.com>
1676
1677 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1678 help. Add usage.
1679
1680 2020-07-28 Tom Tromey <tromey@adacore.com>
1681
1682 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1683 <DW_OP_GNU_variable_value>: Cast to address type.
1684
1685 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1686
1687 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1688 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1689 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1690 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1691 (nbsd_get_siginfo_type): New.
1692 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1693 (_initialize_nbsd_tdep): New.
1694
1695 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1696
1697 PR binutils/26301
1698 * configure: Regenerated.
1699
1700 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 PR binutils/26301
1703 * configure: Regenerated.
1704
1705 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * python/py-frame.c: Remove 'user-regs.h' include.
1708 (frapy_read_register): Rewrite to make use of
1709 gdbpy_parse_register_id.
1710 * python/py-registers.c (gdbpy_parse_register_id): New function,
1711 moved here from python/py-unwind.c. Updated the return type, and
1712 also accepts register descriptor objects.
1713 * python/py-unwind.c: Remove 'user-regs.h' include.
1714 (pyuw_parse_register_id): Moved to python/py-registers.c.
1715 (unwind_infopy_add_saved_register): Update to use
1716 gdbpy_parse_register_id.
1717 (pending_framepy_read_register): Likewise.
1718 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1719
1720 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1721
1722 * python/py-registers.c: Add 'user-regs.h' include.
1723 (register_descriptor_iter_find): New function.
1724 (register_descriptor_iterator_object_methods): New static global
1725 methods array.
1726 (register_descriptor_iterator_object_type): Add pointer to methods
1727 array.
1728
1729 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1730
1731 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1732 for all architectures on FreeBSD 11.3 and later.
1733
1734 2020-07-27 Tom Tromey <tromey@adacore.com>
1735
1736 * gcore.h (load_corefile): Don't declare.
1737
1738 2020-07-27 Tom de Vries <tdevries@suse.de>
1739
1740 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1741 * config.in: Regenerate.
1742 * configure: Regenerate.
1743
1744 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1745
1746 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1747 ws2tcpip.h. When checking whether socklen_t type is defined, use
1748 ws2tcpip.h if it is available and sys/socket.h isn't.
1749 * configure: Regenerate.
1750 * config.in: Regenerate.
1751
1752 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1753
1754 PR fortran/23051
1755 PR fortran/26139
1756 * valops.c (value_ind): Pass address to
1757 readjust_indirect_value_type.
1758 * value.c (readjust_indirect_value_type): Make parameter
1759 non-const, and add extra address parameter. Resolve original type
1760 before using it.
1761 * value.h (readjust_indirect_value_type): Update function
1762 signature and comment.
1763
1764 2020-07-25 Tom de Vries <tdevries@suse.de>
1765
1766 PR symtab/26243
1767 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1768 entries.
1769
1770 2020-07-24 Aaron Merey <amerey@redhat.com>
1771
1772 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1773 * configure: Rebuild.
1774
1775 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1776
1777 PR corefiles/26294
1778 * corelow.c (_initialize_corelow): Add period to help text
1779 for "maintenance print core-file-backed-mappings".
1780
1781 2020-07-23 Pedro Alves <pedro@palves.net>
1782
1783 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1784 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1785 meanwhile.
1786 * frame.c (frame_cache_generation, get_frame_cache_generation):
1787 New.
1788 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1789 (get_prev_frame_if_no_cycle): On exception, don't touch
1790 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1791 * frame.h (get_frame_cache_generation): Declare.
1792
1793 2020-07-23 Tom de Vries <tdevries@suse.de>
1794
1795 PR tui/26282
1796 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1797 New default constructor.
1798
1799 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1802 exclude non-statement entries.
1803
1804 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1805
1806 * NEWS (New commands): Mention new command
1807 "maintenance print core-file-backed-mappings".
1808
1809 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1810
1811 * corelow.c (gdbcmd.h): Include.
1812 (core_target::info_proc_mappings): New method.
1813 (get_current_core_target): New function.
1814 (maintenance_print_core_file_backed_mappings): New function.
1815 (_initialize_corelow): Add core-file-backed-mappings to
1816 "maint print" commands.
1817
1818 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1819
1820 * linux-tdep.c (dump_note_entry_p): New function.
1821 (linux_dump_mapping_p_ftype): New typedef.
1822 (linux_find_memory_regions_full): Add new parameter,
1823 should_dump_mapping_p.
1824 (linux_find_memory_regions): Adjust call to
1825 linux_find_memory_regions_full.
1826 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1827 call to linux_find_memory_regions_full.
1828
1829 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1830
1831 * corelow.c (solist.h, unordered_map): Include.
1832 (class core_target): Add field m_core_file_mappings and
1833 method build_file_mappings.
1834 (core_target::core_target): Call build_file_mappings.
1835 (core_target::~core_target): Free memory associated with
1836 m_core_file_mappings.
1837 (core_target::build_file_mappings): New method.
1838 (core_target::xfer_partial): Use m_core_file_mappings
1839 for memory transfers.
1840 * linux-tdep.c (linux_read_core_file_mappings): New
1841 function.
1842 (linux_core_info_proc_mappings): Rewrite to use
1843 linux_read_core_file_mappings.
1844 (linux_init_abi): Register linux_read_core_file_mappings.
1845
1846 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1847
1848 * arch-utils.c (default_read_core_file_mappings): New function.
1849 * arch-utils.c (default_read_core_file_mappings): Declare.
1850 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1851 * gdbarch.h, gdbarch.c: Regenerate.
1852
1853 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1854
1855 PR corefiles/25631
1856 * corelow.c (core_target:xfer_partial): Revise
1857 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1858 case after first checking the stratum beneath the core
1859 target.
1860 (has_all_memory): Return true.
1861 * target.c (raw_memory_xfer_partial): Revise comment
1862 regarding use of has_all_memory.
1863
1864 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1865
1866 * exec.h (section_table_xfer_memory): Revise declaration,
1867 replacing section name parameter with an optional callback
1868 predicate.
1869 * exec.c (section_table_xfer_memory): Likewise.
1870 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1871 of section_table_xfer_memory.
1872
1873 2020-07-22 Tom Tromey <tromey@adacore.com>
1874
1875 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1876 lookup_symbol_search_name.
1877
1878 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1881 redundant local variable.
1882 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1883 reference, not pointer, update code accordingly.
1884
1885 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1886 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1887
1888 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1889 * jit.c (jit_breakpoint_re_set_internal): Use the
1890 `skip_jit_symbol_lookup` field.
1891
1892 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1893 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1894
1895 * jit.c (jit_read_descriptor): Define the descriptor address once,
1896 use twice.
1897 (jit_breakpoint_deleted): Move the declaration of the loop variable
1898 `iter` into the loop header.
1899 (jit_breakpoint_re_set_internal): Move the declaration of the local
1900 variable `objf_data` to the first point of definition.
1901 (jit_event_handler): Move the declaration of local variables
1902 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1903 Rename `objf` to `jited`.
1904
1905 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1906
1907 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1908 Remove.
1909 * jit.c (get_jiter_objfile_data): Update.
1910
1911 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1912 Simon Marchi <simon.marchi@polymtl.ca>
1913
1914 * jit.c (struct jit_program_space_data): Remove.
1915 (jit_program_space_key): Remove.
1916 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1917 stuff.
1918 (get_jit_program_space_data): Remove.
1919 (jit_breakpoint_deleted): Iterate on all of the program space's
1920 objfiles.
1921 (jit_inferior_init): Likewise.
1922 (jit_breakpoint_re_set_internal): Likewise. Also change return
1923 type to void.
1924 (jit_breakpoint_re_set): Pass current_program_space to
1925 jit_breakpoint_re_set_internal.
1926
1927 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * jit.h (struct jiter_objfile_data) <cached_code_address,
1930 jit_breakpoint>: Move to here from ...
1931 * jit.c (jit_program_space_data): ... here.
1932 (jiter_objfile_data::~jiter_objfile_data): Update.
1933 (jit_breakpoint_deleted): Update.
1934 (jit_breakpoint_re_set_internal): Update.
1935
1936 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1939 checks.
1940 (jit_read_descriptor): Remove NULL check.
1941 (jit_event_handler): Add an assertion.
1942
1943 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * jit.h (struct jit_objfile_data): Split into...
1946 (struct jiter_objfile_data): ... this ...
1947 (struct jited_objfile_data): ... and this.
1948 * objfiles.h (struct objfile) <jit_data>: Remove.
1949 <jiter_data, jited_data>: New fields.
1950 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1951 (jiter_objfile_data::~jiter_objfile_data): ... this.
1952 (get_jit_objfile_data): Rename to ...
1953 (get_jiter_objfile_data): ... this.
1954 (add_objfile_entry): Update.
1955 (jit_read_descriptor): Use get_jiter_objfile_data.
1956 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1957 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1958 (jit_inferior_exit_hook): Use objfile's jited_data field.
1959
1960 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * jit.h: Forward-declare `struct minimal_symbol`.
1963 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1964 constructor, destructor, and an objfile* field.
1965 * jit.c (jit_objfile_data): Remove.
1966 (struct jit_objfile_data): Migrate from here to jit.h.
1967 (jit_objfile_data::~jit_objfile_data): New destructor
1968 implementation with code moved from free_objfile_data.
1969 (free_objfile_data): Delete.
1970 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1971 (jit_find_objf_with_entry_addr): Ditto.
1972 (jit_inferior_exit_hook): Ditto.
1973 (_initialize_jit): Remove the call to
1974 register_objfile_data_with_cleanup.
1975 * objfiles.h (struct objfile) <jit_data>: New field.
1976
1977 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 * jit.h: Forward-declare `struct objfile`.
1980 (jit_event_handler): Add a second parameter, the JITer objfile.
1981 * jit.c (jit_read_descriptor): Change the signature to take the
1982 JITer objfile as an argument instead of the jit_program_space_data.
1983 (jit_inferior_init): Update the call to jit_read_descriptor.
1984 (jit_event_handler): Use the new JITer objfile argument when calling
1985 jit_read_descriptor.
1986 * breakpoint.c (handle_jit_event): Update the call to
1987 jit_event_handler to pass the JITer objfile.
1988
1989 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1990
1991 * gdbarch.c: Regenerate.
1992 * gdbarch.h: Regenerate.
1993 * gdbarch.sh (handle_segmentation_fault): Remove method.
1994 * infrun.c (handle_segmentation_fault): Remove.
1995 (print_signal_received_reason): Remove call to
1996 handle_segmentation_fault.
1997
1998 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1999
2000 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2001 Rename to sparc64_linux_report_signal_info and add siggnal
2002 argument.
2003 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2004 instead of sparc64_linux_handle_segmentation_fault.
2005
2006 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2007
2008 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2009 i386_linux_report_signal_info instead of
2010 i386_linux_handle_segmentation_fault.
2011 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2012 to i386_linux_report_signal_info and add siggnal argument.
2013 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2014 of i386_linux_handle_segmentation_fault.
2015 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2016 to i386_linux_report_signal_info and add siggnal argument.
2017
2018 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2019
2020 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2021 hook if present.
2022
2023 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2024
2025 * gdbarch.c: Regenerate.
2026 * gdbarch.h: Regenerate.
2027 * gdbarch.sh (report_signal_info): New method.
2028 * infrun.c (print_signal_received_reason): Invoke gdbarch
2029 report_signal_info hook if present.
2030
2031 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * python/py-registers.c : Add 'unordered_map' include.
2034 (gdbpy_new_reggroup): Renamed to...
2035 (gdbpy_get_reggroup): ...this. Update to only create register
2036 group descriptors when needed.
2037 (gdbpy_reggroup_iter_next): Update.
2038
2039 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2040
2041 * python/py-registers.c (gdbpy_register_object_data): New static
2042 global.
2043 (gdbpy_register_object_data_init): New function.
2044 (gdbpy_new_register_descriptor): Renamed to...
2045 (gdbpy_get_register_descriptor): ...this, and update to reuse
2046 existing register descriptors where possible.
2047 (gdbpy_register_descriptor_iter_next): Update.
2048 (gdbpy_initialize_registers): Register new gdbarch data.
2049
2050 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2051
2052 * linux-nat.c (stopped_pids): Make static.
2053
2054 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 PR ada/26235
2057 * gdbtypes.c (ada_discrete_type_low_bound,
2058 ada_discrete_type_high_bound): Handle undefined bounds.
2059
2060 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2061
2062 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2063 declaration.
2064 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2065 function.
2066
2067 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2068
2069 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2070 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2071 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2072 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2073 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2074 method.
2075
2076 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2077
2078 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2079 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2080 which are deprecated in Guile 3.0.
2081 * configure.ac (try_guile_versions): Add "guile-3.0".
2082 * configure (try_guile_versions): Regenerate.
2083 * NEWS: Update entry.
2084
2085 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2086 Doug Evans <dje@google.com>
2087
2088 PR gdb/21104
2089 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2090 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2091 USING_GUILE_BEFORE_2_2.
2092 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2093 Change type to 'scm_t_port_type *'.
2094 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2095 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2096 parameter and honor it. Update callers.
2097 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2098 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2099 functions.
2100 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2101 USING_GUILE_BEFORE_2_2.
2102 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2103 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2104 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2105 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2106 and 'SCM_PORT_TYPE'.
2107 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2108 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2109 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2110 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2111 [!USING_GUILE_BEFORE_2_2]: New functions.
2112 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2113 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2114 'gdbscm_memory_port_read'.
2115 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2116 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2117 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2118 function.
2119 (ioscm_init_memory_port): Remove.
2120 (ioscm_init_memory_port_stream): New function
2121 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2122 function.
2123 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2124 Return scm_from_uint (0).
2125 (gdbscm_set_memory_port_read_buffer_size_x)
2126 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2127 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2128 Return scm_from_uint (0).
2129 (gdbscm_set_memory_port_write_buffer_size_x)
2130 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2131 * configure.ac (try_guile_versions): Add "guile-2.2".
2132 * configure: Regenerate.
2133 * NEWS: Add entry.
2134
2135 2020-07-18 Tom Tromey <tom@tromey.com>
2136
2137 * linux-nat.c (linux_multi_process): Remove.
2138 (linux_nat_target::supports_multi_process): Return true.
2139
2140 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2143 (riscv_lookup_target_description): Return pointer out of
2144 unique_ptr.
2145 * target-descriptions.c (allocate_target_description): Add
2146 comment.
2147 (target_desc_deleter::operator()): Likewise.
2148 * target-descriptions.h (struct target_desc_deleter): Moved to
2149 gdbsupport/tdesc.h.
2150 (target_desc_up): Likewise.
2151
2152 2020-07-17 Tom Tromey <tromey@adacore.com>
2153
2154 * linux-nat.c (linux_nat_target::supports_non_stop)
2155 (linux_nat_target::always_non_stop_p): Use "true".
2156 (linux_nat_target::supports_disable_randomization): Use "true" and
2157 "false".
2158
2159 2020-07-16 Caroline Tice <cmtice@google.com>
2160
2161 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2162 (RNGLIST_HEADER_SIZE64): New constant definition.
2163 (struct dwop_section_names): Add rnglists_dwo.
2164 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2165 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2166 (struct dwo_sections): Add rnglists field.
2167 (read_attribut_reprocess): Add tag parameter.
2168 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2169 (cu_debug_rnglists_section): New function (decl & definition).
2170 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2171 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2172 die whose range is being checked; get rnglist section from
2173 cu_debug_rnglists_section, to get from either objfile or dwo file as
2174 appropriate. Add cases for DW_RLE_base_addressx,
2175 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2176 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2177 test inside if-condition and updating complaint message.
2178 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2179 dwarf2_rnglists_process.
2180 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2181 dwarf2_ranges_process.
2182 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2183 need_ranges_base and update comment appropriately. Also pass die tag
2184 to dwarf2_ranges_read.
2185 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2186 need_ranges_base and update comment appropriately. Also pass die tag
2187 to dwarf2_ranges_process.
2188 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2189 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2190 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2191 need_ranges_base and update comment appropriately. Also pass die tag
2192 to read_attribute_reprocess and dwarf2_ranges_read.
2193 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2194 and update function comment appropriately.
2195 (read_loclist_index): Call read_loclists_rnglists_header instead of
2196 read_loclist_header.
2197 (read_rnglist_index): New function.
2198 (read_attribute_reprocess): Add tag parameter. Add code for
2199 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2200 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2201
2202 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2205 being resolved.
2206
2207 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * arch-utils.c (show_architecture): Update formatting of messages.
2210
2211 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2212
2213 * gdbtypes.h (struct type) <bounds>: Handle array and string
2214 types.
2215 * ada-lang.c (assign_aggregate): Use type::bounds on
2216 array/string type.
2217 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2218 * c-varobj.c (c_number_of_children): Likewise.
2219 (c_describe_child): Likewise.
2220 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2221 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2222 (f_type_print_base): Likewise.
2223 * f-valprint.c (f77_array_offset_tbl): Likewise.
2224 (f77_get_upperbound): Likewise.
2225 (f77_print_array_1): Likewise.
2226 * guile/scm-type.c (gdbscm_type_range): Likewise.
2227 * m2-typeprint.c (m2_array): Likewise.
2228 (m2_is_long_set_of_type): Likewise.
2229 * m2-valprint.c (get_long_set_bounds): Likewise.
2230 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2231 * python/py-type.c (typy_range): Likewise.
2232 * rust-lang.c (rust_internal_print_type): Likewise.
2233 * type-stack.c (type_stack::follow_types): Likewise.
2234 * valarith.c (value_subscripted_rvalue): Likewise.
2235 * valops.c (value_cast): Likewise.
2236
2237 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2238
2239 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2240 callers to use the equivalent accessor methods.
2241
2242 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2243
2244 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2245 (struct type) <bit_stride>: New method.
2246 (TYPE_BIT_STRIDE): Remove.
2247 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2248
2249 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2252 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2253 callers to use the equivalent accessor methods instead.
2254
2255 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2256
2257 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2258 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2259 callers to use the equivalent accessor methods instead.
2260
2261 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2262
2263 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2264 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2265 to use dynamic_prop::kind.
2266
2267 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2268
2269 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2270 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2271 to get the bound property's kind and check against
2272 PROP_UNDEFINED.
2273
2274 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2277 all callers to use type::range_bounds followed by
2278 dynamic_prop::{low,high}.
2279
2280 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2283 const_val, set_const_val, baton, set_locexpr, set_loclist,
2284 set_addr_offset, variant_parts, set_variant_parts,
2285 original_type, set_original_type>: New methods.
2286 <kind>: Rename to...
2287 <m_kind>: ... this. Update all users to use the new methods
2288 instead.
2289 <data>: Rename to...
2290 <m_data>: ... this. Update all users to use the new methods
2291 instead.
2292
2293 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2294
2295 * gdbtypes.c (get_discrete_bounds): Return failure if
2296 the range type's bounds are not both defined and constant
2297 values.
2298 (get_array_bounds): Update comment. Remove undefined bound check.
2299
2300 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2301
2302 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2303 the type::bounds method directly.
2304
2305 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2308 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2309 are used to set the range type's bounds to use set_bounds.
2310
2311 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2312
2313 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2314
2315 2020-07-10 Pedro Alves <pedro@palves.net>
2316
2317 * gdbthread.h (inferior_ref): Define.
2318 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2319 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2320 * thread.c
2321 (scoped_restore_current_thread::restore):
2322 Adjust to gdb::ref_ptr.
2323 (scoped_restore_current_thread::~scoped_restore_current_thread):
2324 Remove manual decref handling.
2325 (scoped_restore_current_thread::scoped_restore_current_thread):
2326 Adjust to use
2327 inferior_ref::new_reference/thread_info_ref::new_reference.
2328 Incref the thread before calling get_frame_id instead of after.
2329 Let TARGET_CLOSE_ERROR propagate.
2330
2331 2020-07-10 Pedro Alves <pedro@palves.net>
2332
2333 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2334 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2335 NOT_AVAILABLE_ERROR.
2336 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2337 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2338
2339 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2340 Pedro Alves <pedro@palves.net>
2341
2342 PR gdb/26199
2343 * infrun.c (threads_are_resumed_pending_p): Delete.
2344 (do_target_wait): Remove threads_are_executing and
2345 threads_are_resumed_pending_p checks from the inferior_matches
2346 lambda. Update comments.
2347
2348 2020-07-10 Pedro Alves <pedro@palves.net>
2349
2350 PR gdb/26199
2351 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2352 executing threads.
2353
2354 2020-07-10 Pedro Alves <pedro@palves.net>
2355
2356 PR gdb/26199
2357 * infrun.c (handle_no_resumed): Handle multiple targets.
2358
2359 2020-07-10 Pedro Alves <pedro@palves.net>
2360
2361 PR gdb/26199
2362 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2363 target_is_async_p.
2364
2365 2020-07-10 Pedro Alves <pedro@palves.net>
2366
2367 PR gdb/26199
2368 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2369 threads, not all threads.
2370
2371 2020-07-10 Pedro Alves <pedro@palves.net>
2372
2373 PR gdb/26199
2374 * remote.c (remote_target::open_1): Pass remote target pointer as
2375 data to create_async_event_handler.
2376 (remote_async_inferior_event_handler): Mark async event handler
2377 before returning if the remote target still has either pending
2378 events or unacknowledged notifications.
2379
2380 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2381
2382 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2383 declaration.
2384 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2385 function.
2386
2387 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2388
2389 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2390 inferior_ptid.
2391
2392 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2393
2394 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2395 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2396 AT_FREEBSD_PS_STRINGS.
2397
2398 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2399
2400 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2401 of debugfile path on Windows.
2402
2403 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2404
2405 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2406 argument to 'data'.
2407
2408 2020-07-08 Tom Tromey <tromey@adacore.com>
2409
2410 * ada-lang.c (ada_exception_message_1): Use read_memory.
2411
2412 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 PR python/22748
2415 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2416 special handling for inline frames.
2417 * findvar.c (value_of_register_lazy): Skip inline frames when
2418 creating lazy register values.
2419 * frame.c (frame_id_computed_p): Delete definition.
2420 * frame.h (frame_id_computed_p): Delete declaration.
2421
2422 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * NEWS: Mention additions to Python API.
2425 * python/py-arch.c (archpy_register_groups): New function.
2426 (arch_object_methods): Add 'register_groups' method.
2427 * python/py-registers.c (reggroup_iterator_object): New struct.
2428 (reggroup_object): New struct.
2429 (gdbpy_new_reggroup): New function.
2430 (gdbpy_reggroup_to_string): New function.
2431 (gdbpy_reggroup_name): New function.
2432 (gdbpy_reggroup_iter): New function.
2433 (gdbpy_reggroup_iter_next): New function.
2434 (gdbpy_new_reggroup_iterator): New function
2435 (gdbpy_initialize_registers): Register new types.
2436 (reggroup_iterator_object_type): Define new Python type.
2437 (gdbpy_reggroup_getset): New static global.
2438 (reggroup_object_type): Define new Python type.
2439 * python/python-internal.h
2440
2441 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2444 * python/py-arch.c (archpy_registers): New function.
2445 (arch_object_methods): Add 'registers' method.
2446 * python/py-registers.c: New file.
2447 * python/python-internal.h
2448 (gdbpy_new_register_descriptor_iterator): Declare.
2449 (gdbpy_initialize_registers): Declare.
2450 * python/python.c (do_start_initialization): Call
2451 gdbpy_initialize_registers.
2452 * NEWS: Mention additions to the Python API.
2453
2454 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * NEWS: Mention new Python API method.
2457 * python/py-unwind.c (pending_framepy_architecture): New function.
2458 (pending_frame_object_methods): Add architecture method.
2459
2460 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * gdbarch.c: Regenerate.
2463 * gdbarch.h: Regenerate.
2464 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2465 (gdbarch_data): Use internal_error for the case where
2466 deprecated_set_gdbarch_data was originally needed.
2467 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2468 and use passed in obstack.
2469 (libunwind_frame_set_descr): Should no longer get back NULL from
2470 gdbarch_data.
2471 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2472 type.
2473 * user-regs.c (user_regs_init): Update parameters, and use passed
2474 in obstack.
2475 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2476 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2477
2478 2020-07-06 Tom de Vries <tdevries@suse.de>
2479
2480 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2481 End-Of-Sequence in lte_is_less_than.
2482 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2483 "gdb: Don't reorder line table entries too much when sorting".
2484
2485 2020-07-06 Tom de Vries <tdevries@suse.de>
2486
2487 PR tui/26205
2488 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2489
2490 2020-07-05 Tom de Vries <tdevries@suse.de>
2491
2492 PR build/26187
2493 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2494 std::uncaught_exceptions instead of deprecated
2495 std::uncaught_exception.
2496
2497 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * macroexp.h (macro_stringify): Return
2500 gdb::unique_xmalloc_ptr<char>.
2501 * macroexp.c (macro_stringify): Likewise.
2502 * macrotab.c (fixup_definition): Update.
2503
2504 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2505
2506 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2507 (lex_one_token): Update.
2508 * macroexp.c (struct macro_buffer) <release>: Return
2509 gdb::unique_xmalloc_ptr<char>.
2510 (macro_stringify): Update.
2511 (macro_expand): Update.
2512 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2513 * macroexp.h (macro_expand_next): Likewise.
2514
2515 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * macroexp.h (macro_lookup_ftype): Remove.
2518 (macro_expand, macro_expand_once, macro_expand_next): Remove
2519 lookup function parameters, add scope parameter.
2520 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2521 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2522 * macroscope.h (standard_macro_lookup): Change parameter type
2523 to macro_scope.
2524 * macroscope.c (standard_macro_lookup): Likewise.
2525 * c-exp.y (lex_one_token): Update.
2526 * macrocmd.c (macro_expand_command): Likewise.
2527 (macro_expand_once_command): Likewise.
2528
2529 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * inf-loop.c (inferior_event_handler): Remove client_data param.
2532 * inf-loop.h (inferior_event_handler): Likewise.
2533 * infcmd.c (step_1): Adjust.
2534 * infrun.c (proceed): Adjust.
2535 (fetch_inferior_event): Remove client_data param.
2536 (infrun_async_inferior_event_handler): Adjust.
2537 * infrun.h (fetch_inferior_event): Remove `void *` param.
2538 * linux-nat.c (handle_target_event): Adjust.
2539 * record-btrace.c (record_btrace_handle_async_inferior_event):
2540 Adjust.
2541 * record-full.c (record_full_async_inferior_event_handler):
2542 Adjust.
2543 * remote.c (remote_async_inferior_event_handler): Adjust.
2544
2545 2020-07-01 Tom Tromey <tom@tromey.com>
2546
2547 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2548 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2549
2550 2020-07-01 Tom Tromey <tom@tromey.com>
2551
2552 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2553 tui_gen_win_info.
2554 (tui_win_info::make_window): Merge with
2555 tui_gen_win_info::make_window.
2556 (tui_win_info::make_visible): Move from tui_gen_win_info.
2557 * tui/tui-win.c (tui_win_info::max_width): Move from
2558 tui_gen_win_info.
2559 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2560 type.
2561 <window_factory>: Likewise.
2562 * tui/tui-layout.c (tui_win_info::resize): Move from
2563 tui_gen_win_info.
2564 (make_standard_window): Change return type.
2565 (get_locator_window, tui_get_window_by_name): Likewise.
2566 (tui_layout_window::apply): Remove a cast.
2567 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2568 (struct tui_win_info): Merge with tui_gen_win_info.
2569 (struct tui_gen_win_info): Remove.
2570
2571 2020-07-01 Tom Tromey <tom@tromey.com>
2572
2573 * tui/tui-stack.h (struct tui_locator_window): Derive from
2574 tui_win_info.
2575 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2576 <can_box>: New method.
2577
2578 2020-07-01 Tom Tromey <tom@tromey.com>
2579
2580 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2581
2582 2020-07-01 Tom Tromey <tom@tromey.com>
2583
2584 * tui/tui-regs.c (tui_data_window::display_registers_from)
2585 (tui_data_window::display_registers_from)
2586 (tui_data_window::first_data_item_displayed)
2587 (tui_data_window::delete_data_content_windows): Update.
2588 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2589 Remove.
2590 (tui_data_window::check_register_values): Update.
2591 (tui_data_item_window::rerender): Add parameters. Update.
2592 (tui_data_item_window::refresh_window): Remove.
2593 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2594 virtual.
2595 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2596 tui_gen_win_info.
2597 <refresh_window, max_height, min_height>: Remove.
2598 <rerender>: Add parameters.
2599 <x, y, visible>: New members.
2600 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2601 <m_item_width>: New member.
2602
2603 2020-07-01 Tom Tromey <tom@tromey.com>
2604
2605 * tui/tui-regs.c (tui_data_window::show_register_group)
2606 (tui_data_window::check_register_values): Update.
2607 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2608 from item_no.
2609
2610 2020-07-01 Tom Tromey <tom@tromey.com>
2611
2612 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2613 useless "if".
2614
2615 2020-07-01 Tom Tromey <tom@tromey.com>
2616
2617 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2618 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2619
2620 2020-07-01 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2623 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2624 (struct tui_line_or_address): Move from tui-data.h.
2625 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2626 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2627 (tui_cmd_window, tui_source_window_base, tui_source_window)
2628 (tui_disasm_window): Don't declare.
2629 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2630 to tui-winsource.h.
2631 (SINGLE_KEY): Move to tui-stack.c.
2632
2633 2020-07-01 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2636 std::string.
2637 * tui/tui-regs.c (class tab_expansion_file): New.
2638 (tab_expansion_file::write): New method.
2639 (tui_register_format): Change return type. Use
2640 tab_expansion_file.
2641 (tui_get_register, tui_data_window::display_registers_from)
2642 (tui_data_item_window::rerender): Update.
2643 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2644 * tui/tui-io.c (tui_expand_tabs): Remove.
2645
2646 2020-07-01 Tom Tromey <tom@tromey.com>
2647
2648 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2649
2650 2020-07-01 Fangrui Song <maskray@google.com>
2651
2652 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2653
2654 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2655
2656 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2657 forms for DW_AT_associated and DW_AT_allocated attributes,
2658 which is already checked in function attr_to_dynamic_prop.
2659
2660 2020-06-30 Tom Tromey <tromey@adacore.com>
2661
2662 * dwarf2/read.c (quirk_rust_enum): Correctly call
2663 alloc_rust_variant for default-less enum.
2664
2665 2020-06-30 Tom Tromey <tromey@adacore.com>
2666
2667 PR build/26183:
2668 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2669 gdb::to_string.
2670
2671 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2674 * gdbarch.h: Re-generate.
2675
2676 2020-06-28 Tom Tromey <tom@tromey.com>
2677
2678 * command.h (cmd_types): Remove.
2679 (cmd_type): Don't declare.
2680 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2681 typedef.
2682 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2683 * cli/cli-decode.c (cmd_type): Remove.
2684
2685 2020-06-27 Pedro Alves <palves@redhat.com>
2686
2687 * fork-child.c (prefork_hook): Adjust.
2688 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2689 Delete.
2690 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2691 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2692 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2693 Remove declarations.
2694 (struct inferior) <set_tty, tty>: New methods.
2695 (struct inferior) <terminal>: Rename to ...
2696 (struct inferior) <m_terminal>: ... this and make private.
2697 * main.c (captured_main_1): Adjust.
2698 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2699 (mi_cmd_inferior_tty_show): Adjust.
2700 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2701 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2702
2703 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2704
2705 * configure.ac: Add --enable-libctf: handle --disable-static
2706 properly.
2707 * acinclude.m4: sinclude ../config/enable.m4.
2708 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2709 (LIBCTF): Substitute in.
2710 (CTF_DEPS): New, likewise.
2711 (CLIBS): libctf needs symbols from libbfd: move earlier.
2712 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2713 flags.
2714 * ctfread.c: Surround in ENABLE_LIBCTF.
2715 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2716 * configure: Regenerate.
2717 * config.in: Likewise.
2718
2719 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2722
2723 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * inferior.h (struct inferior) <terminal>: Change type to
2726 gdb::unique_xmalloc_ptr<char>.
2727 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2728 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2729 field, adjust to unique pointer.
2730 (get_inferior_io_terminal): Adjust to unique pointer.
2731
2732 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2733
2734 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2735 registers, not just the known core set of registers.
2736
2737 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2740 fflags, frm, and fcsr registers.
2741 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2742 restore groups.
2743 (riscv_tdesc_unknown_reg): New function.
2744 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2745 tdesc_use_registers.
2746 * riscv-tdep.h (struct gdbarch_tdep): Add
2747 unknown_csrs_first_regnum, unknown_csrs_count,
2748 duplicate_fflags_regnum, duplicate_frm_regnum, and
2749 duplicate_fcsr_regnum fields.
2750
2751 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2752
2753 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2754 callback, use the callback (when not null) to help number unknown
2755 registers.
2756 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2757 (tdesc_use_registers): Add extra parameter to declaration.
2758
2759 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2760
2761 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2762 in the file.
2763 (class riscv_pending_register_alias): Likewise.
2764 (riscv_register_feature::register_info): Change 'required_p' field
2765 to 'required', and change its type. Add 'check' member function.
2766 (riscv_register_feature::register_info::check): Define new member
2767 function.
2768 (riscv_xreg_feature): Change initialisation of 'required' field.
2769 (riscv_freg_feature): Likewise.
2770 (riscv_virtual_feature): Likewise.
2771 (riscv_csr_feature): Likewise.
2772 (riscv_check_tdesc_feature): Take extra parameter, the csr
2773 tdesc_feature, rewrite the function to use the new
2774 riscv_register_feature::register_info::check function.
2775 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2776
2777 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * features/Makefile: Remove all references to the deleted files
2780 below.
2781 * features/riscv/32bit-csr.c: Deleted.
2782 * features/riscv/32bit-csr.xml: Deleted.
2783 * features/riscv/64bit-csr.c: Deleted.
2784 * features/riscv/64bit-csr.xml: Deleted.
2785 * features/riscv/rebuild-csr-xml.sh: Deleted.
2786
2787 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2790 whitespace error for declaration of names member variable.
2791 (struct riscv_register_feature): Add new prefer_first_name member
2792 variable, and fix whitespace error in declaration of registers.
2793 (riscv_xreg_feature): Initialize prefer_first_name field.
2794 (riscv_freg_feature): Likewise.
2795 (riscv_virtual_feature): Likewise.
2796 (riscv_csr_feature): Likewise.
2797 (riscv_register_name): Expand on comments. Remove register name
2798 modifications for CSR and virtual registers.
2799
2800 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2803 errors.
2804
2805 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2806
2807 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2808 riscv-opc.h.
2809 (class riscv_pending_register_alias): New class.
2810 (riscv_check_tdesc_feature): Take vector of pending aliases and
2811 populate it as appropriate.
2812 (riscv_setup_register_aliases): Delete.
2813 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2814 to riscv_check_tdesc_feature in all cases. Use the vector to
2815 create the register aliases.
2816
2817 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2818
2819 * sol2-tdep.c (sol2_static_transform_name): Remove.
2820 (sol2_init_abi): Don't register it.
2821 * gdbarch.sh (static_transform_name): Remove.
2822 * gdbarch.c, gdbarch.h: Regenerate.
2823
2824 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2825 gdbarch_static_transform_name.
2826 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2827 * stabsread.c (define_symbol) <'X'>: Remove.
2828 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2829 handling.
2830 <'V'>: Likewise.
2831 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2832 <'S'>: Remove call to gdbarch_static_transform_name.
2833
2834 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2835
2836 * procfs.c (procfs_pre_trace): New function.
2837 (procfs_target::create_inferior): Pass it to fork_inferior.
2838
2839 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2840
2841 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2842 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2843 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2844 sol2-tdep.o, sparc-sol2-tdep.o.
2845 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2846 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2847 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2848 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2849
2850 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2851
2852 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2853 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2854 Call sol2_init_abi.
2855 Remove calls to set_gdbarch_skip_solib_resolver,
2856 set_gdbarch_core_pid_to_str.
2857 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2858 (i386_sol2_static_transform_name): Remove.
2859 (i386_sol2_init_abi): Call sol2_init_abi.
2860 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2861 set_gdbarch_static_transform_name,
2862 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2863 Use sol2_sigtramp_p.
2864 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2865 (sol2_sigtramp_p): New function.
2866 (sol2_static_transform_name): New function.
2867 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2868 (sol2_init_abi): New function.
2869 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2870 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2871 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2872 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2873 (sparc_sol2_static_transform_name): Remove.
2874 (sparc32_sol2_init_abi): Call sol2_init_abi.
2875 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2876 set_gdbarch_static_transform_name,
2877 set_gdbarch_skip_solib_resolver,
2878 set_gdbarch_core_pid_to_str.
2879 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2880 (sparc_sol2_static_transform_name): Remove
2881 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2882 call sol2_sigtramp_p.
2883 (sparc64_sol2_init_abi): Call sol2_init_abi.
2884 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2885 set_gdbarch_static_transform_name,
2886 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2887
2888 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2889
2890 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2891 * exec.c (validate_exec_file): If from_tty, set both
2892 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2893 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2894 and from_tty, unconditionally ask a confirmation.
2895
2896 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * target-descriptions.c (tdesc_architecture_name): Protect against
2899 NULL pointer dereference.
2900 (maint_print_xml_tdesc_cmd): New function.
2901 (_initialize_target_descriptions): Register new 'maint print
2902 xml-tdesc' command and give it the filename completer.
2903 * NEWS: Mention new 'maint print xml-tdesc' command.
2904
2905 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * target-descriptions.c (class tdesc_compatible_info): New class.
2908 (struct target_desc): Change type of compatible vector.
2909 (tdesc_compatible_p): Update for change in type of
2910 target_desc::compatible.
2911 (tdesc_compatible_info_list): New function.
2912 (tdesc_compatible_info_arch_name): New function.
2913 (tdesc_add_compatible): Update for change in type of
2914 target_desc::compatible.
2915 (print_c_tdesc::visit_pre): Likewise.
2916
2917 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2920 whitespace to underscore.
2921 (maint_print_c_tdesc_cmd): Use fake filename for target
2922 descriptions that came from the target.
2923 (_initialize_target_descriptions): Add filename command completion
2924 for 'maint print c-tdesc'.
2925
2926 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2929 lines.
2930
2931 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2932
2933 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2934 lines.
2935 (dwarf2_find_location_expression): Likewise.
2936 (call_site_parameter_matches): Likewise.
2937 (dwarf2_compile_expr_to_ax): Likewise.
2938 (disassemble_dwarf_expression): Likewise.
2939 (loclist_describe_location): Likewise.
2940
2941 2020-06-23 Pedro Alves <palves@redhat.com>
2942
2943 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2944 progspace-and-thread.h. Include scoped-mock-context.h instead.
2945 (register_to_value_test): Use scoped_mock_context.
2946 * regcache.c: Include "scoped-mock-context.h".
2947 (cooked_read_test): Don't error out if a target is already pushed.
2948 Use scoped_mock_context. Adjust.
2949 * scoped-mock-context.h: New file.
2950
2951 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2954 initializer.
2955 (ada_language::is_string_type_p): New member function.
2956 * c-lang.c (c_language_data): Delete la_is_string_type_p
2957 initializer.
2958 (cplus_language_data): Likewise.
2959 (asm_language_data): Likewise.
2960 (minimal_language_data): Likewise.
2961 * d-lang.c (d_language_data): Likewise.
2962 * f-lang.c (f_is_string_type_p): Delete function, implementation
2963 moved to f_language::is_string_type_p.
2964 (f_language_data): Delete la_is_string_type_p initializer.
2965 (f_language::is_string_type_p): New member function,
2966 implementation from f_is_string_type_p.
2967 * go-lang.c (go_is_string_type_p): Delete function, implementation
2968 moved to go_language::is_string_type_p.
2969 (go_language_data): Delete la_is_string_type_p initializer.
2970 (go_language::is_string_type_p): New member function,
2971 implementation from go_is_string_type_p.
2972 * language.c (language_defn::is_string_type_p): Define new member
2973 function.
2974 (default_is_string_type_p): Make static, add comment copied from
2975 header file.
2976 (unknown_language_data): Delete la_is_string_type_p initializer.
2977 (unknown_language::is_string_type_p): New member function.
2978 (auto_language_data): Delete la_is_string_type_p initializer.
2979 (auto_language::is_string_type_p): New member function.
2980 * language.h (language_data): Delete la_is_string_type_p field.
2981 (language_defn::is_string_type_p): Declare new function.
2982 (default_is_string_type_p): Delete desclaration, move comment to
2983 definition.
2984 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2985 moved to m2_language::is_string_type_p.
2986 (m2_language_data): Delete la_is_string_type_p initializer.
2987 (m2_language::is_string_type_p): New member function,
2988 implementation from m2_is_string_type_p.
2989 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2990 initializer.
2991 * opencl-lang.c (opencl_language_data): Likewise.
2992 * p-lang.c (pascal_is_string_type_p): Delete function,
2993 implementation moved to pascal_language::is_string_type_p.
2994 (pascal_language_data): Delete la_is_string_type_p initializer.
2995 (pascal_language::is_string_type_p): New member function,
2996 implementation from pascal_is_string_type_p.
2997 * rust-lang.c (rust_is_string_type_p): Delete function,
2998 implementation moved to rust_language::is_string_type_p.
2999 (rust_language_data): Delete la_is_string_type_p initializer.
3000 (rust_language::is_string_type_p): New member function,
3001 implementation from rust_is_string_type_p.
3002 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3003 is_string_type_p.
3004
3005 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3006
3007 * ada-lang.c (ada_language_data): Delete la_print_typedef
3008 initializer.
3009 (ada_language::print_typedef): New member function.
3010 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3011 (cplus_language_data): Likewise.
3012 (asm_language_data): Likewise.
3013 (minimal_language_data): Likewise.
3014 * d-lang.c (d_language_data): Likewise.
3015 * f-lang.c (f_language_data): Likewise.
3016 (f_language::print_typedef): New member function.
3017 * go-lang.c (go_language_data): Delete la_print_typedef
3018 initializer.
3019 * language.c (language_defn::print_typedef): Define member
3020 function.
3021 (unknown_language_data): Delete la_print_typedef initializer.
3022 (unknown_language::print_typedef): New member function.
3023 (auto_language_data): Delete la_print_typedef initializer.
3024 (auto_language::print_typedef): New member function.
3025 * language.h (language_data): Delete la_print_typedef field.
3026 (language_defn::print_typedef): Declare new member function.
3027 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3028 (default_print_typedef): Delete declaration.
3029 * m2-lang.c (m2_language_data): Delete la_print_typedef
3030 initializer.
3031 (m2_language::print_typedef): New member function.
3032 * objc-lang.c (objc_language_data): Delete la_print_typedef
3033 initializer.
3034 * opencl-lang.c (opencl_language_data): Likewise.
3035 * p-lang.c (pascal_language_data): Likewise.
3036 (pascal_language::print_typedef): New member function.
3037 * rust-lang.c (rust_print_typedef): Delete function,
3038 implementation moved to rust_language::print_typedef.
3039 (rust_language): Delete la_print_typedef initializer.
3040 (rust_language::print_typedef): New member function,
3041 implementation from rust_print_typedef.
3042 * typeprint.c (default_print_typedef): Delete.
3043
3044 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3047 (ada_language::printstr): New member function.
3048 * c-lang.c (c_language_data): Delete la_printstr initializer.
3049 (cplus_language_data): Likewise.
3050 (asm_language_data): Likewise.
3051 (minimal_language_data): Likewise.
3052 * d-lang.c (d_language_data): Likewise.
3053 * f-lang.c (f_printstr): Rename to f_language::printstr.
3054 (f_language_data): Delete la_printstr initializer.
3055 (f_language::printstr): New member function, implementation from
3056 f_printstr.
3057 * go-lang.c (go_language_data): Delete la_printstr initializer.
3058 * language.c (language_defn::printstr): Define new member
3059 function.
3060 (unk_lang_printstr): Delete.
3061 (unknown_language_data): Delete la_printstr initializer.
3062 (unknown_language::printstr): New member function.
3063 (auto_language_data): Delete la_printstr initializer.
3064 (auto_language::printstr): New member function.
3065 * language.h (language_data): Delete la_printstr field.
3066 (language_defn::printstr): Declare new member function.
3067 (LA_PRINT_STRING): Update call to printstr.
3068 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3069 (m2_language_data): Delete la_printstr initializer.
3070 (m2_language::printstr): New member function, implementation from
3071 m2_printstr.
3072 * objc-lang.c (objc_language_data): Delete la_printstr
3073 initializer.
3074 * opencl-lang.c (opencl_language_data): Likewise.
3075 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3076 (pascal_language_data): Delete la_printstr initializer.
3077 (pascal_language::printstr): New member function, implementation
3078 from pascal_printstr.
3079 * p-lang.h (pascal_printstr): Delete declaration.
3080 * rust-lang.c (rust_printstr): Update header comment.
3081 (rust_language_data): Delete la_printstr initializer.
3082 (rust_language::printstr): New member function.
3083
3084 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3085
3086 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3087 (ada_language::printchar): New member function.
3088 * c-lang.c (c_language_data): Delete la_printchar initializer.
3089 (cplus_language_data): Likewise.
3090 (asm_language_data): Likewise.
3091 (minimal_language_data): Likewise.
3092 * d-lang.c (d_language_data): Likewise.
3093 * f-lang.c (f_printchar): Rename to f_language::printchar.
3094 (f_language_data): Delete la_printchar initializer.
3095 (f_language::printchar): New member function, implementation from
3096 f_printchar.
3097 * go-lang.c (go_language_data): Delete la_printchar initializer.
3098 * language.c (unk_lang_printchar): Delete.
3099 (language_defn::printchar): Define new member function.
3100 (unknown_language_data): Delete la_printchar initializer.
3101 (unknown_language::printchar): New member function.
3102 (auto_language_data): Delete la_printchar initializer.
3103 (auto_language::printchar): New member function.
3104 * language.h (language_data): Delete la_printchar field.
3105 (language_defn::printchar): Declare new member function.
3106 (LA_PRINT_CHAR): Update call to printchar.
3107 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3108 (m2_language::printchar): New member function.
3109 * objc-lang.c (objc_language_data): Delete la_printchar
3110 initializer.
3111 * opencl-lang.c (opencl_language_data): Likewise.
3112 * p-lang.c (pascal_language_data): Delete la_printchar
3113 initializer.
3114 (pascal_language::printchar): New member function.
3115 * rust-lang.c (rust_printchar): Rename to
3116 rust_language::printchar.
3117 (rust_language_data): Delete la_printchar initializer.
3118 (rust_language::printchar): New member function, implementation
3119 from rust_printchar.
3120
3121 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3122
3123 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3124 (ada_language_data): Delete la_emitchar initializer.
3125 (ada_language::emitchar): New member function, implementation from
3126 emit_char.
3127 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3128 (cplus_language_data): Likewise.
3129 (asm_language_data): Likewise.
3130 (minimal_language_data): Likewise.
3131 * d-lang.c (d_language_data): Likewise.
3132 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3133 (f_language_data): Delete la_emitchar initializer.
3134 (f_language::emitchar): New member function, implementation from
3135 f_emit_char.
3136 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3137 * language.c (unk_lang_emit_char): Delete.
3138 (language_defn::emitchar): New member function definition.
3139 (unknown_language_data): Delete la_emitchar initializer.
3140 (unknown_language::emitchar): New member function.
3141 (auto_language_data): Delete la_emitchar initializer.
3142 (auto_language::emitchar): New member function.
3143 * language.h (language_data): Delete la_emitchar field.
3144 (language_defn::emitchar): New member field declaration.
3145 (LA_EMIT_CHAR): Update call to emitchar.
3146 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3147 (m2_language_data): Delete la_emitchar initializer.
3148 (m2_language::emitchar): New member function, implementation from
3149 m2_emit_char.
3150 * objc-lang.c (objc_language_data): Delete la_emitchar
3151 initializer.
3152 * opencl-lang.c (opencl_language_data): Likewise.
3153 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3154 (pascal_language_data): Delete la_emitchar initializer.
3155 (pascal_language::emitchar): New member function, implementation
3156 from pascal_emit_char.
3157 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3158 (rust_language_data): Delete la_emitchar initializer.
3159 (rust_language::emitchar): New member function, implementation
3160 from rust_emitchar.
3161
3162 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3165 (ada_language_data): Delete la_post_parser initializer.
3166 (ada_language::post_parser): New member function.
3167 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3168 (cplus_language_data): Likewise.
3169 (asm_language_data): Likewise.
3170 (minimal_language_data): Likewise.
3171 * d-lang.c (d_language_data): Likewise.
3172 * f-lang.c (f_language_data): Likewise.
3173 * go-lang.c (go_language_data): Likewise.
3174 * language.c (unknown_language_data): Likewise.
3175 (auto_language_data): Likewise.
3176 * language.h (language_data): Delete la_post_parser field.
3177 (language_defn::post_parser): New member function.
3178 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3179 * objc-lang.c (objc_language_data): Likewise.
3180 * opencl-lang.c (opencl_language_data): Likewise.
3181 * p-lang.c (pascal_language_data): Likewise.
3182 * parse.c (parse_exp_in_context): Update call to post_parser.
3183 (null_post_parser): Delete definition.
3184 * parser-defs.h (null_post_parser): Delete declaration.
3185 * rust-lang.c (rust_language_data): Delete la_post_parser
3186 initializer.
3187
3188 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (parse): Rename to ada_language::parser.
3191 (ada_language_data): Delete la_parser initializer.
3192 (ada_language::parser): New member function, implementation from
3193 parse.
3194 * c-lang.c (c_language_data): Delete la_parser initializer.
3195 (cplus_language_data): Likewise.
3196 (asm_language_data): Likewise.
3197 (minimal_language_data): Likewise.
3198 * d-lang.c (d_language_data): Likewise.
3199 (d_language::parser): New member function.
3200 * f-lang.c (f_language_data): Delete la_parser initializer.
3201 (f_language::parser): New member function.
3202 * go-lang.c (go_language_data): Delete la_parser initializer.
3203 (go_language::parser): New member function.
3204 * language.c (unk_lang_parser): Delete.
3205 (language_defn::parser): Define new member function.
3206 (unknown_language_data): Delete la_parser initializer.
3207 (unknown_language::parser): New member function.
3208 (auto_language_data): Delete la_parser initializer.
3209 (auto_language::parser): New member function.
3210 * language.h (language_data): Delete la_parser field.
3211 (language_defn::parser): Declare new member function.
3212 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3213 (m2_language::parser): New member function.
3214 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3215 * opencl-lang.c (opencl_language_data): Likewise.
3216 * p-lang.c (pascal_language_data): Likewise.
3217 (pascal_language::parser): New member function.
3218 * parse.c (parse_exp_in_context): Update call to parser.
3219 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3220 (rust_language::parser): New member function.
3221
3222 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 * top.c (print_gdb_configuration): Print --with-python-libdir
3225 configuration value.
3226
3227 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3228
3229 * NEWS: Mention change to the alias command.
3230
3231 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3232
3233 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3234 (alias_command_completer)
3235 (make_alias_options_def_group): New functions.
3236 (alias_opts, alias_option_defs): New struct and array.
3237 (alias_usage_error): Update usage.
3238 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3239 Use option framework.
3240 (_initialize_cli_cmds): Update alias command help.
3241 Update aliases command help.
3242 (show_user):
3243 Add NULL for new default_args lookup_cmd argument.
3244 (valid_command_p): Rename to validate_aliased_command.
3245 Add NULL for new default_args lookup_cmd argument. Verify that the
3246 aliased_command has no default args.
3247 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3248 (lookup_cmd_1, lookup_cmd): New argument default_args.
3249 (add_alias_cmd):
3250 Add NULL for new default_args lookup_cmd argument.
3251 (print_help_for_command): Show default args under the layout
3252 alias some_alias = some_aliased_cmd some_alias_default_arg.
3253 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3254 xfree default_args in destructor.
3255 * cli/cli-script.c (process_next_line, do_define_command):
3256 Add NULL for new default_args lookup_cmd argument.
3257 * command.h: Declare new default_args argument in lookup_cmd
3258 and lookup_cmd_1.
3259 * completer.c (complete_line_internal_1):
3260 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3261 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3262 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3263 Likewise.
3264 * infcmd.c (_initialize_infcmd): Likewise.
3265 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3266 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3267 * python/py-param.c (add_setshow_generic): Likewise.
3268 * remote.c (_initialize_remote): Likewise.
3269 * top.c (execute_command): Prepend default_args if command has some.
3270 (set_verbose):
3271 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3272 * tracepoint.c (validate_actionline, encode_actions_1):
3273 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3274
3275 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276
3277 * jit.c (jit_read_descriptor): Use bool as the return type.
3278 (jit_breakpoint_re_set_internal): Use bool as the return type.
3279 Invert the return value logic; return true if the jit breakpoint
3280 has been successfully initialized.
3281 (jit_inferior_init): Update the call to
3282 jit_breakpoint_re_set_internal.
3283
3284 2020-06-22 Pedro Alves <palves@redhat.com>
3285
3286 PR gdb/25939
3287 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3288 Use the current inferior instead. Don't return
3289 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3290 wait again.
3291 * sol-thread.c (sol_thread_target::wait): Don't reference
3292 inferior_ptid.
3293 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3294 (sol_update_thread_list_callback): Use the current inferior's pid
3295 instead of inferior_ptid.
3296
3297 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3298
3299 * procfs.c: Cleanup many comments.
3300
3301 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3302 (AFTER_WATCHFLAG): Replace by value.
3303
3304 (MAIN_PROC_NAME_FORMAT): Inline ...
3305 (create_procinfo): ... here.
3306
3307 (procfs_debug_inferior): Remove SYS_exec handling.
3308 (syscall_is_exec): Likewise.
3309 (procfs_set_exec_trap): Likewise.
3310
3311 (syscall_is_lwp_exit): Inline in callers.
3312 (syscall_is_exit): Likewise.
3313 (syscall_is_exec): Likewise.
3314 (syscall_is_lwp_create): Likewise.
3315
3316 (invalidate_cache): Remove #if 0 code.
3317
3318 (make_signal_thread_runnable): Remove.
3319 (procfs_target::resume): Remove #if 0 code.
3320
3321 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3322
3323 PR gdb/25939
3324 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3325 call ...
3326 (procfs_target::create_inferior): ... here.
3327
3328 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3329
3330 * exec.c (validate_exec_file): Ensure the build-id is up to
3331 date by calling reopen_exec_file (that checks file timestamp
3332 to decide to re-read the file).
3333
3334 2020-06-18 Pedro Alves <palves@redhat.com>
3335
3336 PR gdb/25412
3337 * gdbthread.h (delete_thread, delete_thread_silent)
3338 (find_thread_ptid): Update comments.
3339 * thread.c (current_thread_): New global.
3340 (is_current_thread): Move higher, and reimplement.
3341 (inferior_thread): Reimplement.
3342 (set_thread_exited): Use bool. Add assertions.
3343 (add_thread_silent): Simplify thread-reuse handling by always
3344 calling delete_thread.
3345 (delete_thread): Remove intro comment.
3346 (find_thread_ptid): Skip exited threads.
3347 (switch_to_thread_no_regs): Write to current_thread_.
3348 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3349 INFERIOR_PTID. Clear current_thread_.
3350
3351 2020-06-18 Pedro Alves <palves@redhat.com>
3352
3353 * aix-thread.c (pd_update): Use switch_to_thread.
3354
3355 2020-06-18 Pedro Alves <palves@redhat.com>
3356
3357 * ravenscar-thread.c (ravenscar_thread_target): Update.
3358 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3359 (ravenscar_thread_target::add_active_thread): ... this. Don't
3360 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3361 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3362
3363 2020-06-18 Pedro Alves <palves@redhat.com>
3364
3365 * nat/windows-nat.c (current_windows_thread): Remove.
3366 * nat/windows-nat.h (current_windows_thread): Remove.
3367 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3368 Adjust.
3369 (display_selectors): Adjust to fetch the current
3370 windows_thread_info based on inferior_ptid.
3371 (fake_create_process): No longer write to current_windows_thread.
3372 (windows_nat_target::get_windows_debug_event):
3373 Don't set inferior_ptid or current_windows_thread.
3374 (windows_nat_target::wait): Adjust to not rely on
3375 current_windows_thread.
3376 (do_initial_windows_stuff): Now a method of windows_nat_target.
3377 Switch to the last_ptid thread.
3378 (windows_nat_target::attach): Adjust.
3379 (windows_nat_target::detach): Use switch_to_no_thread instead of
3380 writing to inferior_ptid directly.
3381 (windows_nat_target::create_inferior): Adjust.
3382
3383 2020-06-18 Pedro Alves <palves@redhat.com>
3384
3385 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3386
3387 2020-06-18 Pedro Alves <palves@redhat.com>
3388
3389 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3390 after creating it, instead of writing to inferior_ptid. Don't
3391 write to inferior_ptid.
3392
3393 2020-06-18 Pedro Alves <palves@redhat.com>
3394
3395 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3396
3397 2020-06-18 Pedro Alves <palves@redhat.com>
3398
3399 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3400 it, instead of writing to inferior_ptid.
3401
3402 2020-06-18 Pedro Alves <palves@redhat.com>
3403
3404 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3405 to inferior_ptid.
3406
3407 2020-06-18 Pedro Alves <palves@redhat.com>
3408
3409 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3410 instead of writing to inferior_ptid directly.
3411
3412 2020-06-18 Pedro Alves <palves@redhat.com>
3413
3414 * corelow.c (core_target::close): Use switch_to_no_thread instead
3415 of writing to inferior_ptid directly.
3416 (add_to_thread_list, core_target_open): Use switch_to_thread
3417 instead of writing to inferior_ptid directly.
3418
3419 2020-06-18 Pedro Alves <palves@redhat.com>
3420
3421 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3422 inferior_ptid.
3423 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3424 inferior_ptid.
3425 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3426 inferior_ptid directly.
3427 (darwin_nat_target::init_thread_list): Switch to thread, instead
3428 of writing to inferior_ptid.
3429 (darwin_nat_target::attach): Don't write to inferior_ptid.
3430 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3431
3432 2020-06-18 Pedro Alves <palves@redhat.com>
3433
3434 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3435 thread.
3436 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3437 Instead use switch_to_thread.
3438 (gnu_nat_target::detach): Use switch_to_no_thread
3439 instead of writing to inferior_ptid directly. Used passed-in
3440 inferior instead of looking up the inferior by pid.
3441
3442 2020-06-18 Pedro Alves <palves@redhat.com>
3443
3444 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3445 inferior_ptid.
3446
3447 2020-06-18 Pedro Alves <palves@redhat.com>
3448
3449 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3450 inferior_ptid.
3451 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3452 thread.
3453 (nto_procfs_target::detach): Avoid referencing
3454 inferior_ptid. Use switch_to_no_thread instead of writing to
3455 inferior_ptid directly.
3456 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3457 instead of writing to inferior_ptid directly.
3458 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3459 to thread.
3460
3461 2020-06-18 Pedro Alves <palves@redhat.com>
3462
3463 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3464 after creating it, instead of writing to inferior_ptid.
3465 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3466 to inferior_ptid directly.
3467 (gdbsim_target::wait): Don't write to inferior_ptid.
3468
3469 2020-06-18 Pedro Alves <palves@redhat.com>
3470
3471 * remote.c (remote_target::remote_notice_new_inferior): Use
3472 switch_to_thread instead of writing to inferior_ptid directly.
3473 (remote_target::add_current_inferior_and_thread): Use
3474 switch_to_no_thread instead of writing to inferior_ptid directly.
3475 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3476 and switch_to_thread instead of using set_current_inferior or
3477 writing to inferior_ptid directly.
3478
3479 2020-06-18 Pedro Alves <palves@redhat.com>
3480
3481 * tracectf.c (ctf_target_open): Switch to added thread instead of
3482 writing to inferior_ptid directly.
3483 (ctf_target::close): Use switch_to_no_thread instead of writing to
3484 inferior_ptid directly.
3485
3486 2020-06-18 Pedro Alves <palves@redhat.com>
3487
3488 * tracefile-tfile.c (tfile_target_open): Don't write to
3489 inferior_ptid directly, instead switch to added thread.
3490 (tfile_target::close): Use switch_to_no_thread instead of writing
3491 to inferior_ptid directly.
3492
3493 2020-06-18 Pedro Alves <palves@redhat.com>
3494
3495 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3496 (procfs_target::detach): Use switch_to_no_thread
3497 instead of writing to inferior_ptid directly.
3498 (do_attach): Change return type to void. Switch to the added
3499 thread.
3500 (procfs_target::create_inferior): Switch to the added thread.
3501 (procfs_do_thread_registers): Don't write to inferior_ptid.
3502
3503 2020-06-18 Pedro Alves <palves@redhat.com>
3504
3505 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3506 of writing to inferior_ptid.
3507 (scoped_restore_exited_inferior): Delete.
3508 (handle_vfork_child_exec_or_exit): Simplify using
3509 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3510 instead of writing to inferior_ptid.
3511 (THREAD_STOPPED_BY): Delete.
3512 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3513 (thread_stopped_by_hw_breakpoint): Delete.
3514 (save_waitstatus): Use
3515 scoped_restore_current_thread+switch_to_thread, and call
3516 target_stopped_by_watchpoint instead of
3517 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3518 instead of thread_stopped_by_sw_breakpoint, and
3519 target_stopped_by_hw_breakpoint instead of
3520 thread_stopped_by_hw_breakpoint.
3521 (handle_inferior_event)
3522 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3523 inferior_ptid directly, nor
3524 set_current_inferior/set_current_program_space. Use
3525 switch_to_thread / switch_to_inferior_no_thread instead.
3526
3527 2020-06-18 Pedro Alves <palves@redhat.com>
3528
3529 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3530 instead of writing to inferior_ptid.
3531
3532 2020-06-18 Pedro Alves <palves@redhat.com>
3533
3534 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3535 added thread.
3536 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3537 to the added thread.
3538 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3539 instead of writing to inferior_ptid.
3540
3541 2020-06-18 Pedro Alves <palves@redhat.com>
3542
3543 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3544 (register_to_value_test): Mock a program_space too. Heap-allocate
3545 the address space. Don't write to inferior_ptid. Use
3546 switch_to_thread instead.
3547
3548 2020-06-18 Pedro Alves <palves@redhat.com>
3549
3550 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3551 Delete.
3552 (find_signalled_thread()): New, factored out from
3553 linux_make_corefile_notes and adjusted to handle exited threads.
3554 (linux_make_corefile_notes): Adjust to use the new
3555 find_signalled_thread.
3556
3557 2020-06-18 Pedro Alves <palves@redhat.com>
3558
3559 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3560 of saving/restoring inferior_ptid.
3561
3562 2020-06-17 Tom Tromey <tom@tromey.com>
3563
3564 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3565 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3566 declare.
3567 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3568
3569 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3572 of partial symtabs.
3573
3574 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * regformats/reg-arm.dat: Remove.
3577 * regformats/reg-bfin.dat: Remove.
3578 * regformats/reg-cris.dat: Remove.
3579 * regformats/reg-crisv32.dat: Remove.
3580 * regformats/reg-m32r.dat: Remove.
3581 * regformats/reg-tilegx.dat: Remove.
3582 * regformats/reg-tilegx32.dat: Remove.
3583
3584 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * features/Makefile (WHICH): Remove arm files.
3587 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3588 * regformats/arm/arm-with-neon.dat: Remove.
3589 * regformats/arm/arm-with-vfpv2.dat: Remove.
3590 * regformats/arm/arm-with-vfpv3.dat: Remove.
3591
3592 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * features/Makefile (XMLTOC): Remove rx.xml.
3595
3596 2020-06-17 Pedro Alves <palves@redhat.com>
3597
3598 * gdbthread.h (thread_control_state) <trap_expected> Update
3599 comments.
3600
3601 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3602
3603 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3604 ada_language::lookup_symbol_nonlocal.
3605 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3606 (ada_language::lookup_symbol_nonlocal): New member function,
3607 implementation from ada_lookup_symbol_nonlocal.
3608 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3609 initializer.
3610 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3611 initializer.
3612 (cplus_language::lookup_symbol_nonlocal): New member function.
3613 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3614 (minimal_language_data) Likewise.
3615 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3616 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3617 initializer.
3618 (d_language::lookup_symbol_nonlocal): New member function.
3619 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3620 initializer.
3621 (f_language::lookup_symbol_nonlocal): New member function.
3622 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3623 initializer.
3624 * language.c (unknown_language_data): Likewise.
3625 (auto_language_data): Likewise.
3626 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3627 field.
3628 (language_defn::lookup_symbol_nonlocal): New member function.
3629 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3630 initializer.
3631 * objc-lang.c (objc_language_data): Likewise.
3632 * opencl-lang.c (opencl_language_data): Likewise.
3633 * p-lang.c (pascal_language_data): Likewise.
3634 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3635 rust_language::lookup_symbol_nonlocal.
3636 (rust_language_data): Delete la_lookup_symbol_nonlocal
3637 initializer.
3638 (rust_language::lookup_symbol_nonlocal): New member function,
3639 implementation from rust_lookup_symbol_nonlocal.
3640 * symtab.c (lookup_symbol_aux): Update call to
3641 lookup_symbol_nonlocal.
3642 (basic_lookup_symbol_nonlocal): Rename to...
3643 (language_defn::lookup_symbol_nonlocal): ...this, and update
3644 header comment. Remove language_defn parameter, and replace with
3645 uses of `this'.
3646 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3647
3648 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3651 initializer.
3652 (ada_language::value_print_inner): New member function.
3653 * c-lang.c (c_language_data): Delete la_value_print_inner
3654 initializer.
3655 (cplus_language_data): Likewise.
3656 (asm_language_data): Likewise.
3657 (minimal_language_data): Likewise.
3658 * d-lang.c (d_language_data): Likewise.
3659 (d_language::value_print_inner): New member function.
3660 * f-lang.c (f_language_data): Delete la_value_print_inner
3661 initializer.
3662 (f_language::value_print_inner): New member function.
3663 * f-lang.h (f_value_print_innner): Rename to...
3664 (f_value_print_inner): ...this (note spelling of 'inner').
3665 * f-valprint.c (f_value_print_innner): Rename to...
3666 (f_value_print_inner): ...this (note spelling of 'inner').
3667 * go-lang.c (go_language_data): Delete la_value_print_inner
3668 initializer.
3669 (go_language::value_print_inner): New member function.
3670 * language.c (language_defn::value_print_inner): Define new member
3671 function.
3672 (unk_lang_value_print_inner): Delete.
3673 (unknown_language_data): Delete la_value_print_inner initializer.
3674 (unknown_language::value_print_inner): New member function.
3675 (auto_language_data): Delete la_value_print_inner initializer.
3676 (auto_language::value_print_inner): New member function.
3677 * language.h (language_data): Delete la_value_print_inner field.
3678 (language_defn::value_print_inner): Delcare new member function.
3679 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3680 initializer.
3681 (m2_language::value_print_inner): New member function.
3682 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3683 initializer.
3684 * opencl-lang.c (opencl_language_data): Likewise.
3685 * p-lang.c (pascal_language_data): Likewise.
3686 (pascal_language::value_print_inner): New member function.
3687 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3688 initializer.
3689 (rust_language::value_print_inner): New member function.
3690 * valprint.c (do_val_print): Update call to value_print_inner.
3691
3692 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3693
3694 * ada-lang.c (ada_language_data): Delete la_value_print
3695 initializer.
3696 (ada_language::value_print): New member function.
3697 * c-lang.c (c_language_data): Delete la_value_print initializer.
3698 (cplus_language_data): Likewise.
3699 (asm_language_data): Likewise.
3700 (minimal_language_data): Likewise.
3701 * d-lang.c (d_language_data): Likewise.
3702 * f-lang.c (f_language_data): Likewise.
3703 * go-lang.c (go_language_data): Likewise.
3704 * language.c (unk_lang_value_print): Delete.
3705 (language_defn::value_print): Define new member function.
3706 (unknown_language_data): Delete la_value_print initializer.
3707 (unknown_language::value_print): New member function.
3708 (auto_language_data): Delete la_value_print initializer.
3709 (auto_language::value_print): New member function.
3710 * language.h (language_data): Delete la_value_print field.
3711 (language_defn::value_print): Declare new member function.
3712 (LA_VALUE_PRINT): Update call to value_print.
3713 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3714 * objc-lang.c (objc_language_data): Likewise.
3715 * opencl-lang.c (opencl_language_data): Likewise.
3716 * p-lang.c (pascal_language_data): Likewise.
3717 (pascal_language::value_print): New member function.
3718 * rust-lang.c (rust_language_data): Delete la_value_print
3719 initializer.
3720
3721 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3722
3723 * ada-lang.c (ada_watch_location_expression): Rename to
3724 ada_language::watch_location_expression.
3725 (ada_language_data): Delete la_watch_location_expression
3726 initializer.
3727 (ada_language::watch_location_expression): New member function,
3728 implementation from ada_watch_location_expression.
3729 * breakpoint.c (watch_command_1): Update call to
3730 watch_location_expression.
3731 * c-lang.c (c_watch_location_expression): Rename to
3732 language_defn::watch_location_expression.
3733 (c_language_data): Delete la_watch_location_expression
3734 initializer.
3735 (cplus_language_data): Likewise.
3736 (asm_language_data): Likewise.
3737 (minimal_language_data): Likewise.
3738 * c-lang.h (c_watch_location_expression): Delete declaration.
3739 * d-lang.c (d_language_data): Delete la_watch_location_expression
3740 initializer.
3741 * f-lang.c (f_language_data): Likewise.
3742 * go-lang.c (go_language_data): Likewise.
3743 * language.c (language_defn::watch_location_expression): Member
3744 function implementation from c_watch_location_expression.
3745 (unknown_language_data): Delete la_watch_location_expression
3746 initializer.
3747 (auto_language_data): Likewise.
3748 * language.h (language_data): Delete la_watch_location_expression
3749 field.
3750 (language_defn::watch_location_expression): Declare new member
3751 function.
3752 * m2-lang.c (m2_language_data): Delete
3753 la_watch_location_expression initializer.
3754 * objc-lang.c (objc_language_data): Likewise.
3755 * opencl-lang.c (opencl_language_data): Likewise.
3756 * p-lang.c (pascal_language_data): Likewise.
3757 * rust-lang.c (rust_watch_location_expression): Rename to
3758 rust_language::watch_location_expression.
3759 (rust_language_data): Delete la_watch_location_expression
3760 initializer.
3761 (rust_language::watch_location_expression): New member function,
3762 implementation from rust_watch_location_expression.
3763
3764 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3767 ada_language::collect_symbol_completion_matches.
3768 (ada_language_data): Delete la_collect_symbol_completion_matches
3769 initializer.
3770 (ada_language::collect_symbol_completion_matches): New member
3771 function, implementation from
3772 ada_collect_symbol_completion_matches.
3773 * c-lang.c (c_language_data): Delete
3774 la_collect_symbol_completion_matches initializer.
3775 (cplus_language_data): Likewise.
3776 (asm_language_data): Likewise.
3777 (minimal_language_data): Likewise.
3778 * d-lang.c (d_language_data): Likewise.
3779 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3780 f_language::collect_symbol_completion_matches.
3781 (f_language_data): Delete la_collect_symbol_completion_matches
3782 initializer.
3783 (f_language::collect_symbol_completion_matches) New member
3784 function, implementation from f_collect_symbol_completion_matches.
3785 * go-lang.c (go_language_data): Delete
3786 la_collect_symbol_completion_matches initializer.
3787 * language.c (unknown_language_data): Likewise.
3788 (auto_language_data): Likewise.
3789 * language.h (language_data): Delete
3790 la_collect_symbol_completion_matches field.
3791 (language_defn::collect_symbol_completion_matches): New member
3792 function.
3793 * m2-lang.c (m2_language_data): Delete
3794 la_collect_symbol_completion_matches initializer.
3795 * objc-lang.c (objc_language_data): Likewise.
3796 * opencl-lang.c (opencl_language_data): Likewise.
3797 * p-lang.c (pascal_language_data): Likewise.
3798 * rust-lang.c (rust_language_data): Likewise.
3799 * symtab.c (default_collect_symbol_completion_matches): Delete.
3800 (collect_symbol_completion_matches): Update call to
3801 collect_symbol_completion_matches.
3802 (collect_symbol_completion_matches_type): Likewise.
3803 * symtab.h (default_collect_symbol_completion_matches): Delete
3804 declaration.
3805
3806 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3809 (ada_language_data): Delete la_word_break_characters initializer.
3810 (ada_language::word_break_characters): New member function.
3811 * c-lang.c (c_language_data): Delete la_word_break_characters
3812 initializer.
3813 (cplus_language_data): Likewise.
3814 (asm_language_data): Likewise.
3815 (minimal_language_data): Likewise.
3816 * completer.c: Update global comment.
3817 (advance_to_expression_complete_word_point): Update call to
3818 word_break_characters.
3819 (complete_files_symbols): Likewise.
3820 (complete_line_internal_1): Likewise.
3821 (default_completer_handle_brkchars): Likewise.
3822 (skip_quoted_chars): Likewise.
3823 * d-lang.c (d_language_data): Delete la_word_break_characters
3824 initializer.
3825 * f-lang.c (f_word_break_characters): Delete.
3826 (f_language_data): Delete la_word_break_characters initializer.
3827 (f_language::word_break_characters): New member function.
3828 * go-lang.c (go_language_data): Delete la_word_break_characters
3829 initializer.
3830 * language.c (unknown_language_data): Likewise.
3831 (auto_language_data): Likewise.
3832 * language.h (default_word_break_characters): Move declaration to
3833 earlier in the file.
3834 (language_data): Delete la_word_break_characters field.
3835 (language_defn::word_break_characters): New member function.
3836 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3837 initializer.
3838 * objc-lang.c (objc_language_data): Likewise.
3839 * opencl-lang.c (opencl_language_data): Likewise.
3840 * p-lang.c (pascal_language_data): Likewise.
3841 * rust-lang.c (rust_language_data): Likewise.
3842
3843 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3844
3845 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3846 (ada_language_data): Delete la_get_symbol_name_matcher
3847 initializer.
3848 (language_defn::get_symbol_name_matcher_inner): New member
3849 function.
3850 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3851 initializer.
3852 (cplus_language_data): Likewise.
3853 (cplus_language::get_symbol_name_matcher_inner): New member
3854 function.
3855 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3856 (minimal_language_data): Likewise.
3857 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3858 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3859 initializer.
3860 * dictionary.c (iter_match_first_hashed): Update call to
3861 get_symbol_name_matcher.
3862 (iter_match_next_hashed): Likewise.
3863 (iter_match_next_linear): Likewise.
3864 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3865 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3866 initializer.
3867 (f_language::get_symbol_name_matcher_inner): New member function.
3868 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3869 initializer.
3870 * language.c (default_symbol_name_matcher): Update header comment,
3871 make static.
3872 (language_defn::get_symbol_name_matcher): New definition.
3873 (language_defn::get_symbol_name_matcher_inner): Likewise.
3874 (get_symbol_name_matcher): Delete.
3875 (unknown_language_data): Delete la_get_symbol_name_matcher
3876 initializer.
3877 (auto_language_data): Likewise.
3878 * language.h (language_data): Delete la_get_symbol_name_matcher
3879 field.
3880 (language_defn::get_symbol_name_matcher): New member function.
3881 (language_defn::get_symbol_name_matcher_inner): Likewise.
3882 (default_symbol_name_matcher): Delete declaration.
3883 * linespec.c (find_methods): Update call to
3884 get_symbol_name_matcher.
3885 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3886 initializer.
3887 * minsyms.c (lookup_minimal_symbol): Update call to
3888 get_symbol_name_matcher.
3889 (iterate_over_minimal_symbols): Likewise.
3890 * objc-lang.c (objc_language_data): Delete
3891 la_get_symbol_name_matcher initializer.
3892 * opencl-lang.c (opencl_language_data): Likewise.
3893 * p-lang.c (pascal_language_data): Likewise.
3894 * psymtab.c (psymbol_name_matches): Update call to
3895 get_symbol_name_matcher.
3896 * rust-lang.c (rust_language_data): Delete
3897 la_get_symbol_name_matcher initializer.
3898 * symtab.c (symbol_matches_search_name): Update call to
3899 get_symbol_name_matcher.
3900 (compare_symbol_name): Likewise.
3901
3902 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * ada-lang.c (ada_language_data): Delete la_compute_program
3905 initializer.
3906 * c-lang.c (c_language_data): Likewise.
3907 (c_language::compute_program): New member function.
3908 (cplus_language_data): Delete la_compute_program initializer.
3909 (cplus_language::compute_program): New member function.
3910 (asm_language_data): Delete la_compute_program initializer.
3911 (minimal_language_data): Likewise.
3912 * c-lang.h (c_compute_program): Update comment.
3913 (cplus_compute_program): Likewise.
3914 * compile/compile-c-support.c (c_compute_program): Likewise.
3915 (cplus_compute_program): Likewise.
3916 * compile/compile.c (compile_to_object): Update call to
3917 la_compute_program.
3918 * d-lang.c (d_language_data): Delete la_compute_program
3919 initializer.
3920 * f-lang.c (f_language_data): Likewise.
3921 * go-lang.c (go_language_data): Likewise.
3922 * language.c (unknown_language_data): Likewise.
3923 (auto_language_data): Likewise.
3924 * language.h (language_data): Delete la_compute_program field.
3925 (language_defn::compute_program): New member function.
3926 * m2-lang.c (m2_language_data): Delete la_compute_program
3927 initializer.
3928 * objc-lang.c (objc_language_data): Likewise.
3929 * opencl-lang.c (opencl_language_data): Likewise.
3930 * p-lang.c (pascal_language_data): Likewise.
3931 * rust-lang.c (rust_language_data): Likewise.
3932
3933 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * ada-lang.c (ada_language_data) Delete
3936 la_class_name_from_physname initializer.
3937 * c-lang.c (c_language_data): Likewise.
3938 (cplus_language_data): Likewise.
3939 (cplus_language::class_name_from_physname): New member function.
3940 (asm_language_data): Delete la_class_name_from_physname
3941 initializer.
3942 (minimal_language_data): Likewise.
3943 * d-lang.c (d_language_data): Likewise.
3944 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3945 method on language_defn class.
3946 (guess_full_die_structure_name): Likewise.
3947 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3948 initializer.
3949 * go-lang.c (go_language_data): Likewise.
3950 * language.c (language_class_name_from_physname): Delete.
3951 (unk_lang_class_name): Delete.
3952 (unknown_language_data): Delete la_class_name_from_physname
3953 initializer.
3954 (auto_language_data): Likewise.
3955 * language.h (language_data): Delete la_class_name_from_physname
3956 field.
3957 (language_defn::class_name_from_physname): New function.
3958 (language_class_name_from_physname): Delete declaration.
3959 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3960 initializer.
3961 * objc-lang.c (objc_language_data): Likewise.
3962 * opencl-lang.c (opencl_language_data): Likewise.
3963 * p-lang.c (pascal_language_data): Likewise.
3964 * rust-lang.c (rust_language_data): Likewise.
3965
3966 2020-06-16 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-data.h (STATUS_NAME): New macro.
3969 * tui/tui-layout.c (tui_remove_some_windows)
3970 (initialize_known_windows, tui_register_window)
3971 (tui_layout_split::remove_windows, initialize_layouts)
3972 (tui_new_layout_command): Don't use hard-coded window names.
3973
3974 2020-06-16 Tom Tromey <tom@tromey.com>
3975
3976 PR tui/25348:
3977 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3978 tui_initialize_readline. Only run once. Call rl_initialize.
3979 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3980 tui_initialize_readline.
3981 * tui/tui-io.c (tui_setup_io): Call
3982 tui_ensure_readline_initialized.
3983 * tui/tui-interp.c (tui_interp::init): Update.
3984
3985 2020-06-16 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3988 Also preserve the status window.
3989
3990 2020-06-16 Tom Tromey <tom@tromey.com>
3991
3992 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3993 where m_window==nullptr.
3994
3995 2020-06-15 Tom Tromey <tromey@adacore.com>
3996
3997 * windows-nat.c (windows_nat::handle_output_debug_string):
3998 Update.
3999 (windows_nat::handle_ms_vc_exception): Update.
4000 * target.h (target_read_string): Change API.
4001 * target.c (target_read_string): Change API.
4002 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4003 Update.
4004 * solib-frv.c (frv_current_sos): Update.
4005 * solib-dsbt.c (dsbt_current_sos): Update.
4006 * solib-darwin.c (darwin_current_sos): Update.
4007 * linux-thread-db.c (inferior_has_bug): Update.
4008 * expprint.c (print_subexp_standard): Update.
4009 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4010 (ada_exception_message_1): Update.
4011
4012 2020-06-15 Tom Tromey <tromey@adacore.com>
4013
4014 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4015
4016 2020-06-15 Tom Tromey <tromey@adacore.com>
4017
4018 * valprint.c (read_string): Update comment.
4019 * target.c (MIN): Remove.
4020 (target_read_string): Rewrite.
4021
4022 2020-06-15 Tom Tromey <tromey@adacore.com>
4023
4024 * corefile.c (read_memory_string): Remove.
4025 * ada-valprint.c (ada_value_print_ptr): Update.
4026 * ada-lang.h (ada_tag_name): Change return type.
4027 * ada-lang.c (type_from_tag): Update.
4028 (ada_tag_name_from_tsd): Change return type. Use
4029 target_read_string.
4030 (ada_tag_name): Likewise.
4031 * gdbcore.h (read_memory_string): Don't declare.
4032
4033 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4034
4035 * symtab.c (rbreak_command): Ignore Windows drive colon.
4036
4037 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * NEWS: Mention removed GDBserver host support.
4040
4041 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4042
4043 * features/riscv/rebuild-csr-xml.sh: Updated.
4044
4045 2020-06-11 Tom Tromey <tom@tromey.com>
4046
4047 PR gdb/18318:
4048 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4049
4050 2020-06-09 Jonny Grant <jg@jguk.org>
4051 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4052
4053 * main.c (captured_main_1): Don't print new line after help.
4054 (print_gdb_help): add mailing list and IRC channel information
4055 to --help. Add new lines between items in the footer. Remove
4056 quotes around bug url.
4057
4058 2020-06-11 Keith Seitz <keiths@redhat.com>
4059
4060 PR gdb/21356
4061 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4062 Resolve typedefs for type length calculations.
4063
4064 2020-06-10 Tom de Vries <tdevries@suse.de>
4065
4066 PR ada/24713
4067 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4068 (write_psymbols): Enable .gdb_index for ada.
4069 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4070 ada.
4071
4072 2020-06-10 Tom de Vries <tdevries@suse.de>
4073
4074 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4075 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4076 namei" instead of "const char *name" argument.
4077 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4078 dw2_symtab_iter_init.
4079
4080 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4081
4082 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4083 to use type::field and field::type instead.
4084
4085 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4088 to use field::type instead.
4089
4090 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4091
4092 * gdbtypes.h (struct field) <type, set_type>: New methods.
4093 Rename `type` field to...
4094 <m_type>: ... this. Change references throughout to use type or
4095 set_type methods.
4096 (FIELD_TYPE): Use field::type. Change call sites that modify
4097 the field's type to use field::set_type instead.
4098
4099 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4100
4101 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4102 to use type::index_type instead.
4103
4104 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4107 methods.
4108 (TYPE_INDEX_TYPE): Use type::index_type.
4109 * gdbtypes.c (create_array_type_with_stride): Likewise.
4110
4111 2020-06-07 Tom Tromey <tom@tromey.com>
4112
4113 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4114 parameter.
4115 (generic_value_print): Update.
4116
4117 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 Revert commit 982a38f60b0.
4120 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4121
4122 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4125 avoid use after free.
4126
4127 2020-06-05 Tom de Vries <tdevries@suse.de>
4128
4129 * NEWS: Fix typos.
4130
4131 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4134 the per_bfd object.
4135 (dwarf2_read_debug_names): Likewise.
4136 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4137 object when re-using a per_bfd object with an index.
4138
4139 2020-06-03 Tom de Vries <tdevries@suse.de>
4140
4141 PR symtab/26046
4142 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4143 children for C++.
4144 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4145 DW_TAG_subprogram.
4146
4147 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4148
4149 * ada-lang.c (ada_language_data): Delete skip_trampoline
4150 initializer.
4151 * c-lang.c (c_language_data): Likewise.
4152 (cplus_language_data): Likewise.
4153 (cplus_language::skip_trampoline): New member function.
4154 (asm_language_data): Delete skip_trampoline initializer.
4155 (minimal_language_data): Likewise.
4156 * d-lang.c (d_language_data): Likewise.
4157 * f-lang.c (f_language_data): Likewise.
4158 * go-lang.c (go_language_data): Likewise.
4159 * language.c (unk_lang_trampoline): Delete function.
4160 (skip_language_trampoline): Update.
4161 (unknown_language_data): Delete skip_trampoline initializer.
4162 (auto_language_data): Likewise.
4163 * language.h (language_data): Delete skip_trampoline field.
4164 (language_defn::skip_trampoline): New function.
4165 * m2-lang.c (m2_language_data): Delete skip_trampoline
4166 initializer.
4167 * objc-lang.c (objc_skip_trampoline): Delete function, move
4168 implementation to objc_language::skip_trampoline.
4169 (objc_language_data): Delete skip_trampoline initializer.
4170 (objc_language::skip_trampoline): New member function with
4171 implementation from objc_skip_trampoline.
4172 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4173 initializer.
4174 * p-lang.c (pascal_language_data): Likewise.
4175 * rust-lang.c (rust_language_data): Likewise.
4176
4177 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4180 (ada_language::demangle): New member function.
4181 * c-lang.c (c_language_data): Delete la_demangle initializer.
4182 (cplus_language_data): Delete la_demangle initializer.
4183 (cplus_language::demangle): New member function.
4184 (asm_language_data): Delete la_demangle initializer.
4185 (minimal_language_data): Delete la_demangle initializer.
4186 * d-lang.c (d_language_data): Delete la_demangle initializer.
4187 (d_language::demangle): New member function.
4188 * f-lang.c (f_language_data): Delete la_demangle initializer.
4189 (f_language::demangle): New member function.
4190 * go-lang.c (go_language_data): Delete la_demangle initializer.
4191 (go_language::demangle): New member function.
4192 * language.c (language_demangle): Update.
4193 (unk_lang_demangle): Delete.
4194 (unknown_language_data): Delete la_demangle initializer.
4195 (unknown_language::demangle): New member function.
4196 (auto_language_data): Delete la_demangle initializer.
4197 (auto_language::demangle): New member function.
4198 * language.h (language_data): Delete la_demangle field.
4199 (language_defn::demangle): New function.
4200 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4201 * objc-lang.c (objc_language_data): Delete la_demangle
4202 initializer.
4203 (objc_language::demangle): New member function.
4204 * opencl-lang.c (opencl_language_data): Delete la_demangle
4205 initializer.
4206 * p-lang.c (pascal_language_data): Likewise.
4207 * rust-lang.c (rust_language_data): Likewise.
4208 (rust_language::demangle): New member function.
4209
4210 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4211
4212 * ada-lang.c (ada_language_data): Delete la_print_type
4213 initializer.
4214 (ada_language::print_type): New member function.
4215 * c-lang.c (c_language_data): Delete la_print_type initializer.
4216 (c_language::print_type): New member function.
4217 (cplus_language_data): Delete la_print_type initializer.
4218 (cplus_language::print_type): New member function.
4219 (asm_language_data): Delete la_print_type initializer.
4220 (asm_language::print_type): New member function.
4221 (minimal_language_data): Delete la_print_type initializer.
4222 (minimal_language::print_type): New member function.
4223 * d-lang.c (d_language_data): Delete la_print_type initializer.
4224 (d_language::print_type): New member function.
4225 * f-lang.c (f_language_data): Delete la_print_type initializer.
4226 (f_language::print_type): New member function.
4227 * go-lang.c (go_language_data): Delete la_print_type initializer.
4228 (go_language::print_type): New member function.
4229 * language.c (unk_lang_print_type): Delete.
4230 (unknown_language_data): Delete la_print_type initializer.
4231 (unknown_language::print_type): New member function.
4232 (auto_language_data): Delete la_print_type initializer.
4233 (auto_language::print_type): New member function.
4234 * language.h (language_data): Delete la_print_type field.
4235 (language_defn::print_type): New function.
4236 (LA_PRINT_TYPE): Update.
4237 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4238 (m2_language::print_type): New member function.
4239 * objc-lang.c (objc_language_data): Delete la_print_type
4240 initializer.
4241 (objc_language::print_type): New member function.
4242 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4243 to opencl_language::print_type.
4244 (opencl_language_data): Delete la_print_type initializer.
4245 (opencl_language::print_type): New member function, implementation
4246 from opencl_print_type.
4247 * p-lang.c (pascal_language_data): Delete la_print_type
4248 initializer.
4249 (pascal_language::print_type): New member function.
4250 * rust-lang.c (rust_print_type): Delete, implementation moved to
4251 rust_language::print_type.
4252 (rust_language_data): Delete la_print_type initializer.
4253 (rust_language::print_type): New member function, implementation
4254 from rust_print_type.
4255
4256 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4259 implementation moves to...
4260 (ada_language::sniff_from_mangled_name): ...here. Update return
4261 type.
4262 (ada_language_data): Delete la_sniff_from_mangled_name
4263 initializer.
4264 * c-lang.c (c_language_data): Likewise.
4265 (cplus_language_data): Likewise.
4266 (cplus_language::sniff_from_mangled_name): New member function,
4267 implementation taken from gdb_sniff_from_mangled_name.
4268 (asm_language_data): Delete la_sniff_from_mangled_name
4269 initializer.
4270 (minimal_language_data): Likewise.
4271 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4272 implementation moves to cplus_language::sniff_from_mangled_name.
4273 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4274 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4275 moves to...
4276 (d_language::sniff_from_mangled_name): ...here.
4277 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4278 * f-lang.c (f_language_data): Likewise.
4279 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4280 moves to...
4281 (go_language::sniff_from_mangled_name): ...here.
4282 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4283 * language.c (language_sniff_from_mangled_name): Delete.
4284 (unknown_language_data): Delete la_sniff_from_mangled_name
4285 initializer.
4286 (auto_language_data): Likewise.
4287 * language.h (language_data): Delete la_sniff_from_mangled_name
4288 field.
4289 (language_defn::sniff_from_mangled_name): New function.
4290 (language_sniff_from_mangled_name): Delete declaration.
4291 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4292 field.
4293 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4294 implementation moves to...
4295 (objc_language::sniff_from_mangled_name): ...here.
4296 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4297 * opencl-lang.c (opencl_language_data): Likewise.
4298 * p-lang.c (pascal_language_data): Likewise.
4299 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4300 implementation moves to...
4301 (rust_language::sniff_from_mangled_name): ...here.
4302 (rust_language_data): Delete la_sniff_from_mangled_name
4303 initializer.
4304 * symtab.c (symbol_find_demangled_name): Call
4305 sniff_from_mangled_name member function.
4306
4307 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4310 initializer.
4311 * c-lang.c (c_language_data): Likewise.
4312 (cplus_language_data): Likewise.
4313 (cplus_language::search_name_hash): New member function.
4314 (asm_language_data): Delete la_search_name_hash initializer.
4315 (minimal_language_data): Likewise.
4316 * d-lang.c (d_language_data): Likewise.
4317 * dictionary.c (default_search_name_hash): Rename to...
4318 (language_defn::search_name_hash): ...this.
4319 * f-lang.c (f_language_data): Likewise.
4320 (f_language::search_name_hash): New member function.
4321 * go-lang.c (go_language_data): Delete la_search_name_hash
4322 initializer.
4323 * language.c (unknown_language_data): Likewise.
4324 (auto_language_data): Likewise.
4325 * language.h (struct language_data): Delete la_search_name_hash
4326 field.
4327 (language_defn::search_name_hash): Declare new member function.
4328 (default_search_name_hash): Delete declaration.
4329 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4330 initializer.
4331 * objc-lang.c (objc_language_data): Likewise.
4332 * opencl-lang.c (opencl_language_data): Likewise.
4333 * p-lang.c (pascal_language_data): Likewise.
4334 * rust-lang.c (rust_language_data): Likewise.
4335 * symtab.c (search_name_hash): Update call.
4336
4337 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4340 initializer.
4341 * c-lang.c (class compile_instance): Declare.
4342 (c_language_data): Delete la_get_compile_instance initializer.
4343 (c_language::get_compile_instance): New member function.
4344 (cplus_language_data): Delete la_get_compile_instance initializer.
4345 (cplus_language::get_compile_instance): New member function.
4346 (asm_language_data): Delete la_get_compile_instance initializer.
4347 (minimal_language_data): Likewise.
4348 * c-lang.h (c_get_compile_context): Update comment.
4349 (cplus_get_compile_context): Update comment.
4350 * compile/compile.c (compile_to_object): Update calls, don't rely
4351 on function pointer being NULL.
4352 * d-lang.c (d_language_data): Delete la_get_compile_instance
4353 initializer.
4354 * f-lang.c (f_language_data): Likewise.
4355 * go-lang.c (go_language_data): Likewise.
4356 * language.c (unknown_language_data): Likewise.
4357 (auto_language_data): Likewise.
4358 * language.h (language_data): Delete la_get_compile_instance field.
4359 (language_defn::get_compile_instance): New member function.
4360 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4361 initializer.
4362 * objc-lang.c (objc_language_data): Likewise.
4363 * opencl-lang.c (opencl_language_data): Likewise.
4364 * p-lang.c (pascal_language_data): Likewise.
4365 * rust-lang.c (rust_language_data): Likewise.
4366
4367 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4368
4369 * ada-lang.c (ada_add_all_symbols): Update comment.
4370 (ada_iterate_over_symbols): Delete, move implementation to...
4371 (ada_language::iterate_over_symbols): ...here, a new member
4372 function, rewrite to use range based for loop.
4373 (ada_language_data): Delete la_iterate_over_symbols initializer.
4374 * c-lang.c (c_language_data): Likewise.
4375 (cplus_language_data): Likewise.
4376 (asm_language_data): Likewise.
4377 (minimal_language_data): Likewise.
4378 * d-lang.c (d_language_data): Likewise.
4379 * f-lang.c (f_language_data): Likewise.
4380 * go-lang.c (go_language_data): Likewise.
4381 * language.c (unknown_language_data): Likewise.
4382 (auto_language_data): Likewise.
4383 * language.h (language_data): Delete la_iterate_over_symbols field.
4384 (language_defn::iterate_over_symbols): New member function.
4385 (LA_ITERATE_OVER_SYMBOLS): Update.
4386 * linespec.c (iterate_over_all_matching_symtabs): Update.
4387 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4388 initializer.
4389 * objc-lang.c (objc_language_data): Likewise.
4390 * opencl-lang.c (opencl_language_data): Likewise.
4391 * p-lang.c (pascal_language_data): Likewise.
4392 * rust-lang.c (rust_language_data): Likewise.
4393
4394 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * ada-lang.c (ada_language_data): Delete
4397 la_lookup_transparent_type initializer.
4398 * c-lang.c (c_language_data): Likewise.
4399 (cplus_language_data): Likewise.
4400 (cplus_language::lookup_transparent_type): New member function.
4401 (asm_language_data): Delete la_lookup_transparent_type
4402 initializer.
4403 (minimal_language_data): Likewise.
4404 * d-lang.c (d_language_data): Likewise.
4405 * f-lang.c (f_language_data): Likewise.
4406 * go-lang.c (go_language_data): Likewise.
4407 * language.c (unknown_language_data): Likewise.
4408 (auto_language_data): Likewise.
4409 * language.h (struct language_data): Delete
4410 la_lookup_transparent_type field.
4411 (language_defn::lookup_transparent_type): New member function.
4412 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4413 initializer.
4414 * objc-lang.c (objc_language_data): Likewise.
4415 * opencl-lang.c (opencl_language_data): Likewise.
4416 * p-lang.c (pascal_language_data): Likewise.
4417 * rust-lang.c (rust_language_data): Likewise.
4418 * symtab.c (symbol_matches_domain): Update call.
4419
4420 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4421
4422 * ada-lang.c (ada_language_arch_info): Delete function, move
4423 implementation to...
4424 (ada_language::language_arch_info): ...here, a new member
4425 function.
4426 (ada_language_data): Delete la_language_arch_info.
4427 * c-lang.c (c_language_data): Likewise.
4428 (c_language::language_arch_info): New member function.
4429 (cplus_language_arch_info): Delete function, move
4430 implementation to...
4431 (cplus_language::language_arch_info): ...here, a new member
4432 function.
4433 (cplus_language_data): Delete la_language_arch_info.
4434 (asm_language_data): Likewise.
4435 (asm_language::language_arch_info): New member function.
4436 (minimal_language_data): Delete la_language_arch_info.
4437 (minimal_language::language_arch_info): New member function.
4438 * d-lang.c (d_language_arch_info): Delete function, move
4439 implementation to...
4440 (d_language::language_arch_info): ...here, a new member
4441 function.
4442 (d_language_data): Delete la_language_arch_info.
4443 * f-lang.c (f_language_arch_info): Delete function, move
4444 implementation to...
4445 (f_language::language_arch_info): ...here, a new member
4446 function.
4447 (f_language_data): Delete la_language_arch_info.
4448 * go-lang.c (go_language_arch_info): Delete function, move
4449 implementation to...
4450 (go_language::language_arch_info): ...here, a new member
4451 function.
4452 (go_language_data): Delete la_language_arch_info.
4453 * language.c (unknown_language_data): Likewise.
4454 (unknown_language::language_arch_info): New member function.
4455 (auto_language_data): Delete la_language_arch_info.
4456 (auto_language::language_arch_info): New member function.
4457 (language_gdbarch_post_init): Update call to
4458 la_language_arch_info.
4459 * language.h (language_data): Delete la_language_arch_info
4460 function pointer.
4461 (language_defn::language_arch_info): New function.
4462 * m2-lang.c (m2_language_arch_info): Delete function, move
4463 implementation to...
4464 (m2_language::language_arch_info): ...here, a new member
4465 function.
4466 (m2_language_data): Delete la_language_arch_info.
4467 * objc-lang.c (objc_language_arch_info): Delete function, move
4468 implementation to...
4469 (objc_language::language_arch_info): ...here, a new member
4470 function.
4471 (objc_language_data): Delete la_language_arch_info.
4472 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4473 implementation to...
4474 (opencl_language::language_arch_info): ...here, a new member
4475 function.
4476 (opencl_language_data): Delete la_language_arch_info.
4477 * p-lang.c (pascal_language_arch_info): Delete function, move
4478 implementation to...
4479 (pascal_language::language_arch_info): ...here, a new member
4480 function.
4481 (pascal_language_data): Delete la_language_arch_info.
4482 * rust-lang.c (rust_language_arch_info): Delete function, move
4483 implementation to...
4484 (rust_language::language_arch_info): ...here, a new member
4485 function.
4486 (rust_language_data): Delete la_language_arch_info.
4487
4488 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4491 initializer.
4492 * c-lang.c (c_language_data): Likewise.
4493 (cplus_language_data): Likewise.
4494 (cplus_language::pass_by_reference_info): New method.
4495 (asm_language_data): Delete la_pass_by_reference initializer.
4496 (minimal_language_data): Likewise.
4497 * cp-abi.c (cp_pass_by_reference): Remove use of
4498 default_pass_by_reference.
4499 * d-lang.c (d_language_data): Likewise.
4500 * f-lang.c (f_language_data): Likewise.
4501 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4502 default_pass_by_reference.
4503 * go-lang.c (go_language_data): Likewise.
4504 * language.c (language_pass_by_reference): Update.
4505 (default_pass_by_reference): Delete.
4506 (unknown_language_data): Delete la_pass_by_reference
4507 initializer.
4508 (auto_language_data): Likewise.
4509 * language.h (struct language_data): Delete la_pass_by_reference
4510 field.
4511 (language_defn::pass_by_reference_info): New member function.
4512 (default_pass_by_reference): Delete declaration.
4513 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4514 initializer.
4515 * objc-lang.c (objc_language_data): Likewise.
4516 * opencl-lang.c (opencl_language_data): Likewise.
4517 * p-lang.c (pascal_language_data): Likewise.
4518 * rust-lang.c (rust_language_data): Likewise.
4519
4520 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4521
4522 * ada-lang.c (ada_read_var_value): Delete function, move
4523 implementation to...
4524 (ada_language::read_var_value): ...here.
4525 (ada_language_data): Delete la_read_var_value initializer.
4526 * c-lang.c (c_language_data): Likewise.
4527 (cplus_language_data): Likewise.
4528 (minimal_language_data): Likewise.
4529 * d-lang.c (d_language_data): Likewise.
4530 * f-lang.c (f_language_data): Likewise.
4531 * findvar.c (default_read_var_value): Rename to...
4532 (language_defn::read_var_value): ...this.
4533 * findvar.c (read_var_value): Update header comment, and change to
4534 call member function instead of function pointer.
4535 * go-lang.c (go_language_data): Likewise.
4536 * language.c (unknown_language_data): Delete la_read_var_value
4537 initializer.
4538 (auto_language_data): Likewise.
4539 * language.h (struct language_data): Delete la_read_var_value
4540 field.
4541 (language_defn::read_var_value): New member function.
4542 (default_read_var_value): Delete declaration.
4543 * m2-lang.c (m2_language_data): Delete la_read_var_value
4544 initializer.
4545 * objc-lang.c (objc_language_data): Likewise.
4546 * opencl-lang.c (opencl_language_data): Likewise.
4547 * p-lang.c (pascal_language_data): Likewise.
4548 * rust-lang.c (rust_language_data): Likewise.
4549 * value.h (default_read_var_value): Delete declaration.
4550
4551 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4552
4553 * ada-lang.c (ada_print_array_index): Delete function, move
4554 implementation to...
4555 (ada_language::print_array_index): ...here.
4556 (ada_language_data): Delete la_print_array_index initializer.
4557 * c-lang.c (c_language_data): Likewise.
4558 (cplus_language_data): Likewise.
4559 (minimal_language_data): Likewise.
4560 * d-lang.c (d_language_data): Likewise.
4561 * f-lang.c (f_language_data): Likewise.
4562 * go-lang.c (go_language_data): Likewise.
4563 * language.c (default_print_array_index): Delete function, move
4564 implementation to...
4565 (language_defn::print_array_index): ...here.
4566 (unknown_language_data): Delete la_print_array_index initializer.
4567 (auto_language_data): Likewise.
4568 * language.h (struct language_data): Delete la_print_array_index
4569 field.
4570 (language_defn::print_array_index): New member function.
4571 (LA_PRINT_ARRAY_INDEX): Update.
4572 (default_print_array_index): Delete declaration.
4573 * m2-lang.c (m2_language_data): Delete la_print_array_index
4574 initializer.
4575 * objc-lang.c (objc_language_data): Likewise.
4576 * opencl-lang.c (opencl_language_data): Likewise.
4577 * p-lang.c (pascal_language_data): Likewise.
4578 * rust-lang.c (rust_language_data): Likewise.
4579
4580 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * gdb/ada-lang.c (ada_language_defn): Convert to...
4583 (ada_language_data): ...this.
4584 (class ada_language): New class.
4585 (ada_language_defn): New static global.
4586 * gdb/c-lang.c (c_language_defn): Convert to...
4587 (c_language_data): ...this.
4588 (class c_language): New class.
4589 (c_language_defn): New static global.
4590 (cplus_language_defn): Convert to...
4591 (cplus_language_data): ...this.
4592 (class cplus_language): New class.
4593 (cplus_language_defn): New static global.
4594 (asm_language_defn): Convert to...
4595 (asm_language_data): ...this.
4596 (class asm_language): New class.
4597 (asm_language_defn): New static global.
4598 (minimal_language_defn): Convert to...
4599 (minimal_language_data): ...this.
4600 (class minimal_language): New class.
4601 (minimal_language_defn): New static global.
4602 * gdb/d-lang.c (d_language_defn): Convert to...
4603 (d_language_data): ...this.
4604 (class d_language): New class.
4605 (d_language_defn): New static global.
4606 * gdb/f-lang.c (f_language_defn): Convert to...
4607 (f_language_data): ...this.
4608 (class f_language): New class.
4609 (f_language_defn): New static global.
4610 * gdb/go-lang.c (go_language_defn): Convert to...
4611 (go_language_data): ...this.
4612 (class go_language): New class.
4613 (go_language_defn): New static global.
4614 * gdb/language.c (unknown_language_defn): Remove declaration.
4615 (current_language): Initialize to nullptr, real initialization is
4616 moved to _initialize_language.
4617 (languages): Delete global.
4618 (language_defn::languages): Define.
4619 (set_language_command): Use language_defn::languages.
4620 (set_language): Likewise.
4621 (range_error): Likewise.
4622 (language_enum): Likewise.
4623 (language_def): Likewise.
4624 (add_set_language_command): Use language_def::languages for the
4625 language list, and language_def to lookup language pointers.
4626 (skip_language_trampoline): Use language_defn::languages.
4627 (unknown_language_defn): Convert to...
4628 (unknown_language_data): ...this.
4629 (class unknown_language): New class.
4630 (unknown_language_defn): New static global.
4631 (auto_language_defn): Convert to...
4632 (auto_language_data): ...this.
4633 (class auto_language): New class.
4634 (auto_language_defn): New static global.
4635 (language_gdbarch_post_init): Use language_defn::languages.
4636 (_initialize_language): Initialize current_language.
4637 * gdb/language.h (struct language_defn): Rename to...
4638 (struct language_data): ...this.
4639 (struct language_defn): New.
4640 (auto_language_defn): Delete.
4641 (unknown_language_defn): Delete.
4642 (minimal_language_defn): Delete.
4643 (ada_language_defn): Delete.
4644 (asm_language_defn): Delete.
4645 (c_language_defn): Delete.
4646 (cplus_language_defn): Delete.
4647 (d_language_defn): Delete.
4648 (f_language_defn): Delete.
4649 (go_language_defn): Delete.
4650 (m2_language_defn): Delete.
4651 (objc_language_defn): Delete.
4652 (opencl_language_defn): Delete.
4653 (pascal_language_defn): Delete.
4654 (rust_language_defn): Delete.
4655 * gdb/m2-lang.c (m2_language_defn): Convert to...
4656 (m2_language_data): ...this.
4657 (class m2_language): New class.
4658 (m2_language_defn): New static global.
4659 * gdb/objc-lang.c (objc_language_defn): Convert to...
4660 (objc_language_data): ...this.
4661 (class objc_language): New class.
4662 (objc_language_defn): New static global.
4663 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4664 (opencl_language_data): ...this.
4665 (class opencl_language): New class.
4666 (opencl_language_defn): New static global.
4667 * gdb/p-lang.c (pascal_language_defn): Convert to...
4668 (pascal_language_data): ...this.
4669 (class pascal_language): New class.
4670 (pascal_language_defn): New static global.
4671 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4672 language pointer, update comment format.
4673 * gdb/rust-lang.c (rust_language_defn): Convert to...
4674 (rust_language_data): ...this.
4675 (class rust_language): New class.
4676 (rust_language_defn): New static global.
4677
4678 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4681 member variable.
4682 <m_stmt_at_address>: New member variable.
4683 (lnp_state_machine::record_line): Don't record some lines, update
4684 tracking of is_stmt at the same address.
4685 (lnp_state_machine::lnp_state_machine): Initialise new member
4686 variables.
4687
4688 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4689
4690 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4691 "-include gnu-nat-mig.h".
4692 * gnu-nat-mig.h: New file.
4693 * gnu-nat.c: Include "gnu-nat-mig.h".
4694 (exc_server, msg_reply_server, notify_server,
4695 process_reply_server): Remove declarations.
4696
4697 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4698
4699 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4700 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4701 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4702 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4703 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4704 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4705 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4706 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4707 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4708 to gnu_nat_target class.
4709 * gnu-nat.c: Likewise.
4710 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4711 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4712 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4713 object.
4714 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4715 instead of `gnu_target'.
4716
4717 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4718
4719 * i386-gnu-tdep.c: Include "gdbcore.h"
4720 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4721 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4722 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4723 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4724 i386_gnu_sigcontext_addr): New functions
4725 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4726 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4727 tdep.
4728
4729 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4730
4731 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4732 before fork_inferior call. Avoid calling it if target_is_pushed returns
4733 true.
4734
4735 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4736
4737 * gnu-nat.h (gnu_target): New variable declaration.
4738 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4739 gnu_target.
4740 * gnu-nat.c (gnu_target): New variable.
4741 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4742 add_thread_silent, and add_thread calls.
4743 (gnu_nat_target::create_inferior): Pass gnu_target to
4744 add_thread_silent, thread_change_ptid call.
4745 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4746 call.
4747
4748 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4749
4750 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4751 (gnu_nat_target::find_memory_regions): Remove unused
4752 `old_address' variable.
4753
4754 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4755
4756 * gnu-nat.c: Include "gdbarch.h".
4757
4758 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4759
4760 * reply_mig_hack.awk (Error return): Cast function through
4761 void *, to bypass compiler function call check.
4762
4763 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4764
4765 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4766 $(srcdir)/reply_mig_hack.awk.
4767
4768 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4769
4770 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4771
4772 2020-05-30 Jonny Grant <jg@jguk.org>
4773
4774 * configure.ac (ACX_BUGURL): change bug URL to https.
4775
4776 2020-05-30 Pedro Alves <palves@redhat.com>
4777
4778 * cp-support.c (replace_typedefs_template): New.
4779 (replace_typedefs_qualified_name): Handle
4780 DEMANGLE_COMPONENT_TEMPLATE.
4781
4782 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4785 dwarf2/index-cache.h, dwarf2/index-write.c,
4786 dwarf2/index-write.h, dwarf2/line-header.c,
4787 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4788 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4789 variables and fields from `dwarf2_per_objfile` to just
4790 `per_objfile` throughout.
4791
4792 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4793
4794 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4795 <push_dwarf_reg_entry_value>: Add comment.
4796
4797 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4798 Keith Seitz <keiths@redhat.com>
4799
4800 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4801 instead of PyEval_ReleaseLock.
4802 (class gdbpy_gil): Move to earlier in file.
4803 (finalize_python): Set gdb_python_initialized.
4804 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4805 when not initialized.
4806
4807 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4810 <push_dwarf_reg_entry_value>: Remove assert. Override
4811 per_objfile with caller_per_objfile.
4812
4813 2020-05-28 Tom de Vries <tdevries@suse.de>
4814
4815 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4816 PR gold/15646 workaround to symbol kind "type".
4817
4818 2020-05-27 Tom Tromey <tromey@adacore.com>
4819
4820 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4821
4822 2020-05-27 Tom Tromey <tromey@adacore.com>
4823
4824 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4825 Use htab_find_with_hash.
4826 <add_abbrev>: Remove "abbrev_number" parameter.
4827 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4828 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4829 (hash_abbrev): Add comment.
4830 (abbrev_table::lookup_abbrev): Move to header file.
4831 (abbrev_table::read): Update.
4832
4833 2020-05-27 Tom Tromey <tromey@adacore.com>
4834
4835 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4836 method.
4837 <canonical_name>: New member.
4838 <raw_name>: Rename from "name".
4839 (partial_die_info): Initialize canonical_name.
4840 (scan_partial_symbols): Check raw_name.
4841 (partial_die_parent_scope, partial_die_full_name)
4842 (add_partial_symbol, add_partial_subprogram)
4843 (add_partial_enumeration, load_partial_dies): Use "name" method.
4844 (partial_die_info::name): New method.
4845 (partial_die_info::read, guess_partial_die_structure_name)
4846 (partial_die_info::fixup): Update.
4847
4848 2020-05-27 Tom Tromey <tromey@adacore.com>
4849
4850 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4851 <get_ref_die_offset>: Inline.
4852 <get_ref_die_offset_complaint>: New method.
4853 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4854 (attribute::get_ref_die_offset_complaint): Rename from
4855 get_ref_die_offset. Just issue complaint.
4856
4857 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4858
4859 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4860
4861 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4862
4863 * exec.c (exec_file_attach): Use errno value of first openp failure.
4864
4865 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4866
4867 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4868 Don't close thread handle.
4869
4870 2020-05-27 Tom Tromey <tom@tromey.com>
4871 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4874 shared_ptr.
4875 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4876 member.
4877 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4878 dwarf2_per_bfd_objfile_data_key>: New globals.
4879 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4880 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4881 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4882 shared.
4883 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4884 short-circuit when sharing.
4885 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4886 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4887
4888 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4889
4890 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4891 to...
4892 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4893 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4894
4895 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4898 build_name_components, find_name_components_bounds>:
4899 Add per_objfile parameter.
4900 (struct mapped_index) <symbol_name_at>: Likewise.
4901 (struct mapped_debug_names): Remove constructor.
4902 <dwarf2_per_objfile>: Remove field.
4903 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4904 (mapped_index_base::find_name_components_bounds,
4905 mapped_index_base::build_name_components,
4906 dw2_expand_symtabs_matching_symbol): Likewise.
4907 (class mock_mapped_index) <symbol_name_at>: Likewise.
4908 (check_match): Likewise.
4909 (check_find_bounds_finds): Likewise.
4910 (test_mapped_index_find_name_component_bounds): Update.
4911 (CHECK_MATCH): Update.
4912 (dw2_expand_symtabs_matching): Update.
4913 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4914 per_objfile parameter.
4915 <find_vec_in_debug_names>: Likewise.
4916 <m_per_objfile>: New field.
4917 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4918 parameter.
4919 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4920 (dw2_debug_names_iterator::next): Update.
4921 (dw2_debug_names_lookup_symbol): Update.
4922 (dw2_debug_names_expand_symtabs_for_function): Update.
4923 (dw2_debug_names_map_matching_symbols): Update.
4924 (dw2_debug_names_expand_symtabs_matching): Update.
4925 (dwarf2_read_debug_names): Update.
4926
4927 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4930 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4931 move to dwarf2_per_objfile.
4932 <read_in_chain>: Remove.
4933 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4934 remove_all_cus, age_comp_units>: New methods.
4935 <m_dwarf2_cus>: New member.
4936 (struct dwarf2_per_cu_data) <cu>: Remove.
4937 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4938 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4939 moved to methods of dwarf2_per_objfile.
4940 (dwarf2_clear_marks): Remove.
4941 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4942 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4943 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4944 (dwarf2_per_objfile::remove_all_cus): New.
4945 (class free_cached_comp_units) <~free_cached_comp_units>:
4946 Update.
4947 (load_cu): Update.
4948 (dw2_do_instantiate_symtab): Adjust.
4949 (fill_in_sig_entry_from_dwo_entry): Adjust.
4950 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4951 (cutu_reader::cutu_reader): Likewise.
4952 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4953 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4954 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4955 and dwarf2_per_objfile::age_comp_units.
4956 (load_partial_comp_unit): Update.
4957 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4958 (process_queue): Likewise.
4959 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4960 backlink.
4961 (dwarf2_read_addr_index): Likewise.
4962 (follow_die_offset): Likewise.
4963 (dwarf2_fetch_die_loc_sect_off): Likewise.
4964 (dwarf2_fetch_constant_bytes): Likewise.
4965 (dwarf2_fetch_die_type_sect_off): Likewise.
4966 (follow_die_sig_1): Likewise.
4967 (load_full_type_unit): Likewise.
4968 (read_signatured_type): Likewise.
4969 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4970 (dwarf2_cu::~dwarf2_cu): Remove.
4971 (dwarf2_per_objfile::get_cu): New.
4972 (dwarf2_per_objfile::set_cu): New.
4973 (age_cached_comp_units): Rename to...
4974 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4975 to std::unordered_map.
4976 (free_one_cached_comp_unit): Rename to...
4977 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4978 to std::unordered_map.
4979 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4980 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4981 a dwarf2_per_objfile in data.
4982 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4983 (dwarf2_clear_marks): Remove.
4984
4985 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4986
4987 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4988 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4989 (init_tu_and_read_dwo_dies): Likewise.
4990 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4991 (cutu_reader::cutu_reader): Likewise.
4992 (load_partial_comp_unit): Likewise.
4993 (process_psymtab_comp_unit): Update.
4994 (build_type_psymtabs_1): Update.
4995 (process_skeletonless_type_unit): Update.
4996 (load_full_comp_unit): Update.
4997 (find_partial_die): Update.
4998 (dwarf2_read_addr_index): Update.
4999 (read_signatured_type): Update.
5000
5001 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5002
5003 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5004 m_header_read_in>: New fields.
5005 <get_header>: New method.
5006 * dwarf2/read.c (per_cu_header_read_in): Remove.
5007 (dwarf2_per_cu_data::get_header): New.
5008 (dwarf2_per_cu_data::addr_size): Update.
5009 (dwarf2_per_cu_data::offset_size): Update.
5010 (dwarf2_per_cu_data::ref_addr_size): Update.
5011
5012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5013
5014 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5015 (dw2_do_instantiate_symtab): Update.
5016 (queue_and_load_all_dwo_tus): Change parameter from
5017 dwarf2_per_cu_data to dwarf2_cu.
5018 (dwarf2_fetch_die_loc_sect_off): Update.
5019 (dwarf2_fetch_constant_bytes): Update.
5020 (dwarf2_fetch_die_type_sect_off): Update.
5021
5022 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 * dwarf2/read.c (process_full_comp_unit,
5025 process_full_type_unit): Remove per_cu, per_objfile paramters.
5026 Add dwarf2_cu parameter.
5027 (process_queue): Update.
5028
5029 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5030
5031 * dwarf2/read.c (create_cu_from_index_list): Replace
5032 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5033 (create_cus_from_index_list): Likewise.
5034 (create_cus_from_index): Likewise.
5035 (create_signatured_type_table_from_index): Likewise.
5036 (create_cus_from_debug_names_list): Likewise.
5037 (create_cus_from_debug_names): Likewise.
5038 (dwarf2_read_gdb_index): Update.
5039 (dwarf2_read_debug_names): Update.
5040
5041 2020-05-27 Tom Tromey <tom@tromey.com>
5042 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * dwarf2/read.h (struct dwarf2_per_objfile)
5045 <get_type_for_signatured_type, set_type_for_signatured_type>:
5046 New methods.
5047 <m_type_map>: New member.
5048 (struct signatured_type) <type>: Remove.
5049 * dwarf2/read.c
5050 (dwarf2_per_objfile::get_type_for_signatured_type,
5051 dwarf2_per_objfile::set_type_for_signatured_type): New.
5052 (get_signatured_type): Use new methods.
5053
5054 2020-05-27 Tom Tromey <tom@tromey.com>
5055 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5058 (struct dwarf2_per_objfile) <type_units>: New member.
5059 <get_type_unit_group_unshareable>: New method.
5060 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5061 num_symtabs, symtabs>: Remove; move to
5062 type_unit_group_unshareable.
5063 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5064 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5065 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5066
5067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * dwarf2/read.h (struct dwarf2_per_cu_data):
5070 <dwarf2_per_objfile>: Remove.
5071 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5072 dwarf2_per_objfile.
5073 (create_signatured_type_table_from_index): Likewise.
5074 (create_signatured_type_table_from_debug_names): Likewise.
5075 (create_debug_type_hash_table): Likewise.
5076 (fill_in_sig_entry_from_dwo_entry): Likewise.
5077 (create_type_unit_group): Likewise.
5078 (read_comp_units_from_section): Likewise.
5079 (create_cus_hash_table): Likewise.
5080
5081 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5082
5083 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5084 dwarf2_per_cu_data::dwarf2_per_objfile.
5085 (compute_compunit_symtab_includes): Likewise.
5086 (dwarf2_cu::start_symtab): Likewise.
5087
5088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5091 parameter.
5092 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5093 (read_namespace_alias): Update.
5094 (lookup_die_type): Update.
5095 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5096 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5097 Update.
5098 (disassemble_dwarf_expression): Update.
5099
5100 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * dwarf2/read.h (struct dwarf2_queue_item): Add
5103 dwarf2_per_objfile parameter, assign new parameter.
5104 <per_objfile>: New field.
5105 * dwarf2/read.c (free_one_cached_comp_unit): Add
5106 dwarf2_per_objfile parameter.
5107 (queue_comp_unit): Likewise.
5108 (dw2_do_instantiate_symtab): Update.
5109 (process_psymtab_comp_unit): Update.
5110 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5111 (process_imported_unit_die): Update.
5112 (queue_and_load_dwo_tu): Update.
5113 (follow_die_offset): Update.
5114 (follow_die_sig_1): Update.
5115
5116 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5119 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5120 (read_call_site_scope): Assign per_objfile.
5121 (dwarf2_per_cu_data::objfile): Remove.
5122 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5123 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5124 dwarf2_per_objfile parameter.
5125 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5126 dwarf2_per_objfile parameter.
5127 (dwarf_expr_reg_to_entry_parameter): Add output
5128 dwarf2_per_objfile parameter.
5129 (locexpr_get_frame_base): Update.
5130 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5131 <push_dwarf_reg_entry_value>: Update.
5132 <call_site_to_target_addr>: Update.
5133 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5134 parameter.
5135 (value_of_dwarf_reg_entry): Update.
5136 (rw_pieced_value): Update.
5137 (indirect_synthetic_pointer): Update.
5138 (dwarf2_evaluate_property): Update.
5139 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5140 parameter.
5141 (locexpr_read_variable): Update.
5142 (locexpr_get_symbol_read_needs): Update.
5143 (loclist_read_variable): Update.
5144
5145 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5148 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5149 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5150 parameter.
5151 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5152 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5153 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5154 parameter.
5155 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5156 sect_variable_value): Add dwarf2_per_objfile parameter.
5157 (class dwarf_evaluate_loc_desc) <dwarf_call,
5158 dwarf_variable_value>: Update.
5159 (fetch_const_value_from_synthetic_pointer): Add
5160 dwarf2_per_objfile parameter.
5161 (fetch_const_value_from_synthetic_pointer): Update.
5162 (coerced_pieced_ref): Update.
5163 (class symbol_needs_eval_context) <dwarf_call,
5164 dwarf_variable_value>: Update.
5165 (dwarf2_compile_expr_to_ax): Update.
5166
5167 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5170 parameter.
5171 (dwarf2_evaluate_loc_desc_full): Update.
5172
5173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5174
5175 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5176 parameter.
5177 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5178 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5179 dwarf2_per_objfile parameter.
5180 (decode_debug_loc_dwo_addresses): Likewise.
5181 (dwarf2_find_location_expression): Update.
5182 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5183 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5184 parameter.
5185 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5186 parameter.
5187 (locexpr_describe_location_1): Likewise.
5188 (locexpr_describe_location): Update.
5189
5190 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5193 Remove.
5194 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5195 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5196 (dwarf2_compile_property_to_c): Update.
5197 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5198 use text offset from objfile.
5199 (locexpr_tracepoint_var_ref): Update.
5200 (locexpr_generate_c_location): Update.
5201 (loclist_describe_location): Update.
5202 (loclist_tracepoint_var_ref): Update.
5203 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5204 dwarf2_per_objfile parameter.
5205 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5206 use text offset from objfile.
5207 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5208
5209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * dwarf2/expr.h (struct dwarf_expr_context)
5212 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5213 <offset>: Remove.
5214 <per_objfile>: New member.
5215 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5216 dwarf2_per_objfile parameter. Don't set offset, set
5217 per_objfile.
5218 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5219 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5220 a dwarf2_per_objfile object instead of an offset.
5221 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5222 constructor.
5223 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5224 to dwarf2_expr_executor constructor. Don't set offset.
5225 (dwarf2_fetch_cfa_info): Update.
5226 (struct dwarf2_frame_cache) <text_offset>: Remove.
5227 <per_objfile>: New field.
5228 (dwarf2_frame_cache): Update.
5229 (dwarf2_frame_prev_register): Update.
5230 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5231 <dwarf_evaluate_loc_desc>: Add constructor.
5232 (dwarf2_evaluate_loc_desc_full): Update.
5233 (dwarf2_locexpr_baton_eval): Update.
5234 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5235 Add constructor.
5236 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5237
5238 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5239
5240 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5241 addr_sized_int_type>: Move to dwarf2_cu.
5242 <int_type>: Move to dwarf2_per_objfile.
5243 (struct dwarf2_per_objfile) <int_type>: Move here.
5244 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5245 addr_sized_int_type>: Move here.
5246 (read_func_scope): Update.
5247 (read_array_type): Update.
5248 (read_tag_string_type): Update.
5249 (attr_to_dynamic_prop): Update.
5250 (dwarf2_per_cu_data::int_type): Rename to...
5251 (dwarf2_per_objfile::int_type): ... this.
5252 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5253 (dwarf2_cu::addr_sized_int_type): ... this.
5254 (read_subrange_type): Update.
5255 (dwarf2_per_cu_data::addr_type): Rename to...
5256 (dwarf2_cu::addr_type): ... this.
5257 (set_die_type): Update.
5258
5259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5262 data through per_cu->cu.
5263
5264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5267 dwarf2_per_cu_data parameter fo dwarf2_cu.
5268 (lookup_dwo_type_unit): Likewise.
5269 (read_cutu_die_from_dwo): Likewise.
5270 (lookup_dwo_unit): Likewise.
5271 (open_and_init_dwo_file): Likewise.
5272 (lookup_dwo_cutu): Likewise.
5273 (lookup_dwo_comp_unit): Likewise.
5274 (lookup_dwo_type_unit): Likewise.
5275 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5276 (cutu_reader::cutu_reader): Update.
5277
5278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5279
5280 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5281 parameter.
5282 (process_full_type_unit): Likewise.
5283 (process_queue): Update.
5284
5285 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * dwarf2/read.c (recursively_compute_inclusions): Add
5288 dwarf2_per_objfile parameter.
5289 (compute_compunit_symtab_includes): Likewise.
5290 (process_cu_includes): Update.
5291
5292 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5293
5294 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5295 parameter.
5296 (create_type_unit_group): Update.
5297 (process_psymtab_comp_unit_reader): Update.
5298 (build_type_psymtabs_reader): Update.
5299
5300 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5301
5302 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5303 object through m_this_cu->cu.
5304
5305 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5306
5307 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5308 the info parameter.
5309 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5310
5311 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5314 per_objfile parameter.
5315 (load_full_type_unit): Add per_objfile parameter.
5316 (read_signatured_type): Likewise.
5317 (load_full_comp_unit): Likewise.
5318 (load_cu): Likewise.
5319 (dw2_do_instantiate_symtab): Likewise.
5320 (dw2_get_file_names): Likewise.
5321 (dw2_map_symtabs_matching_filename): Update.
5322 (dw_expand_symtabs_matching_file_matcher): Update.
5323 (dw2_map_symbol_filenames): Update.
5324 (process_psymtab_comp_unit): Add per_objfile parameter.
5325 (build_type_psymtabs_1): Update.
5326 (process_skeletonless_type_unit): Update.
5327 (dwarf2_build_psymtabs_hard): Update.
5328 (load_partial_comp_unit): Add per_objfile parameter.
5329 (scan_partial_symbols): Update.
5330 (load_full_comp_unit): Add per_objfile parameter.
5331 (process_imported_unit_die): Update.
5332 (create_cus_hash_table): Update.
5333 (find_partial_die): Update.
5334 (dwarf2_read_addr_index): Update.
5335 (follow_die_offset): Update.
5336 (dwarf2_fetch_die_loc_sect_off): Update.
5337 (dwarf2_fetch_constant_bytes): Update.
5338 (dwarf2_fetch_die_type_sect_off): Update.
5339 (follow_die_sig_1): Update.
5340 (load_full_type_unit): Add per_objfile parameter.
5341 (read_signatured_type): Likewise.
5342
5343 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5344
5345 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5346 of objfile_name.
5347
5348 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5349
5350 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5351 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5352 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5353 field.
5354 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5355 (create_cus_from_index): Update.
5356 (dwarf2_read_gdb_index): Update.
5357 (create_cus_from_debug_names): Update.
5358 (dwarf2_read_debug_names): Update.
5359 (get_abbrev_section_for_cu): Update.
5360 (create_all_comp_units): Update.
5361 (read_attribute_value): Update.
5362 (get_debug_line_section): Update.
5363 * dwarf2/index-cache.c (index_cache::store): Update.
5364 * dwarf2/index-write.c (save_gdb_index_command): Update.
5365 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5366
5367 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5370 member.
5371 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5372 dwarf2_per_cu_data::per_bfd.
5373 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5374 (create_type_unit_group): Likewise.
5375 (queue_comp_unit): Remove reference to
5376 per_cu->dwarf2_per_objfile.
5377 (maybe_queue_comp_unit): Likewise.
5378 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5379 (create_cus_hash_table): Assign new field.
5380
5381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5382
5383 * dwarf2/read.c: Replace
5384 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5385 dwarf2_cu->per_objfile throughout.
5386
5387 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5390 parameter, don't use per_cu->dwarf2_per_objfile.
5391 (dw2_instantiate_symtab): Likewise.
5392 (dw2_find_last_source_symtab): Update.
5393 (dw2_map_expand_apply): Update.
5394 (dw2_lookup_symbol): Update.
5395 (dw2_expand_symtabs_for_function): Update.
5396 (dw2_expand_all_symtabs): Update.
5397 (dw2_expand_symtabs_with_fullname): Update.
5398 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5399 don't use per_cu->dwarf2_per_objfile.
5400 (dw2_expand_marked_cus): Update.
5401 (dw2_find_pc_sect_compunit_symtab): Update.
5402 (dw2_debug_names_lookup_symbol): Update.
5403 (dw2_debug_names_expand_symtabs_for_function): Update.
5404 (dw2_debug_names_map_matching_symbols): Update.
5405 (dwarf2_psymtab::expand_psymtab): Update.
5406
5407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5408
5409 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5410 <per_objfile>: New member.
5411 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5412 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5413 call to dwarf2_cu.
5414 (cutu_reader::cutu_reader): Update.
5415 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5416
5417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5420 struct dwarf2_per_objfile.
5421 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5422 dwarf2_per_bfd.
5423 * dwarf2/read.c (set_die_type): Update.
5424 (get_die_type_at_offset): Update.
5425
5426 2020-05-27 Tom Tromey <tom@tromey.com>
5427 Simon Marchi <simon.marchi@efficios.com>
5428
5429 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5430 method.
5431 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5432 get_symtab, set_symtab>: New methods.
5433 <m_symtabs>: New field.
5434 (struct dwarf2_psymtab): Derive from partial_symtab.
5435 <readin_p, get_compunit_symtab>: Declare methods.
5436 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5437 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5438 New methods.
5439 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5440 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5441 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5442 (dw2_symtab_iter_next, dw2_print_stats)
5443 (dw2_expand_symtabs_with_fullname)
5444 (dw2_expand_symtabs_matching_one)
5445 (dw_expand_symtabs_matching_file_matcher)
5446 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5447 (dw2_debug_names_iterator::next)
5448 (dw2_debug_names_map_matching_symbols)
5449 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5450 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5451 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5452 New methods.
5453 (get_compunit_symtab, process_full_comp_unit)
5454 (process_full_type_unit): Update.
5455 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5456
5457 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5460 then introduce a new dwarf2_per_objfile type.
5461 <read_line_string>: Move to the new dwarf2_per_objfile type.
5462 <objfile>: Likewise.
5463 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5464 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5465 dwarf2_per_objfile->per_bfd.
5466 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5467 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5468 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5469 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5470 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5471 (dwarf2_per_objfile::locate_sections): Rename to...
5472 (dwarf2_per_bfd::locate_sections): ... this.
5473 (dwarf2_per_objfile::get_cutu): Rename to...
5474 (dwarf2_per_bfd::get_cutu): ... this.
5475 (dwarf2_per_objfile::get_cu): Rename to...
5476 (dwarf2_per_bfd::get_cu): ... this.
5477 (dwarf2_per_objfile::get_tu): Rename to...
5478 (dwarf2_per_bfd::get_tu): ... this.
5479 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5480 (dwarf2_per_bfd::allocate_per_cu): ... this.
5481 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5482 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5483 (get_gdb_index_contents_ftype): Change parameter from
5484 dwarf2_per_objfile to dwarf2_per_bfd.
5485 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5486 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5487
5488 2020-05-27 Tom Tromey <tom@tromey.com>
5489 Simon Marchi <simon.marchi@efficios.com>
5490
5491 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5492 (allocate_piece_closure): Set "per_objfile" member.
5493 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5494 (locexpr_describe_location, loclist_describe_location): Use new
5495 member.
5496 * dwarf2/read.c (read_call_site_scope)
5497 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5498 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5499 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5500 handle_data_member_location): Set per_objfile member.
5501 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5502 member.
5503 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5504
5505 2020-05-27 Tom Tromey <tom@tromey.com>
5506
5507 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5508 allocate_signatured_type>: Declare new methods.
5509 <m_num_psymtabs>: New member.
5510 (struct dwarf2_per_cu_data) <index>: New member.
5511 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5512 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5513 (create_cu_from_index_list): Use allocate_per_cu.
5514 (create_signatured_type_table_from_index)
5515 (create_signatured_type_table_from_debug_names)
5516 (create_debug_type_hash_table, add_type_unit)
5517 (read_comp_units_from_section): Use allocate_signatured_type.
5518
5519 2020-05-27 Tom Tromey <tom@tromey.com>
5520
5521 * psymtab.c (partial_map_expand_apply)
5522 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5523 (psym_lookup_global_symbol_language)
5524 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5525 (psym_print_stats, psym_expand_symtabs_for_function)
5526 (psym_map_symbol_filenames, psym_map_matching_symbols)
5527 (psym_expand_symtabs_matching)
5528 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5529 (maintenance_check_psymtabs): Update.
5530 * psympriv.h (struct partial_symtab) <readin_p,
5531 get_compunit_symtab>: Add objfile parameter.
5532 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5533 Likewise.
5534 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5535 get_compunit_symtab>: Likewise.
5536 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5537
5538 2020-05-27 Tom Tromey <tom@tromey.com>
5539
5540 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5541 member.
5542 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5543 (create_cu_from_index_list)
5544 (create_signatured_type_table_from_index)
5545 (create_signatured_type_table_from_debug_names)
5546 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5547 (dwarf2_create_include_psymtab)
5548 (create_debug_type_hash_table, add_type_unit)
5549 (create_type_unit_group, read_comp_units_from_section)
5550 (dwarf2_compute_name, create_cus_hash_table)
5551 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5552 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5553 obstack.
5554 (dw2_get_real_path): Likewise. Change argument to
5555 dwarf2_per_objfile.
5556
5557 2020-05-27 Luis Machado <luis.machado@linaro.org>
5558
5559 PR tdep/26000
5560 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5561 for ldrd (immediate).
5562
5563 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5564
5565 * command.h: Add comment giving the name of class_tui.
5566 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5567 create the fake command for the help for class_tui.
5568
5569 2020-05-26 Tom Tromey <tromey@adacore.com>
5570
5571 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5572 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5573 (val_atr): New function.
5574 (value_val_atr): Use it.
5575 * ada-valprint.c (print_optional_low_bound): Change low bound
5576 handling for enums.
5577 (val_print_packed_array_elements): Don't call discrete_position.
5578 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5579 discrete_position for enum types.
5580 * language.c (default_print_array_index): Change type.
5581 * language.h (struct language_defn) <la_print_array_index>: Add
5582 index_type parameter, change type of index_value.
5583 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5584 (default_print_array_index): Update.
5585 * valprint.c (maybe_print_array_index): Don't call
5586 value_from_longest. Update.
5587 (value_print_array_elements): Don't call discrete_position.
5588
5589 2020-05-26 Tom Tromey <tromey@adacore.com>
5590
5591 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5592 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5593
5594 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5595
5596 PR gdb/13519
5597 * avr-tdep.c (avr_integer_to_address): Return data or code
5598 address accordingly to the second 'type' argument of the
5599 function.
5600
5601 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5602
5603 * infcmd.c, inferior.h: (construct_inferior_arguments):
5604 Moved function from here to gdbsupport/common-inferior.{h,cc}
5605
5606 2020-05-23 Tom Tromey <tom@tromey.com>
5607
5608 Revert commit eca1f90c:
5609 * NEWS: Remove entry for completion styling.
5610 * completer.c (_rl_completion_prefix_display_length): Move
5611 declaration later.
5612 (gdb_fnprint): Revert.
5613 (gdb_display_match_list_1): Likewise.
5614 * cli/cli-style.c (completion_prefix_style)
5615 (completion_difference_style, completion_suffix_style): Remove.
5616 (_initialize_cli_style): Revert.
5617 * cli/cli-style.h (completion_prefix_style)
5618 (completion_difference_style, completion_suffix_style): Don't
5619 declare.
5620
5621 2020-05-24 Pedro Alves <palves@redhat.com>
5622
5623 * symtab.c (completion_list_add_name): Return boolean indication
5624 of whether the symbol matched.
5625 (completion_list_add_symbol): Don't try to remove C++ aliases if
5626 the symbol didn't match in the first place.
5627 * symtab.h (completion_list_add_name): Return bool.
5628
5629 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5630
5631 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5632 type::field.
5633
5634 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5635
5636 GDB 9.2 released.
5637
5638 2020-05-23 Tom Tromey <tom@tromey.com>
5639
5640 * NEWS: Add entry for completion styling.
5641 * completer.c (_rl_completion_prefix_display_length): Move
5642 declaration earlier.
5643 (gdb_fnprint): Use completion_style.
5644 (gdb_display_match_list_1): Likewise.
5645 * cli/cli-style.c (completion_prefix_style)
5646 (completion_difference_style, completion_suffix_style): New
5647 globals.
5648 (_initialize_cli_style): Register new globals.
5649 * cli/cli-style.h (completion_prefix_style)
5650 (completion_difference_style, completion_suffix_style): Declare.
5651
5652 2020-05-23 Pedro Alves <palves@redhat.com>
5653
5654 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5655 (parse_escape): Use ISDIGIT instead of isdigit.
5656 (puts_debug): Use gdb_isprint instead of isprint.
5657 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5658 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5659 ISSPACE instead of isspace.
5660 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5661 instead of isspace.
5662 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5663 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5664 instead of isxdigit and ISDIGIT instead of isdigit.
5665
5666 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (struct type) <field>: New method.
5669 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5670 or type::field.
5671
5672 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5673
5674 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5675 (TYPE_FIELDS): Use type::fields. Change all call sites that
5676 modify the propery to use type::set_fields instead.
5677
5678 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5681 type::num_fields instead.
5682
5683 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5684
5685 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5686 methods.
5687 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5688 that modify the number of fields to use type::set_num_fields
5689 instead.
5690
5691 2020-05-22 Tom Tromey <tromey@adacore.com>
5692
5693 * compile/compile-object-load.h (munmap_list_free): Don't
5694 declare.
5695
5696 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5697
5698 * annotate.c (annotate_source_line): Update return type, add call
5699 to update current symtab and line.
5700 * annotate.h (annotate_source_line): Update return type, and
5701 extend header comment.
5702 * source.c (info_line_command): Check annotation_level before
5703 calling annotate_source_line.
5704 * stack.c (print_frame_info): If calling annotate_source_line
5705 returns true, then don't print any other source line information.
5706
5707 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5708
5709 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5710
5711 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * coffread.c (patch_type): Remove NULL check before xfree.
5714 * corefile.c (set_gnutarget): Likewise.
5715 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5716 * exec.c (build_section_table): Likewise.
5717 * remote.c (remote_target::pass_signals): Likewise.
5718 * utils.c (n_spaces): Likewise.
5719 * cli/cli-script.c (document_command): Likewise.
5720 * i386-windows-tdep.c (core_process_module_section): Likewise.
5721 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5722
5723 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5724
5725 * symfile.c (reread_symbols): Clear objfile's section_offsets
5726 vector and section indices, re-compute them by calling
5727 sym_offsets.
5728
5729 2020-05-20 Tom Tromey <tromey@adacore.com>
5730
5731 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5732 (desc_one_bound, desc_index_type): Compute field name.
5733
5734 2020-05-20 Tom de Vries <tdevries@suse.de>
5735
5736 PR symtab/25833
5737 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5738
5739 2020-05-20 Alan Modra <amodra@gmail.com>
5740
5741 PR 25993
5742 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5743 bfd_set_filename.
5744 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5745 passed to bfd_set_filename.
5746 * symfile-mem.c (add_vsyscall_page): Likewise for string
5747 passed to symbol_file_add_from_memory.
5748 (symbol_file_add_from_memory): Make name param a const char* and
5749 don't strdup.
5750
5751 2020-05-20 Alan Modra <amodra@gmail.com>
5752
5753 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5754 rather than accessing bfd->filename directly.
5755 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5756 and use bfd_section_name.
5757 * dwarf2/frame.c (decode_frame_entry): Likewise.
5758 * exec.c (exec_set_section_address): Likewise.
5759 * solib-aix.c (solib_aix_bfd_open): Likewise.
5760 * stap-probe.c (get_stap_base_address): Likewise.
5761 * symfile.c (reread_symbols): Likewise.
5762
5763 2020-05-19 Tom Tromey <tromey@adacore.com>
5764
5765 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5766
5767 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5770
5771 2020-05-19 Pedro Alves <palves@redhat.com>
5772
5773 * NEWS (set exec-file-mismatch): Adjust entry.
5774 * exec.c: Include "build-id.h".
5775 (validate_exec_file): Try to match build IDs instead of filenames.
5776 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5777 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5778 and pass down 'warn_if_slow'.
5779 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5780 gdb_bfd_open_closure to pass it down.
5781 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5782
5783 2020-05-19 Pedro Alves <palves@redhat.com>
5784
5785 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5786 * target.c (target_fileio_open_1): Rename to target_fileio_open
5787 and make extern. Use bool.
5788 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5789 (target_fileio_read_alloc_1): Adjust.
5790 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5791 (target_fileio_open_warn_if_slow): Delete declaration.
5792
5793 2020-05-19 Pedro Alves <palves@redhat.com>
5794
5795 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5796 Adjust all callers.
5797
5798 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5799
5800 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5801 whether disp is negative.
5802
5803 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * symfile.h (struct symfile_segment_data)
5806 <~symfile_segment_data>: Remove.
5807 <segment_info>: Change to std::vector.
5808 * symfile.c (default_symfile_segments): Update.
5809 * elfread.c (elf_symfile_segments): Update.
5810
5811 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5812
5813 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5814 <segments>: New.
5815 <segment_bases, segment_sizes>: Remove.
5816 * symfile.c (default_symfile_segments): Update.
5817 * elfread.c (elf_symfile_segments): Update.
5818 * remote.c (remote_target::get_offsets): Update.
5819 * solib-target.c (solib_target_relocate_section_addresses):
5820 Update.
5821
5822 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * symfile.h (struct symfile_segment_data): Initialize fields.
5825 <~symfile_segment_data>: Add.
5826 (symfile_segment_data_up): New.
5827 (struct sym_fns) <sym_segments>: Return a
5828 symfile_segment_data_up.
5829 (default_symfile_segments): Return a symfile_segment_data_up.
5830 (free_symfile_segment_data): Remove.
5831 (get_symfile_segment_data): Return a symfile_segment_data_up.
5832 * symfile.c (default_symfile_segments): Likewise.
5833 (get_symfile_segment_data): Likewise.
5834 (free_symfile_segment_data): Remove.
5835 (symfile_find_segment_sections): Update.
5836 * elfread.c (elf_symfile_segments): Return a
5837 symfile_segment_data_up.
5838 * remote.c (remote_target::get_offsets): Update.
5839 * solib-target.c (solib_target_relocate_section_addresses):
5840 Update.
5841 * symfile-debug.c (debug_sym_segments): Return a
5842 symfile_segment_data_up.
5843
5844 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5845
5846 PR build/25981
5847 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5848 Hardcode register numbers.
5849
5850 PR build/25981
5851 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5852 procfs_find_LDT_entry): Remove.
5853 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5854 procfs_find_LDT_entry): Remove.
5855 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5856 Remove.
5857
5858 2020-05-17 Pedro Alves <palves@redhat.com>
5859 Andrew Burgess <andrew.burgess@embecosm.com>
5860 Keno Fischer <keno@juliacomputing.com>
5861
5862 PR gdb/25741
5863 * breakpoint.c (build_target_condition_list): Update comments.
5864 (build_target_command_list): Update comments and skip matching
5865 locations.
5866 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5867 a separate function. Simplify "set breakpoint auto-hw off"
5868 handling.
5869 (insert_breakpoints): Update comment.
5870 (tracepoint_locations_match): New parameter. For breakpoints,
5871 compare location types too, if the caller wants to.
5872 (handle_automatic_hardware_breakpoints): New functions.
5873 (bp_location_is_less_than): Also sort by location type and
5874 hardware breakpoint length.
5875 (update_global_location_list): Handle "set breakpoint auto-hw on"
5876 here.
5877 (update_breakpoint_locations): Ask breakpoint_locations_match to
5878 ignore location types.
5879
5880 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5883 type::name instead.
5884
5885 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * gdbtypes.h (struct type) <name, set_name>: New methods.
5888 (TYPE_CODE): Use type::name. Change all call sites used to set
5889 the name to use type::set_name instead.
5890
5891 2020-05-16 Tom Tromey <tom@tromey.com>
5892
5893 * top.c (quit_force): Update.
5894 * infrun.c (handle_no_resumed): Update.
5895 * top.h (all_uis): New function.
5896 (ALL_UIS): Remove.
5897
5898 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5899
5900 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5901
5902 2020-05-16 Pedro Alves <palves@redhat.com>
5903
5904 * ia64-linux-nat.c
5905 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5906 Declare method.
5907 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5908
5909 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5912 (sparc64_adi_info): Likewise.
5913
5914 2020-05-15 Tom Tromey <tom@tromey.com>
5915
5916 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5917 block_objfile.
5918 (lookup_objfile_from_block): Remove.
5919 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5920 (lookup_global_symbol): Use block_objfile.
5921 * symtab.h (lookup_objfile_from_block): Don't declare.
5922 * printcmd.c (clear_dangling_display_expressions): Use
5923 block_objfile.
5924 * parse.c (operator_check_standard): Use block_objfile.
5925
5926 2020-05-15 Tom Tromey <tom@tromey.com>
5927
5928 * language.c (language_alloc_type_symbol): Set
5929 SYMBOL_SECTION.
5930 * symtab.c (initialize_objfile_symbol): Remove.
5931 (allocate_symbol): Remove.
5932 (allocate_template_symbol): Remove.
5933 * dwarf2/read.c (fixup_go_packaging): Use "new".
5934 (new_symbol): Use "new".
5935 (read_variable): Don't call initialize_objfile_symbol. Use
5936 "new".
5937 (read_func_scope): Use "new".
5938 * xcoffread.c (process_xcoff_symbol): Don't call
5939 initialize_objfile_symbol.
5940 (SYMBOL_DUP): Remove.
5941 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5942 "new".
5943 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5944 (allocate_template_symbol): Don't declare.
5945 (struct symbol): Add copy constructor. Change defaults.
5946 * jit.c (finalize_symtab): Use "new".
5947 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5948 Use "new".
5949 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5950 (common_block_end): Use "new".
5951 * mdebugread.c (parse_symbol): Use "new".
5952 (new_symbol): Likewise.
5953
5954 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5955
5956 * NEWS: Mention changes to help and apropos.
5957
5958 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5959
5960 * command.h (enum command_class): Improve comments, document
5961 that class_alias is for user-defined aliases, give the class
5962 name for each class, remove unused class_xdb.
5963 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5964 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5965 by a precise class.
5966 * infcmd.c (_initialize_infcmd): Likewise.
5967 * reverse.c (_initialize_reverse): Likewise.
5968 * stack.c (_initialize_stack): Likewise.
5969 * symfile.c (_initialize_symfile): Likewise.
5970 * tracepoint.c (_initialize_tracepoint): Likewise.
5971
5972 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5973
5974 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5975 when their aliased command is traversed.
5976 (help_cmd): Add fput_command_names_styled call to
5977 output command name and aliases when command has an alias.
5978
5979 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5980
5981 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5982 * cli/cli-decode.c (help_cmd_list): Declare as static,
5983 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5984 a command together with the command.
5985 (fput_command_name_styled, fput_command_names_styled): New functions.
5986 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5987 fput_command_name_styled.
5988 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5989 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5990
5991 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5992
5993 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5994 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5995 * command.h (cmd_show_list): Likewise.
5996 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5997 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5998
5999 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6000
6001 * unittests/command-def-selftests.c (traverse_command_structure):
6002 Verify all commands of a list have the same prefix command and
6003 that only the top cmdlist commands have a null prefix.
6004
6005 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6006
6007 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6008 as prefix, not one of its aliases.
6009 (set_cmd_prefix): Remove.
6010 (do_add_cmd): Centralize the setting of the prefix of a command, when
6011 command is defined after its full chain of prefix commands.
6012 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6013 (add_setshow_cmd_full): Likewise.
6014 (update_prefix_field_of_prefixed_commands): New function.
6015 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6016 update_prefix_field_of_prefixed_commands.
6017 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6018 addresses of remote_set_cmdlist and remote_show_cmdlist given
6019 as argument, not the address of an argument.
6020 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6021 * gdb/remote.c (_initialize_remote): Likewise.
6022
6023 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6024
6025 * cli/cli-cmds.c (alias_command): Check for an existing alias
6026 using lookup_cmd_composition, as valid_command_p is too strict
6027 and forbids aliases that are the prefix of an existing alias
6028 or command.
6029 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6030 command is properly recognised as a valid command.
6031
6032 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6033
6034 * unittests/help-doc-selftests.c: Rename to
6035 unittests/command-def-selftests.c
6036 * unittests/command-def-selftests.c (help_doc_tests): Update some
6037 comments.
6038 (command_structure_tests, traverse_command_structure): New namespace
6039 and function.
6040 (command_structure_invariants_tests): New function.
6041 (_initialize_command_def_selftests) Renamed from
6042 _initialize_help_doc_selftests, register command_structure_invariants
6043 selftest.
6044
6045 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6046
6047 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6048 an alias of 'show'.
6049
6050 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6051
6052 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6053 ada_is_fixed_point_type. Update all callers.
6054 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6055 all callers.
6056 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6057 Update all callers.
6058 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6059 print_fixed_point_type. Update all callers.
6060 * ada-valprint.c (ada_value_print_num): Replace call to
6061 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6062
6063 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6064
6065 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6066 processors.
6067 (cpu_supports_bts): Add CV_AMD case.
6068
6069 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6070 Simon Marchi <simon.marchi@efficios.com>
6071
6072 * infrun.c (stop_all_threads): Collect multiple wait events at
6073 each pass.
6074
6075 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6078 type::code instead.
6079
6080 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * gdbtypes.h (struct type) <code, set_code>: New methods.
6083 (TYPE_CODE): Use type::code. Change all call sites used to set
6084 the code to use type::set_code instead.
6085
6086 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6087 Tom de Vries <tdevries@suse.de>
6088 Pedro Alves <palves@redhat.com>
6089
6090 PR threads/25478
6091 * infrun.c (stop_all_threads): Do NOT ignore
6092 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6093 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6094 received.
6095 (handle_no_resumed): Remove code handling a live inferior with no
6096 threads.
6097 * remote.c (has_single_non_exited_thread): New.
6098 (remote_target::update_thread_list): Do not delete a thread if is
6099 the last thread of the process.
6100 * thread.c (thread_select): Call delete_exited_threads instead of
6101 prune_threads.
6102
6103 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6104
6105 * infrun.c (stop_all_threads): Enable/disable thread events of all
6106 targets. Move a debug message denoting the end of the function
6107 into the SCOPED_EXIT block.
6108
6109 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6110
6111 * process-stratum-target.h: Include <set>.
6112 (all_non_exited_process_targets, switch_to_target_no_thread): New
6113 function declarations.
6114 * process-stratum-target.c (all_non_exited_process_targets)
6115 (switch_to_target_no_thread): New function implementations.
6116
6117 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6118
6119 * infrun.c (handle_inferior_event): Extract out a piece of code
6120 into...
6121 (mark_non_executing_threads): ...this new function.
6122
6123 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6124
6125 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6126 use.
6127
6128 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6129
6130 * regcache.c (regcache_read_pc_protected): New function
6131 implementation that returns 0 if the PC cannot read via
6132 'regcache_read_pc'.
6133 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6134 instead of 'regcache_read_pc'.
6135 (keep_going_pass_signal): Ditto.
6136
6137 2020-05-13 Tom Tromey <tromey@adacore.com>
6138
6139 * ada-lang.c (align_value): Remove.
6140 (ada_template_to_fixed_record_type_1): Use align_up.
6141
6142 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6143
6144 * async-event.c: Update the copyright year.
6145 * async-event.h: Update the copyright year.
6146
6147 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * objfiles.h (is_addr_in_objfile,
6150 shared_objfile_contains_address_p): Return bool.
6151 * objfile.c (is_addr_in_objfile,
6152 shared_objfile_contains_address_p): Return bool.
6153
6154 2020-05-11 Tom Tromey <tromey@adacore.com>
6155
6156 * cli/cli-cmds.c (info_command): Restore.
6157 (_initialize_cli_cmds): Use add_prefix_command for "info".
6158 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6159
6160 2020-05-11 Tom Tromey <tromey@adacore.com>
6161
6162 * ada-lang.c (ada_value_primitive_field): Now public.
6163 * ada-lang.h (ada_value_primitive_field): Declare.
6164 * ada-valprint.c (print_field_values): Use
6165 ada_value_primitive_field for wrapper fields.
6166
6167 2020-05-11 Tom de Vries <tdevries@suse.de>
6168
6169 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6170 MODULE_DOMAIN.
6171
6172 2020-05-11 Tom de Vries <tdevries@suse.de>
6173
6174 PR symtab/25941
6175 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6176 with length 0, if not gdb-produced.
6177 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6178
6179 2020-05-09 Tom de Vries <tdevries@suse.de>
6180
6181 PR gdb/25955
6182 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6183 calculation.
6184
6185 2020-05-09 Tom Tromey <tom@tromey.com>
6186
6187 * top.c (server_command): Now bool.
6188 * top.h (server_command): Now bool.
6189
6190 2020-05-08 Tom Tromey <tromey@adacore.com>
6191
6192 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6193 already being processed.
6194
6195 2020-05-08 Tom Tromey <tom@tromey.com>
6196
6197 * printcmd.c (struct display) <next>: Remove.
6198 <display>: New constructor.
6199 <exp_string>: Now a std::string.
6200 <enabled_p>: Now a bool.
6201 (display_number): Move definition earlier.
6202 (displays): Rename from display_chain. Now a std::vector.
6203 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6204 (display_command): Update.
6205 (do_one_display, disable_display)
6206 (enable_disable_display_command, do_enable_disable_display):
6207 Update.
6208 (free_display): Remove.
6209 (clear_displays): Rewrite.
6210 (delete_display): Update.
6211 (map_display_numbers): Use function_view. Remove "data"
6212 parameter. Update.
6213 (do_delete_display): Remove.
6214 (undisplay_command): Update.
6215 (do_one_display, do_displays, disable_display)
6216 (info_display_command): Update.
6217 (do_enable_disable_display): Remove.
6218 (enable_disable_display_command)
6219 (clear_dangling_display_expressions): Update.
6220
6221 2020-05-08 Tom Tromey <tom@tromey.com>
6222
6223 * symtab.c (set_symbol_cache_size)
6224 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6225 (maintenance_print_symbol_cache_statistics): Update.
6226 * symmisc.c (print_symbol_bcache_statistics)
6227 (print_objfile_statistics, maintenance_print_objfiles)
6228 (maintenance_info_symtabs, maintenance_check_symtabs)
6229 (maintenance_expand_symtabs, maintenance_info_line_tables):
6230 Update.
6231 * symfile-debug.c (set_debug_symfile): Update.
6232 * source.c (forget_cached_source_info): Update.
6233 * python/python.c (gdbpy_progspaces): Update.
6234 * psymtab.c (maintenance_info_psymtabs): Update.
6235 * probe.c (parse_probes): Update.
6236 * linespec.c (iterate_over_all_matching_symtabs)
6237 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6238 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6239 * exec.c (exec_target::close): Update.
6240 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6241 * breakpoint.c (print_one_breakpoint_location)
6242 (create_longjmp_master_breakpoint)
6243 (create_std_terminate_master_breakpoint): Update.
6244 * progspace.c (program_spaces): Now a std::vector.
6245 (maybe_new_address_space): Update.
6246 (add_program_space): Remove.
6247 (program_space::program_space): Update.
6248 (remove_program_space): Update.
6249 (number_of_program_spaces): Remove.
6250 (print_program_space, update_address_spaces): Update.
6251 * progspace.h (program_spaces): Change type.
6252 (ALL_PSPACES): Remove.
6253 (number_of_program_spaces): Don't declare.
6254 (struct program_space) <next>: Remove.
6255
6256 2020-05-08 Tom Tromey <tom@tromey.com>
6257
6258 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6259 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6260 (enable_break): Update.
6261 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6262 (frv_fdpic_find_canonical_descriptor): Update.
6263 (frv_fetch_objfile_link_map): Update.
6264 * progspace.c (program_space::free_all_objfiles): Update.
6265 (program_space::solibs): New method.
6266 * progspace.h (struct program_space) <solibs>: New method.
6267 * solist.h (master_so_list): Don't declare.
6268 (ALL_SO_LIBS): Remove.
6269 * solib.h (so_list_head): Remove.
6270 (update_solib_list): Update comment.
6271 * solib.c (master_so_list): Remove.
6272 (solib_used, update_solib_list, solib_add)
6273 (info_sharedlibrary_command, clear_solib)
6274 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6275
6276 2020-05-08 Tom Tromey <tom@tromey.com>
6277
6278 * extension.c (extension_languages): Now a std::array.
6279 (ALL_EXTENSION_LANGUAGES): Remove.
6280 (get_ext_lang_defn, get_ext_lang_of_file)
6281 (eval_ext_lang_from_control_command): Update.
6282 (finish_ext_lang_initialization)
6283 (auto_load_ext_lang_scripts_for_objfile)
6284 (ext_lang_type_printers::ext_lang_type_printers)
6285 (apply_ext_lang_type_printers)
6286 (ext_lang_type_printers::~ext_lang_type_printers)
6287 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6288 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6289 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6290 (get_matching_xmethod_workers, ext_lang_colorize)
6291 (ext_lang_before_prompt): Update.
6292 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6293
6294 2020-05-08 Tom Tromey <tom@tromey.com>
6295
6296 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6297 overload.
6298 <swap_string, m_string>: Remove.
6299 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6300 Update.
6301 * stabsread.c (define_symbol, read_type): Update.
6302 * linespec.c (find_linespec_symbols): Update.
6303 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6304 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6305 * dbxread.c (read_dbx_symtab): Update.
6306 * cp-support.h (cp_canonicalize_string_full)
6307 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6308 Return unique_xmalloc_ptr.
6309 * cp-support.c (inspect_type): Update.
6310 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6311 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6312 Likewise.
6313 * c-typeprint.c (print_name_maybe_canonical): Update.
6314 * break-catch-throw.c (check_status_exception_catchpoint):
6315 Update.
6316
6317 2020-05-08 Tom de Vries <tdevries@suse.de>
6318
6319 * infrun.c (follow_fork): Copy current_line and current_symtab to
6320 child thread.
6321
6322 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6323
6324 * async-event.c (struct async_signal_handler, struct
6325 async_event_handler): Reformat, remove typedef.
6326
6327 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6330 access thistype->main_type->dyn_prop_list directly.
6331
6332 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6335 (remove_dyn_prop): Remove. Update all users to use
6336 type::remove_dyn_prop.
6337 * gdbtypes.c (remove_dyn_prop): Rename to...
6338 (type::remove_dyn_prop): ... this.
6339
6340 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6341
6342 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6343 (add_dyn_prop): Remove. Update all users to use
6344 type::add_dyn_prop.
6345 * gdbtypes.c (add_dyn_prop): Rename to...
6346 (type::add_dyn_prop): ... this.
6347
6348 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6351 (get_dyn_prop): Remove. Update all users to use
6352 type::dyn_prop.
6353 * gdbtypes.c (get_dyn_prop): Rename to...
6354 (type::dyn_prop): ... this.
6355
6356 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6357
6358 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6359
6360 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6363 instruction, skip it if it's there.
6364
6365 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6366
6367 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6368
6369 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6370
6371 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6372 * gdbtypes.c (recursive_dump_type): Remove use of
6373 TYPE_INCOMPLETE.
6374
6375 2020-05-03 Tom Tromey <tom@tromey.com>
6376
6377 * breakpoint.c (catch_command, tcatch_command): Remove.
6378 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6379 add_show_prefix_cmd.
6380 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6381 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6382 Remove.
6383 (add_internal_problem_command): Use add_basic_prefix_cmd,
6384 add_show_prefix_cmd.
6385 * mips-tdep.c (set_mipsfpu_command): Remove.
6386 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6387 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6388 (_initialize_index_cache): Use add_basic_prefix_cmd.
6389 * memattr.c (dummy_cmd): Remove.
6390 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6391 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6392 (_initialize_tui_win): Use add_basic_prefix_cmd,
6393 add_show_prefix_cmd.
6394 * cli/cli-logging.c (set_logging_command): Remove.
6395 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6396 add_show_prefix_cmd.
6397 (show_logging_command): Remove.
6398 * target.c (target_command): Remove.
6399 (add_target): Use add_basic_prefix_cmd.
6400
6401 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6402
6403 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6404
6405 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6406
6407 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6408 info_command.
6409
6410 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6411
6412 * nbsd-nat.c (nbsd_enable_proc_events)
6413 (nbsd_nat_target::post_startup_inferior): Add.
6414 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6415 (nbsd_nat_target::update_thread_list): Rewrite.
6416 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6417 "PTRACE_LWP_CREATE".
6418 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6419
6420 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6421
6422 * stack.c (_initialize_stack): Remove duplicated creation
6423 of "frame" command and "f" alias.
6424
6425 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6426
6427 PR gdb/18706
6428 * gdbtypes.c (check_typedef): Calculate size of array of
6429 stubbed type.
6430
6431 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6432
6433 PR gdb/15559
6434 * i386-tdep.c (i386_push_dummy_call): Call
6435 i386_thiscall_push_dummy_call.
6436 (i386_thiscall_push_dummy_call): New function.
6437 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6438 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6439 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6440
6441 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6442
6443 * gdbarch.sh (do_read): Add shellcheck disable directive for
6444 warning SC2162.
6445
6446 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6449 "referenced but not assigned" warning.
6450
6451 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6452
6453 * gdbarch.sh: Remove code that sets fallbackdefault.
6454
6455 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * gdbarch.sh: Use shell operators && and || instead of
6458 -a and -o.
6459
6460 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * gdbarch.sh: Use $(...) instead of `...`.
6463
6464 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * gdbarch.sh: Use double quotes around variables.
6467
6468 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6469
6470 * gdbarch.sh: Use %s with printf, instead of variables in the
6471 format string.
6472
6473 2020-04-29 Tom Tromey <tromey@adacore.com>
6474
6475 PR ada/25875:
6476 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6477 type fields here.
6478 (read_enumeration_type): Call
6479 update_enumeration_type_from_children later. Update comments.
6480 (process_enumeration_scope): Don't create type fields.
6481
6482 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6483
6484 * nbsd-tdep.c: Include "xml-syscall.h".
6485 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6486
6487 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6488
6489 * nbsd-nat.c: Include "sys/wait.h".
6490 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6491 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6492 (nbsd_nat_target::remove_exec_catchpoint)
6493 (nbsd_nat_target::set_syscall_catchpoint): Add.
6494 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6495 (nbsd_nat_target::insert_exec_catchpoint)
6496 (nbsd_nat_target::remove_exec_catchpoint)
6497 (nbsd_nat_target::set_syscall_catchpoint): Add.
6498 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6499 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6500 `nbsd_get_syscall_number'.
6501
6502 2020-04-29 Tom Tromey <tom@tromey.com>
6503
6504 * stack.c (print_block_frame_labels): Remove.
6505
6506 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6507
6508 PR gdb/17320
6509 * ada-valprint.c (val_print_packed_array_elements): Move array
6510 end bracket to new line.
6511 (ada_val_print_string): Remove extra spaces before first array
6512 element.
6513 * c-valprint.c (c_value_print_array): Likewise.
6514 * m2-valprint.c (m2_print_array_contents): Likewise.
6515 (m2_value_print_inner): Likewise.
6516 * p-valprint.c (pascal_value_print_inner): Likewise.
6517 * valprint.c (generic_val_print_array): Likewise.
6518 (value_print_array_elements): Move first array element and array
6519 end bracket to new line.
6520
6521 2020-04-29 Tom de Vries <tdevries@suse.de>
6522
6523 PR symtab/25889
6524 * linespec.c (find_method): Fix ix calculation.
6525
6526 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6527
6528 * syscalls/update-netbsd.sh: New file.
6529 * syscalls/netbsd.xml: Regenerate.
6530 * data-directory/Makefile.in: Register `netbsd.xml' in
6531 `SYSCALLS_FILES'.
6532
6533 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * syscalls/update-freebsd.sh: Add double quotes.
6536
6537 2020-04-28 Tom Tromey <tom@tromey.com>
6538
6539 * NEWS: Update.
6540 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6541 (cmdpy_init): Allow class_tui.
6542
6543 2020-04-28 Mark Williams <mark@myosotissp.com>
6544
6545 PR gdb/24480
6546 * dwarf2read.c: Add missing assingments to list_in_scope when
6547 start_symtab was already called.
6548
6549 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6550
6551 PR gdb/25881
6552 * dwarf2/read.c (offset_map_type): Use
6553 gdb:hash_enum<sect_offset> as hash function.
6554
6555 2020-04-28 Tom de Vries <tdevries@suse.de>
6556
6557 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6558 with DW_AT_signature.
6559
6560 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6561
6562 * configure.ac: Remove check for fs_base/gs_base in
6563 user_regs_struct.
6564 * configure: Re-generate.
6565 * config.in: Re-generate.
6566 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6567 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6568 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6569
6570 2020-04-27 Luis Machado <luis.machado@linaro.org>
6571
6572 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6573 problematic inline frame unwinding situation.
6574 * frame.c (frame_id_computed_p): New function.
6575 * frame.h (frame_id_computed_p): New prototype.
6576
6577 2020-04-26 Tom Tromey <tom@tromey.com>
6578
6579 * command.h (enum command_class) <class_pseudo>: Remove.
6580
6581 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6582
6583 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6584 and whitespace.
6585
6586 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6587
6588 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6589 `PT_GET_PROCESS_STATE' block.
6590
6591 2020-04-24 Tom Tromey <tom@tromey.com>
6592
6593 * symtab.h (symbol_get_demangled_name): Don't declare.
6594 * symtab.c (symbol_get_demangled_name): Remove.
6595 (general_symbol_info::natural_name)
6596 (general_symbol_info::demangled_name): Update.
6597
6598 2020-04-24 Tom Tromey <tom@tromey.com>
6599
6600 PR rust/25025:
6601 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6602
6603 2020-04-24 Tom Tromey <tom@tromey.com>
6604
6605 PR symtab/12707:
6606 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6607 exists.
6608 (new_symbol): Likewise.
6609 * compile/compile-object-load.c (get_out_value_type): Use
6610 symbol_matches_search_name.
6611
6612 2020-04-24 Tom Tromey <tom@tromey.com>
6613
6614 * dwarf2/read.c (add_partial_symbol): Do not call
6615 compute_and_set_names.
6616
6617 2020-04-24 Tom Tromey <tom@tromey.com>
6618
6619 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6620 overload.
6621
6622 2020-04-24 Tom Tromey <tom@tromey.com>
6623
6624 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6625 (add_psymbol_to_list): New overload. Make old overload call new
6626 one.
6627 * psympriv.h (add_psymbol_to_list): New overload.
6628
6629 2020-04-24 Tom Tromey <tom@tromey.com>
6630
6631 * dwarf2/read.c (partial_die_info::read) <case
6632 DW_AT_linkage_name>: Use value_as_string.
6633 (dwarf2_string_attr): Use value_as_string.
6634 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6635 method.
6636 * dwarf2/attribute.c (attribute::value_as_string): New method.
6637
6638 2020-04-24 Tom Tromey <tom@tromey.com>
6639
6640 * symtab.c (general_symbol_info::natural_name)
6641 (general_symbol_info::demangled_name): Check for language_rust.
6642
6643 2020-04-24 Tom Tromey <tom@tromey.com>
6644
6645 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6646 (dwarf2_physname): ... from here.
6647 (partial_die_info::read): Add Rust "{" hack.
6648
6649 2020-04-24 Tom Tromey <tom@tromey.com>
6650
6651 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6652 method.
6653 (symbol_set_demangled_name): Don't declare.
6654 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6655 symbol_set_demangled_name.
6656 (general_symbol_info::set_language)
6657 (general_symbol_info::compute_and_set_names): Update.
6658 * minsyms.c (minimal_symbol_reader::install): Update.
6659 * dwarf2/read.c (new_symbol): Update.
6660
6661 2020-04-24 Tom Tromey <tromey@adacore.com>
6662
6663 PR python/23662:
6664 * python/py-type.c (convert_field): Handle
6665 FIELD_LOC_KIND_DWARF_BLOCK.
6666 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6667 (typy_get_dynamic): Nw function.
6668 (type_object_getset): Add "dynamic".
6669 * NEWS: Add entry.
6670
6671 2020-04-24 Tom Tromey <tromey@adacore.com>
6672
6673 * ada-typeprint.c (print_choices, print_variant_part)
6674 (print_record_field_types_dynamic): New functions.
6675 (print_record_field_types): Use print_record_field_types_dynamic.
6676
6677 2020-04-24 Tom Tromey <tromey@adacore.com>
6678
6679 * dwarf2/read.c (handle_data_member_location): New overload.
6680 (dwarf2_add_field): Use it.
6681 (decode_locdesc): Add "computed" parameter. Update comment.
6682 * gdbtypes.c (is_dynamic_type_internal): Also look for
6683 FIELD_LOC_KIND_DWARF_BLOCK.
6684 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6685 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6686 virtual base classes.
6687 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6688 FIELD_LOC_KIND_DWARF_BLOCK.
6689
6690 2020-04-24 Tom Tromey <tromey@adacore.com>
6691
6692 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6693 * gdbtypes.c (is_dynamic_type_internal): Check
6694 TYPE_HAS_DYNAMIC_LENGTH.
6695 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6696 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6697 New macros.
6698 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6699 constant.
6700
6701 2020-04-24 Tom Tromey <tromey@adacore.com>
6702
6703 * dwarf2/read.c (struct variant_field): Rewrite.
6704 (struct variant_part_builder): New.
6705 (struct nextfield): Remove "variant" field. Add "offset".
6706 (struct field_info): Add "current_variant_part" and
6707 "variant_parts".
6708 (alloc_discriminant_info): Remove.
6709 (alloc_rust_variant): New function.
6710 (quirk_rust_enum): Update.
6711 (dwarf2_add_field): Set "offset" member. Don't handle
6712 DW_TAG_variant_part.
6713 (offset_map_type): New typedef.
6714 (convert_variant_range, create_one_variant)
6715 (create_one_variant_part, create_variant_parts)
6716 (add_variant_property): New functions.
6717 (dwarf2_attach_fields_to_type): Call add_variant_property.
6718 (read_structure_type): Don't handle DW_TAG_variant_part.
6719 (handle_variant_part, handle_variant): New functions.
6720 (handle_struct_member_die): Use them.
6721 (process_structure_scope): Don't handle variant parts.
6722 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6723 (struct discriminant_info): Remove.
6724 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6725 (struct main_type) <flag_discriminated_union>: Remove.
6726 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6727 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6728 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6729 Update.
6730 * valops.c (value_union_variant): Remove.
6731 * value.h (value_union_variant): Don't declare.
6732
6733 2020-04-24 Tom Tromey <tromey@adacore.com>
6734
6735 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6736 (ada_value_primitive_packed_val): Update.
6737 * ada-valprint.c (ada_value_print_1): Update.
6738 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6739 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6740 just an address. Use evaluate_for_locexpr_baton.
6741 (dwarf2_evaluate_property): Update.
6742 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6743 array_view.
6744 * findvar.c (default_read_var_value): Update.
6745 * gdbtypes.c (compute_variant_fields_inner)
6746 (resolve_dynamic_type_internal): Update.
6747 (resolve_dynamic_type): Change type of valaddr parameter.
6748 * gdbtypes.h (resolve_dynamic_type): Update.
6749 * valarith.c (value_subscripted_rvalue): Update.
6750 * value.c (value_from_contents_and_address): Update.
6751
6752 2020-04-24 Tom Tromey <tromey@adacore.com>
6753
6754 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6755 "push_initial_value" parameter.
6756 (dwarf2_evaluate_property): Likewise.
6757 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6758
6759 2020-04-24 Tom Tromey <tromey@adacore.com>
6760
6761 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6762 (variant::matches, compute_variant_fields_recurse)
6763 (compute_variant_fields_inner, compute_variant_fields): New
6764 functions.
6765 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6766 Use resolved_type after type is made.
6767 (operator==): Add new cases.
6768 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6769 (struct discriminant_range, struct variant, struct variant_part):
6770 New.
6771 (union dynamic_prop_data) <variant_parts, original_type>: New
6772 members.
6773 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6774 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6775 constants.
6776 * value.c (unpack_bits_as_long): Now public.
6777 * value.h (unpack_bits_as_long): Declare.
6778
6779 2020-04-24 Tom Tromey <tromey@adacore.com>
6780
6781 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6782 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6783
6784 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6785
6786 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6787
6788 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6789
6790 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6791 (remove_fork_catchpoint, post_startup_inferior)
6792 (post_attach): Move...
6793 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6794 (remove_fork_catchpoint, post_startup_inferior)
6795 (post_attach): ...here.
6796 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6797 (remove_fork_catchpoint, post_startup_inferior)
6798 (post_attach): Move...
6799 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6800 (remove_fork_catchpoint, post_startup_inferior)
6801 (post_attach): ...here.
6802
6803 2020-04-24 Tom Tromey <tromey@adacore.com>
6804
6805 * nat/windows-nat.h (struct windows_thread_info)
6806 <pc_adjusted>: New member.
6807 * windows-nat.c (windows_fetch_one_register): Check
6808 pc_adjusted.
6809 (windows_nat_target::get_windows_debug_event)
6810 (windows_nat_target::wait): Set pc_adjusted.
6811
6812 2020-04-24 Tom de Vries <tdevries@suse.de>
6813
6814 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6815 Run gdb-add-index inside temp dir.
6816
6817 2020-04-23 Tom Tromey <tromey@adacore.com>
6818
6819 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6820 in loop.
6821
6822 2020-04-23 Luis Machado <luis.machado@linaro.org>
6823
6824 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6825 get_frame_register instead of gdbarch_unwind_pc.
6826
6827 2020-04-23 Tom de Vries <tdevries@suse.de>
6828
6829 * symtab.c (lookup_global_symbol): Prefer def over decl.
6830
6831 2020-04-23 Tom de Vries <tdevries@suse.de>
6832
6833 PR symtab/25807
6834 * block.c (best_symbol, better_symbol): Promote to external.
6835 * block.h (best_symbol, better_symbol): Declare.
6836 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6837 decl.
6838
6839 2020-04-23 Tom Tromey <tromey@adacore.com>
6840
6841 PR ada/25837:
6842 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6843 "const char *", not a "const std::string &".
6844 <name_and_matcher::operator==>: Update.
6845 * unittests/lookup_name_info-selftests.c: Change type of
6846 "result".
6847
6848 2020-04-23 Tom Tromey <tom@tromey.com>
6849
6850 * inferior.h (iterate_over_inferiors): Don't declare.
6851 * inferior.c (iterate_over_inferiors): Remove.
6852 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6853 Remove.
6854 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6855 use iterate_over_inferiors.
6856 (darwin_resume_inferior_it)
6857 (struct resume_inferior_threads_param)
6858 (darwin_resume_inferior_threads_it): Remove.
6859 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6860
6861 2020-04-23 Tom de Vries <tdevries@suse.de>
6862
6863 * blockframe.c (find_pc_partial_function): Use
6864 find_pc_sect_compunit_symtab rather than
6865 objfile->sf->qf->find_pc_sect_compunit_symtab.
6866
6867 2020-04-22 Tom de Vries <tdevries@suse.de>
6868
6869 PR symtab/25764
6870 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6871 in psymtabs.
6872
6873 2020-04-22 Tom de Vries <tdevries@suse.de>
6874
6875 PR symtab/25801
6876 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6877 symtabs.
6878
6879 2020-04-22 Tom de Vries <tdevries@suse.de>
6880
6881 PR symtab/25700
6882 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6883 CU if already created.
6884
6885 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6886
6887 * infrun.c (displaced_step_fixup): Switch to the event_thread
6888 before calling displaced_step_restore, not after.
6889
6890 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6891
6892 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6893 its inferior is not recorded by us.
6894 (record_btrace_target_open): Replace call to
6895 all_non_exited_threads () with call to current_inferior
6896 ()->non_exited_threads ().
6897 (record_btrace_target::stop_recording): Likewise.
6898 (record_btrace_target::close): Likewise.
6899 (record_btrace_target::wait): Likewise.
6900 (record_btrace_target::record_stop_replaying): Likewise.
6901
6902 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6903
6904 * btrace.c (btrace_enable): Throw an error on double enables and
6905 when enabling recording fails.
6906 (btrace_disable): Throw an error if the thread is not recorded.
6907
6908 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6909
6910 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6911 request if we do not have a thread_info.
6912
6913 2020-04-21 Tom de Vries <tdevries@suse.de>
6914
6915 PR gdb/25471
6916 * thread.c
6917 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6918 exception in get_frame_id.
6919
6920 2020-04-20 Tom Tromey <tromey@adacore.com>
6921
6922 * python/python.c (struct gdbpy_event): Mark move constructor as
6923 noexcept.
6924 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6925 constructor as noexcept.
6926 * completer.h (struct completion_result): Mark move constructor as
6927 noexcept.
6928 * completer.c (completion_result::completion_result): Use
6929 initialization style. Don't call reset_match_list.
6930
6931 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6932
6933 * MAINTAINERS (Write After Approval): Add myself.
6934
6935 2020-04-18 Tom Tromey <tom@tromey.com>
6936
6937 * windows-tdep.c (init_w32_command_list)
6938 (w32_prefix_command_valid): Restore.
6939 (_initialize_windows_tdep): Call init_w32_command_list.
6940
6941 2020-04-18 Tom Tromey <tom@tromey.com>
6942
6943 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6944 * value.c (value_fn_field): Update.
6945 * valops.c (find_function_in_inferior)
6946 (value_allocate_space_in_inferior): Update.
6947 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6948 Update.
6949 * tui/tui-source.c (tui_source_window::set_contents): Update.
6950 * symtab.c (lookup_global_or_static_symbol)
6951 (find_function_start_sal_1, skip_prologue_sal)
6952 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6953 * symmisc.c (dump_msymbols, dump_symtab_1)
6954 (maintenance_print_one_line_table): Update.
6955 * symfile.c (init_entry_point_info, section_is_mapped)
6956 (list_overlays_command, simple_read_overlay_table)
6957 (simple_overlay_update_1): Update.
6958 * stap-probe.c (handle_stap_probe): Update.
6959 * stabsread.c (dbx_init_float_type, define_symbol)
6960 (read_one_struct_field, read_enum_type, read_range_type): Update.
6961 * source.c (info_line_command): Update.
6962 * python/python.c (gdbpy_source_objfile_script)
6963 (gdbpy_execute_objfile_script): Update.
6964 * python/py-type.c (save_objfile_types): Update.
6965 * python/py-objfile.c (py_free_objfile): Update.
6966 * python/py-inferior.c (python_new_objfile): Update.
6967 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6968 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6969 (maintenance_check_psymtabs): Update.
6970 * printcmd.c (info_address_command): Update.
6971 * objfiles.h (struct objfile) <arch>: New method, from
6972 get_objfile_arch.
6973 (get_objfile_arch): Don't declare.
6974 * objfiles.c (get_objfile_arch): Remove.
6975 (filter_overlapping_sections): Update.
6976 * minsyms.c (msymbol_is_function): Update.
6977 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6978 (output_nondebug_symbol): Update.
6979 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6980 (mdebug_expand_psymtab): Update.
6981 * machoread.c (macho_add_oso_symfile): Update.
6982 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6983 Update.
6984 * linux-fork.c (checkpoint_command): Update.
6985 * linespec.c (convert_linespec_to_sals): Update.
6986 * jit.c (finalize_symtab): Update.
6987 * infrun.c (insert_exception_resume_from_probe): Update.
6988 * ia64-tdep.c (ia64_find_unwind_table): Update.
6989 * hppa-tdep.c (internalize_unwinds): Update.
6990 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6991 Update.
6992 * gcore.c (call_target_sbrk): Update.
6993 * elfread.c (record_minimal_symbol, elf_symtab_read)
6994 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6995 (elf_gnu_ifunc_resolve_by_got): Update.
6996 * dwarf2/read.c (create_addrmap_from_index)
6997 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6998 (read_debug_names_from_section)
6999 (process_psymtab_comp_unit_reader, add_partial_symbol)
7000 (add_partial_subprogram, process_full_comp_unit)
7001 (read_file_scope, read_func_scope, read_lexical_block_scope)
7002 (read_call_site_scope, dwarf2_ranges_read)
7003 (dwarf2_record_block_ranges, dwarf2_add_field)
7004 (mark_common_block_symbol_computed, read_tag_pointer_type)
7005 (read_tag_string_type, dwarf2_init_float_type)
7006 (dwarf2_init_complex_target_type, read_base_type)
7007 (partial_die_info::read, partial_die_info::read)
7008 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7009 (dwarf2_fetch_die_loc_sect_off): Update.
7010 * dwarf2/loc.c (dwarf2_find_location_expression)
7011 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7012 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7013 (dwarf2_loc_desc_get_symbol_read_needs)
7014 (locexpr_describe_location_piece, locexpr_describe_location_1)
7015 (loclist_describe_location): Update.
7016 * dwarf2/index-write.c (write_debug_names): Update.
7017 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7018 * dtrace-probe.c (dtrace_process_dof): Update.
7019 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7020 (process_one_symbol): Update.
7021 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7022 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7023 (coff_read_enum_type): Update.
7024 * cli/cli-cmds.c (edit_command, list_command): Update.
7025 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7026 * breakpoint.c (create_overlay_event_breakpoint)
7027 (create_longjmp_master_breakpoint)
7028 (create_std_terminate_master_breakpoint)
7029 (create_exception_master_breakpoint, get_sal_arch): Update.
7030 * block.c (block_gdbarch): Update.
7031 * annotate.c (annotate_source_line): Update.
7032
7033 2020-04-17 Tom Tromey <tromey@adacore.com>
7034
7035 * auto-load.c (show_auto_load_cmd): Remove.
7036 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7037 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7038 (maintenance_print_arc_command): Remove.
7039 * tui/tui-win.c (tui_command): Remove.
7040 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7041 * tui/tui-layout.c (tui_layout_command): Remove.
7042 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7043 * python/python.c (user_set_python, user_show_python): Remove.
7044 (_initialize_python): Use add_basic_prefix_cmd,
7045 add_show_prefix_cmd.
7046 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7047 (install_gdb_commands): Use add_basic_prefix_cmd,
7048 add_show_prefix_cmd.
7049 (info_guile_command): Remove.
7050 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7051 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7052 add_show_prefix_cmd.
7053 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7054 Remove do_set and do_show parameters.
7055 * cli/cli-style.c (set_style, show_style): Remove.
7056 (_initialize_cli_style): Use add_basic_prefix_cmd,
7057 add_show_prefix_cmd.
7058 (cli_style_option::add_setshow_commands): Remove do_set and
7059 do_show parameters.
7060 (cli_style_option::add_setshow_commands): Use
7061 add_basic_prefix_cmd, add_show_prefix_cmd.
7062 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7063 (set_style_name): Remove.
7064 * cli/cli-dump.c (dump_command, append_command): Remove.
7065 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7066 (tekhex_dump_command, binary_dump_command)
7067 (binary_append_command): Remove.
7068 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7069 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7070 (init_w32_command_list): Remove; move into ...
7071 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7072 * valprint.c (set_print, show_print, set_print_raw)
7073 (show_print_raw): Remove.
7074 (_initialize_valprint): Use add_basic_prefix_cmd,
7075 add_show_prefix_cmd.
7076 * typeprint.c (set_print_type, show_print_type): Remove.
7077 (_initialize_typeprint): Use add_basic_prefix_cmd,
7078 add_show_prefix_cmd.
7079 * record.c (set_record_command, show_record_command): Remove.
7080 (_initialize_record): Use add_basic_prefix_cmd,
7081 add_show_prefix_cmd.
7082 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7083 add_show_prefix_cmd.
7084 (info_command, show_command, set_debug, show_debug): Remove.
7085 * top.h (set_history, show_history): Don't declare.
7086 * top.c (set_history, show_history): Remove.
7087 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7088 (unset_tdesc_cmd): Remove.
7089 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7090 add_show_prefix_cmd.
7091 * symtab.c (info_module_command): Remove.
7092 (_initialize_symtab): Use add_basic_prefix_cmd.
7093 * symfile.c (overlay_command): Remove.
7094 (_initialize_symfile): Use add_basic_prefix_cmd.
7095 * sparc64-tdep.c (info_adi_command): Remove.
7096 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7097 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7098 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7099 add_show_prefix_cmd.
7100 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7101 (_initialize_serial): Use add_basic_prefix_cmd,
7102 add_show_prefix_cmd.
7103 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7104 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7105 add_show_prefix_cmd.
7106 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7107 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7108 add_show_prefix_cmd.
7109 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7110 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7111 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7112 add_show_prefix_cmd.
7113 * remote.c (remote_command, set_remote_cmd): Remove.
7114 (_initialize_remote): Use add_basic_prefix_cmd.
7115 * record-full.c (set_record_full_command)
7116 (show_record_full_command): Remove.
7117 (_initialize_record_full): Use add_basic_prefix_cmd,
7118 add_show_prefix_cmd.
7119 * record-btrace.c (cmd_set_record_btrace)
7120 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7121 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7122 (cmd_show_record_btrace_pt): Remove.
7123 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7124 add_show_prefix_cmd.
7125 * ravenscar-thread.c (set_ravenscar_command)
7126 (show_ravenscar_command): Remove.
7127 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7128 add_show_prefix_cmd.
7129 * mips-tdep.c (show_mips_command, set_mips_command)
7130 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7131 add_show_prefix_cmd.
7132 * maint.c (maintenance_command, maintenance_info_command)
7133 (maintenance_check_command, maintenance_print_command)
7134 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7135 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7136 add_show_prefix_cmd.
7137 (show_per_command_cmd): Remove.
7138 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7139 Remove.
7140 (maintenance_show_test_settings_cmd): Remove.
7141 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7142 add_show_prefix_cmd.
7143 * maint-test-options.c (maintenance_test_options_command):
7144 Remove.
7145 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7146 * macrocmd.c (macro_command): Remove
7147 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7148 * language.c (set_check, show_check): Remove.
7149 (_initialize_language): Use add_basic_prefix_cmd,
7150 add_show_prefix_cmd.
7151 * infcmd.c (unset_command): Remove.
7152 (_initialize_infcmd): Use add_basic_prefix_cmd.
7153 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7154 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7155 add_show_prefix_cmd.
7156 * go32-nat.c (go32_info_dos_command): Remove.
7157 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7158 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7159 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7160 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7161 (_initialize_frame): Use add_basic_prefix_cmd,
7162 add_show_prefix_cmd.
7163 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7164 (_initialize_dcache): Use add_basic_prefix_cmd,
7165 add_show_prefix_cmd.
7166 * cp-support.c (maint_cplus_command): Remove.
7167 (_initialize_cp_support): Use add_basic_prefix_cmd.
7168 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7169 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7170 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7171 add_basic_prefix_cmd, add_show_prefix_cmd.
7172 * breakpoint.c (save_command): Remove.
7173 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7174 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7175 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7176 add_show_prefix_cmd.
7177 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7178 (set_ada_command, show_ada_command): Remove.
7179 (_initialize_ada_language): Use add_basic_prefix_cmd,
7180 add_show_prefix_cmd.
7181 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7182
7183 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7184
7185 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7186 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7187
7188 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7189
7190 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7191 warning messages.
7192
7193 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7194
7195 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7196 import table is not at beginning of .idata section.
7197
7198 2020-04-16 Pedro Alves <palves@redhat.com>
7199
7200 * inferior.c (delete_inferior): Use delete operator directly
7201 instead of delete_program_space.
7202 * progspace.c (add_program_space): New, factored out from
7203 program_space::program_space.
7204 (remove_program_space): New, factored out from
7205 delete_program_space.
7206 (program_space::program_space): Remove intro comment. Rewrite.
7207 (program_space::~program_space): Remove intro comment. Call
7208 remove_program_space.
7209 (delete_program_space): Delete.
7210 * progspace.h (program_space::program_space): Make explicit. Move
7211 intro comment here, adjusted.
7212 (program_space::~program_space): Move intro comment here,
7213 adjusted.
7214 (delete_program_space): Remove.
7215
7216 2020-04-16 Tom Tromey <tromey@adacore.com>
7217
7218 * windows-nat.c (windows_nat::handle_access_violation): New
7219 function.
7220 * nat/windows-nat.h (handle_access_violation): Declare.
7221 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7222 windows-nat.c. Call handle_access_violation.
7223
7224 2020-04-16 Tom de Vries <tdevries@suse.de>
7225
7226 PR symtab/25791
7227 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7228 CUs without psymtab.
7229
7230 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7231
7232 * python/python.c (do_start_initialization): Don't call
7233 PyEval_InitThreads for Python 3.9 and beyond.
7234
7235 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7236
7237 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7238 thread functions.
7239 (obsd_nat_target::wait): Likewise.
7240
7241 2020-04-15 Tom Tromey <tromey@adacore.com>
7242
7243 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7244 (DEBUG_EXCEPT): Use debug_printf.
7245
7246 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7247
7248 * completer.c (class completion_tracker::completion_hash_entry)
7249 <hash_name>: New member function.
7250 (completion_tracker::discard_completions): New callback to hash a
7251 completion_hash_entry, pass this to htab_create_alloc.
7252
7253 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7254
7255 * windows-nat.c (windows_make_so): Warn rather than stopping with
7256 an error if realpath() fails.
7257
7258 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7259
7260 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7261 (nbsd_nat_target::info_proc): Add do_status.
7262
7263 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7264 Tom de Vries <tdevries@suse.de>
7265
7266 PR symtab/25718
7267 * psympriv.h (struct partial_symtab::read_symtab)
7268 (struct partial_symtab::expand_psymtab)
7269 (struct partial_symtab::read_dependencies): Update comments.
7270 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7271 read_symtab for includer.
7272 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7273 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7274 (struct dwarf2_include_psymtab::m_readin): Remove.
7275 (struct dwarf2_include_psymtab::includer): New member function.
7276 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7277
7278 2020-04-14 Tom de Vries <tdevries@suse.de>
7279
7280 PR symtab/25720
7281 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7282 with NULL symbol_matcher and lookup_name.
7283 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7284 and lookup_name.
7285 * dwarf2/read.c (dw2_expand_symtabs_matching)
7286 (dw2_debug_names_expand_symtabs_matching): Same.
7287 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7288 Make lookup_name a pointer. Update comment.
7289 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7290 lookup_name being a pointer.
7291 * symfile.c (expand_symtabs_matching): Same.
7292 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7293 * linespec.c (iterate_over_all_matching_symtabs): Same.
7294
7295 2020-04-13 Tom Tromey <tom@tromey.com>
7296
7297 * run-on-main-thread.c: Update include.
7298 * unittests/main-thread-selftests.c: Update include.
7299 * tui/tui-win.c: Update include.
7300 * tui/tui-io.c: Update include.
7301 * tui/tui-interp.c: Update include.
7302 * tui/tui-hooks.c: Update include.
7303 * top.h: Update include.
7304 * top.c: Update include.
7305 * ser-base.c: Update include.
7306 * remote.c: Update include.
7307 * remote-notif.c: Update include.
7308 * remote-fileio.c: Update include.
7309 * record-full.c: Update include.
7310 * record-btrace.c: Update include.
7311 * python/python.c: Update include.
7312 * posix-hdep.c: Update include.
7313 * mingw-hdep.c: Update include.
7314 * mi/mi-main.c: Update include.
7315 * mi/mi-interp.c: Update include.
7316 * main.c: Update include.
7317 * linux-nat.c: Update include.
7318 * interps.c: Update include.
7319 * infrun.c: Update include.
7320 * inf-loop.c: Update include.
7321 * event-top.c: Update include.
7322 * event-loop.c: Move to ../gdbsupport/.
7323 * event-loop.h: Move to ../gdbsupport/.
7324 * async-event.h: Update include.
7325 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7326
7327 2020-04-13 Tom Tromey <tom@tromey.com>
7328
7329 * tui/tui-win.c: Include async-event.h.
7330 * remote.c: Include async-event.h.
7331 * remote-notif.c: Include async-event.h.
7332 * record-full.c: Include async-event.h.
7333 * record-btrace.c: Include async-event.h.
7334 * infrun.c: Include async-event.h.
7335 * event-top.c: Include async-event.h.
7336 * event-loop.h: Move some declarations to async-event.h.
7337 * event-loop.c: Don't include ser-event.h or top.h. Move some
7338 code to async-event.c.
7339 * async-event.h: New file.
7340 * async-event.c: New file.
7341 * Makefile.in (COMMON_SFILES): Add async-event.c.
7342 (HFILES_NO_SRCDIR): Add async-event.h.
7343
7344 2020-04-13 Tom Tromey <tom@tromey.com>
7345
7346 * utils.c (flush_streams): New function.
7347 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7348
7349 2020-04-13 Tom Tromey <tom@tromey.com>
7350
7351 * event-loop.c (handle_file_event): Use warning, not
7352 printf_unfiltered.
7353
7354 2020-04-13 Tom Tromey <tom@tromey.com>
7355
7356 * event-loop.c: Include <chrono>.
7357
7358 2020-04-13 Tom Tromey <tom@tromey.com>
7359
7360 * gdb_select.h: Move to ../gdbsupport/.
7361 * event-loop.c: Update include path.
7362 * top.c: Update include path.
7363 * ser-base.c: Update include path.
7364 * ui-file.c: Update include path.
7365 * ser-tcp.c: Update include path.
7366 * guile/scm-ports.c: Update include path.
7367 * posix-hdep.c: Update include path.
7368 * ser-unix.c: Update include path.
7369 * gdb_usleep.c: Update include path.
7370 * mingw-hdep.c: Update include path.
7371 * inflow.c: Update include path.
7372 * infrun.c: Update include path.
7373 * event-top.c: Update include path.
7374
7375 2020-04-13 Tom Tromey <tom@tromey.com>
7376
7377 * configure: Rebuild.
7378 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7379
7380 2020-04-13 Tom Tromey <tom@tromey.com>
7381
7382 * event-loop.h (start_event_loop): Don't declare.
7383 * event-loop.c (start_event_loop): Move...
7384 * main.c (start_event_loop): ...here. Now static.
7385
7386 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7387
7388 * MAINTAINERS: Update my email address.
7389
7390 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7391
7392 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7393 IP_ALL.
7394
7395 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7396
7397 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7398 (nbsd_nat_target::info_proc): Add do_cmdline.
7399
7400 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7401
7402 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7403 (nbsd_nat_target::info_proc): Add do_cwd.
7404
7405 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7406
7407 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7408
7409 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7410
7411 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7412 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7413 (nbsd_nat_target::info_proc): New functions.
7414 * nbsd-nat.c (kinfo_get_vmmap): New function.
7415 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7416 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7417 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7418 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7419 functions.
7420 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7421 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7422 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7423 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7424 (KINFO_VME_FLAG_GROWS_DOWN): New.
7425
7426 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7427
7428 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7429 bit shift.
7430
7431 2020-04-10 Tom Tromey <tromey@adacore.com>
7432
7433 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7434
7435 2020-04-10 Tom Tromey <tromey@adacore.com>
7436
7437 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7438 separate debug files.
7439
7440 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7441
7442 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7443 Move to...
7444 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7445 ... here.
7446 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7447 Check for STATUS_WX86_BREAKPOINT.
7448 (windows_nat_target::wait): Same.
7449
7450 2020-04-10 Tom de Vries <tdevries@suse.de>
7451
7452 PR cli/25808
7453 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7454
7455 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7456
7457 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7458 (Write After Approval): Remove Tom de Vries.
7459
7460 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7461
7462 revert partially:
7463 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7464
7465 * buildsym.c (record_line): Fix undefined behavior and preserve
7466 lines at eof.
7467
7468 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7469
7470 * auxv.h (svr4_auxv_parse): New.
7471 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7472 and generic_auxv_parse.
7473 (svr4_auxv_parse): Add.
7474 * obsd-tdep.c: Include "auxv.h".
7475 (obsd_auxv_parse): Remove.
7476 (obsd_init_abi): Remove comment.
7477 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7478 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7479 * nbsd-tdep.c: Include "auxv.h".
7480 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7481
7482 2020-04-08 Tom Tromey <tromey@adacore.com>
7483
7484 * nat/windows-nat.h (last_wait_event): Don't declare.
7485 (wait_for_debug_event): Update comment.
7486 * nat/windows-nat.c (last_wait_event): Now static.
7487
7488 2020-04-08 Tom Tromey <tromey@adacore.com>
7489
7490 * windows-nat.c (wait_for_debug_event): Move to
7491 nat/windows-nat.c.
7492 * nat/windows-nat.h (wait_for_debug_event): Declare.
7493 * nat/windows-nat.c (wait_for_debug_event): Move from
7494 windows-nat.c. No longer static.
7495
7496 2020-04-08 Tom Tromey <tromey@adacore.com>
7497
7498 * windows-nat.c (get_windows_debug_event): Use
7499 fetch_pending_stop.
7500 * nat/windows-nat.h (fetch_pending_stop): Declare.
7501 * nat/windows-nat.c (fetch_pending_stop): New function.
7502
7503 2020-04-08 Tom Tromey <tromey@adacore.com>
7504
7505 * windows-nat.c (windows_continue): Use matching_pending_stop and
7506 continue_last_debug_event.
7507 * nat/windows-nat.h (matching_pending_stop)
7508 (continue_last_debug_event): Declare.
7509 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7510 (matching_pending_stop, continue_last_debug_event): New
7511 functions.
7512
7513 2020-04-08 Tom Tromey <tromey@adacore.com>
7514
7515 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7516 (handle_exception_result): Move to nat/windows-nat.h.
7517 (DEBUG_EXCEPTION_SIMPLE): Remove.
7518 (windows_nat::handle_ms_vc_exception): New function.
7519 (handle_exception): Move to nat/windows-nat.c.
7520 (get_windows_debug_event): Update.
7521 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7522 nat/windows-nat.c.
7523 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7524 (handle_exception_result): Move from windows-nat.c.
7525 (handle_exception): Declare.
7526 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7527 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7528 windows-nat.c.
7529
7530 2020-04-08 Tom Tromey <tromey@adacore.com>
7531
7532 * windows-nat.c (exception_count, event_count): Remove.
7533 (handle_exception, get_windows_debug_event)
7534 (do_initial_windows_stuff): Update.
7535
7536 2020-04-08 Tom Tromey <tromey@adacore.com>
7537
7538 * windows-nat.c (windows_nat::handle_load_dll)
7539 (windows_nat::handle_unload_dll): Rename. No longer static.
7540 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7541 Declare.
7542
7543 2020-04-08 Tom Tromey <tromey@adacore.com>
7544
7545 * complaints.h (stop_whining): Declare at top-level.
7546 (complaint): Don't declare stop_whining.
7547
7548 2020-04-08 Tom Tromey <tromey@adacore.com>
7549
7550 * windows-nat.c (windows_nat::handle_output_debug_string):
7551 Rename. No longer static.
7552 * nat/windows-nat.h (handle_output_debug_string): Declare.
7553
7554 2020-04-08 Tom Tromey <tromey@adacore.com>
7555
7556 * windows-nat.c (current_process_handle, current_process_id)
7557 (main_thread_id, last_sig, current_event, last_wait_event)
7558 (current_windows_thread, desired_stop_thread_id, pending_stops)
7559 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7560 (display_selectors, fake_create_process)
7561 (get_windows_debug_event): Update.
7562 * nat/windows-nat.h (current_process_handle, current_process_id)
7563 (main_thread_id, last_sig, current_event, last_wait_event)
7564 (current_windows_thread, desired_stop_thread_id, pending_stops)
7565 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7566 * nat/windows-nat.c (current_process_handle, current_process_id)
7567 (main_thread_id, last_sig, current_event, last_wait_event)
7568 (current_windows_thread, desired_stop_thread_id, pending_stops)
7569 (siginfo_er): New globals. Move from windows-nat.c.
7570
7571 2020-04-08 Tom Tromey <tromey@adacore.com>
7572
7573 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7574 (handle_load_dll): Update.
7575 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7576
7577 2020-04-08 Tom Tromey <tromey@adacore.com>
7578
7579 * windows-nat.c (enum thread_disposition_type): Move to
7580 nat/windows-nat.h.
7581 (windows_nat::thread_rec): Rename from thread_rec. No longer
7582 static.
7583 (windows_add_thread, windows_nat_target::fetch_registers)
7584 (windows_nat_target::store_registers, handle_exception)
7585 (windows_nat_target::resume, get_windows_debug_event)
7586 (windows_nat_target::get_tib_address)
7587 (windows_nat_target::thread_name)
7588 (windows_nat_target::thread_alive): Update.
7589 * nat/windows-nat.h (enum thread_disposition_type): Move from
7590 windows-nat.c.
7591 (thread_rec): Declare.
7592
7593 2020-04-08 Tom Tromey <tromey@adacore.com>
7594
7595 * windows-nat.c: Add "using namespace".
7596 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7597 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7598
7599 2020-04-08 Tom Tromey <tromey@adacore.com>
7600
7601 * nat/windows-nat.h (struct windows_thread_info): Declare
7602 destructor.
7603 * nat/windows-nat.c (~windows_thread_info): New.
7604
7605 2020-04-08 Tom Tromey <tromey@adacore.com>
7606
7607 PR gdb/22992
7608 * windows-nat.c (current_event): Update comment.
7609 (last_wait_event, desired_stop_thread_id): New globals.
7610 (struct pending_stop): New.
7611 (pending_stops): New global.
7612 (windows_nat_target) <stopped_by_sw_breakpoint>
7613 <supports_stopped_by_sw_breakpoint>: New methods.
7614 (windows_fetch_one_register): Add assertions. Adjust PC.
7615 (windows_continue): Handle pending stops. Suspend other threads
7616 when stepping. Use last_wait_event
7617 (wait_for_debug_event): New function.
7618 (get_windows_debug_event): Use wait_for_debug_event. Handle
7619 pending stops. Queue spurious stops.
7620 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7621 (windows_nat_target::kill): Use wait_for_debug_event.
7622 * nat/windows-nat.h (struct windows_thread_info)
7623 <stopped_at_software_breakpoint>: New field.
7624 * nat/windows-nat.c (windows_thread_info::resume): Clear
7625 stopped_at_software_breakpoint.
7626
7627 2020-04-08 Tom Tromey <tromey@adacore.com>
7628
7629 * windows-nat.c (enum thread_disposition_type): New.
7630 (thread_rec): Replace "get_context" parameter with "disposition";
7631 change type.
7632 (windows_add_thread, windows_nat_target::fetch_registers)
7633 (windows_nat_target::store_registers, handle_exception)
7634 (windows_nat_target::resume, get_windows_debug_event)
7635 (windows_nat_target::get_tib_address)
7636 (windows_nat_target::thread_name)
7637 (windows_nat_target::thread_alive): Update.
7638
7639 2020-04-08 Tom Tromey <tromey@adacore.com>
7640
7641 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7642 (windows_continue): Use windows_continue::resume.
7643 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7644 resume>: Declare new methods.
7645 * nat/windows-nat.c: New file.
7646 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7647
7648 2020-04-08 Tom Tromey <tromey@adacore.com>
7649
7650 * windows-nat.c (windows_add_thread, windows_delete_thread)
7651 (windows_nat_target::fetch_registers)
7652 (windows_nat_target::store_registers, fake_create_process)
7653 (windows_nat_target::resume, windows_nat_target::resume)
7654 (get_windows_debug_event, windows_nat_target::wait)
7655 (windows_nat_target::pid_to_str)
7656 (windows_nat_target::get_tib_address)
7657 (windows_nat_target::get_ada_task_ptid)
7658 (windows_nat_target::thread_name)
7659 (windows_nat_target::thread_alive): Use lwp, not tid.
7660
7661 2020-04-08 Tom Tromey <tromey@adacore.com>
7662
7663 * windows-nat.c (handle_exception)
7664 (windows_nat_target::thread_name): Update.
7665 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7666 <name>: Now unique_xmalloc_ptr.
7667
7668 2020-04-08 Tom Tromey <tromey@adacore.com>
7669
7670 * windows-nat.c (thread_rec)
7671 (windows_nat_target::fetch_registers): Update.
7672 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7673 Update comment.
7674 <debug_registers_changed, reload_context>: Now bool.
7675
7676 2020-04-08 Tom Tromey <tromey@adacore.com>
7677
7678 * windows-nat.c (windows_add_thread): Use new.
7679 (windows_init_thread_list, windows_delete_thread): Use delete.
7680 (get_windows_debug_event): Update.
7681 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7682 destructor, and initializers.
7683
7684 2020-04-08 Tom Tromey <tromey@adacore.com>
7685
7686 * windows-nat.c (struct windows_thread_info): Remove.
7687 * nat/windows-nat.h: New file.
7688
7689 2020-04-08 Tom Tromey <tromey@adacore.com>
7690
7691 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7692 (thread_rec, windows_add_thread, windows_delete_thread)
7693 (windows_continue): Update.
7694
7695 2020-04-08 Tom Tromey <tromey@adacore.com>
7696
7697 * windows-nat.c (struct windows_thread_info): Remove typedef.
7698 (thread_head): Remove.
7699 (thread_list): New global.
7700 (thread_rec, windows_add_thread, windows_init_thread_list)
7701 (windows_delete_thread, windows_continue): Update.
7702
7703 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7704
7705 * windows-tdep.h (windows_init_abi): Add comment.
7706 (cygwin_init_abi): New declaration.
7707 * windows-tdep.c: Split signal enumeration in two, one for
7708 Windows and one for Cygwin.
7709 (windows_gdb_signal_to_target): Only deal with signal of the
7710 Windows OS ABI.
7711 (cygwin_gdb_signal_to_target): New function.
7712 (windows_init_abi): Rename to windows_init_abi_common, don't set
7713 gdb_signal_to_target gdbarch method. Add new new function with
7714 this name.
7715 (cygwin_init_abi): New function.
7716 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7717 comment. Don't call windows_init_abi.
7718 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7719 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7720 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7721 i386_windows_init_abi_common, don't call windows_init_abi. Add
7722 a new function of this name.
7723 (i386_cygwin_init_abi): New function.
7724 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7725 OS ABI Cygwin.
7726
7727 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7728
7729 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7730 parameter.c.
7731 (dwarf2_read_gdb_index): Update.
7732
7733 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7734
7735 * nbsd-tdep.c: Include "objfiles.h".
7736 (nbsd_skip_solib_resolver): New.
7737 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7738
7739 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7740
7741 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7742 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7743 with DW_LLE_base_addressx are being emitted in DWARFv5.
7744 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7745 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7746 unsigned integer.
7747
7748 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7749
7750 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7751 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7752 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7753 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7754 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7755 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7756 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7757
7758
7759 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7760
7761 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7762 (read_loclist_index): New function definition.
7763 (lookup_loclist_base): New function definition.
7764 (read_loclist_header): New function definition.
7765 (dwarf2_cu): Add loclist_base and loclist_header field.
7766 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7767 (read_full_die_1): Read the value of DW_AT_loclists_base.
7768 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7769 (read_attribute_value): Handle DW_FORM_loclistx.
7770 (skip_one_die): Handle DW_FORM_loclistx.
7771 (loclist_header): New structure declaration.
7772 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7773
7774 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7775
7776 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7777 constructor. Remove `addr` parameter from other constructor and
7778 add `per_cu` parameter.
7779 * dwarf2/read.c (create_partial_symtab): Update.
7780
7781 2020-04-07 Tom de Vries <tdevries@suse.de>
7782
7783 PR symtab/25796
7784 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7785 (partial_die_info::fixup): Inherit has_const_value.
7786
7787 2020-04-07 Tom de Vries <tdevries@suse.de>
7788
7789 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7790 symbols without address.
7791
7792 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7793
7794 * nbsd-nat.h (struct thread_info): Add forward declaration.
7795 (nbsd_nat_target::thread_alive): Add.
7796 (nbsd_nat_target::thread_name): Likewise.
7797 (nbsd_nat_target::update_thread_list): Likewise.
7798 (update_thread_list::post_attach): Likewise.
7799 (post_attach::pid_to_str): Likewise.
7800 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7801 (nbsd_thread_lister): Add.
7802 (nbsd_nat_target::thread_alive): Likewise.
7803 (nbsd_nat_target::thread_name): Likewise.
7804 (nbsd_add_threads): Likewise.
7805 (update_thread_list::post_attach): Likewise.
7806 (nbsd_nat_target::update_thread_list): Likewise.
7807 (post_attach::pid_to_str): Likewise.
7808
7809 2020-04-06 Tom Tromey <tromey@adacore.com>
7810
7811 * ada-valprint.c (print_variant_part): Extract the variant field.
7812 (print_field_values): Use the field as the outer value when
7813 recursing.
7814
7815 2020-04-06 Tom Tromey <tromey@adacore.com>
7816
7817 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7818 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7819 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7820 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7821 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7822
7823 2020-04-06 Tom Tromey <tromey@adacore.com>
7824
7825 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7826 TYPE_CODE_ERROR.
7827
7828 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7829
7830 * nbsd-tdep.c: Include "gdbarch.h".
7831 Define enum with NetBSD signal numbers.
7832 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7833 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7834 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7835 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7836 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7837 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7838 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7839 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7840 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7841 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7842 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7843 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7844
7845 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7846
7847 PR gdb/25325
7848 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7849
7850 2020-04-03 Tom Tromey <tromey@adacore.com>
7851
7852 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7853 Read constant block.
7854
7855 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7856
7857 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7858 (gdb_bfd_get_full_section_contents): New declaration.
7859 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7860 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7861 gdb_bfd_get_full_section_contents.
7862
7863 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7864
7865 * exec.c (build_section_table): Replace internal_error with
7866 gdb_assert.
7867 (section_table_xfer_memory_partial): Likewise.
7868 * mdebugread.c (parse_partial_symbols): Likewise.
7869 * psymtab.c (lookup_partial_symbol): Likewise.
7870 * utils.c (wrap_here): Likewise.
7871
7872 2020-04-02 Tom Tromey <tromey@adacore.com>
7873
7874 * f-lang.c (build_fortran_types): Use arch_type to initialize
7875 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7876
7877 2020-04-02 Tom Tromey <tromey@adacore.com>
7878
7879 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7880 of attributes.
7881
7882 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7883 Bernd Edlinger <bernd.edlinger@hotmail.de>
7884 Tom Tromey <tromey@adacore.com>
7885
7886 * buildsym.c (buildsym_compunit::record_line): Remove
7887 deduplication code.
7888
7889 2020-04-02 Tom de Vries <tdevries@suse.de>
7890
7891 PR ada/24671
7892 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7893
7894 2020-04-02 Tom de Vries <tdevries@suse.de>
7895
7896 * dwarf2/read.c (dwarf2_gdb_index_functions,
7897 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7898 NULL.
7899 * psymtab.c (psym_lookup_global_symbol_language): New function.
7900 (psym_functions): Init psym_lookup_global_symbol_language with
7901 psym_lookup_global_symbol_language.
7902 * symfile-debug.c (debug_sym_quick_functions): Init
7903 lookup_global_symbol_language with NULL.
7904 * symfile.c (set_initial_language): Remove fixme comment.
7905 * symfile.h (struct quick_symbol_functions): Add
7906 lookup_global_symbol_language.
7907 * symtab.c (find_quick_global_symbol_language): New function.
7908 (find_main_name): Use find_quick_global_symbol_language.
7909
7910 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7913
7914 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7915
7916 * buildsym.c (record_line): Fix undefined behavior and preserve
7917 lines at eof.
7918
7919 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7920
7921 * buildsym.c (record_line): Fix the resizing condition.
7922
7923 2020-04-01 Tom Tromey <tom@tromey.com>
7924
7925 * value.h (value_literal_complex): Add comment.
7926 * valops.c (value_literal_complex): Refer to value.h.
7927
7928 2020-04-01 Tom Tromey <tom@tromey.com>
7929
7930 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7931 (scalar_type): New rule, from typebase.
7932 (typebase): Use scalar_type. Recognize complex types.
7933 (field_name): Handle FLOAT_KEYWORD.
7934 (ident_tokens): Add _Complex and __complex__.
7935
7936 2020-04-01 Tom Tromey <tom@tromey.com>
7937
7938 PR exp/25299:
7939 * valarith.c (promotion_type, complex_binop): New functions.
7940 (scalar_binop): Handle complex numbers. Use promotion_type.
7941 (value_pos, value_neg, value_complement): Handle complex numbers.
7942
7943 2020-04-01 Tom Tromey <tom@tromey.com>
7944
7945 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7946 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7947 (parse_number): Handle complex numbers.
7948
7949 2020-04-01 Tom Tromey <tom@tromey.com>
7950
7951 * c-valprint.c (c_decorations): Change complex suffix to "i".
7952
7953 2020-04-01 Tom Tromey <tom@tromey.com>
7954
7955 * valprint.c (generic_value_print_complex): Use accessors.
7956 * value.h (value_real_part, value_imaginary_part): Declare.
7957 * valops.c (value_real_part, value_imaginary_part): New
7958 functions.
7959 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7960
7961 2020-04-01 Tom Tromey <tom@tromey.com>
7962
7963 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7964 (read_range_type): Update.
7965 * mdebugread.c (basic_type): Update.
7966 * go-lang.c (build_go_types): Use init_complex_type.
7967 * gdbtypes.h (struct main_type) <complex_type>: New member.
7968 (init_complex_type): Update.
7969 (arch_complex_type): Don't declare.
7970 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7971 Make name if none given. Use alloc_type_copy. Look for cached
7972 complex type.
7973 (arch_complex_type): Remove.
7974 (gdbtypes_post_init): Use init_complex_type.
7975 * f-lang.c (build_fortran_types): Use init_complex_type.
7976 * dwarf2/read.c (read_base_type): Update.
7977 * d-lang.c (build_d_types): Use init_complex_type.
7978 * ctfread.c (read_base_type): Update.
7979
7980 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7981
7982 * infrun.c (stop_all_threads): Update assertion, plus when
7983 stopping threads, take into account that we might be trying
7984 to stop an all-stop target.
7985 (stop_waiting): Call 'stop_all_threads' if there exists a
7986 non-stop target.
7987
7988 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7989
7990 * target.h (exists_non_stop_target): New function declaration.
7991 * target.c (exists_non_stop_target): New function.
7992
7993 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7994
7995 PR gdb/24789
7996 * eval.c (is_integral_or_integral_reference): New function.
7997 (evaluate_subexp_standard): Allow integer references in
7998 pointer arithmetic.
7999
8000 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8001
8002 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8003 check for no ptid in the stop reply when the target is non-stop.
8004
8005 2020-04-01 Tom Tromey <tromey@adacore.com>
8006
8007 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8008 "name" parameter to rvalue reference. Initialize m_name_holder.
8009 <lookup_name_info>: New overloads.
8010 <name>: Return gdb::string_view.
8011 <c_str>: New method.
8012 <make_ignore_params>: Update.
8013 <search_name_hash>: Update.
8014 <language_lookup_name>: Return const char *.
8015 <m_name>: Change type.
8016 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8017 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8018 (lookup_name_info::match_any): Update.
8019 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8020 Update.
8021 * minsyms.c (linkage_name_str): Update.
8022 * language.c (default_symbol_name_matcher): Update.
8023 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8024 Update.
8025 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8026 (ada_lookup_name_info::ada_lookup_name_info): Update.
8027 (literal_symbol_name_matcher): Update.
8028
8029 2020-04-01 Tom Tromey <tromey@adacore.com>
8030
8031 * psymtab.c (psymtab_search_name): Remove function.
8032 (psym_lookup_symbol): Create search name and lookup name here.
8033 (lookup_partial_symbol): Remove "name" parameter; add
8034 lookup_name.
8035 (psym_expand_symtabs_for_function): Update.
8036
8037 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8038
8039 PR tui/25597:
8040 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8041
8042 2020-03-31 Tom Tromey <tromey@adacore.com>
8043
8044 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8045 memcpy.
8046
8047 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8048
8049 * features/riscv/32bit-csr.xml: Regenerated.
8050 * features/riscv/64bit-csr.xml: Regenerated.
8051
8052 2020-03-30 Tom Tromey <tromey@adacore.com>
8053
8054 * ada-valprint.c (print_variant_part): Update.
8055 * ada-lang.h (ada_which_variant_applies): Update.
8056 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8057 outer_valaddr parameters; replace with "outer" value parameter.
8058 (to_fixed_variant_branch_type): Update.
8059
8060 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8061
8062 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8063 <list>. Remove inclusion of observable.h.
8064 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8065 (struct arch_lwp_info): New struct.
8066 (class ppc_linux_dreg_interface): New class.
8067 (struct ppc_linux_process_info): New struct.
8068 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8069 <low_new_clone, low_forget_process, low_prepare_to_resume>
8070 <copy_thread_dreg_state, mark_thread_stale>
8071 <mark_debug_registers_changed, register_hw_breakpoint>
8072 <clear_hw_breakpoint, register_wp, clear_wp>
8073 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8074 <num_memory_accesses, get_trigger_type>
8075 <create_watchpoint_request, hwdebug_point_cmp>
8076 <init_arch_lwp_info, get_arch_lwp_info>
8077 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8078 methods.
8079 <struct ptid_hash>: New inner struct.
8080 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8081 members.
8082 (saved_dabr_value, hwdebug_info, max_slots_number)
8083 (struct hw_break_tuple, struct thread_points, ppc_threads)
8084 (have_ptrace_hwdebug_interface)
8085 (hwdebug_find_thread_points_by_tid)
8086 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8087 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8088 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8089 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8090 use m_dreg_interface.
8091 (hwdebug_point_cmp): Change to...
8092 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8093 reference arguments instead of pointers.
8094 (ppc_linux_nat_target::ranged_break_num_registers): Use
8095 m_dreg_interface.
8096 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8097 m_dreg_interface. Call register_hw_breakpoint.
8098 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8099 m_dreg_interface. Call clear_hw_breakpoint.
8100 (get_trigger_type): Change to...
8101 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8102 comment.
8103 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8104 use m_dreg_interface. Call register_hw_breakpoint.
8105 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8106 use m_dreg_interface. Call clear_hw_breakpoint.
8107 (can_use_watchpoint_cond_accel): Change to...
8108 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8109 method. Update comment, use m_dreg_interface and
8110 m_process_info.
8111 (calculate_dvc): Change to...
8112 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8113 m_dreg_interface.
8114 (num_memory_accesses): Change to...
8115 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8116 (check_condition): Change to...
8117 (ppc_linux_nat_target::check_condition): ...this method.
8118 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8119 comment, use m_dreg_interface.
8120 (create_watchpoint_request): Change to...
8121 (ppc_linux_nat_target::create_watchpoint_request): ...this
8122 method. Use m_dreg_interface.
8123 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8124 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8125 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8126 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8127 (ppc_linux_nat_target::low_forget_process)
8128 (ppc_linux_nat_target::low_new_fork)
8129 (ppc_linux_nat_target::low_new_clone)
8130 (ppc_linux_nat_target::low_delete_thread)
8131 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8132 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8133 only call mark_thread_stale.
8134 (ppc_linux_thread_exit): Remove.
8135 (ppc_linux_nat_target::stopped_data_address): Change to...
8136 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8137 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8138 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8139 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8140 comment. Call low_stopped_data_address.
8141 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8142 m_dreg_interface.
8143 (ppc_linux_nat_target::masked_watch_num_registers): Use
8144 m_dreg_interface.
8145 (ppc_linux_nat_target::copy_thread_dreg_state)
8146 (ppc_linux_nat_target::mark_thread_stale)
8147 (ppc_linux_nat_target::mark_debug_registers_changed)
8148 (ppc_linux_nat_target::register_hw_breakpoint)
8149 (ppc_linux_nat_target::clear_hw_breakpoint)
8150 (ppc_linux_nat_target::register_wp)
8151 (ppc_linux_nat_target::clear_wp)
8152 (ppc_linux_nat_target::init_arch_lwp_info)
8153 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8154 (_initialize_ppc_linux_nat): Remove observer callback.
8155
8156 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8157
8158 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8159 (ppc_linux_nat_target::auxv_parse)
8160 (ppc_linux_nat_target::read_description)
8161 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8162 Move up.
8163
8164 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8165
8166 * linux-nat.h (low_new_clone): New method.
8167 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8168
8169 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8170
8171 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8172 (dbx_expand_psymtab): ... this.
8173 (start_psymtab): Update.
8174 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8175 (mdebug_expand_psymtab): ... this.
8176 (parse_partial_symbols): Update.
8177 (new_psymtab): Update.
8178 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8179 (xcoff_expand_psymtab): ... this.
8180 (xcoff_start_psymtab): Update.
8181
8182 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8183
8184 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8185 <expand_dependencies>: ... this.
8186 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8187 (partial_symtab::expand_dependencies): ... this.
8188 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8189 Update.
8190 (dwarf2_psymtab::expand_psymtab): Update.
8191 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8192 * mdebugread.c (psymtab_to_symtab_1): Update.
8193 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8194
8195 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8196
8197 * psympriv.h (discard_psymtab): Remove.
8198 * dbxread.c (dbx_end_psymtab): Update.
8199 * xcoffread.c (xcoff_end_psymtab): Update.
8200
8201 2020-03-28 Tom Tromey <tom@tromey.com>
8202
8203 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8204 comment.
8205
8206 2020-03-28 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8209
8210 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8211
8212 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8213
8214 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8215
8216 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8217
8218 2020-03-26 Tom Tromey <tom@tromey.com>
8219
8220 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8221 (mark_common_block_symbol_computed, read_tag_string_type)
8222 (attr_to_dynamic_prop, read_subrange_type): Update.
8223 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8224 to be methods on struct attribute.
8225 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8226 (read_call_site_scope, partial_die_info::read)
8227 (partial_die_info::read, lookup_die_type, follow_die_ref):
8228 Update.
8229 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8230 from dwarf2_get_ref_die_offset.
8231 (attribute::constant_value): New method, from
8232 dwarf2_get_attr_constant_value.
8233 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8234 Declare method.
8235 <constant_value>: New method.
8236
8237 2020-03-26 Tom Tromey <tom@tromey.com>
8238
8239 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8240 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8241 (dwarf_type_encoding_name): Move to stringify.c.
8242 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8243 * dwarf2/stringify.c: New file.
8244 * dwarf2/stringify.h: New file.
8245
8246 2020-03-26 Tom Tromey <tom@tromey.com>
8247
8248 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8249 Rewrite.
8250
8251 2020-03-26 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8254 methods.
8255 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8256 (lookup_ranges_base): Likewise.
8257 (read_cutu_die_from_dwo, read_full_die_1): Update.
8258
8259 2020-03-26 Tom Tromey <tom@tromey.com>
8260
8261 * dwarf2/read.c (read_import_statement, read_file_scope)
8262 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8263 (read_lexical_block_scope, read_call_site_scope)
8264 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8265 (handle_struct_member_die, process_structure_scope)
8266 (update_enumeration_type_from_children)
8267 (process_enumeration_scope, read_array_type, read_common_block)
8268 (read_namespace, read_module, read_subroutine_type): Update.
8269 (sibling_die): Remove.
8270
8271 2020-03-26 Tom Tromey <tom@tromey.com>
8272
8273 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8274 (build_type_psymtabs_reader, read_structure_type)
8275 (read_enumeration_type, read_full_die_1): Update.
8276 (dwarf2_attr_no_follow): Move to die.h.
8277 * dwarf2/die.h (struct die_info) <attr>: New method.
8278
8279 2020-03-26 Tom Tromey <tom@tromey.com>
8280
8281 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8282 <base_address>: Now an optional.
8283 (dwarf2_find_base_address, dwarf2_rnglists_process)
8284 (dwarf2_ranges_process, fill_in_loclist_baton)
8285 (dwarf2_symbol_mark_computed): Update.
8286
8287 2020-03-26 Tom Tromey <tom@tromey.com>
8288
8289 * dwarf2/read.c (struct die_info): Move to die.h.
8290 * dwarf2/die.h: New file.
8291
8292 2020-03-26 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8295 * dwarf2/read.c
8296 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8297 Move to line-header.c.
8298 (read_checked_initial_length_and_offset, read_formatted_entries):
8299 Likewise.
8300 (dwarf_decode_line_header): Split into two.
8301 * dwarf2/line-header.c
8302 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8303 Move from read.c.
8304 (read_checked_initial_length_and_offset, read_formatted_entries):
8305 Likewise.
8306 (dwarf_decode_line_header): New function, split from read.c.
8307
8308 2020-03-26 Tom Tromey <tom@tromey.com>
8309
8310 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8311 Declare method.
8312 * dwarf2/read.c (read_attribute_value): Update.
8313 (dwarf2_per_objfile::read_line_string): Rename from
8314 read_indirect_line_string.
8315 (read_formatted_entries): Update.
8316
8317 2020-03-26 Tom Tromey <tom@tromey.com>
8318
8319 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8320 variable.
8321
8322 2020-03-26 Tom Tromey <tom@tromey.com>
8323
8324 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8325 const.
8326 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8327 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8328 parameter const.
8329
8330 2020-03-26 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8333 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8334 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8335 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8336
8337 2020-03-26 Tom Tromey <tom@tromey.com>
8338
8339 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8340 file_names_size, file_full_name, file_file_name>: Use const.
8341 <file_name_at, file_names>: Add const overload.
8342 * dwarf2/line-header.c (line_header::file_file_name)
8343 (line_header::file_full_name): Update.
8344
8345 2020-03-26 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8348 (macro_start_file, consume_improper_spaces)
8349 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8350 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8351 (dwarf_decode_macros): Move to macro.c.
8352 * dwarf2/macro.c: New file.
8353 * dwarf2/macro.h: New file.
8354 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8355
8356 2020-03-26 Tom Tromey <tom@tromey.com>
8357
8358 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8359 method.
8360 * dwarf2/section.c: New method. From
8361 read_indirect_string_at_offset_from.
8362 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8363 (read_indirect_string_at_offset_from): Move to section.c.
8364 (read_indirect_string_at_offset): Rewrite.
8365 (read_indirect_line_string_at_offset): Remove.
8366 (read_indirect_string, read_indirect_line_string)
8367 (dwarf_decode_macro_bytes): Update.
8368
8369 2020-03-26 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/section.h (struct dwarf2_section_info)
8372 <overload_complaint>: Declare.
8373 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8374 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8375 Rename from dwarf2_section_buffer_overflow_complaint.
8376 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8377 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8378
8379 2020-03-26 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8382 Declare.
8383 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8384 Move from read.c.
8385 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8386 to section.c.
8387
8388 2020-03-26 Tom Tromey <tom@tromey.com>
8389
8390 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8391
8392 2020-03-26 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8395 "builder".
8396 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8397 parameter.
8398 (dwarf_decode_macros): Update.
8399
8400 2020-03-26 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/read.c (read_attribute_value): Update.
8403 (read_indirect_string_from_dwz): Move to dwz.c; change into
8404 method.
8405 (dwarf_decode_macro_bytes): Update.
8406 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8407 * dwarf2/dwz.c: New file.
8408 * Makefile.in (COMMON_SFILES): Add dwz.c.
8409
8410 2020-03-26 Tom Tromey <tom@tromey.com>
8411
8412 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8413 * dwarf2/read.c: Add include.
8414 * dwarf2/index-write.c: Add include.
8415 * dwarf2/index-cache.c: Add include.
8416 * dwarf2/dwz.h: New file.
8417
8418 2020-03-25 Tom Tromey <tom@tromey.com>
8419
8420 * compile/compile-object-load.c (get_out_value_type): Mention
8421 correct symbol name in error message.
8422
8423 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8424
8425 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8426
8427 2020-03-25 Tom de Vries <tdevries@suse.de>
8428
8429 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8430 * symmisc.c (dump_symtab_1): Print user and includes fields.
8431 (maintenance_info_symtabs): Same.
8432
8433 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 PR gdb/25534
8436 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8437 (riscv_regcache_cooked_write): New function.
8438 (riscv_push_dummy_call): Use new function.
8439 (riscv_return_value): Likewise.
8440
8441 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8442
8443 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8444 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8445 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8446 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8447 * infrun.c (follow_fork): Likewise.
8448 (follow_fork_inferior): Likewise.
8449 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8450 * linux-nat.h (class linux_nat_target): Likewise.
8451 * remote.c (class remote_target) <follow_fork>: Likewise.
8452 (remote_target::follow_fork): Likewise.
8453 * target-delegates.c: Re-generate.
8454 * target.c (default_follow_fork): Likewise.
8455 (target_follow_fork): Likewise.
8456 * target.h (struct target_ops) <follow_fork>: Likewise.
8457 (target_follow_fork): Likewise.
8458
8459 2020-03-24 Tom de Vries <tdevries@suse.de>
8460
8461 * psymtab.c (maintenance_info_psymtabs): Print user field.
8462
8463 2020-03-20 Tom Tromey <tromey@adacore.com>
8464
8465 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8466 const.
8467 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8468 const.
8469
8470 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8471
8472 * ptrace.m4: Don't check for ptrace declaration.
8473 * config.in: Re-generate.
8474 * configure: Re-generate.
8475 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8476 not defined.
8477
8478 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8479
8480 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8481 `PTRACE_TYPE_RET'.
8482 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8483 * sparc-nat.c (gdb_ptrace): Likewise.
8484 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8485
8486 2020-03-20 Tom Tromey <tromey@adacore.com>
8487
8488 * c-exp.y (lex_one_token): Fix assert.
8489
8490 2020-03-20 Tom Tromey <tromey@adacore.com>
8491
8492 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8493 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8494 strncpy call.
8495
8496 2020-03-20 Tom Tromey <tromey@adacore.com>
8497
8498 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8499
8500 2020-03-20 Tom Tromey <tromey@adacore.com>
8501
8502 * ada-valprint.c (print_variant_part): Remove parameters; switch
8503 to value-based API.
8504 (print_field_values): Likewise.
8505 (ada_val_print_struct_union): Likewise.
8506 (ada_value_print_1): Update.
8507
8508 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8509
8510 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8511 nbsd_nat_target instead of inf_ptrace_target.
8512 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8513 nbsd_nat_target.
8514
8515 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8516
8517 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8518 it to the ptrace call.
8519 * (store_registers): Likewise.
8520
8521 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8522
8523 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8524 it to the ptrace call.
8525 * (store_registers): Likewise.
8526
8527 2020-03-19 Luis Machado <luis.machado@linaro.org>
8528
8529 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8530 valid, fetch vg value from ptrace.
8531
8532 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8533 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8534 * inf-ptrace.c: Likewise.
8535 * (gdb_ptrace): Add.
8536 * (inf_ptrace_target::resume): Update.
8537 * (inf_ptrace_target::xfer_partial): Likewise.
8538 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8539 * (inf_ptrace_peek_poke): Update.
8540
8541 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8542
8543 * x86-bsd-nat.c (gdb_ptrace): New.
8544 * (x86bsd_dr_set): Add new argument `ptid'.
8545 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8546 x86bsd_dr_set_addr): Update.
8547
8548 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8549
8550 * remote.c (remote_target::process_stop_reply): Handle events for
8551 all threads differently.
8552
8553 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8554
8555 * completer.c (completion_tracker::remove_completion): Define new
8556 function.
8557 * completer.h (completion_tracker::remove_completion): Declare new
8558 function.
8559 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8560 when adding a C++ function symbol.
8561
8562 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * completer.c (completion_tracker::completion_hash_entry): Define
8565 new class.
8566 (advance_to_filename_complete_word_point): Call
8567 recompute_lowest_common_denominator.
8568 (completion_tracker::completion_tracker): Call discard_completions
8569 to setup the hash table.
8570 (completion_tracker::discard_completions): Allow for being called
8571 from the constructor, pass new equal function, and element deleter
8572 when constructing the hash table. Initialise new class member
8573 variables.
8574 (completion_tracker::maybe_add_completion): Remove use of
8575 m_entries_vec, and store more information into m_entries_hash.
8576 (completion_tracker::recompute_lcd_visitor): New function, most
8577 content taken from...
8578 (completion_tracker::recompute_lowest_common_denominator):
8579 ...here, this now just visits each item in the hash calling the
8580 above visitor.
8581 (completion_tracker::build_completion_result): Remove use of
8582 m_entries_vec, call recompute_lowest_common_denominator.
8583 * completer.h (completion_tracker::have_completions): Remove use
8584 of m_entries_vec.
8585 (completion_tracker::completion_hash_entry): Declare new class.
8586 (completion_tracker::recompute_lowest_common_denominator): Change
8587 function signature.
8588 (completion_tracker::recompute_lcd_visitor): Declare new function.
8589 (completion_tracker::m_entries_vec): Delete.
8590 (completion_tracker::m_entries_hash): Initialize to NULL.
8591 (completion_tracker::m_lowest_common_denominator_valid): New
8592 member variable.
8593 (completion_tracker::m_lowest_common_denominator_max_length): New
8594 member variable.
8595
8596 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8597
8598 * regformats/regdef.h: Put reg in gdb namespace.
8599
8600 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8601
8602 * i386-bsd-nat.c (gdb_ptrace): New.
8603 * (i386bsd_fetch_inferior_registers,
8604 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8605 * (i386bsd_fetch_inferior_registers,
8606 i386bsd_store_inferior_registers) Use gdb_ptrace.
8607
8608 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8609
8610 * amd64-bsd-nat.c (gdb_ptrace): New.
8611 * (amd64bsd_fetch_inferior_registers,
8612 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8613 * (amd64bsd_fetch_inferior_registers,
8614 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8615
8616 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8617
8618 * user-regs.c (user_reg::read): Rename to...
8619 (user_reg::xread): ...this.
8620 * (append_user_reg): Rename argument `read' to `xread'.
8621 * (user_reg_add_builtin): Likewise.
8622 * (user_reg_add): Likewise.
8623 * (value_of_user_reg): Likewise.
8624
8625 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8626
8627 * sparc-nat.c (gdb_ptrace): New.
8628 * sparc-nat.c (sparc_fetch_inferior_registers)
8629 (sparc_store_inferior_registers) Remove obsolete comment.
8630 * sparc-nat.c (sparc_fetch_inferior_registers)
8631 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8632 * sparc-nat.c (sparc_fetch_inferior_registers)
8633 (sparc_store_inferior_registers) Use gdb_ptrace.
8634
8635 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8636
8637 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8638 it to the ptrace call.
8639 * sh-nbsd-nat.c (store_registers): Likewise.
8640
8641 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8642
8643 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8644 nbsd_nat_target instead of inf_ptrace_target.
8645 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8646 nbsd_nat_target.
8647
8648 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8649
8650 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8651
8652 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8653
8654 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8655 <sys/sysctl.h>.
8656 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8657
8658 2020-03-17 Tom de Vries <tdevries@suse.de>
8659
8660 PR gdb/23710
8661 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8662 fields.
8663 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8664 fields.
8665 (process_imported_unit_die): Skip import of c++ CUs.
8666
8667 2020-03-16 Tom Tromey <tom@tromey.com>
8668
8669 * p-valprint.c (pascal_object_print_value): Initialize
8670 base_value.
8671
8672 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8673 Shahab Vahedi <shahab@synopsys.com>
8674
8675 * Makefile.in: Add arch/arc.o
8676 * configure.tgt: Likewise.
8677 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8678 (_initialize_arc_tdep): Don't initialize old target descriptions.
8679 (arc_read_description): New function to cache target descriptions.
8680 * arc-tdep.h (arc_read_description): Add proto type.
8681 * arch/arc.c: New file.
8682 * arch/arc.h: Likewise.
8683 * features/Makefile: Replace old target descriptions with new.
8684 * features/arc-arcompact.c: Remove.
8685 * features/arc-arcompact.xml: Likewise.
8686 * features/arc-v2.c: Likewise
8687 * features/arc-v2.xml: Likewise
8688 * features/arc/aux-arcompact.xml: New file.
8689 * features/arc/aux-v2.xml: Likewise.
8690 * features/arc/core-arcompact.xml: Likewise.
8691 * features/arc/core-v2.xml: Likewise.
8692 * features/arc/aux-arcompact.c: Generate.
8693 * features/arc/aux-v2.c: Likewise.
8694 * features/arc/core-arcompact.c: Likewise.
8695 * features/arc/core-v2.c: Likewise.
8696 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8697
8698 2020-03-16 Tom Tromey <tromey@adacore.com>
8699
8700 PR gdb/25663:
8701 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8702 putting value into bcache.
8703
8704 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8705
8706 PR gdb/21500
8707 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8708 to...
8709 (amd64_windows_init_abi_common): ... this. Don't set size of
8710 long type.
8711 (amd64_windows_init_abi): New function.
8712 (amd64_cygwin_init_abi): New function.
8713 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8714 the Cygwin OS ABI.
8715 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8716 comment.
8717
8718 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8721 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8722 (pe_import_directory_entry): New struct type.
8723 (is_linked_with_cygwin_dll): New function.
8724 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8725 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8726 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8727
8728 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8729
8730 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8731 i386_cygwin_core_osabi_sniffer.
8732
8733 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * i386-cygwin-tdep.c: Rename to...
8736 * i386-windows-tdep.c: ... this.
8737 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8738 i386-windows-tdep.c.
8739 * configure.tgt: Likewise.
8740
8741 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8744 * osabi.c (gdb_osabi_names): Add "Windows".
8745 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8746 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8747 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8748 i386_cygwin_osabi_sniffer.
8749 (_initialize_i386_cygwin_tdep): Register OS ABI
8750 GDB_OSABI_WINDOWS for i386.
8751 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8752 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8753 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8754 for x86-64.
8755 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8756 when the target matches '*-*-mingw*'.
8757
8758 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * defs.h (enum gdb_osabi): Move to...
8761 * osabi.h (enum gdb_osabi): ... here.
8762 * gdbarch.sh: Include osabi.h in gdbarch.h.
8763 * gdbarch.h: Re-generate.
8764
8765 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8768 function.
8769 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8770
8771 2020-03-14 Tom Tromey <tom@tromey.com>
8772
8773 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8774 for C++.
8775 (c_type_print_modifier): Likewise. Add "language" parameter.
8776 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8777 (c_type_print_base_1): Update.
8778 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8779 constants.
8780 * type-stack.c (type_stack::insert): Handle tp_atomic and
8781 tp_restrict.
8782 (type_stack::follow_type_instance_flags): Likewise.
8783 (type_stack::follow_types): Likewise. Merge type-following code.
8784 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8785 (space_identifier, cv_with_space_id)
8786 (const_or_volatile_or_space_identifier_noopt)
8787 (const_or_volatile_or_space_identifier): Remove.
8788 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8789 rules.
8790 (ptr_operator, typebase): Update.
8791 (enum token_flag) <FLAG_C>: New constant.
8792 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8793 "_Atomic".
8794 (lex_one_token): Handle FLAG_C.
8795
8796 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8797
8798 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8799 it to the ptrace call.
8800 * m68k-bsd-nat.c (store_registers): Likewise.
8801
8802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8803
8804 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8805 gdb_byte *.
8806 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8807 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8808 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8809
8810 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8811
8812 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8813 nbsd_nat_target instead of inf_ptrace_target.
8814 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8815 nbsd_nat_target.
8816
8817 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8818
8819 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8820 register_t.
8821
8822 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8823
8824 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8825 it to the ptrace call.
8826 * alpha-bsd-nat.c (store_registers): Likewise.
8827
8828 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8829
8830 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8831 includes.
8832 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8833 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8834 fill_fpregset): Likewise.
8835
8836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8837
8838 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8839 nbsd_nat_target instead of inf_ptrace_target.
8840 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8841 nbsd_nat_target.
8842
8843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8844
8845 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8846 register_t.
8847
8848 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8849
8850 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8851 it to the ptrace call.
8852 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8853 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8854 * arm-nbsd-nat.c (store_register): Likewise.
8855 * arm-nbsd-nat.c (store_regs): Likewise.
8856 * arm-nbsd-nat.c (store_fp_register): Likewise.
8857 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8858
8859 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8860
8861 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8862 nbsd_nat_target instead of inf_ptrace_target.
8863 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8864 nbsd_nat_target.
8865
8866 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8867
8868 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8869 it to the ptrace call.
8870 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8871
8872 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8873
8874 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8875 it to the ptrace call.
8876 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8877
8878 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8879
8880 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8881 gdb_byte *.
8882 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8883
8884 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8885
8886 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8887 instead of inf_ptrace_target.
8888 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8889 nbsd_nat_target.
8890
8891 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8892
8893 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8894 register_t.
8895
8896 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8897
8898 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8899 register_t.
8900
8901 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8902
8903 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8904 register_t.
8905
8906 2020-03-13 Tom Tromey <tom@tromey.com>
8907
8908 * value.h (val_print): Don't declare.
8909 * valprint.h (val_print_array_elements)
8910 (val_print_scalar_formatted, generic_val_print): Don't declare.
8911 * valprint.c (generic_val_print_array): Take a struct value.
8912 (generic_val_print_ptr, generic_val_print_memberptr)
8913 (generic_val_print_bool, generic_val_print_int)
8914 (generic_val_print_char, generic_val_print_complex)
8915 (generic_val_print): Remove.
8916 (generic_value_print): Update.
8917 (do_val_print): Remove unused parameters. Don't call
8918 la_val_print.
8919 (val_print): Remove.
8920 (common_val_print): Update. Don't call value_check_printable.
8921 (val_print_scalar_formatted, val_print_array_elements): Remove.
8922 * rust-lang.c (rust_val_print): Remove.
8923 (rust_language_defn): Update.
8924 * p-valprint.c (pascal_val_print): Remove.
8925 (pascal_value_print_inner): Update.
8926 (pascal_object_print_val_fields, pascal_object_print_val):
8927 Remove.
8928 (pascal_object_print_static_field): Update.
8929 * p-lang.h (pascal_val_print): Don't declare.
8930 * p-lang.c (pascal_language_defn): Update.
8931 * opencl-lang.c (opencl_language_defn): Update.
8932 * objc-lang.c (objc_language_defn): Update.
8933 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8934 * m2-lang.h (m2_val_print): Don't declare.
8935 * m2-lang.c (m2_language_defn): Update.
8936 * language.h (struct language_defn) <la_val_print>: Remove.
8937 * language.c (unk_lang_value_print_inner): Rename. Change
8938 argument types.
8939 (unknown_language_defn, auto_language_defn): Update.
8940 * go-valprint.c (go_val_print): Remove.
8941 * go-lang.h (go_val_print): Don't declare.
8942 * go-lang.c (go_language_defn): Update.
8943 * f-valprint.c (f_val_print): Remove.
8944 * f-lang.h (f_value_print): Don't declare.
8945 * f-lang.c (f_language_defn): Update.
8946 * d-valprint.c (d_val_print): Remove.
8947 * d-lang.h (d_value_print): Don't declare.
8948 * d-lang.c (d_language_defn): Update.
8949 * cp-valprint.c (cp_print_value_fields)
8950 (cp_print_value_fields_rtti, cp_print_value): Remove.
8951 (cp_print_static_field): Update.
8952 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8953 (c_val_print_struct, c_val_print_union, c_val_print_int)
8954 (c_val_print_memberptr, c_val_print): Remove.
8955 * c-lang.h (c_val_print_array, cp_print_value_fields)
8956 (cp_print_value_fields_rtti): Don't declare.
8957 * c-lang.c (c_language_defn, cplus_language_defn)
8958 (asm_language_defn, minimal_language_defn): Update.
8959 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8960 (ada_val_print_enum): Take a struct value.
8961 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8962 (ada_val_print): Remove.
8963 (ada_value_print_1): Update.
8964 (printable_val_type): Remove.
8965 * ada-lang.h (ada_val_print): Don't declare.
8966 * ada-lang.c (ada_language_defn): Update.
8967
8968 2020-03-13 Tom Tromey <tom@tromey.com>
8969
8970 * valprint.c (do_val_print): Update.
8971 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8972 a struct value.
8973 (value_to_value_object_no_release): Declare.
8974 * python/py-value.c (value_to_value_object_no_release): New
8975 function.
8976 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8977 struct value.
8978 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8979 function.
8980 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8981 a struct value.
8982 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8983 Declare.
8984 (gdbscm_apply_val_pretty_printer): Take a struct value.
8985 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8986 value.
8987 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8988 value.
8989 * extension-priv.h (struct extension_language_ops)
8990 <apply_val_pretty_printer>: Take a struct value.
8991 * cp-valprint.c (cp_print_value): Create a struct value.
8992 (cp_print_value): Update.
8993
8994 2020-03-13 Tom Tromey <tom@tromey.com>
8995
8996 * ada-valprint.c (print_field_values): Call common_val_print.
8997
8998 2020-03-13 Tom Tromey <tom@tromey.com>
8999
9000 * ada-valprint.c (val_print_packed_array_elements): Remove
9001 bitoffset and val parameters. Call common_val_print.
9002 (ada_val_print_string): Remove offset, address, and original_value
9003 parameters.
9004 (ada_val_print_array): Update.
9005 (ada_value_print_array): New function.
9006 (ada_value_print_1): Call it.
9007
9008 2020-03-13 Tom Tromey <tom@tromey.com>
9009
9010 * ada-valprint.c (ada_value_print): Use common_val_print.
9011
9012 2020-03-13 Tom Tromey <tom@tromey.com>
9013
9014 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9015
9016 2020-03-13 Tom Tromey <tom@tromey.com>
9017
9018 * ada-valprint.c (ada_value_print_num): New function.
9019 (ada_value_print_1): Use it.
9020
9021 2020-03-13 Tom Tromey <tom@tromey.com>
9022
9023 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9024
9025 2020-03-13 Tom Tromey <tom@tromey.com>
9026
9027 * ada-valprint.c (ada_value_print_ptr): New function.
9028 (ada_value_print_1): Use it.
9029
9030 2020-03-13 Tom Tromey <tom@tromey.com>
9031
9032 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9033 call common_val_print.
9034 (ada_val_print_1): Update.
9035 (ada_value_print_1): New function.
9036 (ada_value_print_inner): Rewrite.
9037
9038 2020-03-13 Tom Tromey <tom@tromey.com>
9039
9040 * cp-valprint.c (cp_print_value_fields): Update.
9041 (cp_print_value): New function.
9042
9043 2020-03-13 Tom Tromey <tom@tromey.com>
9044
9045 * m2-valprint.c (m2_value_print_inner): Use
9046 cp_print_value_fields.
9047 * cp-valprint.c (cp_print_value_fields): New function.
9048 * c-valprint.c (c_value_print_struct): New function.
9049 (c_value_print_inner): Use c_value_print_struct.
9050 * c-lang.h (cp_print_value_fields): Declare.
9051
9052 2020-03-13 Tom Tromey <tom@tromey.com>
9053
9054 * c-valprint.c (c_value_print_array): New function.
9055 (c_value_print_inner): Use it.
9056
9057 2020-03-13 Tom Tromey <tom@tromey.com>
9058
9059 * c-valprint.c (c_value_print_memberptr): New function.
9060 (c_value_print_inner): Use it.
9061
9062 2020-03-13 Tom Tromey <tom@tromey.com>
9063
9064 * c-valprint.c (c_value_print_int): New function.
9065 (c_value_print_inner): Use it.
9066
9067 2020-03-13 Tom Tromey <tom@tromey.com>
9068
9069 * c-valprint.c (c_value_print_ptr): New function.
9070 (c_value_print_inner): Use it.
9071
9072 2020-03-13 Tom Tromey <tom@tromey.com>
9073
9074 * c-valprint.c (c_value_print_inner): Rewrite.
9075
9076 2020-03-13 Tom Tromey <tom@tromey.com>
9077
9078 * valprint.c (generic_value_print_complex): New function.
9079 (generic_value_print): Use it.
9080
9081 2020-03-13 Tom Tromey <tom@tromey.com>
9082
9083 * valprint.c (generic_val_print_float): Don't call
9084 val_print_scalar_formatted.
9085 (generic_val_print, generic_value_print): Update.
9086
9087 2020-03-13 Tom Tromey <tom@tromey.com>
9088
9089 * valprint.c (generic_value_print_char): New function
9090 (generic_value_print): Use it.
9091
9092 2020-03-13 Tom Tromey <tom@tromey.com>
9093
9094 * valprint.c (generic_value_print_int): New function.
9095 (generic_value_print): Use it.
9096
9097 2020-03-13 Tom Tromey <tom@tromey.com>
9098
9099 * valprint.c (generic_value_print_bool): New function.
9100 (generic_value_print): Use it.
9101
9102 2020-03-13 Tom Tromey <tom@tromey.com>
9103
9104 * valprint.c (generic_val_print_func): Simplify.
9105 (generic_val_print, generic_value_print): Update.
9106
9107 2020-03-13 Tom Tromey <tom@tromey.com>
9108
9109 * valprint.c (generic_val_print_flags): Remove.
9110 (generic_val_print, generic_value_print): Update.
9111 (val_print_type_code_flags): Add original_value parameter.
9112
9113 2020-03-13 Tom Tromey <tom@tromey.com>
9114
9115 * valprint.c (generic_val_print): Update.
9116 (generic_value_print): Update.
9117 * valprint.c (generic_val_print_enum): Don't call
9118 val_print_scalar_formatted.
9119
9120 2020-03-13 Tom Tromey <tom@tromey.com>
9121
9122 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9123 * valprint.c (generic_value_print_ptr): New function.
9124
9125 2020-03-13 Tom Tromey <tom@tromey.com>
9126
9127 * valprint.c (generic_value_print): Rewrite.
9128
9129 2020-03-13 Tom Tromey <tom@tromey.com>
9130
9131 * p-valprint.c (pascal_object_print_value_fields)
9132 (pascal_object_print_value): New functions.
9133
9134 2020-03-13 Tom Tromey <tom@tromey.com>
9135
9136 * p-valprint.c (pascal_value_print_inner): Rewrite.
9137
9138 2020-03-13 Tom Tromey <tom@tromey.com>
9139
9140 * f-valprint.c (f_value_print_innner): Rewrite.
9141
9142 2020-03-13 Tom Tromey <tom@tromey.com>
9143
9144 * m2-valprint.c (m2_print_unbounded_array): New overload.
9145 (m2_print_unbounded_array): Update.
9146 (m2_print_array_contents): Take a struct value.
9147 (m2_value_print_inner): Rewrite.
9148
9149 2020-03-13 Tom Tromey <tom@tromey.com>
9150
9151 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9152 (d_value_print_inner): New function.
9153 * d-lang.h (d_value_print_inner): Declare.
9154 * d-lang.c (d_language_defn): Use d_value_print_inner.
9155
9156 2020-03-13 Tom Tromey <tom@tromey.com>
9157
9158 * go-valprint.c (go_value_print_inner): New function.
9159 * go-lang.h (go_value_print_inner): Declare.
9160 * go-lang.c (go_language_defn): Use go_value_print_inner.
9161
9162 2020-03-13 Tom Tromey <tom@tromey.com>
9163
9164 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9165 API.
9166 (rust_val_print): Rewrite.
9167 (rust_value_print_inner): New function, from rust_val_print.
9168 (rust_language_defn): Use rust_value_print_inner.
9169
9170 2020-03-13 Tom Tromey <tom@tromey.com>
9171
9172 * ada-valprint.c (ada_value_print_inner): New function.
9173 * ada-lang.h (ada_value_print_inner): Declare.
9174 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9175
9176 2020-03-13 Tom Tromey <tom@tromey.com>
9177
9178 * f-valprint.c (f_value_print_innner): New function.
9179 * f-lang.h (f_value_print_innner): Declare.
9180 * f-lang.c (f_language_defn): Use f_value_print_innner.
9181
9182 2020-03-13 Tom Tromey <tom@tromey.com>
9183
9184 * p-valprint.c (pascal_value_print_inner): New function.
9185 * p-lang.h (pascal_value_print_inner): Declare.
9186 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9187
9188 2020-03-13 Tom Tromey <tom@tromey.com>
9189
9190 * m2-valprint.c (m2_value_print_inner): New function.
9191 * m2-lang.h (m2_value_print_inner): Declare.
9192 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9193
9194 2020-03-13 Tom Tromey <tom@tromey.com>
9195
9196 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9197 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9198 * c-valprint.c (c_value_print_inner): New function.
9199 * c-lang.h (c_value_print_inner): Declare.
9200 * c-lang.c (c_language_defn, cplus_language_defn)
9201 (asm_language_defn, minimal_language_defn): Use
9202 c_value_print_inner.
9203
9204 2020-03-13 Tom Tromey <tom@tromey.com>
9205
9206 * p-valprint.c (pascal_object_print_value_fields): Now static.
9207 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9208
9209 2020-03-13 Tom Tromey <tom@tromey.com>
9210
9211 * c-valprint.c (c_val_print_array): Simplify.
9212
9213 2020-03-13 Tom Tromey <tom@tromey.com>
9214
9215 * valprint.c (value_print_array_elements): New function.
9216 * valprint.h (value_print_array_elements): Declare.
9217
9218 2020-03-13 Tom Tromey <tom@tromey.com>
9219
9220 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9221 * mips-tdep.c (mips_print_register): Use
9222 value_print_scalar_formatted.
9223
9224 2020-03-13 Tom Tromey <tom@tromey.com>
9225
9226 * valprint.h (value_print_scalar_formatted): Declare.
9227 * valprint.c (value_print_scalar_formatted): New function.
9228
9229 2020-03-13 Tom Tromey <tom@tromey.com>
9230
9231 * valprint.h (generic_value_print): Declare.
9232 * valprint.c (generic_value_print): New function.
9233
9234 2020-03-13 Tom Tromey <tom@tromey.com>
9235
9236 * valprint.c (do_val_print): Call la_value_print_inner, if
9237 available.
9238 * rust-lang.c (rust_language_defn): Update.
9239 * p-lang.c (pascal_language_defn): Update.
9240 * opencl-lang.c (opencl_language_defn): Update.
9241 * objc-lang.c (objc_language_defn): Update.
9242 * m2-lang.c (m2_language_defn): Update.
9243 * language.h (struct language_defn) <la_value_print_inner>: New
9244 member.
9245 * language.c (unknown_language_defn, auto_language_defn): Update.
9246 * go-lang.c (go_language_defn): Update.
9247 * f-lang.c (f_language_defn): Update.
9248 * d-lang.c (d_language_defn): Update.
9249 * c-lang.c (c_language_defn, cplus_language_defn)
9250 (asm_language_defn, minimal_language_defn): Update.
9251 * ada-lang.c (ada_language_defn): Update.
9252
9253 2020-03-13 Tom Tromey <tom@tromey.com>
9254
9255 * c-valprint.c (c_value_print): Use common_val_print.
9256
9257 2020-03-13 Tom Tromey <tom@tromey.com>
9258
9259 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9260
9261 2020-03-13 Tom Tromey <tom@tromey.com>
9262
9263 * f-valprint.c (f77_print_array_1, f_val_print): Use
9264 common_val_print.
9265
9266 2020-03-13 Tom Tromey <tom@tromey.com>
9267
9268 * riscv-tdep.c (riscv_print_one_register_info): Use
9269 common_val_print.
9270
9271 2020-03-13 Tom Tromey <tom@tromey.com>
9272
9273 * mi/mi-main.c (output_register): Use common_val_print.
9274
9275 2020-03-13 Tom Tromey <tom@tromey.com>
9276
9277 * infcmd.c (default_print_one_register_info): Use
9278 common_val_print.
9279
9280 2020-03-13 Tom Tromey <tom@tromey.com>
9281
9282 * valprint.h (common_val_print_checked): Declare.
9283 * valprint.c (common_val_print_checked): New function.
9284 * stack.c (print_frame_arg): Use common_val_print_checked.
9285
9286 2020-03-13 Tom Tromey <tom@tromey.com>
9287
9288 * valprint.c (do_val_print): New function, from val_print.
9289 (val_print): Use do_val_print.
9290 (common_val_print): Use do_val_print.
9291
9292 2020-03-13 Tom Tromey <tom@tromey.com>
9293
9294 * valprint.c (value_print): Use scoped_value_mark.
9295
9296 2020-03-13 Tom de Vries <tdevries@suse.de>
9297
9298 PR symtab/25646
9299 * psymtab.c (partial_symtab::partial_symtab): Don't set
9300 globals_offset and statics_offset. Push element onto
9301 current_global_psymbols and current_static_psymbols stacks.
9302 (concat): New function.
9303 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9304 element from current_global_psymbols and current_static_psymbols
9305 stacks. Concat popped elements to global_psymbols and
9306 static_symbols.
9307 (add_psymbol_to_list): Use current_global_psymbols and
9308 current_static_psymbols stacks.
9309 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9310 current_static_psymbols fields.
9311
9312 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9313
9314 * corelow.c (sniff_core_bfd): Remove.
9315 (class core_target) <m_core_vec>: Remove.
9316 (core_target::core_target): Update.
9317 (core_file_fns): Remove.
9318 (deprecated_add_core_fns): Remove.
9319 (default_core_sniffer): Remove.
9320 (sniff_core_bfd): Remove.
9321 (default_check_format): Remove.
9322 (gdb_check_format): Remove.
9323 (core_target_open): Update.
9324 (core_target::get_core_register_section): Update.
9325 (get_core_registers_cb): Update.
9326 (core_target::fetch_registers): Update.
9327 * gdbcore.h (struct core_fns): Remove.
9328 (deprecated_add_core_fns): Remove.
9329 (default_core_sniffer): Remove.
9330 (default_check_format): Remove.
9331
9332 2020-03-12 Tom Tromey <tom@tromey.com>
9333
9334 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9335 CORE_ADDR.
9336 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9337
9338 2020-03-12 Tom Tromey <tom@tromey.com>
9339
9340 * remote.c (remote_target::download_tracepoint)
9341 (remote_target::enable_tracepoint)
9342 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9343 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9344 sprintf_vma.
9345
9346 2020-03-12 Tom Tromey <tom@tromey.com>
9347
9348 * symfile-mem.c: Update CORE_ADDR size assert.
9349
9350 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * selftest.m4: Move to gdbsupport/.
9353 * acinclude.m4: Update path to selftest.m4.
9354
9355 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9356
9357 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9358 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9359 gdbarch-selfselftests.c and selftest-arch.c.
9360 (SUBDIR_UNITTESTS_OBS): Rename to...
9361 (SELFTESTS_OBS): ... this.
9362 (COMMON_SFILES): Remove disasm-selftests.c and
9363 gdbarch-selftests.c.
9364 * configure.ac: Don't add selftest-arch.{c,o} to
9365 CONFIG_{SRCS,OBS}.
9366 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9367 preprocessor conditions.
9368
9369 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9370
9371 * configure.ac: Don't source bfd/development.sh.
9372 * selftest.m4: Modify comment.
9373 * configure: Re-generate.
9374
9375 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9376
9377 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9378 not "true" or "false".
9379 * configure: Re-generate.
9380
9381 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9382
9383 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9384 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9385 renamed to arm_nbsd_supply_gregset.
9386 (fetch_register): Update to call arm_nbsd_supply_gregset.
9387 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9388 (arm_netbsd_nat_target::fetch_registers): Update.
9389 (fetch_elfcore_registers): Removed.
9390 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9391 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9392 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9393 not require NetBSD system headers.
9394 (arm_nbsd_regset): New struct.
9395 (arm_nbsd_iterate_over_regset_sections): New function.
9396 (arm_netbsd_init_abi_common): Updated to call
9397 set_gdbarch_iterate_over_regset_sections.
9398 * arm-nbsd-tdep.h: New file.
9399
9400 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9401
9402 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9403 recursion.
9404
9405 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * configure: Re-generate.
9408
9409 2020-03-11 Tom Tromey <tromey@adacore.com>
9410
9411 * ada-typeprint.c (print_choices): Fix comment.
9412
9413 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9416 previous item in the list, when the list has no items.
9417
9418 2020-03-11 Tom de Vries <tdevries@suse.de>
9419
9420 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9421 PROP_LOCLIST handling code.
9422
9423 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9424
9425 * buildsym-legacy.c (record_line): Pass extra parameter to
9426 record_line.
9427 * buildsym.c (buildsym_compunit::record_line): Take an extra
9428 parameter, reduce duplication in the line table, and record the
9429 is_stmt flag in the line table.
9430 * buildsym.h (buildsym_compunit::record_line): Add extra
9431 parameter.
9432 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9433 non-statement lines.
9434 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9435 this to the symtab builder.
9436 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9437 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9438 through to dwarf_record_line_1.
9439 * infrun.c (process_event_stop_test): When stepping, don't stop at
9440 a non-statement instruction, and only refresh the step info when
9441 we land in the middle of a line's range. Also add an extra
9442 comment.
9443 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9444 field.
9445 * record-btrace.c (btrace_find_line_range): Only record lines
9446 marked as is-statement.
9447 * stack.c (frame_show_address): Show the frame address if we are
9448 in a non-statement sal.
9449 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9450 (maintenance_print_one_line_table): Print a header for the is_stmt
9451 column, and include is_stmt information in the output.
9452 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9453 preference to non-statements.
9454 (find_pcs_for_symtab_line): Prefer is-statement entries.
9455 (find_line_common): Likewise.
9456 * symtab.h (struct linetable_entry): Add is_stmt field.
9457 (struct symtab_and_line): Likewise.
9458 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9459 arranging the line table.
9460
9461 2020-03-07 Tom de Vries <tdevries@suse.de>
9462
9463 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9464 DIE.
9465
9466 2020-03-07 Tom Tromey <tom@tromey.com>
9467
9468 * valops.c (value_literal_complex): Remove obsolete comment.
9469 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9470 comment.
9471
9472 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9473
9474 * infrun.h: Forward-declare thread_info.
9475 (set_step_info): Add thread_info parameter, add doc.
9476 * infrun.c (set_step_info): Add thread_info parameter, move doc
9477 to header.
9478 * infrun.c (process_event_stop_test): Pass thread to
9479 set_step_info call.
9480 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9481 set_step_info.
9482 (prepare_one_step): Add thread_info parameter, pass it to
9483 set_step_frame and prepare_one_step (recursive) call.
9484 (step_1): Pass thread to prepare_one_step call.
9485 (step_command_fsm::should_stop): Pass thread to
9486 prepare_one_step.
9487 (until_next_fsm): Pass thread to set_step_frame call.
9488 (finish_command): Pass thread to set_step_info call.
9489
9490 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9491
9492 * windows-tdep.c (windows_solib_create_inferior_hook):
9493 Check if inferior is running.
9494
9495 2020-03-06 Tom de Vries <tdevries@suse.de>
9496
9497 * NEWS: Fix "the the".
9498 * ctfread.c: Same.
9499
9500 2020-03-06 Tom de Vries <tdevries@suse.de>
9501
9502 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9503
9504 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 * .dir-locals.el: Add a comment referencing the other copies of
9507 this file.
9508
9509 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9510
9511 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9512 psargs.
9513
9514 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9515
9516 * .gitattributes: New file.
9517
9518 2020-03-04 Tom Tromey <tom@tromey.com>
9519
9520 * symmisc.c (print_symbol_bcache_statistics)
9521 (print_objfile_statistics): Update.
9522 * symfile.c (allocate_symtab): Use intern.
9523 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9524 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9525 macro_cache>: Remove.
9526 <string_cache>: New member.
9527 (struct objfile) <intern>: New methods.
9528 * elfread.c (elf_symtab_read): Use intern.
9529 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9530 (dwarf2_compute_name, dwarf2_physname)
9531 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9532 names.
9533 (guess_partial_die_structure_name): Update.
9534 (partial_die_info::fixup): Intern name.
9535 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9536 name.
9537 (dwarf2_name): Intern name. Update.
9538 * buildsym.c (buildsym_compunit::get_macro_table): Use
9539 string_cache.
9540
9541 2020-03-04 Tom Tromey <tom@tromey.com>
9542
9543 * jit.c (bfd_open_from_target_memory): Make "target" const.
9544 * corefile.c (gnutarget): Now const.
9545 * gdbcore.h (gnutarget): Now const.
9546
9547 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9548
9549 * NEWS: Mention support for WOW64 processes.
9550 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9551 (amd64_windows_segment_register_p): Remove static.
9552 (_initialize_amd64_windows_nat): Update.
9553 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9554 * i386-windows-nat.c (context_offset): Update.
9555 (i386_mappings): Rename and remove static.
9556 (i386_windows_segment_register_p): Remove static.
9557 (_initialize_i386_windows_nat): Update.
9558 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9559 (STATUS_WX86_SINGLE_STEP): New macro.
9560 (EnumProcessModulesEx): New macro.
9561 (Wow64SuspendThread): New macro.
9562 (Wow64GetThreadContext): New macro.
9563 (Wow64SetThreadContext): New macro.
9564 (Wow64GetThreadSelectorEntry): New macro.
9565 (windows_set_context_register_offsets): Add static.
9566 (windows_set_segment_register_p): Likewise.
9567 (windows_add_thread): Adapt for WOW64 processes.
9568 (windows_fetch_one_register): Likewise.
9569 (windows_nat_target::fetch_registers): Likewise.
9570 (windows_store_one_register): Likewise.
9571 (display_selector): Likewise.
9572 (display_selectors): Likewise.
9573 (handle_exception): Likewise.
9574 (windows_continue): Likewise.
9575 (windows_nat_target::resume): Likewise.
9576 (windows_add_all_dlls): Likewise.
9577 (do_initial_windows_stuff): Likewise.
9578 (windows_nat_target::attach): Likewise.
9579 (windows_get_exec_module_filename): Likewise.
9580 (windows_nat_target::create_inferior): Likewise.
9581 (windows_xfer_siginfo): Likewise.
9582 (_initialize_loadable): Initialize Wow64SuspendThread,
9583 Wow64GetThreadContext, Wow64SetThreadContext,
9584 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9585 * windows-nat.h (windows_set_context_register_offsets):
9586 Remove declaration.
9587 (windows_set_segment_register_p): Likewise.
9588 (i386_windows_segment_register_p): Add declaration.
9589 (amd64_windows_segment_register_p): Likewise.
9590
9591 2020-03-04 Luis Machado <luis.machado@linaro.org>
9592
9593 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9594 in "info registers" for AArch64/ARM.
9595
9596 The change caused "info registers" to not print GPR's.
9597
9598 gdb/ChangeLog:
9599
9600 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9601
9602 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9603 when reg->group is empty and reggroup is not.
9604
9605 2020-03-03 Tom Tromey <tromey@adacore.com>
9606
9607 * dwarf2/frame.c (struct dwarf2_frame_cache)
9608 <checked_tailcall_bottom, entry_cfa_sp_offset,
9609 entry_cfa_sp_offset_p>: Remove members.
9610 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9611 (dwarf2_frame_prev_register): Don't call
9612 dwarf2_tailcall_sniffer_first.
9613 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9614 * frame-unwind.c (add_unwinder): New fuction.
9615 (frame_unwind_init): Use it. Add tailcall unwinder.
9616
9617 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9618 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9619
9620 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9621 value should be printed as true.
9622
9623 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9624
9625 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9626 (windows_init_abi): Set and use windows_so_ops.
9627
9628 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9629
9630 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9631 when verifying if dealing with a convenience variable.
9632
9633 2020-03-03 Luis Machado <luis.machado@linaro.org>
9634
9635 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9636
9637 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9638
9639 * infrun.c (gdbarch_supports_displaced_stepping): New.
9640 (use_displaced_stepping): Break up conditions in smaller pieces.
9641 Use gdbarch_supports_displaced_stepping.
9642 (displaced_step_prepare_throw): Use
9643 gdbarch_supports_displaced_stepping.
9644
9645 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9646
9647 * NEWS: Mention new behaviour of the history filename.
9648 * top.c (write_history_p): Add comment.
9649 (show_write_history_p): Add header comment, give a different
9650 message when history writing is on, but the history filename is
9651 empty.
9652 (history_filename): Add comment.
9653 (history_filename_empty): New function.
9654 (show_history_filename): Add header comment, give a different
9655 message when the filename is empty.
9656 (init_history): Compare history_filename against nullptr, and only
9657 read history if the filename is not empty.
9658 (set_history_filename): Add header comment, and only make
9659 non-empty filenames absolute.
9660 (init_main): Make the filename argument to 'set history filename'
9661 optional.
9662
9663 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9664
9665 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9666 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9667 (fetch_fp_register): Update.
9668 (fetch_fp_regs): Update.
9669 (store_fp_register): Update.
9670 (store_fp_regs): Update.
9671 (arm_netbsd_nat_target::read_description): New function.
9672 (fetch_elfcore_registers): Update.
9673
9674 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9675
9676 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9677 general_thread if the stop reply is missing a thread-id.
9678 (remote_target::process_stop_reply): Use the first non-exited
9679 thread if the target didn't pass a thread-id.
9680 * infrun.c (do_target_wait): Move call to
9681 switch_to_inferior_no_thread to ....
9682 (do_target_wait_1): ... here.
9683
9684 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9685
9686 * debuginfod-support.c: Include defs.h first.
9687
9688 2020-02-28 Tom de Vries <tdevries@suse.de>
9689
9690 * symfile.c (set_initial_language): Use default language for lookup.
9691
9692 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9693
9694 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9695 reader variable, pass `this` to read_cutu_die_from_dwo.
9696
9697 2020-02-27 Aaron Merey <amerey@redhat.com>
9698
9699 * source.c (open_source_file): Check for nullptr when computing
9700 srcpath.
9701
9702 2020-02-27 Tom Tromey <tromey@adacore.com>
9703
9704 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9705 member.
9706 (dwarf2_add_field): Don't update nfields.
9707 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9708
9709 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9710
9711 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9712 abs.
9713
9714 2020-02-26 Tom Tromey <tom@tromey.com>
9715
9716 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9717 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9718 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9719 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9720 per_cu_data.
9721
9722 2020-02-26 Tom Tromey <tom@tromey.com>
9723
9724 * dwarf2/index-write.c (psym_index_map): Change type.
9725 (add_address_entry_worker, write_one_signatured_type)
9726 (recursively_count_psymbols, recursively_write_psymbols)
9727 (class debug_names, psyms_seen_size, write_gdbindex)
9728 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9729
9730 2020-02-26 Aaron Merey <amerey@redhat.com>
9731
9732 * Makefile.in: Handle optional debuginfod support.
9733 * NEWS: Update.
9734 * README: Add --with-debuginfod summary.
9735 * config.in: Regenerate.
9736 * configure: Regenerate.
9737 * configure.ac: Handle optional debuginfod support.
9738 * debuginfod-support.c: debuginfod helper functions.
9739 * debuginfod-support.h: Ditto.
9740 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9741 summary.
9742 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9743 when a dwz file cannot be found.
9744 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9745 debuginfo file cannot be found.
9746 * source.c (open_source_file): Query debuginfod servers when a
9747 source file cannot be found.
9748 * top.c (print_gdb_configuration): Include
9749 --{with,without}-debuginfod in the output.
9750
9751 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9752
9753 * thread.c (thr_try_catch_cmd): Print thread name.
9754
9755 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9756
9757 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9758 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9759 dwarf2_fetch_die_type_sect_off): Move to...
9760 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9761 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9762 dwarf2_fetch_die_type_sect_off): ... here.
9763 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9764 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9765 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9766
9767 2020-02-26 Tom de Vries <tdevries@suse.de>
9768
9769 PR gdb/25603
9770 * symfile.c (set_initial_language): Exit-early if
9771 language_mode == language_mode_manual.
9772
9773 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9774
9775 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9776 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9777 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9778
9779 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9780
9781 * gdbtypes.c (create_array_type_with_stride): Handle negative
9782 array strides.
9783 * valarith.c (value_subscripted_rvalue): Likewise.
9784
9785 2020-02-25 Luis Machado <luis.machado@linaro.org>
9786
9787 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9788
9789 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9790
9791 * loc.h (dwarf2_get_die_type): Move to...
9792 * read.h (dwarf2_get_die_type): ... here.
9793 * read.c (dwarf2_get_die_type): Move doc to header.
9794
9795 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9796
9797 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9798 'gnulib/Makefile.in' to the list.
9799
9800 2020-02-24 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9803 Remove.
9804 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9805 XOBNEWVEC.
9806
9807 2020-02-24 Tom Tromey <tom@tromey.com>
9808
9809 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9810 New method.
9811 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9812 (dw2_do_instantiate_symtab, dw2_get_file_names)
9813 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9814
9815 2020-02-24 Tom Tromey <tom@tromey.com>
9816
9817 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9818 make_scoped_restore.
9819 (dwarf2_psymtab::read_symtab): Don't clear
9820 reading_partial_symbols.
9821
9822 2020-02-24 Tom de Vries <tdevries@suse.de>
9823
9824 PR gdb/25592
9825 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9826
9827 2020-02-24 Tom de Vries <tdevries@suse.de>
9828
9829 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9830 commands layout next/prev/regs.
9831
9832 2020-02-22 Tom Tromey <tom@tromey.com>
9833
9834 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9835 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9836
9837 2020-02-22 Tom Tromey <tom@tromey.com>
9838
9839 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9840
9841 2020-02-22 Tom Tromey <tom@tromey.com>
9842
9843 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9844 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9845 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9846 * tui/tui.c (_initialize_tui): Add usage text.
9847
9848 2020-02-22 Tom Tromey <tom@tromey.com>
9849
9850 * tui/tui-win.c (tui_set_focus_command)
9851 (tui_set_win_height_command): Use error_no_arg.
9852 (_initialize_tui_win): Update help text.
9853 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9854
9855 2020-02-22 Tom Tromey <tom@tromey.com>
9856
9857 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9858 * tui/tui-disasm.h (struct tui_disasm_window)
9859 <display_start_addr>: Declare.
9860 * tui/tui-source.h (struct tui_source_window)
9861 <display_start_addr>: Declare.
9862 * tui/tui-winsource.h (struct tui_source_window_base)
9863 <show_source_line, display_start_addr>: New methods.
9864 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9865 Rename and move to protected section.
9866 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9867 (tui_source_window_base::do_erase_source_content): Update.
9868 (tui_source_window_base::show_source_line): Now a method.
9869 (tui_source_window_base::show_source_content)
9870 (tui_source_window_base::tui_source_window_base)
9871 (tui_source_window_base::rerender)
9872 (tui_source_window_base::refill)
9873 (tui_source_window_base::do_scroll_horizontal)
9874 (tui_source_window_base::set_is_exec_point_at)
9875 (tui_source_window_base::update_breakpoint_info)
9876 (tui_source_window_base::update_exec_info): Update.
9877 * tui/tui-source.c (tui_source_window::set_contents)
9878 (tui_source_window::showing_source_p)
9879 (tui_source_window::do_scroll_vertical)
9880 (tui_source_window::location_matches_p)
9881 (tui_source_window::line_is_displayed): Update.
9882 (tui_source_window::display_start_addr): New method.
9883 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9884 (tui_disasm_window::do_scroll_vertical)
9885 (tui_disasm_window::location_matches_p): Update.
9886 (tui_disasm_window::display_start_addr): New method.
9887
9888 2020-02-22 Tom Tromey <tom@tromey.com>
9889
9890 * NEWS: Add entry for gdb.register_window_type.
9891 * tui/tui-layout.h (window_factory): New typedef.
9892 (tui_register_window): Declare.
9893 * tui/tui-layout.c (saved_tui_windows): New global.
9894 (tui_apply_current_layout): Use it.
9895 (tui_register_window): New function.
9896 * python/python.c (do_start_initialization): Call
9897 gdbpy_initialize_tui.
9898 (python_GdbMethods): Add "register_window_type" function.
9899 * python/python-internal.h (gdbpy_register_tui_window)
9900 (gdbpy_initialize_tui): Declare.
9901 * python/py-tui.c: New file.
9902 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9903
9904 2020-02-22 Tom Tromey <tom@tromey.com>
9905
9906 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9907
9908 2020-02-22 Tom Tromey <tom@tromey.com>
9909
9910 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9911 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9912 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9913 (tui_set_win_focus_to): Move from tui-win.c.
9914
9915 2020-02-22 Tom Tromey <tom@tromey.com>
9916
9917 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9918 functions.
9919 (known_window_types): New global.
9920 (tui_get_window_by_name): Reimplement.
9921 (initialize_known_windows): New function.
9922 (validate_window_name): Rewrite.
9923 (_initialize_tui_layout): Call initialize_known_windows.
9924
9925 2020-02-22 Tom Tromey <tom@tromey.com>
9926
9927 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9928 Remove constants.
9929 * tui/tui-winsource.h (struct tui_source_window_base)
9930 <tui_source_window_base>: Remove parameter.
9931 * tui/tui-winsource.c
9932 (tui_source_window_base::tui_source_window_base): Remove
9933 parameter.
9934 (tui_source_window_base::refill): Update.
9935 * tui/tui-stack.h (struct tui_locator_window)
9936 <tui_locator_window>: Update.
9937 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9938 Default the constructor.
9939 * tui/tui-regs.h (struct tui_data_item_window)
9940 <tui_data_item_window>: Default the constructor.
9941 (struct tui_data_window) <tui_data_window>: Likewise.
9942 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9943 Default the constructor.
9944 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9945 Default the constructor.
9946 <type>: Remove.
9947 (struct tui_win_info) <tui_win_info>: Default the constructor.
9948 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9949 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9950 Default the constructor.
9951
9952 2020-02-22 Tom Tromey <tom@tromey.com>
9953
9954 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9955 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9956 * tui/tui-win.c (tui_resize_all): Don't call
9957 tui_delete_invisible_windows.
9958 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9959 done.
9960 (tui_set_layout): Update.
9961 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9962 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9963 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9964
9965 2020-02-22 Tom Tromey <tom@tromey.com>
9966
9967 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9968 correctly.
9969
9970 2020-02-22 Tom Tromey <tom@tromey.com>
9971
9972 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9973
9974 2020-02-22 Tom Tromey <tom@tromey.com>
9975
9976 * tui/tui-winsource.h (struct tui_source_window_iterator)
9977 <inner_iterator>: New etytypedef.
9978 <tui_source_window_iterator>: Take "end" parameter.
9979 <tui_source_window_iterator>: Take iterator.
9980 <operator*, advance>: Update.
9981 <m_iter>: Change type.
9982 <m_end>: New field.
9983 (struct tui_source_windows) <begin, end>: Update.
9984 * tui/tui-layout.c (tui_windows): New global.
9985 (tui_apply_current_layout): Clear tui_windows.
9986 (tui_layout_window::apply): Update tui_windows.
9987 * tui/tui-data.h (tui_windows): Declare.
9988 (all_tui_windows): Now inline function.
9989 (class tui_window_iterator, struct all_tui_windows): Remove.
9990
9991 2020-02-22 Tom Tromey <tom@tromey.com>
9992
9993 PR tui/17850:
9994 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9995 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9996 "height" argument.
9997 (class tui_layout_window) <get_sizes>: Likewise.
9998 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9999 argument.
10000 <get_sizes>: Add "height" argument.
10001 <m_vertical>: New field.
10002 * tui/tui-layout.c (tui_layout_split::clone): Update.
10003 (tui_layout_split::get_sizes): Add "height" argument.
10004 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10005 (tui_new_layout_command): Parse "-horizontal".
10006 (_initialize_tui_layout): Update help string.
10007 (tui_layout_split::specification): Add "-horizontal" when needed.
10008 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10009 argument.
10010 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10011 New methods.
10012
10013 2020-02-22 Tom Tromey <tom@tromey.com>
10014
10015 * tui/tui-layout.h (enum tui_adjust_result): New.
10016 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10017 (class tui_layout_window) <adjust_size>: Return
10018 tui_adjust_result. Rewrite.
10019 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10020 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10021
10022 2020-02-22 Tom Tromey <tom@tromey.com>
10023
10024 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10025 parameter and return types.
10026 (class tui_layout_base) <specification>: Add "depth".
10027 (class tui_layout_window) <specification>: Add "depth".
10028 (class tui_layout_split) <specification>: Add "depth".
10029 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10030 and return types.
10031 (tui_new_layout_command): Parse sub-layouts.
10032 (_initialize_tui_layout): Update help string.
10033 (tui_layout_window::specification): Add "depth".
10034 (add_layout_command): Update.
10035
10036 2020-02-22 Tom Tromey <tom@tromey.com>
10037
10038 * NEWS: Add "tui new-layout" item.
10039 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10040 Add new-layout command to help text.
10041 (validate_window_name): New function.
10042 (tui_new_layout_command): New function.
10043 (_initialize_tui_layout): Register "new-layout".
10044 (tui_layout_window::specification): New method.
10045 (tui_layout_window::specification): New method.
10046 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10047 method.
10048 (class tui_layout_window) <specification>: New method.
10049 (class tui_layout_split) <specification>: New method.
10050
10051 2020-02-22 Tom Tromey <tom@tromey.com>
10052
10053 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10054 * tui/tui-win.c (window_name_completer): Update comment.
10055 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10056 Declare method.
10057 (class tui_layout_window) <replace_window>: Likewise.
10058 (class tui_layout_split) <replace_window>: Likewise.
10059 (tui_set_layout): Don't declare.
10060 (tui_set_initial_layout): Declare function.
10061 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10062 (asm_regs_layout): New globals.
10063 (tui_current_layout, show_layout): Remove.
10064 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10065 (find_layout, tui_apply_layout): New function.
10066 (layout_completer): Remove.
10067 (tui_next_layout): Reimplement.
10068 (tui_next_layout_command): New function.
10069 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10070 (tui_regs_layout): Reimplement.
10071 (tui_regs_layout_command): New function.
10072 (extract_display_start_addr): Rewrite.
10073 (next_layout, prev_layout): Remove.
10074 (tui_layout_window::replace_window): New method.
10075 (tui_layout_split::replace_window): New method.
10076 (destroy_layout): New function.
10077 (layout_list): New global.
10078 (add_layout_command): New function.
10079 (initialize_layouts): Update.
10080 (tui_layout_command): New function.
10081 (_initialize_tui_layout): Install "layout" commands.
10082 * tui/tui-data.h (enum tui_layout_type): Remove.
10083 (tui_current_layout): Don't declare.
10084
10085 2020-02-22 Tom Tromey <tom@tromey.com>
10086
10087 * tui/tui-regs.c (tui_reg_layout): Remove.
10088 (tui_reg_command): Use tui_regs_layout.
10089 * tui/tui-layout.h (tui_reg_command): Declare.
10090 * tui/tui-layout.c (tui_reg_command): New function.
10091
10092 2020-02-22 Tom Tromey <tom@tromey.com>
10093
10094 * tui/tui.c (tui_rl_delete_other_windows): Call
10095 tui_remove_some_windows.
10096 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10097 Declare method.
10098 (class tui_layout_window) <remove_windows>: New method.
10099 (class tui_layout_split) <remove_windows>: Declare.
10100 (tui_remove_some_windows): Declare.
10101 * tui/tui-layout.c (tui_remove_some_windows): New function.
10102 (tui_layout_split::remove_windows): New method.
10103
10104 2020-02-22 Tom Tromey <tom@tromey.com>
10105
10106 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10107 * tui/tui-layout.h (tui_next_layout): Declare.
10108 * tui/tui-layout.c (tui_next_layout): New function.
10109
10110 2020-02-22 Tom Tromey <tom@tromey.com>
10111
10112 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10113 correct coordinates.
10114
10115 2020-02-22 Tom Tromey <tom@tromey.com>
10116
10117 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10118 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10119 DATA_WIN case.
10120
10121 2020-02-22 Tom Tromey <tom@tromey.com>
10122
10123 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10124 TUI_DISASM_WIN, not tui_win_list.
10125
10126 2020-02-22 Tom Tromey <tom@tromey.com>
10127
10128 * valprint.c (generic_val_print_enum_1)
10129 (val_print_type_code_flags): Style member names.
10130 * rust-lang.c (val_print_struct, rust_print_enum)
10131 (rust_print_struct_def, rust_internal_print_type): Style member
10132 names.
10133 * p-valprint.c (pascal_object_print_value_fields): Style member
10134 names. Only call fprintf_symbol_filtered for static members.
10135 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10136 * f-valprint.c (f_val_print): Style member names.
10137 * f-typeprint.c (f_type_print_base): Style member names.
10138 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10139 call fprintf_symbol_filtered for static members.
10140 (cp_print_class_member): Style member names.
10141 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10142 member names.
10143 * ada-valprint.c (ada_print_scalar): Style enum names.
10144 (ada_val_print_enum): Likewise.
10145 * ada-typeprint.c (print_enum_type): Style enum names.
10146
10147 2020-02-21 Tom Tromey <tom@tromey.com>
10148
10149 * psympriv.h (struct partial_symtab): Update comment.
10150
10151 2020-02-21 Tom Tromey <tromey@adacore.com>
10152
10153 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10154 type is CORE_ADDR.
10155
10156 2020-02-21 Tom de Vries <tdevries@suse.de>
10157
10158 PR gdb/25534
10159 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10160 if dependencies[i]->user != NULL.
10161
10162 2020-02-21 Ali Tamur <tamur@google.com>
10163
10164 * dwarf2/read.c (dwarf2_name): Add null check.
10165
10166 2020-02-20 Tom Tromey <tom@tromey.com>
10167
10168 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10169 ">=", in binary search.
10170 (dwarf2_find_containing_comp_unit): New overload.
10171 (run_test): New self-test.
10172 (_initialize_dwarf2_read): Register new test.
10173
10174 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10175
10176 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10177 * riscv-tdep.h: Likewise.
10178 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10179 rv32-only CSR.
10180 * features/riscv/64bit-csr.xml: Regenerated.
10181
10182 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10183 Tom Tromey <tom@tromey.com>
10184
10185 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10186 of 'fputc_unfiltered'.
10187 (putchar_unfiltered): Call 'fputc_unfiltered'.
10188 (fputc_unfiltered): Call 'fputs_unfiltered'.
10189
10190 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * config.in: Regenerate.
10193 * configure: Regenerate.
10194 * configure.ac: Add --with-python-libdir option.
10195 * main.c: Use WITH_PYTHON_LIBDIR.
10196
10197 2020-02-19 Tom Tromey <tom@tromey.com>
10198
10199 * symtab.c (general_symbol_info::compute_and_set_names): Use
10200 obstack_strndup. Simplify call to symbol_set_demangled_name.
10201
10202 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * dwarf2/read.c (allocate_signatured_type_table,
10205 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10206 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10207 Remove objfile parameter, update all callers.
10208
10209 2020-02-19 Doug Evans <dje@google.com>
10210
10211 PR rust/25535
10212 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10213 rust_enum_variant calculation.
10214
10215 2020-02-19 Tom Tromey <tromey@adacore.com>
10216
10217 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10218
10219 2020-02-19 Tom Tromey <tromey@adacore.com>
10220
10221 * ada-lang.c (cache_symbol): Use obstack_strdup.
10222
10223 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10224
10225 * configure: Regenerate.
10226
10227 2020-02-19 Tom Tromey <tromey@adacore.com>
10228
10229 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10230 NULL check.
10231
10232 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10233
10234 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10235
10236 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10237
10238 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10239 if GDBSERVER is not defined.
10240 (riscv_tdesc_cache): Likewise, also store const target_desc.
10241 (STATIC_IN_GDB): Define.
10242 (riscv_create_target_description): Update declaration with
10243 STATIC_IN_GDB.
10244 (riscv_lookup_target_description): New function, only define if
10245 GDBSERVER is not defined.
10246 * arch/riscv.h (riscv_create_target_description): Declare only
10247 when GDBSERVER is defined.
10248 (riscv_lookup_target_description): New declaration when GDBSERVER
10249 is not defined.
10250 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10251 (riscv_linux_read_features): ...this, and return
10252 riscv_gdbarch_features instead of target_desc.
10253 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10254 (riscv_linux_read_description): Rename to...
10255 (riscv_linux_read_features): ...this.
10256 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10257 Update to use riscv_gdbarch_features and
10258 riscv_lookup_target_description.
10259 * riscv-tdep.c (riscv_find_default_target_description): Use
10260 riscv_lookup_target_description instead of
10261 riscv_create_target_description.
10262
10263 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10264
10265 * valprint.c (generic_val_print_enum_1): When printing a flag
10266 enum with value 0 and there is no enumerator with value 0, print
10267 just "0" instead of "(unknown: 0x0)".
10268
10269 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * valprint.c (generic_val_print_enum_1): Print unknown part of
10272 flag enum in hex.
10273
10274 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10277 flag enums to contain duplicate enumerators.
10278 * valprint.c (generic_val_print_enum_1): Update comment.
10279
10280 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10281
10282 * dwarf2/read.c: Include "count-one-bits.h".
10283 (update_enumeration_type_from_children): If an enumerator has
10284 multiple bits set, don't treat the enumeration as a "flag enum".
10285 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10286 of flag enums have 0 or 1 bit set.
10287
10288 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10289
10290 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10291 conversion.
10292 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10293 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10294 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10295 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10296 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10297
10298 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10301
10302 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10305 displaced_step_closure_up.
10306 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10307 (struct displaced_step_closure_up):
10308 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10309 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10310 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10311 Likewise.
10312 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10313 * gdbarch.c, gdbarch.h: Re-generate.
10314 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10315 displaced_step_closure_up.
10316 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10317 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10318 * infrun.h (displaced_step_closure_up): New type alias.
10319 (struct displaced_step_inferior_state) <step_closure>: Change
10320 type to displaced_step_closure_up.
10321 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10322 displaced_step_closure_up.
10323 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10324
10325 2020-02-14 Tom Tromey <tom@tromey.com>
10326
10327 * minidebug.c (gnu_debug_key): New global.
10328 (find_separate_debug_file_in_section): Use it.
10329
10330 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10331
10332 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10333 std::unique_ptr.
10334 * gdbarch.c: Re-generate.
10335 * gdbarch.h: Re-generate.
10336 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10337 change.
10338 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10339 type to std::unique_ptr.
10340 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10341 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10342 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10343 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10344 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10345 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10346 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10347 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10348 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10349
10350 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10351
10352 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10353 std::unique_ptr.
10354 (displaced_step_clear): Rename to...
10355 (displaced_step_reset): ... this. Just call displaced->reset ().
10356 (displaced_step_clear_cleanup): Rename to...
10357 (displaced_step_reset_cleanup): ... this.
10358 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10359 (displaced_step_fixup): Likewise.
10360 (resume_1): Likewise.
10361 (handle_inferior_event): Restore child's memory before calling
10362 displaced_step_fixup on the parent.
10363 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10364 to std::unique_ptr.
10365 <step_closure>: Change type to std::unique_ptr.
10366
10367 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10368
10369 * arm-tdep.c: Include count-one-bits.h.
10370 (cleanup_block_store_pc): Use count_one_bits.
10371 (cleanup_block_load_pc): Use count_one_bits.
10372 (arm_copy_block_xfer): Use count_one_bits.
10373 (thumb2_copy_block_xfer): Use count_one_bits.
10374 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10375 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10376 (thumb_get_next_pcs_raw): Use count_one_bits.
10377 (arm_get_next_pcs_raw): Use count_one_bits_l.
10378 * arch/arm.c (bitcount): Remove.
10379 * arch/arm.h (bitcount): Remove.
10380
10381 2020-02-14 Tom Tromey <tromey@adacore.com>
10382
10383 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10384 Update.
10385 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10386 * dwarf2/loc.c (call_site_find_chain_1): Return
10387 unique_xmalloc_ptr.
10388 (call_site_find_chain): Likewise.
10389
10390 2020-02-14 Richard Biener <rguenther@suse.de>
10391
10392 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10393 on expression with division operators.
10394
10395 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10396
10397 * MAINTAINERS (Write After Approval): Adding myself.
10398
10399 2020-02-12 Tom Tromey <tom@tromey.com>
10400
10401 * event-loop.c (event_data, gdb_event, event_handler_func):
10402 Remove.
10403
10404 2020-02-12 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10407 (dwarf2_frame_objfile_data): Add comment.
10408 (find_comp_unit, set_comp_unit): New functions.
10409 (dwarf2_frame_find_fde): Use find_comp_unit.
10410 (dwarf2_build_frame_info): Use set_comp_unit.
10411
10412 2020-02-12 Tom Tromey <tom@tromey.com>
10413
10414 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10415 (comp_unit): Don't initialize objfile.
10416 (execute_cfa_program): Add text_offset parameter.
10417 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10418 (dwarf2_frame_cache): Update.
10419 (dwarf2_build_frame_info): Don't set "objfile" member.
10420
10421 2020-02-12 Tom Tromey <tom@tromey.com>
10422
10423 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10424 (decode_frame_entry): Likewise.
10425 (dwarf2_build_frame_info): Update.
10426
10427 2020-02-12 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10430 (decode_frame_entry_1): Use the comp_unit obstack.
10431
10432 2020-02-12 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/frame.c (struct comp_unit): Add initializers and
10435 constructor.
10436 (dwarf2_frame_objfile_data): Store a comp_unit.
10437 (dwarf2_frame_find_fde): Update.
10438 (dwarf2_build_frame_info): Use "new".
10439
10440 2020-02-12 Tom Tromey <tom@tromey.com>
10441
10442 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10443 (dwarf2_fde_table): Typedef for std::vector.
10444 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10445 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10446 (decode_frame_entry): Update.
10447 (dwarf2_build_frame_info): Use "new".
10448
10449 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10450
10451 * arm-tdep.c (arm_gdbarch_init): Update.
10452 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10453 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10454 have_neon, is_m>: Change to bool.
10455
10456 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10457
10458 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10459
10460 2020-02-12 Tom Tromey <tom@tromey.com>
10461
10462 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10463
10464 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10465
10466 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10467 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10468
10469 2020-02-11 Tom Tromey <tom@tromey.com>
10470
10471 * psymtab.h: Update comment.
10472
10473 2020-02-11 Tom Tromey <tom@tromey.com>
10474
10475 * gdb_obstack.h (struct auto_obstack): Use
10476 DISABLE_COPY_AND_ASSIGN.
10477
10478 2020-02-11 Tom Tromey <tom@tromey.com>
10479
10480 * dwarf2/frame.h (struct objfile): Don't forward declare.
10481
10482 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10483
10484 * cris-tdep.c (cris_supply_gregset): Change signature to match
10485 what struct regset expects.
10486 (cris_regset): New struct.
10487 (fetch_core_registers): Remove.
10488 (cris_iterate_over_regset_sections): New function.
10489 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10490 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10491
10492 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10493
10494 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10495 registers.
10496
10497 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10498
10499 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10500
10501 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10502
10503 * configure: Re-generate.
10504
10505 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10506
10507 * configure: Re-generate.
10508
10509 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * acinclude: Update warning.m4 path.
10512 * warning.m4: Move to gdbsupport.
10513
10514 2020-02-11 Tom Tromey <tromey@adacore.com>
10515
10516 * remote.c (remote_console_output): Update.
10517 * printcmd.c (printf_command): Update.
10518 * event-loop.c (gdb_wait_for_event): Update.
10519 * linux-nat.c (sigchld_handler): Update.
10520 * remote-sim.c (gdb_os_write_stdout): Update.
10521 (gdb_os_flush_stdout): Update.
10522 (gdb_os_flush_stderr): Update.
10523 (gdb_os_write_stderr): Update.
10524 * exceptions.c (print_exception): Update.
10525 * remote-fileio.c (remote_fileio_func_read): Update.
10526 (remote_fileio_func_write): Update.
10527 * tui/tui.c (tui_enable): Update.
10528 * tui/tui-interp.c (tui_interp::init): Update.
10529 * utils.c (init_page_info): Update.
10530 (putchar_unfiltered, fputc_unfiltered): Update.
10531 (gdb_flush): Update.
10532 (emit_style_escape): Update.
10533 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10534 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10535 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10536 (stderr_file::write): Update.
10537 (stderr_file::puts): Update.
10538 * ui-file.h (ui_file_isatty, ui_file_write)
10539 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10540 (ui_file_puts): Don't declare.
10541
10542 2020-02-10 Tom de Vries <tdevries@suse.de>
10543
10544 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10545 sentinel to char *.
10546
10547 2020-02-09 Tom de Vries <tdevries@suse.de>
10548
10549 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10550 filename if it matches "<artificial>".
10551
10552 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10553
10554 * windows-tdep.c (struct enum_value_name): New struct.
10555 (create_enum): New function.
10556 (windows_get_siginfo_type): Create and use enum types.
10557
10558 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10559
10560 * NEWS: Mention $_siginfo support for Windows.
10561 * windows-nat.c (handle_exception): Set siginfo_er.
10562 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10563 (windows_xfer_siginfo): New function.
10564 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10565 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10566 (init_windows_gdbarch_data): New function.
10567 (get_windows_gdbarch_data): New function.
10568 (windows_get_siginfo_type): New function.
10569 (windows_init_abi): Register windows_get_siginfo_type.
10570 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10571
10572 2020-02-08 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10575 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10576 <keep>: Declare method.
10577 <m_keep>: Remove member.
10578 <~cutu_reader>: Remove.
10579 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10580 (cutu_reader::cutu_reader): Update.
10581 (cutu_reader::keep): Rename from ~cutu_reader.
10582 (process_psymtab_comp_unit, build_type_psymtabs_1)
10583 (process_skeletonless_type_unit, load_partial_comp_unit)
10584 (load_full_comp_unit, dwarf2_read_addr_index)
10585 (read_signatured_type): Update.
10586
10587 2020-02-08 Tom Tromey <tom@tromey.com>
10588
10589 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10590 "want_partial_unit" parameter.
10591 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10592 Inline check for DW_TAG_partial_unit.
10593 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10594
10595 2020-02-08 Tom Tromey <tom@tromey.com>
10596
10597 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10598 read.c.
10599 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10600 read.c.
10601
10602 2020-02-08 Tom Tromey <tom@tromey.com>
10603
10604 * dwarf2/read.c (read_address): Move to comp-unit.c.
10605 (dwarf2_rnglists_process, dwarf2_ranges_process)
10606 (read_attribute_value, dwarf_decode_lines_1)
10607 (var_decode_location, decode_locdesc): Update.
10608 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10609 read.c. Remove "cu" parameter.
10610 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10611 method.
10612
10613 2020-02-08 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10616 (read_indirect_line_string): Update.
10617 * dwarf2/comp-unit.c (read_offset): Remove.
10618 (read_comp_unit_head): Update.
10619 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10620 method.
10621 (read_offset): Don't declare.
10622
10623 2020-02-08 Tom Tromey <tom@tromey.com>
10624
10625 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10626 * dwarf2/read.c (struct comp_unit_head): Move to
10627 dwarf2/comp-unit.h.
10628 (enum class rcuh_kind): Move to comp-unit.h.
10629 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10630 (read_comp_unit_head, error_check_comp_unit_head)
10631 (read_and_check_comp_unit_head): Move to comp-unit.c.
10632 (read_offset, dwarf_unit_type_name): Likewise.
10633 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10634 (cutu_reader::cutu_reader, read_call_site_scope)
10635 (find_partial_die, follow_die_offset): Update.
10636 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10637
10638 2020-02-08 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2/read.c (read_offset_1): Move to leb.c.
10641 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10642 (dwarf_decode_macro_bytes): Update.
10643 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10644 * dwarf2/leb.h (read_offset): Declare.
10645
10646 2020-02-08 Tom Tromey <tom@tromey.com>
10647
10648 * dwarf2/read.c (dwarf2_section_size): Remove.
10649 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10650 Update.
10651 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10652
10653 2020-02-08 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/read.c (read_initial_length): Move to leb.c.
10656 * dwarf2/leb.h (read_initial_length): Declare.
10657 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10658 handle_nonstd parameter.
10659 * dwarf2/frame.c (read_initial_length): Remove.
10660 (decode_frame_entry_1): Update.
10661
10662 2020-02-08 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/loc.c (dwarf2_find_location_expression)
10665 (dwarf_evaluate_loc_desc::get_tls_address)
10666 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10667 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10668 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10669 (dwarf2_compile_property_to_c)
10670 (dwarf2_loc_desc_get_symbol_read_needs)
10671 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10672 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10673 (loclist_describe_location, loclist_tracepoint_var_ref)
10674 (loclist_generate_c_location): Update.
10675 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10676 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10677 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10678 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10679 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10680 (dwarf2_per_cu_data::addr_size)
10681 (dwarf2_per_cu_data::ref_addr_size)
10682 (dwarf2_per_cu_data::text_offset)
10683 (dwarf2_per_cu_data::addr_type): Now methods.
10684 (per_cu_header_read_in): Make per_cu "const".
10685 (dwarf2_version): Remove.
10686 (dwarf2_per_cu_data::int_type): Now a method.
10687 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10688 (set_die_type, read_array_type, read_subrange_index_type)
10689 (read_tag_string_type, read_subrange_type): Update.
10690 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10691 offset_size, ref_addr_size, text_offset, addr_type, version,
10692 objfile, int_type, addr_sized_int_type>: Declare methods.
10693
10694 2020-02-08 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10697 Move earlier.
10698
10699 2020-02-08 Tom Tromey <tom@tromey.com>
10700
10701 * dwarf2/read.h (dwarf_line_debug): Declare.
10702 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10703 * dwarf2/read.c: Move line_header code to new files.
10704 (dwarf_line_debug): No longer static.
10705 * dwarf2/line-header.c: New file.
10706 * dwarf2/line-header.h: New file.
10707
10708 2020-02-08 Tom Tromey <tom@tromey.com>
10709
10710 * dwarf2/read.c (struct line_header) <file_full_name,
10711 file_file_name>: Return unique_xmalloc_ptr.
10712 (line_header::file_file_name): Update.
10713 (line_header::file_full_name): Update.
10714 (dw2_get_file_names_reader): Update.
10715 (macro_start_file): Update.
10716
10717 2020-02-08 Tom Tromey <tom@tromey.com>
10718
10719 * dwarf2/read.c (struct line_header) <file_full_name,
10720 file_file_name>: Declare methods.
10721 (dw2_get_file_names_reader): Update.
10722 (file_file_name): Now a method.
10723 (file_full_name): Likewise.
10724 (macro_start_file): Update.
10725
10726 2020-02-08 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2/read.c (dwarf_always_disassemble)
10729 (show_dwarf_always_disassemble): Move to loc.c.
10730 (_initialize_dwarf2_read): Move "always-disassemble" registration
10731 to loc.c.
10732 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10733 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10734 static.
10735 (show_dwarf_always_disassemble): Move from read.c.
10736 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10737
10738 2020-02-08 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10741 (create_quick_file_names_table): Return htab_up.
10742 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10743 Update.
10744 * dwarf2/read.h (struct dwarf2_per_objfile)
10745 <quick_file_names_table>: Now htab_up.
10746
10747 2020-02-08 Tom Tromey <tom@tromey.com>
10748
10749 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10750
10751 2020-02-08 Tom Tromey <tom@tromey.com>
10752
10753 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10754 Rewrite.
10755 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10756 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10757 (abbrev_table::abbrev_table): No longer inline.
10758 (ABBREV_HASH_SIZE): Remove.
10759 (abbrev_table::m_abbrevs): Now an htab_up.
10760
10761 2020-02-08 Tom Tromey <tom@tromey.com>
10762
10763 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10764 (cutu_reader): Update.
10765 (build_type_psymtabs_1): Update.
10766 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10767 (abbrev_table::alloc_abbrev): Update.
10768 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10769 (abbrev_table::read): New static method, renamed from
10770 abbrev_table_read_table.
10771 (abbrev_table::alloc_abbrev)
10772 (abbrev_table::add_abbrev): Now private.
10773 (abbrev_table::abbrev_table): Now private.
10774 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10775
10776 2020-02-08 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10779 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10780 htab_up.
10781
10782 2020-02-08 Tom Tromey <tom@tromey.com>
10783
10784 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10785 htab_up.
10786 (lookup_dwo_unit_in_dwp): Update.
10787 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10788 on obstack.
10789
10790 2020-02-08 Tom Tromey <tom@tromey.com>
10791
10792 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10793 obstack.
10794
10795 2020-02-08 Tom Tromey <tom@tromey.com>
10796
10797 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10798 line_header_hash.
10799 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10800 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10801 Change type to htab_up.
10802
10803 2020-02-08 Tom Tromey <tom@tromey.com>
10804
10805 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10806 htab_up. Don't allocate on obstack.
10807 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10808 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10809 Change type to htab_up.
10810
10811 2020-02-08 Tom Tromey <tom@tromey.com>
10812
10813 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10814 Change type to htab_up.
10815 * dwarf2/read.c (create_signatured_type_table_from_index)
10816 (create_signatured_type_table_from_debug_names)
10817 (create_all_type_units, add_type_unit)
10818 (lookup_dwo_signatured_type, lookup_signatured_type)
10819 (process_skeletonless_type_unit): Update.
10820 (create_debug_type_hash_table, create_debug_types_hash_table):
10821 Change type of types_htab.
10822 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10823 htab_up. Don't allocate on obstack.
10824 (create_cus_hash_table): Change type of cus_htab parameter.
10825 (struct dwo_file) <cus, tus>: Now htab_up.
10826 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10827 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10828 (queue_and_load_all_dwo_tus): Update.
10829 * dwarf2/index-write.c (write_gdbindex): Update.
10830 (write_debug_names): Update.
10831
10832 2020-02-08 Tom Tromey <tom@tromey.com>
10833
10834 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10835 dwarf2/read.c. Remove "next" member. Add constructor ntad
10836 destructor.
10837 (struct dwarf2_per_objfile) <queue>: New member.
10838 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10839 dwarf2/read.h.
10840 (dwarf2_queue, dwarf2_queue_tail): Remove.
10841 (class dwarf2_queue_guard): Add parameter to constructor. Use
10842 DISABLE_COPY_AND_ASSIGN.
10843 <m_per_objfile>: New member.
10844 <~dwarf2_queue_guard>: Rewrite.
10845 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10846 Update.
10847 (~dwarf2_queue_item): New.
10848
10849 2020-02-08 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/read.c (struct die_info) <has_children>: New member.
10852 (dw2_get_file_names_reader): Remove has_children.
10853 (dw2_get_file_names): Update.
10854 (read_cutu_die_from_dwo): Remove has_children.
10855 (cutu_reader::init_tu_and_read_dwo_dies)
10856 (cutu_reader::cutu_reader): Update.
10857 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10858 Remove has_children.
10859 (build_type_psymtabs_1, process_skeletonless_type_unit)
10860 (load_partial_comp_unit, load_full_comp_unit): Update.
10861 (create_dwo_cu_reader): Remove has_children.
10862 (create_cus_hash_table, read_die_and_children): Update.
10863 (read_full_die_1,read_full_die): Remove has_children.
10864 (read_signatured_type): Update.
10865 (class cutu_reader) <has_children>: Remove.
10866
10867 2020-02-08 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/expr.c: Rename from dwarf2expr.c.
10870 * dwarf2/expr.h: Rename from dwarf2expr.h.
10871 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10872 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10873 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10874 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10875 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10876 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10877 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10878 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10879 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10880 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10881 * dwarf2/loc.c: Rename from dwarf2loc.c.
10882 * dwarf2/loc.h: Rename from dwarf2loc.h.
10883 * dwarf2/read.c: Rename from dwarf2read.c.
10884 * dwarf2/read.h: Rename from dwarf2read.h.
10885 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10886 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10887 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10888 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10889 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10890 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10891 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10892 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10893 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10894 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10895 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10896 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10897 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10898 Update.
10899 * Makefile.in (COMMON_SFILES): Update.
10900 (HFILES_NO_SRCDIR): Update.
10901
10902 2020-02-08 Tom Tromey <tom@tromey.com>
10903
10904 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10905 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10906
10907 2020-02-08 Tom Tromey <tom@tromey.com>
10908
10909 * dwarf2read.h (struct die_info): Don't declare.
10910
10911 2020-02-08 Tom Tromey <tom@tromey.com>
10912
10913 * dwarf2read.h (die_info_ptr): Remove typedef.
10914
10915 2020-02-08 Tom Tromey <tom@tromey.com>
10916
10917 * dwarf2read.c (read_call_site_scope)
10918 (handle_data_member_location, dwarf2_add_member_fn)
10919 (mark_common_block_symbol_computed, read_common_block)
10920 (attr_to_dynamic_prop, partial_die_info::read)
10921 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10922 (dwarf2_symbol_mark_computed, set_die_type): Update.
10923 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10924 method.
10925 (attr_form_is_block): Don't declare.
10926 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10927
10928 2020-02-08 Tom Tromey <tom@tromey.com>
10929
10930 * dwarf2read.c (dwarf2_find_base_address, )
10931 (read_call_site_scope, rust_containing_type)
10932 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10933 (handle_data_member_location, dwarf2_add_member_fn)
10934 (get_alignment, read_structure_type, process_structure_scope)
10935 (mark_common_block_symbol_computed, read_common_block)
10936 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10937 (partial_die_info::read, read_attribute_value, new_symbol)
10938 (lookup_die_type, dwarf2_get_ref_die_offset)
10939 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10940 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10941 (dwarf2_symbol_mark_computed): Update.
10942 * dwarf2/attribute.h (struct attribute) <value_as_address,
10943 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10944 methods.
10945 (value_as_address, attr_form_is_section_offset)
10946 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10947 * dwarf2/attribute.c (attribute::value_as_address)
10948 (attribute::form_is_section_offset, attribute::form_is_constant)
10949 (attribute::form_is_ref): Now methods.
10950
10951 2020-02-08 Tom Tromey <tom@tromey.com>
10952
10953 * dwarf2read.c (struct attribute, DW_STRING)
10954 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10955 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10956 (attr_form_is_block, attr_form_is_section_offset)
10957 (attr_form_is_constant, attr_form_is_ref): Move.
10958 * dwarf2/attribute.h: New file.
10959 * dwarf2/attribute.c: New file, from dwarf2read.c.
10960 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10961
10962 2020-02-08 Tom Tromey <tom@tromey.com>
10963
10964 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10965 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10966 Move.
10967 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10968 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10969 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10970 abbrev.c.
10971 * dwarf2/abbrev.h: New file.
10972 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10973 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10974
10975 2020-02-08 Tom Tromey <tom@tromey.com>
10976
10977 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10978 (dwarf2_section_size, dwarf2_get_section_info)
10979 (create_signatured_type_table_from_debug_names)
10980 (create_addrmap_from_aranges, read_debug_names_from_section)
10981 (get_gdb_index_contents_from_section, read_comp_unit_head)
10982 (error_check_comp_unit_head, read_abbrev_offset)
10983 (create_debug_type_hash_table, init_cu_die_reader)
10984 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10985 (read_comp_units_from_section, create_cus_hash_table)
10986 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10987 (create_dwp_v2_section, dwarf2_rnglists_process)
10988 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10989 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10990 (read_indirect_string_from_dwz, read_addr_index_1)
10991 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10992 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10993 (fill_in_loclist_baton): Update.
10994 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10995 get_containing_section, get_bfd_owner, get_bfd_section,
10996 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10997 (dwarf2_read_section, get_section_name, get_section_file_name)
10998 (get_containing_section, get_section_bfd_owner)
10999 (get_section_bfd_section, get_section_name, get_section_file_name)
11000 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11001 declare.
11002 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11003 (dwarf2_section_info::get_bfd_owner)
11004 (dwarf2_section_info::get_bfd_section)
11005 (dwarf2_section_info::get_name)
11006 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11007 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11008 (dwarf2_section_info::read): Now methods.
11009 * dwarf-index-write.c (class debug_names): Update.
11010
11011 2020-02-08 Tom Tromey <tom@tromey.com>
11012
11013 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11014 Move to dwarf2/section.h.
11015 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11016 (get_section_bfd_section, get_section_name)
11017 (get_section_file_name, get_section_id, get_section_flags)
11018 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11019 dwarf2/section.c.
11020 * dwarf2/section.h: New file.
11021 * dwarf2/section.c: New file, from dwarf2read.c.
11022 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11023
11024 2020-02-08 Tom Tromey <tom@tromey.com>
11025
11026 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11027 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11028 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11029 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11030 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11031 * dwarf2/leb.h: New file, from dwarf2read.c.
11032 * dwarf2/leb.c: New file, from dwarf2read.c.
11033 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11034 Remove.
11035 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11036 (COMMON_SFILES): Add dwarf2/leb.c.
11037
11038 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11039
11040 GDB 9.1 released.
11041
11042 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11043
11044 PR gdb/25190:
11045 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11046 * gdb/remote.c (remote_console_output): Update.
11047 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11048 (ui_file_puts): ...this.
11049 * gdb/ui-file.h (ui_file_puts): Add declaration.
11050 * gdb/utils.c (emit_style_escape): Update.
11051 (flush_wrap_buffer): Update.
11052 (fputs_maybe_filtered): Update.
11053 (fputs_unfiltered): Add function.
11054
11055 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11056
11057 * gdb/event-loop.c (gdb_wait_for_event): Update.
11058 * gdb/printcmd.c (printf_command): Update.
11059 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11060 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11061 (gdb_os_flush_stderr): Update.
11062 * gdb/remote.c (remote_console_output): Update.
11063 * gdb/ui-file.c (gdb_flush): Rename to...
11064 (ui_file_flush): ...this.
11065 (stderr_file::write): Update.
11066 (stderr_file::puts): Update.
11067 * gdb/ui-file.h (gdb_flush): Rename to...
11068 (ui_file_flush): ...this.
11069 * gdb/utils.c (gdb_flush): Add function.
11070 * gdb/utils.h (gdb_flush): Add declaration.
11071
11072 2020-02-07 Tom Tromey <tromey@adacore.com>
11073
11074 PR breakpoints/24915:
11075 * source.c (find_and_open_source): Do not check basenames_may_differ.
11076
11077 2020-02-07 Tom Tromey <tom@tromey.com>
11078
11079 * README: Update gdbserver documentation.
11080 * gdbserver: Move to top level.
11081 * configure.tgt (build_gdbserver): Remove.
11082 * configure.ac: Remove --enable-gdbserver.
11083 * configure: Rebuild.
11084 * Makefile.in (distclean): Don't mention gdbserver.
11085
11086 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11087
11088 * source-cache.c (source_cache::ensure): Surround
11089 get_plain_source_lines with a try/catch.
11090 (source_cache::get_line_charpos): Get rid of try/catch
11091 and only check for the return value of "ensure".
11092 * tui/tui-source.c (tui_source_window::set_contents):
11093 Simplify "nlines" calculation.
11094
11095 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11096
11097 * MAINTAINERS (Write After Approval): Add myself.
11098
11099 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11100
11101 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11102 function call.
11103
11104 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11105
11106 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11107
11108 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11109
11110 * nat/riscv-linux-tdesc.h: New file.
11111 * nat/riscv-linux-tdesc.c: New file, taking code from...
11112 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11113 ... here.
11114 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11115 NATDEPFILES.
11116
11117 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11118
11119 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11120 we don't set the fake simulator ptid to the null_ptid.
11121
11122 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11125 * gdbthread.h (class thread_info) <resumed>: Likewise.
11126 * infrun.c (resume_1): Likewise.
11127 (proceed): Likewise.
11128 (infrun_thread_stop_requested): Likewise.
11129 (stop_all_threads): Likewise.
11130 (handle_inferior_event): Likewise.
11131 (restart_threads): Likewise.
11132 (finish_step_over): Likewise.
11133 (keep_going_stepped_thread): Likewise.
11134 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11135 (linux_handle_extended_wait): Likewise.
11136 * record-btrace.c (get_thread_current_frame_id): Likewise.
11137 * record-full.c (record_full_wait_1): Likewise.
11138 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11139 * target.c (target_resume): Likewise.
11140 * thread.c (set_running_thread): Likewise.
11141
11142 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11143
11144 * f-valprint.c (f77_print_array_1): Changed datatype of index
11145 variable to LONGEST from int to enable it to contain bound
11146 values correctly.
11147
11148 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11149
11150 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11151 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11152 offsets according to FLEN determined.
11153 (riscv_linux_nat_target::read_description): Determine FLEN
11154 dynamically.
11155 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11156 according to FLEN determined.
11157 (riscv_linux_nat_target::store_registers): Likewise.
11158
11159 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11160
11161 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11162 when reg->group is empty and reggroup is not.
11163
11164 2020-01-31 Tom Tromey <tromey@adacore.com>
11165
11166 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11167 Call beneath target's mourn_inferior after unpushing.
11168
11169 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11170
11171 PR tui/9765
11172 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11173 have enough lines to fill the screen, still return the lowest
11174 address we found.
11175
11176 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11179 '-', '<', and '>' commands.
11180
11181 2020-01-29 Pedro Alves <palves@redhat.com>
11182 Sergio Durigan Junior <sergiodj@redhat.com>
11183
11184 * infcmd.c (construct_inferior_arguments): Assert that
11185 'argc' is greater than 0.
11186
11187 2020-01-29 Luis Machado <luis.machado@linaro.org>
11188
11189 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11190 (BRK_INSN_MASK): Define to 0xd4200000.
11191 (aarch64_program_breakpoint_here_p): New function.
11192 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11193 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11194 breakpoint.c.
11195 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11196 breakpoint.h
11197 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11198 call gdbarch_program_breakpoint_here_p.
11199 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11200 default_program_breakpoint_here_p, changed return type to bool and
11201 simplified.
11202 * breakpoint.h (program_breakpoint_here): Moved prototype to
11203 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11204 return type to bool.
11205 * gdbarch.c: Regenerate.
11206 * gdbarch.h: Regenerate.
11207 * gdbarch.sh (program_breakpoint_here_p): New method.
11208 * infrun.c (handle_signal_stop): Call
11209 gdbarch_program_breakpoint_here_p.
11210
11211 2020-01-26 Tom Tromey <tom@tromey.com>
11212
11213 * ctfread.c (struct ctf_fp_info): Reindent.
11214 (_initialize_ctfread): Remove.
11215
11216 2020-01-26 Tom Tromey <tom@tromey.com>
11217
11218 * psymtab.c (partial_map_expand_apply)
11219 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11220 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11221 (psym_print_stats, psym_expand_symtabs_for_function)
11222 (psym_map_symbol_filenames, psym_map_matching_symbols)
11223 (psym_expand_symtabs_matching)
11224 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11225 (maintenance_check_psymtabs): Use new methods.
11226 * psympriv.h (struct partial_symtab) <readin_p,
11227 get_compunit_symtab>: New methods.
11228 <readin, compunit_symtab>: Remove members.
11229 (struct standard_psymtab): New.
11230 (struct legacy_psymtab): Derive from standard_psymtab.
11231 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11232 standard_psymtab.
11233 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11234
11235 2020-01-26 Tom Tromey <tom@tromey.com>
11236
11237 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11238 read_dependencies. Add assert.
11239 * psymtab.c (partial_symtab::read_dependencies): New method.
11240 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11241 method.
11242 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11243 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11244 read_dependencies.
11245 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11246 Add assert.
11247
11248 2020-01-26 Tom Tromey <tom@tromey.com>
11249
11250 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11251 Call expand_psymtab.
11252 (xcoff_read_symtab): Call expand_psymtab.
11253 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11254 legacy_expand_psymtab.
11255 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11256 method.
11257 (struct legacy_psymtab) <expand_psymtab>: Implement.
11258 <legacy_expand_psymtab>: New member.
11259 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11260 (parse_partial_symbols): Set legacy_expand_psymtab.
11261 (psymtab_to_symtab_1): Change argument order. Call
11262 expand_psymtab.
11263 (new_psymtab): Set legacy_expand_psymtab.
11264 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11265 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11266 expand_psymtab.
11267 (dwarf2_psymtab::expand_psymtab): Rename from
11268 psymtab_to_symtab_1. Call expand_psymtab.
11269 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11270 (dbx_end_psymtab): Likewise.
11271 (dbx_psymtab_to_symtab_1): Change argument order. Call
11272 expand_psymtab.
11273 (dbx_read_symtab): Call expand_psymtab.
11274 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11275 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11276 (ctf_psymtab::read_symtab): Call expand_psymtab.
11277
11278 2020-01-26 Tom Tromey <tom@tromey.com>
11279
11280 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11281 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11282 messages.
11283 * mdebugread.c (mdebug_read_symtab): Remove prints.
11284 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11285 assert.
11286 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11287
11288 2020-01-26 Tom Tromey <tom@tromey.com>
11289
11290 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11291 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11292 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11293 legacy_symtab.
11294 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11295 * psymtab.c (psymtab_to_symtab): Call method.
11296 (dump_psymtab): Update.
11297 * psympriv.h (struct partial_symtab): Add virtual destructor.
11298 <read_symtab>: New method.
11299 (struct legacy_symtab): New.
11300 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11301 (struct pst_map) <pst>: Now a legacy_psymtab.
11302 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11303 (new_psymtab): Use legacy_psymtab.
11304 * dwarf2read.h (struct dwarf2_psymtab): New.
11305 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11306 * dwarf2read.c (dwarf2_create_include_psymtab)
11307 (dwarf2_build_include_psymtabs, create_type_unit_group)
11308 (create_partial_symtab, process_psymtab_comp_unit_reader)
11309 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11310 (set_partial_user): Use dwarf2_psymtab.
11311 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11312 (psymtab_to_symtab_1, process_full_comp_unit)
11313 (process_full_type_unit, dwarf2_ranges_read)
11314 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11315 (dwarf_decode_lines): Use dwarf2_psymtab.
11316 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11317 (add_address_entry_worker, write_one_signatured_type)
11318 (recursively_count_psymbols, recursively_write_psymbols)
11319 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11320 (write_debug_names): Likewise.
11321 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11322 <pst>: Now a legacy_psymtab.
11323 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11324 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11325 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11326 * ctfread.c (struct ctf_psymtab): New.
11327 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11328 ctf_psymtab.
11329 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11330 (create_partial_symtab): Return a ctf_psymtab.
11331 (scan_partial_symbols): Update.
11332
11333 2020-01-26 Tom Tromey <tom@tromey.com>
11334
11335 * xcoffread.c (xcoff_start_psymtab): Use new.
11336 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11337 renamed from start_psymtab_common.
11338 * psympriv.h (struct partial_symtab): Add new constructor.
11339 (start_psymtab_common): Don't declare.
11340 * mdebugread.c (parse_partial_symbols): Use new.
11341 * dwarf2read.c (create_partial_symtab): Use new.
11342 * dbxread.c (start_psymtab): Use new.
11343 * ctfread.c (create_partial_symtab): Use new.
11344
11345 2020-01-26 Tom Tromey <tom@tromey.com>
11346
11347 * xcoffread.c (xcoff_end_psymtab): Use new.
11348 * psymtab.c (start_psymtab_common): Use new.
11349 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11350 Update.
11351 * psympriv.h (struct partial_symtab): Add parameters to
11352 constructor. Don't inline.
11353 (allocate_psymtab): Don't declare.
11354 * mdebugread.c (new_psymtab): Use new.
11355 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11356 * dbxread.c (dbx_end_psymtab): Use new.
11357
11358 2020-01-26 Tom Tromey <tom@tromey.com>
11359
11360 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11361 allocate_psymtab. Update documentation.
11362 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11363 allocate_psymtab. Do not use new.
11364 (allocate_psymtab): Use new. Update.
11365
11366 2020-01-26 Tom Tromey <tom@tromey.com>
11367
11368 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11369 * psymtab.c (psym_print_stats): Update.
11370 * psympriv.h (struct partial_symtab) <readin,
11371 psymtabs_addrmap_supported, anonymous>: Now bool.
11372 * mdebugread.c (psymtab_to_symtab_1): Update.
11373 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11374 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11375 (process_full_comp_unit, process_full_type_unit): Update.
11376 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11377 * ctfread.c (psymtab_to_symtab): Update.
11378
11379 2020-01-26 Tom Tromey <tom@tromey.com>
11380
11381 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11382 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11383 * psymtab.c (psymtab_storage): Delete psymtabs.
11384 (psymtab_storage::allocate_psymtab): Use new.
11385 (psymtab_storage::discard_psymtab): Use delete.
11386 * psympriv.h (struct partial_symtab): Add constructor and
11387 initializers.
11388
11389 2020-01-26 Tom Tromey <tom@tromey.com>
11390
11391 * machoread.c: Do not include psympriv.h.
11392
11393 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11394
11395 * NEWS: Mention the new option and the set/show commands.
11396
11397 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11398
11399 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11400 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11401 (validate_exec_file): New variables, enums, functions.
11402 (exec_file_locate_attach, print_section_info): Style the filenames.
11403 (_initialize_exec): Install show_exec_file_mismatch_command and
11404 set_exec_file_mismatch_command.
11405 * gdbcore.h (validate_exec_file): Declare.
11406 * infcmd.c (attach_command): Call validate_exec_file.
11407 * remote.c ( remote_target::remote_add_inferior): Likewise.
11408
11409 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11410
11411 * frame.c (find_frame_sal): Move call to get_next_frame into more
11412 inner scope.
11413 * inline-frame.c (inilne_state) <inline_state>: Update argument
11414 types.
11415 (inilne_state) <skipped_symbol>: Rename to...
11416 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11417 (skip_inline_frames): Build vector of skipped symbols and use this
11418 to reate the inline_state.
11419 (inline_skipped_symbol): Add a comment and some assertions, fetch
11420 skipped symbol from the list.
11421
11422 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11423
11424 * buildsym.c (lte_is_less_than): Delete.
11425 (buildsym_compunit::end_symtab_with_blockvector): Create local
11426 lambda function to sort line table entries, and use
11427 std::stable_sort instead of std::sort.
11428 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11429 markers when looking for a previous line.
11430
11431 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11432
11433 * dwarf2read.c (lnp_state_machine::record_line): Include
11434 end_sequence parameter in debug print out. Record the line if we
11435 are at an end_sequence marker even if it's not the start of a
11436 statement.
11437 * symmisc.c (maintenance_print_one_line_table): Print end of
11438 sequence markers with 'END' not '0'.
11439
11440 2020-01-24 Pedro Alves <palves@redhat.com>
11441
11442 PR gdb/25410
11443 * thread.c (scoped_restore_current_thread::restore): Use
11444 switch_to_inferior_no_thread.
11445 * exec.c: Include "progspace-and-thread.h".
11446 (add_target_sections, remove_target_sections):
11447 scoped_restore_current_pspace_and_thread instead of
11448 scoped_restore_current_thread.
11449 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11450 and aspace to the inferior before calling clone_program_space.
11451 Remove stale comment.
11452
11453 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11454
11455 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11456 (arm_netbsd_nat_target::fetch_registers): ...this.
11457 (arm_nbsd_nat_target::store_registers): Rename to...
11458 (arm_netbsd_nat_target::store_registers): ...this.
11459
11460 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11461
11462 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11463 register_t.
11464
11465 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11466
11467 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11468 Update comment.
11469 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11470 Likewise.
11471 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11472 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11473 the correct replacement (iterate_over_regset_sections).
11474 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11475 Update comment.
11476
11477 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11478
11479 PR gdb/23718
11480 * gdb/python/python.c (execute_gdb_command): Call
11481 async_enable_stdin in catch block.
11482
11483 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11484
11485 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11486 SWITCH_THRU_ALL_UIS.
11487
11488 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11489
11490 PR tui/9765
11491 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11492 comment, add extra parameter, and update to store previous symbol
11493 when appropriate.
11494 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11495 add extra parameter.
11496 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11497 remove unneeded parameter, add try/catch around gdb_print_insn,
11498 rewrite to add items to asm_lines vector.
11499 (tui_find_backward_disassembly_start_address): New function.
11500 (tui_find_disassembly_address): Updated throughout.
11501 (tui_disasm_window::set_contents): Update for changes to
11502 tui_disassemble.
11503 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11504 number of lines to scroll.
11505
11506 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11507
11508 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11509 (SECT_OFF_DATA): Likewise.
11510 (SECT_OFF_RODATA): Likewise.
11511 (SECT_OFF_TEXT): Likewise.
11512 (SECT_OFF_BSS): Likewise.
11513 (struct objfile) <text_section_offset, data_section_offset>: New
11514 methods.
11515 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11516 objfile::text_section_offset.
11517 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11518 * coffread.c (coff_symtab_read): Likewise.
11519 (enter_linenos): Likewise.
11520 (process_coff_symbol): Likewise.
11521 * ctfread.c (get_objfile_text_range): Likewise.
11522 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11523 Use objfile::data_section_offset.
11524 * dwarf2-frame.c (execute_cfa_program): Use
11525 objfile::text_section_offset.
11526 (dwarf2_frame_find_fde): Likewise.
11527 * dwarf2read.c (create_addrmap_from_index): Likewise.
11528 (create_addrmap_from_aranges): Likewise.
11529 (dw2_find_pc_sect_compunit_symtab): Likewise.
11530 (process_psymtab_comp_unit_reader): Likewise.
11531 (add_partial_symbol): Likewise.
11532 (add_partial_subprogram): Likewise.
11533 (process_full_comp_unit): Likewise.
11534 (read_file_scope): Likewise.
11535 (read_func_scope): Likewise.
11536 (read_lexical_block_scope): Likewise.
11537 (read_call_site_scope): Likewise.
11538 (dwarf2_rnglists_process): Likewise.
11539 (dwarf2_ranges_process): Likewise.
11540 (dwarf2_ranges_read): Likewise.
11541 (dwarf_decode_lines_1): Likewise.
11542 (new_symbol): Likewise.
11543 (dwarf2_fetch_die_loc_sect_off): Likewise.
11544 (dwarf2_per_cu_text_offset): Likewise.
11545 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11546 * hppa-tdep.c (read_unwind_info): Likewise.
11547 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11548 * psympriv.h (struct partial_symtab): Likewise.
11549 * psymtab.c (find_pc_sect_psymtab): Likewise.
11550 * solib-svr4.c (enable_break): Likewise.
11551 * stap-probe.c (relocate_address): Use
11552 objfile::data_section_offset.
11553 * xcoffread.c (enter_line_range): Use
11554 objfile::text_section_offset.
11555 (read_xcoff_symtab): Likewise.
11556
11557 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11558
11559 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11560 declaration to narrower scopes.
11561
11562 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11563
11564 * darwin-nat.h (struct darwin_exception_msg, enum
11565 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11566 Move up.
11567 (class darwin_nat_target) <wait_1, check_new_threads,
11568 decode_exception_message, decode_message, stop_inferior,
11569 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11570 * darwin-nat.c (darwin_check_new_threads): Rename to...
11571 (darwin_nat_target::check_new_threads): ... this.
11572 (darwin_suspend_inferior_it): Remove.
11573 (darwin_decode_exception_message): Rename to...
11574 (darwin_nat_target::decode_exception_message): ... this.
11575 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11576 (darwin_decode_message): Rename to...
11577 (darwin_nat_target::decode_message): ... this.
11578 (cancel_breakpoint): Rename to...
11579 (darwin_nat_target::cancel_breakpoint): ... this.
11580 (darwin_wait): Rename to...
11581 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11582 instead of iterate_over_inferiors.
11583 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11584 (darwin_stop_inferior): Rename to...
11585 (darwin_nat_target::stop_inferior): ... this.
11586 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11587 (darwin_init_thread_list): Rename to...
11588 (darwin_nat_target::init_thread_list): ... this.
11589 (darwin_ptrace_him): Rename to...
11590 (darwin_nat_target::ptrace_him): ... this.
11591 (darwin_nat_target::create_inferior): Pass lambda function to
11592 fork_inferior.
11593 (darwin_nat_target::detach): Call stop_inferior instead of
11594 darwin_stop_inferior.
11595 * fork-inferior.h (fork_inferior): Change init_trace_fun
11596 parameter to gdb::function_view.
11597 * fork-inferior.c (fork_inferior): Likewise.
11598
11599 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11600
11601 * i386-cygwin-tdep.c (core_process_module_section): Update.
11602 * windows-nat.c (struct lm_info_windows): Add text_offset.
11603 (windows_xfer_shared_libraries): Update.
11604 * windows-tdep.c (windows_xfer_shared_library):
11605 Add text_offset_cached argument.
11606 * windows-tdep.h (windows_xfer_shared_library): Update.
11607
11608 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11609
11610 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11611
11612 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11613
11614 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11615 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11616 replace with range-based for.
11617 (gdbsim_interrupt_inferior): Remove.
11618 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11619 with a range-based for. Inline code from
11620 gdbsim_interrupt_inferior.
11621
11622 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11623
11624 * infrun.c (proceed): Fix indentation.
11625
11626 2020-01-21 Tom Tromey <tromey@adacore.com>
11627
11628 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11629 * python/python.c (python_extension_ops): Update.
11630 (gdbpy_colorize): New function.
11631 * python/lib/gdb/__init__.py (colorize): New function.
11632 * extension.h (ext_lang_colorize): Declare.
11633 * extension.c (ext_lang_colorize): New function.
11634 * extension-priv.h (struct extension_language_ops) <colorize>: New
11635 member.
11636 * cli/cli-style.c (_initialize_cli_style): Update help text.
11637
11638 2020-01-21 Luis Machado <luis.machado@linaro.org>
11639
11640 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11641 <cond>: Change type to bool.
11642 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11643 (aarch64_displaced_step_cb): Likewise.
11644 (aarch64_displaced_step_tb): Likewise.
11645
11646 2020-01-21 Luis Machado <luis.machado@linaro.org>
11647
11648 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11649 output.
11650
11651 2020-01-21 Luis Machado <luis.machado@linaro.org>
11652
11653 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11654 <pc_adjust>: Adjust the documentation.
11655 (aarch64_displaced_step_fixup): Check if PC really moved before
11656 adjusting it.
11657
11658 2020-01-19 Tom Tromey <tom@tromey.com>
11659
11660 * disasm.c (~gdb_disassembler): New destructor.
11661 (gdb_buffered_insn_length): Call disassemble_free_target.
11662 * disasm.h (class gdb_disassembler): Declare destructor. Use
11663 DISABLE_COPY_AND_ASSIGN.
11664
11665 2020-01-19 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11668 (die_reader_func_ftype): Remove.
11669 (cutu_reader): New class.
11670 (dw2_get_file_names_reader): Remove "data" parameter.
11671 (dw2_get_file_names): Use cutu_reader.
11672 (create_debug_type_hash_table): Update.
11673 (read_cutu_die_from_dwo): Update comment.
11674 (lookup_dwo_unit): Add dwo_name parameter.
11675 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11676 die_reader_func_ftype and data parameters.
11677 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11678 Remove die_reader_func_ftype and data parameters.
11679 (~cutu_reader): New; from init_cutu_and_read_dies.
11680 (cutu_reader::cutu_reader): Rename from
11681 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11682 and data parameters.
11683 (init_cutu_and_read_dies_simple): Remove.
11684 (struct process_psymtab_comp_unit_data): Remove.
11685 (process_psymtab_comp_unit_reader): Remove data parameter; add
11686 want_partial_unit and pretend_language parameters.
11687 (process_psymtab_comp_unit): Use cutu_reader.
11688 (build_type_psymtabs_reader): Remove data parameter.
11689 (build_type_psymtabs_1): Use cutu_reader.
11690 (process_skeletonless_type_unit): Likewise.
11691 (load_partial_comp_unit_reader): Remove.
11692 (load_partial_comp_unit): Use cutu_reader.
11693 (load_full_comp_unit_reader): Remove.
11694 (load_full_comp_unit): Use cutu_reader.
11695 (struct create_dwo_cu_data): Remove.
11696 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11697 dwo_unit parameters.
11698 (create_cus_hash_table): Use cutu_reader.
11699 (struct dwarf2_read_addr_index_data): Remove.
11700 (dwarf2_read_addr_index_reader): Remove.
11701 (dwarf2_read_addr_index): Use cutu_reader.
11702 (read_signatured_type_reader): Remove.
11703 (read_signatured_type): Use cutu_reader.
11704
11705 2020-01-19 Tom Tromey <tom@tromey.com>
11706
11707 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11708 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11709 (tui_wrefresh): Declare.
11710 * tui/tui-wingeneral.c (suppress_output): New global.
11711 (tui_suppress_output, ~tui_suppress_output): New constructor and
11712 destructor.
11713 (tui_wrefresh): New function.
11714 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11715 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11716 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11717 method.
11718 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11719 tui_wrefresh.
11720 (tui_data_window::no_refresh): New method.
11721 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11722 (tui_reg_command): Use tui_suppress_output
11723 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11724 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11725 method.
11726 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11727
11728 2020-01-19 Tom Tromey <tom@tromey.com>
11729
11730 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11731 Handle case where symtab is null.
11732
11733 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11734
11735 * linux-fork.c (one_fork_p): Simplify.
11736
11737 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11738
11739 * top.c (struct qt_args): Remove.
11740 (kill_or_detach): Change return type to void, replace `void *`
11741 parameter with a proper one.
11742 (print_inferior_quit_action): Likewise.
11743 (quit_confirm): Use range-based for loop to iterate over inferiors.
11744 (quit_force): Likewise.
11745
11746 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11747
11748 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11749 `void *` parameter with proper parameters.
11750 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11751 (print_one_inferior): Change return type to void, replace `void *`
11752 parameter with proper parameters.
11753 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11754 inferiors.
11755 (get_other_inferior): Remove.
11756 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11757 inferiors.
11758
11759 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11760
11761 * mi/mi-interp.c (report_initial_inferior): Remove.
11762 (mi_interp::init): Use range-based for to iterate over inferiors.
11763
11764 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11765
11766 * python/py-inferior.c (build_inferior_list): Remove.
11767 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11768
11769 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11770
11771 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11772 (btrace_stitch_trace): Likewise.
11773 * charset.c (intermediate_encoding): Likewise (vaild).
11774 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11775 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11776 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11777
11778 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11779
11780 * windows-tdep.c (windows_get_tlb_type):
11781 Add rtl_user_process_parameters type.
11782
11783 2020-01-16 Pedro Alves <palves@redhat.com>
11784 Norbert Lange <nolange79@gmail.com>
11785
11786 PR build/24805
11787 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11788 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11789 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11790 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11791 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11792 (ps_plog): Redeclare exported functions with default visibility.
11793
11794 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11795
11796 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11797 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11798
11799 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11800
11801 * infcmd.c (post_create_inferior): Use get_thread_regcache
11802 instead of get_current_regcache.
11803
11804 2020-01-14 Tom Tromey <tom@tromey.com>
11805
11806 PR symtab/12535:
11807 * python/python.c (gdbpy_decode_line): Treat empty string the same
11808 as no argument.
11809
11810 2020-01-14 Tom Tromey <tom@tromey.com>
11811
11812 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11813
11814 2020-01-14 Tom Tromey <tom@tromey.com>
11815
11816 * nat/linux-btrace.c: Don't include <config.h>.
11817 * nat/linux-ptrace.c: Don't include <config.h>.
11818 * nat/x86-linux-dregs.c: Don't include <config.h>.
11819
11820 2020-01-14 Tom Tromey <tom@tromey.com>
11821
11822 * configure: Rebuild.
11823 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11824
11825 2020-01-14 Tom Tromey <tom@tromey.com>
11826
11827 * nat/x86-linux-dregs.c: Include configh.h.
11828 * nat/linux-ptrace.c: Include configh.h.
11829 * nat/linux-btrace.c: Include configh.h.
11830 * defs.h: Include config.h, bfd.h.
11831 * configure.ac: Don't source common.host.
11832 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11833 * configure: Rebuild.
11834 * acinclude.m4: Update path.
11835 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11836 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11837 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11838 (CLIBS): Add LIBSUPPORT.
11839 (CDEPS): Likewise.
11840 (COMMON_SFILES): Remove gdbsupport files.
11841 (HFILES_NO_SRCDIR): Likewise.
11842 (stamp-version): Update path to create-version.sh.
11843 (ALLDEPFILES): Remove gdbsupport files.
11844
11845 2020-01-14 Tom Tromey <tom@tromey.com>
11846
11847 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11848 USE_WIN32API when needed.
11849 * configure.ac (USE_WIN32API): Don't define.
11850 (WIN32LIBS): Use WIN32APILIBS.
11851 * configure: Rebuild.
11852
11853 2020-01-14 Tom Tromey <tom@tromey.com>
11854
11855 * configure: Rebuild.
11856 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11857
11858 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11859
11860 * skip.c (skip_function_command): Make skip w/o arguments use the
11861 name of the inlined function if pc is inside any inlined function.
11862
11863 2020-01-14 Luis Machado <luis.machado@linaro.org>
11864
11865 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11866 * infrun.c (resume_1): Likewise.
11867 (handle_inferior_event): Remove stale comment.
11868 * linux-nat.c (linux_nat_target::resume): Update comments.
11869 (save_stop_reason): Likewise.
11870 (linux_nat_filter_event): Likewise.
11871 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11872
11873 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11874
11875 * elfread.c (record_minimal_symbol): Set section index to 0 for
11876 non-allocatable sections.
11877
11878
11879 2020-01-13 Ali Tamur <tamur@google.com>
11880
11881 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11882 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11883 to gdb::optional. Update comments.
11884 (dwo_file): Update comments.
11885 (read_attribute): Update API to take an additional out parameter,
11886 need_reprocess. This is used to mark attributes that need other
11887 attributes (e.g. str_offsets_base) for correct computation which may not
11888 have been read yet.
11889 (read_attribute_reprocess): New function declaration.
11890 (read_addr_index): Likewise.
11891 (read_dwo_str_index): Likewise.
11892 (read_stub_str_index): Likewise.
11893 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11894 (lookup_addr_base): New function definition.
11895 (lookup_ranges_base): Likewise.
11896 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11897 lookup_ranges_base.
11898 (init_cutu_and_read_dies): Update comments.
11899 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11900 unit. This is used to inherit parent's str_offsets_base and addr_base.
11901 Update comments.
11902 (init_cutu_and_read_dies_simple): Reflect API changes.
11903 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11904 (create_cus_hash_table): Change API to take parent compile unit.
11905 Reflect API changes.
11906 (open_and_init_dwo_file): Reflect API changes.
11907 (dwarf2_get_pc_bounds): Update comments.
11908 (dwarf2_record_block_ranges): Likewise.
11909 (read_full_die_1): Change implementation to reprocess attributes that
11910 need str_offsets_base and addr_base.
11911 (partial_die_info::read): Likewise.
11912 (read_attribute_reprocess): New function definition.
11913 (read_attribute_value): Change API to take an additional out parameter,
11914 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11915 when a non-dwo compile unit has index based attributes.
11916 (read_attribute): Reflect API changes.
11917 (read_addr_index_1): Reflect API changes. Update comments.
11918 (dwarf2_read_addr_index_data): Reflect API changes.
11919 (dwarf2_read_addr_index): Likewise.
11920 (read_str_index): Change API and implementation. This becomes a helper
11921 to be used by the new string index related methods. Update error
11922 message and comments.
11923 (read_dwo_str_index): New function definition.
11924 (read_stub_str_index): Likewise.
11925 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11926 * symfile.h (dwarf2_debug_sections): Likewise.
11927 * xcoffread.c (dwarf2_debug_sections): Likewise.
11928
11929 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11930
11931 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11932 core_reg_sect type to gdb_byte *.
11933 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11934 * cris-tdep.c (fetch_core_registers): Likewise.
11935 * corelow.c (core_target::get_core_register_section): Change
11936 type of `contents` to gdb::byte_vector.
11937
11938 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * tui/tui-wingeneral.c (box_win): Position the title in the center
11941 of the border.
11942
11943 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11944
11945 * corelow.c (core_target::get_core_register_section): Use
11946 std::vector instead of alloca.
11947
11948 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11949
11950 * warning.m4: Add -Wmissing-declarations to build_warnings.
11951 * configure: Re-generate.
11952
11953 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11954
11955 * python/python.c (init__gdb_module): Add declaration.
11956
11957 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11958
11959 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11960 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11961 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11962 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11963 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11964 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11965 * ada-exp.y (_initialize_ada_exp): Add declaration.
11966 * ada-lang.c (_initialize_ada_language): Add declaration.
11967 * ada-tasks.c (_initialize_tasks): Add declaration.
11968 * agent.c (_initialize_agent): Add declaration.
11969 * aix-thread.c (_initialize_aix_thread): Add declaration.
11970 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11971 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11972 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11973 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11974 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11975 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11976 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11977 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11978 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11979 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11980 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11981 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11982 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11983 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11984 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11985 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11986 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11987 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11988 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11989 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11990 * annotate.c (_initialize_annotate): Add declaration.
11991 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11992 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11993 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11994 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11995 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11996 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11997 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11998 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11999 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12000 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12001 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12002 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12003 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12004 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12005 * auto-load.c (_initialize_auto_load): Add declaration.
12006 * auxv.c (_initialize_auxv): Add declaration.
12007 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12008 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12009 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12010 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12011 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12012 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12013 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12014 * breakpoint.c (_initialize_breakpoint): Add declaration.
12015 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12016 * btrace.c (_initialize_btrace): Add declaration.
12017 * charset.c (_initialize_charset): Add declaration.
12018 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12019 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12020 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12021 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12022 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12023 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12024 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12025 * coffread.c (_initialize_coffread): Add declaration.
12026 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12027 * compile/compile.c (_initialize_compile): Add declaration.
12028 * complaints.c (_initialize_complaints): Add declaration.
12029 * completer.c (_initialize_completer): Add declaration.
12030 * copying.c (_initialize_copying): Add declaration.
12031 * corefile.c (_initialize_core): Add declaration.
12032 * corelow.c (_initialize_corelow): Add declaration.
12033 * cp-abi.c (_initialize_cp_abi): Add declaration.
12034 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12035 * cp-support.c (_initialize_cp_support): Add declaration.
12036 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12037 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12038 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12039 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12040 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12041 * ctfread.c (_initialize_ctfread): Add declaration.
12042 * d-lang.c (_initialize_d_language): Add declaration.
12043 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12044 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12045 * dbxread.c (_initialize_dbxread): Add declaration.
12046 * dcache.c (_initialize_dcache): Add declaration.
12047 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12048 * disasm.c (_initialize_disasm): Add declaration.
12049 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12050 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12051 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12052 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12053 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12054 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12055 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12056 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12057 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12058 * elfread.c (_initialize_elfread): Add declaration.
12059 * exec.c (_initialize_exec): Add declaration.
12060 * extension.c (_initialize_extension): Add declaration.
12061 * f-lang.c (_initialize_f_language): Add declaration.
12062 * f-valprint.c (_initialize_f_valprint): Add declaration.
12063 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12064 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12065 * filesystem.c (_initialize_filesystem): Add declaration.
12066 * findcmd.c (_initialize_mem_search): Add declaration.
12067 * findvar.c (_initialize_findvar): Add declaration.
12068 * fork-child.c (_initialize_fork_child): Add declaration.
12069 * frame-base.c (_initialize_frame_base): Add declaration.
12070 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12071 * frame.c (_initialize_frame): Add declaration.
12072 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12073 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12074 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12075 * gcore.c (_initialize_gcore): Add declaration.
12076 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12077 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12078 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12079 * gdbarch.c (_initialize_gdbarch): Add declaration.
12080 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12081 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12082 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12083 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12084 * go-lang.c (_initialize_go_language): Add declaration.
12085 * go32-nat.c (_initialize_go32_nat): Add declaration.
12086 * guile/guile.c (_initialize_guile): Add declaration.
12087 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12088 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12089 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12090 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12091 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12092 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12093 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12094 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12095 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12096 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12097 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12098 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12099 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12100 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12101 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12102 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12103 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12104 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12105 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12106 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12107 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12108 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12109 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12110 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12111 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12112 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12113 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12114 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12115 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12116 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12117 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12118 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12119 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12120 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12121 * infcall.c (_initialize_infcall): Add declaration.
12122 * infcmd.c (_initialize_infcmd): Add declaration.
12123 * inflow.c (_initialize_inflow): Add declaration.
12124 * infrun.c (_initialize_infrun): Add declaration.
12125 * interps.c (_initialize_interpreter): Add declaration.
12126 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12127 * jit.c (_initialize_jit): Add declaration.
12128 * language.c (_initialize_language): Add declaration.
12129 * linux-fork.c (_initialize_linux_fork): Add declaration.
12130 * linux-nat.c (_initialize_linux_nat): Add declaration.
12131 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12132 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12133 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12134 * m2-lang.c (_initialize_m2_language): Add declaration.
12135 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12136 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12137 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12138 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12139 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12140 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12141 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12142 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12143 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12144 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12145 * machoread.c (_initialize_machoread): Add declaration.
12146 * macrocmd.c (_initialize_macrocmd): Add declaration.
12147 * macroscope.c (_initialize_macroscope): Add declaration.
12148 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12149 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12150 * maint.c (_initialize_maint_cmds): Add declaration.
12151 * mdebugread.c (_initialize_mdebugread): Add declaration.
12152 * memattr.c (_initialize_mem): Add declaration.
12153 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12154 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12155 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12156 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12157 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12158 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12159 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12160 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12161 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12162 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12163 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12164 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12165 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12166 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12167 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12168 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12169 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12170 * mipsread.c (_initialize_mipsread): Add declaration.
12171 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12172 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12173 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12174 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12175 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12176 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12177 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12178 * nto-procfs.c (_initialize_procfs): Add declaration.
12179 * objc-lang.c (_initialize_objc_language): Add declaration.
12180 * observable.c (_initialize_observer): Add declaration.
12181 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12182 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12183 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12184 * osabi.c (_initialize_gdb_osabi): Add declaration.
12185 * osdata.c (_initialize_osdata): Add declaration.
12186 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12187 * parse.c (_initialize_parse): Add declaration.
12188 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12189 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12190 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12191 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12192 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12193 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12194 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12195 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12196 * printcmd.c (_initialize_printcmd): Add declaration.
12197 * probe.c (_initialize_probe): Add declaration.
12198 * proc-api.c (_initialize_proc_api): Add declaration.
12199 * proc-events.c (_initialize_proc_events): Add declaration.
12200 * proc-service.c (_initialize_proc_service): Add declaration.
12201 * procfs.c (_initialize_procfs): Add declaration.
12202 * producer.c (_initialize_producer): Add declaration.
12203 * psymtab.c (_initialize_psymtab): Add declaration.
12204 * python/python.c (_initialize_python): Add declaration.
12205 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12206 * record-btrace.c (_initialize_record_btrace): Add declaration.
12207 * record-full.c (_initialize_record_full): Add declaration.
12208 * record.c (_initialize_record): Add declaration.
12209 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12210 * regcache.c (_initialize_regcache): Add declaration.
12211 * reggroups.c (_initialize_reggroup): Add declaration.
12212 * remote-notif.c (_initialize_notif): Add declaration.
12213 * remote-sim.c (_initialize_remote_sim): Add declaration.
12214 * remote.c (_initialize_remote): Add declaration.
12215 * reverse.c (_initialize_reverse): Add declaration.
12216 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12217 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12218 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12219 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12220 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12221 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12222 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12223 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12224 Add declaration.
12225 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12226 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12227 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12228 * rust-exp.y (_initialize_rust_exp): Add declaration.
12229 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12230 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12231 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12232 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12233 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12234 * score-tdep.c (_initialize_score_tdep): Add declaration.
12235 * ser-go32.c (_initialize_ser_dos): Add declaration.
12236 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12237 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12238 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12239 * ser-uds.c (_initialize_ser_socket): Add declaration.
12240 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12241 * serial.c (_initialize_serial): Add declaration.
12242 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12243 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12244 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12245 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12246 * skip.c (_initialize_step_skip): Add declaration.
12247 * sol-thread.c (_initialize_sol_thread): Add declaration.
12248 * solib-aix.c (_initialize_solib_aix): Add declaration.
12249 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12250 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12251 * solib-frv.c (_initialize_frv_solib): Add declaration.
12252 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12253 * solib-target.c (_initialize_solib_target): Add declaration.
12254 * solib.c (_initialize_solib): Add declaration.
12255 * source-cache.c (_initialize_source_cache): Add declaration.
12256 * source.c (_initialize_source): Add declaration.
12257 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12258 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12259 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12260 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12261 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12262 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12263 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12264 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12265 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12266 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12267 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12268 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12269 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12270 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12271 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12272 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12273 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12274 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12275 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12276 * stabsread.c (_initialize_stabsread): Add declaration.
12277 * stack.c (_initialize_stack): Add declaration.
12278 * stap-probe.c (_initialize_stap_probe): Add declaration.
12279 * std-regs.c (_initialize_frame_reg): Add declaration.
12280 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12281 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12282 * symfile.c (_initialize_symfile): Add declaration.
12283 * symmisc.c (_initialize_symmisc): Add declaration.
12284 * symtab.c (_initialize_symtab): Add declaration.
12285 * target.c (_initialize_target): Add declaration.
12286 * target-connection.c (_initialize_target_connection): Add
12287 declaration.
12288 * target-dcache.c (_initialize_target_dcache): Add declaration.
12289 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12290 * thread.c (_initialize_thread): Add declaration.
12291 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12292 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12293 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12294 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12295 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12296 * tracectf.c (_initialize_ctf): Add declaration.
12297 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12298 * tracefile.c (_initialize_tracefile): Add declaration.
12299 * tracepoint.c (_initialize_tracepoint): Add declaration.
12300 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12301 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12302 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12303 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12304 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12305 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12306 * tui/tui.c (_initialize_tui): Add declaration.
12307 * typeprint.c (_initialize_typeprint): Add declaration.
12308 * ui-style.c (_initialize_ui_style): Add declaration.
12309 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12310 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12311 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12312 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12313 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12314 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12315 * unittests/filtered_iterator-selftests.c
12316 (_initialize_filtered_iterator_selftests): Add declaration.
12317 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12318 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12319 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12320 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12321 * unittests/main-thread-selftests.c
12322 (_initialize_main_thread_selftests): Add declaration.
12323 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12324 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12325 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12326 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12327 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12328 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12329 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12330 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12331 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12332 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12333 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12334 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12335 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12336 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12337 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12338 declaration.
12339 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12340 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12341 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12342 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12343 * user-regs.c (_initialize_user_regs): Add declaration.
12344 * utils.c (_initialize_utils): Add declaration.
12345 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12346 * valops.c (_initialize_valops): Add declaration.
12347 * valprint.c (_initialize_valprint): Add declaration.
12348 * value.c (_initialize_values): Add declaration.
12349 * varobj.c (_initialize_varobj): Add declaration.
12350 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12351 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12352 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12353 * windows-nat.c (_initialize_windows_nat): Add declaration.
12354 (_initialize_check_for_gdb_ini): Add declaration.
12355 (_initialize_loadable): Add declaration.
12356 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12357 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12358 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12359 * xcoffread.c (_initialize_xcoffread): Add declaration.
12360 * xml-support.c (_initialize_xml_support): Add declaration.
12361 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12362 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12363 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12364 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12365
12366 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12367
12368 * regformats/regdat.sh: Generate declaration for init function.
12369
12370 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12371
12372 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12373 up.
12374 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12375 close_one_inferior>: New methods.
12376 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12377 pass down target to find_inferior_pid.
12378 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12379 Pass down target to find_inferior_ptid.
12380 (gdbsim_target::create_inferior): Pass down target to
12381 add_thread_silent.
12382 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12383 target down to find_inferior_ptid and switch_to_thread.
12384 (gdbsim_target::close): Update to call close_one_inferior.
12385 (struct resume_data): Remove.
12386 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12387 directly, rather than through a void pointer.
12388 (gdbsim_target::resume): Update to call resume_one_inferior.
12389
12390 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12391
12392 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12393
12394 2020-01-12 Pedro Alves <palves@redhat.com>
12395
12396 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12397 directly for the current inferior instead of
12398 discard_all_inferiors.
12399 (discard_all_inferiors): Delete.
12400
12401 2020-01-11 Tom Tromey <tom@tromey.com>
12402
12403 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12404 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12405 deprecated_safe_get_selected_frame.
12406
12407 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12408
12409 * inferior.c (print_inferior): Switch inferior before printing it.
12410
12411 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12412 Pedro Alves <palves@redhat.com>
12413
12414 * progspace-and-thread.c (switch_to_program_space_and_thread):
12415 Assert there's an inferior for PSPACE. Use
12416 switch_to_inferior_no_thread to switch the inferior too.
12417 * progspace.c (program_space::~program_space): Call
12418 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12419 (program_space::free_all_objfiles): Don't call clear_symtab_users
12420 here.
12421 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12422
12423 2020-01-10 Pedro Alves <palves@redhat.com>
12424
12425 * NEWS: Mention multi-target debugging, "info connections", and
12426 "add-inferior -no-connection".
12427
12428 2020-01-10 Pedro Alves <palves@redhat.com>
12429
12430 * infrun.c: Include "target-connection.h".
12431 (check_multi_target_resumption): New.
12432 (proceed): Call it.
12433 * target-connection.c (make_target_connection_string): Make
12434 extern.
12435 * target-connection.h (make_target_connection_string): Declare.
12436
12437 2020-01-10 Pedro Alves <palves@redhat.com>
12438
12439 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12440 * inferior.c (uiout_field_connection): New function.
12441 (print_inferior): Add new "connection-id" column.
12442 (add_inferior_command): Show connection number/string of added
12443 inferior.
12444 * process-stratum-target.h
12445 (process_stratum_target::connection_string): New virtual method.
12446 (process_stratum_target::connection_number): New field.
12447 * remote.c (remote_target::connection_string): New override.
12448 * target-connection.c: New file.
12449 * target-connection.h: New file.
12450 * target.c (decref_target): Remove process_stratum targets from
12451 the connection list.
12452 (target_stack::push): Add process_stratum targets to the
12453 connection list.
12454
12455 2020-01-10 Pedro Alves <palves@redhat.com>
12456
12457 Revert:
12458 2016-04-12 Pedro Alves <palves@redhat.com>
12459 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12460 Remove references to name.
12461 * serial.h (struct serial) <name>: Delete.
12462
12463 2020-01-10 Pedro Alves <palves@redhat.com>
12464
12465 * gdbarch-selftests.c (register_to_value_test): Remove "target
12466 already pushed" check.
12467
12468 2020-01-10 Pedro Alves <palves@redhat.com>
12469 John Baldwin <jhb@FreeBSD.org>
12470
12471 * aarch64-linux-nat.c
12472 (aarch64_linux_nat_target::thread_architecture): Adjust.
12473 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12474 (task_command_1): Likewise.
12475 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12476 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12477 (aix_thread_target::store_registers)
12478 (aix_thread_target::thread_alive): Adjust.
12479 * amd64-fbsd-tdep.c: Include "inferior.h".
12480 (amd64fbsd_get_thread_local_address): Pass down target.
12481 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12482 thread's gdbarch instead of target_gdbarch.
12483 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12484 get_last_target_status.
12485 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12486 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12487 inferiors.
12488 (update_inserted_breakpoint_locations): Skip if inferiors with no
12489 execution.
12490 (update_global_location_list): When handling moribund locations,
12491 find representative inferior for location's pspace, and use thread
12492 count of its process_stratum target.
12493 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12494 * bsd-uthread.c (bsd_uthread_target::wait): Use
12495 as_process_stratum_target and adjust thread_change_ptid and
12496 add_thread calls.
12497 (bsd_uthread_target::update_thread_list): Use
12498 as_process_stratum_target and adjust find_thread_ptid,
12499 thread_change_ptid and add_thread calls.
12500 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12501 find_thread_ptid call.
12502 * corelow.c (add_to_thread_list): Adjust add_thread call.
12503 (core_target_open): Adjust add_thread_silent and thread_count
12504 calls.
12505 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12506 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12507 * event-top.c (async_disconnect): Pop targets from all inferiors.
12508 * exec.c (add_target_sections): Push exec target on all inferiors
12509 sharing the program space.
12510 (remove_target_sections): Remove the exec target from all
12511 inferiors sharing the program space.
12512 (exec_on_vfork): New.
12513 * exec.h (exec_on_vfork): Declare.
12514 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12515 Pass it down.
12516 (fbsd_nat_target::update_thread_list): Adjust.
12517 (fbsd_nat_target::resume): Adjust.
12518 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12519 down.
12520 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12521 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12522 get_thread_arch_regcache call.
12523 * fork-child.c (gdb_startup_inferior): Pass target down to
12524 startup_inferior and set_executing.
12525 * gdbthread.h (struct process_stratum_target): Forward declare.
12526 (add_thread, add_thread_silent, add_thread_with_info)
12527 (in_thread_list): Add process_stratum_target parameter.
12528 (find_thread_ptid(inferior*, ptid_t)): New overload.
12529 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12530 parameter.
12531 (all_threads()): Delete overload.
12532 (all_threads, all_non_exited_threads): Add process_stratum_target
12533 parameter.
12534 (all_threads_safe): Use brace initialization.
12535 (thread_count): Add process_stratum_target parameter.
12536 (set_resumed, set_running, set_stop_requested, set_executing)
12537 (threads_are_executing, finish_thread_state): Add
12538 process_stratum_target parameter.
12539 (switch_to_thread): Use is_current_thread.
12540 * i386-fbsd-tdep.c: Include "inferior.h".
12541 (i386fbsd_get_thread_local_address): Pass down target.
12542 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12543 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12544 have_inferiors check.
12545 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12546 (inf_ptrace_target::attach): Adjust.
12547 * infcall.c (run_inferior_call): Adjust.
12548 * infcmd.c (run_command_1): Pass target to
12549 scoped_finish_thread_state.
12550 (proceed_thread_callback): Skip inferiors with no execution.
12551 (continue_command): Rename 'all_threads' local to avoid hiding
12552 'all_threads' function. Adjust get_last_target_status call.
12553 (prepare_one_step): Adjust set_running call.
12554 (signal_command): Use user_visible_resume_target. Compare thread
12555 pointers instead of inferior_ptid.
12556 (info_program_command): Adjust to pass down target.
12557 (attach_command): Mark target's 'thread_executing' flag.
12558 (stop_current_target_threads_ns): New, factored out from ...
12559 (interrupt_target_1): ... this. Switch inferior before making
12560 target calls.
12561 * inferior-iter.h
12562 (struct all_inferiors_iterator, struct all_inferiors_range)
12563 (struct all_inferiors_safe_range)
12564 (struct all_non_exited_inferiors_range): Filter on
12565 process_stratum_target too. Remove explicit.
12566 * inferior.c (inferior::inferior): Push dummy target on target
12567 stack.
12568 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12569 Add process_stratum_target parameter, and pass it down.
12570 (have_live_inferiors): Adjust.
12571 (switch_to_inferior_and_push_target): New.
12572 (add_inferior_command, clone_inferior_command): Handle
12573 "-no-connection" parameter. Use
12574 switch_to_inferior_and_push_target.
12575 (_initialize_inferior): Mention "-no-connection" option in
12576 the help of "add-inferior" and "clone-inferior" commands.
12577 * inferior.h: Include "process-stratum-target.h".
12578 (interrupt_target_1): Use bool.
12579 (struct inferior) <push_target, unpush_target, target_is_pushed,
12580 find_target_beneath, top_target, process_target, target_at,
12581 m_stack>: New.
12582 (discard_all_inferiors): Delete.
12583 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12584 (all_inferiors, all_non_exited_inferiors): Add
12585 process_stratum_target parameter.
12586 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12587 (target_last_proc_target): New global.
12588 (follow_fork_inferior): Push target on new inferior. Pass target
12589 to add_thread_silent. Call exec_on_vfork. Handle target's
12590 reference count.
12591 (follow_fork): Adjust get_last_target_status call. Also consider
12592 target.
12593 (follow_exec): Push target on new inferior.
12594 (struct execution_control_state) <target>: New field.
12595 (user_visible_resume_target): New.
12596 (do_target_resume): Call target_async.
12597 (resume_1): Set target's threads_executing flag. Consider resume
12598 target.
12599 (commit_resume_all_targets): New.
12600 (proceed): Also consider resume target. Skip threads of inferiors
12601 with no execution. Commit resumtion in all targets.
12602 (start_remote): Pass current inferior to wait_for_inferior.
12603 (infrun_thread_stop_requested): Consider target as well. Pass
12604 thread_info pointer to clear_inline_frame_state instead of ptid.
12605 (infrun_thread_thread_exit): Consider target as well.
12606 (random_pending_event_thread): New inferior parameter. Use it.
12607 (do_target_wait): Rename to ...
12608 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12609 down.
12610 (threads_are_resumed_pending_p, do_target_wait): New.
12611 (prepare_for_detach): Adjust calls.
12612 (wait_for_inferior): New inferior parameter. Handle it. Use
12613 do_target_wait_1 instead of do_target_wait.
12614 (fetch_inferior_event): Adjust. Switch to representative
12615 inferior. Pass target down.
12616 (set_last_target_status): Add process_stratum_target parameter.
12617 Save target in global.
12618 (get_last_target_status): Add process_stratum_target parameter and
12619 handle it.
12620 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12621 (context_switch): Check inferior_ptid == null_ptid before calling
12622 inferior_thread().
12623 (get_inferior_stop_soon): Pass down target.
12624 (wait_one): Rename to ...
12625 (poll_one_curr_target): ... this.
12626 (struct wait_one_event): New.
12627 (wait_one): New.
12628 (stop_all_threads): Adjust.
12629 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12630 event's target.
12631 (switch_back_to_stepped_thread): Also consider target.
12632 (print_stop_event): Update.
12633 (normal_stop): Update. Also consider the resume target.
12634 * infrun.h (wait_for_inferior): Remove declaration.
12635 (user_visible_resume_target): New declaration.
12636 (get_last_target_status, set_last_target_status): New
12637 process_stratum_target parameter.
12638 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12639 process_stratum_target parameter, and use it.
12640 (clear_inline_frame_state (thread_info*)): New.
12641 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12642 process_stratum_target parameter.
12643 (clear_inline_frame_state (thread_info*)): Declare.
12644 * linux-fork.c (delete_checkpoint_command): Pass target down to
12645 find_thread_ptid.
12646 (checkpoint_command): Adjust.
12647 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12648 instead of just tweaking inferior_ptid.
12649 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12650 (exit_lwp): Pass target down to find_thread_ptid.
12651 (attach_proc_task_lwp_callback): Pass target down to
12652 add_thread/set_running/set_executing.
12653 (linux_nat_target::attach): Pass target down to
12654 thread_change_ptid.
12655 (get_detach_signal): Pass target down to find_thread_ptid.
12656 Consider last target status's target.
12657 (linux_resume_one_lwp_throw, resume_lwp)
12658 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12659 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12660 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12661 (linux_nat_target::async_wait_fd): New.
12662 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12663 target down.
12664 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12665 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12666 * linux-thread-db.c (struct thread_db_info::process_target): New
12667 field.
12668 (add_thread_db_info): Save target.
12669 (get_thread_db_info): New process_stratum_target parameter. Also
12670 match target.
12671 (delete_thread_db_info): New process_stratum_target parameter.
12672 Also match target.
12673 (thread_from_lwp): Adjust to pass down target.
12674 (thread_db_notice_clone): Pass down target.
12675 (check_thread_db_callback): Pass down target.
12676 (try_thread_db_load_1): Always push the thread_db target.
12677 (try_thread_db_load, record_thread): Pass target down.
12678 (thread_db_target::detach): Pass target down. Always unpush the
12679 thread_db target.
12680 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12681 target down. Always unpush the thread_db target.
12682 (find_new_threads_callback, thread_db_find_new_threads_2)
12683 (thread_db_target::update_thread_list): Pass target down.
12684 (thread_db_target::pid_to_str): Pass current inferior down.
12685 (thread_db_target::get_thread_local_address): Pass target down.
12686 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12687 target down.
12688 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12689 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12690 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12691 (procfs_init_inferior): Rename to ...
12692 (procfs_target::procfs_init_inferior): ... this and adjust.
12693 (procfs_target::create_inferior, procfs_notice_thread)
12694 (procfs_do_thread_registers): Adjust.
12695 * ppc-fbsd-tdep.c: Include "inferior.h".
12696 (ppcfbsd_get_thread_local_address): Pass down target.
12697 * proc-service.c (ps_xfer_memory): Switch current inferior and
12698 program space as well.
12699 (get_ps_regcache): Pass target down.
12700 * process-stratum-target.c
12701 (process_stratum_target::thread_address_space)
12702 (process_stratum_target::thread_architecture): Pass target down.
12703 * process-stratum-target.h
12704 (process_stratum_target::threads_executing): New field.
12705 (as_process_stratum_target): New.
12706 * ravenscar-thread.c
12707 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12708 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12709 down.
12710 * record-btrace.c (record_btrace_target::info_record): Adjust.
12711 (record_btrace_target::record_method)
12712 (record_btrace_target::record_is_replaying)
12713 (record_btrace_target::fetch_registers)
12714 (get_thread_current_frame_id, record_btrace_target::resume)
12715 (record_btrace_target::wait, record_btrace_target::stop): Pass
12716 target down.
12717 * record-full.c (record_full_wait_1): Switch to event thread.
12718 Pass target down.
12719 * regcache.c (regcache::regcache)
12720 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12721 process_stratum_target parameter and handle it.
12722 (current_thread_target): New global.
12723 (get_thread_regcache): Add process_stratum_target parameter and
12724 handle it. Switch inferior before calling target method.
12725 (get_thread_regcache): Pass target down.
12726 (get_thread_regcache_for_ptid): Pass target down.
12727 (registers_changed_ptid): Add process_stratum_target parameter and
12728 handle it.
12729 (registers_changed_thread, registers_changed): Pass target down.
12730 (test_get_thread_arch_aspace_regcache): New.
12731 (current_regcache_test): Define a couple local test_target_ops
12732 instances and use them for testing.
12733 (readwrite_regcache): Pass process_stratum_target parameter.
12734 (cooked_read_test, cooked_write_test): Pass mock_target down.
12735 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12736 (get_thread_arch_aspace_regcache): Add process_stratum_target
12737 parameter.
12738 (regcache::target): New method.
12739 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12740 (regcache::registers_changed_ptid): Add process_stratum_target
12741 parameter.
12742 (regcache::m_target): New field.
12743 (registers_changed_ptid): Add process_stratum_target parameter.
12744 * remote.c (remote_state::supports_vCont_probed): New field.
12745 (remote_target::async_wait_fd): New method.
12746 (remote_unpush_and_throw): Add remote_target parameter.
12747 (get_current_remote_target): Adjust.
12748 (remote_target::remote_add_inferior): Push target.
12749 (remote_target::remote_add_thread)
12750 (remote_target::remote_notice_new_inferior)
12751 (get_remote_thread_info): Pass target down.
12752 (remote_target::update_thread_list): Skip threads of inferiors
12753 bound to other targets. (remote_target::close): Don't discard
12754 inferiors. (remote_target::add_current_inferior_and_thread)
12755 (remote_target::process_initial_stop_replies)
12756 (remote_target::start_remote)
12757 (remote_target::remote_serial_quit_handler): Pass down target.
12758 (remote_target::remote_unpush_target): New remote_target
12759 parameter. Unpush the target from all inferiors.
12760 (remote_target::remote_unpush_and_throw): New remote_target
12761 parameter. Pass it down.
12762 (remote_target::open_1): Check whether the current inferior has
12763 execution instead of checking whether any inferior is live. Pass
12764 target down.
12765 (remote_target::remote_detach_1): Pass down target. Use
12766 remote_unpush_target.
12767 (extended_remote_target::attach): Pass down target.
12768 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12769 (remote_target::append_resumption): Pass down target.
12770 (remote_target::append_pending_thread_resumptions)
12771 (remote_target::remote_resume_with_hc, remote_target::resume)
12772 (remote_target::commit_resume): Pass down target.
12773 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12774 (remote_target::interrupt_query)
12775 (remote_target::remove_new_fork_children)
12776 (remote_target::check_pending_events_prevent_wildcard_vcont)
12777 (remote_target::remote_parse_stop_reply)
12778 (remote_target::process_stop_reply): Pass down target.
12779 (first_remote_resumed_thread): New remote_target parameter. Pass
12780 it down.
12781 (remote_target::wait_as): Pass down target.
12782 (unpush_and_perror): New remote_target parameter. Pass it down.
12783 (remote_target::readchar, remote_target::remote_serial_write)
12784 (remote_target::getpkt_or_notif_sane_1)
12785 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12786 down target.
12787 (remote_target::mourn_inferior): Pass down target. Use
12788 remote_unpush_target.
12789 (remote_target::core_of_thread)
12790 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12791 (remote_target::pid_to_exec_file)
12792 (remote_target::thread_handle_to_thread_info): Pass down target.
12793 (remote_target::async_wait_fd): New.
12794 * riscv-fbsd-tdep.c: Include "inferior.h".
12795 (riscv_fbsd_get_thread_local_address): Pass down target.
12796 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12797 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12798 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12799 Adjust.
12800 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12801 * solib-svr4.c (enable_break): Pass down target.
12802 * spu-multiarch.c (parse_spufs_run): Pass down target.
12803 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12804 * target-delegates.c: Regenerate.
12805 * target.c (g_target_stack): Delete.
12806 (current_top_target): Return the current inferior's top target.
12807 (target_has_execution_1): Refer to the passed-in inferior's top
12808 target.
12809 (target_supports_terminal_ours): Check whether the initial
12810 inferior was already created.
12811 (decref_target): New.
12812 (target_stack::push): Incref/decref the target.
12813 (push_target, push_target, unpush_target): Adjust.
12814 (target_stack::unpush): Defref target.
12815 (target_is_pushed): Return bool. Adjust to refer to the current
12816 inferior's target stack.
12817 (dispose_inferior): Delete, and inline parts ...
12818 (target_preopen): ... here. Only dispose of the current inferior.
12819 (target_detach): Hold strong target reference while detaching.
12820 Pass target down.
12821 (target_thread_name): Add assertion.
12822 (target_resume): Pass down target.
12823 (target_ops::beneath, find_target_at): Adjust to refer to the
12824 current inferior's target stack.
12825 (get_dummy_target): New.
12826 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12827 has a thread running.
12828 (initialize_targets): Rename to ...
12829 (_initialize_target): ... this.
12830 * target.h: Include "gdbsupport/refcounted-object.h".
12831 (struct target_ops): Inherit refcounted_object.
12832 (target_ops::shortname, target_ops::longname): Make const.
12833 (target_ops::async_wait_fd): New method.
12834 (decref_target): Declare.
12835 (struct target_ops_ref_policy): New.
12836 (target_ops_ref): New typedef.
12837 (get_dummy_target): Declare function.
12838 (target_is_pushed): Return bool.
12839 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12840 (all_matching_threads_iterator::all_matching_threads_iterator):
12841 Handle filter target.
12842 * thread-iter.h (struct all_matching_threads_iterator, struct
12843 all_matching_threads_range, class all_non_exited_threads_range):
12844 Filter by target too. Remove explicit.
12845 * thread.c (threads_executing): Delete.
12846 (inferior_thread): Pass down current inferior.
12847 (clear_thread_inferior_resources): Pass down thread pointer
12848 instead of ptid_t.
12849 (add_thread_silent, add_thread_with_info, add_thread): Add
12850 process_stratum_target parameter. Use it for thread and inferior
12851 searches.
12852 (is_current_thread): New.
12853 (thread_info::deletable): Use it.
12854 (find_thread_ptid, thread_count, in_thread_list)
12855 (thread_change_ptid, set_resumed, set_running): New
12856 process_stratum_target parameter. Pass it down.
12857 (set_executing): New process_stratum_target parameter. Pass it
12858 down. Adjust reference to 'threads_executing'.
12859 (threads_are_executing): New process_stratum_target parameter.
12860 Adjust reference to 'threads_executing'.
12861 (set_stop_requested, finish_thread_state): New
12862 process_stratum_target parameter. Pass it down.
12863 (switch_to_thread): Also match inferior.
12864 (switch_to_thread): New process_stratum_target parameter. Pass it
12865 down.
12866 (update_threads_executing): Reimplement.
12867 * top.c (quit_force): Pop targets from all inferior.
12868 (gdb_init): Don't call initialize_targets.
12869 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12870 Declare.
12871 (windows_add_thread, windows_delete_thread): Adjust.
12872 (get_windows_debug_event): Rename to ...
12873 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12874 * tracefile-tfile.c (tfile_target_open): Pass down target.
12875 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12876 Forward declare.
12877 (switch_to_thread): Add process_stratum_target parameter.
12878 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12879 parameter. Use it.
12880 (mi_on_resume): Pass target down.
12881 * nat/fork-inferior.c (startup_inferior): Add
12882 process_stratum_target parameter. Pass it down.
12883 * nat/fork-inferior.h (startup_inferior): Add
12884 process_stratum_target parameter.
12885 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12886
12887 2020-01-10 Pedro Alves <palves@redhat.com>
12888
12889 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12890 directly. Instead find the first thread in the thread list and
12891 use switch_to_thread.
12892
12893 2020-01-10 Pedro Alves <palves@redhat.com>
12894
12895 * remote.c (remote_target::remote_add_inferior): Don't bind a
12896 process to the current inferior if the current inferior is already
12897 bound to a process.
12898
12899 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12900 Pedro Alves <palves@redhat.com>
12901
12902 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12903 If no process is specified, return null_ptid instead of
12904 inferior_ptid.
12905 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12906 TARGET_WAITKIND_SIGNALLED with no pid.
12907
12908 2020-01-10 Pedro Alves <palves@redhat.com>
12909
12910 * remote.c (first_remote_resumed_thread): New.
12911 (remote_target::wait_as): Use it as default event_ptid instead of
12912 inferior_ptid.
12913
12914 2020-01-10 Pedro Alves <palves@redhat.com>
12915
12916 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12917
12918 2020-01-10 Pedro Alves <palves@redhat.com>
12919
12920 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12921 not -1.
12922
12923 2020-01-10 Pedro Alves <palves@redhat.com>
12924
12925 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12926 ptid to get_last_target_status.
12927 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12928 ptid to get_last_target_status.
12929 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12930 get_last_target_status.
12931 (info_program_command): Don't pass a target_waitstatus to
12932 get_last_target_status.
12933 * infrun.c (init_wait_for_inferior): Use
12934 nullify_last_target_wait_ptid.
12935 (get_last_target_status): Handle nullptr arguments.
12936 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12937 (print_stop_event): Don't pass a ptid to get_last_target_status.
12938 (normal_stop): Don't pass a ptid to get_last_target_status.
12939 * infrun.h (get_last_target_status, set_last_target_status): Move
12940 comments here and update.
12941 (nullify_last_target_wait_ptid): Declare.
12942 * linux-fork.c (fork_load_infrun_state): Remove local extern
12943 declaration of nullify_last_target_wait_ptid.
12944 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12945 to get_last_target_status.
12946
12947 2020-01-10 Pedro Alves <palves@redhat.com>
12948
12949 * gdbthread.h (scoped_restore_current_thread)
12950 <dont_restore, restore, m_dont_restore>: Declare.
12951 * thread.c (thread_alive): Add assertion. Return bool.
12952 (switch_to_thread_if_alive): New.
12953 (prune_threads): Switch inferior/thread.
12954 (print_thread_info_1): Switch thread before calling target methods.
12955 (scoped_restore_current_thread::restore): New, factored out from
12956 ...
12957 (scoped_restore_current_thread::~scoped_restore_current_thread):
12958 ... this.
12959 (scoped_restore_current_thread::scoped_restore_current_thread):
12960 Add assertion.
12961 (thread_apply_all_command, thread_select): Use
12962 switch_to_thread_if_alive.
12963 * infrun.c (proceed, restart_threads, handle_signal_stop)
12964 (switch_back_to_stepped_thread): Switch current thread before
12965 calling target methods.
12966
12967 2020-01-10 Pedro Alves <palves@redhat.com>
12968
12969 * inferior.c (switch_to_inferior_no_thread): New function,
12970 factored out from ...
12971 (inferior_command): ... here.
12972 * inferior.h (switch_to_inferior_no_thread): Declare.
12973 * mi/mi-main.c (run_one_inferior): Use
12974 switch_to_inferior_no_thread.
12975
12976 2020-01-10 Pedro Alves <palves@redhat.com>
12977
12978 * infcmd.c (kill_command): Remove dead code.
12979
12980 2020-01-10 Pedro Alves <palves@redhat.com>
12981
12982 * remote.c (remote_target::mourn_inferior): No longer check
12983 whether the target is running.
12984
12985 2020-01-10 Pedro Alves <palves@redhat.com>
12986
12987 * corelow.c (core_target::has_execution): Change parameter type to
12988 inferior pointer.
12989 * inferior.c (number_of_live_inferiors): Use
12990 inferior::has_execution instead of target_has_execution_1.
12991 * inferior.h (inferior::has_execution): New.
12992 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12993 inferior::has_execution instead of target_has_execution_1.
12994 * process-stratum-target.c
12995 (process_stratum_target::has_execution): Change parameter type to
12996 inferior pointer. Check the inferior's PID instead of
12997 inferior_ptid.
12998 * process-stratum-target.h
12999 (process_stratum_target::has_execution): Change parameter type to
13000 inferior pointer.
13001 * record-full.c (record_full_core_target::has_execution): Change
13002 parameter type to inferior pointer.
13003 * target.c (target_has_execution_1): Change parameter type to
13004 inferior pointer.
13005 (target_has_execution_current): Adjust.
13006 * target.h (target_ops::has_execution): Change parameter type to
13007 inferior pointer.
13008 (target_has_execution_1): Change parameter type to inferior
13009 pointer. Change return type to bool.
13010 * tracefile.h (tracefile_target::has_execution): Change parameter
13011 type to inferior pointer.
13012
13013 2020-01-10 Pedro Alves <palves@redhat.com>
13014
13015 * exceptions.c (print_flush): Remove current_top_target() check.
13016
13017 2020-01-10 Pedro Alves <palves@redhat.com>
13018
13019 * remote.c (show_remote_exec_file): Show the current inferior's
13020 exec-file instead of the command variable's value.
13021
13022 2020-01-10 Pedro Alves <palves@redhat.com>
13023
13024 * record-full.c (record_full_resume_ptid): New global.
13025 (record_full_target::resume): Set it.
13026 (record_full_wait_1): Use record_full_resume_ptid instead of
13027 inferior_ptid.
13028
13029 2020-01-10 Pedro Alves <palves@redhat.com>
13030
13031 * gdbthread.h (scoped_restore_current_thread)
13032 <dont_restore, restore, m_dont_restore>: Declare.
13033 * thread.c (thread_alive): Add assertion. Return bool.
13034 (switch_to_thread_if_alive): New.
13035 (prune_threads): Switch inferior/thread.
13036 (print_thread_info_1): Switch thread before calling target methods.
13037 (scoped_restore_current_thread::restore): New, factored out from
13038 ...
13039 (scoped_restore_current_thread::~scoped_restore_current_thread):
13040 ... this.
13041 (scoped_restore_current_thread::scoped_restore_current_thread):
13042 Add assertion.
13043 (thread_apply_all_command, thread_select): Use
13044 switch_to_thread_if_alive.
13045
13046 2020-01-10 George Barrett <bob@bob131.so>
13047
13048 * stap-probe.c (stap_modify_semaphore): Don't check for null
13049 semaphores.
13050 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13051 for null semaphores.
13052
13053 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13054
13055 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13056 all source windows, and maintain horizontal scroll status while
13057 doing so.
13058
13059 2020-01-09 Tom Tromey <tom@tromey.com>
13060
13061 PR tui/18932:
13062 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13063 update_source_window, not print_source_lines.
13064
13065 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13066
13067 * tui/tui.c (tui_enable): Register tui hooks after calling
13068 tui_display_main.
13069
13070 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13071
13072 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13073
13074 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13075
13076 * thread.c (print_thread_info_1): Fix indentation.
13077
13078 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13079
13080 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13081 unique_xmalloc_ptr outside the if to always free the demangled name.
13082
13083 2020-01-08 Tom Tromey <tromey@adacore.com>
13084
13085 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13086 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13087 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13088 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13089 Remove.
13090 (section_offsets): New typedef.
13091 * symtab.c (fixup_section, get_msymbol_address): Update.
13092 * symmisc.c (dump_msymbols): Update.
13093 * symfile.h (relative_addr_info_to_section_offsets)
13094 (symfile_map_offsets_to_segments): Update.
13095 * symfile.c (build_section_addr_info_from_objfile)
13096 (init_objfile_sect_indices): Update.
13097 (struct place_section_arg): Change type of "offsets".
13098 (place_section): Update.
13099 (relative_addr_info_to_section_offsets): Change type of
13100 "section_offsets". Remove "num_sections" parameter.
13101 (default_symfile_offsets, syms_from_objfile_1)
13102 (set_objfile_default_section_offset): Update.
13103 (reread_symbols): No need to preserve section offsets by hand.
13104 (symfile_map_offsets_to_segments): Change type of "offsets".
13105 * stap-probe.c (relocate_address): Update.
13106 * stabsread.h (process_one_symbol): Update.
13107 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13108 (solib_target_relocate_section_addresses): Update.
13109 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13110 Update.
13111 * solib-frv.c (frv_relocate_main_executable): Update.
13112 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13113 * solib-aix.c (solib_aix_get_section_offsets): Change return
13114 type.
13115 (solib_aix_solib_create_inferior_hook): Update.
13116 * remote.c (remote_target::get_offsets): Update.
13117 * psymtab.c (find_pc_sect_psymtab): Update.
13118 * psympriv.h (struct partial_symbol) <address, text_low,
13119 text_high>: Update.
13120 * objfiles.h (obj_section_offset): Update.
13121 (struct objfile) <section_offsets>: Change type.
13122 <num_sections>: Remove.
13123 (objfile_relocate): Update.
13124 * objfiles.c (entry_point_address_query): Update
13125 (relocate_one_symbol): Change type of "section_offsets".
13126 (objfile_relocate1, objfile_relocate1): Change type of
13127 "new_offsets".
13128 (objfile_rebase1): Update.
13129 * mipsread.c (mipscoff_symfile_read): Update.
13130 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13131 parameter.
13132 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13133 (parse_external, psymtab_to_symtab_1): Update.
13134 * machoread.c (macho_symfile_offsets): Update.
13135 * ia64-tdep.c (ia64_find_unwind_table): Update.
13136 * hppa-tdep.c (read_unwind_info): Update.
13137 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13138 * dwarf2read.c (create_addrmap_from_index)
13139 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13140 (process_psymtab_comp_unit_reader, add_partial_symbol)
13141 (add_partial_subprogram, process_full_comp_unit)
13142 (read_file_scope, read_func_scope, read_lexical_block_scope)
13143 (read_call_site_scope, dwarf2_rnglists_process)
13144 (dwarf2_ranges_process, dwarf2_ranges_read)
13145 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13146 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13147 Update.
13148 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13149 Update.
13150 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13151 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13152 (process_one_symbol): Change type of "section_offsets".
13153 * ctfread.c (get_objfile_text_range): Update.
13154 * coffread.c (coff_symtab_read, enter_linenos)
13155 (process_coff_symbol): Update.
13156 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13157 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13158
13159 2020-01-08 Tom Tromey <tromey@adacore.com>
13160
13161 * dwarf2read.c (parse_macro_definition): Use std::string.
13162 (parse_macro_definition): Likewise.
13163
13164 2020-01-08 Tom Tromey <tromey@adacore.com>
13165
13166 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13167 (ATTR_ALLOC_CHUNK): Remove.
13168
13169 2020-01-08 Tom Tromey <tromey@adacore.com>
13170
13171 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13172
13173 2020-01-08 Tom Tromey <tromey@adacore.com>
13174
13175 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13176 (dwarf2_compute_name, open_dwo_file): Likewise.
13177 (process_enumeration_scope): Use std::vector.
13178 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13179 (partial_die_info::fixup, dwarf2_start_subfile)
13180 (guess_full_die_structure_name, dwarf2_name): Likewise.
13181 (determine_prefix): Update.
13182 (guess_full_die_structure_name): Make return type const.
13183 (partial_die_full_name): Return unique_xmalloc_ptr.
13184 (DW_FIELD_ALLOC_CHUNK): Remove.
13185
13186 2020-01-07 Tom Tromey <tromey@adacore.com>
13187
13188 PR build/24937:
13189 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13190
13191 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13192
13193 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13194
13195 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13196
13197 * stack.c (print_frame_info): Move disassemble_next_line code
13198 inside source_print block.
13199
13200 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13201
13202 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13203 gdb/signals.h, as we are now using native signal symbols.
13204
13205 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13206
13207 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13208 overflow by an early check of content vs threshold.
13209 * tui/tui-source.c (tui_source_window::line_is_displayed):
13210 Likewise.
13211
13212 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13213
13214 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13215
13216 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13217
13218 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13219 export table if no section contains it's RVA.
13220
13221 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13222
13223 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13224
13225 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13226
13227 * source.c (print_source_lines_base): Set last_line_listed.
13228
13229 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13230
13231 * tui/tui-disasm.c: Remove trailing spaces.
13232
13233 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13234 Pedro Alves <palves@redhat.com>
13235
13236 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13237 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13238 (windows_gdb_signal_to_target): New function, uses the above
13239 enumeration to convert GDB internal signal codes to equivalent
13240 Windows codes.
13241 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13242 * windows-nat.c: Include "gdb_wait.h".
13243 (get_windows_debug_event): Extract the fatal exception from the
13244 exit status and convert to the equivalent Posix signal number.
13245 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13246 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13247 * gdbsupport/gdb_wait.c: New file, implements
13248 windows_status_to_termsig.
13249 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13250 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13251
13252 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13253
13254 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13255 show_layout.
13256
13257 2020-01-05 Luis Machado <luis.machado@linaro.org>
13258
13259 * aarch64-linux-nat.c
13260 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13261 and bfd_mach_aarch64.
13262
13263 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13264
13265 * ui-file.c (stdio_file::can_emit_style_escape)
13266 (tee_file::can_emit_style_escape): Ensure style is used also on
13267 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13268 to gdb_stdout.
13269 * main.c (set_gdb_data_directory): Use file style to output the
13270 warning that the given pathname is not a directory.
13271 * top.c (show_history_filename, gdb_safe_append_history)
13272 (show_gdb_datadir): Use file style.
13273
13274 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13275
13276 * solib-target.c (struct lm_info_target):
13277 Change offsets to be a unique_xmalloc_ptr.
13278 (solib_target_relocate_section_addresses): Update.
13279
13280 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13281
13282 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13283
13284 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13285
13286 * MAINTAINERS (Write After Approval): Add myself.
13287
13288 2020-01-02 Luis Machado <luis.machado@linaro.org>
13289
13290 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13291 Cell BE architecture.
13292 * target.h (struct target_ops) <thread_architecture>: Likewise.
13293
13294 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13295
13296 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13297
13298 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13299
13300 * MAINTAINERS (Write After Approval): Add myself.
13301
13302 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13303
13304 * gdbarch.sh: Update copyright year range of generated files.
13305
13306 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13307
13308 Update copyright year range in all GDB files.
13309
13310 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13311
13312 * copyright.py: Convert to Python 3.
13313
13314 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13315
13316 * copyright.py: Adapt after move of gnulib directory from gdb
13317 directory to toplevel directory.
13318
13319 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13320
13321 * copyright.py (main): Exit if run from the wrong directory.
13322
13323 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13324
13325 * top.c (print_gdb_version): Change copyright year to 2020.
13326
13327 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13328
13329 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13330
13331 For older changes see ChangeLog-2019.
13332 \f
13333 Local Variables:
13334 mode: change-log
13335 left-margin: 8
13336 fill-column: 74
13337 version-control: never
13338 coding: utf-8
13339 End: