gdb: Fix an incorrect comment
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * valops.c (value_repeat): Fix incorrect argument name in comment.
4
5 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * ada-lang.c (ada_language_data): Remove c_style_arrays
8 initializer.
9 (ada_language::c_style_arrays_p): New member fuction.
10 * c-lang.c (c_language_data): Remove c_style_arrays
11 initializer.
12 (cplus_language_data): Likewise.
13 (asm_language_data): Likewise.
14 (minimal_language_data): Likewise.
15 * d-lang.c (d_language_data): Likewise.
16 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
17 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
18 (f_language::c_style_arrays_p): New member function.
19 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
20 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
21 * language.c (unknown_language_data): Remove c_style_arrays
22 initializer.
23 (auto_language_data): Likewise.
24 * language.h (language_data): Remove c_style_arrays field.
25 (language_defn::c_style_arrays_p): New member function.
26 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
27 (m2_language::c_style_arrays_p): New member function.
28 * objc-lang.c (objc_language_data): Remove c_style_arrays
29 initializer.
30 * opencl-lang.c (opencl_language_data): Likewise.
31 * p-lang.c (pascal_language_data): Likewise.
32 * rust-lang.c (rust_language_data): Likewise.
33 * valarith.c (value_subscript): Update call to c_style_arrays_p,
34 and update local variable to a bool.
35 * valops.c (value_cast): Update call to c_style_arrays_p.
36 (value_array): Likewise.
37 * value.c (coerce_array): Likewise.
38
39 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
40
41 * ada-lang.c (ada_language_data): Remove la_language initializer.
42 * c-lang.c (c_language_data): Likewise.
43 (cplus_language_data): Likewise.
44 (asm_language_data): Likewise.
45 (minimal_language_data): Likewise.
46 * d-lang.c (d_language_data): Likewise.
47 * f-lang.c (f_language_data): Likewise.
48 * go-lang.c (go_language_data): Likewise.
49 * language.c (unknown_language_data): Likewise.
50 (auto_language_data): Likewise.
51 * language.h (language_data): Remove la_language field.
52 (language_defn::language_defn): Initialise la_language field.
53 (language_defn::la_language): New member variable.
54 * m2-lang.c (m2_language_data): Remove la_language field.
55 * objc-lang.c (objc_language_data): Likewise.
56 * opencl-lang.c (opencl_language_data): Likewise.
57 * p-lang.c (pascal_language_data): Likewise.
58 * rust-lang.c (rust_language_data): Likewise.
59
60 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
61
62 * ada-lang.c (ada_extensions): Delete, moved into
63 ada_language::filename_extensions.
64 (ada_language_data): Remove la_filename_extensions initializer.
65 (ada_language::filename_extensions): New member function.
66 * c-lang.c (c_extensions): Delete, moved into
67 c_language::filename_extensions.
68 (c_language_data): Remove la_filename_extensions initializer.
69 (c_language::filename_extensions): New member function.
70 (cplus_extensions): Delete, moved into
71 cplus_language::filename_extensions.
72 (cplus_language_data): Remove la_filename_extensions initializer.
73 (cplus_language::filename_extensions): New member function.
74 (asm_extensions): Delete, moved into
75 asm_language::filename_extensions.
76 (asm_language_data): Remove la_filename_extensions initializer.
77 (asm_language::filename_extensions): New member function.
78 (minimal_language_data): Remove la_filename_extensions
79 initializer.
80 * d-lang.c (d_extensions): Delete, moved into
81 d_language::filename_extensions.
82 (d_language_data): Remove la_filename_extensions initializer.
83 (d_language::filename_extensions): New member function.
84 * f-lang.c (f_extensions): Delete, moved into
85 f_language::filename_extensions.
86 (f_language_data): Remove la_filename_extensions initializer.
87 (f_language::filename_extensions): New member function.
88 * go-lang.c (go_language_data): Remove la_filename_extensions
89 initializer.
90 * language.c (add_set_language_command): Update now that
91 filename_extensions returns a vector.
92 (unknown_language_data): Remove la_filename_extensions
93 initializer.
94 (auto_language_data): Likewise.
95 * language.h (language_data): Remove la_filename_extensions field.
96 (language_defn::filename_extensions): New member function.
97 * m2-lang.c (m2_language_data): Remove la_filename_extensions
98 initializer.
99 * objc-lang.c (objc_extensions): Delete, moved into
100 objc_language::filename_extensions.
101 (objc_language_data): Remove la_filename_extensions initializer.
102 (objc_language::filename_extensions): New member function.
103 * opencl-lang.c (opencl_language_data): Remove
104 la_filename_extensions initializer.
105 * p-lang.c (pascal_extensions): Delete, moved into
106 pascal_language::filename_extensions.
107 (pascal_language_data): Remove la_filename_extensions initializer.
108 (pascal_language::filename_extensions): New member function.
109 * rust-lang.c (rust_extensions): Delete, moved into
110 rust_language::filename_extensions.
111 (rust_language_data): Remove la_filename_extensions initializer.
112 (rust_language::filename_extensions): New member function.
113 * symfile.c (add_filename_language): Add new assert.
114
115 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * ada-lang.c (ada_language_data): Remove la_name and
118 la_natural_name initializers.
119 (ada_language::name): New member function.
120 (ada_language::natural_name): New member function.
121 * c-lang.c (c_language_data): Remove la_name and
122 la_natural_name initializers.
123 (c_language::name): New member function.
124 (c_language::natural_name): New member function.
125 (cplus_language_data): Remove la_name and
126 la_natural_name initializers.
127 (cplus_language::name): New member function.
128 (cplus_language::natural_name): New member function.
129 (asm_language_data): Remove la_name and
130 la_natural_name initializers.
131 (asm_language::name): New member function.
132 (asm_language::natural_name): New member function.
133 (minimal_language_data): Remove la_name and
134 la_natural_name initializers.
135 (minimal_language::name): New member function.
136 (minimal_language::natural_name): New member function.
137 * compile/compile.c (compile_to_object): Update call to
138 lanugage_defn::name.
139 * d-lang.c (d_language_data): Remove la_name and
140 la_natural_name initializers.
141 (d_language::name): New member function.
142 (d_language::natural_name): New member function.
143 * expprint.c (print_subexp_standard): Update call to
144 language_defn::name.
145 (dump_raw_expression): Likewise
146 (dump_prefix_expression): Likewise.
147 * f-lang.c (f_language_data): Remove la_name and
148 la_natural_name initializers.
149 (f_language::name): New member function.
150 (f_language::natural_name): New member function.
151 * go-lang.c (go_language_data): Remove la_name and
152 la_natural_name initializers.
153 (go_language::name): New member function.
154 (go_language::natural_name): New member function.
155 * language.c (show_language_command): Update call to
156 language_defn::name.
157 (set_language_command): Likewise.
158 (language_enum): Likewise.
159 (language_str): Likewise.
160 (add_set_language_command): Likewise, use
161 language_defn::natural_name in the doc string.
162 (unknown_language_data): Remove la_name and
163 la_natural_name initializers.
164 (unknown_language::name): New member function.
165 (unknown_language::natural_name): New member function.
166 (auto_language_data): Remove la_name and
167 la_natural_name initializers.
168 (auto_language::name): New member function.
169 (auto_language::natural_name): New member function.
170 (language_lookup_primitive_type_as_symbol): Update call to
171 language_defn::name.
172 * language.h (language_data): Remove la_name and la_natural_name
173 member variables.
174 (language_defn::name): New member function.
175 (language_defn::natural_name): New member function.
176 * m2-lang.c (m2_language_data): Remove la_name and
177 la_natural_name initializers.
178 (m2_language::name): New member function.
179 (m2_language::natural_name): New member function.
180 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
181 language_defn::natural_name.
182 * objc-lang.c (objc_language_data): Remove la_name and
183 la_natural_name initializers.
184 (objc_language::name): New member function.
185 (objc_language::natural_name): New member function.
186 * opencl-lang.c (opencl_language_data): Remove la_name and
187 la_natural_name initializers.
188 (opencl_language::name): New member function.
189 (opencl_language::natural_name): New member function.
190 * p-lang.c (pascal_language_data): Remove la_name and
191 la_natural_name initializers.
192 (pascal_language::name): New member function.
193 (pascal_language::natural_name): New member function.
194 * rust-lang.c (rust_language_data): Remove la_name and
195 la_natural_name initializers.
196 (rust_language::name): New member function.
197 (rust_language::natural_name): New member function.
198 * symtab.c (lookup_language_this): Update call to
199 language_defn::name.
200
201 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * ada-lang.c (ada_language_data): Remove la_name_of_this
204 initializer.
205 * ax-gdb.c (gen_expr): Update call to name_of_this.
206 * c-exp.y (classify_name): Likewise.
207 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
208 (cplus_language_data): Likewise.
209 (cplus_language::name_of_this): New member function.
210 (asm_language_data): Remove la_name_of_this initializer.
211 (minimal_language_data): Likewise.
212 * d-lang.c (d_language_data): Likewise.
213 (d_language::name_of_this): New member function.
214 * expprint.c (print_subexp_standard): Update call to name_of_this.
215 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
216 * go-lang.c (go_language_data): Likewise.
217 * language.c (unknown_language_data): Likewise.
218 (unknown_language::name_of_this): New member function.
219 (auto_language_data): Remove la_name_of_this initializer.
220 (auto_language::name_of_this): New member function.
221 * language.h (language_data): Delete la_name_of_this member
222 variable.
223 (language_defn::name_of_this): New member function.
224 * m2-lang.c (m2_language_data): Remove la_name_of_this
225 initializer.
226 * objc-lang.c (objc_language_data): Likewise.
227 (objc_language::name_of_this): New member function.
228 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
229 initializer.
230 * p-lang.c (pascal_language_data): Likewise.
231 (pascal_language::name_of_this): New member function.
232 * rust-lang.c (rust_language_data): Remove la_name_of_this
233 initializer.
234 * symtab.c (lookup_language_this): Update call to name_of_this.
235 (lookup_symbol_aux): Likewise.
236 * valops.c (value_of_this): Likewise.
237
238 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
239
240 * ada-lang.c (ada_language_data): Remove
241 la_struct_too_deep_ellipsis initializer.
242 (ada_language::struct_too_deep_ellipsis): New member function.
243 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
244 initializer.
245 (cplus_language_data): Likewise.
246 (asm_language_data): Likewise.
247 (minimal_language_data): Likewise.
248 * cp-valprint.c (cp_print_value): Update call to
249 struct_too_deep_ellipsis.
250 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
251 initializer.
252 * f-lang.c (f_language_data): Likewise.
253 (f_language::struct_too_deep_ellipsis): New member function.
254 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
255 initializer.
256 * language.c (unknown_language_data): Likewise.
257 (auto_language_data): Likewise.
258 * language.h (language_data): Delete la_struct_too_deep_ellipsis
259 member variable.
260 (language_defn::struct_too_deep_ellipsis): New member function.
261 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
262 initializer.Q
263 * objc-lang.c (objc_language_data): Likewise.
264 * opencl-lang.c (opencl_language_data): Likewise.
265 * p-lang.c (pascal_language_data): Likewise.
266 * rust-lang.c (rust_language_data): Likewise.
267 * valprint.c (val_print_check_max_depth): Update call to
268 struct_too_deep_ellipsis.
269
270 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
271
272 * MAINTAINERS (Write After Approval): Add myself.
273
274 2020-09-15 Tom Tromey <tom@tromey.com>
275
276 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
277 Remove.
278
279 2020-09-15 Tom Tromey <tom@tromey.com>
280
281 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
282 and TYPE_CODE_METHODPTR cases.
283 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
284 (c_value_print_inner): Update.
285 * valprint.c (generic_value_print_memberptr): New function, from
286 c_value_print_memberptr.
287 (generic_value_print): Use it. Call cplus_print_method_ptr.
288
289 2020-09-15 Tom Tromey <tromey@adacore.com>
290
291 * python/python-internal.h (PyInt_FromLong): Remove define.
292 * python/py-value.c (convert_value_from_python): Use
293 gdb_py_object_from_longest.
294 * python/py-type.c (typy_get_code): Use
295 gdb_py_object_from_longest.
296 * python/py-symtab.c (salpy_get_line): Use
297 gdb_py_object_from_longest.
298 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
299 gdb_py_object_from_longest.
300 * python/py-record.c (recpy_gap_reason_code): Use
301 gdb_py_object_from_longest.
302 * python/py-record-btrace.c (recpy_bt_insn_size)
303 (recpy_bt_func_level, btpy_list_count): Use
304 gdb_py_object_from_longest.
305 * python/py-infthread.c (gdbpy_create_ptid_object): Use
306 gdb_py_object_from_longest. Fix error handling.
307 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
308 gdb_py_object_from_longest.
309 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
310 gdb_py_object_from_longest.
311 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
312 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
313 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
314
315 2020-09-15 Tom Tromey <tromey@adacore.com>
316
317 * python/python.c (gdbpy_parameter_value): Use
318 gdb_py_object_from_ulongest.
319
320 2020-09-15 Tom Tromey <tromey@adacore.com>
321
322 * python/py-infevents.c (create_register_changed_event_object):
323 Use gdb_py_object_from_longest.
324 * python/py-exitedevent.c (create_exited_event_object): Use
325 gdb_py_object_from_longest.
326
327 2020-09-15 Tom Tromey <tromey@adacore.com>
328
329 * python/python.c (gdbpy_parameter_value): Use
330 gdb_py_object_from_longest.
331 * python/py-type.c (convert_field, typy_range): Use
332 gdb_py_object_from_longest.
333 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
334 gdb_py_object_from_longest.
335 * python/py-lazy-string.c (stpy_get_length): Use
336 gdb_py_object_from_longest.
337 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
338 gdb_py_object_from_longest.
339 * python/py-infevents.c (create_memory_changed_event_object): Use
340 gdb_py_object_from_longest.
341 * python/py-inferior.c (infpy_get_num): Use
342 gdb_py_object_from_longest.
343 (infpy_get_pid): Likewise.
344
345 2020-09-15 Tom Tromey <tromey@adacore.com>
346
347 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
348 defines.
349 * python/py-value.c (valpy_long): Use
350 gdb_py_object_from_ulongest.
351 * python/py-symtab.c (salpy_get_pc): Use
352 gdb_py_object_from_ulongest.
353 (salpy_get_last): Likewise.
354 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
355 gdb_py_object_from_ulongest.
356 * python/py-lazy-string.c (stpy_get_address): Use
357 gdb_py_object_from_ulongest.
358 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
359 * python/py-arch.c (archpy_disassemble): Use
360 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
361 error handling.
362
363 2020-09-15 Tom Tromey <tromey@adacore.com>
364
365 * python/python-internal.h (gdb_py_long_from_longest): Remove
366 defines.
367 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
368 * python/py-type.c (convert_field, typy_get_sizeof): Use
369 gdb_py_object_from_longest.
370 * python/py-record-btrace.c (btpy_list_index): Use
371 gdb_py_object_from_longest.
372
373 2020-09-15 Tom Tromey <tromey@adacore.com>
374
375 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
376 * python/py-record.c (recpy_element_number): Use
377 gdb_py_object_from_longest.
378 (recpy_gap_number): Likewise.
379
380 2020-09-15 Tom Tromey <tromey@adacore.com>
381
382 * top.c (ui::ui): Update.
383 (highest_ui_num): Remove.
384 * top.h (struct ui) <num>: Remove.
385
386 2020-09-15 Tom Tromey <tromey@adacore.com>
387
388 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
389 * ui-style.c (ansi_regex_text): Now array.
390 * rust-exp.y (number_regex_text): Now array.
391 * linespec.c (linespec_quote_characters): Now array.
392 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
393 Now arrays.
394
395 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * debuginfod-support.c (debuginfod_client_deleter): New.
398 (debuginfod_client_up): New.
399 (debuginfod_init): Return debuginfod_client_up.
400 (debuginfod_source_query): Adjust.
401 (debuginfod_debuginfo_query): Adjust.
402
403 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * debuginfod-support.c (debuginfod_source_query): Use
406 make_unique_xstrdup.
407
408 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
409
410 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
411 with `type::instance_flags`.
412
413 2020-09-14 Michael Mullin <masmullin@gmail.com>
414
415 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
416 Remove baton parameter.
417
418 2020-09-14 Pedro Alves <pedro@palves.net>
419
420 * Makefile.in (SELFTESTS_SRCS): Add
421 unittests/enum-flags-selftests.c.
422 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
423 btrace_function_flags instead of enum btrace_function_flag.
424 * compile/compile-c-types.c (convert_qualified): Use
425 enum_flags::raw.
426 * compile/compile-cplus-symbols.c (convert_one_symbol)
427 (convert_symbol_bmsym):
428 * compile/compile-cplus-types.c (compile_cplus_convert_method)
429 (compile_cplus_convert_struct_or_union_methods)
430 (compile_cplus_instance::convert_qualified_base):
431 * go-exp.y (parse_string_or_char): Add cast to int.
432 * unittests/enum-flags-selftests.c: New file.
433 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
434 type to btrace_thread_flags from btrace_thread_flag.
435 (record_btrace_cancel_resume, record_btrace_step_thread): Change
436 local's type to btrace_thread_flags from btrace_thread_flag. Add
437 cast in DEBUG call.
438
439 2020-09-14 Pedro Alves <pedro@palves.net>
440
441 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
442 * gdbtypes.c (address_space_name_to_int): Rename to ...
443 (address_space_name_to_type_instance_flags): ... this.
444 (address_space_int_to_name): Rename to ...
445 (address_space_type_instance_flags_to_name): ... this.
446 * gdbtypes.h (address_space_name_to_int): Rename to ...
447 (address_space_name_to_type_instance_flags): ... this.
448 (address_space_int_to_name): Rename to ...
449 (address_space_type_instance_flags_to_name): ... this.
450 * type-stack.c (type_stack::insert): Adjust to rename.
451 * type-stack.h (type_stack::insert): Likewise.
452
453 2020-09-14 Pedro Alves <pedro@palves.net>
454 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * avr-tdep.c (avr_address_class_type_flags): Return
457 type_instance_flags.
458 (avr_address_class_type_flags_to_name): Take a
459 type_instance_flags.
460 (avr_address_class_name_to_type_flags): Return bool and take a
461 type_instance_flags.
462 * d-lang.c (build_d_types): Use type::set_instance_flags.
463 * ft32-tdep.c (ft32_address_class_type_flags): Return
464 type_instance_flags.
465 (ft32_address_class_type_flags_to_name): Take a
466 type_instance_flags.
467 (ft32_address_class_name_to_type_flags): Return bool and take a
468 type_instance_flags.
469 (ft32_gdbarch_init): Use type::set_instance_flags.
470 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
471 * gdbarch.h, gdbarch.c: Regenerate.
472 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
473 (address_class_name_to_type_flags): Use type_instance_flags and
474 bool.
475 * gdbtypes.c (address_space_name_to_int)
476 (address_space_int_to_name, make_qualified_type): Use
477 type_instance_flags.
478 (make_qualified_type): Use type_instance_flags and
479 type::set_instance_flags.
480 (make_type_with_address_space, make_cv_type, make_vector_type)
481 (check_typedef): Use type_instance_flags.
482 (recursive_dump_type): Cast type_instance_flags to unsigned for
483 printing.
484 (copy_type_recursive): Use type::set_instance_flags.
485 (gdbtypes_post_init): Use type::set_instance_flags.
486 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
487 <m_instance_flags>: ... this.
488 <instance_flags, set_instance_flags>: New methods.
489 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
490 (SET_TYPE_INSTANCE_FLAGS): New.
491 (address_space_name_to_int, address_space_int_to_name)
492 (make_type_with_address_space): Pass flags using
493 type_instance_flags instead of int.
494 * stabsread.c (cleanup_undefined_types_noname): Use
495 type::set_instance_flags.
496 * s390-tdep.c (s390_address_class_type_flags): Return
497 type_instance_flags.
498 (s390_address_class_type_flags_to_name): Take a
499 type_instance_flags.
500 (s390_address_class_name_to_type_flags): Return bool and take a
501 type_instance_flags.
502 * type-stack.c (type_stack::follow_types): Use
503 type_instance_flags.
504 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
505
506 2020-09-14 Tom Tromey <tromey@adacore.com>
507
508 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
509 * x86-tdep.c (x86_is_thunk_register_name)
510 (x86_in_indirect_branch_thunk): Update.
511 * sparc64-tdep.c (sparc64_fpu_register_names)
512 (sparc64_cp0_register_names, sparc64_register_names)
513 (sparc64_pseudo_register_names): Now const.
514 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
515 cp0_registers_num>: Now const.
516 * sparc-tdep.c (sparc_core_register_names)
517 (sparc32_fpu_register_names, sparc32_cp0_register_names)
518 (sparc32_pseudo_register_names): Now const.
519 (validate_tdesc_registers): Update.
520 * rust-lang.c (rust_extensions): Now const.
521 * p-lang.c (p_extensions): Now const.
522 * objc-lang.c (objc_extensions): Now const.
523 * nto-tdep.c (nto_thread_state_str): Now const.
524 * moxie-tdep.c (moxie_register_names): Now const.
525 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
526 Now const.
527 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
528 (mips_linux_reg_names): Now const.
529 (mips_gdbarch_init): Update.
530 * microblaze-tdep.c (microblaze_register_names): Now const.
531 * m68k-tdep.c (m68k_register_names): Now const.
532 * m32r-tdep.c (m32r_register_names): Now const.
533 * ia64-tdep.c (ia64_register_names): Now const.
534 * i386-tdep.h (struct gdbarch_tdep) <register_names,
535 ymmh_register_names, ymm16h_regnum, mpx_register_names,
536 k_register_names, zmmh_register_names, xmm_avx512_register_names,
537 ymm_avx512_register_names, pkeys_register_names>: Now const.
538 * i386-tdep.c (i386_register_names, i386_zmm_names)
539 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
540 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
541 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
542 * f-lang.c (f_extensions): Now const.
543 * d-lang.c (d_extensions): Now const.
544 * csky-tdep.c (csky_register_names): Now const.
545 * charset.c (default_charset_names, charset_enum): Now const.
546 (_initialize_charset): Update.
547 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
548 const.
549 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
550 (bsd_uthread_solib_loaded): Update.
551 (bsd_uthread_state): Now const.
552 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
553 (amd64_ymm_avx512_names, amd64_ymmh_names)
554 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
555 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
556 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
557 (amd64_dword_names): Now const.
558 * agent.c (can_use_agent_enum): Now const.
559 * ada-tasks.c (task_states, long_task_states): Now const.
560 * ada-lang.c (known_runtime_file_name_patterns)
561 (known_auxiliary_function_name_patterns, attribute_names)
562 (standard_exc, ada_extensions): Now const.
563
564 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * bcache.h (struct bcache) <bcache>: Remove constructor.
567 <m_hash_function, m_compare_function>: Remove.
568 <~bcache>: Make virtual.
569 <compare>: Remove static method, introduce virtual method.
570 <default_hash>: Remove.
571 <hash>: New virtual method.
572 * bcache.c (bcache::expand_hash_table): Update.
573 (bcache::insert): Update.
574 (bcache::hash): New.
575 (bcache::compare): Update comment and parameter names.
576 * gdbtypes.c (types_deeply_equal): Update.
577 * psymtab.h (struct psymbol_bcache): New struct.
578 (class psymtab_storage) <psymtab_storage>: Make default.
579 <psymbol_cache>: Change type to psymbol_bcache.
580 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
581 (psymbol_hash): Change to...
582 (psymbol_bcache::hash): ... this.
583 (psymbol_compare): Change to...
584 (psymbol_bcache::compare): ... this.
585
586 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
589 checking for initial lwp.
590
591 2020-09-14 Tom Tromey <tromey@adacore.com>
592
593 * m68k-tdep.c (m68k_extract_return_value): Use
594 pointer_result_regnum.
595 (m68k_store_return_value): Likewise.
596 (m68k_reg_struct_return_p): Handle vectors and arrays.
597 (m68k_return_value): Handle arrays.
598 (m68k_svr4_return_value): Fix single-element aggregate handling.
599 Handle long double. Adjust for embedded ABI.
600 (m68k_svr4_init_abi): Set pointer_result_regnum.
601 (m68k_embedded_init_abi): New function.
602 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
603 (m68k_osabi_sniffer): New function.
604 (_initialize_m68k_tdep): Register osabi sniffer.
605 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
606 member.
607
608 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * xml-support.c (xml_fetch_content_from_file): Replace xfree
611 with gdb::unique_xmalloc_ptr<char>.
612
613 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
614
615 * xml-support.h (xml_fetch_another): Change type to be a
616 function_view.
617 (xml_process_xincludes): Remove baton parameter.
618 (xml_fetch_content_from_file): Change baton parameter to
619 dirname.
620 * xml-support.c (struct xinclude_parsing_data)
621 <xinclude_parsing_data>: Remove baton parameter.
622 <fetcher_baton>: Remove.
623 (xinclude_start_include): Adjust.
624 (xml_process_xincludes): Adjust.
625 (xml_fetch_content_from_file): Replace baton parameter with
626 dirname.
627 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
628 (xml_init_syscalls_info): Use a lambda.
629 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
630 (file_read_description_xml): Use a lambda.
631 (fetch_available_features_from_target): Change baton parameter
632 to target_ops.
633 (target_read_description_xml): Use a lambda.
634 (target_fetch_description_xml): Use a lambda.
635 (string_read_description_xml): Update.
636
637 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
640 uses with type::endianity_is_not_default.
641
642 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
643
644 * gdbtypes.h (struct type) <endianity_is_not_default,
645 set_endianity_is_not_default>: New methods.
646 (TYPE_ENDIANITY_NOT_DEFAULT): Use
647 type::endianity_is_not_default, change all write call sites to
648 use type::set_endianity_is_not_default.
649
650 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
651
652 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
653 uses with type::is_fixed_instance.
654
655 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
656
657 * gdbtypes.h (struct type) <is_fixed_instance,
658 set_is_fixed_instance>: New methods.
659 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
660 write call sites to use type::set_is_fixed_instance.
661
662 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
663
664 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
665 uses with type::is_gnu_ifunc.
666
667 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
668
669 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
670 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
671 use type::set_is_gnu_ifunc.
672
673 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
674
675 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
676 uses with type::stub_is_supported.
677
678 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
679
680 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
681 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
682 use type::set_stub_is_supported.
683
684 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
685
686 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
687 uses with type::is_vector.
688
689 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
690
691 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
692 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
693 use type::set_is_vector.
694
695 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
696
697 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
698 uses with type::has_varargs.
699
700 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
701
702 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
703 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
704 use type::set_has_varargs.
705
706 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
707
708 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
709 uses with type::is_prototyped.
710
711 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
712
713 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
714 New methods.
715 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
716 call sites to use type::set_is_prototyped.
717
718 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
719
720 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
721 uses with type::target_is_stub.
722
723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
724
725 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
726 New methods.
727 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
728 sites to use type::set_target_is_stub.
729
730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
731
732 * gdbtypes.h (TYPE_STUB): Remove, replace all
733 uses with type::is_stub.
734
735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
736
737 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
738 (TYPE_STUB): Use type::is_stub, change all write call sites to
739 use type::set_is_stub.
740
741 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
742
743 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
744 type::has_no_signedness.
745
746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
747
748 * gdbtypes.h (struct type) <has_no_signedness,
749 set_has_no_signedness>: New methods.
750 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
751 call sites to use type::set_has_no_signedness.
752
753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
754
755 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
756 type::is_unsigned.
757
758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
759
760 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
761 methods.
762 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
763 sites to use type::set_is_unsigned.
764
765 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
766 Adam Renquinha <arenquinha@cimeq.qc.ca>
767
768 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
769 pointer and stack frame offset when unwinding.
770
771 2020-09-13 Pedro Alves <pedro@palves.net>
772
773 * NEWS: Document "-break-insert --qualified".
774 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
775
776 2020-09-13 Pedro Alves <pedro@palves.net>
777
778 * linespec.c (classify_mtype, compare_msyms): Delete.
779 (search_minsyms_for_name): Remove classification logic. Instead
780 filter out trampoline symbols if we also found an external
781 function of the same name.
782
783 2020-09-13 Joel Brobecker <brobecker@adacore.com>
784
785 * NEWS: Create a new section for the next release branch.
786 Rename the section of the current branch, now that it has
787 been cut.
788
789 2020-09-13 Joel Brobecker <brobecker@adacore.com>
790
791 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
792 * version.in: Bump version to 11.0.50.DATE-git.
793
794 2020-09-12 Joel Brobecker <brobecker@adacore.com>
795
796 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
797
798 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
799 Felix Willgerodt <Felix.Willgerodt@intel.com>
800
801 * gdbarch.sh: Added bfloat16 type.
802 * gdbarch.c: Regenerated.
803 * gdbarch.h: Regenerated.
804 * gdbtypes.c (floatformats_bfloat16): New struct.
805 (gdbtypes_post_init): Add builtin_bfloat16.
806 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
807 (floatformats_bfloat16): New struct.
808 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
809 (i386_ymm_type): Add field "v16_bfloat16"
810 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
811 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
812 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
813 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
814 * features/i386/64bit-avx512.xml: Add bfloat16 type.
815 * features/i386/64bit-avx512.c: Regenerated.
816 * features/i386/64bit-sse.xml: Add bfloat16 type.
817 * features/i386/64bit-sse.c: Regenerated.
818
819 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
820
821 * i386-tdep.c (i386_zmm_type): Fix field names.
822 (i386_ymm_type): Fix field names.
823
824 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
825
826 * breakpoint.c: Fix typo in the help message of the
827 "set breakpoint condition-evaluation" command.
828
829 2020-09-10 Kamil Rytarowski <n54@gmx.com>
830
831 * nbsd-nat.c: Include "nat/netbsd-nat.h".
832 * (nbsd_nat_target::pid_to_exec_file)
833 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
834 (nbsd_nat_target::post_startup_inferior)
835 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
836 (nbsd_add_threads): Switch local code to common gdb/nat functions.
837 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
838 * (nbsd_thread_lister): Remove.
839
840 2020-09-10 Kamil Rytarowski <n54@gmx.com>
841
842 * fork-inferior.c (startup_inferior): Avoid double free.
843
844 2020-09-10 Kamil Rytarowski <n54@gmx.com>
845
846 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
847 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
848
849 2020-09-10 Kamil Rytarowski <n54@gmx.com>
850
851 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
852 * netbsd-nat.c: Include <sys/ptrace.h>.
853 * (netbsd_nat::enable_proc_events): Add.
854
855 2020-09-10 Kamil Rytarowski <n54@gmx.com>
856
857 * netbsd-nat.h: Include "gdbsupport/function-view.h".
858 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
859 (netbsd_nat::for_each_thread): Add.
860 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
861 "gdbsupport/common-debug.h".
862 * (netbsd_nat::netbsd_thread_lister)
863 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
864 (netbsd_nat::for_each_thread): Add.
865
866 2020-09-10 Kamil Rytarowski <n54@gmx.com>
867
868 * netbsd-nat.h: Include <unistd.h>.
869 * (netbsd_nat::pid_to_exec_file): Add.
870 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
871 * (netbsd_nat::pid_to_exec_file) Add.
872
873 2020-09-10 Kamil Rytarowski <n54@gmx.com>
874
875 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
876
877 2020-09-10 Kamil Rytarowski <n54@gmx.com>
878
879 * netbsd-nat.h: New file.
880 * netbsd-nat.c: Likewise.
881
882 2020-09-09 Tom Tromey <tromey@adacore.com>
883
884 * ada-lang.c (remove_extra_symbols): Do not increment when
885 removing an element
886
887 2020-09-08 Tom Tromey <tromey@adacore.com>
888
889 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
890
891 2020-09-08 Tom Tromey <tromey@adacore.com>
892
893 PR win32/25302:
894 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
895 (gdb_bfd_init_data): New function.
896 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
897
898 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899
900 * infrun.c (fetch_inferior_event): Use
901 `switch_to_target_no_thread` to switch the target.
902
903 2020-09-06 Tom Tromey <tom@tromey.com>
904
905 * symfile.h (dwarf2_free_objfile): Don't declare.
906
907 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
908
909 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
910 to match 16 byte real/complex type generated by Flang compiler.
911
912 2020-09-03 Tom de Vries <tdevries@suse.de>
913
914 PR breakpoint/26546
915 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
916 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
917
918 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * maint.c (index_digits): New function.
921 (struct maint_print_section_data): Remove.
922 (print_bfd_section_info): Remove print_data parameter, add arg
923 and index_digits.
924 (print_objfile_section_info): Likewise.
925 (print_bfd_section_info_maybe_relocated): Likewise (plus
926 objfile).
927 (maintenance_info_sections): Adjust calls.
928
929 2020-09-02 Tom Tromey <tromey@adacore.com>
930
931 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
932 for null pointers.
933 (ada_varobj_adjust_for_child_access): Special-case null pointers.
934
935 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * bcache.h (struct bcache) <insert>: Change type of `added` to
938 pointer to bool.
939 * bcache.c (bcache::insert): Likewise.
940 * gdbtypes.c (check_types_worklist): Adjust.
941 * psymtab.c (add_psymbol_to_bcache): Adjust.
942
943 2020-08-31 Kevin Buettner <kevinb@redhat.com>
944
945 * corelow.c (unordered_set): Include.
946 (class core_target): Add field 'm_core_unavailable_mappings'.
947 (core_target::build_file_mappings): Print only one warning
948 per inaccessible file. Add unavailable/broken mappings
949 to m_core_unavailable_mappings.
950 (core_target::xfer_partial): Call...
951 (core_target::xfer_memory_via_mappings): New method.
952
953 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
954
955 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
956 type to bool.
957
958 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
959
960 * dwarf2/read.c (struct field_info): Fix indentation.
961
962 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
963
964 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
965 ordering in comment.
966 * frame.c (frame_id_eq): Fix indentation.
967
968 2020-08-31 Scott Linder <scott@scottlinder.com>
969 Simon Marchi <simon.marchi@efficios.com>
970
971 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
972 inline frame ids in outer frame.
973
974 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
975
976 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
977 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
978 (outer_frame_id): Use FID_STACK_OUTER instead of
979 FID_STACK_INVALID.
980 (frame_id_p): Don't check for outer_frame_id.
981
982 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
983
984 * frame-unwind.c (frame_unwind_got_optimized): Don't set
985 regnum/frame in value. Call allocate_value_lazy.
986 * frame.c (frame_unwind_register_value): Use
987 val_print_not_saved.
988
989 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
990
991 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
992
993 2020-08-29 Pedro Alves <pedro@palves.net>
994
995 * progspace.c (print_program_space): Use all_inferiors. Switch to
996 the inferior before calling target_pid_to_str.
997
998 2020-08-28 Tom Tromey <tom@tromey.com>
999
1000 * xcoffread.c (xcoff_end_psymtab): Update comment.
1001 * dbxread.c (dbx_end_psymtab): Update comment.
1002
1003 2020-08-28 Tom de Vries <tdevries@suse.de>
1004
1005 PR breakpoint/26544
1006 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1007 event_location.
1008 (create_breakpoint): Same.
1009 (base_breakpoint_decode_location): Same.
1010 (bkpt_create_sals_from_location): Same.
1011 (bkpt_decode_location): Same.
1012 (bkpt_probe_create_sals_from_location): Same.
1013 (bkpt_probe_decode_location): Same.
1014 (tracepoint_create_sals_from_location): Same.
1015 (tracepoint_decode_location): Same.
1016 (tracepoint_probe_decode_location): Same.
1017 (strace_marker_create_sals_from_location): Same.
1018 (strace_marker_decode_location): Same.
1019 (create_sals_from_location_default): Same.
1020 (decode_location_default): Same.
1021 * breakpoint.h (struct breakpoint_ops): Same.
1022 (create_breakpoint): Same.
1023 * linespec.h (decode_line_full): Same.
1024 * linespec.c (decode_line_full): Same. Throw error if
1025 result.size () == 0.
1026
1027 2020-08-27 Pedro Alves <pedro@palves.net>
1028
1029 PR gdb/26524
1030 * breakpoint.c (until_break_fsm) <location_breakpoint,
1031 caller_breakpoint>: Delete fields.
1032 <breakpoints>: New field.
1033 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1034 two individual breakpoints.
1035 (until_break_fsm::should_stop): Loop over breakpoints in the
1036 breakpoint vector.
1037 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1038 vector.
1039 (until_break_command): Handle location expanding into multiple
1040 sals.
1041
1042 2020-08-27 Pedro Alves <pedro@palves.net>
1043
1044 PR gdb/26523
1045 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1046 bp_until breakpoints user-specified locations. Update intro
1047 comment.
1048
1049 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1052 gdb_bfd_sections): New.
1053 * maint.c (print_bfd_section_info): Change param type to
1054 maint_print_section_data.
1055 (print_objfile_section_info): Likewise.
1056 (print_bfd_section_info_maybe_relocated): Likewise.
1057 (maintenance_info_sections): Use gdb_bfd_sections.
1058
1059 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1060
1061 * MAINTAINERS: Add ARC target and maintainer.
1062
1063 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1064
1065 * configure.tgt: ARC support for GNU/Linux.
1066 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1067 * arc-linux-tdep.c: New file.
1068 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1069 * arc-tdep.c (arc_write_pc): Use it.
1070
1071 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1072
1073 * arc-tdep.c (arc_check_for_hardware_loop): New.
1074 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1075
1076 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1077
1078 * arc-tdep.h: Include "gdbarch.h".
1079
1080 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1081
1082 * arch/arc.h
1083 (arc_gdbarch_features): New class to stir the selection of target XML.
1084 (arc_create_target_description): Use FEATURES to choose XML target.
1085 (arc_lookup_target_description): Use arc_create_target_description
1086 to create _new_ target descriptions or return the already created
1087 ones if the FEATURES is the same.
1088 * arch/arc.c: Implementation of prototypes described above.
1089 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1090 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1091 * arc-tdep.c (*_feature_name): Make feature names consistent.
1092 (arc_register_feature): A new struct to hold information about
1093 registers of a particular target/feature.
1094 (arc_check_tdesc_feature): Check if XML provides registers in
1095 compliance with ARC_REGISTER_FEATURE structs.
1096 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1097 (determine_*_reg_feature_set): Which feature name to look for.
1098 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1099 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1100 to expected ISA enums to be used in arc_gdbarch_features structs.
1101 * features/Makefile (FEATURE_XMLFILES): Add new files.
1102 * gdb/features/arc/v1-aux.c: New file.
1103 * gdb/features/arc/v1-aux.xml: Likewise.
1104 * gdb/features/arc/v1-core.c: Likewise.
1105 * gdb/features/arc/v1-core.xml: Likewise.
1106 * gdb/features/arc/v2-aux.c: Likewise.
1107 * gdb/features/arc/v2-aux.xml: Likewise.
1108 * gdb/features/arc/v2-core.c: Likewise.
1109 * gdb/features/arc/v2-core.xml: Likewise.
1110 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1111
1112 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1113 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 PR m2/26372
1116 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1117 an assert. Remove single element array indexing pattern as the
1118 MULTI_SUBSCRIPT support will handle this case too.
1119
1120 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1121
1122 * value.h (valprint_check_validity): Move declaration from
1123 here...
1124 * valprint.h (valprint_check_validity): ... to here.
1125
1126 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * debug.h: New file.
1129 * debug.c (debug_prefixed_vprintf): New function.
1130 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1131 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1132
1133 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * infrun.h (infrun_debug_printf_1): New function declaration.
1136 (infrun_debug_printf): New macro.
1137 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1138 throughout.
1139 (infrun_debug_printf): New function.
1140 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1141 (handle_jit_event): Likewise.
1142
1143 2020-08-21 Mark Wielaard <mark@klomp.org>
1144
1145 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1146
1147 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1148
1149 * frame.c (enum class frame_id_status): New.
1150 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1151 (fprintf_frame): Update.
1152 (compute_frame_id): Set frame id status to "computing" on entry.
1153 Set it back to "not_computed" on failure and to "computed" on
1154 success.
1155 (get_frame_id): Assert the frame id is not being computed.
1156 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1157 (create_new_frame): Likewise.
1158 (frame_cleanup_after_sniffer): Update assert.
1159
1160 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1161
1162 * regcache.c (pid_ptid_regcache_map): New type.
1163 (target_ptid_regcache_map): Remove.
1164 (target_pid_ptid_regcache_map): New type.
1165 (regcaches): Change type to target_pid_ptid_regcache_map.
1166 (get_thread_arch_aspace_regcache): Update.
1167 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1168 case.
1169 (regcaches_size): Update.
1170 (regcache_count): Update.
1171 (registers_changed_ptid_target_pid_test): New.
1172 (_initialize_regcache): Register new test.
1173
1174 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * regcache.c (regcache_count): New.
1177 (struct regcache_test_data): New.
1178 (regcache_test_data_up): New.
1179 (populate_regcaches_for_test): New.
1180 (regcaches_test): Remove.
1181 (get_thread_arch_aspace_regcache_test): New.
1182 (registers_changed_ptid_all_test): New.
1183 (registers_changed_ptid_target_test): New.
1184 (registers_changed_ptid_target_ptid_test): New.
1185 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1186 (_initialize_regcache): Register new tests.
1187
1188 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1189
1190 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1191 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1192 gdbarch and aspace parameter. Use current inferior's aspace.
1193 Validate regcache's arch value.
1194 (regcaches_test): Update.
1195
1196 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1197
1198 * regcache.c (regcaches_test): Call registers_changed.
1199
1200 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1201
1202 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1203
1204 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1205
1206 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1207 to find the end of prologue for flang compiled binaries.
1208 * arm-tdep.c (arm_skip_prologue): Likewise.
1209 * i386-tdep.c (i386_skip_prologue): Likewise.
1210 * producer.c (producer_is_llvm): New function.
1211 (producer_parsing_tests): Added new tests for clang/flang.
1212 * producer.h (producer_is_llvm): New declaration.
1213
1214 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * linux-nat.c (linux_nat_debug_printf): New function.
1217 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1218
1219 2020-08-18 Aaron Merey <amerey@redhat.com>
1220
1221 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1222 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1223 (CLIBS): Add DEBUGINFOD_LIBS.
1224
1225 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1226
1227 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1228 'gdbarch_num_regs'.
1229
1230 2020-08-17 Tom Tromey <tromey@adacore.com>
1231
1232 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1233 ada_get_decoded_value returns NULL.
1234
1235 2020-08-17 Tom Tromey <tromey@adacore.com>
1236
1237 * python/py-inferior.c (infpy_search_memory): Use
1238 gdb_py_object_from_ulongest.
1239 * python/py-infevents.c (create_inferior_call_event_object)
1240 (create_memory_changed_event_object): Use
1241 gdb_py_object_from_ulongest.
1242 * python/py-linetable.c (ltpy_entry_get_pc): Use
1243 gdb_py_object_from_ulongest.
1244
1245 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * loc.c (class symbol_needs_eval_context): Fix indentation.
1248
1249 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1252 bool.
1253
1254 2020-08-17 Tom de Vries <tdevries@suse.de>
1255
1256 PR gdb/26393
1257 * gdbtypes.c (dump_dynamic_prop): New function.
1258 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1259
1260 2020-08-15 Tom de Vries <tdevries@suse.de>
1261
1262 PR backtrace/26390
1263 * stack.c (print_frame_args): Temporarily set the selected
1264 frame to FRAME while printing the frame's arguments.
1265
1266 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1267
1268 PR breakpoints/26385
1269 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1270 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1271
1272 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1273
1274 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1275 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1276 and >= to check return value instead of == -1 and != -1.
1277
1278 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1279
1280 * utils.h (class gdb_argv) <as_array_view>: New method.
1281 * utils.c (gdb_argv_as_array_view_test): New.
1282 (_initialize_utils): Register selftest.
1283 * maint.c (maintenance_selftest): Use the new method.
1284
1285 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1286
1287 * target.h (supports_dumpcore, dumpcore): New
1288 function declarations.
1289 * target.c (supports_dumpcore, dumpcore): New
1290 functions.
1291 * target-delegates.c: Rebuild.
1292 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1293 and target_dumpcore ().
1294
1295 2020-08-13 Aaron Merey <amerey@redhat.com>
1296
1297 * debuginfod-support.c: Replace global variables with user_data.
1298
1299 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * maint.c (maintenance_selftest): Split args and pass array_view
1302 to run_tests.
1303
1304 2020-08-12 Luis Machado <luis.machado@linaro.org>
1305
1306 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1307 type's length.
1308 Use %s and pulongest to print the length.
1309
1310 2020-08-12 Pedro Alves <palves@redhat.com>
1311
1312 * NEWS: Move "Multi-target debugging support" item to the
1313 "Changes since GDB 9" section.
1314
1315 2020-08-12 Pedro Alves <palves@redhat.com>
1316
1317 PR gdb/26336
1318 * progspace.c (program_space::remove_objfile): Invalidate the
1319 frame cache.
1320
1321 2020-08-11 Tom de Vries <tdevries@suse.de>
1322
1323 * MAINTAINERS: Mark ms1 as deleted.
1324
1325 2020-08-10 Luis Machado <luis.machado@linaro.org>
1326
1327 PR gdb/26310
1328
1329 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1330 act accordingly.
1331 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1332 movz/str/stur/stp skipping behavior.
1333
1334 2020-08-10 Luis Machado <luis.machado@linaro.org>
1335
1336 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1337 struct user_sve_header instead of struct sve_context.
1338
1339 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * read.h (dwarf2_fetch_die_loc_sect_off,
1342 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1343 `void *` parameter with function_view.
1344 * read.c (dwarf2_fetch_die_loc_sect_off,
1345 dwarf2_fetch_die_loc_cu_off): Likewise.
1346 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1347 (per_cu_dwarf_call): Adjust.
1348 (get_frame_address_in_block_wrapper): Remove.
1349 (indirect_synthetic_pointer): Adjust.
1350 (get_ax_pc): Remove.
1351 (dwarf2_compile_expr_to_ax): Adjust.
1352
1353 2020-08-08 Tom de Vries <tdevries@suse.de>
1354
1355 PR build/26344
1356 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1357 constructor.
1358 * regcache.c (get_thread_arch_aspace_regcache): Same.
1359
1360 2020-08-07 Tom Tromey <tromey@adacore.com>
1361
1362 * ravenscar-thread.c
1363 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1364 New method.
1365 (ravenscar_thread_target::wait): Check
1366 runtime_initialized.
1367 (ravenscar_thread_target::prepare_to_store)
1368 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1369 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1370 (ravenscar_thread_target::stopped_by_watchpoint)
1371 (ravenscar_thread_target::stopped_data_address)
1372 (ravenscar_thread_target::core_of_thread): Use
1373 scoped_restore_current_thread and
1374 set_base_thread_from_ravenscar_task.
1375
1376 2020-08-07 Tom Tromey <tromey@adacore.com>
1377
1378 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1379
1380 2020-08-07 Tom Tromey <tromey@adacore.com>
1381
1382 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1383 update_inferior_ptid before update_thread_list.
1384 (temporarily_change_regcache_ptid): New class.
1385 (ravenscar_thread_target::fetch_registers)
1386 (ravenscar_thread_target::store_registers)
1387 (ravenscar_thread_target::prepare_to_store): Use base thread when
1388 forwarding operation.
1389
1390 2020-08-07 Tom Tromey <tromey@adacore.com>
1391
1392 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1393 "is_pid" case.
1394
1395 2020-08-07 Tom Tromey <tromey@adacore.com>
1396
1397 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1398 New methods.
1399 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1400 first.
1401 (ravenscar_thread_target::add_thread): Rename from
1402 ravenscar_add_thread.
1403 (ravenscar_thread_target::update_thread_list): Use a lambda.
1404 (ravenscar_thread_target::xfer_partial): New method.
1405
1406 2020-08-07 Tom Tromey <tromey@adacore.com>
1407
1408 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1409 gdb::function_view.
1410 (iterate_over_live_ada_tasks): Change type of argument.
1411 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1412 of argument.
1413
1414 2020-08-07 Tom Tromey <tromey@adacore.com>
1415
1416 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1417 Remove.
1418 (ravenscar_thread_target::extra_thread_info): Remove.
1419 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1420 defer to target beneath for non-Ravenscar threads.
1421
1422 2020-08-07 Tom Tromey <tromey@adacore.com>
1423
1424 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1425 get_base_thread_from_ravenscar_task>: Now methods.
1426 <m_cpu_map>: New member.
1427 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1428 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1429 (ravenscar_thread_target::task_is_currently_active): Update.
1430 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1431 Now a method.
1432 (ravenscar_thread_target::add_active_thread): Put initial thread
1433 into the m_cpu_map.
1434
1435 2020-08-07 Tom Tromey <tromey@adacore.com>
1436
1437 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1438 event_ptid.
1439
1440 2020-08-07 Tom Tromey <tromey@adacore.com>
1441
1442 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1443 runtime_initialized.
1444
1445 2020-08-07 Tom Tromey <tromey@adacore.com>
1446
1447 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1448 add_active_thread.
1449 (ravenscar_thread_target::add_active_thread): Now public.
1450 (ravenscar_inferior_created): Call add_active_thread after pushing
1451 the target.
1452
1453 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * regcache.c (ptid_regcache_map): New type.
1456 (target_ptid_regcache_map): New type.
1457 (regcaches): Change type to target_ptid_regcache_map.
1458 (get_thread_arch_aspace_regcache): Update to regcaches' new
1459 type.
1460 (regcache_thread_ptid_changed): Likewise.
1461 (registers_changed_ptid): Likewise.
1462 (regcaches_size): Likewise.
1463 (regcaches_test): Update.
1464 (regcache_thread_ptid_changed): Update.
1465 * regcache.h (regcache_up): New type.
1466 * gdbsupport/ptid.h (hash_ptid): New struct.
1467
1468 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * observable.h (thread_ptid_changed): Add parameter
1471 `process_stratum_target *`.
1472 * infrun.c (infrun_thread_ptid_changed): Add parameter
1473 `process_stratum_target *` and use it.
1474 (selftests): New namespace.
1475 (infrun_thread_ptid_changed): New function.
1476 (_initialize_infrun): Register selftest.
1477 * regcache.c (regcache_thread_ptid_changed): Add parameter
1478 `process_stratum_target *` and use it.
1479 (regcache_thread_ptid_changed): New function.
1480 (_initialize_regcache): Register selftest.
1481 * thread.c (thread_change_ptid): Pass target to
1482 thread_ptid_changed observable.
1483
1484 2020-08-06 Caroline Tice <cmtice@google.com>
1485
1486 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1487 (struct dwp_sections): Update field comments. Add loclists and
1488 rnglists fields.
1489 (struct virtual_v2_dwo_sections): Rename struct to
1490 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1491 size & offset fields for loclists and rnglists.
1492 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1493 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1494 skipping dummy type units.
1495 (create_dwp_hash_table): Update the large comment above the function to
1496 discuss Version 5 DWP files as well, with references. Update all the
1497 version checks in the function to check for version 5 as well. Add new
1498 section at the end to create dwp hash table for version 5.
1499 (create_dwp_v2_section): Rename function to
1500 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1501 Add V5 to error message text.
1502 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1503 into calls to create_dwp_v2_or_v5_section.
1504 (create_dwo_unit_in_dwp_v5): New function.
1505 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1506 check for version2; add else clause to handle version 5.
1507 (open_and_init_dwo_file): Add code to check dwarf version & only call
1508 create_debug_types_hash_table (with sections.types) if version is not 5;
1509 else call create_debug_type_hash_table, with sections.info.
1510 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1511 version 5.
1512 (dwarf2_locate_v5_dwp_sections): New function.
1513 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1514 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1515
1516 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1517
1518 * regcache.h (class regcache): Remove friend
1519 registers_changed_ptid.
1520 <regcache_thread_ptid_changed>: Remove.
1521 <regcaches>: Remove.
1522 * regcache.c (regcache::regcaches): Rename to...
1523 (regcaches): ... this. Make static.
1524 (get_thread_arch_aspace_regcache): Update.
1525 (regcache::regcache_thread_ptid_changed): Rename to...
1526 (regcache_thread_ptid_changed): ... this. Update.
1527 (class regcache_access): Remove.
1528 (regcaches_test): Update.
1529 (_initialize_regcache): Update.
1530 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1531 <forward_list>.
1532
1533 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1534
1535 * regcache.h (class regcache) <current_regcache>: Rename to...
1536 <regcaches>: ... this. Move doc here.
1537 * regcache.c (regcache::current_regcache) Rename to...
1538 (regcache::regcaches): ... this. Move doc to header.
1539 (get_thread_arch_aspace_regcache): Update.
1540 (regcache::regcache_thread_ptid_changed): Update.
1541 (registers_changed_ptid): Update.
1542 (class regcache_access) <current_regcache_size>: Rename to...
1543 <regcaches_size>: ... this.
1544 (current_regcache_test): Rename to...
1545 (regcaches_test): ... this.
1546 (_initialize_regcache): Update.
1547
1548 2020-08-06 Victor Collod <vcollod@nvidia.com>
1549
1550 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1551
1552 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1553
1554 * corelow.c (core_target::build_file_mappings): Don't output
1555 null pathname in warning.
1556
1557 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1560 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1561 gdb.dwarf2/dw2-single-line-discriminators.exp,
1562 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1563
1564 2020-08-05 Tom Tromey <tromey@adacore.com>
1565
1566 PR rust/26197:
1567 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1568 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1569 Fix off-by-one and type size errors in ordinary case.
1570
1571 2020-08-05 Tom de Vries <tdevries@suse.de>
1572
1573 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1574 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1575
1576 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1577
1578 * frame.h (frame_id_p): Return bool.
1579 (frame_id_artificial_p): Return bool.
1580 (frame_id_eq): Return bool.
1581 (has_stack_frames): Return bool.
1582 (get_selected_frame): Fix typo in comment.
1583 (get_frame_pc_if_available): Return bool.
1584 (get_frame_address_in_block_if_available): Return bool.
1585 (get_frame_func_if_available): Return bool.
1586 (read_frame_register_unsigned): Return bool.
1587 (get_frame_register_bytes): Return bool.
1588 (safe_frame_unwind_memory): Return bool.
1589 (deprecated_frame_register_read): Return bool.
1590 (frame_unwinder_is): Return bool.
1591 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1592 bool.
1593 <this_id::p>: Likewise.
1594 <prev_p>: Likewise.
1595 (frame_stash_add): Return bool.
1596 (get_frame_id): Use bool.
1597 (frame_id_build_special) Use bool.
1598 (frame_id_build_unavailable_stack): Use bool.
1599 (frame_id_build): Use bool.
1600 (frame_id_p): Return bool, use true/false instead of 1/0.
1601 (frame_id_artificial_p): Likewise.
1602 (frame_id_eq): Likewise.
1603 (frame_id_inner): Likewise.
1604 (get_frame_func_if_available): Likewise.
1605 (read_frame_register_unsigned): Likewise.
1606 (deprecated_frame_register_read): Likewise.
1607 (get_frame_register_bytes): Likewise.
1608 (has_stack_frames): Likewise.
1609 (inside_main_func): Likewise.
1610 (inside_entry_func): Likewise.
1611 (get_frame_pc_if_available): Likewise.
1612 (get_frame_address_in_block_if_available): Likewise.
1613 (frame_unwinder_is): Likewise.
1614 (safe_frame_unwind_memory): Likewise.
1615 (frame_unwind_arch): Likewise.
1616
1617 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1618
1619 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1620 type to cached_copy_status.
1621 (fprintf_frame): Adjust.
1622 (get_frame_func_if_available): Adjust.
1623 (frame_cleanup_after_sniffer): Adjust.
1624
1625 2020-08-04 Mark Wielaard <mark@klomp.org>
1626
1627 * MAINTAINERS (Write After Approval): Update email address.
1628
1629 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1630
1631 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1632 dynamic_prop::const_val.
1633
1634 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1635
1636 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1637 dynamic_prop::kind.
1638
1639 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1640
1641 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1642
1643 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1644
1645 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1646
1647 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1648 Jose E. Marchesi <jose.marchesi@oracle.com>
1649
1650 * configure.tgt: Add entry for bpf-*-*.
1651 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1652 (ALLDEPFILES): Add bpf-tdep.c.
1653 * bpf-tdep.c: New file.
1654 * MAINTAINERS: Add bpf target and maintainer.
1655 * NEWS: Mention the support for the new target.
1656
1657 2020-08-04 Tom de Vries <tdevries@suse.de>
1658
1659 PR symtab/23270
1660 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1661 Error.
1662
1663 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1664
1665 * syscalls/freebsd.xml: Regenerate.
1666
1667 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1668
1669 * syscalls/update-freebsd.sh: Fix usage and year range.
1670
1671 2020-08-03 Tom de Vries <tdevries@suse.de>
1672
1673 PR symtab/26333
1674 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1675 DW_LNE_lo_user/DW_LNE_hi_user range.
1676
1677 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 PR ada/26318
1680 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1681 kind.
1682
1683 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1684
1685 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1686
1687 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1688
1689 * breakpoint.c (set_breakpoint_condition): Update the condition
1690 expressions after checking that the input condition string parses
1691 successfully and does not contain junk at the end.
1692
1693 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1694
1695 * breakpoint.c (set_breakpoint_condition): Update the
1696 condition string after parsing the new condition successfully.
1697
1698 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1699
1700 * proc-api.c (_STRUCTURED_PROC): Don't define.
1701 * proc-events.c: Likewise.
1702 * proc-flags.c: Likewise.
1703 * proc-why.c: Likewise.
1704 * procfs.c: Likewise.
1705
1706 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1707 * configure, config.in: Regenerate.
1708
1709 2020-07-30 Tom de Vries <tdevries@suse.de>
1710
1711 PR build/26320
1712 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1713 m_red/m_green/m_blue in a union.
1714
1715 2020-07-29 Tom de Vries <tdevries@suse.de>
1716
1717 PR tdep/26280
1718 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1719
1720 2020-07-28 Tom Tromey <tromey@adacore.com>
1721
1722 PR symtab/26270:
1723 * symtab.h (find_pc_partial_function_sym): Declare.
1724 * cli/cli-cmds.c (disassemble_command): Use
1725 find_pc_partial_function_sym. Check asm_demangle.
1726 * blockframe.c (cache_pc_function_sym): New global.
1727 (cache_pc_function_name): Remove.
1728 (clear_pc_function_cache): Update.
1729 (find_pc_partial_function_sym): New function, from
1730 find_pc_partial_function.
1731 (find_pc_partial_function): Rewrite using
1732 find_pc_partial_function_sym.
1733
1734 2020-07-28 Tom Tromey <tromey@adacore.com>
1735
1736 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1737 help. Add usage.
1738
1739 2020-07-28 Tom Tromey <tromey@adacore.com>
1740
1741 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1742 <DW_OP_GNU_variable_value>: Cast to address type.
1743
1744 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1745
1746 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1747 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1748 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1749 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1750 (nbsd_get_siginfo_type): New.
1751 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1752 (_initialize_nbsd_tdep): New.
1753
1754 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1755
1756 PR binutils/26301
1757 * configure: Regenerated.
1758
1759 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 PR binutils/26301
1762 * configure: Regenerated.
1763
1764 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * python/py-frame.c: Remove 'user-regs.h' include.
1767 (frapy_read_register): Rewrite to make use of
1768 gdbpy_parse_register_id.
1769 * python/py-registers.c (gdbpy_parse_register_id): New function,
1770 moved here from python/py-unwind.c. Updated the return type, and
1771 also accepts register descriptor objects.
1772 * python/py-unwind.c: Remove 'user-regs.h' include.
1773 (pyuw_parse_register_id): Moved to python/py-registers.c.
1774 (unwind_infopy_add_saved_register): Update to use
1775 gdbpy_parse_register_id.
1776 (pending_framepy_read_register): Likewise.
1777 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1778
1779 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * python/py-registers.c: Add 'user-regs.h' include.
1782 (register_descriptor_iter_find): New function.
1783 (register_descriptor_iterator_object_methods): New static global
1784 methods array.
1785 (register_descriptor_iterator_object_type): Add pointer to methods
1786 array.
1787
1788 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1789
1790 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1791 for all architectures on FreeBSD 11.3 and later.
1792
1793 2020-07-27 Tom Tromey <tromey@adacore.com>
1794
1795 * gcore.h (load_corefile): Don't declare.
1796
1797 2020-07-27 Tom de Vries <tdevries@suse.de>
1798
1799 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1800 * config.in: Regenerate.
1801 * configure: Regenerate.
1802
1803 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1804
1805 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1806 ws2tcpip.h. When checking whether socklen_t type is defined, use
1807 ws2tcpip.h if it is available and sys/socket.h isn't.
1808 * configure: Regenerate.
1809 * config.in: Regenerate.
1810
1811 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1812
1813 PR fortran/23051
1814 PR fortran/26139
1815 * valops.c (value_ind): Pass address to
1816 readjust_indirect_value_type.
1817 * value.c (readjust_indirect_value_type): Make parameter
1818 non-const, and add extra address parameter. Resolve original type
1819 before using it.
1820 * value.h (readjust_indirect_value_type): Update function
1821 signature and comment.
1822
1823 2020-07-25 Tom de Vries <tdevries@suse.de>
1824
1825 PR symtab/26243
1826 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1827 entries.
1828
1829 2020-07-24 Aaron Merey <amerey@redhat.com>
1830
1831 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1832 * configure: Rebuild.
1833
1834 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1835
1836 PR corefiles/26294
1837 * corelow.c (_initialize_corelow): Add period to help text
1838 for "maintenance print core-file-backed-mappings".
1839
1840 2020-07-23 Pedro Alves <pedro@palves.net>
1841
1842 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1843 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1844 meanwhile.
1845 * frame.c (frame_cache_generation, get_frame_cache_generation):
1846 New.
1847 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1848 (get_prev_frame_if_no_cycle): On exception, don't touch
1849 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1850 * frame.h (get_frame_cache_generation): Declare.
1851
1852 2020-07-23 Tom de Vries <tdevries@suse.de>
1853
1854 PR tui/26282
1855 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1856 New default constructor.
1857
1858 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1861 exclude non-statement entries.
1862
1863 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1864
1865 * NEWS (New commands): Mention new command
1866 "maintenance print core-file-backed-mappings".
1867
1868 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1869
1870 * corelow.c (gdbcmd.h): Include.
1871 (core_target::info_proc_mappings): New method.
1872 (get_current_core_target): New function.
1873 (maintenance_print_core_file_backed_mappings): New function.
1874 (_initialize_corelow): Add core-file-backed-mappings to
1875 "maint print" commands.
1876
1877 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1878
1879 * linux-tdep.c (dump_note_entry_p): New function.
1880 (linux_dump_mapping_p_ftype): New typedef.
1881 (linux_find_memory_regions_full): Add new parameter,
1882 should_dump_mapping_p.
1883 (linux_find_memory_regions): Adjust call to
1884 linux_find_memory_regions_full.
1885 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1886 call to linux_find_memory_regions_full.
1887
1888 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1889
1890 * corelow.c (solist.h, unordered_map): Include.
1891 (class core_target): Add field m_core_file_mappings and
1892 method build_file_mappings.
1893 (core_target::core_target): Call build_file_mappings.
1894 (core_target::~core_target): Free memory associated with
1895 m_core_file_mappings.
1896 (core_target::build_file_mappings): New method.
1897 (core_target::xfer_partial): Use m_core_file_mappings
1898 for memory transfers.
1899 * linux-tdep.c (linux_read_core_file_mappings): New
1900 function.
1901 (linux_core_info_proc_mappings): Rewrite to use
1902 linux_read_core_file_mappings.
1903 (linux_init_abi): Register linux_read_core_file_mappings.
1904
1905 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1906
1907 * arch-utils.c (default_read_core_file_mappings): New function.
1908 * arch-utils.c (default_read_core_file_mappings): Declare.
1909 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1910 * gdbarch.h, gdbarch.c: Regenerate.
1911
1912 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1913
1914 PR corefiles/25631
1915 * corelow.c (core_target:xfer_partial): Revise
1916 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1917 case after first checking the stratum beneath the core
1918 target.
1919 (has_all_memory): Return true.
1920 * target.c (raw_memory_xfer_partial): Revise comment
1921 regarding use of has_all_memory.
1922
1923 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1924
1925 * exec.h (section_table_xfer_memory): Revise declaration,
1926 replacing section name parameter with an optional callback
1927 predicate.
1928 * exec.c (section_table_xfer_memory): Likewise.
1929 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1930 of section_table_xfer_memory.
1931
1932 2020-07-22 Tom Tromey <tromey@adacore.com>
1933
1934 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1935 lookup_symbol_search_name.
1936
1937 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1940 redundant local variable.
1941 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1942 reference, not pointer, update code accordingly.
1943
1944 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1945 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1946
1947 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1948 * jit.c (jit_breakpoint_re_set_internal): Use the
1949 `skip_jit_symbol_lookup` field.
1950
1951 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1952 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1953
1954 * jit.c (jit_read_descriptor): Define the descriptor address once,
1955 use twice.
1956 (jit_breakpoint_deleted): Move the declaration of the loop variable
1957 `iter` into the loop header.
1958 (jit_breakpoint_re_set_internal): Move the declaration of the local
1959 variable `objf_data` to the first point of definition.
1960 (jit_event_handler): Move the declaration of local variables
1961 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1962 Rename `objf` to `jited`.
1963
1964 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1965
1966 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1967 Remove.
1968 * jit.c (get_jiter_objfile_data): Update.
1969
1970 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971 Simon Marchi <simon.marchi@polymtl.ca>
1972
1973 * jit.c (struct jit_program_space_data): Remove.
1974 (jit_program_space_key): Remove.
1975 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1976 stuff.
1977 (get_jit_program_space_data): Remove.
1978 (jit_breakpoint_deleted): Iterate on all of the program space's
1979 objfiles.
1980 (jit_inferior_init): Likewise.
1981 (jit_breakpoint_re_set_internal): Likewise. Also change return
1982 type to void.
1983 (jit_breakpoint_re_set): Pass current_program_space to
1984 jit_breakpoint_re_set_internal.
1985
1986 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1987
1988 * jit.h (struct jiter_objfile_data) <cached_code_address,
1989 jit_breakpoint>: Move to here from ...
1990 * jit.c (jit_program_space_data): ... here.
1991 (jiter_objfile_data::~jiter_objfile_data): Update.
1992 (jit_breakpoint_deleted): Update.
1993 (jit_breakpoint_re_set_internal): Update.
1994
1995 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1998 checks.
1999 (jit_read_descriptor): Remove NULL check.
2000 (jit_event_handler): Add an assertion.
2001
2002 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2003
2004 * jit.h (struct jit_objfile_data): Split into...
2005 (struct jiter_objfile_data): ... this ...
2006 (struct jited_objfile_data): ... and this.
2007 * objfiles.h (struct objfile) <jit_data>: Remove.
2008 <jiter_data, jited_data>: New fields.
2009 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2010 (jiter_objfile_data::~jiter_objfile_data): ... this.
2011 (get_jit_objfile_data): Rename to ...
2012 (get_jiter_objfile_data): ... this.
2013 (add_objfile_entry): Update.
2014 (jit_read_descriptor): Use get_jiter_objfile_data.
2015 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2016 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2017 (jit_inferior_exit_hook): Use objfile's jited_data field.
2018
2019 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2020
2021 * jit.h: Forward-declare `struct minimal_symbol`.
2022 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2023 constructor, destructor, and an objfile* field.
2024 * jit.c (jit_objfile_data): Remove.
2025 (struct jit_objfile_data): Migrate from here to jit.h.
2026 (jit_objfile_data::~jit_objfile_data): New destructor
2027 implementation with code moved from free_objfile_data.
2028 (free_objfile_data): Delete.
2029 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2030 (jit_find_objf_with_entry_addr): Ditto.
2031 (jit_inferior_exit_hook): Ditto.
2032 (_initialize_jit): Remove the call to
2033 register_objfile_data_with_cleanup.
2034 * objfiles.h (struct objfile) <jit_data>: New field.
2035
2036 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037
2038 * jit.h: Forward-declare `struct objfile`.
2039 (jit_event_handler): Add a second parameter, the JITer objfile.
2040 * jit.c (jit_read_descriptor): Change the signature to take the
2041 JITer objfile as an argument instead of the jit_program_space_data.
2042 (jit_inferior_init): Update the call to jit_read_descriptor.
2043 (jit_event_handler): Use the new JITer objfile argument when calling
2044 jit_read_descriptor.
2045 * breakpoint.c (handle_jit_event): Update the call to
2046 jit_event_handler to pass the JITer objfile.
2047
2048 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2049
2050 * gdbarch.c: Regenerate.
2051 * gdbarch.h: Regenerate.
2052 * gdbarch.sh (handle_segmentation_fault): Remove method.
2053 * infrun.c (handle_segmentation_fault): Remove.
2054 (print_signal_received_reason): Remove call to
2055 handle_segmentation_fault.
2056
2057 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2058
2059 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2060 Rename to sparc64_linux_report_signal_info and add siggnal
2061 argument.
2062 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2063 instead of sparc64_linux_handle_segmentation_fault.
2064
2065 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2066
2067 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2068 i386_linux_report_signal_info instead of
2069 i386_linux_handle_segmentation_fault.
2070 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2071 to i386_linux_report_signal_info and add siggnal argument.
2072 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2073 of i386_linux_handle_segmentation_fault.
2074 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2075 to i386_linux_report_signal_info and add siggnal argument.
2076
2077 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2078
2079 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2080 hook if present.
2081
2082 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2083
2084 * gdbarch.c: Regenerate.
2085 * gdbarch.h: Regenerate.
2086 * gdbarch.sh (report_signal_info): New method.
2087 * infrun.c (print_signal_received_reason): Invoke gdbarch
2088 report_signal_info hook if present.
2089
2090 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * python/py-registers.c : Add 'unordered_map' include.
2093 (gdbpy_new_reggroup): Renamed to...
2094 (gdbpy_get_reggroup): ...this. Update to only create register
2095 group descriptors when needed.
2096 (gdbpy_reggroup_iter_next): Update.
2097
2098 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * python/py-registers.c (gdbpy_register_object_data): New static
2101 global.
2102 (gdbpy_register_object_data_init): New function.
2103 (gdbpy_new_register_descriptor): Renamed to...
2104 (gdbpy_get_register_descriptor): ...this, and update to reuse
2105 existing register descriptors where possible.
2106 (gdbpy_register_descriptor_iter_next): Update.
2107 (gdbpy_initialize_registers): Register new gdbarch data.
2108
2109 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * linux-nat.c (stopped_pids): Make static.
2112
2113 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 PR ada/26235
2116 * gdbtypes.c (ada_discrete_type_low_bound,
2117 ada_discrete_type_high_bound): Handle undefined bounds.
2118
2119 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2120
2121 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2122 declaration.
2123 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2124 function.
2125
2126 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2127
2128 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2129 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2130 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2131 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2132 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2133 method.
2134
2135 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2136
2137 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2138 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2139 which are deprecated in Guile 3.0.
2140 * configure.ac (try_guile_versions): Add "guile-3.0".
2141 * configure (try_guile_versions): Regenerate.
2142 * NEWS: Update entry.
2143
2144 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2145 Doug Evans <dje@google.com>
2146
2147 PR gdb/21104
2148 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2149 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2150 USING_GUILE_BEFORE_2_2.
2151 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2152 Change type to 'scm_t_port_type *'.
2153 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2154 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2155 parameter and honor it. Update callers.
2156 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2157 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2158 functions.
2159 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2160 USING_GUILE_BEFORE_2_2.
2161 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2162 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2163 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2164 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2165 and 'SCM_PORT_TYPE'.
2166 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2167 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2168 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2169 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2170 [!USING_GUILE_BEFORE_2_2]: New functions.
2171 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2172 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2173 'gdbscm_memory_port_read'.
2174 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2175 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2176 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2177 function.
2178 (ioscm_init_memory_port): Remove.
2179 (ioscm_init_memory_port_stream): New function
2180 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2181 function.
2182 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2183 Return scm_from_uint (0).
2184 (gdbscm_set_memory_port_read_buffer_size_x)
2185 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2186 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2187 Return scm_from_uint (0).
2188 (gdbscm_set_memory_port_write_buffer_size_x)
2189 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2190 * configure.ac (try_guile_versions): Add "guile-2.2".
2191 * configure: Regenerate.
2192 * NEWS: Add entry.
2193
2194 2020-07-18 Tom Tromey <tom@tromey.com>
2195
2196 * linux-nat.c (linux_multi_process): Remove.
2197 (linux_nat_target::supports_multi_process): Return true.
2198
2199 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2202 (riscv_lookup_target_description): Return pointer out of
2203 unique_ptr.
2204 * target-descriptions.c (allocate_target_description): Add
2205 comment.
2206 (target_desc_deleter::operator()): Likewise.
2207 * target-descriptions.h (struct target_desc_deleter): Moved to
2208 gdbsupport/tdesc.h.
2209 (target_desc_up): Likewise.
2210
2211 2020-07-17 Tom Tromey <tromey@adacore.com>
2212
2213 * linux-nat.c (linux_nat_target::supports_non_stop)
2214 (linux_nat_target::always_non_stop_p): Use "true".
2215 (linux_nat_target::supports_disable_randomization): Use "true" and
2216 "false".
2217
2218 2020-07-16 Caroline Tice <cmtice@google.com>
2219
2220 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2221 (RNGLIST_HEADER_SIZE64): New constant definition.
2222 (struct dwop_section_names): Add rnglists_dwo.
2223 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2224 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2225 (struct dwo_sections): Add rnglists field.
2226 (read_attribut_reprocess): Add tag parameter.
2227 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2228 (cu_debug_rnglists_section): New function (decl & definition).
2229 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2230 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2231 die whose range is being checked; get rnglist section from
2232 cu_debug_rnglists_section, to get from either objfile or dwo file as
2233 appropriate. Add cases for DW_RLE_base_addressx,
2234 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2235 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2236 test inside if-condition and updating complaint message.
2237 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2238 dwarf2_rnglists_process.
2239 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2240 dwarf2_ranges_process.
2241 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2242 need_ranges_base and update comment appropriately. Also pass die tag
2243 to dwarf2_ranges_read.
2244 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2245 need_ranges_base and update comment appropriately. Also pass die tag
2246 to dwarf2_ranges_process.
2247 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2248 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2249 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2250 need_ranges_base and update comment appropriately. Also pass die tag
2251 to read_attribute_reprocess and dwarf2_ranges_read.
2252 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2253 and update function comment appropriately.
2254 (read_loclist_index): Call read_loclists_rnglists_header instead of
2255 read_loclist_header.
2256 (read_rnglist_index): New function.
2257 (read_attribute_reprocess): Add tag parameter. Add code for
2258 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2259 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2260
2261 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2262
2263 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2264 being resolved.
2265
2266 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * arch-utils.c (show_architecture): Update formatting of messages.
2269
2270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2271
2272 * gdbtypes.h (struct type) <bounds>: Handle array and string
2273 types.
2274 * ada-lang.c (assign_aggregate): Use type::bounds on
2275 array/string type.
2276 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2277 * c-varobj.c (c_number_of_children): Likewise.
2278 (c_describe_child): Likewise.
2279 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2280 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2281 (f_type_print_base): Likewise.
2282 * f-valprint.c (f77_array_offset_tbl): Likewise.
2283 (f77_get_upperbound): Likewise.
2284 (f77_print_array_1): Likewise.
2285 * guile/scm-type.c (gdbscm_type_range): Likewise.
2286 * m2-typeprint.c (m2_array): Likewise.
2287 (m2_is_long_set_of_type): Likewise.
2288 * m2-valprint.c (get_long_set_bounds): Likewise.
2289 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2290 * python/py-type.c (typy_range): Likewise.
2291 * rust-lang.c (rust_internal_print_type): Likewise.
2292 * type-stack.c (type_stack::follow_types): Likewise.
2293 * valarith.c (value_subscripted_rvalue): Likewise.
2294 * valops.c (value_cast): Likewise.
2295
2296 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2297
2298 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2299 callers to use the equivalent accessor methods.
2300
2301 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2304 (struct type) <bit_stride>: New method.
2305 (TYPE_BIT_STRIDE): Remove.
2306 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2307
2308 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2309
2310 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2311 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2312 callers to use the equivalent accessor methods instead.
2313
2314 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2317 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2318 callers to use the equivalent accessor methods instead.
2319
2320 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2321
2322 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2323 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2324 to use dynamic_prop::kind.
2325
2326 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2329 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2330 to get the bound property's kind and check against
2331 PROP_UNDEFINED.
2332
2333 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2334
2335 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2336 all callers to use type::range_bounds followed by
2337 dynamic_prop::{low,high}.
2338
2339 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2340
2341 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2342 const_val, set_const_val, baton, set_locexpr, set_loclist,
2343 set_addr_offset, variant_parts, set_variant_parts,
2344 original_type, set_original_type>: New methods.
2345 <kind>: Rename to...
2346 <m_kind>: ... this. Update all users to use the new methods
2347 instead.
2348 <data>: Rename to...
2349 <m_data>: ... this. Update all users to use the new methods
2350 instead.
2351
2352 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * gdbtypes.c (get_discrete_bounds): Return failure if
2355 the range type's bounds are not both defined and constant
2356 values.
2357 (get_array_bounds): Update comment. Remove undefined bound check.
2358
2359 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2360
2361 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2362 the type::bounds method directly.
2363
2364 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2365
2366 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2367 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2368 are used to set the range type's bounds to use set_bounds.
2369
2370 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2371
2372 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2373
2374 2020-07-10 Pedro Alves <pedro@palves.net>
2375
2376 * gdbthread.h (inferior_ref): Define.
2377 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2378 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2379 * thread.c
2380 (scoped_restore_current_thread::restore):
2381 Adjust to gdb::ref_ptr.
2382 (scoped_restore_current_thread::~scoped_restore_current_thread):
2383 Remove manual decref handling.
2384 (scoped_restore_current_thread::scoped_restore_current_thread):
2385 Adjust to use
2386 inferior_ref::new_reference/thread_info_ref::new_reference.
2387 Incref the thread before calling get_frame_id instead of after.
2388 Let TARGET_CLOSE_ERROR propagate.
2389
2390 2020-07-10 Pedro Alves <pedro@palves.net>
2391
2392 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2393 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2394 NOT_AVAILABLE_ERROR.
2395 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2396 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2397
2398 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2399 Pedro Alves <pedro@palves.net>
2400
2401 PR gdb/26199
2402 * infrun.c (threads_are_resumed_pending_p): Delete.
2403 (do_target_wait): Remove threads_are_executing and
2404 threads_are_resumed_pending_p checks from the inferior_matches
2405 lambda. Update comments.
2406
2407 2020-07-10 Pedro Alves <pedro@palves.net>
2408
2409 PR gdb/26199
2410 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2411 executing threads.
2412
2413 2020-07-10 Pedro Alves <pedro@palves.net>
2414
2415 PR gdb/26199
2416 * infrun.c (handle_no_resumed): Handle multiple targets.
2417
2418 2020-07-10 Pedro Alves <pedro@palves.net>
2419
2420 PR gdb/26199
2421 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2422 target_is_async_p.
2423
2424 2020-07-10 Pedro Alves <pedro@palves.net>
2425
2426 PR gdb/26199
2427 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2428 threads, not all threads.
2429
2430 2020-07-10 Pedro Alves <pedro@palves.net>
2431
2432 PR gdb/26199
2433 * remote.c (remote_target::open_1): Pass remote target pointer as
2434 data to create_async_event_handler.
2435 (remote_async_inferior_event_handler): Mark async event handler
2436 before returning if the remote target still has either pending
2437 events or unacknowledged notifications.
2438
2439 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2440
2441 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2442 declaration.
2443 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2444 function.
2445
2446 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2447
2448 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2449 inferior_ptid.
2450
2451 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2452
2453 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2454 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2455 AT_FREEBSD_PS_STRINGS.
2456
2457 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2458
2459 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2460 of debugfile path on Windows.
2461
2462 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2463
2464 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2465 argument to 'data'.
2466
2467 2020-07-08 Tom Tromey <tromey@adacore.com>
2468
2469 * ada-lang.c (ada_exception_message_1): Use read_memory.
2470
2471 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 PR python/22748
2474 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2475 special handling for inline frames.
2476 * findvar.c (value_of_register_lazy): Skip inline frames when
2477 creating lazy register values.
2478 * frame.c (frame_id_computed_p): Delete definition.
2479 * frame.h (frame_id_computed_p): Delete declaration.
2480
2481 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * NEWS: Mention additions to Python API.
2484 * python/py-arch.c (archpy_register_groups): New function.
2485 (arch_object_methods): Add 'register_groups' method.
2486 * python/py-registers.c (reggroup_iterator_object): New struct.
2487 (reggroup_object): New struct.
2488 (gdbpy_new_reggroup): New function.
2489 (gdbpy_reggroup_to_string): New function.
2490 (gdbpy_reggroup_name): New function.
2491 (gdbpy_reggroup_iter): New function.
2492 (gdbpy_reggroup_iter_next): New function.
2493 (gdbpy_new_reggroup_iterator): New function
2494 (gdbpy_initialize_registers): Register new types.
2495 (reggroup_iterator_object_type): Define new Python type.
2496 (gdbpy_reggroup_getset): New static global.
2497 (reggroup_object_type): Define new Python type.
2498 * python/python-internal.h
2499
2500 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2501
2502 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2503 * python/py-arch.c (archpy_registers): New function.
2504 (arch_object_methods): Add 'registers' method.
2505 * python/py-registers.c: New file.
2506 * python/python-internal.h
2507 (gdbpy_new_register_descriptor_iterator): Declare.
2508 (gdbpy_initialize_registers): Declare.
2509 * python/python.c (do_start_initialization): Call
2510 gdbpy_initialize_registers.
2511 * NEWS: Mention additions to the Python API.
2512
2513 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * NEWS: Mention new Python API method.
2516 * python/py-unwind.c (pending_framepy_architecture): New function.
2517 (pending_frame_object_methods): Add architecture method.
2518
2519 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * gdbarch.c: Regenerate.
2522 * gdbarch.h: Regenerate.
2523 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2524 (gdbarch_data): Use internal_error for the case where
2525 deprecated_set_gdbarch_data was originally needed.
2526 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2527 and use passed in obstack.
2528 (libunwind_frame_set_descr): Should no longer get back NULL from
2529 gdbarch_data.
2530 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2531 type.
2532 * user-regs.c (user_regs_init): Update parameters, and use passed
2533 in obstack.
2534 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2535 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2536
2537 2020-07-06 Tom de Vries <tdevries@suse.de>
2538
2539 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2540 End-Of-Sequence in lte_is_less_than.
2541 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2542 "gdb: Don't reorder line table entries too much when sorting".
2543
2544 2020-07-06 Tom de Vries <tdevries@suse.de>
2545
2546 PR tui/26205
2547 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2548
2549 2020-07-05 Tom de Vries <tdevries@suse.de>
2550
2551 PR build/26187
2552 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2553 std::uncaught_exceptions instead of deprecated
2554 std::uncaught_exception.
2555
2556 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * macroexp.h (macro_stringify): Return
2559 gdb::unique_xmalloc_ptr<char>.
2560 * macroexp.c (macro_stringify): Likewise.
2561 * macrotab.c (fixup_definition): Update.
2562
2563 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2566 (lex_one_token): Update.
2567 * macroexp.c (struct macro_buffer) <release>: Return
2568 gdb::unique_xmalloc_ptr<char>.
2569 (macro_stringify): Update.
2570 (macro_expand): Update.
2571 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2572 * macroexp.h (macro_expand_next): Likewise.
2573
2574 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * macroexp.h (macro_lookup_ftype): Remove.
2577 (macro_expand, macro_expand_once, macro_expand_next): Remove
2578 lookup function parameters, add scope parameter.
2579 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2580 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2581 * macroscope.h (standard_macro_lookup): Change parameter type
2582 to macro_scope.
2583 * macroscope.c (standard_macro_lookup): Likewise.
2584 * c-exp.y (lex_one_token): Update.
2585 * macrocmd.c (macro_expand_command): Likewise.
2586 (macro_expand_once_command): Likewise.
2587
2588 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2589
2590 * inf-loop.c (inferior_event_handler): Remove client_data param.
2591 * inf-loop.h (inferior_event_handler): Likewise.
2592 * infcmd.c (step_1): Adjust.
2593 * infrun.c (proceed): Adjust.
2594 (fetch_inferior_event): Remove client_data param.
2595 (infrun_async_inferior_event_handler): Adjust.
2596 * infrun.h (fetch_inferior_event): Remove `void *` param.
2597 * linux-nat.c (handle_target_event): Adjust.
2598 * record-btrace.c (record_btrace_handle_async_inferior_event):
2599 Adjust.
2600 * record-full.c (record_full_async_inferior_event_handler):
2601 Adjust.
2602 * remote.c (remote_async_inferior_event_handler): Adjust.
2603
2604 2020-07-01 Tom Tromey <tom@tromey.com>
2605
2606 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2607 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2608
2609 2020-07-01 Tom Tromey <tom@tromey.com>
2610
2611 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2612 tui_gen_win_info.
2613 (tui_win_info::make_window): Merge with
2614 tui_gen_win_info::make_window.
2615 (tui_win_info::make_visible): Move from tui_gen_win_info.
2616 * tui/tui-win.c (tui_win_info::max_width): Move from
2617 tui_gen_win_info.
2618 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2619 type.
2620 <window_factory>: Likewise.
2621 * tui/tui-layout.c (tui_win_info::resize): Move from
2622 tui_gen_win_info.
2623 (make_standard_window): Change return type.
2624 (get_locator_window, tui_get_window_by_name): Likewise.
2625 (tui_layout_window::apply): Remove a cast.
2626 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2627 (struct tui_win_info): Merge with tui_gen_win_info.
2628 (struct tui_gen_win_info): Remove.
2629
2630 2020-07-01 Tom Tromey <tom@tromey.com>
2631
2632 * tui/tui-stack.h (struct tui_locator_window): Derive from
2633 tui_win_info.
2634 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2635 <can_box>: New method.
2636
2637 2020-07-01 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2640
2641 2020-07-01 Tom Tromey <tom@tromey.com>
2642
2643 * tui/tui-regs.c (tui_data_window::display_registers_from)
2644 (tui_data_window::display_registers_from)
2645 (tui_data_window::first_data_item_displayed)
2646 (tui_data_window::delete_data_content_windows): Update.
2647 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2648 Remove.
2649 (tui_data_window::check_register_values): Update.
2650 (tui_data_item_window::rerender): Add parameters. Update.
2651 (tui_data_item_window::refresh_window): Remove.
2652 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2653 virtual.
2654 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2655 tui_gen_win_info.
2656 <refresh_window, max_height, min_height>: Remove.
2657 <rerender>: Add parameters.
2658 <x, y, visible>: New members.
2659 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2660 <m_item_width>: New member.
2661
2662 2020-07-01 Tom Tromey <tom@tromey.com>
2663
2664 * tui/tui-regs.c (tui_data_window::show_register_group)
2665 (tui_data_window::check_register_values): Update.
2666 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2667 from item_no.
2668
2669 2020-07-01 Tom Tromey <tom@tromey.com>
2670
2671 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2672 useless "if".
2673
2674 2020-07-01 Tom Tromey <tom@tromey.com>
2675
2676 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2677 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2678
2679 2020-07-01 Tom Tromey <tom@tromey.com>
2680
2681 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2682 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2683 (struct tui_line_or_address): Move from tui-data.h.
2684 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2685 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2686 (tui_cmd_window, tui_source_window_base, tui_source_window)
2687 (tui_disasm_window): Don't declare.
2688 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2689 to tui-winsource.h.
2690 (SINGLE_KEY): Move to tui-stack.c.
2691
2692 2020-07-01 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2695 std::string.
2696 * tui/tui-regs.c (class tab_expansion_file): New.
2697 (tab_expansion_file::write): New method.
2698 (tui_register_format): Change return type. Use
2699 tab_expansion_file.
2700 (tui_get_register, tui_data_window::display_registers_from)
2701 (tui_data_item_window::rerender): Update.
2702 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2703 * tui/tui-io.c (tui_expand_tabs): Remove.
2704
2705 2020-07-01 Tom Tromey <tom@tromey.com>
2706
2707 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2708
2709 2020-07-01 Fangrui Song <maskray@google.com>
2710
2711 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2712
2713 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2714
2715 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2716 forms for DW_AT_associated and DW_AT_allocated attributes,
2717 which is already checked in function attr_to_dynamic_prop.
2718
2719 2020-06-30 Tom Tromey <tromey@adacore.com>
2720
2721 * dwarf2/read.c (quirk_rust_enum): Correctly call
2722 alloc_rust_variant for default-less enum.
2723
2724 2020-06-30 Tom Tromey <tromey@adacore.com>
2725
2726 PR build/26183:
2727 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2728 gdb::to_string.
2729
2730 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2731
2732 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2733 * gdbarch.h: Re-generate.
2734
2735 2020-06-28 Tom Tromey <tom@tromey.com>
2736
2737 * command.h (cmd_types): Remove.
2738 (cmd_type): Don't declare.
2739 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2740 typedef.
2741 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2742 * cli/cli-decode.c (cmd_type): Remove.
2743
2744 2020-06-27 Pedro Alves <palves@redhat.com>
2745
2746 * fork-child.c (prefork_hook): Adjust.
2747 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2748 Delete.
2749 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2750 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2751 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2752 Remove declarations.
2753 (struct inferior) <set_tty, tty>: New methods.
2754 (struct inferior) <terminal>: Rename to ...
2755 (struct inferior) <m_terminal>: ... this and make private.
2756 * main.c (captured_main_1): Adjust.
2757 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2758 (mi_cmd_inferior_tty_show): Adjust.
2759 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2760 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2761
2762 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2763
2764 * configure.ac: Add --enable-libctf: handle --disable-static
2765 properly.
2766 * acinclude.m4: sinclude ../config/enable.m4.
2767 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2768 (LIBCTF): Substitute in.
2769 (CTF_DEPS): New, likewise.
2770 (CLIBS): libctf needs symbols from libbfd: move earlier.
2771 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2772 flags.
2773 * ctfread.c: Surround in ENABLE_LIBCTF.
2774 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2775 * configure: Regenerate.
2776 * config.in: Likewise.
2777
2778 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2781
2782 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2783
2784 * inferior.h (struct inferior) <terminal>: Change type to
2785 gdb::unique_xmalloc_ptr<char>.
2786 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2787 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2788 field, adjust to unique pointer.
2789 (get_inferior_io_terminal): Adjust to unique pointer.
2790
2791 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2794 registers, not just the known core set of registers.
2795
2796 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2799 fflags, frm, and fcsr registers.
2800 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2801 restore groups.
2802 (riscv_tdesc_unknown_reg): New function.
2803 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2804 tdesc_use_registers.
2805 * riscv-tdep.h (struct gdbarch_tdep): Add
2806 unknown_csrs_first_regnum, unknown_csrs_count,
2807 duplicate_fflags_regnum, duplicate_frm_regnum, and
2808 duplicate_fcsr_regnum fields.
2809
2810 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2813 callback, use the callback (when not null) to help number unknown
2814 registers.
2815 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2816 (tdesc_use_registers): Add extra parameter to declaration.
2817
2818 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2821 in the file.
2822 (class riscv_pending_register_alias): Likewise.
2823 (riscv_register_feature::register_info): Change 'required_p' field
2824 to 'required', and change its type. Add 'check' member function.
2825 (riscv_register_feature::register_info::check): Define new member
2826 function.
2827 (riscv_xreg_feature): Change initialisation of 'required' field.
2828 (riscv_freg_feature): Likewise.
2829 (riscv_virtual_feature): Likewise.
2830 (riscv_csr_feature): Likewise.
2831 (riscv_check_tdesc_feature): Take extra parameter, the csr
2832 tdesc_feature, rewrite the function to use the new
2833 riscv_register_feature::register_info::check function.
2834 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2835
2836 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2837
2838 * features/Makefile: Remove all references to the deleted files
2839 below.
2840 * features/riscv/32bit-csr.c: Deleted.
2841 * features/riscv/32bit-csr.xml: Deleted.
2842 * features/riscv/64bit-csr.c: Deleted.
2843 * features/riscv/64bit-csr.xml: Deleted.
2844 * features/riscv/rebuild-csr-xml.sh: Deleted.
2845
2846 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2849 whitespace error for declaration of names member variable.
2850 (struct riscv_register_feature): Add new prefer_first_name member
2851 variable, and fix whitespace error in declaration of registers.
2852 (riscv_xreg_feature): Initialize prefer_first_name field.
2853 (riscv_freg_feature): Likewise.
2854 (riscv_virtual_feature): Likewise.
2855 (riscv_csr_feature): Likewise.
2856 (riscv_register_name): Expand on comments. Remove register name
2857 modifications for CSR and virtual registers.
2858
2859 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2862 errors.
2863
2864 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2867 riscv-opc.h.
2868 (class riscv_pending_register_alias): New class.
2869 (riscv_check_tdesc_feature): Take vector of pending aliases and
2870 populate it as appropriate.
2871 (riscv_setup_register_aliases): Delete.
2872 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2873 to riscv_check_tdesc_feature in all cases. Use the vector to
2874 create the register aliases.
2875
2876 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2877
2878 * sol2-tdep.c (sol2_static_transform_name): Remove.
2879 (sol2_init_abi): Don't register it.
2880 * gdbarch.sh (static_transform_name): Remove.
2881 * gdbarch.c, gdbarch.h: Regenerate.
2882
2883 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2884 gdbarch_static_transform_name.
2885 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2886 * stabsread.c (define_symbol) <'X'>: Remove.
2887 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2888 handling.
2889 <'V'>: Likewise.
2890 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2891 <'S'>: Remove call to gdbarch_static_transform_name.
2892
2893 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2894
2895 * procfs.c (procfs_pre_trace): New function.
2896 (procfs_target::create_inferior): Pass it to fork_inferior.
2897
2898 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2899
2900 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2901 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2902 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2903 sol2-tdep.o, sparc-sol2-tdep.o.
2904 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2905 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2906 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2907 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2908
2909 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2910
2911 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2912 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2913 Call sol2_init_abi.
2914 Remove calls to set_gdbarch_skip_solib_resolver,
2915 set_gdbarch_core_pid_to_str.
2916 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2917 (i386_sol2_static_transform_name): Remove.
2918 (i386_sol2_init_abi): Call sol2_init_abi.
2919 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2920 set_gdbarch_static_transform_name,
2921 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2922 Use sol2_sigtramp_p.
2923 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2924 (sol2_sigtramp_p): New function.
2925 (sol2_static_transform_name): New function.
2926 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2927 (sol2_init_abi): New function.
2928 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2929 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2930 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2931 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2932 (sparc_sol2_static_transform_name): Remove.
2933 (sparc32_sol2_init_abi): Call sol2_init_abi.
2934 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2935 set_gdbarch_static_transform_name,
2936 set_gdbarch_skip_solib_resolver,
2937 set_gdbarch_core_pid_to_str.
2938 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2939 (sparc_sol2_static_transform_name): Remove
2940 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2941 call sol2_sigtramp_p.
2942 (sparc64_sol2_init_abi): Call sol2_init_abi.
2943 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2944 set_gdbarch_static_transform_name,
2945 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2946
2947 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2948
2949 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2950 * exec.c (validate_exec_file): If from_tty, set both
2951 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2952 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2953 and from_tty, unconditionally ask a confirmation.
2954
2955 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * target-descriptions.c (tdesc_architecture_name): Protect against
2958 NULL pointer dereference.
2959 (maint_print_xml_tdesc_cmd): New function.
2960 (_initialize_target_descriptions): Register new 'maint print
2961 xml-tdesc' command and give it the filename completer.
2962 * NEWS: Mention new 'maint print xml-tdesc' command.
2963
2964 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * target-descriptions.c (class tdesc_compatible_info): New class.
2967 (struct target_desc): Change type of compatible vector.
2968 (tdesc_compatible_p): Update for change in type of
2969 target_desc::compatible.
2970 (tdesc_compatible_info_list): New function.
2971 (tdesc_compatible_info_arch_name): New function.
2972 (tdesc_add_compatible): Update for change in type of
2973 target_desc::compatible.
2974 (print_c_tdesc::visit_pre): Likewise.
2975
2976 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2979 whitespace to underscore.
2980 (maint_print_c_tdesc_cmd): Use fake filename for target
2981 descriptions that came from the target.
2982 (_initialize_target_descriptions): Add filename command completion
2983 for 'maint print c-tdesc'.
2984
2985 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2986
2987 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2988 lines.
2989
2990 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2993 lines.
2994 (dwarf2_find_location_expression): Likewise.
2995 (call_site_parameter_matches): Likewise.
2996 (dwarf2_compile_expr_to_ax): Likewise.
2997 (disassemble_dwarf_expression): Likewise.
2998 (loclist_describe_location): Likewise.
2999
3000 2020-06-23 Pedro Alves <palves@redhat.com>
3001
3002 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3003 progspace-and-thread.h. Include scoped-mock-context.h instead.
3004 (register_to_value_test): Use scoped_mock_context.
3005 * regcache.c: Include "scoped-mock-context.h".
3006 (cooked_read_test): Don't error out if a target is already pushed.
3007 Use scoped_mock_context. Adjust.
3008 * scoped-mock-context.h: New file.
3009
3010 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3013 initializer.
3014 (ada_language::is_string_type_p): New member function.
3015 * c-lang.c (c_language_data): Delete la_is_string_type_p
3016 initializer.
3017 (cplus_language_data): Likewise.
3018 (asm_language_data): Likewise.
3019 (minimal_language_data): Likewise.
3020 * d-lang.c (d_language_data): Likewise.
3021 * f-lang.c (f_is_string_type_p): Delete function, implementation
3022 moved to f_language::is_string_type_p.
3023 (f_language_data): Delete la_is_string_type_p initializer.
3024 (f_language::is_string_type_p): New member function,
3025 implementation from f_is_string_type_p.
3026 * go-lang.c (go_is_string_type_p): Delete function, implementation
3027 moved to go_language::is_string_type_p.
3028 (go_language_data): Delete la_is_string_type_p initializer.
3029 (go_language::is_string_type_p): New member function,
3030 implementation from go_is_string_type_p.
3031 * language.c (language_defn::is_string_type_p): Define new member
3032 function.
3033 (default_is_string_type_p): Make static, add comment copied from
3034 header file.
3035 (unknown_language_data): Delete la_is_string_type_p initializer.
3036 (unknown_language::is_string_type_p): New member function.
3037 (auto_language_data): Delete la_is_string_type_p initializer.
3038 (auto_language::is_string_type_p): New member function.
3039 * language.h (language_data): Delete la_is_string_type_p field.
3040 (language_defn::is_string_type_p): Declare new function.
3041 (default_is_string_type_p): Delete desclaration, move comment to
3042 definition.
3043 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3044 moved to m2_language::is_string_type_p.
3045 (m2_language_data): Delete la_is_string_type_p initializer.
3046 (m2_language::is_string_type_p): New member function,
3047 implementation from m2_is_string_type_p.
3048 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3049 initializer.
3050 * opencl-lang.c (opencl_language_data): Likewise.
3051 * p-lang.c (pascal_is_string_type_p): Delete function,
3052 implementation moved to pascal_language::is_string_type_p.
3053 (pascal_language_data): Delete la_is_string_type_p initializer.
3054 (pascal_language::is_string_type_p): New member function,
3055 implementation from pascal_is_string_type_p.
3056 * rust-lang.c (rust_is_string_type_p): Delete function,
3057 implementation moved to rust_language::is_string_type_p.
3058 (rust_language_data): Delete la_is_string_type_p initializer.
3059 (rust_language::is_string_type_p): New member function,
3060 implementation from rust_is_string_type_p.
3061 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3062 is_string_type_p.
3063
3064 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * ada-lang.c (ada_language_data): Delete la_print_typedef
3067 initializer.
3068 (ada_language::print_typedef): New member function.
3069 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3070 (cplus_language_data): Likewise.
3071 (asm_language_data): Likewise.
3072 (minimal_language_data): Likewise.
3073 * d-lang.c (d_language_data): Likewise.
3074 * f-lang.c (f_language_data): Likewise.
3075 (f_language::print_typedef): New member function.
3076 * go-lang.c (go_language_data): Delete la_print_typedef
3077 initializer.
3078 * language.c (language_defn::print_typedef): Define member
3079 function.
3080 (unknown_language_data): Delete la_print_typedef initializer.
3081 (unknown_language::print_typedef): New member function.
3082 (auto_language_data): Delete la_print_typedef initializer.
3083 (auto_language::print_typedef): New member function.
3084 * language.h (language_data): Delete la_print_typedef field.
3085 (language_defn::print_typedef): Declare new member function.
3086 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3087 (default_print_typedef): Delete declaration.
3088 * m2-lang.c (m2_language_data): Delete la_print_typedef
3089 initializer.
3090 (m2_language::print_typedef): New member function.
3091 * objc-lang.c (objc_language_data): Delete la_print_typedef
3092 initializer.
3093 * opencl-lang.c (opencl_language_data): Likewise.
3094 * p-lang.c (pascal_language_data): Likewise.
3095 (pascal_language::print_typedef): New member function.
3096 * rust-lang.c (rust_print_typedef): Delete function,
3097 implementation moved to rust_language::print_typedef.
3098 (rust_language): Delete la_print_typedef initializer.
3099 (rust_language::print_typedef): New member function,
3100 implementation from rust_print_typedef.
3101 * typeprint.c (default_print_typedef): Delete.
3102
3103 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3106 (ada_language::printstr): New member function.
3107 * c-lang.c (c_language_data): Delete la_printstr initializer.
3108 (cplus_language_data): Likewise.
3109 (asm_language_data): Likewise.
3110 (minimal_language_data): Likewise.
3111 * d-lang.c (d_language_data): Likewise.
3112 * f-lang.c (f_printstr): Rename to f_language::printstr.
3113 (f_language_data): Delete la_printstr initializer.
3114 (f_language::printstr): New member function, implementation from
3115 f_printstr.
3116 * go-lang.c (go_language_data): Delete la_printstr initializer.
3117 * language.c (language_defn::printstr): Define new member
3118 function.
3119 (unk_lang_printstr): Delete.
3120 (unknown_language_data): Delete la_printstr initializer.
3121 (unknown_language::printstr): New member function.
3122 (auto_language_data): Delete la_printstr initializer.
3123 (auto_language::printstr): New member function.
3124 * language.h (language_data): Delete la_printstr field.
3125 (language_defn::printstr): Declare new member function.
3126 (LA_PRINT_STRING): Update call to printstr.
3127 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3128 (m2_language_data): Delete la_printstr initializer.
3129 (m2_language::printstr): New member function, implementation from
3130 m2_printstr.
3131 * objc-lang.c (objc_language_data): Delete la_printstr
3132 initializer.
3133 * opencl-lang.c (opencl_language_data): Likewise.
3134 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3135 (pascal_language_data): Delete la_printstr initializer.
3136 (pascal_language::printstr): New member function, implementation
3137 from pascal_printstr.
3138 * p-lang.h (pascal_printstr): Delete declaration.
3139 * rust-lang.c (rust_printstr): Update header comment.
3140 (rust_language_data): Delete la_printstr initializer.
3141 (rust_language::printstr): New member function.
3142
3143 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3146 (ada_language::printchar): New member function.
3147 * c-lang.c (c_language_data): Delete la_printchar initializer.
3148 (cplus_language_data): Likewise.
3149 (asm_language_data): Likewise.
3150 (minimal_language_data): Likewise.
3151 * d-lang.c (d_language_data): Likewise.
3152 * f-lang.c (f_printchar): Rename to f_language::printchar.
3153 (f_language_data): Delete la_printchar initializer.
3154 (f_language::printchar): New member function, implementation from
3155 f_printchar.
3156 * go-lang.c (go_language_data): Delete la_printchar initializer.
3157 * language.c (unk_lang_printchar): Delete.
3158 (language_defn::printchar): Define new member function.
3159 (unknown_language_data): Delete la_printchar initializer.
3160 (unknown_language::printchar): New member function.
3161 (auto_language_data): Delete la_printchar initializer.
3162 (auto_language::printchar): New member function.
3163 * language.h (language_data): Delete la_printchar field.
3164 (language_defn::printchar): Declare new member function.
3165 (LA_PRINT_CHAR): Update call to printchar.
3166 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3167 (m2_language::printchar): New member function.
3168 * objc-lang.c (objc_language_data): Delete la_printchar
3169 initializer.
3170 * opencl-lang.c (opencl_language_data): Likewise.
3171 * p-lang.c (pascal_language_data): Delete la_printchar
3172 initializer.
3173 (pascal_language::printchar): New member function.
3174 * rust-lang.c (rust_printchar): Rename to
3175 rust_language::printchar.
3176 (rust_language_data): Delete la_printchar initializer.
3177 (rust_language::printchar): New member function, implementation
3178 from rust_printchar.
3179
3180 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3181
3182 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3183 (ada_language_data): Delete la_emitchar initializer.
3184 (ada_language::emitchar): New member function, implementation from
3185 emit_char.
3186 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3187 (cplus_language_data): Likewise.
3188 (asm_language_data): Likewise.
3189 (minimal_language_data): Likewise.
3190 * d-lang.c (d_language_data): Likewise.
3191 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3192 (f_language_data): Delete la_emitchar initializer.
3193 (f_language::emitchar): New member function, implementation from
3194 f_emit_char.
3195 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3196 * language.c (unk_lang_emit_char): Delete.
3197 (language_defn::emitchar): New member function definition.
3198 (unknown_language_data): Delete la_emitchar initializer.
3199 (unknown_language::emitchar): New member function.
3200 (auto_language_data): Delete la_emitchar initializer.
3201 (auto_language::emitchar): New member function.
3202 * language.h (language_data): Delete la_emitchar field.
3203 (language_defn::emitchar): New member field declaration.
3204 (LA_EMIT_CHAR): Update call to emitchar.
3205 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3206 (m2_language_data): Delete la_emitchar initializer.
3207 (m2_language::emitchar): New member function, implementation from
3208 m2_emit_char.
3209 * objc-lang.c (objc_language_data): Delete la_emitchar
3210 initializer.
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3213 (pascal_language_data): Delete la_emitchar initializer.
3214 (pascal_language::emitchar): New member function, implementation
3215 from pascal_emit_char.
3216 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3217 (rust_language_data): Delete la_emitchar initializer.
3218 (rust_language::emitchar): New member function, implementation
3219 from rust_emitchar.
3220
3221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3224 (ada_language_data): Delete la_post_parser initializer.
3225 (ada_language::post_parser): New member function.
3226 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3227 (cplus_language_data): Likewise.
3228 (asm_language_data): Likewise.
3229 (minimal_language_data): Likewise.
3230 * d-lang.c (d_language_data): Likewise.
3231 * f-lang.c (f_language_data): Likewise.
3232 * go-lang.c (go_language_data): Likewise.
3233 * language.c (unknown_language_data): Likewise.
3234 (auto_language_data): Likewise.
3235 * language.h (language_data): Delete la_post_parser field.
3236 (language_defn::post_parser): New member function.
3237 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3238 * objc-lang.c (objc_language_data): Likewise.
3239 * opencl-lang.c (opencl_language_data): Likewise.
3240 * p-lang.c (pascal_language_data): Likewise.
3241 * parse.c (parse_exp_in_context): Update call to post_parser.
3242 (null_post_parser): Delete definition.
3243 * parser-defs.h (null_post_parser): Delete declaration.
3244 * rust-lang.c (rust_language_data): Delete la_post_parser
3245 initializer.
3246
3247 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * ada-lang.c (parse): Rename to ada_language::parser.
3250 (ada_language_data): Delete la_parser initializer.
3251 (ada_language::parser): New member function, implementation from
3252 parse.
3253 * c-lang.c (c_language_data): Delete la_parser initializer.
3254 (cplus_language_data): Likewise.
3255 (asm_language_data): Likewise.
3256 (minimal_language_data): Likewise.
3257 * d-lang.c (d_language_data): Likewise.
3258 (d_language::parser): New member function.
3259 * f-lang.c (f_language_data): Delete la_parser initializer.
3260 (f_language::parser): New member function.
3261 * go-lang.c (go_language_data): Delete la_parser initializer.
3262 (go_language::parser): New member function.
3263 * language.c (unk_lang_parser): Delete.
3264 (language_defn::parser): Define new member function.
3265 (unknown_language_data): Delete la_parser initializer.
3266 (unknown_language::parser): New member function.
3267 (auto_language_data): Delete la_parser initializer.
3268 (auto_language::parser): New member function.
3269 * language.h (language_data): Delete la_parser field.
3270 (language_defn::parser): Declare new member function.
3271 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3272 (m2_language::parser): New member function.
3273 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3274 * opencl-lang.c (opencl_language_data): Likewise.
3275 * p-lang.c (pascal_language_data): Likewise.
3276 (pascal_language::parser): New member function.
3277 * parse.c (parse_exp_in_context): Update call to parser.
3278 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3279 (rust_language::parser): New member function.
3280
3281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * top.c (print_gdb_configuration): Print --with-python-libdir
3284 configuration value.
3285
3286 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3287
3288 * NEWS: Mention change to the alias command.
3289
3290 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3291
3292 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3293 (alias_command_completer)
3294 (make_alias_options_def_group): New functions.
3295 (alias_opts, alias_option_defs): New struct and array.
3296 (alias_usage_error): Update usage.
3297 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3298 Use option framework.
3299 (_initialize_cli_cmds): Update alias command help.
3300 Update aliases command help.
3301 (show_user):
3302 Add NULL for new default_args lookup_cmd argument.
3303 (valid_command_p): Rename to validate_aliased_command.
3304 Add NULL for new default_args lookup_cmd argument. Verify that the
3305 aliased_command has no default args.
3306 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3307 (lookup_cmd_1, lookup_cmd): New argument default_args.
3308 (add_alias_cmd):
3309 Add NULL for new default_args lookup_cmd argument.
3310 (print_help_for_command): Show default args under the layout
3311 alias some_alias = some_aliased_cmd some_alias_default_arg.
3312 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3313 xfree default_args in destructor.
3314 * cli/cli-script.c (process_next_line, do_define_command):
3315 Add NULL for new default_args lookup_cmd argument.
3316 * command.h: Declare new default_args argument in lookup_cmd
3317 and lookup_cmd_1.
3318 * completer.c (complete_line_internal_1):
3319 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3320 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3321 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3322 Likewise.
3323 * infcmd.c (_initialize_infcmd): Likewise.
3324 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3325 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3326 * python/py-param.c (add_setshow_generic): Likewise.
3327 * remote.c (_initialize_remote): Likewise.
3328 * top.c (execute_command): Prepend default_args if command has some.
3329 (set_verbose):
3330 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3331 * tracepoint.c (validate_actionline, encode_actions_1):
3332 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3333
3334 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335
3336 * jit.c (jit_read_descriptor): Use bool as the return type.
3337 (jit_breakpoint_re_set_internal): Use bool as the return type.
3338 Invert the return value logic; return true if the jit breakpoint
3339 has been successfully initialized.
3340 (jit_inferior_init): Update the call to
3341 jit_breakpoint_re_set_internal.
3342
3343 2020-06-22 Pedro Alves <palves@redhat.com>
3344
3345 PR gdb/25939
3346 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3347 Use the current inferior instead. Don't return
3348 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3349 wait again.
3350 * sol-thread.c (sol_thread_target::wait): Don't reference
3351 inferior_ptid.
3352 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3353 (sol_update_thread_list_callback): Use the current inferior's pid
3354 instead of inferior_ptid.
3355
3356 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3357
3358 * procfs.c: Cleanup many comments.
3359
3360 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3361 (AFTER_WATCHFLAG): Replace by value.
3362
3363 (MAIN_PROC_NAME_FORMAT): Inline ...
3364 (create_procinfo): ... here.
3365
3366 (procfs_debug_inferior): Remove SYS_exec handling.
3367 (syscall_is_exec): Likewise.
3368 (procfs_set_exec_trap): Likewise.
3369
3370 (syscall_is_lwp_exit): Inline in callers.
3371 (syscall_is_exit): Likewise.
3372 (syscall_is_exec): Likewise.
3373 (syscall_is_lwp_create): Likewise.
3374
3375 (invalidate_cache): Remove #if 0 code.
3376
3377 (make_signal_thread_runnable): Remove.
3378 (procfs_target::resume): Remove #if 0 code.
3379
3380 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3381
3382 PR gdb/25939
3383 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3384 call ...
3385 (procfs_target::create_inferior): ... here.
3386
3387 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3388
3389 * exec.c (validate_exec_file): Ensure the build-id is up to
3390 date by calling reopen_exec_file (that checks file timestamp
3391 to decide to re-read the file).
3392
3393 2020-06-18 Pedro Alves <palves@redhat.com>
3394
3395 PR gdb/25412
3396 * gdbthread.h (delete_thread, delete_thread_silent)
3397 (find_thread_ptid): Update comments.
3398 * thread.c (current_thread_): New global.
3399 (is_current_thread): Move higher, and reimplement.
3400 (inferior_thread): Reimplement.
3401 (set_thread_exited): Use bool. Add assertions.
3402 (add_thread_silent): Simplify thread-reuse handling by always
3403 calling delete_thread.
3404 (delete_thread): Remove intro comment.
3405 (find_thread_ptid): Skip exited threads.
3406 (switch_to_thread_no_regs): Write to current_thread_.
3407 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3408 INFERIOR_PTID. Clear current_thread_.
3409
3410 2020-06-18 Pedro Alves <palves@redhat.com>
3411
3412 * aix-thread.c (pd_update): Use switch_to_thread.
3413
3414 2020-06-18 Pedro Alves <palves@redhat.com>
3415
3416 * ravenscar-thread.c (ravenscar_thread_target): Update.
3417 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3418 (ravenscar_thread_target::add_active_thread): ... this. Don't
3419 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3420 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3421
3422 2020-06-18 Pedro Alves <palves@redhat.com>
3423
3424 * nat/windows-nat.c (current_windows_thread): Remove.
3425 * nat/windows-nat.h (current_windows_thread): Remove.
3426 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3427 Adjust.
3428 (display_selectors): Adjust to fetch the current
3429 windows_thread_info based on inferior_ptid.
3430 (fake_create_process): No longer write to current_windows_thread.
3431 (windows_nat_target::get_windows_debug_event):
3432 Don't set inferior_ptid or current_windows_thread.
3433 (windows_nat_target::wait): Adjust to not rely on
3434 current_windows_thread.
3435 (do_initial_windows_stuff): Now a method of windows_nat_target.
3436 Switch to the last_ptid thread.
3437 (windows_nat_target::attach): Adjust.
3438 (windows_nat_target::detach): Use switch_to_no_thread instead of
3439 writing to inferior_ptid directly.
3440 (windows_nat_target::create_inferior): Adjust.
3441
3442 2020-06-18 Pedro Alves <palves@redhat.com>
3443
3444 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3445
3446 2020-06-18 Pedro Alves <palves@redhat.com>
3447
3448 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3449 after creating it, instead of writing to inferior_ptid. Don't
3450 write to inferior_ptid.
3451
3452 2020-06-18 Pedro Alves <palves@redhat.com>
3453
3454 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3455
3456 2020-06-18 Pedro Alves <palves@redhat.com>
3457
3458 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3459 it, instead of writing to inferior_ptid.
3460
3461 2020-06-18 Pedro Alves <palves@redhat.com>
3462
3463 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3464 to inferior_ptid.
3465
3466 2020-06-18 Pedro Alves <palves@redhat.com>
3467
3468 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3469 instead of writing to inferior_ptid directly.
3470
3471 2020-06-18 Pedro Alves <palves@redhat.com>
3472
3473 * corelow.c (core_target::close): Use switch_to_no_thread instead
3474 of writing to inferior_ptid directly.
3475 (add_to_thread_list, core_target_open): Use switch_to_thread
3476 instead of writing to inferior_ptid directly.
3477
3478 2020-06-18 Pedro Alves <palves@redhat.com>
3479
3480 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3481 inferior_ptid.
3482 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3483 inferior_ptid.
3484 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3485 inferior_ptid directly.
3486 (darwin_nat_target::init_thread_list): Switch to thread, instead
3487 of writing to inferior_ptid.
3488 (darwin_nat_target::attach): Don't write to inferior_ptid.
3489 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3490
3491 2020-06-18 Pedro Alves <palves@redhat.com>
3492
3493 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3494 thread.
3495 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3496 Instead use switch_to_thread.
3497 (gnu_nat_target::detach): Use switch_to_no_thread
3498 instead of writing to inferior_ptid directly. Used passed-in
3499 inferior instead of looking up the inferior by pid.
3500
3501 2020-06-18 Pedro Alves <palves@redhat.com>
3502
3503 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3504 inferior_ptid.
3505
3506 2020-06-18 Pedro Alves <palves@redhat.com>
3507
3508 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3509 inferior_ptid.
3510 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3511 thread.
3512 (nto_procfs_target::detach): Avoid referencing
3513 inferior_ptid. Use switch_to_no_thread instead of writing to
3514 inferior_ptid directly.
3515 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3516 instead of writing to inferior_ptid directly.
3517 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3518 to thread.
3519
3520 2020-06-18 Pedro Alves <palves@redhat.com>
3521
3522 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3523 after creating it, instead of writing to inferior_ptid.
3524 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3525 to inferior_ptid directly.
3526 (gdbsim_target::wait): Don't write to inferior_ptid.
3527
3528 2020-06-18 Pedro Alves <palves@redhat.com>
3529
3530 * remote.c (remote_target::remote_notice_new_inferior): Use
3531 switch_to_thread instead of writing to inferior_ptid directly.
3532 (remote_target::add_current_inferior_and_thread): Use
3533 switch_to_no_thread instead of writing to inferior_ptid directly.
3534 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3535 and switch_to_thread instead of using set_current_inferior or
3536 writing to inferior_ptid directly.
3537
3538 2020-06-18 Pedro Alves <palves@redhat.com>
3539
3540 * tracectf.c (ctf_target_open): Switch to added thread instead of
3541 writing to inferior_ptid directly.
3542 (ctf_target::close): Use switch_to_no_thread instead of writing to
3543 inferior_ptid directly.
3544
3545 2020-06-18 Pedro Alves <palves@redhat.com>
3546
3547 * tracefile-tfile.c (tfile_target_open): Don't write to
3548 inferior_ptid directly, instead switch to added thread.
3549 (tfile_target::close): Use switch_to_no_thread instead of writing
3550 to inferior_ptid directly.
3551
3552 2020-06-18 Pedro Alves <palves@redhat.com>
3553
3554 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3555 (procfs_target::detach): Use switch_to_no_thread
3556 instead of writing to inferior_ptid directly.
3557 (do_attach): Change return type to void. Switch to the added
3558 thread.
3559 (procfs_target::create_inferior): Switch to the added thread.
3560 (procfs_do_thread_registers): Don't write to inferior_ptid.
3561
3562 2020-06-18 Pedro Alves <palves@redhat.com>
3563
3564 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3565 of writing to inferior_ptid.
3566 (scoped_restore_exited_inferior): Delete.
3567 (handle_vfork_child_exec_or_exit): Simplify using
3568 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3569 instead of writing to inferior_ptid.
3570 (THREAD_STOPPED_BY): Delete.
3571 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3572 (thread_stopped_by_hw_breakpoint): Delete.
3573 (save_waitstatus): Use
3574 scoped_restore_current_thread+switch_to_thread, and call
3575 target_stopped_by_watchpoint instead of
3576 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3577 instead of thread_stopped_by_sw_breakpoint, and
3578 target_stopped_by_hw_breakpoint instead of
3579 thread_stopped_by_hw_breakpoint.
3580 (handle_inferior_event)
3581 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3582 inferior_ptid directly, nor
3583 set_current_inferior/set_current_program_space. Use
3584 switch_to_thread / switch_to_inferior_no_thread instead.
3585
3586 2020-06-18 Pedro Alves <palves@redhat.com>
3587
3588 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3589 instead of writing to inferior_ptid.
3590
3591 2020-06-18 Pedro Alves <palves@redhat.com>
3592
3593 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3594 added thread.
3595 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3596 to the added thread.
3597 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3598 instead of writing to inferior_ptid.
3599
3600 2020-06-18 Pedro Alves <palves@redhat.com>
3601
3602 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3603 (register_to_value_test): Mock a program_space too. Heap-allocate
3604 the address space. Don't write to inferior_ptid. Use
3605 switch_to_thread instead.
3606
3607 2020-06-18 Pedro Alves <palves@redhat.com>
3608
3609 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3610 Delete.
3611 (find_signalled_thread()): New, factored out from
3612 linux_make_corefile_notes and adjusted to handle exited threads.
3613 (linux_make_corefile_notes): Adjust to use the new
3614 find_signalled_thread.
3615
3616 2020-06-18 Pedro Alves <palves@redhat.com>
3617
3618 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3619 of saving/restoring inferior_ptid.
3620
3621 2020-06-17 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3624 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3625 declare.
3626 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3627
3628 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3629
3630 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3631 of partial symtabs.
3632
3633 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * regformats/reg-arm.dat: Remove.
3636 * regformats/reg-bfin.dat: Remove.
3637 * regformats/reg-cris.dat: Remove.
3638 * regformats/reg-crisv32.dat: Remove.
3639 * regformats/reg-m32r.dat: Remove.
3640 * regformats/reg-tilegx.dat: Remove.
3641 * regformats/reg-tilegx32.dat: Remove.
3642
3643 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * features/Makefile (WHICH): Remove arm files.
3646 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3647 * regformats/arm/arm-with-neon.dat: Remove.
3648 * regformats/arm/arm-with-vfpv2.dat: Remove.
3649 * regformats/arm/arm-with-vfpv3.dat: Remove.
3650
3651 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * features/Makefile (XMLTOC): Remove rx.xml.
3654
3655 2020-06-17 Pedro Alves <palves@redhat.com>
3656
3657 * gdbthread.h (thread_control_state) <trap_expected> Update
3658 comments.
3659
3660 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3661
3662 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3663 ada_language::lookup_symbol_nonlocal.
3664 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3665 (ada_language::lookup_symbol_nonlocal): New member function,
3666 implementation from ada_lookup_symbol_nonlocal.
3667 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3668 initializer.
3669 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3670 initializer.
3671 (cplus_language::lookup_symbol_nonlocal): New member function.
3672 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3673 (minimal_language_data) Likewise.
3674 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3675 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3676 initializer.
3677 (d_language::lookup_symbol_nonlocal): New member function.
3678 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3679 initializer.
3680 (f_language::lookup_symbol_nonlocal): New member function.
3681 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3682 initializer.
3683 * language.c (unknown_language_data): Likewise.
3684 (auto_language_data): Likewise.
3685 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3686 field.
3687 (language_defn::lookup_symbol_nonlocal): New member function.
3688 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3689 initializer.
3690 * objc-lang.c (objc_language_data): Likewise.
3691 * opencl-lang.c (opencl_language_data): Likewise.
3692 * p-lang.c (pascal_language_data): Likewise.
3693 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3694 rust_language::lookup_symbol_nonlocal.
3695 (rust_language_data): Delete la_lookup_symbol_nonlocal
3696 initializer.
3697 (rust_language::lookup_symbol_nonlocal): New member function,
3698 implementation from rust_lookup_symbol_nonlocal.
3699 * symtab.c (lookup_symbol_aux): Update call to
3700 lookup_symbol_nonlocal.
3701 (basic_lookup_symbol_nonlocal): Rename to...
3702 (language_defn::lookup_symbol_nonlocal): ...this, and update
3703 header comment. Remove language_defn parameter, and replace with
3704 uses of `this'.
3705 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3706
3707 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3708
3709 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3710 initializer.
3711 (ada_language::value_print_inner): New member function.
3712 * c-lang.c (c_language_data): Delete la_value_print_inner
3713 initializer.
3714 (cplus_language_data): Likewise.
3715 (asm_language_data): Likewise.
3716 (minimal_language_data): Likewise.
3717 * d-lang.c (d_language_data): Likewise.
3718 (d_language::value_print_inner): New member function.
3719 * f-lang.c (f_language_data): Delete la_value_print_inner
3720 initializer.
3721 (f_language::value_print_inner): New member function.
3722 * f-lang.h (f_value_print_innner): Rename to...
3723 (f_value_print_inner): ...this (note spelling of 'inner').
3724 * f-valprint.c (f_value_print_innner): Rename to...
3725 (f_value_print_inner): ...this (note spelling of 'inner').
3726 * go-lang.c (go_language_data): Delete la_value_print_inner
3727 initializer.
3728 (go_language::value_print_inner): New member function.
3729 * language.c (language_defn::value_print_inner): Define new member
3730 function.
3731 (unk_lang_value_print_inner): Delete.
3732 (unknown_language_data): Delete la_value_print_inner initializer.
3733 (unknown_language::value_print_inner): New member function.
3734 (auto_language_data): Delete la_value_print_inner initializer.
3735 (auto_language::value_print_inner): New member function.
3736 * language.h (language_data): Delete la_value_print_inner field.
3737 (language_defn::value_print_inner): Delcare new member function.
3738 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3739 initializer.
3740 (m2_language::value_print_inner): New member function.
3741 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3742 initializer.
3743 * opencl-lang.c (opencl_language_data): Likewise.
3744 * p-lang.c (pascal_language_data): Likewise.
3745 (pascal_language::value_print_inner): New member function.
3746 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3747 initializer.
3748 (rust_language::value_print_inner): New member function.
3749 * valprint.c (do_val_print): Update call to value_print_inner.
3750
3751 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 * ada-lang.c (ada_language_data): Delete la_value_print
3754 initializer.
3755 (ada_language::value_print): New member function.
3756 * c-lang.c (c_language_data): Delete la_value_print initializer.
3757 (cplus_language_data): Likewise.
3758 (asm_language_data): Likewise.
3759 (minimal_language_data): Likewise.
3760 * d-lang.c (d_language_data): Likewise.
3761 * f-lang.c (f_language_data): Likewise.
3762 * go-lang.c (go_language_data): Likewise.
3763 * language.c (unk_lang_value_print): Delete.
3764 (language_defn::value_print): Define new member function.
3765 (unknown_language_data): Delete la_value_print initializer.
3766 (unknown_language::value_print): New member function.
3767 (auto_language_data): Delete la_value_print initializer.
3768 (auto_language::value_print): New member function.
3769 * language.h (language_data): Delete la_value_print field.
3770 (language_defn::value_print): Declare new member function.
3771 (LA_VALUE_PRINT): Update call to value_print.
3772 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3773 * objc-lang.c (objc_language_data): Likewise.
3774 * opencl-lang.c (opencl_language_data): Likewise.
3775 * p-lang.c (pascal_language_data): Likewise.
3776 (pascal_language::value_print): New member function.
3777 * rust-lang.c (rust_language_data): Delete la_value_print
3778 initializer.
3779
3780 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * ada-lang.c (ada_watch_location_expression): Rename to
3783 ada_language::watch_location_expression.
3784 (ada_language_data): Delete la_watch_location_expression
3785 initializer.
3786 (ada_language::watch_location_expression): New member function,
3787 implementation from ada_watch_location_expression.
3788 * breakpoint.c (watch_command_1): Update call to
3789 watch_location_expression.
3790 * c-lang.c (c_watch_location_expression): Rename to
3791 language_defn::watch_location_expression.
3792 (c_language_data): Delete la_watch_location_expression
3793 initializer.
3794 (cplus_language_data): Likewise.
3795 (asm_language_data): Likewise.
3796 (minimal_language_data): Likewise.
3797 * c-lang.h (c_watch_location_expression): Delete declaration.
3798 * d-lang.c (d_language_data): Delete la_watch_location_expression
3799 initializer.
3800 * f-lang.c (f_language_data): Likewise.
3801 * go-lang.c (go_language_data): Likewise.
3802 * language.c (language_defn::watch_location_expression): Member
3803 function implementation from c_watch_location_expression.
3804 (unknown_language_data): Delete la_watch_location_expression
3805 initializer.
3806 (auto_language_data): Likewise.
3807 * language.h (language_data): Delete la_watch_location_expression
3808 field.
3809 (language_defn::watch_location_expression): Declare new member
3810 function.
3811 * m2-lang.c (m2_language_data): Delete
3812 la_watch_location_expression initializer.
3813 * objc-lang.c (objc_language_data): Likewise.
3814 * opencl-lang.c (opencl_language_data): Likewise.
3815 * p-lang.c (pascal_language_data): Likewise.
3816 * rust-lang.c (rust_watch_location_expression): Rename to
3817 rust_language::watch_location_expression.
3818 (rust_language_data): Delete la_watch_location_expression
3819 initializer.
3820 (rust_language::watch_location_expression): New member function,
3821 implementation from rust_watch_location_expression.
3822
3823 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3824
3825 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3826 ada_language::collect_symbol_completion_matches.
3827 (ada_language_data): Delete la_collect_symbol_completion_matches
3828 initializer.
3829 (ada_language::collect_symbol_completion_matches): New member
3830 function, implementation from
3831 ada_collect_symbol_completion_matches.
3832 * c-lang.c (c_language_data): Delete
3833 la_collect_symbol_completion_matches initializer.
3834 (cplus_language_data): Likewise.
3835 (asm_language_data): Likewise.
3836 (minimal_language_data): Likewise.
3837 * d-lang.c (d_language_data): Likewise.
3838 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3839 f_language::collect_symbol_completion_matches.
3840 (f_language_data): Delete la_collect_symbol_completion_matches
3841 initializer.
3842 (f_language::collect_symbol_completion_matches) New member
3843 function, implementation from f_collect_symbol_completion_matches.
3844 * go-lang.c (go_language_data): Delete
3845 la_collect_symbol_completion_matches initializer.
3846 * language.c (unknown_language_data): Likewise.
3847 (auto_language_data): Likewise.
3848 * language.h (language_data): Delete
3849 la_collect_symbol_completion_matches field.
3850 (language_defn::collect_symbol_completion_matches): New member
3851 function.
3852 * m2-lang.c (m2_language_data): Delete
3853 la_collect_symbol_completion_matches initializer.
3854 * objc-lang.c (objc_language_data): Likewise.
3855 * opencl-lang.c (opencl_language_data): Likewise.
3856 * p-lang.c (pascal_language_data): Likewise.
3857 * rust-lang.c (rust_language_data): Likewise.
3858 * symtab.c (default_collect_symbol_completion_matches): Delete.
3859 (collect_symbol_completion_matches): Update call to
3860 collect_symbol_completion_matches.
3861 (collect_symbol_completion_matches_type): Likewise.
3862 * symtab.h (default_collect_symbol_completion_matches): Delete
3863 declaration.
3864
3865 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3866
3867 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3868 (ada_language_data): Delete la_word_break_characters initializer.
3869 (ada_language::word_break_characters): New member function.
3870 * c-lang.c (c_language_data): Delete la_word_break_characters
3871 initializer.
3872 (cplus_language_data): Likewise.
3873 (asm_language_data): Likewise.
3874 (minimal_language_data): Likewise.
3875 * completer.c: Update global comment.
3876 (advance_to_expression_complete_word_point): Update call to
3877 word_break_characters.
3878 (complete_files_symbols): Likewise.
3879 (complete_line_internal_1): Likewise.
3880 (default_completer_handle_brkchars): Likewise.
3881 (skip_quoted_chars): Likewise.
3882 * d-lang.c (d_language_data): Delete la_word_break_characters
3883 initializer.
3884 * f-lang.c (f_word_break_characters): Delete.
3885 (f_language_data): Delete la_word_break_characters initializer.
3886 (f_language::word_break_characters): New member function.
3887 * go-lang.c (go_language_data): Delete la_word_break_characters
3888 initializer.
3889 * language.c (unknown_language_data): Likewise.
3890 (auto_language_data): Likewise.
3891 * language.h (default_word_break_characters): Move declaration to
3892 earlier in the file.
3893 (language_data): Delete la_word_break_characters field.
3894 (language_defn::word_break_characters): New member function.
3895 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3896 initializer.
3897 * objc-lang.c (objc_language_data): Likewise.
3898 * opencl-lang.c (opencl_language_data): Likewise.
3899 * p-lang.c (pascal_language_data): Likewise.
3900 * rust-lang.c (rust_language_data): Likewise.
3901
3902 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3905 (ada_language_data): Delete la_get_symbol_name_matcher
3906 initializer.
3907 (language_defn::get_symbol_name_matcher_inner): New member
3908 function.
3909 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3910 initializer.
3911 (cplus_language_data): Likewise.
3912 (cplus_language::get_symbol_name_matcher_inner): New member
3913 function.
3914 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3915 (minimal_language_data): Likewise.
3916 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3917 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3918 initializer.
3919 * dictionary.c (iter_match_first_hashed): Update call to
3920 get_symbol_name_matcher.
3921 (iter_match_next_hashed): Likewise.
3922 (iter_match_next_linear): Likewise.
3923 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3924 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3925 initializer.
3926 (f_language::get_symbol_name_matcher_inner): New member function.
3927 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3928 initializer.
3929 * language.c (default_symbol_name_matcher): Update header comment,
3930 make static.
3931 (language_defn::get_symbol_name_matcher): New definition.
3932 (language_defn::get_symbol_name_matcher_inner): Likewise.
3933 (get_symbol_name_matcher): Delete.
3934 (unknown_language_data): Delete la_get_symbol_name_matcher
3935 initializer.
3936 (auto_language_data): Likewise.
3937 * language.h (language_data): Delete la_get_symbol_name_matcher
3938 field.
3939 (language_defn::get_symbol_name_matcher): New member function.
3940 (language_defn::get_symbol_name_matcher_inner): Likewise.
3941 (default_symbol_name_matcher): Delete declaration.
3942 * linespec.c (find_methods): Update call to
3943 get_symbol_name_matcher.
3944 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3945 initializer.
3946 * minsyms.c (lookup_minimal_symbol): Update call to
3947 get_symbol_name_matcher.
3948 (iterate_over_minimal_symbols): Likewise.
3949 * objc-lang.c (objc_language_data): Delete
3950 la_get_symbol_name_matcher initializer.
3951 * opencl-lang.c (opencl_language_data): Likewise.
3952 * p-lang.c (pascal_language_data): Likewise.
3953 * psymtab.c (psymbol_name_matches): Update call to
3954 get_symbol_name_matcher.
3955 * rust-lang.c (rust_language_data): Delete
3956 la_get_symbol_name_matcher initializer.
3957 * symtab.c (symbol_matches_search_name): Update call to
3958 get_symbol_name_matcher.
3959 (compare_symbol_name): Likewise.
3960
3961 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3962
3963 * ada-lang.c (ada_language_data): Delete la_compute_program
3964 initializer.
3965 * c-lang.c (c_language_data): Likewise.
3966 (c_language::compute_program): New member function.
3967 (cplus_language_data): Delete la_compute_program initializer.
3968 (cplus_language::compute_program): New member function.
3969 (asm_language_data): Delete la_compute_program initializer.
3970 (minimal_language_data): Likewise.
3971 * c-lang.h (c_compute_program): Update comment.
3972 (cplus_compute_program): Likewise.
3973 * compile/compile-c-support.c (c_compute_program): Likewise.
3974 (cplus_compute_program): Likewise.
3975 * compile/compile.c (compile_to_object): Update call to
3976 la_compute_program.
3977 * d-lang.c (d_language_data): Delete la_compute_program
3978 initializer.
3979 * f-lang.c (f_language_data): Likewise.
3980 * go-lang.c (go_language_data): Likewise.
3981 * language.c (unknown_language_data): Likewise.
3982 (auto_language_data): Likewise.
3983 * language.h (language_data): Delete la_compute_program field.
3984 (language_defn::compute_program): New member function.
3985 * m2-lang.c (m2_language_data): Delete la_compute_program
3986 initializer.
3987 * objc-lang.c (objc_language_data): Likewise.
3988 * opencl-lang.c (opencl_language_data): Likewise.
3989 * p-lang.c (pascal_language_data): Likewise.
3990 * rust-lang.c (rust_language_data): Likewise.
3991
3992 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * ada-lang.c (ada_language_data) Delete
3995 la_class_name_from_physname initializer.
3996 * c-lang.c (c_language_data): Likewise.
3997 (cplus_language_data): Likewise.
3998 (cplus_language::class_name_from_physname): New member function.
3999 (asm_language_data): Delete la_class_name_from_physname
4000 initializer.
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4004 method on language_defn class.
4005 (guess_full_die_structure_name): Likewise.
4006 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4007 initializer.
4008 * go-lang.c (go_language_data): Likewise.
4009 * language.c (language_class_name_from_physname): Delete.
4010 (unk_lang_class_name): Delete.
4011 (unknown_language_data): Delete la_class_name_from_physname
4012 initializer.
4013 (auto_language_data): Likewise.
4014 * language.h (language_data): Delete la_class_name_from_physname
4015 field.
4016 (language_defn::class_name_from_physname): New function.
4017 (language_class_name_from_physname): Delete declaration.
4018 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4019 initializer.
4020 * objc-lang.c (objc_language_data): Likewise.
4021 * opencl-lang.c (opencl_language_data): Likewise.
4022 * p-lang.c (pascal_language_data): Likewise.
4023 * rust-lang.c (rust_language_data): Likewise.
4024
4025 2020-06-16 Tom Tromey <tom@tromey.com>
4026
4027 * tui/tui-data.h (STATUS_NAME): New macro.
4028 * tui/tui-layout.c (tui_remove_some_windows)
4029 (initialize_known_windows, tui_register_window)
4030 (tui_layout_split::remove_windows, initialize_layouts)
4031 (tui_new_layout_command): Don't use hard-coded window names.
4032
4033 2020-06-16 Tom Tromey <tom@tromey.com>
4034
4035 PR tui/25348:
4036 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4037 tui_initialize_readline. Only run once. Call rl_initialize.
4038 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4039 tui_initialize_readline.
4040 * tui/tui-io.c (tui_setup_io): Call
4041 tui_ensure_readline_initialized.
4042 * tui/tui-interp.c (tui_interp::init): Update.
4043
4044 2020-06-16 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4047 Also preserve the status window.
4048
4049 2020-06-16 Tom Tromey <tom@tromey.com>
4050
4051 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4052 where m_window==nullptr.
4053
4054 2020-06-15 Tom Tromey <tromey@adacore.com>
4055
4056 * windows-nat.c (windows_nat::handle_output_debug_string):
4057 Update.
4058 (windows_nat::handle_ms_vc_exception): Update.
4059 * target.h (target_read_string): Change API.
4060 * target.c (target_read_string): Change API.
4061 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4062 Update.
4063 * solib-frv.c (frv_current_sos): Update.
4064 * solib-dsbt.c (dsbt_current_sos): Update.
4065 * solib-darwin.c (darwin_current_sos): Update.
4066 * linux-thread-db.c (inferior_has_bug): Update.
4067 * expprint.c (print_subexp_standard): Update.
4068 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4069 (ada_exception_message_1): Update.
4070
4071 2020-06-15 Tom Tromey <tromey@adacore.com>
4072
4073 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4074
4075 2020-06-15 Tom Tromey <tromey@adacore.com>
4076
4077 * valprint.c (read_string): Update comment.
4078 * target.c (MIN): Remove.
4079 (target_read_string): Rewrite.
4080
4081 2020-06-15 Tom Tromey <tromey@adacore.com>
4082
4083 * corefile.c (read_memory_string): Remove.
4084 * ada-valprint.c (ada_value_print_ptr): Update.
4085 * ada-lang.h (ada_tag_name): Change return type.
4086 * ada-lang.c (type_from_tag): Update.
4087 (ada_tag_name_from_tsd): Change return type. Use
4088 target_read_string.
4089 (ada_tag_name): Likewise.
4090 * gdbcore.h (read_memory_string): Don't declare.
4091
4092 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4093
4094 * symtab.c (rbreak_command): Ignore Windows drive colon.
4095
4096 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * NEWS: Mention removed GDBserver host support.
4099
4100 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4101
4102 * features/riscv/rebuild-csr-xml.sh: Updated.
4103
4104 2020-06-11 Tom Tromey <tom@tromey.com>
4105
4106 PR gdb/18318:
4107 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4108
4109 2020-06-09 Jonny Grant <jg@jguk.org>
4110 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4111
4112 * main.c (captured_main_1): Don't print new line after help.
4113 (print_gdb_help): add mailing list and IRC channel information
4114 to --help. Add new lines between items in the footer. Remove
4115 quotes around bug url.
4116
4117 2020-06-11 Keith Seitz <keiths@redhat.com>
4118
4119 PR gdb/21356
4120 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4121 Resolve typedefs for type length calculations.
4122
4123 2020-06-10 Tom de Vries <tdevries@suse.de>
4124
4125 PR ada/24713
4126 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4127 (write_psymbols): Enable .gdb_index for ada.
4128 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4129 ada.
4130
4131 2020-06-10 Tom de Vries <tdevries@suse.de>
4132
4133 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4134 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4135 namei" instead of "const char *name" argument.
4136 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4137 dw2_symtab_iter_init.
4138
4139 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4140
4141 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4142 to use type::field and field::type instead.
4143
4144 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4145
4146 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4147 to use field::type instead.
4148
4149 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * gdbtypes.h (struct field) <type, set_type>: New methods.
4152 Rename `type` field to...
4153 <m_type>: ... this. Change references throughout to use type or
4154 set_type methods.
4155 (FIELD_TYPE): Use field::type. Change call sites that modify
4156 the field's type to use field::set_type instead.
4157
4158 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4161 to use type::index_type instead.
4162
4163 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4166 methods.
4167 (TYPE_INDEX_TYPE): Use type::index_type.
4168 * gdbtypes.c (create_array_type_with_stride): Likewise.
4169
4170 2020-06-07 Tom Tromey <tom@tromey.com>
4171
4172 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4173 parameter.
4174 (generic_value_print): Update.
4175
4176 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4177
4178 Revert commit 982a38f60b0.
4179 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4180
4181 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4182
4183 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4184 avoid use after free.
4185
4186 2020-06-05 Tom de Vries <tdevries@suse.de>
4187
4188 * NEWS: Fix typos.
4189
4190 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4193 the per_bfd object.
4194 (dwarf2_read_debug_names): Likewise.
4195 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4196 object when re-using a per_bfd object with an index.
4197
4198 2020-06-03 Tom de Vries <tdevries@suse.de>
4199
4200 PR symtab/26046
4201 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4202 children for C++.
4203 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4204 DW_TAG_subprogram.
4205
4206 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * ada-lang.c (ada_language_data): Delete skip_trampoline
4209 initializer.
4210 * c-lang.c (c_language_data): Likewise.
4211 (cplus_language_data): Likewise.
4212 (cplus_language::skip_trampoline): New member function.
4213 (asm_language_data): Delete skip_trampoline initializer.
4214 (minimal_language_data): Likewise.
4215 * d-lang.c (d_language_data): Likewise.
4216 * f-lang.c (f_language_data): Likewise.
4217 * go-lang.c (go_language_data): Likewise.
4218 * language.c (unk_lang_trampoline): Delete function.
4219 (skip_language_trampoline): Update.
4220 (unknown_language_data): Delete skip_trampoline initializer.
4221 (auto_language_data): Likewise.
4222 * language.h (language_data): Delete skip_trampoline field.
4223 (language_defn::skip_trampoline): New function.
4224 * m2-lang.c (m2_language_data): Delete skip_trampoline
4225 initializer.
4226 * objc-lang.c (objc_skip_trampoline): Delete function, move
4227 implementation to objc_language::skip_trampoline.
4228 (objc_language_data): Delete skip_trampoline initializer.
4229 (objc_language::skip_trampoline): New member function with
4230 implementation from objc_skip_trampoline.
4231 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4232 initializer.
4233 * p-lang.c (pascal_language_data): Likewise.
4234 * rust-lang.c (rust_language_data): Likewise.
4235
4236 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4237
4238 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4239 (ada_language::demangle): New member function.
4240 * c-lang.c (c_language_data): Delete la_demangle initializer.
4241 (cplus_language_data): Delete la_demangle initializer.
4242 (cplus_language::demangle): New member function.
4243 (asm_language_data): Delete la_demangle initializer.
4244 (minimal_language_data): Delete la_demangle initializer.
4245 * d-lang.c (d_language_data): Delete la_demangle initializer.
4246 (d_language::demangle): New member function.
4247 * f-lang.c (f_language_data): Delete la_demangle initializer.
4248 (f_language::demangle): New member function.
4249 * go-lang.c (go_language_data): Delete la_demangle initializer.
4250 (go_language::demangle): New member function.
4251 * language.c (language_demangle): Update.
4252 (unk_lang_demangle): Delete.
4253 (unknown_language_data): Delete la_demangle initializer.
4254 (unknown_language::demangle): New member function.
4255 (auto_language_data): Delete la_demangle initializer.
4256 (auto_language::demangle): New member function.
4257 * language.h (language_data): Delete la_demangle field.
4258 (language_defn::demangle): New function.
4259 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4260 * objc-lang.c (objc_language_data): Delete la_demangle
4261 initializer.
4262 (objc_language::demangle): New member function.
4263 * opencl-lang.c (opencl_language_data): Delete la_demangle
4264 initializer.
4265 * p-lang.c (pascal_language_data): Likewise.
4266 * rust-lang.c (rust_language_data): Likewise.
4267 (rust_language::demangle): New member function.
4268
4269 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * ada-lang.c (ada_language_data): Delete la_print_type
4272 initializer.
4273 (ada_language::print_type): New member function.
4274 * c-lang.c (c_language_data): Delete la_print_type initializer.
4275 (c_language::print_type): New member function.
4276 (cplus_language_data): Delete la_print_type initializer.
4277 (cplus_language::print_type): New member function.
4278 (asm_language_data): Delete la_print_type initializer.
4279 (asm_language::print_type): New member function.
4280 (minimal_language_data): Delete la_print_type initializer.
4281 (minimal_language::print_type): New member function.
4282 * d-lang.c (d_language_data): Delete la_print_type initializer.
4283 (d_language::print_type): New member function.
4284 * f-lang.c (f_language_data): Delete la_print_type initializer.
4285 (f_language::print_type): New member function.
4286 * go-lang.c (go_language_data): Delete la_print_type initializer.
4287 (go_language::print_type): New member function.
4288 * language.c (unk_lang_print_type): Delete.
4289 (unknown_language_data): Delete la_print_type initializer.
4290 (unknown_language::print_type): New member function.
4291 (auto_language_data): Delete la_print_type initializer.
4292 (auto_language::print_type): New member function.
4293 * language.h (language_data): Delete la_print_type field.
4294 (language_defn::print_type): New function.
4295 (LA_PRINT_TYPE): Update.
4296 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4297 (m2_language::print_type): New member function.
4298 * objc-lang.c (objc_language_data): Delete la_print_type
4299 initializer.
4300 (objc_language::print_type): New member function.
4301 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4302 to opencl_language::print_type.
4303 (opencl_language_data): Delete la_print_type initializer.
4304 (opencl_language::print_type): New member function, implementation
4305 from opencl_print_type.
4306 * p-lang.c (pascal_language_data): Delete la_print_type
4307 initializer.
4308 (pascal_language::print_type): New member function.
4309 * rust-lang.c (rust_print_type): Delete, implementation moved to
4310 rust_language::print_type.
4311 (rust_language_data): Delete la_print_type initializer.
4312 (rust_language::print_type): New member function, implementation
4313 from rust_print_type.
4314
4315 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4316
4317 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4318 implementation moves to...
4319 (ada_language::sniff_from_mangled_name): ...here. Update return
4320 type.
4321 (ada_language_data): Delete la_sniff_from_mangled_name
4322 initializer.
4323 * c-lang.c (c_language_data): Likewise.
4324 (cplus_language_data): Likewise.
4325 (cplus_language::sniff_from_mangled_name): New member function,
4326 implementation taken from gdb_sniff_from_mangled_name.
4327 (asm_language_data): Delete la_sniff_from_mangled_name
4328 initializer.
4329 (minimal_language_data): Likewise.
4330 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4331 implementation moves to cplus_language::sniff_from_mangled_name.
4332 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4333 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4334 moves to...
4335 (d_language::sniff_from_mangled_name): ...here.
4336 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4337 * f-lang.c (f_language_data): Likewise.
4338 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4339 moves to...
4340 (go_language::sniff_from_mangled_name): ...here.
4341 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4342 * language.c (language_sniff_from_mangled_name): Delete.
4343 (unknown_language_data): Delete la_sniff_from_mangled_name
4344 initializer.
4345 (auto_language_data): Likewise.
4346 * language.h (language_data): Delete la_sniff_from_mangled_name
4347 field.
4348 (language_defn::sniff_from_mangled_name): New function.
4349 (language_sniff_from_mangled_name): Delete declaration.
4350 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4351 field.
4352 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4353 implementation moves to...
4354 (objc_language::sniff_from_mangled_name): ...here.
4355 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4356 * opencl-lang.c (opencl_language_data): Likewise.
4357 * p-lang.c (pascal_language_data): Likewise.
4358 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4359 implementation moves to...
4360 (rust_language::sniff_from_mangled_name): ...here.
4361 (rust_language_data): Delete la_sniff_from_mangled_name
4362 initializer.
4363 * symtab.c (symbol_find_demangled_name): Call
4364 sniff_from_mangled_name member function.
4365
4366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4369 initializer.
4370 * c-lang.c (c_language_data): Likewise.
4371 (cplus_language_data): Likewise.
4372 (cplus_language::search_name_hash): New member function.
4373 (asm_language_data): Delete la_search_name_hash initializer.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 * dictionary.c (default_search_name_hash): Rename to...
4377 (language_defn::search_name_hash): ...this.
4378 * f-lang.c (f_language_data): Likewise.
4379 (f_language::search_name_hash): New member function.
4380 * go-lang.c (go_language_data): Delete la_search_name_hash
4381 initializer.
4382 * language.c (unknown_language_data): Likewise.
4383 (auto_language_data): Likewise.
4384 * language.h (struct language_data): Delete la_search_name_hash
4385 field.
4386 (language_defn::search_name_hash): Declare new member function.
4387 (default_search_name_hash): Delete declaration.
4388 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4389 initializer.
4390 * objc-lang.c (objc_language_data): Likewise.
4391 * opencl-lang.c (opencl_language_data): Likewise.
4392 * p-lang.c (pascal_language_data): Likewise.
4393 * rust-lang.c (rust_language_data): Likewise.
4394 * symtab.c (search_name_hash): Update call.
4395
4396 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4399 initializer.
4400 * c-lang.c (class compile_instance): Declare.
4401 (c_language_data): Delete la_get_compile_instance initializer.
4402 (c_language::get_compile_instance): New member function.
4403 (cplus_language_data): Delete la_get_compile_instance initializer.
4404 (cplus_language::get_compile_instance): New member function.
4405 (asm_language_data): Delete la_get_compile_instance initializer.
4406 (minimal_language_data): Likewise.
4407 * c-lang.h (c_get_compile_context): Update comment.
4408 (cplus_get_compile_context): Update comment.
4409 * compile/compile.c (compile_to_object): Update calls, don't rely
4410 on function pointer being NULL.
4411 * d-lang.c (d_language_data): Delete la_get_compile_instance
4412 initializer.
4413 * f-lang.c (f_language_data): Likewise.
4414 * go-lang.c (go_language_data): Likewise.
4415 * language.c (unknown_language_data): Likewise.
4416 (auto_language_data): Likewise.
4417 * language.h (language_data): Delete la_get_compile_instance field.
4418 (language_defn::get_compile_instance): New member function.
4419 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4420 initializer.
4421 * objc-lang.c (objc_language_data): Likewise.
4422 * opencl-lang.c (opencl_language_data): Likewise.
4423 * p-lang.c (pascal_language_data): Likewise.
4424 * rust-lang.c (rust_language_data): Likewise.
4425
4426 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4427
4428 * ada-lang.c (ada_add_all_symbols): Update comment.
4429 (ada_iterate_over_symbols): Delete, move implementation to...
4430 (ada_language::iterate_over_symbols): ...here, a new member
4431 function, rewrite to use range based for loop.
4432 (ada_language_data): Delete la_iterate_over_symbols initializer.
4433 * c-lang.c (c_language_data): Likewise.
4434 (cplus_language_data): Likewise.
4435 (asm_language_data): Likewise.
4436 (minimal_language_data): Likewise.
4437 * d-lang.c (d_language_data): Likewise.
4438 * f-lang.c (f_language_data): Likewise.
4439 * go-lang.c (go_language_data): Likewise.
4440 * language.c (unknown_language_data): Likewise.
4441 (auto_language_data): Likewise.
4442 * language.h (language_data): Delete la_iterate_over_symbols field.
4443 (language_defn::iterate_over_symbols): New member function.
4444 (LA_ITERATE_OVER_SYMBOLS): Update.
4445 * linespec.c (iterate_over_all_matching_symtabs): Update.
4446 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4447 initializer.
4448 * objc-lang.c (objc_language_data): Likewise.
4449 * opencl-lang.c (opencl_language_data): Likewise.
4450 * p-lang.c (pascal_language_data): Likewise.
4451 * rust-lang.c (rust_language_data): Likewise.
4452
4453 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * ada-lang.c (ada_language_data): Delete
4456 la_lookup_transparent_type initializer.
4457 * c-lang.c (c_language_data): Likewise.
4458 (cplus_language_data): Likewise.
4459 (cplus_language::lookup_transparent_type): New member function.
4460 (asm_language_data): Delete la_lookup_transparent_type
4461 initializer.
4462 (minimal_language_data): Likewise.
4463 * d-lang.c (d_language_data): Likewise.
4464 * f-lang.c (f_language_data): Likewise.
4465 * go-lang.c (go_language_data): Likewise.
4466 * language.c (unknown_language_data): Likewise.
4467 (auto_language_data): Likewise.
4468 * language.h (struct language_data): Delete
4469 la_lookup_transparent_type field.
4470 (language_defn::lookup_transparent_type): New member function.
4471 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4472 initializer.
4473 * objc-lang.c (objc_language_data): Likewise.
4474 * opencl-lang.c (opencl_language_data): Likewise.
4475 * p-lang.c (pascal_language_data): Likewise.
4476 * rust-lang.c (rust_language_data): Likewise.
4477 * symtab.c (symbol_matches_domain): Update call.
4478
4479 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * ada-lang.c (ada_language_arch_info): Delete function, move
4482 implementation to...
4483 (ada_language::language_arch_info): ...here, a new member
4484 function.
4485 (ada_language_data): Delete la_language_arch_info.
4486 * c-lang.c (c_language_data): Likewise.
4487 (c_language::language_arch_info): New member function.
4488 (cplus_language_arch_info): Delete function, move
4489 implementation to...
4490 (cplus_language::language_arch_info): ...here, a new member
4491 function.
4492 (cplus_language_data): Delete la_language_arch_info.
4493 (asm_language_data): Likewise.
4494 (asm_language::language_arch_info): New member function.
4495 (minimal_language_data): Delete la_language_arch_info.
4496 (minimal_language::language_arch_info): New member function.
4497 * d-lang.c (d_language_arch_info): Delete function, move
4498 implementation to...
4499 (d_language::language_arch_info): ...here, a new member
4500 function.
4501 (d_language_data): Delete la_language_arch_info.
4502 * f-lang.c (f_language_arch_info): Delete function, move
4503 implementation to...
4504 (f_language::language_arch_info): ...here, a new member
4505 function.
4506 (f_language_data): Delete la_language_arch_info.
4507 * go-lang.c (go_language_arch_info): Delete function, move
4508 implementation to...
4509 (go_language::language_arch_info): ...here, a new member
4510 function.
4511 (go_language_data): Delete la_language_arch_info.
4512 * language.c (unknown_language_data): Likewise.
4513 (unknown_language::language_arch_info): New member function.
4514 (auto_language_data): Delete la_language_arch_info.
4515 (auto_language::language_arch_info): New member function.
4516 (language_gdbarch_post_init): Update call to
4517 la_language_arch_info.
4518 * language.h (language_data): Delete la_language_arch_info
4519 function pointer.
4520 (language_defn::language_arch_info): New function.
4521 * m2-lang.c (m2_language_arch_info): Delete function, move
4522 implementation to...
4523 (m2_language::language_arch_info): ...here, a new member
4524 function.
4525 (m2_language_data): Delete la_language_arch_info.
4526 * objc-lang.c (objc_language_arch_info): Delete function, move
4527 implementation to...
4528 (objc_language::language_arch_info): ...here, a new member
4529 function.
4530 (objc_language_data): Delete la_language_arch_info.
4531 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4532 implementation to...
4533 (opencl_language::language_arch_info): ...here, a new member
4534 function.
4535 (opencl_language_data): Delete la_language_arch_info.
4536 * p-lang.c (pascal_language_arch_info): Delete function, move
4537 implementation to...
4538 (pascal_language::language_arch_info): ...here, a new member
4539 function.
4540 (pascal_language_data): Delete la_language_arch_info.
4541 * rust-lang.c (rust_language_arch_info): Delete function, move
4542 implementation to...
4543 (rust_language::language_arch_info): ...here, a new member
4544 function.
4545 (rust_language_data): Delete la_language_arch_info.
4546
4547 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4548
4549 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4550 initializer.
4551 * c-lang.c (c_language_data): Likewise.
4552 (cplus_language_data): Likewise.
4553 (cplus_language::pass_by_reference_info): New method.
4554 (asm_language_data): Delete la_pass_by_reference initializer.
4555 (minimal_language_data): Likewise.
4556 * cp-abi.c (cp_pass_by_reference): Remove use of
4557 default_pass_by_reference.
4558 * d-lang.c (d_language_data): Likewise.
4559 * f-lang.c (f_language_data): Likewise.
4560 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4561 default_pass_by_reference.
4562 * go-lang.c (go_language_data): Likewise.
4563 * language.c (language_pass_by_reference): Update.
4564 (default_pass_by_reference): Delete.
4565 (unknown_language_data): Delete la_pass_by_reference
4566 initializer.
4567 (auto_language_data): Likewise.
4568 * language.h (struct language_data): Delete la_pass_by_reference
4569 field.
4570 (language_defn::pass_by_reference_info): New member function.
4571 (default_pass_by_reference): Delete declaration.
4572 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4573 initializer.
4574 * objc-lang.c (objc_language_data): Likewise.
4575 * opencl-lang.c (opencl_language_data): Likewise.
4576 * p-lang.c (pascal_language_data): Likewise.
4577 * rust-lang.c (rust_language_data): Likewise.
4578
4579 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * ada-lang.c (ada_read_var_value): Delete function, move
4582 implementation to...
4583 (ada_language::read_var_value): ...here.
4584 (ada_language_data): Delete la_read_var_value initializer.
4585 * c-lang.c (c_language_data): Likewise.
4586 (cplus_language_data): Likewise.
4587 (minimal_language_data): Likewise.
4588 * d-lang.c (d_language_data): Likewise.
4589 * f-lang.c (f_language_data): Likewise.
4590 * findvar.c (default_read_var_value): Rename to...
4591 (language_defn::read_var_value): ...this.
4592 * findvar.c (read_var_value): Update header comment, and change to
4593 call member function instead of function pointer.
4594 * go-lang.c (go_language_data): Likewise.
4595 * language.c (unknown_language_data): Delete la_read_var_value
4596 initializer.
4597 (auto_language_data): Likewise.
4598 * language.h (struct language_data): Delete la_read_var_value
4599 field.
4600 (language_defn::read_var_value): New member function.
4601 (default_read_var_value): Delete declaration.
4602 * m2-lang.c (m2_language_data): Delete la_read_var_value
4603 initializer.
4604 * objc-lang.c (objc_language_data): Likewise.
4605 * opencl-lang.c (opencl_language_data): Likewise.
4606 * p-lang.c (pascal_language_data): Likewise.
4607 * rust-lang.c (rust_language_data): Likewise.
4608 * value.h (default_read_var_value): Delete declaration.
4609
4610 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4611
4612 * ada-lang.c (ada_print_array_index): Delete function, move
4613 implementation to...
4614 (ada_language::print_array_index): ...here.
4615 (ada_language_data): Delete la_print_array_index initializer.
4616 * c-lang.c (c_language_data): Likewise.
4617 (cplus_language_data): Likewise.
4618 (minimal_language_data): Likewise.
4619 * d-lang.c (d_language_data): Likewise.
4620 * f-lang.c (f_language_data): Likewise.
4621 * go-lang.c (go_language_data): Likewise.
4622 * language.c (default_print_array_index): Delete function, move
4623 implementation to...
4624 (language_defn::print_array_index): ...here.
4625 (unknown_language_data): Delete la_print_array_index initializer.
4626 (auto_language_data): Likewise.
4627 * language.h (struct language_data): Delete la_print_array_index
4628 field.
4629 (language_defn::print_array_index): New member function.
4630 (LA_PRINT_ARRAY_INDEX): Update.
4631 (default_print_array_index): Delete declaration.
4632 * m2-lang.c (m2_language_data): Delete la_print_array_index
4633 initializer.
4634 * objc-lang.c (objc_language_data): Likewise.
4635 * opencl-lang.c (opencl_language_data): Likewise.
4636 * p-lang.c (pascal_language_data): Likewise.
4637 * rust-lang.c (rust_language_data): Likewise.
4638
4639 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4640
4641 * gdb/ada-lang.c (ada_language_defn): Convert to...
4642 (ada_language_data): ...this.
4643 (class ada_language): New class.
4644 (ada_language_defn): New static global.
4645 * gdb/c-lang.c (c_language_defn): Convert to...
4646 (c_language_data): ...this.
4647 (class c_language): New class.
4648 (c_language_defn): New static global.
4649 (cplus_language_defn): Convert to...
4650 (cplus_language_data): ...this.
4651 (class cplus_language): New class.
4652 (cplus_language_defn): New static global.
4653 (asm_language_defn): Convert to...
4654 (asm_language_data): ...this.
4655 (class asm_language): New class.
4656 (asm_language_defn): New static global.
4657 (minimal_language_defn): Convert to...
4658 (minimal_language_data): ...this.
4659 (class minimal_language): New class.
4660 (minimal_language_defn): New static global.
4661 * gdb/d-lang.c (d_language_defn): Convert to...
4662 (d_language_data): ...this.
4663 (class d_language): New class.
4664 (d_language_defn): New static global.
4665 * gdb/f-lang.c (f_language_defn): Convert to...
4666 (f_language_data): ...this.
4667 (class f_language): New class.
4668 (f_language_defn): New static global.
4669 * gdb/go-lang.c (go_language_defn): Convert to...
4670 (go_language_data): ...this.
4671 (class go_language): New class.
4672 (go_language_defn): New static global.
4673 * gdb/language.c (unknown_language_defn): Remove declaration.
4674 (current_language): Initialize to nullptr, real initialization is
4675 moved to _initialize_language.
4676 (languages): Delete global.
4677 (language_defn::languages): Define.
4678 (set_language_command): Use language_defn::languages.
4679 (set_language): Likewise.
4680 (range_error): Likewise.
4681 (language_enum): Likewise.
4682 (language_def): Likewise.
4683 (add_set_language_command): Use language_def::languages for the
4684 language list, and language_def to lookup language pointers.
4685 (skip_language_trampoline): Use language_defn::languages.
4686 (unknown_language_defn): Convert to...
4687 (unknown_language_data): ...this.
4688 (class unknown_language): New class.
4689 (unknown_language_defn): New static global.
4690 (auto_language_defn): Convert to...
4691 (auto_language_data): ...this.
4692 (class auto_language): New class.
4693 (auto_language_defn): New static global.
4694 (language_gdbarch_post_init): Use language_defn::languages.
4695 (_initialize_language): Initialize current_language.
4696 * gdb/language.h (struct language_defn): Rename to...
4697 (struct language_data): ...this.
4698 (struct language_defn): New.
4699 (auto_language_defn): Delete.
4700 (unknown_language_defn): Delete.
4701 (minimal_language_defn): Delete.
4702 (ada_language_defn): Delete.
4703 (asm_language_defn): Delete.
4704 (c_language_defn): Delete.
4705 (cplus_language_defn): Delete.
4706 (d_language_defn): Delete.
4707 (f_language_defn): Delete.
4708 (go_language_defn): Delete.
4709 (m2_language_defn): Delete.
4710 (objc_language_defn): Delete.
4711 (opencl_language_defn): Delete.
4712 (pascal_language_defn): Delete.
4713 (rust_language_defn): Delete.
4714 * gdb/m2-lang.c (m2_language_defn): Convert to...
4715 (m2_language_data): ...this.
4716 (class m2_language): New class.
4717 (m2_language_defn): New static global.
4718 * gdb/objc-lang.c (objc_language_defn): Convert to...
4719 (objc_language_data): ...this.
4720 (class objc_language): New class.
4721 (objc_language_defn): New static global.
4722 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4723 (opencl_language_data): ...this.
4724 (class opencl_language): New class.
4725 (opencl_language_defn): New static global.
4726 * gdb/p-lang.c (pascal_language_defn): Convert to...
4727 (pascal_language_data): ...this.
4728 (class pascal_language): New class.
4729 (pascal_language_defn): New static global.
4730 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4731 language pointer, update comment format.
4732 * gdb/rust-lang.c (rust_language_defn): Convert to...
4733 (rust_language_data): ...this.
4734 (class rust_language): New class.
4735 (rust_language_defn): New static global.
4736
4737 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4738
4739 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4740 member variable.
4741 <m_stmt_at_address>: New member variable.
4742 (lnp_state_machine::record_line): Don't record some lines, update
4743 tracking of is_stmt at the same address.
4744 (lnp_state_machine::lnp_state_machine): Initialise new member
4745 variables.
4746
4747 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4748
4749 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4750 "-include gnu-nat-mig.h".
4751 * gnu-nat-mig.h: New file.
4752 * gnu-nat.c: Include "gnu-nat-mig.h".
4753 (exc_server, msg_reply_server, notify_server,
4754 process_reply_server): Remove declarations.
4755
4756 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4757
4758 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4759 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4760 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4761 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4762 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4763 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4764 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4765 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4766 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4767 to gnu_nat_target class.
4768 * gnu-nat.c: Likewise.
4769 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4770 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4771 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4772 object.
4773 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4774 instead of `gnu_target'.
4775
4776 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4777
4778 * i386-gnu-tdep.c: Include "gdbcore.h"
4779 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4780 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4781 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4782 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4783 i386_gnu_sigcontext_addr): New functions
4784 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4785 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4786 tdep.
4787
4788 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4789
4790 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4791 before fork_inferior call. Avoid calling it if target_is_pushed returns
4792 true.
4793
4794 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4795
4796 * gnu-nat.h (gnu_target): New variable declaration.
4797 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4798 gnu_target.
4799 * gnu-nat.c (gnu_target): New variable.
4800 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4801 add_thread_silent, and add_thread calls.
4802 (gnu_nat_target::create_inferior): Pass gnu_target to
4803 add_thread_silent, thread_change_ptid call.
4804 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4805 call.
4806
4807 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4808
4809 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4810 (gnu_nat_target::find_memory_regions): Remove unused
4811 `old_address' variable.
4812
4813 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4814
4815 * gnu-nat.c: Include "gdbarch.h".
4816
4817 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4818
4819 * reply_mig_hack.awk (Error return): Cast function through
4820 void *, to bypass compiler function call check.
4821
4822 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4823
4824 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4825 $(srcdir)/reply_mig_hack.awk.
4826
4827 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4828
4829 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4830
4831 2020-05-30 Jonny Grant <jg@jguk.org>
4832
4833 * configure.ac (ACX_BUGURL): change bug URL to https.
4834
4835 2020-05-30 Pedro Alves <palves@redhat.com>
4836
4837 * cp-support.c (replace_typedefs_template): New.
4838 (replace_typedefs_qualified_name): Handle
4839 DEMANGLE_COMPONENT_TEMPLATE.
4840
4841 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4844 dwarf2/index-cache.h, dwarf2/index-write.c,
4845 dwarf2/index-write.h, dwarf2/line-header.c,
4846 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4847 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4848 variables and fields from `dwarf2_per_objfile` to just
4849 `per_objfile` throughout.
4850
4851 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4852
4853 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4854 <push_dwarf_reg_entry_value>: Add comment.
4855
4856 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4857 Keith Seitz <keiths@redhat.com>
4858
4859 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4860 instead of PyEval_ReleaseLock.
4861 (class gdbpy_gil): Move to earlier in file.
4862 (finalize_python): Set gdb_python_initialized.
4863 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4864 when not initialized.
4865
4866 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4869 <push_dwarf_reg_entry_value>: Remove assert. Override
4870 per_objfile with caller_per_objfile.
4871
4872 2020-05-28 Tom de Vries <tdevries@suse.de>
4873
4874 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4875 PR gold/15646 workaround to symbol kind "type".
4876
4877 2020-05-27 Tom Tromey <tromey@adacore.com>
4878
4879 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4880
4881 2020-05-27 Tom Tromey <tromey@adacore.com>
4882
4883 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4884 Use htab_find_with_hash.
4885 <add_abbrev>: Remove "abbrev_number" parameter.
4886 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4887 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4888 (hash_abbrev): Add comment.
4889 (abbrev_table::lookup_abbrev): Move to header file.
4890 (abbrev_table::read): Update.
4891
4892 2020-05-27 Tom Tromey <tromey@adacore.com>
4893
4894 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4895 method.
4896 <canonical_name>: New member.
4897 <raw_name>: Rename from "name".
4898 (partial_die_info): Initialize canonical_name.
4899 (scan_partial_symbols): Check raw_name.
4900 (partial_die_parent_scope, partial_die_full_name)
4901 (add_partial_symbol, add_partial_subprogram)
4902 (add_partial_enumeration, load_partial_dies): Use "name" method.
4903 (partial_die_info::name): New method.
4904 (partial_die_info::read, guess_partial_die_structure_name)
4905 (partial_die_info::fixup): Update.
4906
4907 2020-05-27 Tom Tromey <tromey@adacore.com>
4908
4909 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4910 <get_ref_die_offset>: Inline.
4911 <get_ref_die_offset_complaint>: New method.
4912 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4913 (attribute::get_ref_die_offset_complaint): Rename from
4914 get_ref_die_offset. Just issue complaint.
4915
4916 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4917
4918 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4919
4920 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4921
4922 * exec.c (exec_file_attach): Use errno value of first openp failure.
4923
4924 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4925
4926 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4927 Don't close thread handle.
4928
4929 2020-05-27 Tom Tromey <tom@tromey.com>
4930 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4933 shared_ptr.
4934 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4935 member.
4936 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4937 dwarf2_per_bfd_objfile_data_key>: New globals.
4938 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4939 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4940 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4941 shared.
4942 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4943 short-circuit when sharing.
4944 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4945 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4946
4947 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4950 to...
4951 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4952 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4953
4954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4957 build_name_components, find_name_components_bounds>:
4958 Add per_objfile parameter.
4959 (struct mapped_index) <symbol_name_at>: Likewise.
4960 (struct mapped_debug_names): Remove constructor.
4961 <dwarf2_per_objfile>: Remove field.
4962 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4963 (mapped_index_base::find_name_components_bounds,
4964 mapped_index_base::build_name_components,
4965 dw2_expand_symtabs_matching_symbol): Likewise.
4966 (class mock_mapped_index) <symbol_name_at>: Likewise.
4967 (check_match): Likewise.
4968 (check_find_bounds_finds): Likewise.
4969 (test_mapped_index_find_name_component_bounds): Update.
4970 (CHECK_MATCH): Update.
4971 (dw2_expand_symtabs_matching): Update.
4972 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4973 per_objfile parameter.
4974 <find_vec_in_debug_names>: Likewise.
4975 <m_per_objfile>: New field.
4976 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4977 parameter.
4978 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4979 (dw2_debug_names_iterator::next): Update.
4980 (dw2_debug_names_lookup_symbol): Update.
4981 (dw2_debug_names_expand_symtabs_for_function): Update.
4982 (dw2_debug_names_map_matching_symbols): Update.
4983 (dw2_debug_names_expand_symtabs_matching): Update.
4984 (dwarf2_read_debug_names): Update.
4985
4986 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4989 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4990 move to dwarf2_per_objfile.
4991 <read_in_chain>: Remove.
4992 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4993 remove_all_cus, age_comp_units>: New methods.
4994 <m_dwarf2_cus>: New member.
4995 (struct dwarf2_per_cu_data) <cu>: Remove.
4996 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4997 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4998 moved to methods of dwarf2_per_objfile.
4999 (dwarf2_clear_marks): Remove.
5000 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5001 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5002 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5003 (dwarf2_per_objfile::remove_all_cus): New.
5004 (class free_cached_comp_units) <~free_cached_comp_units>:
5005 Update.
5006 (load_cu): Update.
5007 (dw2_do_instantiate_symtab): Adjust.
5008 (fill_in_sig_entry_from_dwo_entry): Adjust.
5009 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5010 (cutu_reader::cutu_reader): Likewise.
5011 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5012 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5013 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5014 and dwarf2_per_objfile::age_comp_units.
5015 (load_partial_comp_unit): Update.
5016 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5017 (process_queue): Likewise.
5018 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5019 backlink.
5020 (dwarf2_read_addr_index): Likewise.
5021 (follow_die_offset): Likewise.
5022 (dwarf2_fetch_die_loc_sect_off): Likewise.
5023 (dwarf2_fetch_constant_bytes): Likewise.
5024 (dwarf2_fetch_die_type_sect_off): Likewise.
5025 (follow_die_sig_1): Likewise.
5026 (load_full_type_unit): Likewise.
5027 (read_signatured_type): Likewise.
5028 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5029 (dwarf2_cu::~dwarf2_cu): Remove.
5030 (dwarf2_per_objfile::get_cu): New.
5031 (dwarf2_per_objfile::set_cu): New.
5032 (age_cached_comp_units): Rename to...
5033 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5034 to std::unordered_map.
5035 (free_one_cached_comp_unit): Rename to...
5036 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5037 to std::unordered_map.
5038 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5039 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5040 a dwarf2_per_objfile in data.
5041 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5042 (dwarf2_clear_marks): Remove.
5043
5044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5047 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5048 (init_tu_and_read_dwo_dies): Likewise.
5049 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5050 (cutu_reader::cutu_reader): Likewise.
5051 (load_partial_comp_unit): Likewise.
5052 (process_psymtab_comp_unit): Update.
5053 (build_type_psymtabs_1): Update.
5054 (process_skeletonless_type_unit): Update.
5055 (load_full_comp_unit): Update.
5056 (find_partial_die): Update.
5057 (dwarf2_read_addr_index): Update.
5058 (read_signatured_type): Update.
5059
5060 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5063 m_header_read_in>: New fields.
5064 <get_header>: New method.
5065 * dwarf2/read.c (per_cu_header_read_in): Remove.
5066 (dwarf2_per_cu_data::get_header): New.
5067 (dwarf2_per_cu_data::addr_size): Update.
5068 (dwarf2_per_cu_data::offset_size): Update.
5069 (dwarf2_per_cu_data::ref_addr_size): Update.
5070
5071 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5072
5073 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5074 (dw2_do_instantiate_symtab): Update.
5075 (queue_and_load_all_dwo_tus): Change parameter from
5076 dwarf2_per_cu_data to dwarf2_cu.
5077 (dwarf2_fetch_die_loc_sect_off): Update.
5078 (dwarf2_fetch_constant_bytes): Update.
5079 (dwarf2_fetch_die_type_sect_off): Update.
5080
5081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * dwarf2/read.c (process_full_comp_unit,
5084 process_full_type_unit): Remove per_cu, per_objfile paramters.
5085 Add dwarf2_cu parameter.
5086 (process_queue): Update.
5087
5088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * dwarf2/read.c (create_cu_from_index_list): Replace
5091 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5092 (create_cus_from_index_list): Likewise.
5093 (create_cus_from_index): Likewise.
5094 (create_signatured_type_table_from_index): Likewise.
5095 (create_cus_from_debug_names_list): Likewise.
5096 (create_cus_from_debug_names): Likewise.
5097 (dwarf2_read_gdb_index): Update.
5098 (dwarf2_read_debug_names): Update.
5099
5100 2020-05-27 Tom Tromey <tom@tromey.com>
5101 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * dwarf2/read.h (struct dwarf2_per_objfile)
5104 <get_type_for_signatured_type, set_type_for_signatured_type>:
5105 New methods.
5106 <m_type_map>: New member.
5107 (struct signatured_type) <type>: Remove.
5108 * dwarf2/read.c
5109 (dwarf2_per_objfile::get_type_for_signatured_type,
5110 dwarf2_per_objfile::set_type_for_signatured_type): New.
5111 (get_signatured_type): Use new methods.
5112
5113 2020-05-27 Tom Tromey <tom@tromey.com>
5114 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5117 (struct dwarf2_per_objfile) <type_units>: New member.
5118 <get_type_unit_group_unshareable>: New method.
5119 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5120 num_symtabs, symtabs>: Remove; move to
5121 type_unit_group_unshareable.
5122 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5123 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5124 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5125
5126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * dwarf2/read.h (struct dwarf2_per_cu_data):
5129 <dwarf2_per_objfile>: Remove.
5130 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5131 dwarf2_per_objfile.
5132 (create_signatured_type_table_from_index): Likewise.
5133 (create_signatured_type_table_from_debug_names): Likewise.
5134 (create_debug_type_hash_table): Likewise.
5135 (fill_in_sig_entry_from_dwo_entry): Likewise.
5136 (create_type_unit_group): Likewise.
5137 (read_comp_units_from_section): Likewise.
5138 (create_cus_hash_table): Likewise.
5139
5140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5143 dwarf2_per_cu_data::dwarf2_per_objfile.
5144 (compute_compunit_symtab_includes): Likewise.
5145 (dwarf2_cu::start_symtab): Likewise.
5146
5147 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5148
5149 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5150 parameter.
5151 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5152 (read_namespace_alias): Update.
5153 (lookup_die_type): Update.
5154 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5155 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5156 Update.
5157 (disassemble_dwarf_expression): Update.
5158
5159 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * dwarf2/read.h (struct dwarf2_queue_item): Add
5162 dwarf2_per_objfile parameter, assign new parameter.
5163 <per_objfile>: New field.
5164 * dwarf2/read.c (free_one_cached_comp_unit): Add
5165 dwarf2_per_objfile parameter.
5166 (queue_comp_unit): Likewise.
5167 (dw2_do_instantiate_symtab): Update.
5168 (process_psymtab_comp_unit): Update.
5169 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5170 (process_imported_unit_die): Update.
5171 (queue_and_load_dwo_tu): Update.
5172 (follow_die_offset): Update.
5173 (follow_die_sig_1): Update.
5174
5175 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5178 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5179 (read_call_site_scope): Assign per_objfile.
5180 (dwarf2_per_cu_data::objfile): Remove.
5181 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5182 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5183 dwarf2_per_objfile parameter.
5184 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5185 dwarf2_per_objfile parameter.
5186 (dwarf_expr_reg_to_entry_parameter): Add output
5187 dwarf2_per_objfile parameter.
5188 (locexpr_get_frame_base): Update.
5189 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5190 <push_dwarf_reg_entry_value>: Update.
5191 <call_site_to_target_addr>: Update.
5192 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5193 parameter.
5194 (value_of_dwarf_reg_entry): Update.
5195 (rw_pieced_value): Update.
5196 (indirect_synthetic_pointer): Update.
5197 (dwarf2_evaluate_property): Update.
5198 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5199 parameter.
5200 (locexpr_read_variable): Update.
5201 (locexpr_get_symbol_read_needs): Update.
5202 (loclist_read_variable): Update.
5203
5204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5207 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5208 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5209 parameter.
5210 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5211 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5212 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5213 parameter.
5214 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5215 sect_variable_value): Add dwarf2_per_objfile parameter.
5216 (class dwarf_evaluate_loc_desc) <dwarf_call,
5217 dwarf_variable_value>: Update.
5218 (fetch_const_value_from_synthetic_pointer): Add
5219 dwarf2_per_objfile parameter.
5220 (fetch_const_value_from_synthetic_pointer): Update.
5221 (coerced_pieced_ref): Update.
5222 (class symbol_needs_eval_context) <dwarf_call,
5223 dwarf_variable_value>: Update.
5224 (dwarf2_compile_expr_to_ax): Update.
5225
5226 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5229 parameter.
5230 (dwarf2_evaluate_loc_desc_full): Update.
5231
5232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5235 parameter.
5236 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5237 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5238 dwarf2_per_objfile parameter.
5239 (decode_debug_loc_dwo_addresses): Likewise.
5240 (dwarf2_find_location_expression): Update.
5241 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5242 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5243 parameter.
5244 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5245 parameter.
5246 (locexpr_describe_location_1): Likewise.
5247 (locexpr_describe_location): Update.
5248
5249 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5252 Remove.
5253 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5254 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5255 (dwarf2_compile_property_to_c): Update.
5256 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5257 use text offset from objfile.
5258 (locexpr_tracepoint_var_ref): Update.
5259 (locexpr_generate_c_location): Update.
5260 (loclist_describe_location): Update.
5261 (loclist_tracepoint_var_ref): Update.
5262 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5263 dwarf2_per_objfile parameter.
5264 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5265 use text offset from objfile.
5266 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5267
5268 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5269
5270 * dwarf2/expr.h (struct dwarf_expr_context)
5271 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5272 <offset>: Remove.
5273 <per_objfile>: New member.
5274 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5275 dwarf2_per_objfile parameter. Don't set offset, set
5276 per_objfile.
5277 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5278 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5279 a dwarf2_per_objfile object instead of an offset.
5280 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5281 constructor.
5282 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5283 to dwarf2_expr_executor constructor. Don't set offset.
5284 (dwarf2_fetch_cfa_info): Update.
5285 (struct dwarf2_frame_cache) <text_offset>: Remove.
5286 <per_objfile>: New field.
5287 (dwarf2_frame_cache): Update.
5288 (dwarf2_frame_prev_register): Update.
5289 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5290 <dwarf_evaluate_loc_desc>: Add constructor.
5291 (dwarf2_evaluate_loc_desc_full): Update.
5292 (dwarf2_locexpr_baton_eval): Update.
5293 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5294 Add constructor.
5295 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5296
5297 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5298
5299 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5300 addr_sized_int_type>: Move to dwarf2_cu.
5301 <int_type>: Move to dwarf2_per_objfile.
5302 (struct dwarf2_per_objfile) <int_type>: Move here.
5303 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5304 addr_sized_int_type>: Move here.
5305 (read_func_scope): Update.
5306 (read_array_type): Update.
5307 (read_tag_string_type): Update.
5308 (attr_to_dynamic_prop): Update.
5309 (dwarf2_per_cu_data::int_type): Rename to...
5310 (dwarf2_per_objfile::int_type): ... this.
5311 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5312 (dwarf2_cu::addr_sized_int_type): ... this.
5313 (read_subrange_type): Update.
5314 (dwarf2_per_cu_data::addr_type): Rename to...
5315 (dwarf2_cu::addr_type): ... this.
5316 (set_die_type): Update.
5317
5318 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5321 data through per_cu->cu.
5322
5323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5326 dwarf2_per_cu_data parameter fo dwarf2_cu.
5327 (lookup_dwo_type_unit): Likewise.
5328 (read_cutu_die_from_dwo): Likewise.
5329 (lookup_dwo_unit): Likewise.
5330 (open_and_init_dwo_file): Likewise.
5331 (lookup_dwo_cutu): Likewise.
5332 (lookup_dwo_comp_unit): Likewise.
5333 (lookup_dwo_type_unit): Likewise.
5334 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5335 (cutu_reader::cutu_reader): Update.
5336
5337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5338
5339 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5340 parameter.
5341 (process_full_type_unit): Likewise.
5342 (process_queue): Update.
5343
5344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5345
5346 * dwarf2/read.c (recursively_compute_inclusions): Add
5347 dwarf2_per_objfile parameter.
5348 (compute_compunit_symtab_includes): Likewise.
5349 (process_cu_includes): Update.
5350
5351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5352
5353 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5354 parameter.
5355 (create_type_unit_group): Update.
5356 (process_psymtab_comp_unit_reader): Update.
5357 (build_type_psymtabs_reader): Update.
5358
5359 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5362 object through m_this_cu->cu.
5363
5364 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5365
5366 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5367 the info parameter.
5368 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5369
5370 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5371
5372 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5373 per_objfile parameter.
5374 (load_full_type_unit): Add per_objfile parameter.
5375 (read_signatured_type): Likewise.
5376 (load_full_comp_unit): Likewise.
5377 (load_cu): Likewise.
5378 (dw2_do_instantiate_symtab): Likewise.
5379 (dw2_get_file_names): Likewise.
5380 (dw2_map_symtabs_matching_filename): Update.
5381 (dw_expand_symtabs_matching_file_matcher): Update.
5382 (dw2_map_symbol_filenames): Update.
5383 (process_psymtab_comp_unit): Add per_objfile parameter.
5384 (build_type_psymtabs_1): Update.
5385 (process_skeletonless_type_unit): Update.
5386 (dwarf2_build_psymtabs_hard): Update.
5387 (load_partial_comp_unit): Add per_objfile parameter.
5388 (scan_partial_symbols): Update.
5389 (load_full_comp_unit): Add per_objfile parameter.
5390 (process_imported_unit_die): Update.
5391 (create_cus_hash_table): Update.
5392 (find_partial_die): Update.
5393 (dwarf2_read_addr_index): Update.
5394 (follow_die_offset): Update.
5395 (dwarf2_fetch_die_loc_sect_off): Update.
5396 (dwarf2_fetch_constant_bytes): Update.
5397 (dwarf2_fetch_die_type_sect_off): Update.
5398 (follow_die_sig_1): Update.
5399 (load_full_type_unit): Add per_objfile parameter.
5400 (read_signatured_type): Likewise.
5401
5402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5403
5404 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5405 of objfile_name.
5406
5407 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5408
5409 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5410 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5411 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5412 field.
5413 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5414 (create_cus_from_index): Update.
5415 (dwarf2_read_gdb_index): Update.
5416 (create_cus_from_debug_names): Update.
5417 (dwarf2_read_debug_names): Update.
5418 (get_abbrev_section_for_cu): Update.
5419 (create_all_comp_units): Update.
5420 (read_attribute_value): Update.
5421 (get_debug_line_section): Update.
5422 * dwarf2/index-cache.c (index_cache::store): Update.
5423 * dwarf2/index-write.c (save_gdb_index_command): Update.
5424 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5425
5426 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5427
5428 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5429 member.
5430 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5431 dwarf2_per_cu_data::per_bfd.
5432 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5433 (create_type_unit_group): Likewise.
5434 (queue_comp_unit): Remove reference to
5435 per_cu->dwarf2_per_objfile.
5436 (maybe_queue_comp_unit): Likewise.
5437 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5438 (create_cus_hash_table): Assign new field.
5439
5440 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * dwarf2/read.c: Replace
5443 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5444 dwarf2_cu->per_objfile throughout.
5445
5446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5447
5448 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5449 parameter, don't use per_cu->dwarf2_per_objfile.
5450 (dw2_instantiate_symtab): Likewise.
5451 (dw2_find_last_source_symtab): Update.
5452 (dw2_map_expand_apply): Update.
5453 (dw2_lookup_symbol): Update.
5454 (dw2_expand_symtabs_for_function): Update.
5455 (dw2_expand_all_symtabs): Update.
5456 (dw2_expand_symtabs_with_fullname): Update.
5457 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5458 don't use per_cu->dwarf2_per_objfile.
5459 (dw2_expand_marked_cus): Update.
5460 (dw2_find_pc_sect_compunit_symtab): Update.
5461 (dw2_debug_names_lookup_symbol): Update.
5462 (dw2_debug_names_expand_symtabs_for_function): Update.
5463 (dw2_debug_names_map_matching_symbols): Update.
5464 (dwarf2_psymtab::expand_psymtab): Update.
5465
5466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5467
5468 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5469 <per_objfile>: New member.
5470 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5471 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5472 call to dwarf2_cu.
5473 (cutu_reader::cutu_reader): Update.
5474 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5475
5476 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5479 struct dwarf2_per_objfile.
5480 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5481 dwarf2_per_bfd.
5482 * dwarf2/read.c (set_die_type): Update.
5483 (get_die_type_at_offset): Update.
5484
5485 2020-05-27 Tom Tromey <tom@tromey.com>
5486 Simon Marchi <simon.marchi@efficios.com>
5487
5488 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5489 method.
5490 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5491 get_symtab, set_symtab>: New methods.
5492 <m_symtabs>: New field.
5493 (struct dwarf2_psymtab): Derive from partial_symtab.
5494 <readin_p, get_compunit_symtab>: Declare methods.
5495 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5496 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5497 New methods.
5498 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5499 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5500 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5501 (dw2_symtab_iter_next, dw2_print_stats)
5502 (dw2_expand_symtabs_with_fullname)
5503 (dw2_expand_symtabs_matching_one)
5504 (dw_expand_symtabs_matching_file_matcher)
5505 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5506 (dw2_debug_names_iterator::next)
5507 (dw2_debug_names_map_matching_symbols)
5508 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5509 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5510 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5511 New methods.
5512 (get_compunit_symtab, process_full_comp_unit)
5513 (process_full_type_unit): Update.
5514 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5515
5516 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5517
5518 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5519 then introduce a new dwarf2_per_objfile type.
5520 <read_line_string>: Move to the new dwarf2_per_objfile type.
5521 <objfile>: Likewise.
5522 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5523 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5524 dwarf2_per_objfile->per_bfd.
5525 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5526 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5527 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5528 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5529 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5530 (dwarf2_per_objfile::locate_sections): Rename to...
5531 (dwarf2_per_bfd::locate_sections): ... this.
5532 (dwarf2_per_objfile::get_cutu): Rename to...
5533 (dwarf2_per_bfd::get_cutu): ... this.
5534 (dwarf2_per_objfile::get_cu): Rename to...
5535 (dwarf2_per_bfd::get_cu): ... this.
5536 (dwarf2_per_objfile::get_tu): Rename to...
5537 (dwarf2_per_bfd::get_tu): ... this.
5538 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5539 (dwarf2_per_bfd::allocate_per_cu): ... this.
5540 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5541 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5542 (get_gdb_index_contents_ftype): Change parameter from
5543 dwarf2_per_objfile to dwarf2_per_bfd.
5544 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5545 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5546
5547 2020-05-27 Tom Tromey <tom@tromey.com>
5548 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5551 (allocate_piece_closure): Set "per_objfile" member.
5552 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5553 (locexpr_describe_location, loclist_describe_location): Use new
5554 member.
5555 * dwarf2/read.c (read_call_site_scope)
5556 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5557 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5558 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5559 handle_data_member_location): Set per_objfile member.
5560 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5561 member.
5562 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5563
5564 2020-05-27 Tom Tromey <tom@tromey.com>
5565
5566 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5567 allocate_signatured_type>: Declare new methods.
5568 <m_num_psymtabs>: New member.
5569 (struct dwarf2_per_cu_data) <index>: New member.
5570 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5571 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5572 (create_cu_from_index_list): Use allocate_per_cu.
5573 (create_signatured_type_table_from_index)
5574 (create_signatured_type_table_from_debug_names)
5575 (create_debug_type_hash_table, add_type_unit)
5576 (read_comp_units_from_section): Use allocate_signatured_type.
5577
5578 2020-05-27 Tom Tromey <tom@tromey.com>
5579
5580 * psymtab.c (partial_map_expand_apply)
5581 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5582 (psym_lookup_global_symbol_language)
5583 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5584 (psym_print_stats, psym_expand_symtabs_for_function)
5585 (psym_map_symbol_filenames, psym_map_matching_symbols)
5586 (psym_expand_symtabs_matching)
5587 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5588 (maintenance_check_psymtabs): Update.
5589 * psympriv.h (struct partial_symtab) <readin_p,
5590 get_compunit_symtab>: Add objfile parameter.
5591 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5592 Likewise.
5593 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5594 get_compunit_symtab>: Likewise.
5595 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5596
5597 2020-05-27 Tom Tromey <tom@tromey.com>
5598
5599 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5600 member.
5601 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5602 (create_cu_from_index_list)
5603 (create_signatured_type_table_from_index)
5604 (create_signatured_type_table_from_debug_names)
5605 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5606 (dwarf2_create_include_psymtab)
5607 (create_debug_type_hash_table, add_type_unit)
5608 (create_type_unit_group, read_comp_units_from_section)
5609 (dwarf2_compute_name, create_cus_hash_table)
5610 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5611 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5612 obstack.
5613 (dw2_get_real_path): Likewise. Change argument to
5614 dwarf2_per_objfile.
5615
5616 2020-05-27 Luis Machado <luis.machado@linaro.org>
5617
5618 PR tdep/26000
5619 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5620 for ldrd (immediate).
5621
5622 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5623
5624 * command.h: Add comment giving the name of class_tui.
5625 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5626 create the fake command for the help for class_tui.
5627
5628 2020-05-26 Tom Tromey <tromey@adacore.com>
5629
5630 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5631 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5632 (val_atr): New function.
5633 (value_val_atr): Use it.
5634 * ada-valprint.c (print_optional_low_bound): Change low bound
5635 handling for enums.
5636 (val_print_packed_array_elements): Don't call discrete_position.
5637 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5638 discrete_position for enum types.
5639 * language.c (default_print_array_index): Change type.
5640 * language.h (struct language_defn) <la_print_array_index>: Add
5641 index_type parameter, change type of index_value.
5642 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5643 (default_print_array_index): Update.
5644 * valprint.c (maybe_print_array_index): Don't call
5645 value_from_longest. Update.
5646 (value_print_array_elements): Don't call discrete_position.
5647
5648 2020-05-26 Tom Tromey <tromey@adacore.com>
5649
5650 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5651 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5652
5653 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5654
5655 PR gdb/13519
5656 * avr-tdep.c (avr_integer_to_address): Return data or code
5657 address accordingly to the second 'type' argument of the
5658 function.
5659
5660 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5661
5662 * infcmd.c, inferior.h: (construct_inferior_arguments):
5663 Moved function from here to gdbsupport/common-inferior.{h,cc}
5664
5665 2020-05-23 Tom Tromey <tom@tromey.com>
5666
5667 Revert commit eca1f90c:
5668 * NEWS: Remove entry for completion styling.
5669 * completer.c (_rl_completion_prefix_display_length): Move
5670 declaration later.
5671 (gdb_fnprint): Revert.
5672 (gdb_display_match_list_1): Likewise.
5673 * cli/cli-style.c (completion_prefix_style)
5674 (completion_difference_style, completion_suffix_style): Remove.
5675 (_initialize_cli_style): Revert.
5676 * cli/cli-style.h (completion_prefix_style)
5677 (completion_difference_style, completion_suffix_style): Don't
5678 declare.
5679
5680 2020-05-24 Pedro Alves <palves@redhat.com>
5681
5682 * symtab.c (completion_list_add_name): Return boolean indication
5683 of whether the symbol matched.
5684 (completion_list_add_symbol): Don't try to remove C++ aliases if
5685 the symbol didn't match in the first place.
5686 * symtab.h (completion_list_add_name): Return bool.
5687
5688 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5689
5690 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5691 type::field.
5692
5693 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5694
5695 GDB 9.2 released.
5696
5697 2020-05-23 Tom Tromey <tom@tromey.com>
5698
5699 * NEWS: Add entry for completion styling.
5700 * completer.c (_rl_completion_prefix_display_length): Move
5701 declaration earlier.
5702 (gdb_fnprint): Use completion_style.
5703 (gdb_display_match_list_1): Likewise.
5704 * cli/cli-style.c (completion_prefix_style)
5705 (completion_difference_style, completion_suffix_style): New
5706 globals.
5707 (_initialize_cli_style): Register new globals.
5708 * cli/cli-style.h (completion_prefix_style)
5709 (completion_difference_style, completion_suffix_style): Declare.
5710
5711 2020-05-23 Pedro Alves <palves@redhat.com>
5712
5713 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5714 (parse_escape): Use ISDIGIT instead of isdigit.
5715 (puts_debug): Use gdb_isprint instead of isprint.
5716 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5717 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5718 ISSPACE instead of isspace.
5719 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5720 instead of isspace.
5721 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5722 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5723 instead of isxdigit and ISDIGIT instead of isdigit.
5724
5725 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5726
5727 * gdbtypes.h (struct type) <field>: New method.
5728 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5729 or type::field.
5730
5731 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5732
5733 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5734 (TYPE_FIELDS): Use type::fields. Change all call sites that
5735 modify the propery to use type::set_fields instead.
5736
5737 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5740 type::num_fields instead.
5741
5742 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5745 methods.
5746 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5747 that modify the number of fields to use type::set_num_fields
5748 instead.
5749
5750 2020-05-22 Tom Tromey <tromey@adacore.com>
5751
5752 * compile/compile-object-load.h (munmap_list_free): Don't
5753 declare.
5754
5755 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5756
5757 * annotate.c (annotate_source_line): Update return type, add call
5758 to update current symtab and line.
5759 * annotate.h (annotate_source_line): Update return type, and
5760 extend header comment.
5761 * source.c (info_line_command): Check annotation_level before
5762 calling annotate_source_line.
5763 * stack.c (print_frame_info): If calling annotate_source_line
5764 returns true, then don't print any other source line information.
5765
5766 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5769
5770 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * coffread.c (patch_type): Remove NULL check before xfree.
5773 * corefile.c (set_gnutarget): Likewise.
5774 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5775 * exec.c (build_section_table): Likewise.
5776 * remote.c (remote_target::pass_signals): Likewise.
5777 * utils.c (n_spaces): Likewise.
5778 * cli/cli-script.c (document_command): Likewise.
5779 * i386-windows-tdep.c (core_process_module_section): Likewise.
5780 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5781
5782 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * symfile.c (reread_symbols): Clear objfile's section_offsets
5785 vector and section indices, re-compute them by calling
5786 sym_offsets.
5787
5788 2020-05-20 Tom Tromey <tromey@adacore.com>
5789
5790 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5791 (desc_one_bound, desc_index_type): Compute field name.
5792
5793 2020-05-20 Tom de Vries <tdevries@suse.de>
5794
5795 PR symtab/25833
5796 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5797
5798 2020-05-20 Alan Modra <amodra@gmail.com>
5799
5800 PR 25993
5801 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5802 bfd_set_filename.
5803 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5804 passed to bfd_set_filename.
5805 * symfile-mem.c (add_vsyscall_page): Likewise for string
5806 passed to symbol_file_add_from_memory.
5807 (symbol_file_add_from_memory): Make name param a const char* and
5808 don't strdup.
5809
5810 2020-05-20 Alan Modra <amodra@gmail.com>
5811
5812 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5813 rather than accessing bfd->filename directly.
5814 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5815 and use bfd_section_name.
5816 * dwarf2/frame.c (decode_frame_entry): Likewise.
5817 * exec.c (exec_set_section_address): Likewise.
5818 * solib-aix.c (solib_aix_bfd_open): Likewise.
5819 * stap-probe.c (get_stap_base_address): Likewise.
5820 * symfile.c (reread_symbols): Likewise.
5821
5822 2020-05-19 Tom Tromey <tromey@adacore.com>
5823
5824 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5825
5826 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5827
5828 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5829
5830 2020-05-19 Pedro Alves <palves@redhat.com>
5831
5832 * NEWS (set exec-file-mismatch): Adjust entry.
5833 * exec.c: Include "build-id.h".
5834 (validate_exec_file): Try to match build IDs instead of filenames.
5835 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5836 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5837 and pass down 'warn_if_slow'.
5838 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5839 gdb_bfd_open_closure to pass it down.
5840 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5841
5842 2020-05-19 Pedro Alves <palves@redhat.com>
5843
5844 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5845 * target.c (target_fileio_open_1): Rename to target_fileio_open
5846 and make extern. Use bool.
5847 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5848 (target_fileio_read_alloc_1): Adjust.
5849 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5850 (target_fileio_open_warn_if_slow): Delete declaration.
5851
5852 2020-05-19 Pedro Alves <palves@redhat.com>
5853
5854 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5855 Adjust all callers.
5856
5857 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5858
5859 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5860 whether disp is negative.
5861
5862 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * symfile.h (struct symfile_segment_data)
5865 <~symfile_segment_data>: Remove.
5866 <segment_info>: Change to std::vector.
5867 * symfile.c (default_symfile_segments): Update.
5868 * elfread.c (elf_symfile_segments): Update.
5869
5870 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5871
5872 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5873 <segments>: New.
5874 <segment_bases, segment_sizes>: Remove.
5875 * symfile.c (default_symfile_segments): Update.
5876 * elfread.c (elf_symfile_segments): Update.
5877 * remote.c (remote_target::get_offsets): Update.
5878 * solib-target.c (solib_target_relocate_section_addresses):
5879 Update.
5880
5881 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * symfile.h (struct symfile_segment_data): Initialize fields.
5884 <~symfile_segment_data>: Add.
5885 (symfile_segment_data_up): New.
5886 (struct sym_fns) <sym_segments>: Return a
5887 symfile_segment_data_up.
5888 (default_symfile_segments): Return a symfile_segment_data_up.
5889 (free_symfile_segment_data): Remove.
5890 (get_symfile_segment_data): Return a symfile_segment_data_up.
5891 * symfile.c (default_symfile_segments): Likewise.
5892 (get_symfile_segment_data): Likewise.
5893 (free_symfile_segment_data): Remove.
5894 (symfile_find_segment_sections): Update.
5895 * elfread.c (elf_symfile_segments): Return a
5896 symfile_segment_data_up.
5897 * remote.c (remote_target::get_offsets): Update.
5898 * solib-target.c (solib_target_relocate_section_addresses):
5899 Update.
5900 * symfile-debug.c (debug_sym_segments): Return a
5901 symfile_segment_data_up.
5902
5903 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5904
5905 PR build/25981
5906 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5907 Hardcode register numbers.
5908
5909 PR build/25981
5910 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5911 procfs_find_LDT_entry): Remove.
5912 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5913 procfs_find_LDT_entry): Remove.
5914 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5915 Remove.
5916
5917 2020-05-17 Pedro Alves <palves@redhat.com>
5918 Andrew Burgess <andrew.burgess@embecosm.com>
5919 Keno Fischer <keno@juliacomputing.com>
5920
5921 PR gdb/25741
5922 * breakpoint.c (build_target_condition_list): Update comments.
5923 (build_target_command_list): Update comments and skip matching
5924 locations.
5925 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5926 a separate function. Simplify "set breakpoint auto-hw off"
5927 handling.
5928 (insert_breakpoints): Update comment.
5929 (tracepoint_locations_match): New parameter. For breakpoints,
5930 compare location types too, if the caller wants to.
5931 (handle_automatic_hardware_breakpoints): New functions.
5932 (bp_location_is_less_than): Also sort by location type and
5933 hardware breakpoint length.
5934 (update_global_location_list): Handle "set breakpoint auto-hw on"
5935 here.
5936 (update_breakpoint_locations): Ask breakpoint_locations_match to
5937 ignore location types.
5938
5939 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5942 type::name instead.
5943
5944 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * gdbtypes.h (struct type) <name, set_name>: New methods.
5947 (TYPE_CODE): Use type::name. Change all call sites used to set
5948 the name to use type::set_name instead.
5949
5950 2020-05-16 Tom Tromey <tom@tromey.com>
5951
5952 * top.c (quit_force): Update.
5953 * infrun.c (handle_no_resumed): Update.
5954 * top.h (all_uis): New function.
5955 (ALL_UIS): Remove.
5956
5957 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5958
5959 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5960
5961 2020-05-16 Pedro Alves <palves@redhat.com>
5962
5963 * ia64-linux-nat.c
5964 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5965 Declare method.
5966 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5967
5968 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5969
5970 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5971 (sparc64_adi_info): Likewise.
5972
5973 2020-05-15 Tom Tromey <tom@tromey.com>
5974
5975 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5976 block_objfile.
5977 (lookup_objfile_from_block): Remove.
5978 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5979 (lookup_global_symbol): Use block_objfile.
5980 * symtab.h (lookup_objfile_from_block): Don't declare.
5981 * printcmd.c (clear_dangling_display_expressions): Use
5982 block_objfile.
5983 * parse.c (operator_check_standard): Use block_objfile.
5984
5985 2020-05-15 Tom Tromey <tom@tromey.com>
5986
5987 * language.c (language_alloc_type_symbol): Set
5988 SYMBOL_SECTION.
5989 * symtab.c (initialize_objfile_symbol): Remove.
5990 (allocate_symbol): Remove.
5991 (allocate_template_symbol): Remove.
5992 * dwarf2/read.c (fixup_go_packaging): Use "new".
5993 (new_symbol): Use "new".
5994 (read_variable): Don't call initialize_objfile_symbol. Use
5995 "new".
5996 (read_func_scope): Use "new".
5997 * xcoffread.c (process_xcoff_symbol): Don't call
5998 initialize_objfile_symbol.
5999 (SYMBOL_DUP): Remove.
6000 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6001 "new".
6002 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6003 (allocate_template_symbol): Don't declare.
6004 (struct symbol): Add copy constructor. Change defaults.
6005 * jit.c (finalize_symtab): Use "new".
6006 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6007 Use "new".
6008 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6009 (common_block_end): Use "new".
6010 * mdebugread.c (parse_symbol): Use "new".
6011 (new_symbol): Likewise.
6012
6013 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6014
6015 * NEWS: Mention changes to help and apropos.
6016
6017 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6018
6019 * command.h (enum command_class): Improve comments, document
6020 that class_alias is for user-defined aliases, give the class
6021 name for each class, remove unused class_xdb.
6022 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6023 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6024 by a precise class.
6025 * infcmd.c (_initialize_infcmd): Likewise.
6026 * reverse.c (_initialize_reverse): Likewise.
6027 * stack.c (_initialize_stack): Likewise.
6028 * symfile.c (_initialize_symfile): Likewise.
6029 * tracepoint.c (_initialize_tracepoint): Likewise.
6030
6031 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6032
6033 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6034 when their aliased command is traversed.
6035 (help_cmd): Add fput_command_names_styled call to
6036 output command name and aliases when command has an alias.
6037
6038 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6039
6040 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6041 * cli/cli-decode.c (help_cmd_list): Declare as static,
6042 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6043 a command together with the command.
6044 (fput_command_name_styled, fput_command_names_styled): New functions.
6045 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6046 fput_command_name_styled.
6047 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6048 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6049
6050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6051
6052 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6053 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6054 * command.h (cmd_show_list): Likewise.
6055 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6056 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6057
6058 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6059
6060 * unittests/command-def-selftests.c (traverse_command_structure):
6061 Verify all commands of a list have the same prefix command and
6062 that only the top cmdlist commands have a null prefix.
6063
6064 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6065
6066 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6067 as prefix, not one of its aliases.
6068 (set_cmd_prefix): Remove.
6069 (do_add_cmd): Centralize the setting of the prefix of a command, when
6070 command is defined after its full chain of prefix commands.
6071 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6072 (add_setshow_cmd_full): Likewise.
6073 (update_prefix_field_of_prefixed_commands): New function.
6074 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6075 update_prefix_field_of_prefixed_commands.
6076 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6077 addresses of remote_set_cmdlist and remote_show_cmdlist given
6078 as argument, not the address of an argument.
6079 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6080 * gdb/remote.c (_initialize_remote): Likewise.
6081
6082 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6083
6084 * cli/cli-cmds.c (alias_command): Check for an existing alias
6085 using lookup_cmd_composition, as valid_command_p is too strict
6086 and forbids aliases that are the prefix of an existing alias
6087 or command.
6088 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6089 command is properly recognised as a valid command.
6090
6091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6092
6093 * unittests/help-doc-selftests.c: Rename to
6094 unittests/command-def-selftests.c
6095 * unittests/command-def-selftests.c (help_doc_tests): Update some
6096 comments.
6097 (command_structure_tests, traverse_command_structure): New namespace
6098 and function.
6099 (command_structure_invariants_tests): New function.
6100 (_initialize_command_def_selftests) Renamed from
6101 _initialize_help_doc_selftests, register command_structure_invariants
6102 selftest.
6103
6104 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6105
6106 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6107 an alias of 'show'.
6108
6109 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6110
6111 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6112 ada_is_fixed_point_type. Update all callers.
6113 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6114 all callers.
6115 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6116 Update all callers.
6117 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6118 print_fixed_point_type. Update all callers.
6119 * ada-valprint.c (ada_value_print_num): Replace call to
6120 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6121
6122 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6123
6124 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6125 processors.
6126 (cpu_supports_bts): Add CV_AMD case.
6127
6128 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6129 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * infrun.c (stop_all_threads): Collect multiple wait events at
6132 each pass.
6133
6134 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6137 type::code instead.
6138
6139 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6140
6141 * gdbtypes.h (struct type) <code, set_code>: New methods.
6142 (TYPE_CODE): Use type::code. Change all call sites used to set
6143 the code to use type::set_code instead.
6144
6145 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6146 Tom de Vries <tdevries@suse.de>
6147 Pedro Alves <palves@redhat.com>
6148
6149 PR threads/25478
6150 * infrun.c (stop_all_threads): Do NOT ignore
6151 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6152 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6153 received.
6154 (handle_no_resumed): Remove code handling a live inferior with no
6155 threads.
6156 * remote.c (has_single_non_exited_thread): New.
6157 (remote_target::update_thread_list): Do not delete a thread if is
6158 the last thread of the process.
6159 * thread.c (thread_select): Call delete_exited_threads instead of
6160 prune_threads.
6161
6162 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6163
6164 * infrun.c (stop_all_threads): Enable/disable thread events of all
6165 targets. Move a debug message denoting the end of the function
6166 into the SCOPED_EXIT block.
6167
6168 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6169
6170 * process-stratum-target.h: Include <set>.
6171 (all_non_exited_process_targets, switch_to_target_no_thread): New
6172 function declarations.
6173 * process-stratum-target.c (all_non_exited_process_targets)
6174 (switch_to_target_no_thread): New function implementations.
6175
6176 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6177
6178 * infrun.c (handle_inferior_event): Extract out a piece of code
6179 into...
6180 (mark_non_executing_threads): ...this new function.
6181
6182 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6183
6184 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6185 use.
6186
6187 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6188
6189 * regcache.c (regcache_read_pc_protected): New function
6190 implementation that returns 0 if the PC cannot read via
6191 'regcache_read_pc'.
6192 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6193 instead of 'regcache_read_pc'.
6194 (keep_going_pass_signal): Ditto.
6195
6196 2020-05-13 Tom Tromey <tromey@adacore.com>
6197
6198 * ada-lang.c (align_value): Remove.
6199 (ada_template_to_fixed_record_type_1): Use align_up.
6200
6201 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6202
6203 * async-event.c: Update the copyright year.
6204 * async-event.h: Update the copyright year.
6205
6206 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6207
6208 * objfiles.h (is_addr_in_objfile,
6209 shared_objfile_contains_address_p): Return bool.
6210 * objfile.c (is_addr_in_objfile,
6211 shared_objfile_contains_address_p): Return bool.
6212
6213 2020-05-11 Tom Tromey <tromey@adacore.com>
6214
6215 * cli/cli-cmds.c (info_command): Restore.
6216 (_initialize_cli_cmds): Use add_prefix_command for "info".
6217 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6218
6219 2020-05-11 Tom Tromey <tromey@adacore.com>
6220
6221 * ada-lang.c (ada_value_primitive_field): Now public.
6222 * ada-lang.h (ada_value_primitive_field): Declare.
6223 * ada-valprint.c (print_field_values): Use
6224 ada_value_primitive_field for wrapper fields.
6225
6226 2020-05-11 Tom de Vries <tdevries@suse.de>
6227
6228 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6229 MODULE_DOMAIN.
6230
6231 2020-05-11 Tom de Vries <tdevries@suse.de>
6232
6233 PR symtab/25941
6234 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6235 with length 0, if not gdb-produced.
6236 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6237
6238 2020-05-09 Tom de Vries <tdevries@suse.de>
6239
6240 PR gdb/25955
6241 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6242 calculation.
6243
6244 2020-05-09 Tom Tromey <tom@tromey.com>
6245
6246 * top.c (server_command): Now bool.
6247 * top.h (server_command): Now bool.
6248
6249 2020-05-08 Tom Tromey <tromey@adacore.com>
6250
6251 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6252 already being processed.
6253
6254 2020-05-08 Tom Tromey <tom@tromey.com>
6255
6256 * printcmd.c (struct display) <next>: Remove.
6257 <display>: New constructor.
6258 <exp_string>: Now a std::string.
6259 <enabled_p>: Now a bool.
6260 (display_number): Move definition earlier.
6261 (displays): Rename from display_chain. Now a std::vector.
6262 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6263 (display_command): Update.
6264 (do_one_display, disable_display)
6265 (enable_disable_display_command, do_enable_disable_display):
6266 Update.
6267 (free_display): Remove.
6268 (clear_displays): Rewrite.
6269 (delete_display): Update.
6270 (map_display_numbers): Use function_view. Remove "data"
6271 parameter. Update.
6272 (do_delete_display): Remove.
6273 (undisplay_command): Update.
6274 (do_one_display, do_displays, disable_display)
6275 (info_display_command): Update.
6276 (do_enable_disable_display): Remove.
6277 (enable_disable_display_command)
6278 (clear_dangling_display_expressions): Update.
6279
6280 2020-05-08 Tom Tromey <tom@tromey.com>
6281
6282 * symtab.c (set_symbol_cache_size)
6283 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6284 (maintenance_print_symbol_cache_statistics): Update.
6285 * symmisc.c (print_symbol_bcache_statistics)
6286 (print_objfile_statistics, maintenance_print_objfiles)
6287 (maintenance_info_symtabs, maintenance_check_symtabs)
6288 (maintenance_expand_symtabs, maintenance_info_line_tables):
6289 Update.
6290 * symfile-debug.c (set_debug_symfile): Update.
6291 * source.c (forget_cached_source_info): Update.
6292 * python/python.c (gdbpy_progspaces): Update.
6293 * psymtab.c (maintenance_info_psymtabs): Update.
6294 * probe.c (parse_probes): Update.
6295 * linespec.c (iterate_over_all_matching_symtabs)
6296 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6297 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6298 * exec.c (exec_target::close): Update.
6299 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6300 * breakpoint.c (print_one_breakpoint_location)
6301 (create_longjmp_master_breakpoint)
6302 (create_std_terminate_master_breakpoint): Update.
6303 * progspace.c (program_spaces): Now a std::vector.
6304 (maybe_new_address_space): Update.
6305 (add_program_space): Remove.
6306 (program_space::program_space): Update.
6307 (remove_program_space): Update.
6308 (number_of_program_spaces): Remove.
6309 (print_program_space, update_address_spaces): Update.
6310 * progspace.h (program_spaces): Change type.
6311 (ALL_PSPACES): Remove.
6312 (number_of_program_spaces): Don't declare.
6313 (struct program_space) <next>: Remove.
6314
6315 2020-05-08 Tom Tromey <tom@tromey.com>
6316
6317 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6318 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6319 (enable_break): Update.
6320 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6321 (frv_fdpic_find_canonical_descriptor): Update.
6322 (frv_fetch_objfile_link_map): Update.
6323 * progspace.c (program_space::free_all_objfiles): Update.
6324 (program_space::solibs): New method.
6325 * progspace.h (struct program_space) <solibs>: New method.
6326 * solist.h (master_so_list): Don't declare.
6327 (ALL_SO_LIBS): Remove.
6328 * solib.h (so_list_head): Remove.
6329 (update_solib_list): Update comment.
6330 * solib.c (master_so_list): Remove.
6331 (solib_used, update_solib_list, solib_add)
6332 (info_sharedlibrary_command, clear_solib)
6333 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6334
6335 2020-05-08 Tom Tromey <tom@tromey.com>
6336
6337 * extension.c (extension_languages): Now a std::array.
6338 (ALL_EXTENSION_LANGUAGES): Remove.
6339 (get_ext_lang_defn, get_ext_lang_of_file)
6340 (eval_ext_lang_from_control_command): Update.
6341 (finish_ext_lang_initialization)
6342 (auto_load_ext_lang_scripts_for_objfile)
6343 (ext_lang_type_printers::ext_lang_type_printers)
6344 (apply_ext_lang_type_printers)
6345 (ext_lang_type_printers::~ext_lang_type_printers)
6346 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6347 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6348 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6349 (get_matching_xmethod_workers, ext_lang_colorize)
6350 (ext_lang_before_prompt): Update.
6351 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6352
6353 2020-05-08 Tom Tromey <tom@tromey.com>
6354
6355 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6356 overload.
6357 <swap_string, m_string>: Remove.
6358 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6359 Update.
6360 * stabsread.c (define_symbol, read_type): Update.
6361 * linespec.c (find_linespec_symbols): Update.
6362 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6363 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6364 * dbxread.c (read_dbx_symtab): Update.
6365 * cp-support.h (cp_canonicalize_string_full)
6366 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6367 Return unique_xmalloc_ptr.
6368 * cp-support.c (inspect_type): Update.
6369 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6370 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6371 Likewise.
6372 * c-typeprint.c (print_name_maybe_canonical): Update.
6373 * break-catch-throw.c (check_status_exception_catchpoint):
6374 Update.
6375
6376 2020-05-08 Tom de Vries <tdevries@suse.de>
6377
6378 * infrun.c (follow_fork): Copy current_line and current_symtab to
6379 child thread.
6380
6381 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * async-event.c (struct async_signal_handler, struct
6384 async_event_handler): Reformat, remove typedef.
6385
6386 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6389 access thistype->main_type->dyn_prop_list directly.
6390
6391 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6392
6393 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6394 (remove_dyn_prop): Remove. Update all users to use
6395 type::remove_dyn_prop.
6396 * gdbtypes.c (remove_dyn_prop): Rename to...
6397 (type::remove_dyn_prop): ... this.
6398
6399 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6400
6401 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6402 (add_dyn_prop): Remove. Update all users to use
6403 type::add_dyn_prop.
6404 * gdbtypes.c (add_dyn_prop): Rename to...
6405 (type::add_dyn_prop): ... this.
6406
6407 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6410 (get_dyn_prop): Remove. Update all users to use
6411 type::dyn_prop.
6412 * gdbtypes.c (get_dyn_prop): Rename to...
6413 (type::dyn_prop): ... this.
6414
6415 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6416
6417 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6418
6419 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6422 instruction, skip it if it's there.
6423
6424 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6427
6428 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6429
6430 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6431 * gdbtypes.c (recursive_dump_type): Remove use of
6432 TYPE_INCOMPLETE.
6433
6434 2020-05-03 Tom Tromey <tom@tromey.com>
6435
6436 * breakpoint.c (catch_command, tcatch_command): Remove.
6437 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6438 add_show_prefix_cmd.
6439 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6440 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6441 Remove.
6442 (add_internal_problem_command): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 * mips-tdep.c (set_mipsfpu_command): Remove.
6445 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6446 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6447 (_initialize_index_cache): Use add_basic_prefix_cmd.
6448 * memattr.c (dummy_cmd): Remove.
6449 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6450 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6451 (_initialize_tui_win): Use add_basic_prefix_cmd,
6452 add_show_prefix_cmd.
6453 * cli/cli-logging.c (set_logging_command): Remove.
6454 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 (show_logging_command): Remove.
6457 * target.c (target_command): Remove.
6458 (add_target): Use add_basic_prefix_cmd.
6459
6460 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6461
6462 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6463
6464 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6465
6466 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6467 info_command.
6468
6469 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6470
6471 * nbsd-nat.c (nbsd_enable_proc_events)
6472 (nbsd_nat_target::post_startup_inferior): Add.
6473 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6474 (nbsd_nat_target::update_thread_list): Rewrite.
6475 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6476 "PTRACE_LWP_CREATE".
6477 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6478
6479 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6480
6481 * stack.c (_initialize_stack): Remove duplicated creation
6482 of "frame" command and "f" alias.
6483
6484 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6485
6486 PR gdb/18706
6487 * gdbtypes.c (check_typedef): Calculate size of array of
6488 stubbed type.
6489
6490 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6491
6492 PR gdb/15559
6493 * i386-tdep.c (i386_push_dummy_call): Call
6494 i386_thiscall_push_dummy_call.
6495 (i386_thiscall_push_dummy_call): New function.
6496 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6497 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6498 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6499
6500 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6501
6502 * gdbarch.sh (do_read): Add shellcheck disable directive for
6503 warning SC2162.
6504
6505 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6508 "referenced but not assigned" warning.
6509
6510 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * gdbarch.sh: Remove code that sets fallbackdefault.
6513
6514 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6515
6516 * gdbarch.sh: Use shell operators && and || instead of
6517 -a and -o.
6518
6519 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * gdbarch.sh: Use $(...) instead of `...`.
6522
6523 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * gdbarch.sh: Use double quotes around variables.
6526
6527 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6528
6529 * gdbarch.sh: Use %s with printf, instead of variables in the
6530 format string.
6531
6532 2020-04-29 Tom Tromey <tromey@adacore.com>
6533
6534 PR ada/25875:
6535 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6536 type fields here.
6537 (read_enumeration_type): Call
6538 update_enumeration_type_from_children later. Update comments.
6539 (process_enumeration_scope): Don't create type fields.
6540
6541 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6542
6543 * nbsd-tdep.c: Include "xml-syscall.h".
6544 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6545
6546 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6547
6548 * nbsd-nat.c: Include "sys/wait.h".
6549 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6550 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6551 (nbsd_nat_target::remove_exec_catchpoint)
6552 (nbsd_nat_target::set_syscall_catchpoint): Add.
6553 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6554 (nbsd_nat_target::insert_exec_catchpoint)
6555 (nbsd_nat_target::remove_exec_catchpoint)
6556 (nbsd_nat_target::set_syscall_catchpoint): Add.
6557 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6558 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6559 `nbsd_get_syscall_number'.
6560
6561 2020-04-29 Tom Tromey <tom@tromey.com>
6562
6563 * stack.c (print_block_frame_labels): Remove.
6564
6565 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6566
6567 PR gdb/17320
6568 * ada-valprint.c (val_print_packed_array_elements): Move array
6569 end bracket to new line.
6570 (ada_val_print_string): Remove extra spaces before first array
6571 element.
6572 * c-valprint.c (c_value_print_array): Likewise.
6573 * m2-valprint.c (m2_print_array_contents): Likewise.
6574 (m2_value_print_inner): Likewise.
6575 * p-valprint.c (pascal_value_print_inner): Likewise.
6576 * valprint.c (generic_val_print_array): Likewise.
6577 (value_print_array_elements): Move first array element and array
6578 end bracket to new line.
6579
6580 2020-04-29 Tom de Vries <tdevries@suse.de>
6581
6582 PR symtab/25889
6583 * linespec.c (find_method): Fix ix calculation.
6584
6585 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6586
6587 * syscalls/update-netbsd.sh: New file.
6588 * syscalls/netbsd.xml: Regenerate.
6589 * data-directory/Makefile.in: Register `netbsd.xml' in
6590 `SYSCALLS_FILES'.
6591
6592 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * syscalls/update-freebsd.sh: Add double quotes.
6595
6596 2020-04-28 Tom Tromey <tom@tromey.com>
6597
6598 * NEWS: Update.
6599 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6600 (cmdpy_init): Allow class_tui.
6601
6602 2020-04-28 Mark Williams <mark@myosotissp.com>
6603
6604 PR gdb/24480
6605 * dwarf2read.c: Add missing assingments to list_in_scope when
6606 start_symtab was already called.
6607
6608 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6609
6610 PR gdb/25881
6611 * dwarf2/read.c (offset_map_type): Use
6612 gdb:hash_enum<sect_offset> as hash function.
6613
6614 2020-04-28 Tom de Vries <tdevries@suse.de>
6615
6616 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6617 with DW_AT_signature.
6618
6619 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6620
6621 * configure.ac: Remove check for fs_base/gs_base in
6622 user_regs_struct.
6623 * configure: Re-generate.
6624 * config.in: Re-generate.
6625 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6626 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6627 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6628
6629 2020-04-27 Luis Machado <luis.machado@linaro.org>
6630
6631 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6632 problematic inline frame unwinding situation.
6633 * frame.c (frame_id_computed_p): New function.
6634 * frame.h (frame_id_computed_p): New prototype.
6635
6636 2020-04-26 Tom Tromey <tom@tromey.com>
6637
6638 * command.h (enum command_class) <class_pseudo>: Remove.
6639
6640 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6641
6642 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6643 and whitespace.
6644
6645 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6646
6647 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6648 `PT_GET_PROCESS_STATE' block.
6649
6650 2020-04-24 Tom Tromey <tom@tromey.com>
6651
6652 * symtab.h (symbol_get_demangled_name): Don't declare.
6653 * symtab.c (symbol_get_demangled_name): Remove.
6654 (general_symbol_info::natural_name)
6655 (general_symbol_info::demangled_name): Update.
6656
6657 2020-04-24 Tom Tromey <tom@tromey.com>
6658
6659 PR rust/25025:
6660 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6661
6662 2020-04-24 Tom Tromey <tom@tromey.com>
6663
6664 PR symtab/12707:
6665 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6666 exists.
6667 (new_symbol): Likewise.
6668 * compile/compile-object-load.c (get_out_value_type): Use
6669 symbol_matches_search_name.
6670
6671 2020-04-24 Tom Tromey <tom@tromey.com>
6672
6673 * dwarf2/read.c (add_partial_symbol): Do not call
6674 compute_and_set_names.
6675
6676 2020-04-24 Tom Tromey <tom@tromey.com>
6677
6678 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6679 overload.
6680
6681 2020-04-24 Tom Tromey <tom@tromey.com>
6682
6683 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6684 (add_psymbol_to_list): New overload. Make old overload call new
6685 one.
6686 * psympriv.h (add_psymbol_to_list): New overload.
6687
6688 2020-04-24 Tom Tromey <tom@tromey.com>
6689
6690 * dwarf2/read.c (partial_die_info::read) <case
6691 DW_AT_linkage_name>: Use value_as_string.
6692 (dwarf2_string_attr): Use value_as_string.
6693 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6694 method.
6695 * dwarf2/attribute.c (attribute::value_as_string): New method.
6696
6697 2020-04-24 Tom Tromey <tom@tromey.com>
6698
6699 * symtab.c (general_symbol_info::natural_name)
6700 (general_symbol_info::demangled_name): Check for language_rust.
6701
6702 2020-04-24 Tom Tromey <tom@tromey.com>
6703
6704 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6705 (dwarf2_physname): ... from here.
6706 (partial_die_info::read): Add Rust "{" hack.
6707
6708 2020-04-24 Tom Tromey <tom@tromey.com>
6709
6710 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6711 method.
6712 (symbol_set_demangled_name): Don't declare.
6713 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6714 symbol_set_demangled_name.
6715 (general_symbol_info::set_language)
6716 (general_symbol_info::compute_and_set_names): Update.
6717 * minsyms.c (minimal_symbol_reader::install): Update.
6718 * dwarf2/read.c (new_symbol): Update.
6719
6720 2020-04-24 Tom Tromey <tromey@adacore.com>
6721
6722 PR python/23662:
6723 * python/py-type.c (convert_field): Handle
6724 FIELD_LOC_KIND_DWARF_BLOCK.
6725 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6726 (typy_get_dynamic): Nw function.
6727 (type_object_getset): Add "dynamic".
6728 * NEWS: Add entry.
6729
6730 2020-04-24 Tom Tromey <tromey@adacore.com>
6731
6732 * ada-typeprint.c (print_choices, print_variant_part)
6733 (print_record_field_types_dynamic): New functions.
6734 (print_record_field_types): Use print_record_field_types_dynamic.
6735
6736 2020-04-24 Tom Tromey <tromey@adacore.com>
6737
6738 * dwarf2/read.c (handle_data_member_location): New overload.
6739 (dwarf2_add_field): Use it.
6740 (decode_locdesc): Add "computed" parameter. Update comment.
6741 * gdbtypes.c (is_dynamic_type_internal): Also look for
6742 FIELD_LOC_KIND_DWARF_BLOCK.
6743 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6744 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6745 virtual base classes.
6746 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6747 FIELD_LOC_KIND_DWARF_BLOCK.
6748
6749 2020-04-24 Tom Tromey <tromey@adacore.com>
6750
6751 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6752 * gdbtypes.c (is_dynamic_type_internal): Check
6753 TYPE_HAS_DYNAMIC_LENGTH.
6754 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6755 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6756 New macros.
6757 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6758 constant.
6759
6760 2020-04-24 Tom Tromey <tromey@adacore.com>
6761
6762 * dwarf2/read.c (struct variant_field): Rewrite.
6763 (struct variant_part_builder): New.
6764 (struct nextfield): Remove "variant" field. Add "offset".
6765 (struct field_info): Add "current_variant_part" and
6766 "variant_parts".
6767 (alloc_discriminant_info): Remove.
6768 (alloc_rust_variant): New function.
6769 (quirk_rust_enum): Update.
6770 (dwarf2_add_field): Set "offset" member. Don't handle
6771 DW_TAG_variant_part.
6772 (offset_map_type): New typedef.
6773 (convert_variant_range, create_one_variant)
6774 (create_one_variant_part, create_variant_parts)
6775 (add_variant_property): New functions.
6776 (dwarf2_attach_fields_to_type): Call add_variant_property.
6777 (read_structure_type): Don't handle DW_TAG_variant_part.
6778 (handle_variant_part, handle_variant): New functions.
6779 (handle_struct_member_die): Use them.
6780 (process_structure_scope): Don't handle variant parts.
6781 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6782 (struct discriminant_info): Remove.
6783 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6784 (struct main_type) <flag_discriminated_union>: Remove.
6785 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6786 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6787 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6788 Update.
6789 * valops.c (value_union_variant): Remove.
6790 * value.h (value_union_variant): Don't declare.
6791
6792 2020-04-24 Tom Tromey <tromey@adacore.com>
6793
6794 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6795 (ada_value_primitive_packed_val): Update.
6796 * ada-valprint.c (ada_value_print_1): Update.
6797 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6798 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6799 just an address. Use evaluate_for_locexpr_baton.
6800 (dwarf2_evaluate_property): Update.
6801 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6802 array_view.
6803 * findvar.c (default_read_var_value): Update.
6804 * gdbtypes.c (compute_variant_fields_inner)
6805 (resolve_dynamic_type_internal): Update.
6806 (resolve_dynamic_type): Change type of valaddr parameter.
6807 * gdbtypes.h (resolve_dynamic_type): Update.
6808 * valarith.c (value_subscripted_rvalue): Update.
6809 * value.c (value_from_contents_and_address): Update.
6810
6811 2020-04-24 Tom Tromey <tromey@adacore.com>
6812
6813 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6814 "push_initial_value" parameter.
6815 (dwarf2_evaluate_property): Likewise.
6816 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6817
6818 2020-04-24 Tom Tromey <tromey@adacore.com>
6819
6820 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6821 (variant::matches, compute_variant_fields_recurse)
6822 (compute_variant_fields_inner, compute_variant_fields): New
6823 functions.
6824 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6825 Use resolved_type after type is made.
6826 (operator==): Add new cases.
6827 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6828 (struct discriminant_range, struct variant, struct variant_part):
6829 New.
6830 (union dynamic_prop_data) <variant_parts, original_type>: New
6831 members.
6832 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6833 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6834 constants.
6835 * value.c (unpack_bits_as_long): Now public.
6836 * value.h (unpack_bits_as_long): Declare.
6837
6838 2020-04-24 Tom Tromey <tromey@adacore.com>
6839
6840 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6841 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6842
6843 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6844
6845 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6846
6847 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6848
6849 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6850 (remove_fork_catchpoint, post_startup_inferior)
6851 (post_attach): Move...
6852 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6853 (remove_fork_catchpoint, post_startup_inferior)
6854 (post_attach): ...here.
6855 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6856 (remove_fork_catchpoint, post_startup_inferior)
6857 (post_attach): Move...
6858 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6859 (remove_fork_catchpoint, post_startup_inferior)
6860 (post_attach): ...here.
6861
6862 2020-04-24 Tom Tromey <tromey@adacore.com>
6863
6864 * nat/windows-nat.h (struct windows_thread_info)
6865 <pc_adjusted>: New member.
6866 * windows-nat.c (windows_fetch_one_register): Check
6867 pc_adjusted.
6868 (windows_nat_target::get_windows_debug_event)
6869 (windows_nat_target::wait): Set pc_adjusted.
6870
6871 2020-04-24 Tom de Vries <tdevries@suse.de>
6872
6873 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6874 Run gdb-add-index inside temp dir.
6875
6876 2020-04-23 Tom Tromey <tromey@adacore.com>
6877
6878 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6879 in loop.
6880
6881 2020-04-23 Luis Machado <luis.machado@linaro.org>
6882
6883 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6884 get_frame_register instead of gdbarch_unwind_pc.
6885
6886 2020-04-23 Tom de Vries <tdevries@suse.de>
6887
6888 * symtab.c (lookup_global_symbol): Prefer def over decl.
6889
6890 2020-04-23 Tom de Vries <tdevries@suse.de>
6891
6892 PR symtab/25807
6893 * block.c (best_symbol, better_symbol): Promote to external.
6894 * block.h (best_symbol, better_symbol): Declare.
6895 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6896 decl.
6897
6898 2020-04-23 Tom Tromey <tromey@adacore.com>
6899
6900 PR ada/25837:
6901 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6902 "const char *", not a "const std::string &".
6903 <name_and_matcher::operator==>: Update.
6904 * unittests/lookup_name_info-selftests.c: Change type of
6905 "result".
6906
6907 2020-04-23 Tom Tromey <tom@tromey.com>
6908
6909 * inferior.h (iterate_over_inferiors): Don't declare.
6910 * inferior.c (iterate_over_inferiors): Remove.
6911 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6912 Remove.
6913 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6914 use iterate_over_inferiors.
6915 (darwin_resume_inferior_it)
6916 (struct resume_inferior_threads_param)
6917 (darwin_resume_inferior_threads_it): Remove.
6918 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6919
6920 2020-04-23 Tom de Vries <tdevries@suse.de>
6921
6922 * blockframe.c (find_pc_partial_function): Use
6923 find_pc_sect_compunit_symtab rather than
6924 objfile->sf->qf->find_pc_sect_compunit_symtab.
6925
6926 2020-04-22 Tom de Vries <tdevries@suse.de>
6927
6928 PR symtab/25764
6929 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6930 in psymtabs.
6931
6932 2020-04-22 Tom de Vries <tdevries@suse.de>
6933
6934 PR symtab/25801
6935 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6936 symtabs.
6937
6938 2020-04-22 Tom de Vries <tdevries@suse.de>
6939
6940 PR symtab/25700
6941 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6942 CU if already created.
6943
6944 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6945
6946 * infrun.c (displaced_step_fixup): Switch to the event_thread
6947 before calling displaced_step_restore, not after.
6948
6949 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6950
6951 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6952 its inferior is not recorded by us.
6953 (record_btrace_target_open): Replace call to
6954 all_non_exited_threads () with call to current_inferior
6955 ()->non_exited_threads ().
6956 (record_btrace_target::stop_recording): Likewise.
6957 (record_btrace_target::close): Likewise.
6958 (record_btrace_target::wait): Likewise.
6959 (record_btrace_target::record_stop_replaying): Likewise.
6960
6961 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6962
6963 * btrace.c (btrace_enable): Throw an error on double enables and
6964 when enabling recording fails.
6965 (btrace_disable): Throw an error if the thread is not recorded.
6966
6967 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6968
6969 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6970 request if we do not have a thread_info.
6971
6972 2020-04-21 Tom de Vries <tdevries@suse.de>
6973
6974 PR gdb/25471
6975 * thread.c
6976 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6977 exception in get_frame_id.
6978
6979 2020-04-20 Tom Tromey <tromey@adacore.com>
6980
6981 * python/python.c (struct gdbpy_event): Mark move constructor as
6982 noexcept.
6983 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6984 constructor as noexcept.
6985 * completer.h (struct completion_result): Mark move constructor as
6986 noexcept.
6987 * completer.c (completion_result::completion_result): Use
6988 initialization style. Don't call reset_match_list.
6989
6990 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6991
6992 * MAINTAINERS (Write After Approval): Add myself.
6993
6994 2020-04-18 Tom Tromey <tom@tromey.com>
6995
6996 * windows-tdep.c (init_w32_command_list)
6997 (w32_prefix_command_valid): Restore.
6998 (_initialize_windows_tdep): Call init_w32_command_list.
6999
7000 2020-04-18 Tom Tromey <tom@tromey.com>
7001
7002 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7003 * value.c (value_fn_field): Update.
7004 * valops.c (find_function_in_inferior)
7005 (value_allocate_space_in_inferior): Update.
7006 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7007 Update.
7008 * tui/tui-source.c (tui_source_window::set_contents): Update.
7009 * symtab.c (lookup_global_or_static_symbol)
7010 (find_function_start_sal_1, skip_prologue_sal)
7011 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7012 * symmisc.c (dump_msymbols, dump_symtab_1)
7013 (maintenance_print_one_line_table): Update.
7014 * symfile.c (init_entry_point_info, section_is_mapped)
7015 (list_overlays_command, simple_read_overlay_table)
7016 (simple_overlay_update_1): Update.
7017 * stap-probe.c (handle_stap_probe): Update.
7018 * stabsread.c (dbx_init_float_type, define_symbol)
7019 (read_one_struct_field, read_enum_type, read_range_type): Update.
7020 * source.c (info_line_command): Update.
7021 * python/python.c (gdbpy_source_objfile_script)
7022 (gdbpy_execute_objfile_script): Update.
7023 * python/py-type.c (save_objfile_types): Update.
7024 * python/py-objfile.c (py_free_objfile): Update.
7025 * python/py-inferior.c (python_new_objfile): Update.
7026 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7027 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7028 (maintenance_check_psymtabs): Update.
7029 * printcmd.c (info_address_command): Update.
7030 * objfiles.h (struct objfile) <arch>: New method, from
7031 get_objfile_arch.
7032 (get_objfile_arch): Don't declare.
7033 * objfiles.c (get_objfile_arch): Remove.
7034 (filter_overlapping_sections): Update.
7035 * minsyms.c (msymbol_is_function): Update.
7036 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7037 (output_nondebug_symbol): Update.
7038 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7039 (mdebug_expand_psymtab): Update.
7040 * machoread.c (macho_add_oso_symfile): Update.
7041 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7042 Update.
7043 * linux-fork.c (checkpoint_command): Update.
7044 * linespec.c (convert_linespec_to_sals): Update.
7045 * jit.c (finalize_symtab): Update.
7046 * infrun.c (insert_exception_resume_from_probe): Update.
7047 * ia64-tdep.c (ia64_find_unwind_table): Update.
7048 * hppa-tdep.c (internalize_unwinds): Update.
7049 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7050 Update.
7051 * gcore.c (call_target_sbrk): Update.
7052 * elfread.c (record_minimal_symbol, elf_symtab_read)
7053 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7054 (elf_gnu_ifunc_resolve_by_got): Update.
7055 * dwarf2/read.c (create_addrmap_from_index)
7056 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7057 (read_debug_names_from_section)
7058 (process_psymtab_comp_unit_reader, add_partial_symbol)
7059 (add_partial_subprogram, process_full_comp_unit)
7060 (read_file_scope, read_func_scope, read_lexical_block_scope)
7061 (read_call_site_scope, dwarf2_ranges_read)
7062 (dwarf2_record_block_ranges, dwarf2_add_field)
7063 (mark_common_block_symbol_computed, read_tag_pointer_type)
7064 (read_tag_string_type, dwarf2_init_float_type)
7065 (dwarf2_init_complex_target_type, read_base_type)
7066 (partial_die_info::read, partial_die_info::read)
7067 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7068 (dwarf2_fetch_die_loc_sect_off): Update.
7069 * dwarf2/loc.c (dwarf2_find_location_expression)
7070 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7071 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7072 (dwarf2_loc_desc_get_symbol_read_needs)
7073 (locexpr_describe_location_piece, locexpr_describe_location_1)
7074 (loclist_describe_location): Update.
7075 * dwarf2/index-write.c (write_debug_names): Update.
7076 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7077 * dtrace-probe.c (dtrace_process_dof): Update.
7078 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7079 (process_one_symbol): Update.
7080 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7081 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7082 (coff_read_enum_type): Update.
7083 * cli/cli-cmds.c (edit_command, list_command): Update.
7084 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7085 * breakpoint.c (create_overlay_event_breakpoint)
7086 (create_longjmp_master_breakpoint)
7087 (create_std_terminate_master_breakpoint)
7088 (create_exception_master_breakpoint, get_sal_arch): Update.
7089 * block.c (block_gdbarch): Update.
7090 * annotate.c (annotate_source_line): Update.
7091
7092 2020-04-17 Tom Tromey <tromey@adacore.com>
7093
7094 * auto-load.c (show_auto_load_cmd): Remove.
7095 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7096 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7097 (maintenance_print_arc_command): Remove.
7098 * tui/tui-win.c (tui_command): Remove.
7099 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7100 * tui/tui-layout.c (tui_layout_command): Remove.
7101 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7102 * python/python.c (user_set_python, user_show_python): Remove.
7103 (_initialize_python): Use add_basic_prefix_cmd,
7104 add_show_prefix_cmd.
7105 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7106 (install_gdb_commands): Use add_basic_prefix_cmd,
7107 add_show_prefix_cmd.
7108 (info_guile_command): Remove.
7109 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7110 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7111 add_show_prefix_cmd.
7112 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7113 Remove do_set and do_show parameters.
7114 * cli/cli-style.c (set_style, show_style): Remove.
7115 (_initialize_cli_style): Use add_basic_prefix_cmd,
7116 add_show_prefix_cmd.
7117 (cli_style_option::add_setshow_commands): Remove do_set and
7118 do_show parameters.
7119 (cli_style_option::add_setshow_commands): Use
7120 add_basic_prefix_cmd, add_show_prefix_cmd.
7121 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7122 (set_style_name): Remove.
7123 * cli/cli-dump.c (dump_command, append_command): Remove.
7124 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7125 (tekhex_dump_command, binary_dump_command)
7126 (binary_append_command): Remove.
7127 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7128 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7129 (init_w32_command_list): Remove; move into ...
7130 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7131 * valprint.c (set_print, show_print, set_print_raw)
7132 (show_print_raw): Remove.
7133 (_initialize_valprint): Use add_basic_prefix_cmd,
7134 add_show_prefix_cmd.
7135 * typeprint.c (set_print_type, show_print_type): Remove.
7136 (_initialize_typeprint): Use add_basic_prefix_cmd,
7137 add_show_prefix_cmd.
7138 * record.c (set_record_command, show_record_command): Remove.
7139 (_initialize_record): Use add_basic_prefix_cmd,
7140 add_show_prefix_cmd.
7141 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7142 add_show_prefix_cmd.
7143 (info_command, show_command, set_debug, show_debug): Remove.
7144 * top.h (set_history, show_history): Don't declare.
7145 * top.c (set_history, show_history): Remove.
7146 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7147 (unset_tdesc_cmd): Remove.
7148 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7149 add_show_prefix_cmd.
7150 * symtab.c (info_module_command): Remove.
7151 (_initialize_symtab): Use add_basic_prefix_cmd.
7152 * symfile.c (overlay_command): Remove.
7153 (_initialize_symfile): Use add_basic_prefix_cmd.
7154 * sparc64-tdep.c (info_adi_command): Remove.
7155 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7156 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7157 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7158 add_show_prefix_cmd.
7159 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7160 (_initialize_serial): Use add_basic_prefix_cmd,
7161 add_show_prefix_cmd.
7162 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7163 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7164 add_show_prefix_cmd.
7165 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7166 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7167 add_show_prefix_cmd.
7168 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7169 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7170 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7171 add_show_prefix_cmd.
7172 * remote.c (remote_command, set_remote_cmd): Remove.
7173 (_initialize_remote): Use add_basic_prefix_cmd.
7174 * record-full.c (set_record_full_command)
7175 (show_record_full_command): Remove.
7176 (_initialize_record_full): Use add_basic_prefix_cmd,
7177 add_show_prefix_cmd.
7178 * record-btrace.c (cmd_set_record_btrace)
7179 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7180 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7181 (cmd_show_record_btrace_pt): Remove.
7182 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7183 add_show_prefix_cmd.
7184 * ravenscar-thread.c (set_ravenscar_command)
7185 (show_ravenscar_command): Remove.
7186 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7187 add_show_prefix_cmd.
7188 * mips-tdep.c (show_mips_command, set_mips_command)
7189 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7190 add_show_prefix_cmd.
7191 * maint.c (maintenance_command, maintenance_info_command)
7192 (maintenance_check_command, maintenance_print_command)
7193 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7194 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7195 add_show_prefix_cmd.
7196 (show_per_command_cmd): Remove.
7197 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7198 Remove.
7199 (maintenance_show_test_settings_cmd): Remove.
7200 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7201 add_show_prefix_cmd.
7202 * maint-test-options.c (maintenance_test_options_command):
7203 Remove.
7204 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7205 * macrocmd.c (macro_command): Remove
7206 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7207 * language.c (set_check, show_check): Remove.
7208 (_initialize_language): Use add_basic_prefix_cmd,
7209 add_show_prefix_cmd.
7210 * infcmd.c (unset_command): Remove.
7211 (_initialize_infcmd): Use add_basic_prefix_cmd.
7212 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7213 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 * go32-nat.c (go32_info_dos_command): Remove.
7216 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7217 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7218 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7219 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7220 (_initialize_frame): Use add_basic_prefix_cmd,
7221 add_show_prefix_cmd.
7222 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7223 (_initialize_dcache): Use add_basic_prefix_cmd,
7224 add_show_prefix_cmd.
7225 * cp-support.c (maint_cplus_command): Remove.
7226 (_initialize_cp_support): Use add_basic_prefix_cmd.
7227 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7228 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7229 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7230 add_basic_prefix_cmd, add_show_prefix_cmd.
7231 * breakpoint.c (save_command): Remove.
7232 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7233 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7234 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7235 add_show_prefix_cmd.
7236 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7237 (set_ada_command, show_ada_command): Remove.
7238 (_initialize_ada_language): Use add_basic_prefix_cmd,
7239 add_show_prefix_cmd.
7240 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7241
7242 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7243
7244 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7245 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7246
7247 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7250 warning messages.
7251
7252 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7253
7254 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7255 import table is not at beginning of .idata section.
7256
7257 2020-04-16 Pedro Alves <palves@redhat.com>
7258
7259 * inferior.c (delete_inferior): Use delete operator directly
7260 instead of delete_program_space.
7261 * progspace.c (add_program_space): New, factored out from
7262 program_space::program_space.
7263 (remove_program_space): New, factored out from
7264 delete_program_space.
7265 (program_space::program_space): Remove intro comment. Rewrite.
7266 (program_space::~program_space): Remove intro comment. Call
7267 remove_program_space.
7268 (delete_program_space): Delete.
7269 * progspace.h (program_space::program_space): Make explicit. Move
7270 intro comment here, adjusted.
7271 (program_space::~program_space): Move intro comment here,
7272 adjusted.
7273 (delete_program_space): Remove.
7274
7275 2020-04-16 Tom Tromey <tromey@adacore.com>
7276
7277 * windows-nat.c (windows_nat::handle_access_violation): New
7278 function.
7279 * nat/windows-nat.h (handle_access_violation): Declare.
7280 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7281 windows-nat.c. Call handle_access_violation.
7282
7283 2020-04-16 Tom de Vries <tdevries@suse.de>
7284
7285 PR symtab/25791
7286 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7287 CUs without psymtab.
7288
7289 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7290
7291 * python/python.c (do_start_initialization): Don't call
7292 PyEval_InitThreads for Python 3.9 and beyond.
7293
7294 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7295
7296 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7297 thread functions.
7298 (obsd_nat_target::wait): Likewise.
7299
7300 2020-04-15 Tom Tromey <tromey@adacore.com>
7301
7302 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7303 (DEBUG_EXCEPT): Use debug_printf.
7304
7305 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7306
7307 * completer.c (class completion_tracker::completion_hash_entry)
7308 <hash_name>: New member function.
7309 (completion_tracker::discard_completions): New callback to hash a
7310 completion_hash_entry, pass this to htab_create_alloc.
7311
7312 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7313
7314 * windows-nat.c (windows_make_so): Warn rather than stopping with
7315 an error if realpath() fails.
7316
7317 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7318
7319 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7320 (nbsd_nat_target::info_proc): Add do_status.
7321
7322 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7323 Tom de Vries <tdevries@suse.de>
7324
7325 PR symtab/25718
7326 * psympriv.h (struct partial_symtab::read_symtab)
7327 (struct partial_symtab::expand_psymtab)
7328 (struct partial_symtab::read_dependencies): Update comments.
7329 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7330 read_symtab for includer.
7331 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7332 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7333 (struct dwarf2_include_psymtab::m_readin): Remove.
7334 (struct dwarf2_include_psymtab::includer): New member function.
7335 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7336
7337 2020-04-14 Tom de Vries <tdevries@suse.de>
7338
7339 PR symtab/25720
7340 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7341 with NULL symbol_matcher and lookup_name.
7342 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7343 and lookup_name.
7344 * dwarf2/read.c (dw2_expand_symtabs_matching)
7345 (dw2_debug_names_expand_symtabs_matching): Same.
7346 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7347 Make lookup_name a pointer. Update comment.
7348 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7349 lookup_name being a pointer.
7350 * symfile.c (expand_symtabs_matching): Same.
7351 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7352 * linespec.c (iterate_over_all_matching_symtabs): Same.
7353
7354 2020-04-13 Tom Tromey <tom@tromey.com>
7355
7356 * run-on-main-thread.c: Update include.
7357 * unittests/main-thread-selftests.c: Update include.
7358 * tui/tui-win.c: Update include.
7359 * tui/tui-io.c: Update include.
7360 * tui/tui-interp.c: Update include.
7361 * tui/tui-hooks.c: Update include.
7362 * top.h: Update include.
7363 * top.c: Update include.
7364 * ser-base.c: Update include.
7365 * remote.c: Update include.
7366 * remote-notif.c: Update include.
7367 * remote-fileio.c: Update include.
7368 * record-full.c: Update include.
7369 * record-btrace.c: Update include.
7370 * python/python.c: Update include.
7371 * posix-hdep.c: Update include.
7372 * mingw-hdep.c: Update include.
7373 * mi/mi-main.c: Update include.
7374 * mi/mi-interp.c: Update include.
7375 * main.c: Update include.
7376 * linux-nat.c: Update include.
7377 * interps.c: Update include.
7378 * infrun.c: Update include.
7379 * inf-loop.c: Update include.
7380 * event-top.c: Update include.
7381 * event-loop.c: Move to ../gdbsupport/.
7382 * event-loop.h: Move to ../gdbsupport/.
7383 * async-event.h: Update include.
7384 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7385
7386 2020-04-13 Tom Tromey <tom@tromey.com>
7387
7388 * tui/tui-win.c: Include async-event.h.
7389 * remote.c: Include async-event.h.
7390 * remote-notif.c: Include async-event.h.
7391 * record-full.c: Include async-event.h.
7392 * record-btrace.c: Include async-event.h.
7393 * infrun.c: Include async-event.h.
7394 * event-top.c: Include async-event.h.
7395 * event-loop.h: Move some declarations to async-event.h.
7396 * event-loop.c: Don't include ser-event.h or top.h. Move some
7397 code to async-event.c.
7398 * async-event.h: New file.
7399 * async-event.c: New file.
7400 * Makefile.in (COMMON_SFILES): Add async-event.c.
7401 (HFILES_NO_SRCDIR): Add async-event.h.
7402
7403 2020-04-13 Tom Tromey <tom@tromey.com>
7404
7405 * utils.c (flush_streams): New function.
7406 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7407
7408 2020-04-13 Tom Tromey <tom@tromey.com>
7409
7410 * event-loop.c (handle_file_event): Use warning, not
7411 printf_unfiltered.
7412
7413 2020-04-13 Tom Tromey <tom@tromey.com>
7414
7415 * event-loop.c: Include <chrono>.
7416
7417 2020-04-13 Tom Tromey <tom@tromey.com>
7418
7419 * gdb_select.h: Move to ../gdbsupport/.
7420 * event-loop.c: Update include path.
7421 * top.c: Update include path.
7422 * ser-base.c: Update include path.
7423 * ui-file.c: Update include path.
7424 * ser-tcp.c: Update include path.
7425 * guile/scm-ports.c: Update include path.
7426 * posix-hdep.c: Update include path.
7427 * ser-unix.c: Update include path.
7428 * gdb_usleep.c: Update include path.
7429 * mingw-hdep.c: Update include path.
7430 * inflow.c: Update include path.
7431 * infrun.c: Update include path.
7432 * event-top.c: Update include path.
7433
7434 2020-04-13 Tom Tromey <tom@tromey.com>
7435
7436 * configure: Rebuild.
7437 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7438
7439 2020-04-13 Tom Tromey <tom@tromey.com>
7440
7441 * event-loop.h (start_event_loop): Don't declare.
7442 * event-loop.c (start_event_loop): Move...
7443 * main.c (start_event_loop): ...here. Now static.
7444
7445 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7446
7447 * MAINTAINERS: Update my email address.
7448
7449 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7450
7451 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7452 IP_ALL.
7453
7454 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7455
7456 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7457 (nbsd_nat_target::info_proc): Add do_cmdline.
7458
7459 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7460
7461 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7462 (nbsd_nat_target::info_proc): Add do_cwd.
7463
7464 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7465
7466 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7467
7468 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7469
7470 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7471 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7472 (nbsd_nat_target::info_proc): New functions.
7473 * nbsd-nat.c (kinfo_get_vmmap): New function.
7474 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7475 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7476 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7477 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7478 functions.
7479 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7480 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7481 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7482 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7483 (KINFO_VME_FLAG_GROWS_DOWN): New.
7484
7485 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7486
7487 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7488 bit shift.
7489
7490 2020-04-10 Tom Tromey <tromey@adacore.com>
7491
7492 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7493
7494 2020-04-10 Tom Tromey <tromey@adacore.com>
7495
7496 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7497 separate debug files.
7498
7499 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7500
7501 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7502 Move to...
7503 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7504 ... here.
7505 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7506 Check for STATUS_WX86_BREAKPOINT.
7507 (windows_nat_target::wait): Same.
7508
7509 2020-04-10 Tom de Vries <tdevries@suse.de>
7510
7511 PR cli/25808
7512 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7513
7514 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7515
7516 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7517 (Write After Approval): Remove Tom de Vries.
7518
7519 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7520
7521 revert partially:
7522 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7523
7524 * buildsym.c (record_line): Fix undefined behavior and preserve
7525 lines at eof.
7526
7527 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7528
7529 * auxv.h (svr4_auxv_parse): New.
7530 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7531 and generic_auxv_parse.
7532 (svr4_auxv_parse): Add.
7533 * obsd-tdep.c: Include "auxv.h".
7534 (obsd_auxv_parse): Remove.
7535 (obsd_init_abi): Remove comment.
7536 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7537 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7538 * nbsd-tdep.c: Include "auxv.h".
7539 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7540
7541 2020-04-08 Tom Tromey <tromey@adacore.com>
7542
7543 * nat/windows-nat.h (last_wait_event): Don't declare.
7544 (wait_for_debug_event): Update comment.
7545 * nat/windows-nat.c (last_wait_event): Now static.
7546
7547 2020-04-08 Tom Tromey <tromey@adacore.com>
7548
7549 * windows-nat.c (wait_for_debug_event): Move to
7550 nat/windows-nat.c.
7551 * nat/windows-nat.h (wait_for_debug_event): Declare.
7552 * nat/windows-nat.c (wait_for_debug_event): Move from
7553 windows-nat.c. No longer static.
7554
7555 2020-04-08 Tom Tromey <tromey@adacore.com>
7556
7557 * windows-nat.c (get_windows_debug_event): Use
7558 fetch_pending_stop.
7559 * nat/windows-nat.h (fetch_pending_stop): Declare.
7560 * nat/windows-nat.c (fetch_pending_stop): New function.
7561
7562 2020-04-08 Tom Tromey <tromey@adacore.com>
7563
7564 * windows-nat.c (windows_continue): Use matching_pending_stop and
7565 continue_last_debug_event.
7566 * nat/windows-nat.h (matching_pending_stop)
7567 (continue_last_debug_event): Declare.
7568 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7569 (matching_pending_stop, continue_last_debug_event): New
7570 functions.
7571
7572 2020-04-08 Tom Tromey <tromey@adacore.com>
7573
7574 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7575 (handle_exception_result): Move to nat/windows-nat.h.
7576 (DEBUG_EXCEPTION_SIMPLE): Remove.
7577 (windows_nat::handle_ms_vc_exception): New function.
7578 (handle_exception): Move to nat/windows-nat.c.
7579 (get_windows_debug_event): Update.
7580 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7581 nat/windows-nat.c.
7582 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7583 (handle_exception_result): Move from windows-nat.c.
7584 (handle_exception): Declare.
7585 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7586 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7587 windows-nat.c.
7588
7589 2020-04-08 Tom Tromey <tromey@adacore.com>
7590
7591 * windows-nat.c (exception_count, event_count): Remove.
7592 (handle_exception, get_windows_debug_event)
7593 (do_initial_windows_stuff): Update.
7594
7595 2020-04-08 Tom Tromey <tromey@adacore.com>
7596
7597 * windows-nat.c (windows_nat::handle_load_dll)
7598 (windows_nat::handle_unload_dll): Rename. No longer static.
7599 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7600 Declare.
7601
7602 2020-04-08 Tom Tromey <tromey@adacore.com>
7603
7604 * complaints.h (stop_whining): Declare at top-level.
7605 (complaint): Don't declare stop_whining.
7606
7607 2020-04-08 Tom Tromey <tromey@adacore.com>
7608
7609 * windows-nat.c (windows_nat::handle_output_debug_string):
7610 Rename. No longer static.
7611 * nat/windows-nat.h (handle_output_debug_string): Declare.
7612
7613 2020-04-08 Tom Tromey <tromey@adacore.com>
7614
7615 * windows-nat.c (current_process_handle, current_process_id)
7616 (main_thread_id, last_sig, current_event, last_wait_event)
7617 (current_windows_thread, desired_stop_thread_id, pending_stops)
7618 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7619 (display_selectors, fake_create_process)
7620 (get_windows_debug_event): Update.
7621 * nat/windows-nat.h (current_process_handle, current_process_id)
7622 (main_thread_id, last_sig, current_event, last_wait_event)
7623 (current_windows_thread, desired_stop_thread_id, pending_stops)
7624 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7625 * nat/windows-nat.c (current_process_handle, current_process_id)
7626 (main_thread_id, last_sig, current_event, last_wait_event)
7627 (current_windows_thread, desired_stop_thread_id, pending_stops)
7628 (siginfo_er): New globals. Move from windows-nat.c.
7629
7630 2020-04-08 Tom Tromey <tromey@adacore.com>
7631
7632 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7633 (handle_load_dll): Update.
7634 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7635
7636 2020-04-08 Tom Tromey <tromey@adacore.com>
7637
7638 * windows-nat.c (enum thread_disposition_type): Move to
7639 nat/windows-nat.h.
7640 (windows_nat::thread_rec): Rename from thread_rec. No longer
7641 static.
7642 (windows_add_thread, windows_nat_target::fetch_registers)
7643 (windows_nat_target::store_registers, handle_exception)
7644 (windows_nat_target::resume, get_windows_debug_event)
7645 (windows_nat_target::get_tib_address)
7646 (windows_nat_target::thread_name)
7647 (windows_nat_target::thread_alive): Update.
7648 * nat/windows-nat.h (enum thread_disposition_type): Move from
7649 windows-nat.c.
7650 (thread_rec): Declare.
7651
7652 2020-04-08 Tom Tromey <tromey@adacore.com>
7653
7654 * windows-nat.c: Add "using namespace".
7655 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7656 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7657
7658 2020-04-08 Tom Tromey <tromey@adacore.com>
7659
7660 * nat/windows-nat.h (struct windows_thread_info): Declare
7661 destructor.
7662 * nat/windows-nat.c (~windows_thread_info): New.
7663
7664 2020-04-08 Tom Tromey <tromey@adacore.com>
7665
7666 PR gdb/22992
7667 * windows-nat.c (current_event): Update comment.
7668 (last_wait_event, desired_stop_thread_id): New globals.
7669 (struct pending_stop): New.
7670 (pending_stops): New global.
7671 (windows_nat_target) <stopped_by_sw_breakpoint>
7672 <supports_stopped_by_sw_breakpoint>: New methods.
7673 (windows_fetch_one_register): Add assertions. Adjust PC.
7674 (windows_continue): Handle pending stops. Suspend other threads
7675 when stepping. Use last_wait_event
7676 (wait_for_debug_event): New function.
7677 (get_windows_debug_event): Use wait_for_debug_event. Handle
7678 pending stops. Queue spurious stops.
7679 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7680 (windows_nat_target::kill): Use wait_for_debug_event.
7681 * nat/windows-nat.h (struct windows_thread_info)
7682 <stopped_at_software_breakpoint>: New field.
7683 * nat/windows-nat.c (windows_thread_info::resume): Clear
7684 stopped_at_software_breakpoint.
7685
7686 2020-04-08 Tom Tromey <tromey@adacore.com>
7687
7688 * windows-nat.c (enum thread_disposition_type): New.
7689 (thread_rec): Replace "get_context" parameter with "disposition";
7690 change type.
7691 (windows_add_thread, windows_nat_target::fetch_registers)
7692 (windows_nat_target::store_registers, handle_exception)
7693 (windows_nat_target::resume, get_windows_debug_event)
7694 (windows_nat_target::get_tib_address)
7695 (windows_nat_target::thread_name)
7696 (windows_nat_target::thread_alive): Update.
7697
7698 2020-04-08 Tom Tromey <tromey@adacore.com>
7699
7700 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7701 (windows_continue): Use windows_continue::resume.
7702 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7703 resume>: Declare new methods.
7704 * nat/windows-nat.c: New file.
7705 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7706
7707 2020-04-08 Tom Tromey <tromey@adacore.com>
7708
7709 * windows-nat.c (windows_add_thread, windows_delete_thread)
7710 (windows_nat_target::fetch_registers)
7711 (windows_nat_target::store_registers, fake_create_process)
7712 (windows_nat_target::resume, windows_nat_target::resume)
7713 (get_windows_debug_event, windows_nat_target::wait)
7714 (windows_nat_target::pid_to_str)
7715 (windows_nat_target::get_tib_address)
7716 (windows_nat_target::get_ada_task_ptid)
7717 (windows_nat_target::thread_name)
7718 (windows_nat_target::thread_alive): Use lwp, not tid.
7719
7720 2020-04-08 Tom Tromey <tromey@adacore.com>
7721
7722 * windows-nat.c (handle_exception)
7723 (windows_nat_target::thread_name): Update.
7724 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7725 <name>: Now unique_xmalloc_ptr.
7726
7727 2020-04-08 Tom Tromey <tromey@adacore.com>
7728
7729 * windows-nat.c (thread_rec)
7730 (windows_nat_target::fetch_registers): Update.
7731 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7732 Update comment.
7733 <debug_registers_changed, reload_context>: Now bool.
7734
7735 2020-04-08 Tom Tromey <tromey@adacore.com>
7736
7737 * windows-nat.c (windows_add_thread): Use new.
7738 (windows_init_thread_list, windows_delete_thread): Use delete.
7739 (get_windows_debug_event): Update.
7740 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7741 destructor, and initializers.
7742
7743 2020-04-08 Tom Tromey <tromey@adacore.com>
7744
7745 * windows-nat.c (struct windows_thread_info): Remove.
7746 * nat/windows-nat.h: New file.
7747
7748 2020-04-08 Tom Tromey <tromey@adacore.com>
7749
7750 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7751 (thread_rec, windows_add_thread, windows_delete_thread)
7752 (windows_continue): Update.
7753
7754 2020-04-08 Tom Tromey <tromey@adacore.com>
7755
7756 * windows-nat.c (struct windows_thread_info): Remove typedef.
7757 (thread_head): Remove.
7758 (thread_list): New global.
7759 (thread_rec, windows_add_thread, windows_init_thread_list)
7760 (windows_delete_thread, windows_continue): Update.
7761
7762 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7763
7764 * windows-tdep.h (windows_init_abi): Add comment.
7765 (cygwin_init_abi): New declaration.
7766 * windows-tdep.c: Split signal enumeration in two, one for
7767 Windows and one for Cygwin.
7768 (windows_gdb_signal_to_target): Only deal with signal of the
7769 Windows OS ABI.
7770 (cygwin_gdb_signal_to_target): New function.
7771 (windows_init_abi): Rename to windows_init_abi_common, don't set
7772 gdb_signal_to_target gdbarch method. Add new new function with
7773 this name.
7774 (cygwin_init_abi): New function.
7775 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7776 comment. Don't call windows_init_abi.
7777 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7778 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7779 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7780 i386_windows_init_abi_common, don't call windows_init_abi. Add
7781 a new function of this name.
7782 (i386_cygwin_init_abi): New function.
7783 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7784 OS ABI Cygwin.
7785
7786 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7787
7788 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7789 parameter.c.
7790 (dwarf2_read_gdb_index): Update.
7791
7792 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7793
7794 * nbsd-tdep.c: Include "objfiles.h".
7795 (nbsd_skip_solib_resolver): New.
7796 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7797
7798 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7799
7800 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7801 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7802 with DW_LLE_base_addressx are being emitted in DWARFv5.
7803 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7804 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7805 unsigned integer.
7806
7807 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7808
7809 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7810 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7811 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7812 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7813 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7814 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7815 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7816
7817
7818 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7819
7820 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7821 (read_loclist_index): New function definition.
7822 (lookup_loclist_base): New function definition.
7823 (read_loclist_header): New function definition.
7824 (dwarf2_cu): Add loclist_base and loclist_header field.
7825 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7826 (read_full_die_1): Read the value of DW_AT_loclists_base.
7827 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7828 (read_attribute_value): Handle DW_FORM_loclistx.
7829 (skip_one_die): Handle DW_FORM_loclistx.
7830 (loclist_header): New structure declaration.
7831 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7832
7833 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7834
7835 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7836 constructor. Remove `addr` parameter from other constructor and
7837 add `per_cu` parameter.
7838 * dwarf2/read.c (create_partial_symtab): Update.
7839
7840 2020-04-07 Tom de Vries <tdevries@suse.de>
7841
7842 PR symtab/25796
7843 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7844 (partial_die_info::fixup): Inherit has_const_value.
7845
7846 2020-04-07 Tom de Vries <tdevries@suse.de>
7847
7848 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7849 symbols without address.
7850
7851 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7852
7853 * nbsd-nat.h (struct thread_info): Add forward declaration.
7854 (nbsd_nat_target::thread_alive): Add.
7855 (nbsd_nat_target::thread_name): Likewise.
7856 (nbsd_nat_target::update_thread_list): Likewise.
7857 (update_thread_list::post_attach): Likewise.
7858 (post_attach::pid_to_str): Likewise.
7859 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7860 (nbsd_thread_lister): Add.
7861 (nbsd_nat_target::thread_alive): Likewise.
7862 (nbsd_nat_target::thread_name): Likewise.
7863 (nbsd_add_threads): Likewise.
7864 (update_thread_list::post_attach): Likewise.
7865 (nbsd_nat_target::update_thread_list): Likewise.
7866 (post_attach::pid_to_str): Likewise.
7867
7868 2020-04-06 Tom Tromey <tromey@adacore.com>
7869
7870 * ada-valprint.c (print_variant_part): Extract the variant field.
7871 (print_field_values): Use the field as the outer value when
7872 recursing.
7873
7874 2020-04-06 Tom Tromey <tromey@adacore.com>
7875
7876 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7877 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7878 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7879 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7880 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7881
7882 2020-04-06 Tom Tromey <tromey@adacore.com>
7883
7884 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7885 TYPE_CODE_ERROR.
7886
7887 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7888
7889 * nbsd-tdep.c: Include "gdbarch.h".
7890 Define enum with NetBSD signal numbers.
7891 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7892 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7893 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7894 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7895 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7896 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7897 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7898 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7899 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7900 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7901 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7902 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7903
7904 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7905
7906 PR gdb/25325
7907 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7908
7909 2020-04-03 Tom Tromey <tromey@adacore.com>
7910
7911 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7912 Read constant block.
7913
7914 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7915
7916 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7917 (gdb_bfd_get_full_section_contents): New declaration.
7918 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7919 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7920 gdb_bfd_get_full_section_contents.
7921
7922 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * exec.c (build_section_table): Replace internal_error with
7925 gdb_assert.
7926 (section_table_xfer_memory_partial): Likewise.
7927 * mdebugread.c (parse_partial_symbols): Likewise.
7928 * psymtab.c (lookup_partial_symbol): Likewise.
7929 * utils.c (wrap_here): Likewise.
7930
7931 2020-04-02 Tom Tromey <tromey@adacore.com>
7932
7933 * f-lang.c (build_fortran_types): Use arch_type to initialize
7934 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7935
7936 2020-04-02 Tom Tromey <tromey@adacore.com>
7937
7938 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7939 of attributes.
7940
7941 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7942 Bernd Edlinger <bernd.edlinger@hotmail.de>
7943 Tom Tromey <tromey@adacore.com>
7944
7945 * buildsym.c (buildsym_compunit::record_line): Remove
7946 deduplication code.
7947
7948 2020-04-02 Tom de Vries <tdevries@suse.de>
7949
7950 PR ada/24671
7951 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7952
7953 2020-04-02 Tom de Vries <tdevries@suse.de>
7954
7955 * dwarf2/read.c (dwarf2_gdb_index_functions,
7956 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7957 NULL.
7958 * psymtab.c (psym_lookup_global_symbol_language): New function.
7959 (psym_functions): Init psym_lookup_global_symbol_language with
7960 psym_lookup_global_symbol_language.
7961 * symfile-debug.c (debug_sym_quick_functions): Init
7962 lookup_global_symbol_language with NULL.
7963 * symfile.c (set_initial_language): Remove fixme comment.
7964 * symfile.h (struct quick_symbol_functions): Add
7965 lookup_global_symbol_language.
7966 * symtab.c (find_quick_global_symbol_language): New function.
7967 (find_main_name): Use find_quick_global_symbol_language.
7968
7969 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7970
7971 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7972
7973 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7974
7975 * buildsym.c (record_line): Fix undefined behavior and preserve
7976 lines at eof.
7977
7978 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7979
7980 * buildsym.c (record_line): Fix the resizing condition.
7981
7982 2020-04-01 Tom Tromey <tom@tromey.com>
7983
7984 * value.h (value_literal_complex): Add comment.
7985 * valops.c (value_literal_complex): Refer to value.h.
7986
7987 2020-04-01 Tom Tromey <tom@tromey.com>
7988
7989 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7990 (scalar_type): New rule, from typebase.
7991 (typebase): Use scalar_type. Recognize complex types.
7992 (field_name): Handle FLOAT_KEYWORD.
7993 (ident_tokens): Add _Complex and __complex__.
7994
7995 2020-04-01 Tom Tromey <tom@tromey.com>
7996
7997 PR exp/25299:
7998 * valarith.c (promotion_type, complex_binop): New functions.
7999 (scalar_binop): Handle complex numbers. Use promotion_type.
8000 (value_pos, value_neg, value_complement): Handle complex numbers.
8001
8002 2020-04-01 Tom Tromey <tom@tromey.com>
8003
8004 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8005 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8006 (parse_number): Handle complex numbers.
8007
8008 2020-04-01 Tom Tromey <tom@tromey.com>
8009
8010 * c-valprint.c (c_decorations): Change complex suffix to "i".
8011
8012 2020-04-01 Tom Tromey <tom@tromey.com>
8013
8014 * valprint.c (generic_value_print_complex): Use accessors.
8015 * value.h (value_real_part, value_imaginary_part): Declare.
8016 * valops.c (value_real_part, value_imaginary_part): New
8017 functions.
8018 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8019
8020 2020-04-01 Tom Tromey <tom@tromey.com>
8021
8022 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8023 (read_range_type): Update.
8024 * mdebugread.c (basic_type): Update.
8025 * go-lang.c (build_go_types): Use init_complex_type.
8026 * gdbtypes.h (struct main_type) <complex_type>: New member.
8027 (init_complex_type): Update.
8028 (arch_complex_type): Don't declare.
8029 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8030 Make name if none given. Use alloc_type_copy. Look for cached
8031 complex type.
8032 (arch_complex_type): Remove.
8033 (gdbtypes_post_init): Use init_complex_type.
8034 * f-lang.c (build_fortran_types): Use init_complex_type.
8035 * dwarf2/read.c (read_base_type): Update.
8036 * d-lang.c (build_d_types): Use init_complex_type.
8037 * ctfread.c (read_base_type): Update.
8038
8039 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8040
8041 * infrun.c (stop_all_threads): Update assertion, plus when
8042 stopping threads, take into account that we might be trying
8043 to stop an all-stop target.
8044 (stop_waiting): Call 'stop_all_threads' if there exists a
8045 non-stop target.
8046
8047 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8048
8049 * target.h (exists_non_stop_target): New function declaration.
8050 * target.c (exists_non_stop_target): New function.
8051
8052 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8053
8054 PR gdb/24789
8055 * eval.c (is_integral_or_integral_reference): New function.
8056 (evaluate_subexp_standard): Allow integer references in
8057 pointer arithmetic.
8058
8059 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8060
8061 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8062 check for no ptid in the stop reply when the target is non-stop.
8063
8064 2020-04-01 Tom Tromey <tromey@adacore.com>
8065
8066 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8067 "name" parameter to rvalue reference. Initialize m_name_holder.
8068 <lookup_name_info>: New overloads.
8069 <name>: Return gdb::string_view.
8070 <c_str>: New method.
8071 <make_ignore_params>: Update.
8072 <search_name_hash>: Update.
8073 <language_lookup_name>: Return const char *.
8074 <m_name>: Change type.
8075 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8076 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8077 (lookup_name_info::match_any): Update.
8078 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8079 Update.
8080 * minsyms.c (linkage_name_str): Update.
8081 * language.c (default_symbol_name_matcher): Update.
8082 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8083 Update.
8084 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8085 (ada_lookup_name_info::ada_lookup_name_info): Update.
8086 (literal_symbol_name_matcher): Update.
8087
8088 2020-04-01 Tom Tromey <tromey@adacore.com>
8089
8090 * psymtab.c (psymtab_search_name): Remove function.
8091 (psym_lookup_symbol): Create search name and lookup name here.
8092 (lookup_partial_symbol): Remove "name" parameter; add
8093 lookup_name.
8094 (psym_expand_symtabs_for_function): Update.
8095
8096 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8097
8098 PR tui/25597:
8099 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8100
8101 2020-03-31 Tom Tromey <tromey@adacore.com>
8102
8103 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8104 memcpy.
8105
8106 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8107
8108 * features/riscv/32bit-csr.xml: Regenerated.
8109 * features/riscv/64bit-csr.xml: Regenerated.
8110
8111 2020-03-30 Tom Tromey <tromey@adacore.com>
8112
8113 * ada-valprint.c (print_variant_part): Update.
8114 * ada-lang.h (ada_which_variant_applies): Update.
8115 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8116 outer_valaddr parameters; replace with "outer" value parameter.
8117 (to_fixed_variant_branch_type): Update.
8118
8119 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8120
8121 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8122 <list>. Remove inclusion of observable.h.
8123 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8124 (struct arch_lwp_info): New struct.
8125 (class ppc_linux_dreg_interface): New class.
8126 (struct ppc_linux_process_info): New struct.
8127 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8128 <low_new_clone, low_forget_process, low_prepare_to_resume>
8129 <copy_thread_dreg_state, mark_thread_stale>
8130 <mark_debug_registers_changed, register_hw_breakpoint>
8131 <clear_hw_breakpoint, register_wp, clear_wp>
8132 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8133 <num_memory_accesses, get_trigger_type>
8134 <create_watchpoint_request, hwdebug_point_cmp>
8135 <init_arch_lwp_info, get_arch_lwp_info>
8136 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8137 methods.
8138 <struct ptid_hash>: New inner struct.
8139 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8140 members.
8141 (saved_dabr_value, hwdebug_info, max_slots_number)
8142 (struct hw_break_tuple, struct thread_points, ppc_threads)
8143 (have_ptrace_hwdebug_interface)
8144 (hwdebug_find_thread_points_by_tid)
8145 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8146 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8147 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8148 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8149 use m_dreg_interface.
8150 (hwdebug_point_cmp): Change to...
8151 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8152 reference arguments instead of pointers.
8153 (ppc_linux_nat_target::ranged_break_num_registers): Use
8154 m_dreg_interface.
8155 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8156 m_dreg_interface. Call register_hw_breakpoint.
8157 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8158 m_dreg_interface. Call clear_hw_breakpoint.
8159 (get_trigger_type): Change to...
8160 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8161 comment.
8162 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8163 use m_dreg_interface. Call register_hw_breakpoint.
8164 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8165 use m_dreg_interface. Call clear_hw_breakpoint.
8166 (can_use_watchpoint_cond_accel): Change to...
8167 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8168 method. Update comment, use m_dreg_interface and
8169 m_process_info.
8170 (calculate_dvc): Change to...
8171 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8172 m_dreg_interface.
8173 (num_memory_accesses): Change to...
8174 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8175 (check_condition): Change to...
8176 (ppc_linux_nat_target::check_condition): ...this method.
8177 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8178 comment, use m_dreg_interface.
8179 (create_watchpoint_request): Change to...
8180 (ppc_linux_nat_target::create_watchpoint_request): ...this
8181 method. Use m_dreg_interface.
8182 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8183 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8184 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8185 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8186 (ppc_linux_nat_target::low_forget_process)
8187 (ppc_linux_nat_target::low_new_fork)
8188 (ppc_linux_nat_target::low_new_clone)
8189 (ppc_linux_nat_target::low_delete_thread)
8190 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8191 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8192 only call mark_thread_stale.
8193 (ppc_linux_thread_exit): Remove.
8194 (ppc_linux_nat_target::stopped_data_address): Change to...
8195 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8196 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8197 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8198 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8199 comment. Call low_stopped_data_address.
8200 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8201 m_dreg_interface.
8202 (ppc_linux_nat_target::masked_watch_num_registers): Use
8203 m_dreg_interface.
8204 (ppc_linux_nat_target::copy_thread_dreg_state)
8205 (ppc_linux_nat_target::mark_thread_stale)
8206 (ppc_linux_nat_target::mark_debug_registers_changed)
8207 (ppc_linux_nat_target::register_hw_breakpoint)
8208 (ppc_linux_nat_target::clear_hw_breakpoint)
8209 (ppc_linux_nat_target::register_wp)
8210 (ppc_linux_nat_target::clear_wp)
8211 (ppc_linux_nat_target::init_arch_lwp_info)
8212 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8213 (_initialize_ppc_linux_nat): Remove observer callback.
8214
8215 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8216
8217 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8218 (ppc_linux_nat_target::auxv_parse)
8219 (ppc_linux_nat_target::read_description)
8220 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8221 Move up.
8222
8223 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8224
8225 * linux-nat.h (low_new_clone): New method.
8226 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8227
8228 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8229
8230 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8231 (dbx_expand_psymtab): ... this.
8232 (start_psymtab): Update.
8233 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8234 (mdebug_expand_psymtab): ... this.
8235 (parse_partial_symbols): Update.
8236 (new_psymtab): Update.
8237 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8238 (xcoff_expand_psymtab): ... this.
8239 (xcoff_start_psymtab): Update.
8240
8241 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8242
8243 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8244 <expand_dependencies>: ... this.
8245 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8246 (partial_symtab::expand_dependencies): ... this.
8247 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8248 Update.
8249 (dwarf2_psymtab::expand_psymtab): Update.
8250 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8251 * mdebugread.c (psymtab_to_symtab_1): Update.
8252 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8253
8254 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8255
8256 * psympriv.h (discard_psymtab): Remove.
8257 * dbxread.c (dbx_end_psymtab): Update.
8258 * xcoffread.c (xcoff_end_psymtab): Update.
8259
8260 2020-03-28 Tom Tromey <tom@tromey.com>
8261
8262 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8263 comment.
8264
8265 2020-03-28 Tom Tromey <tom@tromey.com>
8266
8267 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8268
8269 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8270
8271 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8272
8273 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8274
8275 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8276
8277 2020-03-26 Tom Tromey <tom@tromey.com>
8278
8279 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8280 (mark_common_block_symbol_computed, read_tag_string_type)
8281 (attr_to_dynamic_prop, read_subrange_type): Update.
8282 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8283 to be methods on struct attribute.
8284 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8285 (read_call_site_scope, partial_die_info::read)
8286 (partial_die_info::read, lookup_die_type, follow_die_ref):
8287 Update.
8288 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8289 from dwarf2_get_ref_die_offset.
8290 (attribute::constant_value): New method, from
8291 dwarf2_get_attr_constant_value.
8292 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8293 Declare method.
8294 <constant_value>: New method.
8295
8296 2020-03-26 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8299 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8300 (dwarf_type_encoding_name): Move to stringify.c.
8301 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8302 * dwarf2/stringify.c: New file.
8303 * dwarf2/stringify.h: New file.
8304
8305 2020-03-26 Tom Tromey <tom@tromey.com>
8306
8307 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8308 Rewrite.
8309
8310 2020-03-26 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8313 methods.
8314 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8315 (lookup_ranges_base): Likewise.
8316 (read_cutu_die_from_dwo, read_full_die_1): Update.
8317
8318 2020-03-26 Tom Tromey <tom@tromey.com>
8319
8320 * dwarf2/read.c (read_import_statement, read_file_scope)
8321 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8322 (read_lexical_block_scope, read_call_site_scope)
8323 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8324 (handle_struct_member_die, process_structure_scope)
8325 (update_enumeration_type_from_children)
8326 (process_enumeration_scope, read_array_type, read_common_block)
8327 (read_namespace, read_module, read_subroutine_type): Update.
8328 (sibling_die): Remove.
8329
8330 2020-03-26 Tom Tromey <tom@tromey.com>
8331
8332 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8333 (build_type_psymtabs_reader, read_structure_type)
8334 (read_enumeration_type, read_full_die_1): Update.
8335 (dwarf2_attr_no_follow): Move to die.h.
8336 * dwarf2/die.h (struct die_info) <attr>: New method.
8337
8338 2020-03-26 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8341 <base_address>: Now an optional.
8342 (dwarf2_find_base_address, dwarf2_rnglists_process)
8343 (dwarf2_ranges_process, fill_in_loclist_baton)
8344 (dwarf2_symbol_mark_computed): Update.
8345
8346 2020-03-26 Tom Tromey <tom@tromey.com>
8347
8348 * dwarf2/read.c (struct die_info): Move to die.h.
8349 * dwarf2/die.h: New file.
8350
8351 2020-03-26 Tom Tromey <tom@tromey.com>
8352
8353 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8354 * dwarf2/read.c
8355 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8356 Move to line-header.c.
8357 (read_checked_initial_length_and_offset, read_formatted_entries):
8358 Likewise.
8359 (dwarf_decode_line_header): Split into two.
8360 * dwarf2/line-header.c
8361 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8362 Move from read.c.
8363 (read_checked_initial_length_and_offset, read_formatted_entries):
8364 Likewise.
8365 (dwarf_decode_line_header): New function, split from read.c.
8366
8367 2020-03-26 Tom Tromey <tom@tromey.com>
8368
8369 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8370 Declare method.
8371 * dwarf2/read.c (read_attribute_value): Update.
8372 (dwarf2_per_objfile::read_line_string): Rename from
8373 read_indirect_line_string.
8374 (read_formatted_entries): Update.
8375
8376 2020-03-26 Tom Tromey <tom@tromey.com>
8377
8378 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8379 variable.
8380
8381 2020-03-26 Tom Tromey <tom@tromey.com>
8382
8383 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8384 const.
8385 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8386 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8387 parameter const.
8388
8389 2020-03-26 Tom Tromey <tom@tromey.com>
8390
8391 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8392 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8393 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8394 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8395
8396 2020-03-26 Tom Tromey <tom@tromey.com>
8397
8398 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8399 file_names_size, file_full_name, file_file_name>: Use const.
8400 <file_name_at, file_names>: Add const overload.
8401 * dwarf2/line-header.c (line_header::file_file_name)
8402 (line_header::file_full_name): Update.
8403
8404 2020-03-26 Tom Tromey <tom@tromey.com>
8405
8406 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8407 (macro_start_file, consume_improper_spaces)
8408 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8409 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8410 (dwarf_decode_macros): Move to macro.c.
8411 * dwarf2/macro.c: New file.
8412 * dwarf2/macro.h: New file.
8413 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8414
8415 2020-03-26 Tom Tromey <tom@tromey.com>
8416
8417 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8418 method.
8419 * dwarf2/section.c: New method. From
8420 read_indirect_string_at_offset_from.
8421 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8422 (read_indirect_string_at_offset_from): Move to section.c.
8423 (read_indirect_string_at_offset): Rewrite.
8424 (read_indirect_line_string_at_offset): Remove.
8425 (read_indirect_string, read_indirect_line_string)
8426 (dwarf_decode_macro_bytes): Update.
8427
8428 2020-03-26 Tom Tromey <tom@tromey.com>
8429
8430 * dwarf2/section.h (struct dwarf2_section_info)
8431 <overload_complaint>: Declare.
8432 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8433 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8434 Rename from dwarf2_section_buffer_overflow_complaint.
8435 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8436 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8437
8438 2020-03-26 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8441 Declare.
8442 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8443 Move from read.c.
8444 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8445 to section.c.
8446
8447 2020-03-26 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8450
8451 2020-03-26 Tom Tromey <tom@tromey.com>
8452
8453 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8454 "builder".
8455 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8456 parameter.
8457 (dwarf_decode_macros): Update.
8458
8459 2020-03-26 Tom Tromey <tom@tromey.com>
8460
8461 * dwarf2/read.c (read_attribute_value): Update.
8462 (read_indirect_string_from_dwz): Move to dwz.c; change into
8463 method.
8464 (dwarf_decode_macro_bytes): Update.
8465 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8466 * dwarf2/dwz.c: New file.
8467 * Makefile.in (COMMON_SFILES): Add dwz.c.
8468
8469 2020-03-26 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8472 * dwarf2/read.c: Add include.
8473 * dwarf2/index-write.c: Add include.
8474 * dwarf2/index-cache.c: Add include.
8475 * dwarf2/dwz.h: New file.
8476
8477 2020-03-25 Tom Tromey <tom@tromey.com>
8478
8479 * compile/compile-object-load.c (get_out_value_type): Mention
8480 correct symbol name in error message.
8481
8482 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8483
8484 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8485
8486 2020-03-25 Tom de Vries <tdevries@suse.de>
8487
8488 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8489 * symmisc.c (dump_symtab_1): Print user and includes fields.
8490 (maintenance_info_symtabs): Same.
8491
8492 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8493
8494 PR gdb/25534
8495 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8496 (riscv_regcache_cooked_write): New function.
8497 (riscv_push_dummy_call): Use new function.
8498 (riscv_return_value): Likewise.
8499
8500 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8501
8502 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8503 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8504 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8505 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8506 * infrun.c (follow_fork): Likewise.
8507 (follow_fork_inferior): Likewise.
8508 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8509 * linux-nat.h (class linux_nat_target): Likewise.
8510 * remote.c (class remote_target) <follow_fork>: Likewise.
8511 (remote_target::follow_fork): Likewise.
8512 * target-delegates.c: Re-generate.
8513 * target.c (default_follow_fork): Likewise.
8514 (target_follow_fork): Likewise.
8515 * target.h (struct target_ops) <follow_fork>: Likewise.
8516 (target_follow_fork): Likewise.
8517
8518 2020-03-24 Tom de Vries <tdevries@suse.de>
8519
8520 * psymtab.c (maintenance_info_psymtabs): Print user field.
8521
8522 2020-03-20 Tom Tromey <tromey@adacore.com>
8523
8524 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8525 const.
8526 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8527 const.
8528
8529 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8530
8531 * ptrace.m4: Don't check for ptrace declaration.
8532 * config.in: Re-generate.
8533 * configure: Re-generate.
8534 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8535 not defined.
8536
8537 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8538
8539 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8540 `PTRACE_TYPE_RET'.
8541 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8542 * sparc-nat.c (gdb_ptrace): Likewise.
8543 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8544
8545 2020-03-20 Tom Tromey <tromey@adacore.com>
8546
8547 * c-exp.y (lex_one_token): Fix assert.
8548
8549 2020-03-20 Tom Tromey <tromey@adacore.com>
8550
8551 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8552 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8553 strncpy call.
8554
8555 2020-03-20 Tom Tromey <tromey@adacore.com>
8556
8557 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8558
8559 2020-03-20 Tom Tromey <tromey@adacore.com>
8560
8561 * ada-valprint.c (print_variant_part): Remove parameters; switch
8562 to value-based API.
8563 (print_field_values): Likewise.
8564 (ada_val_print_struct_union): Likewise.
8565 (ada_value_print_1): Update.
8566
8567 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8568
8569 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8570 nbsd_nat_target instead of inf_ptrace_target.
8571 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8572 nbsd_nat_target.
8573
8574 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8575
8576 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8577 it to the ptrace call.
8578 * (store_registers): Likewise.
8579
8580 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8581
8582 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8583 it to the ptrace call.
8584 * (store_registers): Likewise.
8585
8586 2020-03-19 Luis Machado <luis.machado@linaro.org>
8587
8588 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8589 valid, fetch vg value from ptrace.
8590
8591 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8592 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8593 * inf-ptrace.c: Likewise.
8594 * (gdb_ptrace): Add.
8595 * (inf_ptrace_target::resume): Update.
8596 * (inf_ptrace_target::xfer_partial): Likewise.
8597 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8598 * (inf_ptrace_peek_poke): Update.
8599
8600 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8601
8602 * x86-bsd-nat.c (gdb_ptrace): New.
8603 * (x86bsd_dr_set): Add new argument `ptid'.
8604 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8605 x86bsd_dr_set_addr): Update.
8606
8607 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8608
8609 * remote.c (remote_target::process_stop_reply): Handle events for
8610 all threads differently.
8611
8612 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * completer.c (completion_tracker::remove_completion): Define new
8615 function.
8616 * completer.h (completion_tracker::remove_completion): Declare new
8617 function.
8618 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8619 when adding a C++ function symbol.
8620
8621 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * completer.c (completion_tracker::completion_hash_entry): Define
8624 new class.
8625 (advance_to_filename_complete_word_point): Call
8626 recompute_lowest_common_denominator.
8627 (completion_tracker::completion_tracker): Call discard_completions
8628 to setup the hash table.
8629 (completion_tracker::discard_completions): Allow for being called
8630 from the constructor, pass new equal function, and element deleter
8631 when constructing the hash table. Initialise new class member
8632 variables.
8633 (completion_tracker::maybe_add_completion): Remove use of
8634 m_entries_vec, and store more information into m_entries_hash.
8635 (completion_tracker::recompute_lcd_visitor): New function, most
8636 content taken from...
8637 (completion_tracker::recompute_lowest_common_denominator):
8638 ...here, this now just visits each item in the hash calling the
8639 above visitor.
8640 (completion_tracker::build_completion_result): Remove use of
8641 m_entries_vec, call recompute_lowest_common_denominator.
8642 * completer.h (completion_tracker::have_completions): Remove use
8643 of m_entries_vec.
8644 (completion_tracker::completion_hash_entry): Declare new class.
8645 (completion_tracker::recompute_lowest_common_denominator): Change
8646 function signature.
8647 (completion_tracker::recompute_lcd_visitor): Declare new function.
8648 (completion_tracker::m_entries_vec): Delete.
8649 (completion_tracker::m_entries_hash): Initialize to NULL.
8650 (completion_tracker::m_lowest_common_denominator_valid): New
8651 member variable.
8652 (completion_tracker::m_lowest_common_denominator_max_length): New
8653 member variable.
8654
8655 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8656
8657 * regformats/regdef.h: Put reg in gdb namespace.
8658
8659 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8660
8661 * i386-bsd-nat.c (gdb_ptrace): New.
8662 * (i386bsd_fetch_inferior_registers,
8663 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8664 * (i386bsd_fetch_inferior_registers,
8665 i386bsd_store_inferior_registers) Use gdb_ptrace.
8666
8667 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8668
8669 * amd64-bsd-nat.c (gdb_ptrace): New.
8670 * (amd64bsd_fetch_inferior_registers,
8671 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8672 * (amd64bsd_fetch_inferior_registers,
8673 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8674
8675 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8676
8677 * user-regs.c (user_reg::read): Rename to...
8678 (user_reg::xread): ...this.
8679 * (append_user_reg): Rename argument `read' to `xread'.
8680 * (user_reg_add_builtin): Likewise.
8681 * (user_reg_add): Likewise.
8682 * (value_of_user_reg): Likewise.
8683
8684 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8685
8686 * sparc-nat.c (gdb_ptrace): New.
8687 * sparc-nat.c (sparc_fetch_inferior_registers)
8688 (sparc_store_inferior_registers) Remove obsolete comment.
8689 * sparc-nat.c (sparc_fetch_inferior_registers)
8690 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8691 * sparc-nat.c (sparc_fetch_inferior_registers)
8692 (sparc_store_inferior_registers) Use gdb_ptrace.
8693
8694 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8695
8696 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8697 it to the ptrace call.
8698 * sh-nbsd-nat.c (store_registers): Likewise.
8699
8700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8701
8702 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8703 nbsd_nat_target instead of inf_ptrace_target.
8704 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8705 nbsd_nat_target.
8706
8707 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8708
8709 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8710
8711 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8712
8713 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8714 <sys/sysctl.h>.
8715 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8716
8717 2020-03-17 Tom de Vries <tdevries@suse.de>
8718
8719 PR gdb/23710
8720 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8721 fields.
8722 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8723 fields.
8724 (process_imported_unit_die): Skip import of c++ CUs.
8725
8726 2020-03-16 Tom Tromey <tom@tromey.com>
8727
8728 * p-valprint.c (pascal_object_print_value): Initialize
8729 base_value.
8730
8731 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8732 Shahab Vahedi <shahab@synopsys.com>
8733
8734 * Makefile.in: Add arch/arc.o
8735 * configure.tgt: Likewise.
8736 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8737 (_initialize_arc_tdep): Don't initialize old target descriptions.
8738 (arc_read_description): New function to cache target descriptions.
8739 * arc-tdep.h (arc_read_description): Add proto type.
8740 * arch/arc.c: New file.
8741 * arch/arc.h: Likewise.
8742 * features/Makefile: Replace old target descriptions with new.
8743 * features/arc-arcompact.c: Remove.
8744 * features/arc-arcompact.xml: Likewise.
8745 * features/arc-v2.c: Likewise
8746 * features/arc-v2.xml: Likewise
8747 * features/arc/aux-arcompact.xml: New file.
8748 * features/arc/aux-v2.xml: Likewise.
8749 * features/arc/core-arcompact.xml: Likewise.
8750 * features/arc/core-v2.xml: Likewise.
8751 * features/arc/aux-arcompact.c: Generate.
8752 * features/arc/aux-v2.c: Likewise.
8753 * features/arc/core-arcompact.c: Likewise.
8754 * features/arc/core-v2.c: Likewise.
8755 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8756
8757 2020-03-16 Tom Tromey <tromey@adacore.com>
8758
8759 PR gdb/25663:
8760 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8761 putting value into bcache.
8762
8763 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8764
8765 PR gdb/21500
8766 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8767 to...
8768 (amd64_windows_init_abi_common): ... this. Don't set size of
8769 long type.
8770 (amd64_windows_init_abi): New function.
8771 (amd64_cygwin_init_abi): New function.
8772 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8773 the Cygwin OS ABI.
8774 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8775 comment.
8776
8777 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8780 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8781 (pe_import_directory_entry): New struct type.
8782 (is_linked_with_cygwin_dll): New function.
8783 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8784 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8785 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8786
8787 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8790 i386_cygwin_core_osabi_sniffer.
8791
8792 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * i386-cygwin-tdep.c: Rename to...
8795 * i386-windows-tdep.c: ... this.
8796 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8797 i386-windows-tdep.c.
8798 * configure.tgt: Likewise.
8799
8800 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8801
8802 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8803 * osabi.c (gdb_osabi_names): Add "Windows".
8804 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8805 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8806 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8807 i386_cygwin_osabi_sniffer.
8808 (_initialize_i386_cygwin_tdep): Register OS ABI
8809 GDB_OSABI_WINDOWS for i386.
8810 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8811 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8812 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8813 for x86-64.
8814 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8815 when the target matches '*-*-mingw*'.
8816
8817 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * defs.h (enum gdb_osabi): Move to...
8820 * osabi.h (enum gdb_osabi): ... here.
8821 * gdbarch.sh: Include osabi.h in gdbarch.h.
8822 * gdbarch.h: Re-generate.
8823
8824 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8827 function.
8828 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8829
8830 2020-03-14 Tom Tromey <tom@tromey.com>
8831
8832 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8833 for C++.
8834 (c_type_print_modifier): Likewise. Add "language" parameter.
8835 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8836 (c_type_print_base_1): Update.
8837 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8838 constants.
8839 * type-stack.c (type_stack::insert): Handle tp_atomic and
8840 tp_restrict.
8841 (type_stack::follow_type_instance_flags): Likewise.
8842 (type_stack::follow_types): Likewise. Merge type-following code.
8843 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8844 (space_identifier, cv_with_space_id)
8845 (const_or_volatile_or_space_identifier_noopt)
8846 (const_or_volatile_or_space_identifier): Remove.
8847 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8848 rules.
8849 (ptr_operator, typebase): Update.
8850 (enum token_flag) <FLAG_C>: New constant.
8851 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8852 "_Atomic".
8853 (lex_one_token): Handle FLAG_C.
8854
8855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8856
8857 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8858 it to the ptrace call.
8859 * m68k-bsd-nat.c (store_registers): Likewise.
8860
8861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8862
8863 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8864 gdb_byte *.
8865 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8866 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8867 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8868
8869 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8870
8871 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8872 nbsd_nat_target instead of inf_ptrace_target.
8873 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8874 nbsd_nat_target.
8875
8876 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8877
8878 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8879 register_t.
8880
8881 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8882
8883 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8884 it to the ptrace call.
8885 * alpha-bsd-nat.c (store_registers): Likewise.
8886
8887 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8888
8889 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8890 includes.
8891 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8892 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8893 fill_fpregset): Likewise.
8894
8895 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8896
8897 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8898 nbsd_nat_target instead of inf_ptrace_target.
8899 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8900 nbsd_nat_target.
8901
8902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8903
8904 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8905 register_t.
8906
8907 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8908
8909 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8910 it to the ptrace call.
8911 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8912 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8913 * arm-nbsd-nat.c (store_register): Likewise.
8914 * arm-nbsd-nat.c (store_regs): Likewise.
8915 * arm-nbsd-nat.c (store_fp_register): Likewise.
8916 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8917
8918 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8919
8920 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8921 nbsd_nat_target instead of inf_ptrace_target.
8922 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8923 nbsd_nat_target.
8924
8925 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8926
8927 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8928 it to the ptrace call.
8929 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8930
8931 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8932
8933 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8934 it to the ptrace call.
8935 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8936
8937 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8938
8939 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8940 gdb_byte *.
8941 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8942
8943 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8944
8945 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8946 instead of inf_ptrace_target.
8947 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8948 nbsd_nat_target.
8949
8950 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8951
8952 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8953 register_t.
8954
8955 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8956
8957 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8958 register_t.
8959
8960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8961
8962 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8963 register_t.
8964
8965 2020-03-13 Tom Tromey <tom@tromey.com>
8966
8967 * value.h (val_print): Don't declare.
8968 * valprint.h (val_print_array_elements)
8969 (val_print_scalar_formatted, generic_val_print): Don't declare.
8970 * valprint.c (generic_val_print_array): Take a struct value.
8971 (generic_val_print_ptr, generic_val_print_memberptr)
8972 (generic_val_print_bool, generic_val_print_int)
8973 (generic_val_print_char, generic_val_print_complex)
8974 (generic_val_print): Remove.
8975 (generic_value_print): Update.
8976 (do_val_print): Remove unused parameters. Don't call
8977 la_val_print.
8978 (val_print): Remove.
8979 (common_val_print): Update. Don't call value_check_printable.
8980 (val_print_scalar_formatted, val_print_array_elements): Remove.
8981 * rust-lang.c (rust_val_print): Remove.
8982 (rust_language_defn): Update.
8983 * p-valprint.c (pascal_val_print): Remove.
8984 (pascal_value_print_inner): Update.
8985 (pascal_object_print_val_fields, pascal_object_print_val):
8986 Remove.
8987 (pascal_object_print_static_field): Update.
8988 * p-lang.h (pascal_val_print): Don't declare.
8989 * p-lang.c (pascal_language_defn): Update.
8990 * opencl-lang.c (opencl_language_defn): Update.
8991 * objc-lang.c (objc_language_defn): Update.
8992 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8993 * m2-lang.h (m2_val_print): Don't declare.
8994 * m2-lang.c (m2_language_defn): Update.
8995 * language.h (struct language_defn) <la_val_print>: Remove.
8996 * language.c (unk_lang_value_print_inner): Rename. Change
8997 argument types.
8998 (unknown_language_defn, auto_language_defn): Update.
8999 * go-valprint.c (go_val_print): Remove.
9000 * go-lang.h (go_val_print): Don't declare.
9001 * go-lang.c (go_language_defn): Update.
9002 * f-valprint.c (f_val_print): Remove.
9003 * f-lang.h (f_value_print): Don't declare.
9004 * f-lang.c (f_language_defn): Update.
9005 * d-valprint.c (d_val_print): Remove.
9006 * d-lang.h (d_value_print): Don't declare.
9007 * d-lang.c (d_language_defn): Update.
9008 * cp-valprint.c (cp_print_value_fields)
9009 (cp_print_value_fields_rtti, cp_print_value): Remove.
9010 (cp_print_static_field): Update.
9011 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9012 (c_val_print_struct, c_val_print_union, c_val_print_int)
9013 (c_val_print_memberptr, c_val_print): Remove.
9014 * c-lang.h (c_val_print_array, cp_print_value_fields)
9015 (cp_print_value_fields_rtti): Don't declare.
9016 * c-lang.c (c_language_defn, cplus_language_defn)
9017 (asm_language_defn, minimal_language_defn): Update.
9018 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9019 (ada_val_print_enum): Take a struct value.
9020 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9021 (ada_val_print): Remove.
9022 (ada_value_print_1): Update.
9023 (printable_val_type): Remove.
9024 * ada-lang.h (ada_val_print): Don't declare.
9025 * ada-lang.c (ada_language_defn): Update.
9026
9027 2020-03-13 Tom Tromey <tom@tromey.com>
9028
9029 * valprint.c (do_val_print): Update.
9030 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9031 a struct value.
9032 (value_to_value_object_no_release): Declare.
9033 * python/py-value.c (value_to_value_object_no_release): New
9034 function.
9035 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9036 struct value.
9037 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9038 function.
9039 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9040 a struct value.
9041 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9042 Declare.
9043 (gdbscm_apply_val_pretty_printer): Take a struct value.
9044 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9045 value.
9046 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9047 value.
9048 * extension-priv.h (struct extension_language_ops)
9049 <apply_val_pretty_printer>: Take a struct value.
9050 * cp-valprint.c (cp_print_value): Create a struct value.
9051 (cp_print_value): Update.
9052
9053 2020-03-13 Tom Tromey <tom@tromey.com>
9054
9055 * ada-valprint.c (print_field_values): Call common_val_print.
9056
9057 2020-03-13 Tom Tromey <tom@tromey.com>
9058
9059 * ada-valprint.c (val_print_packed_array_elements): Remove
9060 bitoffset and val parameters. Call common_val_print.
9061 (ada_val_print_string): Remove offset, address, and original_value
9062 parameters.
9063 (ada_val_print_array): Update.
9064 (ada_value_print_array): New function.
9065 (ada_value_print_1): Call it.
9066
9067 2020-03-13 Tom Tromey <tom@tromey.com>
9068
9069 * ada-valprint.c (ada_value_print): Use common_val_print.
9070
9071 2020-03-13 Tom Tromey <tom@tromey.com>
9072
9073 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9074
9075 2020-03-13 Tom Tromey <tom@tromey.com>
9076
9077 * ada-valprint.c (ada_value_print_num): New function.
9078 (ada_value_print_1): Use it.
9079
9080 2020-03-13 Tom Tromey <tom@tromey.com>
9081
9082 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9083
9084 2020-03-13 Tom Tromey <tom@tromey.com>
9085
9086 * ada-valprint.c (ada_value_print_ptr): New function.
9087 (ada_value_print_1): Use it.
9088
9089 2020-03-13 Tom Tromey <tom@tromey.com>
9090
9091 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9092 call common_val_print.
9093 (ada_val_print_1): Update.
9094 (ada_value_print_1): New function.
9095 (ada_value_print_inner): Rewrite.
9096
9097 2020-03-13 Tom Tromey <tom@tromey.com>
9098
9099 * cp-valprint.c (cp_print_value_fields): Update.
9100 (cp_print_value): New function.
9101
9102 2020-03-13 Tom Tromey <tom@tromey.com>
9103
9104 * m2-valprint.c (m2_value_print_inner): Use
9105 cp_print_value_fields.
9106 * cp-valprint.c (cp_print_value_fields): New function.
9107 * c-valprint.c (c_value_print_struct): New function.
9108 (c_value_print_inner): Use c_value_print_struct.
9109 * c-lang.h (cp_print_value_fields): Declare.
9110
9111 2020-03-13 Tom Tromey <tom@tromey.com>
9112
9113 * c-valprint.c (c_value_print_array): New function.
9114 (c_value_print_inner): Use it.
9115
9116 2020-03-13 Tom Tromey <tom@tromey.com>
9117
9118 * c-valprint.c (c_value_print_memberptr): New function.
9119 (c_value_print_inner): Use it.
9120
9121 2020-03-13 Tom Tromey <tom@tromey.com>
9122
9123 * c-valprint.c (c_value_print_int): New function.
9124 (c_value_print_inner): Use it.
9125
9126 2020-03-13 Tom Tromey <tom@tromey.com>
9127
9128 * c-valprint.c (c_value_print_ptr): New function.
9129 (c_value_print_inner): Use it.
9130
9131 2020-03-13 Tom Tromey <tom@tromey.com>
9132
9133 * c-valprint.c (c_value_print_inner): Rewrite.
9134
9135 2020-03-13 Tom Tromey <tom@tromey.com>
9136
9137 * valprint.c (generic_value_print_complex): New function.
9138 (generic_value_print): Use it.
9139
9140 2020-03-13 Tom Tromey <tom@tromey.com>
9141
9142 * valprint.c (generic_val_print_float): Don't call
9143 val_print_scalar_formatted.
9144 (generic_val_print, generic_value_print): Update.
9145
9146 2020-03-13 Tom Tromey <tom@tromey.com>
9147
9148 * valprint.c (generic_value_print_char): New function
9149 (generic_value_print): Use it.
9150
9151 2020-03-13 Tom Tromey <tom@tromey.com>
9152
9153 * valprint.c (generic_value_print_int): New function.
9154 (generic_value_print): Use it.
9155
9156 2020-03-13 Tom Tromey <tom@tromey.com>
9157
9158 * valprint.c (generic_value_print_bool): New function.
9159 (generic_value_print): Use it.
9160
9161 2020-03-13 Tom Tromey <tom@tromey.com>
9162
9163 * valprint.c (generic_val_print_func): Simplify.
9164 (generic_val_print, generic_value_print): Update.
9165
9166 2020-03-13 Tom Tromey <tom@tromey.com>
9167
9168 * valprint.c (generic_val_print_flags): Remove.
9169 (generic_val_print, generic_value_print): Update.
9170 (val_print_type_code_flags): Add original_value parameter.
9171
9172 2020-03-13 Tom Tromey <tom@tromey.com>
9173
9174 * valprint.c (generic_val_print): Update.
9175 (generic_value_print): Update.
9176 * valprint.c (generic_val_print_enum): Don't call
9177 val_print_scalar_formatted.
9178
9179 2020-03-13 Tom Tromey <tom@tromey.com>
9180
9181 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9182 * valprint.c (generic_value_print_ptr): New function.
9183
9184 2020-03-13 Tom Tromey <tom@tromey.com>
9185
9186 * valprint.c (generic_value_print): Rewrite.
9187
9188 2020-03-13 Tom Tromey <tom@tromey.com>
9189
9190 * p-valprint.c (pascal_object_print_value_fields)
9191 (pascal_object_print_value): New functions.
9192
9193 2020-03-13 Tom Tromey <tom@tromey.com>
9194
9195 * p-valprint.c (pascal_value_print_inner): Rewrite.
9196
9197 2020-03-13 Tom Tromey <tom@tromey.com>
9198
9199 * f-valprint.c (f_value_print_innner): Rewrite.
9200
9201 2020-03-13 Tom Tromey <tom@tromey.com>
9202
9203 * m2-valprint.c (m2_print_unbounded_array): New overload.
9204 (m2_print_unbounded_array): Update.
9205 (m2_print_array_contents): Take a struct value.
9206 (m2_value_print_inner): Rewrite.
9207
9208 2020-03-13 Tom Tromey <tom@tromey.com>
9209
9210 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9211 (d_value_print_inner): New function.
9212 * d-lang.h (d_value_print_inner): Declare.
9213 * d-lang.c (d_language_defn): Use d_value_print_inner.
9214
9215 2020-03-13 Tom Tromey <tom@tromey.com>
9216
9217 * go-valprint.c (go_value_print_inner): New function.
9218 * go-lang.h (go_value_print_inner): Declare.
9219 * go-lang.c (go_language_defn): Use go_value_print_inner.
9220
9221 2020-03-13 Tom Tromey <tom@tromey.com>
9222
9223 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9224 API.
9225 (rust_val_print): Rewrite.
9226 (rust_value_print_inner): New function, from rust_val_print.
9227 (rust_language_defn): Use rust_value_print_inner.
9228
9229 2020-03-13 Tom Tromey <tom@tromey.com>
9230
9231 * ada-valprint.c (ada_value_print_inner): New function.
9232 * ada-lang.h (ada_value_print_inner): Declare.
9233 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9234
9235 2020-03-13 Tom Tromey <tom@tromey.com>
9236
9237 * f-valprint.c (f_value_print_innner): New function.
9238 * f-lang.h (f_value_print_innner): Declare.
9239 * f-lang.c (f_language_defn): Use f_value_print_innner.
9240
9241 2020-03-13 Tom Tromey <tom@tromey.com>
9242
9243 * p-valprint.c (pascal_value_print_inner): New function.
9244 * p-lang.h (pascal_value_print_inner): Declare.
9245 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9246
9247 2020-03-13 Tom Tromey <tom@tromey.com>
9248
9249 * m2-valprint.c (m2_value_print_inner): New function.
9250 * m2-lang.h (m2_value_print_inner): Declare.
9251 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9252
9253 2020-03-13 Tom Tromey <tom@tromey.com>
9254
9255 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9256 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9257 * c-valprint.c (c_value_print_inner): New function.
9258 * c-lang.h (c_value_print_inner): Declare.
9259 * c-lang.c (c_language_defn, cplus_language_defn)
9260 (asm_language_defn, minimal_language_defn): Use
9261 c_value_print_inner.
9262
9263 2020-03-13 Tom Tromey <tom@tromey.com>
9264
9265 * p-valprint.c (pascal_object_print_value_fields): Now static.
9266 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9267
9268 2020-03-13 Tom Tromey <tom@tromey.com>
9269
9270 * c-valprint.c (c_val_print_array): Simplify.
9271
9272 2020-03-13 Tom Tromey <tom@tromey.com>
9273
9274 * valprint.c (value_print_array_elements): New function.
9275 * valprint.h (value_print_array_elements): Declare.
9276
9277 2020-03-13 Tom Tromey <tom@tromey.com>
9278
9279 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9280 * mips-tdep.c (mips_print_register): Use
9281 value_print_scalar_formatted.
9282
9283 2020-03-13 Tom Tromey <tom@tromey.com>
9284
9285 * valprint.h (value_print_scalar_formatted): Declare.
9286 * valprint.c (value_print_scalar_formatted): New function.
9287
9288 2020-03-13 Tom Tromey <tom@tromey.com>
9289
9290 * valprint.h (generic_value_print): Declare.
9291 * valprint.c (generic_value_print): New function.
9292
9293 2020-03-13 Tom Tromey <tom@tromey.com>
9294
9295 * valprint.c (do_val_print): Call la_value_print_inner, if
9296 available.
9297 * rust-lang.c (rust_language_defn): Update.
9298 * p-lang.c (pascal_language_defn): Update.
9299 * opencl-lang.c (opencl_language_defn): Update.
9300 * objc-lang.c (objc_language_defn): Update.
9301 * m2-lang.c (m2_language_defn): Update.
9302 * language.h (struct language_defn) <la_value_print_inner>: New
9303 member.
9304 * language.c (unknown_language_defn, auto_language_defn): Update.
9305 * go-lang.c (go_language_defn): Update.
9306 * f-lang.c (f_language_defn): Update.
9307 * d-lang.c (d_language_defn): Update.
9308 * c-lang.c (c_language_defn, cplus_language_defn)
9309 (asm_language_defn, minimal_language_defn): Update.
9310 * ada-lang.c (ada_language_defn): Update.
9311
9312 2020-03-13 Tom Tromey <tom@tromey.com>
9313
9314 * c-valprint.c (c_value_print): Use common_val_print.
9315
9316 2020-03-13 Tom Tromey <tom@tromey.com>
9317
9318 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9319
9320 2020-03-13 Tom Tromey <tom@tromey.com>
9321
9322 * f-valprint.c (f77_print_array_1, f_val_print): Use
9323 common_val_print.
9324
9325 2020-03-13 Tom Tromey <tom@tromey.com>
9326
9327 * riscv-tdep.c (riscv_print_one_register_info): Use
9328 common_val_print.
9329
9330 2020-03-13 Tom Tromey <tom@tromey.com>
9331
9332 * mi/mi-main.c (output_register): Use common_val_print.
9333
9334 2020-03-13 Tom Tromey <tom@tromey.com>
9335
9336 * infcmd.c (default_print_one_register_info): Use
9337 common_val_print.
9338
9339 2020-03-13 Tom Tromey <tom@tromey.com>
9340
9341 * valprint.h (common_val_print_checked): Declare.
9342 * valprint.c (common_val_print_checked): New function.
9343 * stack.c (print_frame_arg): Use common_val_print_checked.
9344
9345 2020-03-13 Tom Tromey <tom@tromey.com>
9346
9347 * valprint.c (do_val_print): New function, from val_print.
9348 (val_print): Use do_val_print.
9349 (common_val_print): Use do_val_print.
9350
9351 2020-03-13 Tom Tromey <tom@tromey.com>
9352
9353 * valprint.c (value_print): Use scoped_value_mark.
9354
9355 2020-03-13 Tom de Vries <tdevries@suse.de>
9356
9357 PR symtab/25646
9358 * psymtab.c (partial_symtab::partial_symtab): Don't set
9359 globals_offset and statics_offset. Push element onto
9360 current_global_psymbols and current_static_psymbols stacks.
9361 (concat): New function.
9362 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9363 element from current_global_psymbols and current_static_psymbols
9364 stacks. Concat popped elements to global_psymbols and
9365 static_symbols.
9366 (add_psymbol_to_list): Use current_global_psymbols and
9367 current_static_psymbols stacks.
9368 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9369 current_static_psymbols fields.
9370
9371 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9372
9373 * corelow.c (sniff_core_bfd): Remove.
9374 (class core_target) <m_core_vec>: Remove.
9375 (core_target::core_target): Update.
9376 (core_file_fns): Remove.
9377 (deprecated_add_core_fns): Remove.
9378 (default_core_sniffer): Remove.
9379 (sniff_core_bfd): Remove.
9380 (default_check_format): Remove.
9381 (gdb_check_format): Remove.
9382 (core_target_open): Update.
9383 (core_target::get_core_register_section): Update.
9384 (get_core_registers_cb): Update.
9385 (core_target::fetch_registers): Update.
9386 * gdbcore.h (struct core_fns): Remove.
9387 (deprecated_add_core_fns): Remove.
9388 (default_core_sniffer): Remove.
9389 (default_check_format): Remove.
9390
9391 2020-03-12 Tom Tromey <tom@tromey.com>
9392
9393 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9394 CORE_ADDR.
9395 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9396
9397 2020-03-12 Tom Tromey <tom@tromey.com>
9398
9399 * remote.c (remote_target::download_tracepoint)
9400 (remote_target::enable_tracepoint)
9401 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9402 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9403 sprintf_vma.
9404
9405 2020-03-12 Tom Tromey <tom@tromey.com>
9406
9407 * symfile-mem.c: Update CORE_ADDR size assert.
9408
9409 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9410
9411 * selftest.m4: Move to gdbsupport/.
9412 * acinclude.m4: Update path to selftest.m4.
9413
9414 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9415
9416 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9417 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9418 gdbarch-selfselftests.c and selftest-arch.c.
9419 (SUBDIR_UNITTESTS_OBS): Rename to...
9420 (SELFTESTS_OBS): ... this.
9421 (COMMON_SFILES): Remove disasm-selftests.c and
9422 gdbarch-selftests.c.
9423 * configure.ac: Don't add selftest-arch.{c,o} to
9424 CONFIG_{SRCS,OBS}.
9425 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9426 preprocessor conditions.
9427
9428 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * configure.ac: Don't source bfd/development.sh.
9431 * selftest.m4: Modify comment.
9432 * configure: Re-generate.
9433
9434 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9435
9436 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9437 not "true" or "false".
9438 * configure: Re-generate.
9439
9440 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9441
9442 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9443 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9444 renamed to arm_nbsd_supply_gregset.
9445 (fetch_register): Update to call arm_nbsd_supply_gregset.
9446 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9447 (arm_netbsd_nat_target::fetch_registers): Update.
9448 (fetch_elfcore_registers): Removed.
9449 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9450 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9451 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9452 not require NetBSD system headers.
9453 (arm_nbsd_regset): New struct.
9454 (arm_nbsd_iterate_over_regset_sections): New function.
9455 (arm_netbsd_init_abi_common): Updated to call
9456 set_gdbarch_iterate_over_regset_sections.
9457 * arm-nbsd-tdep.h: New file.
9458
9459 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9460
9461 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9462 recursion.
9463
9464 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * configure: Re-generate.
9467
9468 2020-03-11 Tom Tromey <tromey@adacore.com>
9469
9470 * ada-typeprint.c (print_choices): Fix comment.
9471
9472 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9473
9474 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9475 previous item in the list, when the list has no items.
9476
9477 2020-03-11 Tom de Vries <tdevries@suse.de>
9478
9479 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9480 PROP_LOCLIST handling code.
9481
9482 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9483
9484 * buildsym-legacy.c (record_line): Pass extra parameter to
9485 record_line.
9486 * buildsym.c (buildsym_compunit::record_line): Take an extra
9487 parameter, reduce duplication in the line table, and record the
9488 is_stmt flag in the line table.
9489 * buildsym.h (buildsym_compunit::record_line): Add extra
9490 parameter.
9491 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9492 non-statement lines.
9493 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9494 this to the symtab builder.
9495 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9496 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9497 through to dwarf_record_line_1.
9498 * infrun.c (process_event_stop_test): When stepping, don't stop at
9499 a non-statement instruction, and only refresh the step info when
9500 we land in the middle of a line's range. Also add an extra
9501 comment.
9502 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9503 field.
9504 * record-btrace.c (btrace_find_line_range): Only record lines
9505 marked as is-statement.
9506 * stack.c (frame_show_address): Show the frame address if we are
9507 in a non-statement sal.
9508 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9509 (maintenance_print_one_line_table): Print a header for the is_stmt
9510 column, and include is_stmt information in the output.
9511 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9512 preference to non-statements.
9513 (find_pcs_for_symtab_line): Prefer is-statement entries.
9514 (find_line_common): Likewise.
9515 * symtab.h (struct linetable_entry): Add is_stmt field.
9516 (struct symtab_and_line): Likewise.
9517 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9518 arranging the line table.
9519
9520 2020-03-07 Tom de Vries <tdevries@suse.de>
9521
9522 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9523 DIE.
9524
9525 2020-03-07 Tom Tromey <tom@tromey.com>
9526
9527 * valops.c (value_literal_complex): Remove obsolete comment.
9528 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9529 comment.
9530
9531 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9532
9533 * infrun.h: Forward-declare thread_info.
9534 (set_step_info): Add thread_info parameter, add doc.
9535 * infrun.c (set_step_info): Add thread_info parameter, move doc
9536 to header.
9537 * infrun.c (process_event_stop_test): Pass thread to
9538 set_step_info call.
9539 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9540 set_step_info.
9541 (prepare_one_step): Add thread_info parameter, pass it to
9542 set_step_frame and prepare_one_step (recursive) call.
9543 (step_1): Pass thread to prepare_one_step call.
9544 (step_command_fsm::should_stop): Pass thread to
9545 prepare_one_step.
9546 (until_next_fsm): Pass thread to set_step_frame call.
9547 (finish_command): Pass thread to set_step_info call.
9548
9549 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9550
9551 * windows-tdep.c (windows_solib_create_inferior_hook):
9552 Check if inferior is running.
9553
9554 2020-03-06 Tom de Vries <tdevries@suse.de>
9555
9556 * NEWS: Fix "the the".
9557 * ctfread.c: Same.
9558
9559 2020-03-06 Tom de Vries <tdevries@suse.de>
9560
9561 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9562
9563 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9564
9565 * .dir-locals.el: Add a comment referencing the other copies of
9566 this file.
9567
9568 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9569
9570 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9571 psargs.
9572
9573 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9574
9575 * .gitattributes: New file.
9576
9577 2020-03-04 Tom Tromey <tom@tromey.com>
9578
9579 * symmisc.c (print_symbol_bcache_statistics)
9580 (print_objfile_statistics): Update.
9581 * symfile.c (allocate_symtab): Use intern.
9582 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9583 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9584 macro_cache>: Remove.
9585 <string_cache>: New member.
9586 (struct objfile) <intern>: New methods.
9587 * elfread.c (elf_symtab_read): Use intern.
9588 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9589 (dwarf2_compute_name, dwarf2_physname)
9590 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9591 names.
9592 (guess_partial_die_structure_name): Update.
9593 (partial_die_info::fixup): Intern name.
9594 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9595 name.
9596 (dwarf2_name): Intern name. Update.
9597 * buildsym.c (buildsym_compunit::get_macro_table): Use
9598 string_cache.
9599
9600 2020-03-04 Tom Tromey <tom@tromey.com>
9601
9602 * jit.c (bfd_open_from_target_memory): Make "target" const.
9603 * corefile.c (gnutarget): Now const.
9604 * gdbcore.h (gnutarget): Now const.
9605
9606 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9607
9608 * NEWS: Mention support for WOW64 processes.
9609 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9610 (amd64_windows_segment_register_p): Remove static.
9611 (_initialize_amd64_windows_nat): Update.
9612 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9613 * i386-windows-nat.c (context_offset): Update.
9614 (i386_mappings): Rename and remove static.
9615 (i386_windows_segment_register_p): Remove static.
9616 (_initialize_i386_windows_nat): Update.
9617 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9618 (STATUS_WX86_SINGLE_STEP): New macro.
9619 (EnumProcessModulesEx): New macro.
9620 (Wow64SuspendThread): New macro.
9621 (Wow64GetThreadContext): New macro.
9622 (Wow64SetThreadContext): New macro.
9623 (Wow64GetThreadSelectorEntry): New macro.
9624 (windows_set_context_register_offsets): Add static.
9625 (windows_set_segment_register_p): Likewise.
9626 (windows_add_thread): Adapt for WOW64 processes.
9627 (windows_fetch_one_register): Likewise.
9628 (windows_nat_target::fetch_registers): Likewise.
9629 (windows_store_one_register): Likewise.
9630 (display_selector): Likewise.
9631 (display_selectors): Likewise.
9632 (handle_exception): Likewise.
9633 (windows_continue): Likewise.
9634 (windows_nat_target::resume): Likewise.
9635 (windows_add_all_dlls): Likewise.
9636 (do_initial_windows_stuff): Likewise.
9637 (windows_nat_target::attach): Likewise.
9638 (windows_get_exec_module_filename): Likewise.
9639 (windows_nat_target::create_inferior): Likewise.
9640 (windows_xfer_siginfo): Likewise.
9641 (_initialize_loadable): Initialize Wow64SuspendThread,
9642 Wow64GetThreadContext, Wow64SetThreadContext,
9643 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9644 * windows-nat.h (windows_set_context_register_offsets):
9645 Remove declaration.
9646 (windows_set_segment_register_p): Likewise.
9647 (i386_windows_segment_register_p): Add declaration.
9648 (amd64_windows_segment_register_p): Likewise.
9649
9650 2020-03-04 Luis Machado <luis.machado@linaro.org>
9651
9652 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9653 in "info registers" for AArch64/ARM.
9654
9655 The change caused "info registers" to not print GPR's.
9656
9657 gdb/ChangeLog:
9658
9659 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9660
9661 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9662 when reg->group is empty and reggroup is not.
9663
9664 2020-03-03 Tom Tromey <tromey@adacore.com>
9665
9666 * dwarf2/frame.c (struct dwarf2_frame_cache)
9667 <checked_tailcall_bottom, entry_cfa_sp_offset,
9668 entry_cfa_sp_offset_p>: Remove members.
9669 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9670 (dwarf2_frame_prev_register): Don't call
9671 dwarf2_tailcall_sniffer_first.
9672 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9673 * frame-unwind.c (add_unwinder): New fuction.
9674 (frame_unwind_init): Use it. Add tailcall unwinder.
9675
9676 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9677 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9678
9679 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9680 value should be printed as true.
9681
9682 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9683
9684 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9685 (windows_init_abi): Set and use windows_so_ops.
9686
9687 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9688
9689 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9690 when verifying if dealing with a convenience variable.
9691
9692 2020-03-03 Luis Machado <luis.machado@linaro.org>
9693
9694 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9695
9696 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9697
9698 * infrun.c (gdbarch_supports_displaced_stepping): New.
9699 (use_displaced_stepping): Break up conditions in smaller pieces.
9700 Use gdbarch_supports_displaced_stepping.
9701 (displaced_step_prepare_throw): Use
9702 gdbarch_supports_displaced_stepping.
9703
9704 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9705
9706 * NEWS: Mention new behaviour of the history filename.
9707 * top.c (write_history_p): Add comment.
9708 (show_write_history_p): Add header comment, give a different
9709 message when history writing is on, but the history filename is
9710 empty.
9711 (history_filename): Add comment.
9712 (history_filename_empty): New function.
9713 (show_history_filename): Add header comment, give a different
9714 message when the filename is empty.
9715 (init_history): Compare history_filename against nullptr, and only
9716 read history if the filename is not empty.
9717 (set_history_filename): Add header comment, and only make
9718 non-empty filenames absolute.
9719 (init_main): Make the filename argument to 'set history filename'
9720 optional.
9721
9722 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9723
9724 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9725 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9726 (fetch_fp_register): Update.
9727 (fetch_fp_regs): Update.
9728 (store_fp_register): Update.
9729 (store_fp_regs): Update.
9730 (arm_netbsd_nat_target::read_description): New function.
9731 (fetch_elfcore_registers): Update.
9732
9733 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9734
9735 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9736 general_thread if the stop reply is missing a thread-id.
9737 (remote_target::process_stop_reply): Use the first non-exited
9738 thread if the target didn't pass a thread-id.
9739 * infrun.c (do_target_wait): Move call to
9740 switch_to_inferior_no_thread to ....
9741 (do_target_wait_1): ... here.
9742
9743 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9744
9745 * debuginfod-support.c: Include defs.h first.
9746
9747 2020-02-28 Tom de Vries <tdevries@suse.de>
9748
9749 * symfile.c (set_initial_language): Use default language for lookup.
9750
9751 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9752
9753 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9754 reader variable, pass `this` to read_cutu_die_from_dwo.
9755
9756 2020-02-27 Aaron Merey <amerey@redhat.com>
9757
9758 * source.c (open_source_file): Check for nullptr when computing
9759 srcpath.
9760
9761 2020-02-27 Tom Tromey <tromey@adacore.com>
9762
9763 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9764 member.
9765 (dwarf2_add_field): Don't update nfields.
9766 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9767
9768 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9769
9770 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9771 abs.
9772
9773 2020-02-26 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9776 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9777 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9778 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9779 per_cu_data.
9780
9781 2020-02-26 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/index-write.c (psym_index_map): Change type.
9784 (add_address_entry_worker, write_one_signatured_type)
9785 (recursively_count_psymbols, recursively_write_psymbols)
9786 (class debug_names, psyms_seen_size, write_gdbindex)
9787 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9788
9789 2020-02-26 Aaron Merey <amerey@redhat.com>
9790
9791 * Makefile.in: Handle optional debuginfod support.
9792 * NEWS: Update.
9793 * README: Add --with-debuginfod summary.
9794 * config.in: Regenerate.
9795 * configure: Regenerate.
9796 * configure.ac: Handle optional debuginfod support.
9797 * debuginfod-support.c: debuginfod helper functions.
9798 * debuginfod-support.h: Ditto.
9799 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9800 summary.
9801 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9802 when a dwz file cannot be found.
9803 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9804 debuginfo file cannot be found.
9805 * source.c (open_source_file): Query debuginfod servers when a
9806 source file cannot be found.
9807 * top.c (print_gdb_configuration): Include
9808 --{with,without}-debuginfod in the output.
9809
9810 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9811
9812 * thread.c (thr_try_catch_cmd): Print thread name.
9813
9814 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9817 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9818 dwarf2_fetch_die_type_sect_off): Move to...
9819 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9820 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9821 dwarf2_fetch_die_type_sect_off): ... here.
9822 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9824 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9825
9826 2020-02-26 Tom de Vries <tdevries@suse.de>
9827
9828 PR gdb/25603
9829 * symfile.c (set_initial_language): Exit-early if
9830 language_mode == language_mode_manual.
9831
9832 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9833
9834 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9835 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9836 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9837
9838 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9839
9840 * gdbtypes.c (create_array_type_with_stride): Handle negative
9841 array strides.
9842 * valarith.c (value_subscripted_rvalue): Likewise.
9843
9844 2020-02-25 Luis Machado <luis.machado@linaro.org>
9845
9846 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9847
9848 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9849
9850 * loc.h (dwarf2_get_die_type): Move to...
9851 * read.h (dwarf2_get_die_type): ... here.
9852 * read.c (dwarf2_get_die_type): Move doc to header.
9853
9854 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9855
9856 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9857 'gnulib/Makefile.in' to the list.
9858
9859 2020-02-24 Tom Tromey <tom@tromey.com>
9860
9861 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9862 Remove.
9863 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9864 XOBNEWVEC.
9865
9866 2020-02-24 Tom Tromey <tom@tromey.com>
9867
9868 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9869 New method.
9870 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9871 (dw2_do_instantiate_symtab, dw2_get_file_names)
9872 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9873
9874 2020-02-24 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9877 make_scoped_restore.
9878 (dwarf2_psymtab::read_symtab): Don't clear
9879 reading_partial_symbols.
9880
9881 2020-02-24 Tom de Vries <tdevries@suse.de>
9882
9883 PR gdb/25592
9884 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9885
9886 2020-02-24 Tom de Vries <tdevries@suse.de>
9887
9888 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9889 commands layout next/prev/regs.
9890
9891 2020-02-22 Tom Tromey <tom@tromey.com>
9892
9893 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9894 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9895
9896 2020-02-22 Tom Tromey <tom@tromey.com>
9897
9898 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9899
9900 2020-02-22 Tom Tromey <tom@tromey.com>
9901
9902 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9903 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9904 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9905 * tui/tui.c (_initialize_tui): Add usage text.
9906
9907 2020-02-22 Tom Tromey <tom@tromey.com>
9908
9909 * tui/tui-win.c (tui_set_focus_command)
9910 (tui_set_win_height_command): Use error_no_arg.
9911 (_initialize_tui_win): Update help text.
9912 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9913
9914 2020-02-22 Tom Tromey <tom@tromey.com>
9915
9916 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9917 * tui/tui-disasm.h (struct tui_disasm_window)
9918 <display_start_addr>: Declare.
9919 * tui/tui-source.h (struct tui_source_window)
9920 <display_start_addr>: Declare.
9921 * tui/tui-winsource.h (struct tui_source_window_base)
9922 <show_source_line, display_start_addr>: New methods.
9923 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9924 Rename and move to protected section.
9925 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9926 (tui_source_window_base::do_erase_source_content): Update.
9927 (tui_source_window_base::show_source_line): Now a method.
9928 (tui_source_window_base::show_source_content)
9929 (tui_source_window_base::tui_source_window_base)
9930 (tui_source_window_base::rerender)
9931 (tui_source_window_base::refill)
9932 (tui_source_window_base::do_scroll_horizontal)
9933 (tui_source_window_base::set_is_exec_point_at)
9934 (tui_source_window_base::update_breakpoint_info)
9935 (tui_source_window_base::update_exec_info): Update.
9936 * tui/tui-source.c (tui_source_window::set_contents)
9937 (tui_source_window::showing_source_p)
9938 (tui_source_window::do_scroll_vertical)
9939 (tui_source_window::location_matches_p)
9940 (tui_source_window::line_is_displayed): Update.
9941 (tui_source_window::display_start_addr): New method.
9942 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9943 (tui_disasm_window::do_scroll_vertical)
9944 (tui_disasm_window::location_matches_p): Update.
9945 (tui_disasm_window::display_start_addr): New method.
9946
9947 2020-02-22 Tom Tromey <tom@tromey.com>
9948
9949 * NEWS: Add entry for gdb.register_window_type.
9950 * tui/tui-layout.h (window_factory): New typedef.
9951 (tui_register_window): Declare.
9952 * tui/tui-layout.c (saved_tui_windows): New global.
9953 (tui_apply_current_layout): Use it.
9954 (tui_register_window): New function.
9955 * python/python.c (do_start_initialization): Call
9956 gdbpy_initialize_tui.
9957 (python_GdbMethods): Add "register_window_type" function.
9958 * python/python-internal.h (gdbpy_register_tui_window)
9959 (gdbpy_initialize_tui): Declare.
9960 * python/py-tui.c: New file.
9961 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9962
9963 2020-02-22 Tom Tromey <tom@tromey.com>
9964
9965 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9966
9967 2020-02-22 Tom Tromey <tom@tromey.com>
9968
9969 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9970 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9971 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9972 (tui_set_win_focus_to): Move from tui-win.c.
9973
9974 2020-02-22 Tom Tromey <tom@tromey.com>
9975
9976 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9977 functions.
9978 (known_window_types): New global.
9979 (tui_get_window_by_name): Reimplement.
9980 (initialize_known_windows): New function.
9981 (validate_window_name): Rewrite.
9982 (_initialize_tui_layout): Call initialize_known_windows.
9983
9984 2020-02-22 Tom Tromey <tom@tromey.com>
9985
9986 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9987 Remove constants.
9988 * tui/tui-winsource.h (struct tui_source_window_base)
9989 <tui_source_window_base>: Remove parameter.
9990 * tui/tui-winsource.c
9991 (tui_source_window_base::tui_source_window_base): Remove
9992 parameter.
9993 (tui_source_window_base::refill): Update.
9994 * tui/tui-stack.h (struct tui_locator_window)
9995 <tui_locator_window>: Update.
9996 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9997 Default the constructor.
9998 * tui/tui-regs.h (struct tui_data_item_window)
9999 <tui_data_item_window>: Default the constructor.
10000 (struct tui_data_window) <tui_data_window>: Likewise.
10001 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10002 Default the constructor.
10003 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10004 Default the constructor.
10005 <type>: Remove.
10006 (struct tui_win_info) <tui_win_info>: Default the constructor.
10007 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10008 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10009 Default the constructor.
10010
10011 2020-02-22 Tom Tromey <tom@tromey.com>
10012
10013 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10014 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10015 * tui/tui-win.c (tui_resize_all): Don't call
10016 tui_delete_invisible_windows.
10017 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10018 done.
10019 (tui_set_layout): Update.
10020 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10021 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10022 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10023
10024 2020-02-22 Tom Tromey <tom@tromey.com>
10025
10026 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10027 correctly.
10028
10029 2020-02-22 Tom Tromey <tom@tromey.com>
10030
10031 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10032
10033 2020-02-22 Tom Tromey <tom@tromey.com>
10034
10035 * tui/tui-winsource.h (struct tui_source_window_iterator)
10036 <inner_iterator>: New etytypedef.
10037 <tui_source_window_iterator>: Take "end" parameter.
10038 <tui_source_window_iterator>: Take iterator.
10039 <operator*, advance>: Update.
10040 <m_iter>: Change type.
10041 <m_end>: New field.
10042 (struct tui_source_windows) <begin, end>: Update.
10043 * tui/tui-layout.c (tui_windows): New global.
10044 (tui_apply_current_layout): Clear tui_windows.
10045 (tui_layout_window::apply): Update tui_windows.
10046 * tui/tui-data.h (tui_windows): Declare.
10047 (all_tui_windows): Now inline function.
10048 (class tui_window_iterator, struct all_tui_windows): Remove.
10049
10050 2020-02-22 Tom Tromey <tom@tromey.com>
10051
10052 PR tui/17850:
10053 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10054 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10055 "height" argument.
10056 (class tui_layout_window) <get_sizes>: Likewise.
10057 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10058 argument.
10059 <get_sizes>: Add "height" argument.
10060 <m_vertical>: New field.
10061 * tui/tui-layout.c (tui_layout_split::clone): Update.
10062 (tui_layout_split::get_sizes): Add "height" argument.
10063 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10064 (tui_new_layout_command): Parse "-horizontal".
10065 (_initialize_tui_layout): Update help string.
10066 (tui_layout_split::specification): Add "-horizontal" when needed.
10067 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10068 argument.
10069 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10070 New methods.
10071
10072 2020-02-22 Tom Tromey <tom@tromey.com>
10073
10074 * tui/tui-layout.h (enum tui_adjust_result): New.
10075 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10076 (class tui_layout_window) <adjust_size>: Return
10077 tui_adjust_result. Rewrite.
10078 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10079 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10080
10081 2020-02-22 Tom Tromey <tom@tromey.com>
10082
10083 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10084 parameter and return types.
10085 (class tui_layout_base) <specification>: Add "depth".
10086 (class tui_layout_window) <specification>: Add "depth".
10087 (class tui_layout_split) <specification>: Add "depth".
10088 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10089 and return types.
10090 (tui_new_layout_command): Parse sub-layouts.
10091 (_initialize_tui_layout): Update help string.
10092 (tui_layout_window::specification): Add "depth".
10093 (add_layout_command): Update.
10094
10095 2020-02-22 Tom Tromey <tom@tromey.com>
10096
10097 * NEWS: Add "tui new-layout" item.
10098 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10099 Add new-layout command to help text.
10100 (validate_window_name): New function.
10101 (tui_new_layout_command): New function.
10102 (_initialize_tui_layout): Register "new-layout".
10103 (tui_layout_window::specification): New method.
10104 (tui_layout_window::specification): New method.
10105 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10106 method.
10107 (class tui_layout_window) <specification>: New method.
10108 (class tui_layout_split) <specification>: New method.
10109
10110 2020-02-22 Tom Tromey <tom@tromey.com>
10111
10112 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10113 * tui/tui-win.c (window_name_completer): Update comment.
10114 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10115 Declare method.
10116 (class tui_layout_window) <replace_window>: Likewise.
10117 (class tui_layout_split) <replace_window>: Likewise.
10118 (tui_set_layout): Don't declare.
10119 (tui_set_initial_layout): Declare function.
10120 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10121 (asm_regs_layout): New globals.
10122 (tui_current_layout, show_layout): Remove.
10123 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10124 (find_layout, tui_apply_layout): New function.
10125 (layout_completer): Remove.
10126 (tui_next_layout): Reimplement.
10127 (tui_next_layout_command): New function.
10128 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10129 (tui_regs_layout): Reimplement.
10130 (tui_regs_layout_command): New function.
10131 (extract_display_start_addr): Rewrite.
10132 (next_layout, prev_layout): Remove.
10133 (tui_layout_window::replace_window): New method.
10134 (tui_layout_split::replace_window): New method.
10135 (destroy_layout): New function.
10136 (layout_list): New global.
10137 (add_layout_command): New function.
10138 (initialize_layouts): Update.
10139 (tui_layout_command): New function.
10140 (_initialize_tui_layout): Install "layout" commands.
10141 * tui/tui-data.h (enum tui_layout_type): Remove.
10142 (tui_current_layout): Don't declare.
10143
10144 2020-02-22 Tom Tromey <tom@tromey.com>
10145
10146 * tui/tui-regs.c (tui_reg_layout): Remove.
10147 (tui_reg_command): Use tui_regs_layout.
10148 * tui/tui-layout.h (tui_reg_command): Declare.
10149 * tui/tui-layout.c (tui_reg_command): New function.
10150
10151 2020-02-22 Tom Tromey <tom@tromey.com>
10152
10153 * tui/tui.c (tui_rl_delete_other_windows): Call
10154 tui_remove_some_windows.
10155 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10156 Declare method.
10157 (class tui_layout_window) <remove_windows>: New method.
10158 (class tui_layout_split) <remove_windows>: Declare.
10159 (tui_remove_some_windows): Declare.
10160 * tui/tui-layout.c (tui_remove_some_windows): New function.
10161 (tui_layout_split::remove_windows): New method.
10162
10163 2020-02-22 Tom Tromey <tom@tromey.com>
10164
10165 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10166 * tui/tui-layout.h (tui_next_layout): Declare.
10167 * tui/tui-layout.c (tui_next_layout): New function.
10168
10169 2020-02-22 Tom Tromey <tom@tromey.com>
10170
10171 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10172 correct coordinates.
10173
10174 2020-02-22 Tom Tromey <tom@tromey.com>
10175
10176 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10177 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10178 DATA_WIN case.
10179
10180 2020-02-22 Tom Tromey <tom@tromey.com>
10181
10182 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10183 TUI_DISASM_WIN, not tui_win_list.
10184
10185 2020-02-22 Tom Tromey <tom@tromey.com>
10186
10187 * valprint.c (generic_val_print_enum_1)
10188 (val_print_type_code_flags): Style member names.
10189 * rust-lang.c (val_print_struct, rust_print_enum)
10190 (rust_print_struct_def, rust_internal_print_type): Style member
10191 names.
10192 * p-valprint.c (pascal_object_print_value_fields): Style member
10193 names. Only call fprintf_symbol_filtered for static members.
10194 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10195 * f-valprint.c (f_val_print): Style member names.
10196 * f-typeprint.c (f_type_print_base): Style member names.
10197 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10198 call fprintf_symbol_filtered for static members.
10199 (cp_print_class_member): Style member names.
10200 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10201 member names.
10202 * ada-valprint.c (ada_print_scalar): Style enum names.
10203 (ada_val_print_enum): Likewise.
10204 * ada-typeprint.c (print_enum_type): Style enum names.
10205
10206 2020-02-21 Tom Tromey <tom@tromey.com>
10207
10208 * psympriv.h (struct partial_symtab): Update comment.
10209
10210 2020-02-21 Tom Tromey <tromey@adacore.com>
10211
10212 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10213 type is CORE_ADDR.
10214
10215 2020-02-21 Tom de Vries <tdevries@suse.de>
10216
10217 PR gdb/25534
10218 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10219 if dependencies[i]->user != NULL.
10220
10221 2020-02-21 Ali Tamur <tamur@google.com>
10222
10223 * dwarf2/read.c (dwarf2_name): Add null check.
10224
10225 2020-02-20 Tom Tromey <tom@tromey.com>
10226
10227 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10228 ">=", in binary search.
10229 (dwarf2_find_containing_comp_unit): New overload.
10230 (run_test): New self-test.
10231 (_initialize_dwarf2_read): Register new test.
10232
10233 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10234
10235 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10236 * riscv-tdep.h: Likewise.
10237 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10238 rv32-only CSR.
10239 * features/riscv/64bit-csr.xml: Regenerated.
10240
10241 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10242 Tom Tromey <tom@tromey.com>
10243
10244 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10245 of 'fputc_unfiltered'.
10246 (putchar_unfiltered): Call 'fputc_unfiltered'.
10247 (fputc_unfiltered): Call 'fputs_unfiltered'.
10248
10249 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10250
10251 * config.in: Regenerate.
10252 * configure: Regenerate.
10253 * configure.ac: Add --with-python-libdir option.
10254 * main.c: Use WITH_PYTHON_LIBDIR.
10255
10256 2020-02-19 Tom Tromey <tom@tromey.com>
10257
10258 * symtab.c (general_symbol_info::compute_and_set_names): Use
10259 obstack_strndup. Simplify call to symbol_set_demangled_name.
10260
10261 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10262
10263 * dwarf2/read.c (allocate_signatured_type_table,
10264 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10265 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10266 Remove objfile parameter, update all callers.
10267
10268 2020-02-19 Doug Evans <dje@google.com>
10269
10270 PR rust/25535
10271 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10272 rust_enum_variant calculation.
10273
10274 2020-02-19 Tom Tromey <tromey@adacore.com>
10275
10276 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10277
10278 2020-02-19 Tom Tromey <tromey@adacore.com>
10279
10280 * ada-lang.c (cache_symbol): Use obstack_strdup.
10281
10282 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10283
10284 * configure: Regenerate.
10285
10286 2020-02-19 Tom Tromey <tromey@adacore.com>
10287
10288 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10289 NULL check.
10290
10291 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10292
10293 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10294
10295 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10296
10297 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10298 if GDBSERVER is not defined.
10299 (riscv_tdesc_cache): Likewise, also store const target_desc.
10300 (STATIC_IN_GDB): Define.
10301 (riscv_create_target_description): Update declaration with
10302 STATIC_IN_GDB.
10303 (riscv_lookup_target_description): New function, only define if
10304 GDBSERVER is not defined.
10305 * arch/riscv.h (riscv_create_target_description): Declare only
10306 when GDBSERVER is defined.
10307 (riscv_lookup_target_description): New declaration when GDBSERVER
10308 is not defined.
10309 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10310 (riscv_linux_read_features): ...this, and return
10311 riscv_gdbarch_features instead of target_desc.
10312 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10313 (riscv_linux_read_description): Rename to...
10314 (riscv_linux_read_features): ...this.
10315 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10316 Update to use riscv_gdbarch_features and
10317 riscv_lookup_target_description.
10318 * riscv-tdep.c (riscv_find_default_target_description): Use
10319 riscv_lookup_target_description instead of
10320 riscv_create_target_description.
10321
10322 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * valprint.c (generic_val_print_enum_1): When printing a flag
10325 enum with value 0 and there is no enumerator with value 0, print
10326 just "0" instead of "(unknown: 0x0)".
10327
10328 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * valprint.c (generic_val_print_enum_1): Print unknown part of
10331 flag enum in hex.
10332
10333 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10334
10335 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10336 flag enums to contain duplicate enumerators.
10337 * valprint.c (generic_val_print_enum_1): Update comment.
10338
10339 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * dwarf2/read.c: Include "count-one-bits.h".
10342 (update_enumeration_type_from_children): If an enumerator has
10343 multiple bits set, don't treat the enumeration as a "flag enum".
10344 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10345 of flag enums have 0 or 1 bit set.
10346
10347 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10348
10349 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10350 conversion.
10351 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10352 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10353 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10354 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10355 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10356
10357 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10360
10361 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10362
10363 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10364 displaced_step_closure_up.
10365 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10366 (struct displaced_step_closure_up):
10367 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10368 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10369 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10370 Likewise.
10371 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10372 * gdbarch.c, gdbarch.h: Re-generate.
10373 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10374 displaced_step_closure_up.
10375 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10376 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10377 * infrun.h (displaced_step_closure_up): New type alias.
10378 (struct displaced_step_inferior_state) <step_closure>: Change
10379 type to displaced_step_closure_up.
10380 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10381 displaced_step_closure_up.
10382 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10383
10384 2020-02-14 Tom Tromey <tom@tromey.com>
10385
10386 * minidebug.c (gnu_debug_key): New global.
10387 (find_separate_debug_file_in_section): Use it.
10388
10389 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10390
10391 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10392 std::unique_ptr.
10393 * gdbarch.c: Re-generate.
10394 * gdbarch.h: Re-generate.
10395 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10396 change.
10397 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10398 type to std::unique_ptr.
10399 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10400 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10401 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10402 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10403 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10404 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10405 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10406 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10407 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10408
10409 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10410
10411 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10412 std::unique_ptr.
10413 (displaced_step_clear): Rename to...
10414 (displaced_step_reset): ... this. Just call displaced->reset ().
10415 (displaced_step_clear_cleanup): Rename to...
10416 (displaced_step_reset_cleanup): ... this.
10417 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10418 (displaced_step_fixup): Likewise.
10419 (resume_1): Likewise.
10420 (handle_inferior_event): Restore child's memory before calling
10421 displaced_step_fixup on the parent.
10422 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10423 to std::unique_ptr.
10424 <step_closure>: Change type to std::unique_ptr.
10425
10426 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10427
10428 * arm-tdep.c: Include count-one-bits.h.
10429 (cleanup_block_store_pc): Use count_one_bits.
10430 (cleanup_block_load_pc): Use count_one_bits.
10431 (arm_copy_block_xfer): Use count_one_bits.
10432 (thumb2_copy_block_xfer): Use count_one_bits.
10433 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10434 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10435 (thumb_get_next_pcs_raw): Use count_one_bits.
10436 (arm_get_next_pcs_raw): Use count_one_bits_l.
10437 * arch/arm.c (bitcount): Remove.
10438 * arch/arm.h (bitcount): Remove.
10439
10440 2020-02-14 Tom Tromey <tromey@adacore.com>
10441
10442 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10443 Update.
10444 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10445 * dwarf2/loc.c (call_site_find_chain_1): Return
10446 unique_xmalloc_ptr.
10447 (call_site_find_chain): Likewise.
10448
10449 2020-02-14 Richard Biener <rguenther@suse.de>
10450
10451 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10452 on expression with division operators.
10453
10454 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10455
10456 * MAINTAINERS (Write After Approval): Adding myself.
10457
10458 2020-02-12 Tom Tromey <tom@tromey.com>
10459
10460 * event-loop.c (event_data, gdb_event, event_handler_func):
10461 Remove.
10462
10463 2020-02-12 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10466 (dwarf2_frame_objfile_data): Add comment.
10467 (find_comp_unit, set_comp_unit): New functions.
10468 (dwarf2_frame_find_fde): Use find_comp_unit.
10469 (dwarf2_build_frame_info): Use set_comp_unit.
10470
10471 2020-02-12 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10474 (comp_unit): Don't initialize objfile.
10475 (execute_cfa_program): Add text_offset parameter.
10476 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10477 (dwarf2_frame_cache): Update.
10478 (dwarf2_build_frame_info): Don't set "objfile" member.
10479
10480 2020-02-12 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10483 (decode_frame_entry): Likewise.
10484 (dwarf2_build_frame_info): Update.
10485
10486 2020-02-12 Tom Tromey <tom@tromey.com>
10487
10488 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10489 (decode_frame_entry_1): Use the comp_unit obstack.
10490
10491 2020-02-12 Tom Tromey <tom@tromey.com>
10492
10493 * dwarf2/frame.c (struct comp_unit): Add initializers and
10494 constructor.
10495 (dwarf2_frame_objfile_data): Store a comp_unit.
10496 (dwarf2_frame_find_fde): Update.
10497 (dwarf2_build_frame_info): Use "new".
10498
10499 2020-02-12 Tom Tromey <tom@tromey.com>
10500
10501 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10502 (dwarf2_fde_table): Typedef for std::vector.
10503 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10504 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10505 (decode_frame_entry): Update.
10506 (dwarf2_build_frame_info): Use "new".
10507
10508 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10509
10510 * arm-tdep.c (arm_gdbarch_init): Update.
10511 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10512 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10513 have_neon, is_m>: Change to bool.
10514
10515 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10516
10517 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10518
10519 2020-02-12 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10522
10523 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10524
10525 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10526 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10527
10528 2020-02-11 Tom Tromey <tom@tromey.com>
10529
10530 * psymtab.h: Update comment.
10531
10532 2020-02-11 Tom Tromey <tom@tromey.com>
10533
10534 * gdb_obstack.h (struct auto_obstack): Use
10535 DISABLE_COPY_AND_ASSIGN.
10536
10537 2020-02-11 Tom Tromey <tom@tromey.com>
10538
10539 * dwarf2/frame.h (struct objfile): Don't forward declare.
10540
10541 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10542
10543 * cris-tdep.c (cris_supply_gregset): Change signature to match
10544 what struct regset expects.
10545 (cris_regset): New struct.
10546 (fetch_core_registers): Remove.
10547 (cris_iterate_over_regset_sections): New function.
10548 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10549 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10550
10551 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10552
10553 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10554 registers.
10555
10556 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10557
10558 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10559
10560 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * configure: Re-generate.
10563
10564 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10565
10566 * configure: Re-generate.
10567
10568 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10569
10570 * acinclude: Update warning.m4 path.
10571 * warning.m4: Move to gdbsupport.
10572
10573 2020-02-11 Tom Tromey <tromey@adacore.com>
10574
10575 * remote.c (remote_console_output): Update.
10576 * printcmd.c (printf_command): Update.
10577 * event-loop.c (gdb_wait_for_event): Update.
10578 * linux-nat.c (sigchld_handler): Update.
10579 * remote-sim.c (gdb_os_write_stdout): Update.
10580 (gdb_os_flush_stdout): Update.
10581 (gdb_os_flush_stderr): Update.
10582 (gdb_os_write_stderr): Update.
10583 * exceptions.c (print_exception): Update.
10584 * remote-fileio.c (remote_fileio_func_read): Update.
10585 (remote_fileio_func_write): Update.
10586 * tui/tui.c (tui_enable): Update.
10587 * tui/tui-interp.c (tui_interp::init): Update.
10588 * utils.c (init_page_info): Update.
10589 (putchar_unfiltered, fputc_unfiltered): Update.
10590 (gdb_flush): Update.
10591 (emit_style_escape): Update.
10592 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10593 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10594 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10595 (stderr_file::write): Update.
10596 (stderr_file::puts): Update.
10597 * ui-file.h (ui_file_isatty, ui_file_write)
10598 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10599 (ui_file_puts): Don't declare.
10600
10601 2020-02-10 Tom de Vries <tdevries@suse.de>
10602
10603 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10604 sentinel to char *.
10605
10606 2020-02-09 Tom de Vries <tdevries@suse.de>
10607
10608 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10609 filename if it matches "<artificial>".
10610
10611 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10612
10613 * windows-tdep.c (struct enum_value_name): New struct.
10614 (create_enum): New function.
10615 (windows_get_siginfo_type): Create and use enum types.
10616
10617 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10618
10619 * NEWS: Mention $_siginfo support for Windows.
10620 * windows-nat.c (handle_exception): Set siginfo_er.
10621 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10622 (windows_xfer_siginfo): New function.
10623 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10624 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10625 (init_windows_gdbarch_data): New function.
10626 (get_windows_gdbarch_data): New function.
10627 (windows_get_siginfo_type): New function.
10628 (windows_init_abi): Register windows_get_siginfo_type.
10629 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10630
10631 2020-02-08 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10634 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10635 <keep>: Declare method.
10636 <m_keep>: Remove member.
10637 <~cutu_reader>: Remove.
10638 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10639 (cutu_reader::cutu_reader): Update.
10640 (cutu_reader::keep): Rename from ~cutu_reader.
10641 (process_psymtab_comp_unit, build_type_psymtabs_1)
10642 (process_skeletonless_type_unit, load_partial_comp_unit)
10643 (load_full_comp_unit, dwarf2_read_addr_index)
10644 (read_signatured_type): Update.
10645
10646 2020-02-08 Tom Tromey <tom@tromey.com>
10647
10648 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10649 "want_partial_unit" parameter.
10650 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10651 Inline check for DW_TAG_partial_unit.
10652 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10653
10654 2020-02-08 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10657 read.c.
10658 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10659 read.c.
10660
10661 2020-02-08 Tom Tromey <tom@tromey.com>
10662
10663 * dwarf2/read.c (read_address): Move to comp-unit.c.
10664 (dwarf2_rnglists_process, dwarf2_ranges_process)
10665 (read_attribute_value, dwarf_decode_lines_1)
10666 (var_decode_location, decode_locdesc): Update.
10667 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10668 read.c. Remove "cu" parameter.
10669 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10670 method.
10671
10672 2020-02-08 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10675 (read_indirect_line_string): Update.
10676 * dwarf2/comp-unit.c (read_offset): Remove.
10677 (read_comp_unit_head): Update.
10678 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10679 method.
10680 (read_offset): Don't declare.
10681
10682 2020-02-08 Tom Tromey <tom@tromey.com>
10683
10684 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10685 * dwarf2/read.c (struct comp_unit_head): Move to
10686 dwarf2/comp-unit.h.
10687 (enum class rcuh_kind): Move to comp-unit.h.
10688 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10689 (read_comp_unit_head, error_check_comp_unit_head)
10690 (read_and_check_comp_unit_head): Move to comp-unit.c.
10691 (read_offset, dwarf_unit_type_name): Likewise.
10692 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10693 (cutu_reader::cutu_reader, read_call_site_scope)
10694 (find_partial_die, follow_die_offset): Update.
10695 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10696
10697 2020-02-08 Tom Tromey <tom@tromey.com>
10698
10699 * dwarf2/read.c (read_offset_1): Move to leb.c.
10700 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10701 (dwarf_decode_macro_bytes): Update.
10702 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10703 * dwarf2/leb.h (read_offset): Declare.
10704
10705 2020-02-08 Tom Tromey <tom@tromey.com>
10706
10707 * dwarf2/read.c (dwarf2_section_size): Remove.
10708 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10709 Update.
10710 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10711
10712 2020-02-08 Tom Tromey <tom@tromey.com>
10713
10714 * dwarf2/read.c (read_initial_length): Move to leb.c.
10715 * dwarf2/leb.h (read_initial_length): Declare.
10716 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10717 handle_nonstd parameter.
10718 * dwarf2/frame.c (read_initial_length): Remove.
10719 (decode_frame_entry_1): Update.
10720
10721 2020-02-08 Tom Tromey <tom@tromey.com>
10722
10723 * dwarf2/loc.c (dwarf2_find_location_expression)
10724 (dwarf_evaluate_loc_desc::get_tls_address)
10725 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10726 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10727 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10728 (dwarf2_compile_property_to_c)
10729 (dwarf2_loc_desc_get_symbol_read_needs)
10730 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10731 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10732 (loclist_describe_location, loclist_tracepoint_var_ref)
10733 (loclist_generate_c_location): Update.
10734 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10735 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10736 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10737 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10738 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10739 (dwarf2_per_cu_data::addr_size)
10740 (dwarf2_per_cu_data::ref_addr_size)
10741 (dwarf2_per_cu_data::text_offset)
10742 (dwarf2_per_cu_data::addr_type): Now methods.
10743 (per_cu_header_read_in): Make per_cu "const".
10744 (dwarf2_version): Remove.
10745 (dwarf2_per_cu_data::int_type): Now a method.
10746 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10747 (set_die_type, read_array_type, read_subrange_index_type)
10748 (read_tag_string_type, read_subrange_type): Update.
10749 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10750 offset_size, ref_addr_size, text_offset, addr_type, version,
10751 objfile, int_type, addr_sized_int_type>: Declare methods.
10752
10753 2020-02-08 Tom Tromey <tom@tromey.com>
10754
10755 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10756 Move earlier.
10757
10758 2020-02-08 Tom Tromey <tom@tromey.com>
10759
10760 * dwarf2/read.h (dwarf_line_debug): Declare.
10761 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10762 * dwarf2/read.c: Move line_header code to new files.
10763 (dwarf_line_debug): No longer static.
10764 * dwarf2/line-header.c: New file.
10765 * dwarf2/line-header.h: New file.
10766
10767 2020-02-08 Tom Tromey <tom@tromey.com>
10768
10769 * dwarf2/read.c (struct line_header) <file_full_name,
10770 file_file_name>: Return unique_xmalloc_ptr.
10771 (line_header::file_file_name): Update.
10772 (line_header::file_full_name): Update.
10773 (dw2_get_file_names_reader): Update.
10774 (macro_start_file): Update.
10775
10776 2020-02-08 Tom Tromey <tom@tromey.com>
10777
10778 * dwarf2/read.c (struct line_header) <file_full_name,
10779 file_file_name>: Declare methods.
10780 (dw2_get_file_names_reader): Update.
10781 (file_file_name): Now a method.
10782 (file_full_name): Likewise.
10783 (macro_start_file): Update.
10784
10785 2020-02-08 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.c (dwarf_always_disassemble)
10788 (show_dwarf_always_disassemble): Move to loc.c.
10789 (_initialize_dwarf2_read): Move "always-disassemble" registration
10790 to loc.c.
10791 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10792 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10793 static.
10794 (show_dwarf_always_disassemble): Move from read.c.
10795 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10796
10797 2020-02-08 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10800 (create_quick_file_names_table): Return htab_up.
10801 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10802 Update.
10803 * dwarf2/read.h (struct dwarf2_per_objfile)
10804 <quick_file_names_table>: Now htab_up.
10805
10806 2020-02-08 Tom Tromey <tom@tromey.com>
10807
10808 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10809
10810 2020-02-08 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10813 Rewrite.
10814 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10815 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10816 (abbrev_table::abbrev_table): No longer inline.
10817 (ABBREV_HASH_SIZE): Remove.
10818 (abbrev_table::m_abbrevs): Now an htab_up.
10819
10820 2020-02-08 Tom Tromey <tom@tromey.com>
10821
10822 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10823 (cutu_reader): Update.
10824 (build_type_psymtabs_1): Update.
10825 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10826 (abbrev_table::alloc_abbrev): Update.
10827 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10828 (abbrev_table::read): New static method, renamed from
10829 abbrev_table_read_table.
10830 (abbrev_table::alloc_abbrev)
10831 (abbrev_table::add_abbrev): Now private.
10832 (abbrev_table::abbrev_table): Now private.
10833 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10834
10835 2020-02-08 Tom Tromey <tom@tromey.com>
10836
10837 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10838 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10839 htab_up.
10840
10841 2020-02-08 Tom Tromey <tom@tromey.com>
10842
10843 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10844 htab_up.
10845 (lookup_dwo_unit_in_dwp): Update.
10846 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10847 on obstack.
10848
10849 2020-02-08 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10852 obstack.
10853
10854 2020-02-08 Tom Tromey <tom@tromey.com>
10855
10856 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10857 line_header_hash.
10858 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10859 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10860 Change type to htab_up.
10861
10862 2020-02-08 Tom Tromey <tom@tromey.com>
10863
10864 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10865 htab_up. Don't allocate on obstack.
10866 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10867 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10868 Change type to htab_up.
10869
10870 2020-02-08 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10873 Change type to htab_up.
10874 * dwarf2/read.c (create_signatured_type_table_from_index)
10875 (create_signatured_type_table_from_debug_names)
10876 (create_all_type_units, add_type_unit)
10877 (lookup_dwo_signatured_type, lookup_signatured_type)
10878 (process_skeletonless_type_unit): Update.
10879 (create_debug_type_hash_table, create_debug_types_hash_table):
10880 Change type of types_htab.
10881 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10882 htab_up. Don't allocate on obstack.
10883 (create_cus_hash_table): Change type of cus_htab parameter.
10884 (struct dwo_file) <cus, tus>: Now htab_up.
10885 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10886 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10887 (queue_and_load_all_dwo_tus): Update.
10888 * dwarf2/index-write.c (write_gdbindex): Update.
10889 (write_debug_names): Update.
10890
10891 2020-02-08 Tom Tromey <tom@tromey.com>
10892
10893 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10894 dwarf2/read.c. Remove "next" member. Add constructor ntad
10895 destructor.
10896 (struct dwarf2_per_objfile) <queue>: New member.
10897 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10898 dwarf2/read.h.
10899 (dwarf2_queue, dwarf2_queue_tail): Remove.
10900 (class dwarf2_queue_guard): Add parameter to constructor. Use
10901 DISABLE_COPY_AND_ASSIGN.
10902 <m_per_objfile>: New member.
10903 <~dwarf2_queue_guard>: Rewrite.
10904 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10905 Update.
10906 (~dwarf2_queue_item): New.
10907
10908 2020-02-08 Tom Tromey <tom@tromey.com>
10909
10910 * dwarf2/read.c (struct die_info) <has_children>: New member.
10911 (dw2_get_file_names_reader): Remove has_children.
10912 (dw2_get_file_names): Update.
10913 (read_cutu_die_from_dwo): Remove has_children.
10914 (cutu_reader::init_tu_and_read_dwo_dies)
10915 (cutu_reader::cutu_reader): Update.
10916 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10917 Remove has_children.
10918 (build_type_psymtabs_1, process_skeletonless_type_unit)
10919 (load_partial_comp_unit, load_full_comp_unit): Update.
10920 (create_dwo_cu_reader): Remove has_children.
10921 (create_cus_hash_table, read_die_and_children): Update.
10922 (read_full_die_1,read_full_die): Remove has_children.
10923 (read_signatured_type): Update.
10924 (class cutu_reader) <has_children>: Remove.
10925
10926 2020-02-08 Tom Tromey <tom@tromey.com>
10927
10928 * dwarf2/expr.c: Rename from dwarf2expr.c.
10929 * dwarf2/expr.h: Rename from dwarf2expr.h.
10930 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10931 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10932 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10933 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10934 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10935 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10936 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10937 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10938 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10939 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10940 * dwarf2/loc.c: Rename from dwarf2loc.c.
10941 * dwarf2/loc.h: Rename from dwarf2loc.h.
10942 * dwarf2/read.c: Rename from dwarf2read.c.
10943 * dwarf2/read.h: Rename from dwarf2read.h.
10944 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10945 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10946 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10947 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10948 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10949 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10950 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10951 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10952 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10953 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10954 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10955 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10956 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10957 Update.
10958 * Makefile.in (COMMON_SFILES): Update.
10959 (HFILES_NO_SRCDIR): Update.
10960
10961 2020-02-08 Tom Tromey <tom@tromey.com>
10962
10963 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10964 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10965
10966 2020-02-08 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2read.h (struct die_info): Don't declare.
10969
10970 2020-02-08 Tom Tromey <tom@tromey.com>
10971
10972 * dwarf2read.h (die_info_ptr): Remove typedef.
10973
10974 2020-02-08 Tom Tromey <tom@tromey.com>
10975
10976 * dwarf2read.c (read_call_site_scope)
10977 (handle_data_member_location, dwarf2_add_member_fn)
10978 (mark_common_block_symbol_computed, read_common_block)
10979 (attr_to_dynamic_prop, partial_die_info::read)
10980 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10981 (dwarf2_symbol_mark_computed, set_die_type): Update.
10982 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10983 method.
10984 (attr_form_is_block): Don't declare.
10985 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10986
10987 2020-02-08 Tom Tromey <tom@tromey.com>
10988
10989 * dwarf2read.c (dwarf2_find_base_address, )
10990 (read_call_site_scope, rust_containing_type)
10991 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10992 (handle_data_member_location, dwarf2_add_member_fn)
10993 (get_alignment, read_structure_type, process_structure_scope)
10994 (mark_common_block_symbol_computed, read_common_block)
10995 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10996 (partial_die_info::read, read_attribute_value, new_symbol)
10997 (lookup_die_type, dwarf2_get_ref_die_offset)
10998 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10999 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11000 (dwarf2_symbol_mark_computed): Update.
11001 * dwarf2/attribute.h (struct attribute) <value_as_address,
11002 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11003 methods.
11004 (value_as_address, attr_form_is_section_offset)
11005 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11006 * dwarf2/attribute.c (attribute::value_as_address)
11007 (attribute::form_is_section_offset, attribute::form_is_constant)
11008 (attribute::form_is_ref): Now methods.
11009
11010 2020-02-08 Tom Tromey <tom@tromey.com>
11011
11012 * dwarf2read.c (struct attribute, DW_STRING)
11013 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11014 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11015 (attr_form_is_block, attr_form_is_section_offset)
11016 (attr_form_is_constant, attr_form_is_ref): Move.
11017 * dwarf2/attribute.h: New file.
11018 * dwarf2/attribute.c: New file, from dwarf2read.c.
11019 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11020
11021 2020-02-08 Tom Tromey <tom@tromey.com>
11022
11023 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11024 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11025 Move.
11026 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11027 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11028 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11029 abbrev.c.
11030 * dwarf2/abbrev.h: New file.
11031 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11032 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11033
11034 2020-02-08 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11037 (dwarf2_section_size, dwarf2_get_section_info)
11038 (create_signatured_type_table_from_debug_names)
11039 (create_addrmap_from_aranges, read_debug_names_from_section)
11040 (get_gdb_index_contents_from_section, read_comp_unit_head)
11041 (error_check_comp_unit_head, read_abbrev_offset)
11042 (create_debug_type_hash_table, init_cu_die_reader)
11043 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11044 (read_comp_units_from_section, create_cus_hash_table)
11045 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11046 (create_dwp_v2_section, dwarf2_rnglists_process)
11047 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11048 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11049 (read_indirect_string_from_dwz, read_addr_index_1)
11050 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11051 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11052 (fill_in_loclist_baton): Update.
11053 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11054 get_containing_section, get_bfd_owner, get_bfd_section,
11055 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11056 (dwarf2_read_section, get_section_name, get_section_file_name)
11057 (get_containing_section, get_section_bfd_owner)
11058 (get_section_bfd_section, get_section_name, get_section_file_name)
11059 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11060 declare.
11061 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11062 (dwarf2_section_info::get_bfd_owner)
11063 (dwarf2_section_info::get_bfd_section)
11064 (dwarf2_section_info::get_name)
11065 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11066 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11067 (dwarf2_section_info::read): Now methods.
11068 * dwarf-index-write.c (class debug_names): Update.
11069
11070 2020-02-08 Tom Tromey <tom@tromey.com>
11071
11072 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11073 Move to dwarf2/section.h.
11074 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11075 (get_section_bfd_section, get_section_name)
11076 (get_section_file_name, get_section_id, get_section_flags)
11077 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11078 dwarf2/section.c.
11079 * dwarf2/section.h: New file.
11080 * dwarf2/section.c: New file, from dwarf2read.c.
11081 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11082
11083 2020-02-08 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11086 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11087 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11088 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11089 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11090 * dwarf2/leb.h: New file, from dwarf2read.c.
11091 * dwarf2/leb.c: New file, from dwarf2read.c.
11092 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11093 Remove.
11094 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11095 (COMMON_SFILES): Add dwarf2/leb.c.
11096
11097 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11098
11099 GDB 9.1 released.
11100
11101 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11102
11103 PR gdb/25190:
11104 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11105 * gdb/remote.c (remote_console_output): Update.
11106 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11107 (ui_file_puts): ...this.
11108 * gdb/ui-file.h (ui_file_puts): Add declaration.
11109 * gdb/utils.c (emit_style_escape): Update.
11110 (flush_wrap_buffer): Update.
11111 (fputs_maybe_filtered): Update.
11112 (fputs_unfiltered): Add function.
11113
11114 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11115
11116 * gdb/event-loop.c (gdb_wait_for_event): Update.
11117 * gdb/printcmd.c (printf_command): Update.
11118 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11119 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11120 (gdb_os_flush_stderr): Update.
11121 * gdb/remote.c (remote_console_output): Update.
11122 * gdb/ui-file.c (gdb_flush): Rename to...
11123 (ui_file_flush): ...this.
11124 (stderr_file::write): Update.
11125 (stderr_file::puts): Update.
11126 * gdb/ui-file.h (gdb_flush): Rename to...
11127 (ui_file_flush): ...this.
11128 * gdb/utils.c (gdb_flush): Add function.
11129 * gdb/utils.h (gdb_flush): Add declaration.
11130
11131 2020-02-07 Tom Tromey <tromey@adacore.com>
11132
11133 PR breakpoints/24915:
11134 * source.c (find_and_open_source): Do not check basenames_may_differ.
11135
11136 2020-02-07 Tom Tromey <tom@tromey.com>
11137
11138 * README: Update gdbserver documentation.
11139 * gdbserver: Move to top level.
11140 * configure.tgt (build_gdbserver): Remove.
11141 * configure.ac: Remove --enable-gdbserver.
11142 * configure: Rebuild.
11143 * Makefile.in (distclean): Don't mention gdbserver.
11144
11145 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11146
11147 * source-cache.c (source_cache::ensure): Surround
11148 get_plain_source_lines with a try/catch.
11149 (source_cache::get_line_charpos): Get rid of try/catch
11150 and only check for the return value of "ensure".
11151 * tui/tui-source.c (tui_source_window::set_contents):
11152 Simplify "nlines" calculation.
11153
11154 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11155
11156 * MAINTAINERS (Write After Approval): Add myself.
11157
11158 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11159
11160 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11161 function call.
11162
11163 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11164
11165 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11166
11167 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11168
11169 * nat/riscv-linux-tdesc.h: New file.
11170 * nat/riscv-linux-tdesc.c: New file, taking code from...
11171 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11172 ... here.
11173 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11174 NATDEPFILES.
11175
11176 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11179 we don't set the fake simulator ptid to the null_ptid.
11180
11181 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11182
11183 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11184 * gdbthread.h (class thread_info) <resumed>: Likewise.
11185 * infrun.c (resume_1): Likewise.
11186 (proceed): Likewise.
11187 (infrun_thread_stop_requested): Likewise.
11188 (stop_all_threads): Likewise.
11189 (handle_inferior_event): Likewise.
11190 (restart_threads): Likewise.
11191 (finish_step_over): Likewise.
11192 (keep_going_stepped_thread): Likewise.
11193 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11194 (linux_handle_extended_wait): Likewise.
11195 * record-btrace.c (get_thread_current_frame_id): Likewise.
11196 * record-full.c (record_full_wait_1): Likewise.
11197 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11198 * target.c (target_resume): Likewise.
11199 * thread.c (set_running_thread): Likewise.
11200
11201 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11202
11203 * f-valprint.c (f77_print_array_1): Changed datatype of index
11204 variable to LONGEST from int to enable it to contain bound
11205 values correctly.
11206
11207 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11208
11209 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11210 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11211 offsets according to FLEN determined.
11212 (riscv_linux_nat_target::read_description): Determine FLEN
11213 dynamically.
11214 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11215 according to FLEN determined.
11216 (riscv_linux_nat_target::store_registers): Likewise.
11217
11218 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11219
11220 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11221 when reg->group is empty and reggroup is not.
11222
11223 2020-01-31 Tom Tromey <tromey@adacore.com>
11224
11225 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11226 Call beneath target's mourn_inferior after unpushing.
11227
11228 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 PR tui/9765
11231 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11232 have enough lines to fill the screen, still return the lowest
11233 address we found.
11234
11235 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11236
11237 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11238 '-', '<', and '>' commands.
11239
11240 2020-01-29 Pedro Alves <palves@redhat.com>
11241 Sergio Durigan Junior <sergiodj@redhat.com>
11242
11243 * infcmd.c (construct_inferior_arguments): Assert that
11244 'argc' is greater than 0.
11245
11246 2020-01-29 Luis Machado <luis.machado@linaro.org>
11247
11248 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11249 (BRK_INSN_MASK): Define to 0xd4200000.
11250 (aarch64_program_breakpoint_here_p): New function.
11251 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11252 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11253 breakpoint.c.
11254 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11255 breakpoint.h
11256 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11257 call gdbarch_program_breakpoint_here_p.
11258 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11259 default_program_breakpoint_here_p, changed return type to bool and
11260 simplified.
11261 * breakpoint.h (program_breakpoint_here): Moved prototype to
11262 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11263 return type to bool.
11264 * gdbarch.c: Regenerate.
11265 * gdbarch.h: Regenerate.
11266 * gdbarch.sh (program_breakpoint_here_p): New method.
11267 * infrun.c (handle_signal_stop): Call
11268 gdbarch_program_breakpoint_here_p.
11269
11270 2020-01-26 Tom Tromey <tom@tromey.com>
11271
11272 * ctfread.c (struct ctf_fp_info): Reindent.
11273 (_initialize_ctfread): Remove.
11274
11275 2020-01-26 Tom Tromey <tom@tromey.com>
11276
11277 * psymtab.c (partial_map_expand_apply)
11278 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11279 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11280 (psym_print_stats, psym_expand_symtabs_for_function)
11281 (psym_map_symbol_filenames, psym_map_matching_symbols)
11282 (psym_expand_symtabs_matching)
11283 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11284 (maintenance_check_psymtabs): Use new methods.
11285 * psympriv.h (struct partial_symtab) <readin_p,
11286 get_compunit_symtab>: New methods.
11287 <readin, compunit_symtab>: Remove members.
11288 (struct standard_psymtab): New.
11289 (struct legacy_psymtab): Derive from standard_psymtab.
11290 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11291 standard_psymtab.
11292 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11293
11294 2020-01-26 Tom Tromey <tom@tromey.com>
11295
11296 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11297 read_dependencies. Add assert.
11298 * psymtab.c (partial_symtab::read_dependencies): New method.
11299 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11300 method.
11301 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11302 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11303 read_dependencies.
11304 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11305 Add assert.
11306
11307 2020-01-26 Tom Tromey <tom@tromey.com>
11308
11309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11310 Call expand_psymtab.
11311 (xcoff_read_symtab): Call expand_psymtab.
11312 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11313 legacy_expand_psymtab.
11314 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11315 method.
11316 (struct legacy_psymtab) <expand_psymtab>: Implement.
11317 <legacy_expand_psymtab>: New member.
11318 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11319 (parse_partial_symbols): Set legacy_expand_psymtab.
11320 (psymtab_to_symtab_1): Change argument order. Call
11321 expand_psymtab.
11322 (new_psymtab): Set legacy_expand_psymtab.
11323 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11324 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11325 expand_psymtab.
11326 (dwarf2_psymtab::expand_psymtab): Rename from
11327 psymtab_to_symtab_1. Call expand_psymtab.
11328 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11329 (dbx_end_psymtab): Likewise.
11330 (dbx_psymtab_to_symtab_1): Change argument order. Call
11331 expand_psymtab.
11332 (dbx_read_symtab): Call expand_psymtab.
11333 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11334 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11335 (ctf_psymtab::read_symtab): Call expand_psymtab.
11336
11337 2020-01-26 Tom Tromey <tom@tromey.com>
11338
11339 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11340 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11341 messages.
11342 * mdebugread.c (mdebug_read_symtab): Remove prints.
11343 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11344 assert.
11345 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11346
11347 2020-01-26 Tom Tromey <tom@tromey.com>
11348
11349 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11350 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11351 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11352 legacy_symtab.
11353 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11354 * psymtab.c (psymtab_to_symtab): Call method.
11355 (dump_psymtab): Update.
11356 * psympriv.h (struct partial_symtab): Add virtual destructor.
11357 <read_symtab>: New method.
11358 (struct legacy_symtab): New.
11359 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11360 (struct pst_map) <pst>: Now a legacy_psymtab.
11361 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11362 (new_psymtab): Use legacy_psymtab.
11363 * dwarf2read.h (struct dwarf2_psymtab): New.
11364 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11365 * dwarf2read.c (dwarf2_create_include_psymtab)
11366 (dwarf2_build_include_psymtabs, create_type_unit_group)
11367 (create_partial_symtab, process_psymtab_comp_unit_reader)
11368 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11369 (set_partial_user): Use dwarf2_psymtab.
11370 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11371 (psymtab_to_symtab_1, process_full_comp_unit)
11372 (process_full_type_unit, dwarf2_ranges_read)
11373 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11374 (dwarf_decode_lines): Use dwarf2_psymtab.
11375 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11376 (add_address_entry_worker, write_one_signatured_type)
11377 (recursively_count_psymbols, recursively_write_psymbols)
11378 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11379 (write_debug_names): Likewise.
11380 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11381 <pst>: Now a legacy_psymtab.
11382 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11383 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11384 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11385 * ctfread.c (struct ctf_psymtab): New.
11386 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11387 ctf_psymtab.
11388 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11389 (create_partial_symtab): Return a ctf_psymtab.
11390 (scan_partial_symbols): Update.
11391
11392 2020-01-26 Tom Tromey <tom@tromey.com>
11393
11394 * xcoffread.c (xcoff_start_psymtab): Use new.
11395 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11396 renamed from start_psymtab_common.
11397 * psympriv.h (struct partial_symtab): Add new constructor.
11398 (start_psymtab_common): Don't declare.
11399 * mdebugread.c (parse_partial_symbols): Use new.
11400 * dwarf2read.c (create_partial_symtab): Use new.
11401 * dbxread.c (start_psymtab): Use new.
11402 * ctfread.c (create_partial_symtab): Use new.
11403
11404 2020-01-26 Tom Tromey <tom@tromey.com>
11405
11406 * xcoffread.c (xcoff_end_psymtab): Use new.
11407 * psymtab.c (start_psymtab_common): Use new.
11408 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11409 Update.
11410 * psympriv.h (struct partial_symtab): Add parameters to
11411 constructor. Don't inline.
11412 (allocate_psymtab): Don't declare.
11413 * mdebugread.c (new_psymtab): Use new.
11414 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11415 * dbxread.c (dbx_end_psymtab): Use new.
11416
11417 2020-01-26 Tom Tromey <tom@tromey.com>
11418
11419 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11420 allocate_psymtab. Update documentation.
11421 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11422 allocate_psymtab. Do not use new.
11423 (allocate_psymtab): Use new. Update.
11424
11425 2020-01-26 Tom Tromey <tom@tromey.com>
11426
11427 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11428 * psymtab.c (psym_print_stats): Update.
11429 * psympriv.h (struct partial_symtab) <readin,
11430 psymtabs_addrmap_supported, anonymous>: Now bool.
11431 * mdebugread.c (psymtab_to_symtab_1): Update.
11432 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11433 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11434 (process_full_comp_unit, process_full_type_unit): Update.
11435 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11436 * ctfread.c (psymtab_to_symtab): Update.
11437
11438 2020-01-26 Tom Tromey <tom@tromey.com>
11439
11440 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11441 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11442 * psymtab.c (psymtab_storage): Delete psymtabs.
11443 (psymtab_storage::allocate_psymtab): Use new.
11444 (psymtab_storage::discard_psymtab): Use delete.
11445 * psympriv.h (struct partial_symtab): Add constructor and
11446 initializers.
11447
11448 2020-01-26 Tom Tromey <tom@tromey.com>
11449
11450 * machoread.c: Do not include psympriv.h.
11451
11452 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11453
11454 * NEWS: Mention the new option and the set/show commands.
11455
11456 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11457
11458 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11459 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11460 (validate_exec_file): New variables, enums, functions.
11461 (exec_file_locate_attach, print_section_info): Style the filenames.
11462 (_initialize_exec): Install show_exec_file_mismatch_command and
11463 set_exec_file_mismatch_command.
11464 * gdbcore.h (validate_exec_file): Declare.
11465 * infcmd.c (attach_command): Call validate_exec_file.
11466 * remote.c ( remote_target::remote_add_inferior): Likewise.
11467
11468 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11469
11470 * frame.c (find_frame_sal): Move call to get_next_frame into more
11471 inner scope.
11472 * inline-frame.c (inilne_state) <inline_state>: Update argument
11473 types.
11474 (inilne_state) <skipped_symbol>: Rename to...
11475 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11476 (skip_inline_frames): Build vector of skipped symbols and use this
11477 to reate the inline_state.
11478 (inline_skipped_symbol): Add a comment and some assertions, fetch
11479 skipped symbol from the list.
11480
11481 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11482
11483 * buildsym.c (lte_is_less_than): Delete.
11484 (buildsym_compunit::end_symtab_with_blockvector): Create local
11485 lambda function to sort line table entries, and use
11486 std::stable_sort instead of std::sort.
11487 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11488 markers when looking for a previous line.
11489
11490 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11491
11492 * dwarf2read.c (lnp_state_machine::record_line): Include
11493 end_sequence parameter in debug print out. Record the line if we
11494 are at an end_sequence marker even if it's not the start of a
11495 statement.
11496 * symmisc.c (maintenance_print_one_line_table): Print end of
11497 sequence markers with 'END' not '0'.
11498
11499 2020-01-24 Pedro Alves <palves@redhat.com>
11500
11501 PR gdb/25410
11502 * thread.c (scoped_restore_current_thread::restore): Use
11503 switch_to_inferior_no_thread.
11504 * exec.c: Include "progspace-and-thread.h".
11505 (add_target_sections, remove_target_sections):
11506 scoped_restore_current_pspace_and_thread instead of
11507 scoped_restore_current_thread.
11508 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11509 and aspace to the inferior before calling clone_program_space.
11510 Remove stale comment.
11511
11512 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11513
11514 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11515 (arm_netbsd_nat_target::fetch_registers): ...this.
11516 (arm_nbsd_nat_target::store_registers): Rename to...
11517 (arm_netbsd_nat_target::store_registers): ...this.
11518
11519 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11520
11521 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11522 register_t.
11523
11524 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11525
11526 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11527 Update comment.
11528 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11529 Likewise.
11530 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11531 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11532 the correct replacement (iterate_over_regset_sections).
11533 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11534 Update comment.
11535
11536 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11537
11538 PR gdb/23718
11539 * gdb/python/python.c (execute_gdb_command): Call
11540 async_enable_stdin in catch block.
11541
11542 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11543
11544 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11545 SWITCH_THRU_ALL_UIS.
11546
11547 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11548
11549 PR tui/9765
11550 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11551 comment, add extra parameter, and update to store previous symbol
11552 when appropriate.
11553 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11554 add extra parameter.
11555 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11556 remove unneeded parameter, add try/catch around gdb_print_insn,
11557 rewrite to add items to asm_lines vector.
11558 (tui_find_backward_disassembly_start_address): New function.
11559 (tui_find_disassembly_address): Updated throughout.
11560 (tui_disasm_window::set_contents): Update for changes to
11561 tui_disassemble.
11562 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11563 number of lines to scroll.
11564
11565 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11566
11567 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11568 (SECT_OFF_DATA): Likewise.
11569 (SECT_OFF_RODATA): Likewise.
11570 (SECT_OFF_TEXT): Likewise.
11571 (SECT_OFF_BSS): Likewise.
11572 (struct objfile) <text_section_offset, data_section_offset>: New
11573 methods.
11574 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11575 objfile::text_section_offset.
11576 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11577 * coffread.c (coff_symtab_read): Likewise.
11578 (enter_linenos): Likewise.
11579 (process_coff_symbol): Likewise.
11580 * ctfread.c (get_objfile_text_range): Likewise.
11581 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11582 Use objfile::data_section_offset.
11583 * dwarf2-frame.c (execute_cfa_program): Use
11584 objfile::text_section_offset.
11585 (dwarf2_frame_find_fde): Likewise.
11586 * dwarf2read.c (create_addrmap_from_index): Likewise.
11587 (create_addrmap_from_aranges): Likewise.
11588 (dw2_find_pc_sect_compunit_symtab): Likewise.
11589 (process_psymtab_comp_unit_reader): Likewise.
11590 (add_partial_symbol): Likewise.
11591 (add_partial_subprogram): Likewise.
11592 (process_full_comp_unit): Likewise.
11593 (read_file_scope): Likewise.
11594 (read_func_scope): Likewise.
11595 (read_lexical_block_scope): Likewise.
11596 (read_call_site_scope): Likewise.
11597 (dwarf2_rnglists_process): Likewise.
11598 (dwarf2_ranges_process): Likewise.
11599 (dwarf2_ranges_read): Likewise.
11600 (dwarf_decode_lines_1): Likewise.
11601 (new_symbol): Likewise.
11602 (dwarf2_fetch_die_loc_sect_off): Likewise.
11603 (dwarf2_per_cu_text_offset): Likewise.
11604 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11605 * hppa-tdep.c (read_unwind_info): Likewise.
11606 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11607 * psympriv.h (struct partial_symtab): Likewise.
11608 * psymtab.c (find_pc_sect_psymtab): Likewise.
11609 * solib-svr4.c (enable_break): Likewise.
11610 * stap-probe.c (relocate_address): Use
11611 objfile::data_section_offset.
11612 * xcoffread.c (enter_line_range): Use
11613 objfile::text_section_offset.
11614 (read_xcoff_symtab): Likewise.
11615
11616 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11617
11618 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11619 declaration to narrower scopes.
11620
11621 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11622
11623 * darwin-nat.h (struct darwin_exception_msg, enum
11624 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11625 Move up.
11626 (class darwin_nat_target) <wait_1, check_new_threads,
11627 decode_exception_message, decode_message, stop_inferior,
11628 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11629 * darwin-nat.c (darwin_check_new_threads): Rename to...
11630 (darwin_nat_target::check_new_threads): ... this.
11631 (darwin_suspend_inferior_it): Remove.
11632 (darwin_decode_exception_message): Rename to...
11633 (darwin_nat_target::decode_exception_message): ... this.
11634 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11635 (darwin_decode_message): Rename to...
11636 (darwin_nat_target::decode_message): ... this.
11637 (cancel_breakpoint): Rename to...
11638 (darwin_nat_target::cancel_breakpoint): ... this.
11639 (darwin_wait): Rename to...
11640 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11641 instead of iterate_over_inferiors.
11642 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11643 (darwin_stop_inferior): Rename to...
11644 (darwin_nat_target::stop_inferior): ... this.
11645 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11646 (darwin_init_thread_list): Rename to...
11647 (darwin_nat_target::init_thread_list): ... this.
11648 (darwin_ptrace_him): Rename to...
11649 (darwin_nat_target::ptrace_him): ... this.
11650 (darwin_nat_target::create_inferior): Pass lambda function to
11651 fork_inferior.
11652 (darwin_nat_target::detach): Call stop_inferior instead of
11653 darwin_stop_inferior.
11654 * fork-inferior.h (fork_inferior): Change init_trace_fun
11655 parameter to gdb::function_view.
11656 * fork-inferior.c (fork_inferior): Likewise.
11657
11658 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11659
11660 * i386-cygwin-tdep.c (core_process_module_section): Update.
11661 * windows-nat.c (struct lm_info_windows): Add text_offset.
11662 (windows_xfer_shared_libraries): Update.
11663 * windows-tdep.c (windows_xfer_shared_library):
11664 Add text_offset_cached argument.
11665 * windows-tdep.h (windows_xfer_shared_library): Update.
11666
11667 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11670
11671 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11672
11673 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11674 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11675 replace with range-based for.
11676 (gdbsim_interrupt_inferior): Remove.
11677 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11678 with a range-based for. Inline code from
11679 gdbsim_interrupt_inferior.
11680
11681 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * infrun.c (proceed): Fix indentation.
11684
11685 2020-01-21 Tom Tromey <tromey@adacore.com>
11686
11687 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11688 * python/python.c (python_extension_ops): Update.
11689 (gdbpy_colorize): New function.
11690 * python/lib/gdb/__init__.py (colorize): New function.
11691 * extension.h (ext_lang_colorize): Declare.
11692 * extension.c (ext_lang_colorize): New function.
11693 * extension-priv.h (struct extension_language_ops) <colorize>: New
11694 member.
11695 * cli/cli-style.c (_initialize_cli_style): Update help text.
11696
11697 2020-01-21 Luis Machado <luis.machado@linaro.org>
11698
11699 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11700 <cond>: Change type to bool.
11701 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11702 (aarch64_displaced_step_cb): Likewise.
11703 (aarch64_displaced_step_tb): Likewise.
11704
11705 2020-01-21 Luis Machado <luis.machado@linaro.org>
11706
11707 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11708 output.
11709
11710 2020-01-21 Luis Machado <luis.machado@linaro.org>
11711
11712 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11713 <pc_adjust>: Adjust the documentation.
11714 (aarch64_displaced_step_fixup): Check if PC really moved before
11715 adjusting it.
11716
11717 2020-01-19 Tom Tromey <tom@tromey.com>
11718
11719 * disasm.c (~gdb_disassembler): New destructor.
11720 (gdb_buffered_insn_length): Call disassemble_free_target.
11721 * disasm.h (class gdb_disassembler): Declare destructor. Use
11722 DISABLE_COPY_AND_ASSIGN.
11723
11724 2020-01-19 Tom Tromey <tom@tromey.com>
11725
11726 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11727 (die_reader_func_ftype): Remove.
11728 (cutu_reader): New class.
11729 (dw2_get_file_names_reader): Remove "data" parameter.
11730 (dw2_get_file_names): Use cutu_reader.
11731 (create_debug_type_hash_table): Update.
11732 (read_cutu_die_from_dwo): Update comment.
11733 (lookup_dwo_unit): Add dwo_name parameter.
11734 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11735 die_reader_func_ftype and data parameters.
11736 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11737 Remove die_reader_func_ftype and data parameters.
11738 (~cutu_reader): New; from init_cutu_and_read_dies.
11739 (cutu_reader::cutu_reader): Rename from
11740 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11741 and data parameters.
11742 (init_cutu_and_read_dies_simple): Remove.
11743 (struct process_psymtab_comp_unit_data): Remove.
11744 (process_psymtab_comp_unit_reader): Remove data parameter; add
11745 want_partial_unit and pretend_language parameters.
11746 (process_psymtab_comp_unit): Use cutu_reader.
11747 (build_type_psymtabs_reader): Remove data parameter.
11748 (build_type_psymtabs_1): Use cutu_reader.
11749 (process_skeletonless_type_unit): Likewise.
11750 (load_partial_comp_unit_reader): Remove.
11751 (load_partial_comp_unit): Use cutu_reader.
11752 (load_full_comp_unit_reader): Remove.
11753 (load_full_comp_unit): Use cutu_reader.
11754 (struct create_dwo_cu_data): Remove.
11755 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11756 dwo_unit parameters.
11757 (create_cus_hash_table): Use cutu_reader.
11758 (struct dwarf2_read_addr_index_data): Remove.
11759 (dwarf2_read_addr_index_reader): Remove.
11760 (dwarf2_read_addr_index): Use cutu_reader.
11761 (read_signatured_type_reader): Remove.
11762 (read_signatured_type): Use cutu_reader.
11763
11764 2020-01-19 Tom Tromey <tom@tromey.com>
11765
11766 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11767 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11768 (tui_wrefresh): Declare.
11769 * tui/tui-wingeneral.c (suppress_output): New global.
11770 (tui_suppress_output, ~tui_suppress_output): New constructor and
11771 destructor.
11772 (tui_wrefresh): New function.
11773 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11774 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11775 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11776 method.
11777 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11778 tui_wrefresh.
11779 (tui_data_window::no_refresh): New method.
11780 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11781 (tui_reg_command): Use tui_suppress_output
11782 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11783 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11784 method.
11785 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11786
11787 2020-01-19 Tom Tromey <tom@tromey.com>
11788
11789 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11790 Handle case where symtab is null.
11791
11792 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11793
11794 * linux-fork.c (one_fork_p): Simplify.
11795
11796 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11797
11798 * top.c (struct qt_args): Remove.
11799 (kill_or_detach): Change return type to void, replace `void *`
11800 parameter with a proper one.
11801 (print_inferior_quit_action): Likewise.
11802 (quit_confirm): Use range-based for loop to iterate over inferiors.
11803 (quit_force): Likewise.
11804
11805 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11806
11807 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11808 `void *` parameter with proper parameters.
11809 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11810 (print_one_inferior): Change return type to void, replace `void *`
11811 parameter with proper parameters.
11812 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11813 inferiors.
11814 (get_other_inferior): Remove.
11815 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11816 inferiors.
11817
11818 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11819
11820 * mi/mi-interp.c (report_initial_inferior): Remove.
11821 (mi_interp::init): Use range-based for to iterate over inferiors.
11822
11823 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11824
11825 * python/py-inferior.c (build_inferior_list): Remove.
11826 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11827
11828 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11829
11830 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11831 (btrace_stitch_trace): Likewise.
11832 * charset.c (intermediate_encoding): Likewise (vaild).
11833 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11834 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11835 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11836
11837 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11838
11839 * windows-tdep.c (windows_get_tlb_type):
11840 Add rtl_user_process_parameters type.
11841
11842 2020-01-16 Pedro Alves <palves@redhat.com>
11843 Norbert Lange <nolange79@gmail.com>
11844
11845 PR build/24805
11846 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11847 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11848 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11849 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11850 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11851 (ps_plog): Redeclare exported functions with default visibility.
11852
11853 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11854
11855 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11856 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11857
11858 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11859
11860 * infcmd.c (post_create_inferior): Use get_thread_regcache
11861 instead of get_current_regcache.
11862
11863 2020-01-14 Tom Tromey <tom@tromey.com>
11864
11865 PR symtab/12535:
11866 * python/python.c (gdbpy_decode_line): Treat empty string the same
11867 as no argument.
11868
11869 2020-01-14 Tom Tromey <tom@tromey.com>
11870
11871 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11872
11873 2020-01-14 Tom Tromey <tom@tromey.com>
11874
11875 * nat/linux-btrace.c: Don't include <config.h>.
11876 * nat/linux-ptrace.c: Don't include <config.h>.
11877 * nat/x86-linux-dregs.c: Don't include <config.h>.
11878
11879 2020-01-14 Tom Tromey <tom@tromey.com>
11880
11881 * configure: Rebuild.
11882 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11883
11884 2020-01-14 Tom Tromey <tom@tromey.com>
11885
11886 * nat/x86-linux-dregs.c: Include configh.h.
11887 * nat/linux-ptrace.c: Include configh.h.
11888 * nat/linux-btrace.c: Include configh.h.
11889 * defs.h: Include config.h, bfd.h.
11890 * configure.ac: Don't source common.host.
11891 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11892 * configure: Rebuild.
11893 * acinclude.m4: Update path.
11894 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11895 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11896 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11897 (CLIBS): Add LIBSUPPORT.
11898 (CDEPS): Likewise.
11899 (COMMON_SFILES): Remove gdbsupport files.
11900 (HFILES_NO_SRCDIR): Likewise.
11901 (stamp-version): Update path to create-version.sh.
11902 (ALLDEPFILES): Remove gdbsupport files.
11903
11904 2020-01-14 Tom Tromey <tom@tromey.com>
11905
11906 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11907 USE_WIN32API when needed.
11908 * configure.ac (USE_WIN32API): Don't define.
11909 (WIN32LIBS): Use WIN32APILIBS.
11910 * configure: Rebuild.
11911
11912 2020-01-14 Tom Tromey <tom@tromey.com>
11913
11914 * configure: Rebuild.
11915 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11916
11917 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11918
11919 * skip.c (skip_function_command): Make skip w/o arguments use the
11920 name of the inlined function if pc is inside any inlined function.
11921
11922 2020-01-14 Luis Machado <luis.machado@linaro.org>
11923
11924 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11925 * infrun.c (resume_1): Likewise.
11926 (handle_inferior_event): Remove stale comment.
11927 * linux-nat.c (linux_nat_target::resume): Update comments.
11928 (save_stop_reason): Likewise.
11929 (linux_nat_filter_event): Likewise.
11930 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11931
11932 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * elfread.c (record_minimal_symbol): Set section index to 0 for
11935 non-allocatable sections.
11936
11937
11938 2020-01-13 Ali Tamur <tamur@google.com>
11939
11940 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11941 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11942 to gdb::optional. Update comments.
11943 (dwo_file): Update comments.
11944 (read_attribute): Update API to take an additional out parameter,
11945 need_reprocess. This is used to mark attributes that need other
11946 attributes (e.g. str_offsets_base) for correct computation which may not
11947 have been read yet.
11948 (read_attribute_reprocess): New function declaration.
11949 (read_addr_index): Likewise.
11950 (read_dwo_str_index): Likewise.
11951 (read_stub_str_index): Likewise.
11952 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11953 (lookup_addr_base): New function definition.
11954 (lookup_ranges_base): Likewise.
11955 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11956 lookup_ranges_base.
11957 (init_cutu_and_read_dies): Update comments.
11958 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11959 unit. This is used to inherit parent's str_offsets_base and addr_base.
11960 Update comments.
11961 (init_cutu_and_read_dies_simple): Reflect API changes.
11962 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11963 (create_cus_hash_table): Change API to take parent compile unit.
11964 Reflect API changes.
11965 (open_and_init_dwo_file): Reflect API changes.
11966 (dwarf2_get_pc_bounds): Update comments.
11967 (dwarf2_record_block_ranges): Likewise.
11968 (read_full_die_1): Change implementation to reprocess attributes that
11969 need str_offsets_base and addr_base.
11970 (partial_die_info::read): Likewise.
11971 (read_attribute_reprocess): New function definition.
11972 (read_attribute_value): Change API to take an additional out parameter,
11973 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11974 when a non-dwo compile unit has index based attributes.
11975 (read_attribute): Reflect API changes.
11976 (read_addr_index_1): Reflect API changes. Update comments.
11977 (dwarf2_read_addr_index_data): Reflect API changes.
11978 (dwarf2_read_addr_index): Likewise.
11979 (read_str_index): Change API and implementation. This becomes a helper
11980 to be used by the new string index related methods. Update error
11981 message and comments.
11982 (read_dwo_str_index): New function definition.
11983 (read_stub_str_index): Likewise.
11984 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11985 * symfile.h (dwarf2_debug_sections): Likewise.
11986 * xcoffread.c (dwarf2_debug_sections): Likewise.
11987
11988 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11989
11990 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11991 core_reg_sect type to gdb_byte *.
11992 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11993 * cris-tdep.c (fetch_core_registers): Likewise.
11994 * corelow.c (core_target::get_core_register_section): Change
11995 type of `contents` to gdb::byte_vector.
11996
11997 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11998
11999 * tui/tui-wingeneral.c (box_win): Position the title in the center
12000 of the border.
12001
12002 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * corelow.c (core_target::get_core_register_section): Use
12005 std::vector instead of alloca.
12006
12007 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12008
12009 * warning.m4: Add -Wmissing-declarations to build_warnings.
12010 * configure: Re-generate.
12011
12012 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12013
12014 * python/python.c (init__gdb_module): Add declaration.
12015
12016 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12017
12018 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12019 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12020 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12021 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12022 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12023 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12024 * ada-exp.y (_initialize_ada_exp): Add declaration.
12025 * ada-lang.c (_initialize_ada_language): Add declaration.
12026 * ada-tasks.c (_initialize_tasks): Add declaration.
12027 * agent.c (_initialize_agent): Add declaration.
12028 * aix-thread.c (_initialize_aix_thread): Add declaration.
12029 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12030 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12031 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12032 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12033 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12034 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12035 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12036 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12037 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12038 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12039 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12040 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12041 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12042 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12043 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12044 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12045 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12046 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12047 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12048 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12049 * annotate.c (_initialize_annotate): Add declaration.
12050 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12051 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12052 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12053 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12054 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12055 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12056 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12057 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12058 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12059 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12060 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12061 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12063 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12064 * auto-load.c (_initialize_auto_load): Add declaration.
12065 * auxv.c (_initialize_auxv): Add declaration.
12066 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12067 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12068 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12069 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12070 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12071 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12072 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12073 * breakpoint.c (_initialize_breakpoint): Add declaration.
12074 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12075 * btrace.c (_initialize_btrace): Add declaration.
12076 * charset.c (_initialize_charset): Add declaration.
12077 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12078 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12079 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12080 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12081 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12082 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12083 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12084 * coffread.c (_initialize_coffread): Add declaration.
12085 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12086 * compile/compile.c (_initialize_compile): Add declaration.
12087 * complaints.c (_initialize_complaints): Add declaration.
12088 * completer.c (_initialize_completer): Add declaration.
12089 * copying.c (_initialize_copying): Add declaration.
12090 * corefile.c (_initialize_core): Add declaration.
12091 * corelow.c (_initialize_corelow): Add declaration.
12092 * cp-abi.c (_initialize_cp_abi): Add declaration.
12093 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12094 * cp-support.c (_initialize_cp_support): Add declaration.
12095 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12096 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12097 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12098 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12099 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12100 * ctfread.c (_initialize_ctfread): Add declaration.
12101 * d-lang.c (_initialize_d_language): Add declaration.
12102 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12103 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12104 * dbxread.c (_initialize_dbxread): Add declaration.
12105 * dcache.c (_initialize_dcache): Add declaration.
12106 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12107 * disasm.c (_initialize_disasm): Add declaration.
12108 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12109 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12110 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12111 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12112 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12113 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12114 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12115 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12116 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12117 * elfread.c (_initialize_elfread): Add declaration.
12118 * exec.c (_initialize_exec): Add declaration.
12119 * extension.c (_initialize_extension): Add declaration.
12120 * f-lang.c (_initialize_f_language): Add declaration.
12121 * f-valprint.c (_initialize_f_valprint): Add declaration.
12122 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12123 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12124 * filesystem.c (_initialize_filesystem): Add declaration.
12125 * findcmd.c (_initialize_mem_search): Add declaration.
12126 * findvar.c (_initialize_findvar): Add declaration.
12127 * fork-child.c (_initialize_fork_child): Add declaration.
12128 * frame-base.c (_initialize_frame_base): Add declaration.
12129 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12130 * frame.c (_initialize_frame): Add declaration.
12131 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12132 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12133 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12134 * gcore.c (_initialize_gcore): Add declaration.
12135 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12136 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12137 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12138 * gdbarch.c (_initialize_gdbarch): Add declaration.
12139 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12140 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12141 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12142 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12143 * go-lang.c (_initialize_go_language): Add declaration.
12144 * go32-nat.c (_initialize_go32_nat): Add declaration.
12145 * guile/guile.c (_initialize_guile): Add declaration.
12146 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12147 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12148 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12149 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12150 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12151 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12152 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12153 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12154 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12155 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12156 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12157 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12158 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12159 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12160 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12161 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12162 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12163 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12164 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12165 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12166 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12167 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12168 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12169 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12170 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12171 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12172 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12173 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12174 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12175 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12176 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12177 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12178 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12179 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12180 * infcall.c (_initialize_infcall): Add declaration.
12181 * infcmd.c (_initialize_infcmd): Add declaration.
12182 * inflow.c (_initialize_inflow): Add declaration.
12183 * infrun.c (_initialize_infrun): Add declaration.
12184 * interps.c (_initialize_interpreter): Add declaration.
12185 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12186 * jit.c (_initialize_jit): Add declaration.
12187 * language.c (_initialize_language): Add declaration.
12188 * linux-fork.c (_initialize_linux_fork): Add declaration.
12189 * linux-nat.c (_initialize_linux_nat): Add declaration.
12190 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12191 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12192 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12193 * m2-lang.c (_initialize_m2_language): Add declaration.
12194 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12195 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12196 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12197 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12198 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12199 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12200 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12201 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12202 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12203 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12204 * machoread.c (_initialize_machoread): Add declaration.
12205 * macrocmd.c (_initialize_macrocmd): Add declaration.
12206 * macroscope.c (_initialize_macroscope): Add declaration.
12207 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12208 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12209 * maint.c (_initialize_maint_cmds): Add declaration.
12210 * mdebugread.c (_initialize_mdebugread): Add declaration.
12211 * memattr.c (_initialize_mem): Add declaration.
12212 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12213 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12214 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12215 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12216 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12217 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12218 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12219 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12220 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12221 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12222 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12223 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12224 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12225 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12226 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12227 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12228 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12229 * mipsread.c (_initialize_mipsread): Add declaration.
12230 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12231 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12232 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12233 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12234 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12235 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12236 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12237 * nto-procfs.c (_initialize_procfs): Add declaration.
12238 * objc-lang.c (_initialize_objc_language): Add declaration.
12239 * observable.c (_initialize_observer): Add declaration.
12240 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12241 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12242 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12243 * osabi.c (_initialize_gdb_osabi): Add declaration.
12244 * osdata.c (_initialize_osdata): Add declaration.
12245 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12246 * parse.c (_initialize_parse): Add declaration.
12247 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12248 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12249 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12250 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12251 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12252 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12253 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12254 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12255 * printcmd.c (_initialize_printcmd): Add declaration.
12256 * probe.c (_initialize_probe): Add declaration.
12257 * proc-api.c (_initialize_proc_api): Add declaration.
12258 * proc-events.c (_initialize_proc_events): Add declaration.
12259 * proc-service.c (_initialize_proc_service): Add declaration.
12260 * procfs.c (_initialize_procfs): Add declaration.
12261 * producer.c (_initialize_producer): Add declaration.
12262 * psymtab.c (_initialize_psymtab): Add declaration.
12263 * python/python.c (_initialize_python): Add declaration.
12264 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12265 * record-btrace.c (_initialize_record_btrace): Add declaration.
12266 * record-full.c (_initialize_record_full): Add declaration.
12267 * record.c (_initialize_record): Add declaration.
12268 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12269 * regcache.c (_initialize_regcache): Add declaration.
12270 * reggroups.c (_initialize_reggroup): Add declaration.
12271 * remote-notif.c (_initialize_notif): Add declaration.
12272 * remote-sim.c (_initialize_remote_sim): Add declaration.
12273 * remote.c (_initialize_remote): Add declaration.
12274 * reverse.c (_initialize_reverse): Add declaration.
12275 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12276 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12277 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12278 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12279 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12280 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12281 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12282 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12283 Add declaration.
12284 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12285 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12286 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12287 * rust-exp.y (_initialize_rust_exp): Add declaration.
12288 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12289 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12290 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12291 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12292 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12293 * score-tdep.c (_initialize_score_tdep): Add declaration.
12294 * ser-go32.c (_initialize_ser_dos): Add declaration.
12295 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12296 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12297 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12298 * ser-uds.c (_initialize_ser_socket): Add declaration.
12299 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12300 * serial.c (_initialize_serial): Add declaration.
12301 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12302 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12303 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12304 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12305 * skip.c (_initialize_step_skip): Add declaration.
12306 * sol-thread.c (_initialize_sol_thread): Add declaration.
12307 * solib-aix.c (_initialize_solib_aix): Add declaration.
12308 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12309 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12310 * solib-frv.c (_initialize_frv_solib): Add declaration.
12311 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12312 * solib-target.c (_initialize_solib_target): Add declaration.
12313 * solib.c (_initialize_solib): Add declaration.
12314 * source-cache.c (_initialize_source_cache): Add declaration.
12315 * source.c (_initialize_source): Add declaration.
12316 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12317 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12318 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12319 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12320 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12321 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12322 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12323 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12324 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12325 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12326 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12327 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12328 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12329 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12330 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12331 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12332 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12333 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12334 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12335 * stabsread.c (_initialize_stabsread): Add declaration.
12336 * stack.c (_initialize_stack): Add declaration.
12337 * stap-probe.c (_initialize_stap_probe): Add declaration.
12338 * std-regs.c (_initialize_frame_reg): Add declaration.
12339 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12340 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12341 * symfile.c (_initialize_symfile): Add declaration.
12342 * symmisc.c (_initialize_symmisc): Add declaration.
12343 * symtab.c (_initialize_symtab): Add declaration.
12344 * target.c (_initialize_target): Add declaration.
12345 * target-connection.c (_initialize_target_connection): Add
12346 declaration.
12347 * target-dcache.c (_initialize_target_dcache): Add declaration.
12348 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12349 * thread.c (_initialize_thread): Add declaration.
12350 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12351 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12352 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12353 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12354 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12355 * tracectf.c (_initialize_ctf): Add declaration.
12356 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12357 * tracefile.c (_initialize_tracefile): Add declaration.
12358 * tracepoint.c (_initialize_tracepoint): Add declaration.
12359 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12360 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12361 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12362 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12363 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12364 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12365 * tui/tui.c (_initialize_tui): Add declaration.
12366 * typeprint.c (_initialize_typeprint): Add declaration.
12367 * ui-style.c (_initialize_ui_style): Add declaration.
12368 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12369 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12370 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12371 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12372 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12373 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12374 * unittests/filtered_iterator-selftests.c
12375 (_initialize_filtered_iterator_selftests): Add declaration.
12376 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12377 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12378 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12379 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12380 * unittests/main-thread-selftests.c
12381 (_initialize_main_thread_selftests): Add declaration.
12382 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12383 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12384 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12385 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12386 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12387 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12388 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12389 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12390 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12391 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12392 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12393 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12394 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12395 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12396 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12397 declaration.
12398 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12399 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12400 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12401 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12402 * user-regs.c (_initialize_user_regs): Add declaration.
12403 * utils.c (_initialize_utils): Add declaration.
12404 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12405 * valops.c (_initialize_valops): Add declaration.
12406 * valprint.c (_initialize_valprint): Add declaration.
12407 * value.c (_initialize_values): Add declaration.
12408 * varobj.c (_initialize_varobj): Add declaration.
12409 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12410 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12411 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12412 * windows-nat.c (_initialize_windows_nat): Add declaration.
12413 (_initialize_check_for_gdb_ini): Add declaration.
12414 (_initialize_loadable): Add declaration.
12415 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12416 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12417 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12418 * xcoffread.c (_initialize_xcoffread): Add declaration.
12419 * xml-support.c (_initialize_xml_support): Add declaration.
12420 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12421 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12422 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12423 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12424
12425 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * regformats/regdat.sh: Generate declaration for init function.
12428
12429 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12430
12431 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12432 up.
12433 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12434 close_one_inferior>: New methods.
12435 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12436 pass down target to find_inferior_pid.
12437 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12438 Pass down target to find_inferior_ptid.
12439 (gdbsim_target::create_inferior): Pass down target to
12440 add_thread_silent.
12441 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12442 target down to find_inferior_ptid and switch_to_thread.
12443 (gdbsim_target::close): Update to call close_one_inferior.
12444 (struct resume_data): Remove.
12445 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12446 directly, rather than through a void pointer.
12447 (gdbsim_target::resume): Update to call resume_one_inferior.
12448
12449 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12450
12451 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12452
12453 2020-01-12 Pedro Alves <palves@redhat.com>
12454
12455 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12456 directly for the current inferior instead of
12457 discard_all_inferiors.
12458 (discard_all_inferiors): Delete.
12459
12460 2020-01-11 Tom Tromey <tom@tromey.com>
12461
12462 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12463 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12464 deprecated_safe_get_selected_frame.
12465
12466 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12467
12468 * inferior.c (print_inferior): Switch inferior before printing it.
12469
12470 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12471 Pedro Alves <palves@redhat.com>
12472
12473 * progspace-and-thread.c (switch_to_program_space_and_thread):
12474 Assert there's an inferior for PSPACE. Use
12475 switch_to_inferior_no_thread to switch the inferior too.
12476 * progspace.c (program_space::~program_space): Call
12477 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12478 (program_space::free_all_objfiles): Don't call clear_symtab_users
12479 here.
12480 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12481
12482 2020-01-10 Pedro Alves <palves@redhat.com>
12483
12484 * NEWS: Mention multi-target debugging, "info connections", and
12485 "add-inferior -no-connection".
12486
12487 2020-01-10 Pedro Alves <palves@redhat.com>
12488
12489 * infrun.c: Include "target-connection.h".
12490 (check_multi_target_resumption): New.
12491 (proceed): Call it.
12492 * target-connection.c (make_target_connection_string): Make
12493 extern.
12494 * target-connection.h (make_target_connection_string): Declare.
12495
12496 2020-01-10 Pedro Alves <palves@redhat.com>
12497
12498 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12499 * inferior.c (uiout_field_connection): New function.
12500 (print_inferior): Add new "connection-id" column.
12501 (add_inferior_command): Show connection number/string of added
12502 inferior.
12503 * process-stratum-target.h
12504 (process_stratum_target::connection_string): New virtual method.
12505 (process_stratum_target::connection_number): New field.
12506 * remote.c (remote_target::connection_string): New override.
12507 * target-connection.c: New file.
12508 * target-connection.h: New file.
12509 * target.c (decref_target): Remove process_stratum targets from
12510 the connection list.
12511 (target_stack::push): Add process_stratum targets to the
12512 connection list.
12513
12514 2020-01-10 Pedro Alves <palves@redhat.com>
12515
12516 Revert:
12517 2016-04-12 Pedro Alves <palves@redhat.com>
12518 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12519 Remove references to name.
12520 * serial.h (struct serial) <name>: Delete.
12521
12522 2020-01-10 Pedro Alves <palves@redhat.com>
12523
12524 * gdbarch-selftests.c (register_to_value_test): Remove "target
12525 already pushed" check.
12526
12527 2020-01-10 Pedro Alves <palves@redhat.com>
12528 John Baldwin <jhb@FreeBSD.org>
12529
12530 * aarch64-linux-nat.c
12531 (aarch64_linux_nat_target::thread_architecture): Adjust.
12532 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12533 (task_command_1): Likewise.
12534 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12535 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12536 (aix_thread_target::store_registers)
12537 (aix_thread_target::thread_alive): Adjust.
12538 * amd64-fbsd-tdep.c: Include "inferior.h".
12539 (amd64fbsd_get_thread_local_address): Pass down target.
12540 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12541 thread's gdbarch instead of target_gdbarch.
12542 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12543 get_last_target_status.
12544 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12545 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12546 inferiors.
12547 (update_inserted_breakpoint_locations): Skip if inferiors with no
12548 execution.
12549 (update_global_location_list): When handling moribund locations,
12550 find representative inferior for location's pspace, and use thread
12551 count of its process_stratum target.
12552 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12553 * bsd-uthread.c (bsd_uthread_target::wait): Use
12554 as_process_stratum_target and adjust thread_change_ptid and
12555 add_thread calls.
12556 (bsd_uthread_target::update_thread_list): Use
12557 as_process_stratum_target and adjust find_thread_ptid,
12558 thread_change_ptid and add_thread calls.
12559 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12560 find_thread_ptid call.
12561 * corelow.c (add_to_thread_list): Adjust add_thread call.
12562 (core_target_open): Adjust add_thread_silent and thread_count
12563 calls.
12564 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12565 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12566 * event-top.c (async_disconnect): Pop targets from all inferiors.
12567 * exec.c (add_target_sections): Push exec target on all inferiors
12568 sharing the program space.
12569 (remove_target_sections): Remove the exec target from all
12570 inferiors sharing the program space.
12571 (exec_on_vfork): New.
12572 * exec.h (exec_on_vfork): Declare.
12573 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12574 Pass it down.
12575 (fbsd_nat_target::update_thread_list): Adjust.
12576 (fbsd_nat_target::resume): Adjust.
12577 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12578 down.
12579 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12580 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12581 get_thread_arch_regcache call.
12582 * fork-child.c (gdb_startup_inferior): Pass target down to
12583 startup_inferior and set_executing.
12584 * gdbthread.h (struct process_stratum_target): Forward declare.
12585 (add_thread, add_thread_silent, add_thread_with_info)
12586 (in_thread_list): Add process_stratum_target parameter.
12587 (find_thread_ptid(inferior*, ptid_t)): New overload.
12588 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12589 parameter.
12590 (all_threads()): Delete overload.
12591 (all_threads, all_non_exited_threads): Add process_stratum_target
12592 parameter.
12593 (all_threads_safe): Use brace initialization.
12594 (thread_count): Add process_stratum_target parameter.
12595 (set_resumed, set_running, set_stop_requested, set_executing)
12596 (threads_are_executing, finish_thread_state): Add
12597 process_stratum_target parameter.
12598 (switch_to_thread): Use is_current_thread.
12599 * i386-fbsd-tdep.c: Include "inferior.h".
12600 (i386fbsd_get_thread_local_address): Pass down target.
12601 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12602 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12603 have_inferiors check.
12604 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12605 (inf_ptrace_target::attach): Adjust.
12606 * infcall.c (run_inferior_call): Adjust.
12607 * infcmd.c (run_command_1): Pass target to
12608 scoped_finish_thread_state.
12609 (proceed_thread_callback): Skip inferiors with no execution.
12610 (continue_command): Rename 'all_threads' local to avoid hiding
12611 'all_threads' function. Adjust get_last_target_status call.
12612 (prepare_one_step): Adjust set_running call.
12613 (signal_command): Use user_visible_resume_target. Compare thread
12614 pointers instead of inferior_ptid.
12615 (info_program_command): Adjust to pass down target.
12616 (attach_command): Mark target's 'thread_executing' flag.
12617 (stop_current_target_threads_ns): New, factored out from ...
12618 (interrupt_target_1): ... this. Switch inferior before making
12619 target calls.
12620 * inferior-iter.h
12621 (struct all_inferiors_iterator, struct all_inferiors_range)
12622 (struct all_inferiors_safe_range)
12623 (struct all_non_exited_inferiors_range): Filter on
12624 process_stratum_target too. Remove explicit.
12625 * inferior.c (inferior::inferior): Push dummy target on target
12626 stack.
12627 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12628 Add process_stratum_target parameter, and pass it down.
12629 (have_live_inferiors): Adjust.
12630 (switch_to_inferior_and_push_target): New.
12631 (add_inferior_command, clone_inferior_command): Handle
12632 "-no-connection" parameter. Use
12633 switch_to_inferior_and_push_target.
12634 (_initialize_inferior): Mention "-no-connection" option in
12635 the help of "add-inferior" and "clone-inferior" commands.
12636 * inferior.h: Include "process-stratum-target.h".
12637 (interrupt_target_1): Use bool.
12638 (struct inferior) <push_target, unpush_target, target_is_pushed,
12639 find_target_beneath, top_target, process_target, target_at,
12640 m_stack>: New.
12641 (discard_all_inferiors): Delete.
12642 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12643 (all_inferiors, all_non_exited_inferiors): Add
12644 process_stratum_target parameter.
12645 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12646 (target_last_proc_target): New global.
12647 (follow_fork_inferior): Push target on new inferior. Pass target
12648 to add_thread_silent. Call exec_on_vfork. Handle target's
12649 reference count.
12650 (follow_fork): Adjust get_last_target_status call. Also consider
12651 target.
12652 (follow_exec): Push target on new inferior.
12653 (struct execution_control_state) <target>: New field.
12654 (user_visible_resume_target): New.
12655 (do_target_resume): Call target_async.
12656 (resume_1): Set target's threads_executing flag. Consider resume
12657 target.
12658 (commit_resume_all_targets): New.
12659 (proceed): Also consider resume target. Skip threads of inferiors
12660 with no execution. Commit resumtion in all targets.
12661 (start_remote): Pass current inferior to wait_for_inferior.
12662 (infrun_thread_stop_requested): Consider target as well. Pass
12663 thread_info pointer to clear_inline_frame_state instead of ptid.
12664 (infrun_thread_thread_exit): Consider target as well.
12665 (random_pending_event_thread): New inferior parameter. Use it.
12666 (do_target_wait): Rename to ...
12667 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12668 down.
12669 (threads_are_resumed_pending_p, do_target_wait): New.
12670 (prepare_for_detach): Adjust calls.
12671 (wait_for_inferior): New inferior parameter. Handle it. Use
12672 do_target_wait_1 instead of do_target_wait.
12673 (fetch_inferior_event): Adjust. Switch to representative
12674 inferior. Pass target down.
12675 (set_last_target_status): Add process_stratum_target parameter.
12676 Save target in global.
12677 (get_last_target_status): Add process_stratum_target parameter and
12678 handle it.
12679 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12680 (context_switch): Check inferior_ptid == null_ptid before calling
12681 inferior_thread().
12682 (get_inferior_stop_soon): Pass down target.
12683 (wait_one): Rename to ...
12684 (poll_one_curr_target): ... this.
12685 (struct wait_one_event): New.
12686 (wait_one): New.
12687 (stop_all_threads): Adjust.
12688 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12689 event's target.
12690 (switch_back_to_stepped_thread): Also consider target.
12691 (print_stop_event): Update.
12692 (normal_stop): Update. Also consider the resume target.
12693 * infrun.h (wait_for_inferior): Remove declaration.
12694 (user_visible_resume_target): New declaration.
12695 (get_last_target_status, set_last_target_status): New
12696 process_stratum_target parameter.
12697 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12698 process_stratum_target parameter, and use it.
12699 (clear_inline_frame_state (thread_info*)): New.
12700 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12701 process_stratum_target parameter.
12702 (clear_inline_frame_state (thread_info*)): Declare.
12703 * linux-fork.c (delete_checkpoint_command): Pass target down to
12704 find_thread_ptid.
12705 (checkpoint_command): Adjust.
12706 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12707 instead of just tweaking inferior_ptid.
12708 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12709 (exit_lwp): Pass target down to find_thread_ptid.
12710 (attach_proc_task_lwp_callback): Pass target down to
12711 add_thread/set_running/set_executing.
12712 (linux_nat_target::attach): Pass target down to
12713 thread_change_ptid.
12714 (get_detach_signal): Pass target down to find_thread_ptid.
12715 Consider last target status's target.
12716 (linux_resume_one_lwp_throw, resume_lwp)
12717 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12718 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12719 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12720 (linux_nat_target::async_wait_fd): New.
12721 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12722 target down.
12723 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12724 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12725 * linux-thread-db.c (struct thread_db_info::process_target): New
12726 field.
12727 (add_thread_db_info): Save target.
12728 (get_thread_db_info): New process_stratum_target parameter. Also
12729 match target.
12730 (delete_thread_db_info): New process_stratum_target parameter.
12731 Also match target.
12732 (thread_from_lwp): Adjust to pass down target.
12733 (thread_db_notice_clone): Pass down target.
12734 (check_thread_db_callback): Pass down target.
12735 (try_thread_db_load_1): Always push the thread_db target.
12736 (try_thread_db_load, record_thread): Pass target down.
12737 (thread_db_target::detach): Pass target down. Always unpush the
12738 thread_db target.
12739 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12740 target down. Always unpush the thread_db target.
12741 (find_new_threads_callback, thread_db_find_new_threads_2)
12742 (thread_db_target::update_thread_list): Pass target down.
12743 (thread_db_target::pid_to_str): Pass current inferior down.
12744 (thread_db_target::get_thread_local_address): Pass target down.
12745 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12746 target down.
12747 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12748 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12749 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12750 (procfs_init_inferior): Rename to ...
12751 (procfs_target::procfs_init_inferior): ... this and adjust.
12752 (procfs_target::create_inferior, procfs_notice_thread)
12753 (procfs_do_thread_registers): Adjust.
12754 * ppc-fbsd-tdep.c: Include "inferior.h".
12755 (ppcfbsd_get_thread_local_address): Pass down target.
12756 * proc-service.c (ps_xfer_memory): Switch current inferior and
12757 program space as well.
12758 (get_ps_regcache): Pass target down.
12759 * process-stratum-target.c
12760 (process_stratum_target::thread_address_space)
12761 (process_stratum_target::thread_architecture): Pass target down.
12762 * process-stratum-target.h
12763 (process_stratum_target::threads_executing): New field.
12764 (as_process_stratum_target): New.
12765 * ravenscar-thread.c
12766 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12767 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12768 down.
12769 * record-btrace.c (record_btrace_target::info_record): Adjust.
12770 (record_btrace_target::record_method)
12771 (record_btrace_target::record_is_replaying)
12772 (record_btrace_target::fetch_registers)
12773 (get_thread_current_frame_id, record_btrace_target::resume)
12774 (record_btrace_target::wait, record_btrace_target::stop): Pass
12775 target down.
12776 * record-full.c (record_full_wait_1): Switch to event thread.
12777 Pass target down.
12778 * regcache.c (regcache::regcache)
12779 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12780 process_stratum_target parameter and handle it.
12781 (current_thread_target): New global.
12782 (get_thread_regcache): Add process_stratum_target parameter and
12783 handle it. Switch inferior before calling target method.
12784 (get_thread_regcache): Pass target down.
12785 (get_thread_regcache_for_ptid): Pass target down.
12786 (registers_changed_ptid): Add process_stratum_target parameter and
12787 handle it.
12788 (registers_changed_thread, registers_changed): Pass target down.
12789 (test_get_thread_arch_aspace_regcache): New.
12790 (current_regcache_test): Define a couple local test_target_ops
12791 instances and use them for testing.
12792 (readwrite_regcache): Pass process_stratum_target parameter.
12793 (cooked_read_test, cooked_write_test): Pass mock_target down.
12794 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12795 (get_thread_arch_aspace_regcache): Add process_stratum_target
12796 parameter.
12797 (regcache::target): New method.
12798 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12799 (regcache::registers_changed_ptid): Add process_stratum_target
12800 parameter.
12801 (regcache::m_target): New field.
12802 (registers_changed_ptid): Add process_stratum_target parameter.
12803 * remote.c (remote_state::supports_vCont_probed): New field.
12804 (remote_target::async_wait_fd): New method.
12805 (remote_unpush_and_throw): Add remote_target parameter.
12806 (get_current_remote_target): Adjust.
12807 (remote_target::remote_add_inferior): Push target.
12808 (remote_target::remote_add_thread)
12809 (remote_target::remote_notice_new_inferior)
12810 (get_remote_thread_info): Pass target down.
12811 (remote_target::update_thread_list): Skip threads of inferiors
12812 bound to other targets. (remote_target::close): Don't discard
12813 inferiors. (remote_target::add_current_inferior_and_thread)
12814 (remote_target::process_initial_stop_replies)
12815 (remote_target::start_remote)
12816 (remote_target::remote_serial_quit_handler): Pass down target.
12817 (remote_target::remote_unpush_target): New remote_target
12818 parameter. Unpush the target from all inferiors.
12819 (remote_target::remote_unpush_and_throw): New remote_target
12820 parameter. Pass it down.
12821 (remote_target::open_1): Check whether the current inferior has
12822 execution instead of checking whether any inferior is live. Pass
12823 target down.
12824 (remote_target::remote_detach_1): Pass down target. Use
12825 remote_unpush_target.
12826 (extended_remote_target::attach): Pass down target.
12827 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12828 (remote_target::append_resumption): Pass down target.
12829 (remote_target::append_pending_thread_resumptions)
12830 (remote_target::remote_resume_with_hc, remote_target::resume)
12831 (remote_target::commit_resume): Pass down target.
12832 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12833 (remote_target::interrupt_query)
12834 (remote_target::remove_new_fork_children)
12835 (remote_target::check_pending_events_prevent_wildcard_vcont)
12836 (remote_target::remote_parse_stop_reply)
12837 (remote_target::process_stop_reply): Pass down target.
12838 (first_remote_resumed_thread): New remote_target parameter. Pass
12839 it down.
12840 (remote_target::wait_as): Pass down target.
12841 (unpush_and_perror): New remote_target parameter. Pass it down.
12842 (remote_target::readchar, remote_target::remote_serial_write)
12843 (remote_target::getpkt_or_notif_sane_1)
12844 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12845 down target.
12846 (remote_target::mourn_inferior): Pass down target. Use
12847 remote_unpush_target.
12848 (remote_target::core_of_thread)
12849 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12850 (remote_target::pid_to_exec_file)
12851 (remote_target::thread_handle_to_thread_info): Pass down target.
12852 (remote_target::async_wait_fd): New.
12853 * riscv-fbsd-tdep.c: Include "inferior.h".
12854 (riscv_fbsd_get_thread_local_address): Pass down target.
12855 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12856 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12857 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12858 Adjust.
12859 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12860 * solib-svr4.c (enable_break): Pass down target.
12861 * spu-multiarch.c (parse_spufs_run): Pass down target.
12862 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12863 * target-delegates.c: Regenerate.
12864 * target.c (g_target_stack): Delete.
12865 (current_top_target): Return the current inferior's top target.
12866 (target_has_execution_1): Refer to the passed-in inferior's top
12867 target.
12868 (target_supports_terminal_ours): Check whether the initial
12869 inferior was already created.
12870 (decref_target): New.
12871 (target_stack::push): Incref/decref the target.
12872 (push_target, push_target, unpush_target): Adjust.
12873 (target_stack::unpush): Defref target.
12874 (target_is_pushed): Return bool. Adjust to refer to the current
12875 inferior's target stack.
12876 (dispose_inferior): Delete, and inline parts ...
12877 (target_preopen): ... here. Only dispose of the current inferior.
12878 (target_detach): Hold strong target reference while detaching.
12879 Pass target down.
12880 (target_thread_name): Add assertion.
12881 (target_resume): Pass down target.
12882 (target_ops::beneath, find_target_at): Adjust to refer to the
12883 current inferior's target stack.
12884 (get_dummy_target): New.
12885 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12886 has a thread running.
12887 (initialize_targets): Rename to ...
12888 (_initialize_target): ... this.
12889 * target.h: Include "gdbsupport/refcounted-object.h".
12890 (struct target_ops): Inherit refcounted_object.
12891 (target_ops::shortname, target_ops::longname): Make const.
12892 (target_ops::async_wait_fd): New method.
12893 (decref_target): Declare.
12894 (struct target_ops_ref_policy): New.
12895 (target_ops_ref): New typedef.
12896 (get_dummy_target): Declare function.
12897 (target_is_pushed): Return bool.
12898 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12899 (all_matching_threads_iterator::all_matching_threads_iterator):
12900 Handle filter target.
12901 * thread-iter.h (struct all_matching_threads_iterator, struct
12902 all_matching_threads_range, class all_non_exited_threads_range):
12903 Filter by target too. Remove explicit.
12904 * thread.c (threads_executing): Delete.
12905 (inferior_thread): Pass down current inferior.
12906 (clear_thread_inferior_resources): Pass down thread pointer
12907 instead of ptid_t.
12908 (add_thread_silent, add_thread_with_info, add_thread): Add
12909 process_stratum_target parameter. Use it for thread and inferior
12910 searches.
12911 (is_current_thread): New.
12912 (thread_info::deletable): Use it.
12913 (find_thread_ptid, thread_count, in_thread_list)
12914 (thread_change_ptid, set_resumed, set_running): New
12915 process_stratum_target parameter. Pass it down.
12916 (set_executing): New process_stratum_target parameter. Pass it
12917 down. Adjust reference to 'threads_executing'.
12918 (threads_are_executing): New process_stratum_target parameter.
12919 Adjust reference to 'threads_executing'.
12920 (set_stop_requested, finish_thread_state): New
12921 process_stratum_target parameter. Pass it down.
12922 (switch_to_thread): Also match inferior.
12923 (switch_to_thread): New process_stratum_target parameter. Pass it
12924 down.
12925 (update_threads_executing): Reimplement.
12926 * top.c (quit_force): Pop targets from all inferior.
12927 (gdb_init): Don't call initialize_targets.
12928 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12929 Declare.
12930 (windows_add_thread, windows_delete_thread): Adjust.
12931 (get_windows_debug_event): Rename to ...
12932 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12933 * tracefile-tfile.c (tfile_target_open): Pass down target.
12934 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12935 Forward declare.
12936 (switch_to_thread): Add process_stratum_target parameter.
12937 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12938 parameter. Use it.
12939 (mi_on_resume): Pass target down.
12940 * nat/fork-inferior.c (startup_inferior): Add
12941 process_stratum_target parameter. Pass it down.
12942 * nat/fork-inferior.h (startup_inferior): Add
12943 process_stratum_target parameter.
12944 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12945
12946 2020-01-10 Pedro Alves <palves@redhat.com>
12947
12948 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12949 directly. Instead find the first thread in the thread list and
12950 use switch_to_thread.
12951
12952 2020-01-10 Pedro Alves <palves@redhat.com>
12953
12954 * remote.c (remote_target::remote_add_inferior): Don't bind a
12955 process to the current inferior if the current inferior is already
12956 bound to a process.
12957
12958 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12959 Pedro Alves <palves@redhat.com>
12960
12961 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12962 If no process is specified, return null_ptid instead of
12963 inferior_ptid.
12964 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12965 TARGET_WAITKIND_SIGNALLED with no pid.
12966
12967 2020-01-10 Pedro Alves <palves@redhat.com>
12968
12969 * remote.c (first_remote_resumed_thread): New.
12970 (remote_target::wait_as): Use it as default event_ptid instead of
12971 inferior_ptid.
12972
12973 2020-01-10 Pedro Alves <palves@redhat.com>
12974
12975 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12976
12977 2020-01-10 Pedro Alves <palves@redhat.com>
12978
12979 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12980 not -1.
12981
12982 2020-01-10 Pedro Alves <palves@redhat.com>
12983
12984 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12985 ptid to get_last_target_status.
12986 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12987 ptid to get_last_target_status.
12988 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12989 get_last_target_status.
12990 (info_program_command): Don't pass a target_waitstatus to
12991 get_last_target_status.
12992 * infrun.c (init_wait_for_inferior): Use
12993 nullify_last_target_wait_ptid.
12994 (get_last_target_status): Handle nullptr arguments.
12995 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12996 (print_stop_event): Don't pass a ptid to get_last_target_status.
12997 (normal_stop): Don't pass a ptid to get_last_target_status.
12998 * infrun.h (get_last_target_status, set_last_target_status): Move
12999 comments here and update.
13000 (nullify_last_target_wait_ptid): Declare.
13001 * linux-fork.c (fork_load_infrun_state): Remove local extern
13002 declaration of nullify_last_target_wait_ptid.
13003 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13004 to get_last_target_status.
13005
13006 2020-01-10 Pedro Alves <palves@redhat.com>
13007
13008 * gdbthread.h (scoped_restore_current_thread)
13009 <dont_restore, restore, m_dont_restore>: Declare.
13010 * thread.c (thread_alive): Add assertion. Return bool.
13011 (switch_to_thread_if_alive): New.
13012 (prune_threads): Switch inferior/thread.
13013 (print_thread_info_1): Switch thread before calling target methods.
13014 (scoped_restore_current_thread::restore): New, factored out from
13015 ...
13016 (scoped_restore_current_thread::~scoped_restore_current_thread):
13017 ... this.
13018 (scoped_restore_current_thread::scoped_restore_current_thread):
13019 Add assertion.
13020 (thread_apply_all_command, thread_select): Use
13021 switch_to_thread_if_alive.
13022 * infrun.c (proceed, restart_threads, handle_signal_stop)
13023 (switch_back_to_stepped_thread): Switch current thread before
13024 calling target methods.
13025
13026 2020-01-10 Pedro Alves <palves@redhat.com>
13027
13028 * inferior.c (switch_to_inferior_no_thread): New function,
13029 factored out from ...
13030 (inferior_command): ... here.
13031 * inferior.h (switch_to_inferior_no_thread): Declare.
13032 * mi/mi-main.c (run_one_inferior): Use
13033 switch_to_inferior_no_thread.
13034
13035 2020-01-10 Pedro Alves <palves@redhat.com>
13036
13037 * infcmd.c (kill_command): Remove dead code.
13038
13039 2020-01-10 Pedro Alves <palves@redhat.com>
13040
13041 * remote.c (remote_target::mourn_inferior): No longer check
13042 whether the target is running.
13043
13044 2020-01-10 Pedro Alves <palves@redhat.com>
13045
13046 * corelow.c (core_target::has_execution): Change parameter type to
13047 inferior pointer.
13048 * inferior.c (number_of_live_inferiors): Use
13049 inferior::has_execution instead of target_has_execution_1.
13050 * inferior.h (inferior::has_execution): New.
13051 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13052 inferior::has_execution instead of target_has_execution_1.
13053 * process-stratum-target.c
13054 (process_stratum_target::has_execution): Change parameter type to
13055 inferior pointer. Check the inferior's PID instead of
13056 inferior_ptid.
13057 * process-stratum-target.h
13058 (process_stratum_target::has_execution): Change parameter type to
13059 inferior pointer.
13060 * record-full.c (record_full_core_target::has_execution): Change
13061 parameter type to inferior pointer.
13062 * target.c (target_has_execution_1): Change parameter type to
13063 inferior pointer.
13064 (target_has_execution_current): Adjust.
13065 * target.h (target_ops::has_execution): Change parameter type to
13066 inferior pointer.
13067 (target_has_execution_1): Change parameter type to inferior
13068 pointer. Change return type to bool.
13069 * tracefile.h (tracefile_target::has_execution): Change parameter
13070 type to inferior pointer.
13071
13072 2020-01-10 Pedro Alves <palves@redhat.com>
13073
13074 * exceptions.c (print_flush): Remove current_top_target() check.
13075
13076 2020-01-10 Pedro Alves <palves@redhat.com>
13077
13078 * remote.c (show_remote_exec_file): Show the current inferior's
13079 exec-file instead of the command variable's value.
13080
13081 2020-01-10 Pedro Alves <palves@redhat.com>
13082
13083 * record-full.c (record_full_resume_ptid): New global.
13084 (record_full_target::resume): Set it.
13085 (record_full_wait_1): Use record_full_resume_ptid instead of
13086 inferior_ptid.
13087
13088 2020-01-10 Pedro Alves <palves@redhat.com>
13089
13090 * gdbthread.h (scoped_restore_current_thread)
13091 <dont_restore, restore, m_dont_restore>: Declare.
13092 * thread.c (thread_alive): Add assertion. Return bool.
13093 (switch_to_thread_if_alive): New.
13094 (prune_threads): Switch inferior/thread.
13095 (print_thread_info_1): Switch thread before calling target methods.
13096 (scoped_restore_current_thread::restore): New, factored out from
13097 ...
13098 (scoped_restore_current_thread::~scoped_restore_current_thread):
13099 ... this.
13100 (scoped_restore_current_thread::scoped_restore_current_thread):
13101 Add assertion.
13102 (thread_apply_all_command, thread_select): Use
13103 switch_to_thread_if_alive.
13104
13105 2020-01-10 George Barrett <bob@bob131.so>
13106
13107 * stap-probe.c (stap_modify_semaphore): Don't check for null
13108 semaphores.
13109 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13110 for null semaphores.
13111
13112 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13113
13114 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13115 all source windows, and maintain horizontal scroll status while
13116 doing so.
13117
13118 2020-01-09 Tom Tromey <tom@tromey.com>
13119
13120 PR tui/18932:
13121 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13122 update_source_window, not print_source_lines.
13123
13124 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13125
13126 * tui/tui.c (tui_enable): Register tui hooks after calling
13127 tui_display_main.
13128
13129 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13130
13131 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13132
13133 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13134
13135 * thread.c (print_thread_info_1): Fix indentation.
13136
13137 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13138
13139 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13140 unique_xmalloc_ptr outside the if to always free the demangled name.
13141
13142 2020-01-08 Tom Tromey <tromey@adacore.com>
13143
13144 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13145 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13146 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13147 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13148 Remove.
13149 (section_offsets): New typedef.
13150 * symtab.c (fixup_section, get_msymbol_address): Update.
13151 * symmisc.c (dump_msymbols): Update.
13152 * symfile.h (relative_addr_info_to_section_offsets)
13153 (symfile_map_offsets_to_segments): Update.
13154 * symfile.c (build_section_addr_info_from_objfile)
13155 (init_objfile_sect_indices): Update.
13156 (struct place_section_arg): Change type of "offsets".
13157 (place_section): Update.
13158 (relative_addr_info_to_section_offsets): Change type of
13159 "section_offsets". Remove "num_sections" parameter.
13160 (default_symfile_offsets, syms_from_objfile_1)
13161 (set_objfile_default_section_offset): Update.
13162 (reread_symbols): No need to preserve section offsets by hand.
13163 (symfile_map_offsets_to_segments): Change type of "offsets".
13164 * stap-probe.c (relocate_address): Update.
13165 * stabsread.h (process_one_symbol): Update.
13166 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13167 (solib_target_relocate_section_addresses): Update.
13168 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13169 Update.
13170 * solib-frv.c (frv_relocate_main_executable): Update.
13171 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13172 * solib-aix.c (solib_aix_get_section_offsets): Change return
13173 type.
13174 (solib_aix_solib_create_inferior_hook): Update.
13175 * remote.c (remote_target::get_offsets): Update.
13176 * psymtab.c (find_pc_sect_psymtab): Update.
13177 * psympriv.h (struct partial_symbol) <address, text_low,
13178 text_high>: Update.
13179 * objfiles.h (obj_section_offset): Update.
13180 (struct objfile) <section_offsets>: Change type.
13181 <num_sections>: Remove.
13182 (objfile_relocate): Update.
13183 * objfiles.c (entry_point_address_query): Update
13184 (relocate_one_symbol): Change type of "section_offsets".
13185 (objfile_relocate1, objfile_relocate1): Change type of
13186 "new_offsets".
13187 (objfile_rebase1): Update.
13188 * mipsread.c (mipscoff_symfile_read): Update.
13189 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13190 parameter.
13191 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13192 (parse_external, psymtab_to_symtab_1): Update.
13193 * machoread.c (macho_symfile_offsets): Update.
13194 * ia64-tdep.c (ia64_find_unwind_table): Update.
13195 * hppa-tdep.c (read_unwind_info): Update.
13196 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13197 * dwarf2read.c (create_addrmap_from_index)
13198 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13199 (process_psymtab_comp_unit_reader, add_partial_symbol)
13200 (add_partial_subprogram, process_full_comp_unit)
13201 (read_file_scope, read_func_scope, read_lexical_block_scope)
13202 (read_call_site_scope, dwarf2_rnglists_process)
13203 (dwarf2_ranges_process, dwarf2_ranges_read)
13204 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13205 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13206 Update.
13207 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13208 Update.
13209 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13210 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13211 (process_one_symbol): Change type of "section_offsets".
13212 * ctfread.c (get_objfile_text_range): Update.
13213 * coffread.c (coff_symtab_read, enter_linenos)
13214 (process_coff_symbol): Update.
13215 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13216 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13217
13218 2020-01-08 Tom Tromey <tromey@adacore.com>
13219
13220 * dwarf2read.c (parse_macro_definition): Use std::string.
13221 (parse_macro_definition): Likewise.
13222
13223 2020-01-08 Tom Tromey <tromey@adacore.com>
13224
13225 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13226 (ATTR_ALLOC_CHUNK): Remove.
13227
13228 2020-01-08 Tom Tromey <tromey@adacore.com>
13229
13230 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13231
13232 2020-01-08 Tom Tromey <tromey@adacore.com>
13233
13234 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13235 (dwarf2_compute_name, open_dwo_file): Likewise.
13236 (process_enumeration_scope): Use std::vector.
13237 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13238 (partial_die_info::fixup, dwarf2_start_subfile)
13239 (guess_full_die_structure_name, dwarf2_name): Likewise.
13240 (determine_prefix): Update.
13241 (guess_full_die_structure_name): Make return type const.
13242 (partial_die_full_name): Return unique_xmalloc_ptr.
13243 (DW_FIELD_ALLOC_CHUNK): Remove.
13244
13245 2020-01-07 Tom Tromey <tromey@adacore.com>
13246
13247 PR build/24937:
13248 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13249
13250 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13251
13252 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13253
13254 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13255
13256 * stack.c (print_frame_info): Move disassemble_next_line code
13257 inside source_print block.
13258
13259 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13260
13261 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13262 gdb/signals.h, as we are now using native signal symbols.
13263
13264 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13265
13266 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13267 overflow by an early check of content vs threshold.
13268 * tui/tui-source.c (tui_source_window::line_is_displayed):
13269 Likewise.
13270
13271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13272
13273 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13274
13275 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13276
13277 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13278 export table if no section contains it's RVA.
13279
13280 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13281
13282 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13283
13284 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13285
13286 * source.c (print_source_lines_base): Set last_line_listed.
13287
13288 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13289
13290 * tui/tui-disasm.c: Remove trailing spaces.
13291
13292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13293 Pedro Alves <palves@redhat.com>
13294
13295 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13296 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13297 (windows_gdb_signal_to_target): New function, uses the above
13298 enumeration to convert GDB internal signal codes to equivalent
13299 Windows codes.
13300 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13301 * windows-nat.c: Include "gdb_wait.h".
13302 (get_windows_debug_event): Extract the fatal exception from the
13303 exit status and convert to the equivalent Posix signal number.
13304 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13305 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13306 * gdbsupport/gdb_wait.c: New file, implements
13307 windows_status_to_termsig.
13308 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13309 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13310
13311 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13312
13313 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13314 show_layout.
13315
13316 2020-01-05 Luis Machado <luis.machado@linaro.org>
13317
13318 * aarch64-linux-nat.c
13319 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13320 and bfd_mach_aarch64.
13321
13322 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13323
13324 * ui-file.c (stdio_file::can_emit_style_escape)
13325 (tee_file::can_emit_style_escape): Ensure style is used also on
13326 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13327 to gdb_stdout.
13328 * main.c (set_gdb_data_directory): Use file style to output the
13329 warning that the given pathname is not a directory.
13330 * top.c (show_history_filename, gdb_safe_append_history)
13331 (show_gdb_datadir): Use file style.
13332
13333 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13334
13335 * solib-target.c (struct lm_info_target):
13336 Change offsets to be a unique_xmalloc_ptr.
13337 (solib_target_relocate_section_addresses): Update.
13338
13339 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13340
13341 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13342
13343 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13344
13345 * MAINTAINERS (Write After Approval): Add myself.
13346
13347 2020-01-02 Luis Machado <luis.machado@linaro.org>
13348
13349 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13350 Cell BE architecture.
13351 * target.h (struct target_ops) <thread_architecture>: Likewise.
13352
13353 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13354
13355 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13356
13357 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13358
13359 * MAINTAINERS (Write After Approval): Add myself.
13360
13361 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13362
13363 * gdbarch.sh: Update copyright year range of generated files.
13364
13365 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13366
13367 Update copyright year range in all GDB files.
13368
13369 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13370
13371 * copyright.py: Convert to Python 3.
13372
13373 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13374
13375 * copyright.py: Adapt after move of gnulib directory from gdb
13376 directory to toplevel directory.
13377
13378 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13379
13380 * copyright.py (main): Exit if run from the wrong directory.
13381
13382 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13383
13384 * top.c (print_gdb_version): Change copyright year to 2020.
13385
13386 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13387
13388 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13389
13390 For older changes see ChangeLog-2019.
13391 \f
13392 Local Variables:
13393 mode: change-log
13394 left-margin: 8
13395 fill-column: 74
13396 version-control: never
13397 coding: utf-8
13398 End: