gdb: Convert language_data::c_style_arrays to a method
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove c_style_arrays
4 initializer.
5 (ada_language::c_style_arrays_p): New member fuction.
6 * c-lang.c (c_language_data): Remove c_style_arrays
7 initializer.
8 (cplus_language_data): Likewise.
9 (asm_language_data): Likewise.
10 (minimal_language_data): Likewise.
11 * d-lang.c (d_language_data): Likewise.
12 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
13 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
14 (f_language::c_style_arrays_p): New member function.
15 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
16 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
17 * language.c (unknown_language_data): Remove c_style_arrays
18 initializer.
19 (auto_language_data): Likewise.
20 * language.h (language_data): Remove c_style_arrays field.
21 (language_defn::c_style_arrays_p): New member function.
22 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
23 (m2_language::c_style_arrays_p): New member function.
24 * objc-lang.c (objc_language_data): Remove c_style_arrays
25 initializer.
26 * opencl-lang.c (opencl_language_data): Likewise.
27 * p-lang.c (pascal_language_data): Likewise.
28 * rust-lang.c (rust_language_data): Likewise.
29 * valarith.c (value_subscript): Update call to c_style_arrays_p,
30 and update local variable to a bool.
31 * valops.c (value_cast): Update call to c_style_arrays_p.
32 (value_array): Likewise.
33 * value.c (coerce_array): Likewise.
34
35 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
36
37 * ada-lang.c (ada_language_data): Remove la_language initializer.
38 * c-lang.c (c_language_data): Likewise.
39 (cplus_language_data): Likewise.
40 (asm_language_data): Likewise.
41 (minimal_language_data): Likewise.
42 * d-lang.c (d_language_data): Likewise.
43 * f-lang.c (f_language_data): Likewise.
44 * go-lang.c (go_language_data): Likewise.
45 * language.c (unknown_language_data): Likewise.
46 (auto_language_data): Likewise.
47 * language.h (language_data): Remove la_language field.
48 (language_defn::language_defn): Initialise la_language field.
49 (language_defn::la_language): New member variable.
50 * m2-lang.c (m2_language_data): Remove la_language field.
51 * objc-lang.c (objc_language_data): Likewise.
52 * opencl-lang.c (opencl_language_data): Likewise.
53 * p-lang.c (pascal_language_data): Likewise.
54 * rust-lang.c (rust_language_data): Likewise.
55
56 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * ada-lang.c (ada_extensions): Delete, moved into
59 ada_language::filename_extensions.
60 (ada_language_data): Remove la_filename_extensions initializer.
61 (ada_language::filename_extensions): New member function.
62 * c-lang.c (c_extensions): Delete, moved into
63 c_language::filename_extensions.
64 (c_language_data): Remove la_filename_extensions initializer.
65 (c_language::filename_extensions): New member function.
66 (cplus_extensions): Delete, moved into
67 cplus_language::filename_extensions.
68 (cplus_language_data): Remove la_filename_extensions initializer.
69 (cplus_language::filename_extensions): New member function.
70 (asm_extensions): Delete, moved into
71 asm_language::filename_extensions.
72 (asm_language_data): Remove la_filename_extensions initializer.
73 (asm_language::filename_extensions): New member function.
74 (minimal_language_data): Remove la_filename_extensions
75 initializer.
76 * d-lang.c (d_extensions): Delete, moved into
77 d_language::filename_extensions.
78 (d_language_data): Remove la_filename_extensions initializer.
79 (d_language::filename_extensions): New member function.
80 * f-lang.c (f_extensions): Delete, moved into
81 f_language::filename_extensions.
82 (f_language_data): Remove la_filename_extensions initializer.
83 (f_language::filename_extensions): New member function.
84 * go-lang.c (go_language_data): Remove la_filename_extensions
85 initializer.
86 * language.c (add_set_language_command): Update now that
87 filename_extensions returns a vector.
88 (unknown_language_data): Remove la_filename_extensions
89 initializer.
90 (auto_language_data): Likewise.
91 * language.h (language_data): Remove la_filename_extensions field.
92 (language_defn::filename_extensions): New member function.
93 * m2-lang.c (m2_language_data): Remove la_filename_extensions
94 initializer.
95 * objc-lang.c (objc_extensions): Delete, moved into
96 objc_language::filename_extensions.
97 (objc_language_data): Remove la_filename_extensions initializer.
98 (objc_language::filename_extensions): New member function.
99 * opencl-lang.c (opencl_language_data): Remove
100 la_filename_extensions initializer.
101 * p-lang.c (pascal_extensions): Delete, moved into
102 pascal_language::filename_extensions.
103 (pascal_language_data): Remove la_filename_extensions initializer.
104 (pascal_language::filename_extensions): New member function.
105 * rust-lang.c (rust_extensions): Delete, moved into
106 rust_language::filename_extensions.
107 (rust_language_data): Remove la_filename_extensions initializer.
108 (rust_language::filename_extensions): New member function.
109 * symfile.c (add_filename_language): Add new assert.
110
111 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
112
113 * ada-lang.c (ada_language_data): Remove la_name and
114 la_natural_name initializers.
115 (ada_language::name): New member function.
116 (ada_language::natural_name): New member function.
117 * c-lang.c (c_language_data): Remove la_name and
118 la_natural_name initializers.
119 (c_language::name): New member function.
120 (c_language::natural_name): New member function.
121 (cplus_language_data): Remove la_name and
122 la_natural_name initializers.
123 (cplus_language::name): New member function.
124 (cplus_language::natural_name): New member function.
125 (asm_language_data): Remove la_name and
126 la_natural_name initializers.
127 (asm_language::name): New member function.
128 (asm_language::natural_name): New member function.
129 (minimal_language_data): Remove la_name and
130 la_natural_name initializers.
131 (minimal_language::name): New member function.
132 (minimal_language::natural_name): New member function.
133 * compile/compile.c (compile_to_object): Update call to
134 lanugage_defn::name.
135 * d-lang.c (d_language_data): Remove la_name and
136 la_natural_name initializers.
137 (d_language::name): New member function.
138 (d_language::natural_name): New member function.
139 * expprint.c (print_subexp_standard): Update call to
140 language_defn::name.
141 (dump_raw_expression): Likewise
142 (dump_prefix_expression): Likewise.
143 * f-lang.c (f_language_data): Remove la_name and
144 la_natural_name initializers.
145 (f_language::name): New member function.
146 (f_language::natural_name): New member function.
147 * go-lang.c (go_language_data): Remove la_name and
148 la_natural_name initializers.
149 (go_language::name): New member function.
150 (go_language::natural_name): New member function.
151 * language.c (show_language_command): Update call to
152 language_defn::name.
153 (set_language_command): Likewise.
154 (language_enum): Likewise.
155 (language_str): Likewise.
156 (add_set_language_command): Likewise, use
157 language_defn::natural_name in the doc string.
158 (unknown_language_data): Remove la_name and
159 la_natural_name initializers.
160 (unknown_language::name): New member function.
161 (unknown_language::natural_name): New member function.
162 (auto_language_data): Remove la_name and
163 la_natural_name initializers.
164 (auto_language::name): New member function.
165 (auto_language::natural_name): New member function.
166 (language_lookup_primitive_type_as_symbol): Update call to
167 language_defn::name.
168 * language.h (language_data): Remove la_name and la_natural_name
169 member variables.
170 (language_defn::name): New member function.
171 (language_defn::natural_name): New member function.
172 * m2-lang.c (m2_language_data): Remove la_name and
173 la_natural_name initializers.
174 (m2_language::name): New member function.
175 (m2_language::natural_name): New member function.
176 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
177 language_defn::natural_name.
178 * objc-lang.c (objc_language_data): Remove la_name and
179 la_natural_name initializers.
180 (objc_language::name): New member function.
181 (objc_language::natural_name): New member function.
182 * opencl-lang.c (opencl_language_data): Remove la_name and
183 la_natural_name initializers.
184 (opencl_language::name): New member function.
185 (opencl_language::natural_name): New member function.
186 * p-lang.c (pascal_language_data): Remove la_name and
187 la_natural_name initializers.
188 (pascal_language::name): New member function.
189 (pascal_language::natural_name): New member function.
190 * rust-lang.c (rust_language_data): Remove la_name and
191 la_natural_name initializers.
192 (rust_language::name): New member function.
193 (rust_language::natural_name): New member function.
194 * symtab.c (lookup_language_this): Update call to
195 language_defn::name.
196
197 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * ada-lang.c (ada_language_data): Remove la_name_of_this
200 initializer.
201 * ax-gdb.c (gen_expr): Update call to name_of_this.
202 * c-exp.y (classify_name): Likewise.
203 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
204 (cplus_language_data): Likewise.
205 (cplus_language::name_of_this): New member function.
206 (asm_language_data): Remove la_name_of_this initializer.
207 (minimal_language_data): Likewise.
208 * d-lang.c (d_language_data): Likewise.
209 (d_language::name_of_this): New member function.
210 * expprint.c (print_subexp_standard): Update call to name_of_this.
211 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
212 * go-lang.c (go_language_data): Likewise.
213 * language.c (unknown_language_data): Likewise.
214 (unknown_language::name_of_this): New member function.
215 (auto_language_data): Remove la_name_of_this initializer.
216 (auto_language::name_of_this): New member function.
217 * language.h (language_data): Delete la_name_of_this member
218 variable.
219 (language_defn::name_of_this): New member function.
220 * m2-lang.c (m2_language_data): Remove la_name_of_this
221 initializer.
222 * objc-lang.c (objc_language_data): Likewise.
223 (objc_language::name_of_this): New member function.
224 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
225 initializer.
226 * p-lang.c (pascal_language_data): Likewise.
227 (pascal_language::name_of_this): New member function.
228 * rust-lang.c (rust_language_data): Remove la_name_of_this
229 initializer.
230 * symtab.c (lookup_language_this): Update call to name_of_this.
231 (lookup_symbol_aux): Likewise.
232 * valops.c (value_of_this): Likewise.
233
234 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * ada-lang.c (ada_language_data): Remove
237 la_struct_too_deep_ellipsis initializer.
238 (ada_language::struct_too_deep_ellipsis): New member function.
239 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
240 initializer.
241 (cplus_language_data): Likewise.
242 (asm_language_data): Likewise.
243 (minimal_language_data): Likewise.
244 * cp-valprint.c (cp_print_value): Update call to
245 struct_too_deep_ellipsis.
246 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
247 initializer.
248 * f-lang.c (f_language_data): Likewise.
249 (f_language::struct_too_deep_ellipsis): New member function.
250 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
251 initializer.
252 * language.c (unknown_language_data): Likewise.
253 (auto_language_data): Likewise.
254 * language.h (language_data): Delete la_struct_too_deep_ellipsis
255 member variable.
256 (language_defn::struct_too_deep_ellipsis): New member function.
257 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
258 initializer.Q
259 * objc-lang.c (objc_language_data): Likewise.
260 * opencl-lang.c (opencl_language_data): Likewise.
261 * p-lang.c (pascal_language_data): Likewise.
262 * rust-lang.c (rust_language_data): Likewise.
263 * valprint.c (val_print_check_max_depth): Update call to
264 struct_too_deep_ellipsis.
265
266 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
267
268 * MAINTAINERS (Write After Approval): Add myself.
269
270 2020-09-15 Tom Tromey <tom@tromey.com>
271
272 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
273 Remove.
274
275 2020-09-15 Tom Tromey <tom@tromey.com>
276
277 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
278 and TYPE_CODE_METHODPTR cases.
279 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
280 (c_value_print_inner): Update.
281 * valprint.c (generic_value_print_memberptr): New function, from
282 c_value_print_memberptr.
283 (generic_value_print): Use it. Call cplus_print_method_ptr.
284
285 2020-09-15 Tom Tromey <tromey@adacore.com>
286
287 * python/python-internal.h (PyInt_FromLong): Remove define.
288 * python/py-value.c (convert_value_from_python): Use
289 gdb_py_object_from_longest.
290 * python/py-type.c (typy_get_code): Use
291 gdb_py_object_from_longest.
292 * python/py-symtab.c (salpy_get_line): Use
293 gdb_py_object_from_longest.
294 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
295 gdb_py_object_from_longest.
296 * python/py-record.c (recpy_gap_reason_code): Use
297 gdb_py_object_from_longest.
298 * python/py-record-btrace.c (recpy_bt_insn_size)
299 (recpy_bt_func_level, btpy_list_count): Use
300 gdb_py_object_from_longest.
301 * python/py-infthread.c (gdbpy_create_ptid_object): Use
302 gdb_py_object_from_longest. Fix error handling.
303 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
304 gdb_py_object_from_longest.
305 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
306 gdb_py_object_from_longest.
307 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
308 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
309 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
310
311 2020-09-15 Tom Tromey <tromey@adacore.com>
312
313 * python/python.c (gdbpy_parameter_value): Use
314 gdb_py_object_from_ulongest.
315
316 2020-09-15 Tom Tromey <tromey@adacore.com>
317
318 * python/py-infevents.c (create_register_changed_event_object):
319 Use gdb_py_object_from_longest.
320 * python/py-exitedevent.c (create_exited_event_object): Use
321 gdb_py_object_from_longest.
322
323 2020-09-15 Tom Tromey <tromey@adacore.com>
324
325 * python/python.c (gdbpy_parameter_value): Use
326 gdb_py_object_from_longest.
327 * python/py-type.c (convert_field, typy_range): Use
328 gdb_py_object_from_longest.
329 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
330 gdb_py_object_from_longest.
331 * python/py-lazy-string.c (stpy_get_length): Use
332 gdb_py_object_from_longest.
333 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
334 gdb_py_object_from_longest.
335 * python/py-infevents.c (create_memory_changed_event_object): Use
336 gdb_py_object_from_longest.
337 * python/py-inferior.c (infpy_get_num): Use
338 gdb_py_object_from_longest.
339 (infpy_get_pid): Likewise.
340
341 2020-09-15 Tom Tromey <tromey@adacore.com>
342
343 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
344 defines.
345 * python/py-value.c (valpy_long): Use
346 gdb_py_object_from_ulongest.
347 * python/py-symtab.c (salpy_get_pc): Use
348 gdb_py_object_from_ulongest.
349 (salpy_get_last): Likewise.
350 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
351 gdb_py_object_from_ulongest.
352 * python/py-lazy-string.c (stpy_get_address): Use
353 gdb_py_object_from_ulongest.
354 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
355 * python/py-arch.c (archpy_disassemble): Use
356 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
357 error handling.
358
359 2020-09-15 Tom Tromey <tromey@adacore.com>
360
361 * python/python-internal.h (gdb_py_long_from_longest): Remove
362 defines.
363 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
364 * python/py-type.c (convert_field, typy_get_sizeof): Use
365 gdb_py_object_from_longest.
366 * python/py-record-btrace.c (btpy_list_index): Use
367 gdb_py_object_from_longest.
368
369 2020-09-15 Tom Tromey <tromey@adacore.com>
370
371 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
372 * python/py-record.c (recpy_element_number): Use
373 gdb_py_object_from_longest.
374 (recpy_gap_number): Likewise.
375
376 2020-09-15 Tom Tromey <tromey@adacore.com>
377
378 * top.c (ui::ui): Update.
379 (highest_ui_num): Remove.
380 * top.h (struct ui) <num>: Remove.
381
382 2020-09-15 Tom Tromey <tromey@adacore.com>
383
384 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
385 * ui-style.c (ansi_regex_text): Now array.
386 * rust-exp.y (number_regex_text): Now array.
387 * linespec.c (linespec_quote_characters): Now array.
388 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
389 Now arrays.
390
391 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * debuginfod-support.c (debuginfod_client_deleter): New.
394 (debuginfod_client_up): New.
395 (debuginfod_init): Return debuginfod_client_up.
396 (debuginfod_source_query): Adjust.
397 (debuginfod_debuginfo_query): Adjust.
398
399 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
400
401 * debuginfod-support.c (debuginfod_source_query): Use
402 make_unique_xstrdup.
403
404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
407 with `type::instance_flags`.
408
409 2020-09-14 Michael Mullin <masmullin@gmail.com>
410
411 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
412 Remove baton parameter.
413
414 2020-09-14 Pedro Alves <pedro@palves.net>
415
416 * Makefile.in (SELFTESTS_SRCS): Add
417 unittests/enum-flags-selftests.c.
418 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
419 btrace_function_flags instead of enum btrace_function_flag.
420 * compile/compile-c-types.c (convert_qualified): Use
421 enum_flags::raw.
422 * compile/compile-cplus-symbols.c (convert_one_symbol)
423 (convert_symbol_bmsym):
424 * compile/compile-cplus-types.c (compile_cplus_convert_method)
425 (compile_cplus_convert_struct_or_union_methods)
426 (compile_cplus_instance::convert_qualified_base):
427 * go-exp.y (parse_string_or_char): Add cast to int.
428 * unittests/enum-flags-selftests.c: New file.
429 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
430 type to btrace_thread_flags from btrace_thread_flag.
431 (record_btrace_cancel_resume, record_btrace_step_thread): Change
432 local's type to btrace_thread_flags from btrace_thread_flag. Add
433 cast in DEBUG call.
434
435 2020-09-14 Pedro Alves <pedro@palves.net>
436
437 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
438 * gdbtypes.c (address_space_name_to_int): Rename to ...
439 (address_space_name_to_type_instance_flags): ... this.
440 (address_space_int_to_name): Rename to ...
441 (address_space_type_instance_flags_to_name): ... this.
442 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
447 * type-stack.h (type_stack::insert): Likewise.
448
449 2020-09-14 Pedro Alves <pedro@palves.net>
450 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * avr-tdep.c (avr_address_class_type_flags): Return
453 type_instance_flags.
454 (avr_address_class_type_flags_to_name): Take a
455 type_instance_flags.
456 (avr_address_class_name_to_type_flags): Return bool and take a
457 type_instance_flags.
458 * d-lang.c (build_d_types): Use type::set_instance_flags.
459 * ft32-tdep.c (ft32_address_class_type_flags): Return
460 type_instance_flags.
461 (ft32_address_class_type_flags_to_name): Take a
462 type_instance_flags.
463 (ft32_address_class_name_to_type_flags): Return bool and take a
464 type_instance_flags.
465 (ft32_gdbarch_init): Use type::set_instance_flags.
466 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
467 * gdbarch.h, gdbarch.c: Regenerate.
468 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
469 (address_class_name_to_type_flags): Use type_instance_flags and
470 bool.
471 * gdbtypes.c (address_space_name_to_int)
472 (address_space_int_to_name, make_qualified_type): Use
473 type_instance_flags.
474 (make_qualified_type): Use type_instance_flags and
475 type::set_instance_flags.
476 (make_type_with_address_space, make_cv_type, make_vector_type)
477 (check_typedef): Use type_instance_flags.
478 (recursive_dump_type): Cast type_instance_flags to unsigned for
479 printing.
480 (copy_type_recursive): Use type::set_instance_flags.
481 (gdbtypes_post_init): Use type::set_instance_flags.
482 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
483 <m_instance_flags>: ... this.
484 <instance_flags, set_instance_flags>: New methods.
485 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
486 (SET_TYPE_INSTANCE_FLAGS): New.
487 (address_space_name_to_int, address_space_int_to_name)
488 (make_type_with_address_space): Pass flags using
489 type_instance_flags instead of int.
490 * stabsread.c (cleanup_undefined_types_noname): Use
491 type::set_instance_flags.
492 * s390-tdep.c (s390_address_class_type_flags): Return
493 type_instance_flags.
494 (s390_address_class_type_flags_to_name): Take a
495 type_instance_flags.
496 (s390_address_class_name_to_type_flags): Return bool and take a
497 type_instance_flags.
498 * type-stack.c (type_stack::follow_types): Use
499 type_instance_flags.
500 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
501
502 2020-09-14 Tom Tromey <tromey@adacore.com>
503
504 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
505 * x86-tdep.c (x86_is_thunk_register_name)
506 (x86_in_indirect_branch_thunk): Update.
507 * sparc64-tdep.c (sparc64_fpu_register_names)
508 (sparc64_cp0_register_names, sparc64_register_names)
509 (sparc64_pseudo_register_names): Now const.
510 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
511 cp0_registers_num>: Now const.
512 * sparc-tdep.c (sparc_core_register_names)
513 (sparc32_fpu_register_names, sparc32_cp0_register_names)
514 (sparc32_pseudo_register_names): Now const.
515 (validate_tdesc_registers): Update.
516 * rust-lang.c (rust_extensions): Now const.
517 * p-lang.c (p_extensions): Now const.
518 * objc-lang.c (objc_extensions): Now const.
519 * nto-tdep.c (nto_thread_state_str): Now const.
520 * moxie-tdep.c (moxie_register_names): Now const.
521 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
522 Now const.
523 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
524 (mips_linux_reg_names): Now const.
525 (mips_gdbarch_init): Update.
526 * microblaze-tdep.c (microblaze_register_names): Now const.
527 * m68k-tdep.c (m68k_register_names): Now const.
528 * m32r-tdep.c (m32r_register_names): Now const.
529 * ia64-tdep.c (ia64_register_names): Now const.
530 * i386-tdep.h (struct gdbarch_tdep) <register_names,
531 ymmh_register_names, ymm16h_regnum, mpx_register_names,
532 k_register_names, zmmh_register_names, xmm_avx512_register_names,
533 ymm_avx512_register_names, pkeys_register_names>: Now const.
534 * i386-tdep.c (i386_register_names, i386_zmm_names)
535 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
536 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
537 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
538 * f-lang.c (f_extensions): Now const.
539 * d-lang.c (d_extensions): Now const.
540 * csky-tdep.c (csky_register_names): Now const.
541 * charset.c (default_charset_names, charset_enum): Now const.
542 (_initialize_charset): Update.
543 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
544 const.
545 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
546 (bsd_uthread_solib_loaded): Update.
547 (bsd_uthread_state): Now const.
548 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
549 (amd64_ymm_avx512_names, amd64_ymmh_names)
550 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
551 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
552 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
553 (amd64_dword_names): Now const.
554 * agent.c (can_use_agent_enum): Now const.
555 * ada-tasks.c (task_states, long_task_states): Now const.
556 * ada-lang.c (known_runtime_file_name_patterns)
557 (known_auxiliary_function_name_patterns, attribute_names)
558 (standard_exc, ada_extensions): Now const.
559
560 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * bcache.h (struct bcache) <bcache>: Remove constructor.
563 <m_hash_function, m_compare_function>: Remove.
564 <~bcache>: Make virtual.
565 <compare>: Remove static method, introduce virtual method.
566 <default_hash>: Remove.
567 <hash>: New virtual method.
568 * bcache.c (bcache::expand_hash_table): Update.
569 (bcache::insert): Update.
570 (bcache::hash): New.
571 (bcache::compare): Update comment and parameter names.
572 * gdbtypes.c (types_deeply_equal): Update.
573 * psymtab.h (struct psymbol_bcache): New struct.
574 (class psymtab_storage) <psymtab_storage>: Make default.
575 <psymbol_cache>: Change type to psymbol_bcache.
576 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
577 (psymbol_hash): Change to...
578 (psymbol_bcache::hash): ... this.
579 (psymbol_compare): Change to...
580 (psymbol_bcache::compare): ... this.
581
582 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
585 checking for initial lwp.
586
587 2020-09-14 Tom Tromey <tromey@adacore.com>
588
589 * m68k-tdep.c (m68k_extract_return_value): Use
590 pointer_result_regnum.
591 (m68k_store_return_value): Likewise.
592 (m68k_reg_struct_return_p): Handle vectors and arrays.
593 (m68k_return_value): Handle arrays.
594 (m68k_svr4_return_value): Fix single-element aggregate handling.
595 Handle long double. Adjust for embedded ABI.
596 (m68k_svr4_init_abi): Set pointer_result_regnum.
597 (m68k_embedded_init_abi): New function.
598 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
599 (m68k_osabi_sniffer): New function.
600 (_initialize_m68k_tdep): Register osabi sniffer.
601 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
602 member.
603
604 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * xml-support.c (xml_fetch_content_from_file): Replace xfree
607 with gdb::unique_xmalloc_ptr<char>.
608
609 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * xml-support.h (xml_fetch_another): Change type to be a
612 function_view.
613 (xml_process_xincludes): Remove baton parameter.
614 (xml_fetch_content_from_file): Change baton parameter to
615 dirname.
616 * xml-support.c (struct xinclude_parsing_data)
617 <xinclude_parsing_data>: Remove baton parameter.
618 <fetcher_baton>: Remove.
619 (xinclude_start_include): Adjust.
620 (xml_process_xincludes): Adjust.
621 (xml_fetch_content_from_file): Replace baton parameter with
622 dirname.
623 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
624 (xml_init_syscalls_info): Use a lambda.
625 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
626 (file_read_description_xml): Use a lambda.
627 (fetch_available_features_from_target): Change baton parameter
628 to target_ops.
629 (target_read_description_xml): Use a lambda.
630 (target_fetch_description_xml): Use a lambda.
631 (string_read_description_xml): Update.
632
633 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
636 uses with type::endianity_is_not_default.
637
638 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
639
640 * gdbtypes.h (struct type) <endianity_is_not_default,
641 set_endianity_is_not_default>: New methods.
642 (TYPE_ENDIANITY_NOT_DEFAULT): Use
643 type::endianity_is_not_default, change all write call sites to
644 use type::set_endianity_is_not_default.
645
646 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
647
648 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
649 uses with type::is_fixed_instance.
650
651 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
652
653 * gdbtypes.h (struct type) <is_fixed_instance,
654 set_is_fixed_instance>: New methods.
655 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
656 write call sites to use type::set_is_fixed_instance.
657
658 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
659
660 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
661 uses with type::is_gnu_ifunc.
662
663 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
664
665 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
666 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
667 use type::set_is_gnu_ifunc.
668
669 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
670
671 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
672 uses with type::stub_is_supported.
673
674 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
675
676 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
677 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
678 use type::set_stub_is_supported.
679
680 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
681
682 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
683 uses with type::is_vector.
684
685 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
686
687 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
688 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
689 use type::set_is_vector.
690
691 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
692
693 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
694 uses with type::has_varargs.
695
696 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
697
698 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
699 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
700 use type::set_has_varargs.
701
702 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
703
704 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
705 uses with type::is_prototyped.
706
707 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
708
709 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
710 New methods.
711 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
712 call sites to use type::set_is_prototyped.
713
714 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
715
716 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
717 uses with type::target_is_stub.
718
719 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
720
721 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
722 New methods.
723 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
724 sites to use type::set_target_is_stub.
725
726 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
727
728 * gdbtypes.h (TYPE_STUB): Remove, replace all
729 uses with type::is_stub.
730
731 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
732
733 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
734 (TYPE_STUB): Use type::is_stub, change all write call sites to
735 use type::set_is_stub.
736
737 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
738
739 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
740 type::has_no_signedness.
741
742 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
743
744 * gdbtypes.h (struct type) <has_no_signedness,
745 set_has_no_signedness>: New methods.
746 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
747 call sites to use type::set_has_no_signedness.
748
749 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
750
751 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
752 type::is_unsigned.
753
754 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
755
756 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
757 methods.
758 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
759 sites to use type::set_is_unsigned.
760
761 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
762 Adam Renquinha <arenquinha@cimeq.qc.ca>
763
764 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
765 pointer and stack frame offset when unwinding.
766
767 2020-09-13 Pedro Alves <pedro@palves.net>
768
769 * NEWS: Document "-break-insert --qualified".
770 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
771
772 2020-09-13 Pedro Alves <pedro@palves.net>
773
774 * linespec.c (classify_mtype, compare_msyms): Delete.
775 (search_minsyms_for_name): Remove classification logic. Instead
776 filter out trampoline symbols if we also found an external
777 function of the same name.
778
779 2020-09-13 Joel Brobecker <brobecker@adacore.com>
780
781 * NEWS: Create a new section for the next release branch.
782 Rename the section of the current branch, now that it has
783 been cut.
784
785 2020-09-13 Joel Brobecker <brobecker@adacore.com>
786
787 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
788 * version.in: Bump version to 11.0.50.DATE-git.
789
790 2020-09-12 Joel Brobecker <brobecker@adacore.com>
791
792 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
793
794 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
795 Felix Willgerodt <Felix.Willgerodt@intel.com>
796
797 * gdbarch.sh: Added bfloat16 type.
798 * gdbarch.c: Regenerated.
799 * gdbarch.h: Regenerated.
800 * gdbtypes.c (floatformats_bfloat16): New struct.
801 (gdbtypes_post_init): Add builtin_bfloat16.
802 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
803 (floatformats_bfloat16): New struct.
804 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
805 (i386_ymm_type): Add field "v16_bfloat16"
806 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
807 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
808 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
809 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
810 * features/i386/64bit-avx512.xml: Add bfloat16 type.
811 * features/i386/64bit-avx512.c: Regenerated.
812 * features/i386/64bit-sse.xml: Add bfloat16 type.
813 * features/i386/64bit-sse.c: Regenerated.
814
815 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
816
817 * i386-tdep.c (i386_zmm_type): Fix field names.
818 (i386_ymm_type): Fix field names.
819
820 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
821
822 * breakpoint.c: Fix typo in the help message of the
823 "set breakpoint condition-evaluation" command.
824
825 2020-09-10 Kamil Rytarowski <n54@gmx.com>
826
827 * nbsd-nat.c: Include "nat/netbsd-nat.h".
828 * (nbsd_nat_target::pid_to_exec_file)
829 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
830 (nbsd_nat_target::post_startup_inferior)
831 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
832 (nbsd_add_threads): Switch local code to common gdb/nat functions.
833 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
834 * (nbsd_thread_lister): Remove.
835
836 2020-09-10 Kamil Rytarowski <n54@gmx.com>
837
838 * fork-inferior.c (startup_inferior): Avoid double free.
839
840 2020-09-10 Kamil Rytarowski <n54@gmx.com>
841
842 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
843 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
844
845 2020-09-10 Kamil Rytarowski <n54@gmx.com>
846
847 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
848 * netbsd-nat.c: Include <sys/ptrace.h>.
849 * (netbsd_nat::enable_proc_events): Add.
850
851 2020-09-10 Kamil Rytarowski <n54@gmx.com>
852
853 * netbsd-nat.h: Include "gdbsupport/function-view.h".
854 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
855 (netbsd_nat::for_each_thread): Add.
856 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
857 "gdbsupport/common-debug.h".
858 * (netbsd_nat::netbsd_thread_lister)
859 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
860 (netbsd_nat::for_each_thread): Add.
861
862 2020-09-10 Kamil Rytarowski <n54@gmx.com>
863
864 * netbsd-nat.h: Include <unistd.h>.
865 * (netbsd_nat::pid_to_exec_file): Add.
866 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
867 * (netbsd_nat::pid_to_exec_file) Add.
868
869 2020-09-10 Kamil Rytarowski <n54@gmx.com>
870
871 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
872
873 2020-09-10 Kamil Rytarowski <n54@gmx.com>
874
875 * netbsd-nat.h: New file.
876 * netbsd-nat.c: Likewise.
877
878 2020-09-09 Tom Tromey <tromey@adacore.com>
879
880 * ada-lang.c (remove_extra_symbols): Do not increment when
881 removing an element
882
883 2020-09-08 Tom Tromey <tromey@adacore.com>
884
885 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
886
887 2020-09-08 Tom Tromey <tromey@adacore.com>
888
889 PR win32/25302:
890 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
891 (gdb_bfd_init_data): New function.
892 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
893
894 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895
896 * infrun.c (fetch_inferior_event): Use
897 `switch_to_target_no_thread` to switch the target.
898
899 2020-09-06 Tom Tromey <tom@tromey.com>
900
901 * symfile.h (dwarf2_free_objfile): Don't declare.
902
903 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
904
905 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
906 to match 16 byte real/complex type generated by Flang compiler.
907
908 2020-09-03 Tom de Vries <tdevries@suse.de>
909
910 PR breakpoint/26546
911 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
912 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
913
914 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * maint.c (index_digits): New function.
917 (struct maint_print_section_data): Remove.
918 (print_bfd_section_info): Remove print_data parameter, add arg
919 and index_digits.
920 (print_objfile_section_info): Likewise.
921 (print_bfd_section_info_maybe_relocated): Likewise (plus
922 objfile).
923 (maintenance_info_sections): Adjust calls.
924
925 2020-09-02 Tom Tromey <tromey@adacore.com>
926
927 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
928 for null pointers.
929 (ada_varobj_adjust_for_child_access): Special-case null pointers.
930
931 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
932
933 * bcache.h (struct bcache) <insert>: Change type of `added` to
934 pointer to bool.
935 * bcache.c (bcache::insert): Likewise.
936 * gdbtypes.c (check_types_worklist): Adjust.
937 * psymtab.c (add_psymbol_to_bcache): Adjust.
938
939 2020-08-31 Kevin Buettner <kevinb@redhat.com>
940
941 * corelow.c (unordered_set): Include.
942 (class core_target): Add field 'm_core_unavailable_mappings'.
943 (core_target::build_file_mappings): Print only one warning
944 per inaccessible file. Add unavailable/broken mappings
945 to m_core_unavailable_mappings.
946 (core_target::xfer_partial): Call...
947 (core_target::xfer_memory_via_mappings): New method.
948
949 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
952 type to bool.
953
954 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * dwarf2/read.c (struct field_info): Fix indentation.
957
958 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
959
960 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
961 ordering in comment.
962 * frame.c (frame_id_eq): Fix indentation.
963
964 2020-08-31 Scott Linder <scott@scottlinder.com>
965 Simon Marchi <simon.marchi@efficios.com>
966
967 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
968 inline frame ids in outer frame.
969
970 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
971
972 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
973 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
974 (outer_frame_id): Use FID_STACK_OUTER instead of
975 FID_STACK_INVALID.
976 (frame_id_p): Don't check for outer_frame_id.
977
978 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
979
980 * frame-unwind.c (frame_unwind_got_optimized): Don't set
981 regnum/frame in value. Call allocate_value_lazy.
982 * frame.c (frame_unwind_register_value): Use
983 val_print_not_saved.
984
985 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
986
987 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
988
989 2020-08-29 Pedro Alves <pedro@palves.net>
990
991 * progspace.c (print_program_space): Use all_inferiors. Switch to
992 the inferior before calling target_pid_to_str.
993
994 2020-08-28 Tom Tromey <tom@tromey.com>
995
996 * xcoffread.c (xcoff_end_psymtab): Update comment.
997 * dbxread.c (dbx_end_psymtab): Update comment.
998
999 2020-08-28 Tom de Vries <tdevries@suse.de>
1000
1001 PR breakpoint/26544
1002 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1003 event_location.
1004 (create_breakpoint): Same.
1005 (base_breakpoint_decode_location): Same.
1006 (bkpt_create_sals_from_location): Same.
1007 (bkpt_decode_location): Same.
1008 (bkpt_probe_create_sals_from_location): Same.
1009 (bkpt_probe_decode_location): Same.
1010 (tracepoint_create_sals_from_location): Same.
1011 (tracepoint_decode_location): Same.
1012 (tracepoint_probe_decode_location): Same.
1013 (strace_marker_create_sals_from_location): Same.
1014 (strace_marker_decode_location): Same.
1015 (create_sals_from_location_default): Same.
1016 (decode_location_default): Same.
1017 * breakpoint.h (struct breakpoint_ops): Same.
1018 (create_breakpoint): Same.
1019 * linespec.h (decode_line_full): Same.
1020 * linespec.c (decode_line_full): Same. Throw error if
1021 result.size () == 0.
1022
1023 2020-08-27 Pedro Alves <pedro@palves.net>
1024
1025 PR gdb/26524
1026 * breakpoint.c (until_break_fsm) <location_breakpoint,
1027 caller_breakpoint>: Delete fields.
1028 <breakpoints>: New field.
1029 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1030 two individual breakpoints.
1031 (until_break_fsm::should_stop): Loop over breakpoints in the
1032 breakpoint vector.
1033 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1034 vector.
1035 (until_break_command): Handle location expanding into multiple
1036 sals.
1037
1038 2020-08-27 Pedro Alves <pedro@palves.net>
1039
1040 PR gdb/26523
1041 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1042 bp_until breakpoints user-specified locations. Update intro
1043 comment.
1044
1045 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1048 gdb_bfd_sections): New.
1049 * maint.c (print_bfd_section_info): Change param type to
1050 maint_print_section_data.
1051 (print_objfile_section_info): Likewise.
1052 (print_bfd_section_info_maybe_relocated): Likewise.
1053 (maintenance_info_sections): Use gdb_bfd_sections.
1054
1055 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1056
1057 * MAINTAINERS: Add ARC target and maintainer.
1058
1059 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1060
1061 * configure.tgt: ARC support for GNU/Linux.
1062 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1063 * arc-linux-tdep.c: New file.
1064 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1065 * arc-tdep.c (arc_write_pc): Use it.
1066
1067 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1068
1069 * arc-tdep.c (arc_check_for_hardware_loop): New.
1070 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1071
1072 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1073
1074 * arc-tdep.h: Include "gdbarch.h".
1075
1076 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1077
1078 * arch/arc.h
1079 (arc_gdbarch_features): New class to stir the selection of target XML.
1080 (arc_create_target_description): Use FEATURES to choose XML target.
1081 (arc_lookup_target_description): Use arc_create_target_description
1082 to create _new_ target descriptions or return the already created
1083 ones if the FEATURES is the same.
1084 * arch/arc.c: Implementation of prototypes described above.
1085 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1086 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1087 * arc-tdep.c (*_feature_name): Make feature names consistent.
1088 (arc_register_feature): A new struct to hold information about
1089 registers of a particular target/feature.
1090 (arc_check_tdesc_feature): Check if XML provides registers in
1091 compliance with ARC_REGISTER_FEATURE structs.
1092 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1093 (determine_*_reg_feature_set): Which feature name to look for.
1094 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1095 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1096 to expected ISA enums to be used in arc_gdbarch_features structs.
1097 * features/Makefile (FEATURE_XMLFILES): Add new files.
1098 * gdb/features/arc/v1-aux.c: New file.
1099 * gdb/features/arc/v1-aux.xml: Likewise.
1100 * gdb/features/arc/v1-core.c: Likewise.
1101 * gdb/features/arc/v1-core.xml: Likewise.
1102 * gdb/features/arc/v2-aux.c: Likewise.
1103 * gdb/features/arc/v2-aux.xml: Likewise.
1104 * gdb/features/arc/v2-core.c: Likewise.
1105 * gdb/features/arc/v2-core.xml: Likewise.
1106 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1107
1108 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1109 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 PR m2/26372
1112 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1113 an assert. Remove single element array indexing pattern as the
1114 MULTI_SUBSCRIPT support will handle this case too.
1115
1116 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * value.h (valprint_check_validity): Move declaration from
1119 here...
1120 * valprint.h (valprint_check_validity): ... to here.
1121
1122 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1123
1124 * debug.h: New file.
1125 * debug.c (debug_prefixed_vprintf): New function.
1126 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1127 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1128
1129 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * infrun.h (infrun_debug_printf_1): New function declaration.
1132 (infrun_debug_printf): New macro.
1133 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1134 throughout.
1135 (infrun_debug_printf): New function.
1136 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1137 (handle_jit_event): Likewise.
1138
1139 2020-08-21 Mark Wielaard <mark@klomp.org>
1140
1141 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1142
1143 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * frame.c (enum class frame_id_status): New.
1146 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1147 (fprintf_frame): Update.
1148 (compute_frame_id): Set frame id status to "computing" on entry.
1149 Set it back to "not_computed" on failure and to "computed" on
1150 success.
1151 (get_frame_id): Assert the frame id is not being computed.
1152 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1153 (create_new_frame): Likewise.
1154 (frame_cleanup_after_sniffer): Update assert.
1155
1156 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1157
1158 * regcache.c (pid_ptid_regcache_map): New type.
1159 (target_ptid_regcache_map): Remove.
1160 (target_pid_ptid_regcache_map): New type.
1161 (regcaches): Change type to target_pid_ptid_regcache_map.
1162 (get_thread_arch_aspace_regcache): Update.
1163 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1164 case.
1165 (regcaches_size): Update.
1166 (regcache_count): Update.
1167 (registers_changed_ptid_target_pid_test): New.
1168 (_initialize_regcache): Register new test.
1169
1170 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * regcache.c (regcache_count): New.
1173 (struct regcache_test_data): New.
1174 (regcache_test_data_up): New.
1175 (populate_regcaches_for_test): New.
1176 (regcaches_test): Remove.
1177 (get_thread_arch_aspace_regcache_test): New.
1178 (registers_changed_ptid_all_test): New.
1179 (registers_changed_ptid_target_test): New.
1180 (registers_changed_ptid_target_ptid_test): New.
1181 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1182 (_initialize_regcache): Register new tests.
1183
1184 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1185
1186 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1187 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1188 gdbarch and aspace parameter. Use current inferior's aspace.
1189 Validate regcache's arch value.
1190 (regcaches_test): Update.
1191
1192 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1193
1194 * regcache.c (regcaches_test): Call registers_changed.
1195
1196 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1197
1198 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1199
1200 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1201
1202 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1203 to find the end of prologue for flang compiled binaries.
1204 * arm-tdep.c (arm_skip_prologue): Likewise.
1205 * i386-tdep.c (i386_skip_prologue): Likewise.
1206 * producer.c (producer_is_llvm): New function.
1207 (producer_parsing_tests): Added new tests for clang/flang.
1208 * producer.h (producer_is_llvm): New declaration.
1209
1210 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1211
1212 * linux-nat.c (linux_nat_debug_printf): New function.
1213 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1214
1215 2020-08-18 Aaron Merey <amerey@redhat.com>
1216
1217 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1218 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1219 (CLIBS): Add DEBUGINFOD_LIBS.
1220
1221 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1222
1223 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1224 'gdbarch_num_regs'.
1225
1226 2020-08-17 Tom Tromey <tromey@adacore.com>
1227
1228 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1229 ada_get_decoded_value returns NULL.
1230
1231 2020-08-17 Tom Tromey <tromey@adacore.com>
1232
1233 * python/py-inferior.c (infpy_search_memory): Use
1234 gdb_py_object_from_ulongest.
1235 * python/py-infevents.c (create_inferior_call_event_object)
1236 (create_memory_changed_event_object): Use
1237 gdb_py_object_from_ulongest.
1238 * python/py-linetable.c (ltpy_entry_get_pc): Use
1239 gdb_py_object_from_ulongest.
1240
1241 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1242
1243 * loc.c (class symbol_needs_eval_context): Fix indentation.
1244
1245 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1248 bool.
1249
1250 2020-08-17 Tom de Vries <tdevries@suse.de>
1251
1252 PR gdb/26393
1253 * gdbtypes.c (dump_dynamic_prop): New function.
1254 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1255
1256 2020-08-15 Tom de Vries <tdevries@suse.de>
1257
1258 PR backtrace/26390
1259 * stack.c (print_frame_args): Temporarily set the selected
1260 frame to FRAME while printing the frame's arguments.
1261
1262 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1263
1264 PR breakpoints/26385
1265 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1266 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1267
1268 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1269
1270 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1271 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1272 and >= to check return value instead of == -1 and != -1.
1273
1274 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1275
1276 * utils.h (class gdb_argv) <as_array_view>: New method.
1277 * utils.c (gdb_argv_as_array_view_test): New.
1278 (_initialize_utils): Register selftest.
1279 * maint.c (maintenance_selftest): Use the new method.
1280
1281 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1282
1283 * target.h (supports_dumpcore, dumpcore): New
1284 function declarations.
1285 * target.c (supports_dumpcore, dumpcore): New
1286 functions.
1287 * target-delegates.c: Rebuild.
1288 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1289 and target_dumpcore ().
1290
1291 2020-08-13 Aaron Merey <amerey@redhat.com>
1292
1293 * debuginfod-support.c: Replace global variables with user_data.
1294
1295 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * maint.c (maintenance_selftest): Split args and pass array_view
1298 to run_tests.
1299
1300 2020-08-12 Luis Machado <luis.machado@linaro.org>
1301
1302 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1303 type's length.
1304 Use %s and pulongest to print the length.
1305
1306 2020-08-12 Pedro Alves <palves@redhat.com>
1307
1308 * NEWS: Move "Multi-target debugging support" item to the
1309 "Changes since GDB 9" section.
1310
1311 2020-08-12 Pedro Alves <palves@redhat.com>
1312
1313 PR gdb/26336
1314 * progspace.c (program_space::remove_objfile): Invalidate the
1315 frame cache.
1316
1317 2020-08-11 Tom de Vries <tdevries@suse.de>
1318
1319 * MAINTAINERS: Mark ms1 as deleted.
1320
1321 2020-08-10 Luis Machado <luis.machado@linaro.org>
1322
1323 PR gdb/26310
1324
1325 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1326 act accordingly.
1327 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1328 movz/str/stur/stp skipping behavior.
1329
1330 2020-08-10 Luis Machado <luis.machado@linaro.org>
1331
1332 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1333 struct user_sve_header instead of struct sve_context.
1334
1335 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1336
1337 * read.h (dwarf2_fetch_die_loc_sect_off,
1338 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1339 `void *` parameter with function_view.
1340 * read.c (dwarf2_fetch_die_loc_sect_off,
1341 dwarf2_fetch_die_loc_cu_off): Likewise.
1342 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1343 (per_cu_dwarf_call): Adjust.
1344 (get_frame_address_in_block_wrapper): Remove.
1345 (indirect_synthetic_pointer): Adjust.
1346 (get_ax_pc): Remove.
1347 (dwarf2_compile_expr_to_ax): Adjust.
1348
1349 2020-08-08 Tom de Vries <tdevries@suse.de>
1350
1351 PR build/26344
1352 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1353 constructor.
1354 * regcache.c (get_thread_arch_aspace_regcache): Same.
1355
1356 2020-08-07 Tom Tromey <tromey@adacore.com>
1357
1358 * ravenscar-thread.c
1359 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1360 New method.
1361 (ravenscar_thread_target::wait): Check
1362 runtime_initialized.
1363 (ravenscar_thread_target::prepare_to_store)
1364 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1365 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1366 (ravenscar_thread_target::stopped_by_watchpoint)
1367 (ravenscar_thread_target::stopped_data_address)
1368 (ravenscar_thread_target::core_of_thread): Use
1369 scoped_restore_current_thread and
1370 set_base_thread_from_ravenscar_task.
1371
1372 2020-08-07 Tom Tromey <tromey@adacore.com>
1373
1374 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1375
1376 2020-08-07 Tom Tromey <tromey@adacore.com>
1377
1378 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1379 update_inferior_ptid before update_thread_list.
1380 (temporarily_change_regcache_ptid): New class.
1381 (ravenscar_thread_target::fetch_registers)
1382 (ravenscar_thread_target::store_registers)
1383 (ravenscar_thread_target::prepare_to_store): Use base thread when
1384 forwarding operation.
1385
1386 2020-08-07 Tom Tromey <tromey@adacore.com>
1387
1388 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1389 "is_pid" case.
1390
1391 2020-08-07 Tom Tromey <tromey@adacore.com>
1392
1393 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1394 New methods.
1395 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1396 first.
1397 (ravenscar_thread_target::add_thread): Rename from
1398 ravenscar_add_thread.
1399 (ravenscar_thread_target::update_thread_list): Use a lambda.
1400 (ravenscar_thread_target::xfer_partial): New method.
1401
1402 2020-08-07 Tom Tromey <tromey@adacore.com>
1403
1404 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1405 gdb::function_view.
1406 (iterate_over_live_ada_tasks): Change type of argument.
1407 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1408 of argument.
1409
1410 2020-08-07 Tom Tromey <tromey@adacore.com>
1411
1412 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1413 Remove.
1414 (ravenscar_thread_target::extra_thread_info): Remove.
1415 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1416 defer to target beneath for non-Ravenscar threads.
1417
1418 2020-08-07 Tom Tromey <tromey@adacore.com>
1419
1420 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1421 get_base_thread_from_ravenscar_task>: Now methods.
1422 <m_cpu_map>: New member.
1423 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1424 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1425 (ravenscar_thread_target::task_is_currently_active): Update.
1426 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1427 Now a method.
1428 (ravenscar_thread_target::add_active_thread): Put initial thread
1429 into the m_cpu_map.
1430
1431 2020-08-07 Tom Tromey <tromey@adacore.com>
1432
1433 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1434 event_ptid.
1435
1436 2020-08-07 Tom Tromey <tromey@adacore.com>
1437
1438 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1439 runtime_initialized.
1440
1441 2020-08-07 Tom Tromey <tromey@adacore.com>
1442
1443 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1444 add_active_thread.
1445 (ravenscar_thread_target::add_active_thread): Now public.
1446 (ravenscar_inferior_created): Call add_active_thread after pushing
1447 the target.
1448
1449 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1450
1451 * regcache.c (ptid_regcache_map): New type.
1452 (target_ptid_regcache_map): New type.
1453 (regcaches): Change type to target_ptid_regcache_map.
1454 (get_thread_arch_aspace_regcache): Update to regcaches' new
1455 type.
1456 (regcache_thread_ptid_changed): Likewise.
1457 (registers_changed_ptid): Likewise.
1458 (regcaches_size): Likewise.
1459 (regcaches_test): Update.
1460 (regcache_thread_ptid_changed): Update.
1461 * regcache.h (regcache_up): New type.
1462 * gdbsupport/ptid.h (hash_ptid): New struct.
1463
1464 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1465
1466 * observable.h (thread_ptid_changed): Add parameter
1467 `process_stratum_target *`.
1468 * infrun.c (infrun_thread_ptid_changed): Add parameter
1469 `process_stratum_target *` and use it.
1470 (selftests): New namespace.
1471 (infrun_thread_ptid_changed): New function.
1472 (_initialize_infrun): Register selftest.
1473 * regcache.c (regcache_thread_ptid_changed): Add parameter
1474 `process_stratum_target *` and use it.
1475 (regcache_thread_ptid_changed): New function.
1476 (_initialize_regcache): Register selftest.
1477 * thread.c (thread_change_ptid): Pass target to
1478 thread_ptid_changed observable.
1479
1480 2020-08-06 Caroline Tice <cmtice@google.com>
1481
1482 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1483 (struct dwp_sections): Update field comments. Add loclists and
1484 rnglists fields.
1485 (struct virtual_v2_dwo_sections): Rename struct to
1486 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1487 size & offset fields for loclists and rnglists.
1488 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1489 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1490 skipping dummy type units.
1491 (create_dwp_hash_table): Update the large comment above the function to
1492 discuss Version 5 DWP files as well, with references. Update all the
1493 version checks in the function to check for version 5 as well. Add new
1494 section at the end to create dwp hash table for version 5.
1495 (create_dwp_v2_section): Rename function to
1496 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1497 Add V5 to error message text.
1498 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1499 into calls to create_dwp_v2_or_v5_section.
1500 (create_dwo_unit_in_dwp_v5): New function.
1501 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1502 check for version2; add else clause to handle version 5.
1503 (open_and_init_dwo_file): Add code to check dwarf version & only call
1504 create_debug_types_hash_table (with sections.types) if version is not 5;
1505 else call create_debug_type_hash_table, with sections.info.
1506 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1507 version 5.
1508 (dwarf2_locate_v5_dwp_sections): New function.
1509 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1510 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1511
1512 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1513
1514 * regcache.h (class regcache): Remove friend
1515 registers_changed_ptid.
1516 <regcache_thread_ptid_changed>: Remove.
1517 <regcaches>: Remove.
1518 * regcache.c (regcache::regcaches): Rename to...
1519 (regcaches): ... this. Make static.
1520 (get_thread_arch_aspace_regcache): Update.
1521 (regcache::regcache_thread_ptid_changed): Rename to...
1522 (regcache_thread_ptid_changed): ... this. Update.
1523 (class regcache_access): Remove.
1524 (regcaches_test): Update.
1525 (_initialize_regcache): Update.
1526 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1527 <forward_list>.
1528
1529 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * regcache.h (class regcache) <current_regcache>: Rename to...
1532 <regcaches>: ... this. Move doc here.
1533 * regcache.c (regcache::current_regcache) Rename to...
1534 (regcache::regcaches): ... this. Move doc to header.
1535 (get_thread_arch_aspace_regcache): Update.
1536 (regcache::regcache_thread_ptid_changed): Update.
1537 (registers_changed_ptid): Update.
1538 (class regcache_access) <current_regcache_size>: Rename to...
1539 <regcaches_size>: ... this.
1540 (current_regcache_test): Rename to...
1541 (regcaches_test): ... this.
1542 (_initialize_regcache): Update.
1543
1544 2020-08-06 Victor Collod <vcollod@nvidia.com>
1545
1546 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1547
1548 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1549
1550 * corelow.c (core_target::build_file_mappings): Don't output
1551 null pathname in warning.
1552
1553 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1554
1555 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1556 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1557 gdb.dwarf2/dw2-single-line-discriminators.exp,
1558 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1559
1560 2020-08-05 Tom Tromey <tromey@adacore.com>
1561
1562 PR rust/26197:
1563 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1564 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1565 Fix off-by-one and type size errors in ordinary case.
1566
1567 2020-08-05 Tom de Vries <tdevries@suse.de>
1568
1569 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1570 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1571
1572 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * frame.h (frame_id_p): Return bool.
1575 (frame_id_artificial_p): Return bool.
1576 (frame_id_eq): Return bool.
1577 (has_stack_frames): Return bool.
1578 (get_selected_frame): Fix typo in comment.
1579 (get_frame_pc_if_available): Return bool.
1580 (get_frame_address_in_block_if_available): Return bool.
1581 (get_frame_func_if_available): Return bool.
1582 (read_frame_register_unsigned): Return bool.
1583 (get_frame_register_bytes): Return bool.
1584 (safe_frame_unwind_memory): Return bool.
1585 (deprecated_frame_register_read): Return bool.
1586 (frame_unwinder_is): Return bool.
1587 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1588 bool.
1589 <this_id::p>: Likewise.
1590 <prev_p>: Likewise.
1591 (frame_stash_add): Return bool.
1592 (get_frame_id): Use bool.
1593 (frame_id_build_special) Use bool.
1594 (frame_id_build_unavailable_stack): Use bool.
1595 (frame_id_build): Use bool.
1596 (frame_id_p): Return bool, use true/false instead of 1/0.
1597 (frame_id_artificial_p): Likewise.
1598 (frame_id_eq): Likewise.
1599 (frame_id_inner): Likewise.
1600 (get_frame_func_if_available): Likewise.
1601 (read_frame_register_unsigned): Likewise.
1602 (deprecated_frame_register_read): Likewise.
1603 (get_frame_register_bytes): Likewise.
1604 (has_stack_frames): Likewise.
1605 (inside_main_func): Likewise.
1606 (inside_entry_func): Likewise.
1607 (get_frame_pc_if_available): Likewise.
1608 (get_frame_address_in_block_if_available): Likewise.
1609 (frame_unwinder_is): Likewise.
1610 (safe_frame_unwind_memory): Likewise.
1611 (frame_unwind_arch): Likewise.
1612
1613 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1614
1615 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1616 type to cached_copy_status.
1617 (fprintf_frame): Adjust.
1618 (get_frame_func_if_available): Adjust.
1619 (frame_cleanup_after_sniffer): Adjust.
1620
1621 2020-08-04 Mark Wielaard <mark@klomp.org>
1622
1623 * MAINTAINERS (Write After Approval): Update email address.
1624
1625 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1626
1627 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1628 dynamic_prop::const_val.
1629
1630 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1633 dynamic_prop::kind.
1634
1635 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1636
1637 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1638
1639 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1640
1641 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1642
1643 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1644 Jose E. Marchesi <jose.marchesi@oracle.com>
1645
1646 * configure.tgt: Add entry for bpf-*-*.
1647 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1648 (ALLDEPFILES): Add bpf-tdep.c.
1649 * bpf-tdep.c: New file.
1650 * MAINTAINERS: Add bpf target and maintainer.
1651 * NEWS: Mention the support for the new target.
1652
1653 2020-08-04 Tom de Vries <tdevries@suse.de>
1654
1655 PR symtab/23270
1656 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1657 Error.
1658
1659 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1660
1661 * syscalls/freebsd.xml: Regenerate.
1662
1663 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1664
1665 * syscalls/update-freebsd.sh: Fix usage and year range.
1666
1667 2020-08-03 Tom de Vries <tdevries@suse.de>
1668
1669 PR symtab/26333
1670 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1671 DW_LNE_lo_user/DW_LNE_hi_user range.
1672
1673 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1674
1675 PR ada/26318
1676 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1677 kind.
1678
1679 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680
1681 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1682
1683 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1684
1685 * breakpoint.c (set_breakpoint_condition): Update the condition
1686 expressions after checking that the input condition string parses
1687 successfully and does not contain junk at the end.
1688
1689 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1690
1691 * breakpoint.c (set_breakpoint_condition): Update the
1692 condition string after parsing the new condition successfully.
1693
1694 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1695
1696 * proc-api.c (_STRUCTURED_PROC): Don't define.
1697 * proc-events.c: Likewise.
1698 * proc-flags.c: Likewise.
1699 * proc-why.c: Likewise.
1700 * procfs.c: Likewise.
1701
1702 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1703 * configure, config.in: Regenerate.
1704
1705 2020-07-30 Tom de Vries <tdevries@suse.de>
1706
1707 PR build/26320
1708 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1709 m_red/m_green/m_blue in a union.
1710
1711 2020-07-29 Tom de Vries <tdevries@suse.de>
1712
1713 PR tdep/26280
1714 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1715
1716 2020-07-28 Tom Tromey <tromey@adacore.com>
1717
1718 PR symtab/26270:
1719 * symtab.h (find_pc_partial_function_sym): Declare.
1720 * cli/cli-cmds.c (disassemble_command): Use
1721 find_pc_partial_function_sym. Check asm_demangle.
1722 * blockframe.c (cache_pc_function_sym): New global.
1723 (cache_pc_function_name): Remove.
1724 (clear_pc_function_cache): Update.
1725 (find_pc_partial_function_sym): New function, from
1726 find_pc_partial_function.
1727 (find_pc_partial_function): Rewrite using
1728 find_pc_partial_function_sym.
1729
1730 2020-07-28 Tom Tromey <tromey@adacore.com>
1731
1732 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1733 help. Add usage.
1734
1735 2020-07-28 Tom Tromey <tromey@adacore.com>
1736
1737 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1738 <DW_OP_GNU_variable_value>: Cast to address type.
1739
1740 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1741
1742 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1743 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1744 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1745 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1746 (nbsd_get_siginfo_type): New.
1747 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1748 (_initialize_nbsd_tdep): New.
1749
1750 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1751
1752 PR binutils/26301
1753 * configure: Regenerated.
1754
1755 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1756
1757 PR binutils/26301
1758 * configure: Regenerated.
1759
1760 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1761
1762 * python/py-frame.c: Remove 'user-regs.h' include.
1763 (frapy_read_register): Rewrite to make use of
1764 gdbpy_parse_register_id.
1765 * python/py-registers.c (gdbpy_parse_register_id): New function,
1766 moved here from python/py-unwind.c. Updated the return type, and
1767 also accepts register descriptor objects.
1768 * python/py-unwind.c: Remove 'user-regs.h' include.
1769 (pyuw_parse_register_id): Moved to python/py-registers.c.
1770 (unwind_infopy_add_saved_register): Update to use
1771 gdbpy_parse_register_id.
1772 (pending_framepy_read_register): Likewise.
1773 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1774
1775 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * python/py-registers.c: Add 'user-regs.h' include.
1778 (register_descriptor_iter_find): New function.
1779 (register_descriptor_iterator_object_methods): New static global
1780 methods array.
1781 (register_descriptor_iterator_object_type): Add pointer to methods
1782 array.
1783
1784 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1785
1786 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1787 for all architectures on FreeBSD 11.3 and later.
1788
1789 2020-07-27 Tom Tromey <tromey@adacore.com>
1790
1791 * gcore.h (load_corefile): Don't declare.
1792
1793 2020-07-27 Tom de Vries <tdevries@suse.de>
1794
1795 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1796 * config.in: Regenerate.
1797 * configure: Regenerate.
1798
1799 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1800
1801 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1802 ws2tcpip.h. When checking whether socklen_t type is defined, use
1803 ws2tcpip.h if it is available and sys/socket.h isn't.
1804 * configure: Regenerate.
1805 * config.in: Regenerate.
1806
1807 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1808
1809 PR fortran/23051
1810 PR fortran/26139
1811 * valops.c (value_ind): Pass address to
1812 readjust_indirect_value_type.
1813 * value.c (readjust_indirect_value_type): Make parameter
1814 non-const, and add extra address parameter. Resolve original type
1815 before using it.
1816 * value.h (readjust_indirect_value_type): Update function
1817 signature and comment.
1818
1819 2020-07-25 Tom de Vries <tdevries@suse.de>
1820
1821 PR symtab/26243
1822 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1823 entries.
1824
1825 2020-07-24 Aaron Merey <amerey@redhat.com>
1826
1827 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1828 * configure: Rebuild.
1829
1830 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1831
1832 PR corefiles/26294
1833 * corelow.c (_initialize_corelow): Add period to help text
1834 for "maintenance print core-file-backed-mappings".
1835
1836 2020-07-23 Pedro Alves <pedro@palves.net>
1837
1838 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1839 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1840 meanwhile.
1841 * frame.c (frame_cache_generation, get_frame_cache_generation):
1842 New.
1843 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1844 (get_prev_frame_if_no_cycle): On exception, don't touch
1845 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1846 * frame.h (get_frame_cache_generation): Declare.
1847
1848 2020-07-23 Tom de Vries <tdevries@suse.de>
1849
1850 PR tui/26282
1851 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1852 New default constructor.
1853
1854 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1857 exclude non-statement entries.
1858
1859 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1860
1861 * NEWS (New commands): Mention new command
1862 "maintenance print core-file-backed-mappings".
1863
1864 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1865
1866 * corelow.c (gdbcmd.h): Include.
1867 (core_target::info_proc_mappings): New method.
1868 (get_current_core_target): New function.
1869 (maintenance_print_core_file_backed_mappings): New function.
1870 (_initialize_corelow): Add core-file-backed-mappings to
1871 "maint print" commands.
1872
1873 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1874
1875 * linux-tdep.c (dump_note_entry_p): New function.
1876 (linux_dump_mapping_p_ftype): New typedef.
1877 (linux_find_memory_regions_full): Add new parameter,
1878 should_dump_mapping_p.
1879 (linux_find_memory_regions): Adjust call to
1880 linux_find_memory_regions_full.
1881 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1882 call to linux_find_memory_regions_full.
1883
1884 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1885
1886 * corelow.c (solist.h, unordered_map): Include.
1887 (class core_target): Add field m_core_file_mappings and
1888 method build_file_mappings.
1889 (core_target::core_target): Call build_file_mappings.
1890 (core_target::~core_target): Free memory associated with
1891 m_core_file_mappings.
1892 (core_target::build_file_mappings): New method.
1893 (core_target::xfer_partial): Use m_core_file_mappings
1894 for memory transfers.
1895 * linux-tdep.c (linux_read_core_file_mappings): New
1896 function.
1897 (linux_core_info_proc_mappings): Rewrite to use
1898 linux_read_core_file_mappings.
1899 (linux_init_abi): Register linux_read_core_file_mappings.
1900
1901 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1902
1903 * arch-utils.c (default_read_core_file_mappings): New function.
1904 * arch-utils.c (default_read_core_file_mappings): Declare.
1905 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1906 * gdbarch.h, gdbarch.c: Regenerate.
1907
1908 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1909
1910 PR corefiles/25631
1911 * corelow.c (core_target:xfer_partial): Revise
1912 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1913 case after first checking the stratum beneath the core
1914 target.
1915 (has_all_memory): Return true.
1916 * target.c (raw_memory_xfer_partial): Revise comment
1917 regarding use of has_all_memory.
1918
1919 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1920
1921 * exec.h (section_table_xfer_memory): Revise declaration,
1922 replacing section name parameter with an optional callback
1923 predicate.
1924 * exec.c (section_table_xfer_memory): Likewise.
1925 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1926 of section_table_xfer_memory.
1927
1928 2020-07-22 Tom Tromey <tromey@adacore.com>
1929
1930 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1931 lookup_symbol_search_name.
1932
1933 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1936 redundant local variable.
1937 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1938 reference, not pointer, update code accordingly.
1939
1940 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1941 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1942
1943 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1944 * jit.c (jit_breakpoint_re_set_internal): Use the
1945 `skip_jit_symbol_lookup` field.
1946
1947 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1948 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1949
1950 * jit.c (jit_read_descriptor): Define the descriptor address once,
1951 use twice.
1952 (jit_breakpoint_deleted): Move the declaration of the loop variable
1953 `iter` into the loop header.
1954 (jit_breakpoint_re_set_internal): Move the declaration of the local
1955 variable `objf_data` to the first point of definition.
1956 (jit_event_handler): Move the declaration of local variables
1957 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1958 Rename `objf` to `jited`.
1959
1960 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1963 Remove.
1964 * jit.c (get_jiter_objfile_data): Update.
1965
1966 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1967 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * jit.c (struct jit_program_space_data): Remove.
1970 (jit_program_space_key): Remove.
1971 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1972 stuff.
1973 (get_jit_program_space_data): Remove.
1974 (jit_breakpoint_deleted): Iterate on all of the program space's
1975 objfiles.
1976 (jit_inferior_init): Likewise.
1977 (jit_breakpoint_re_set_internal): Likewise. Also change return
1978 type to void.
1979 (jit_breakpoint_re_set): Pass current_program_space to
1980 jit_breakpoint_re_set_internal.
1981
1982 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * jit.h (struct jiter_objfile_data) <cached_code_address,
1985 jit_breakpoint>: Move to here from ...
1986 * jit.c (jit_program_space_data): ... here.
1987 (jiter_objfile_data::~jiter_objfile_data): Update.
1988 (jit_breakpoint_deleted): Update.
1989 (jit_breakpoint_re_set_internal): Update.
1990
1991 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1994 checks.
1995 (jit_read_descriptor): Remove NULL check.
1996 (jit_event_handler): Add an assertion.
1997
1998 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * jit.h (struct jit_objfile_data): Split into...
2001 (struct jiter_objfile_data): ... this ...
2002 (struct jited_objfile_data): ... and this.
2003 * objfiles.h (struct objfile) <jit_data>: Remove.
2004 <jiter_data, jited_data>: New fields.
2005 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2006 (jiter_objfile_data::~jiter_objfile_data): ... this.
2007 (get_jit_objfile_data): Rename to ...
2008 (get_jiter_objfile_data): ... this.
2009 (add_objfile_entry): Update.
2010 (jit_read_descriptor): Use get_jiter_objfile_data.
2011 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2012 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2013 (jit_inferior_exit_hook): Use objfile's jited_data field.
2014
2015 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * jit.h: Forward-declare `struct minimal_symbol`.
2018 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2019 constructor, destructor, and an objfile* field.
2020 * jit.c (jit_objfile_data): Remove.
2021 (struct jit_objfile_data): Migrate from here to jit.h.
2022 (jit_objfile_data::~jit_objfile_data): New destructor
2023 implementation with code moved from free_objfile_data.
2024 (free_objfile_data): Delete.
2025 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2026 (jit_find_objf_with_entry_addr): Ditto.
2027 (jit_inferior_exit_hook): Ditto.
2028 (_initialize_jit): Remove the call to
2029 register_objfile_data_with_cleanup.
2030 * objfiles.h (struct objfile) <jit_data>: New field.
2031
2032 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2033
2034 * jit.h: Forward-declare `struct objfile`.
2035 (jit_event_handler): Add a second parameter, the JITer objfile.
2036 * jit.c (jit_read_descriptor): Change the signature to take the
2037 JITer objfile as an argument instead of the jit_program_space_data.
2038 (jit_inferior_init): Update the call to jit_read_descriptor.
2039 (jit_event_handler): Use the new JITer objfile argument when calling
2040 jit_read_descriptor.
2041 * breakpoint.c (handle_jit_event): Update the call to
2042 jit_event_handler to pass the JITer objfile.
2043
2044 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2045
2046 * gdbarch.c: Regenerate.
2047 * gdbarch.h: Regenerate.
2048 * gdbarch.sh (handle_segmentation_fault): Remove method.
2049 * infrun.c (handle_segmentation_fault): Remove.
2050 (print_signal_received_reason): Remove call to
2051 handle_segmentation_fault.
2052
2053 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2054
2055 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2056 Rename to sparc64_linux_report_signal_info and add siggnal
2057 argument.
2058 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2059 instead of sparc64_linux_handle_segmentation_fault.
2060
2061 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2062
2063 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2064 i386_linux_report_signal_info instead of
2065 i386_linux_handle_segmentation_fault.
2066 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2067 to i386_linux_report_signal_info and add siggnal argument.
2068 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2069 of i386_linux_handle_segmentation_fault.
2070 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2071 to i386_linux_report_signal_info and add siggnal argument.
2072
2073 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2074
2075 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2076 hook if present.
2077
2078 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2079
2080 * gdbarch.c: Regenerate.
2081 * gdbarch.h: Regenerate.
2082 * gdbarch.sh (report_signal_info): New method.
2083 * infrun.c (print_signal_received_reason): Invoke gdbarch
2084 report_signal_info hook if present.
2085
2086 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * python/py-registers.c : Add 'unordered_map' include.
2089 (gdbpy_new_reggroup): Renamed to...
2090 (gdbpy_get_reggroup): ...this. Update to only create register
2091 group descriptors when needed.
2092 (gdbpy_reggroup_iter_next): Update.
2093
2094 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * python/py-registers.c (gdbpy_register_object_data): New static
2097 global.
2098 (gdbpy_register_object_data_init): New function.
2099 (gdbpy_new_register_descriptor): Renamed to...
2100 (gdbpy_get_register_descriptor): ...this, and update to reuse
2101 existing register descriptors where possible.
2102 (gdbpy_register_descriptor_iter_next): Update.
2103 (gdbpy_initialize_registers): Register new gdbarch data.
2104
2105 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2106
2107 * linux-nat.c (stopped_pids): Make static.
2108
2109 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2110
2111 PR ada/26235
2112 * gdbtypes.c (ada_discrete_type_low_bound,
2113 ada_discrete_type_high_bound): Handle undefined bounds.
2114
2115 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2116
2117 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2118 declaration.
2119 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2120 function.
2121
2122 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2123
2124 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2125 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2126 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2127 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2128 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2129 method.
2130
2131 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2132
2133 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2134 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2135 which are deprecated in Guile 3.0.
2136 * configure.ac (try_guile_versions): Add "guile-3.0".
2137 * configure (try_guile_versions): Regenerate.
2138 * NEWS: Update entry.
2139
2140 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2141 Doug Evans <dje@google.com>
2142
2143 PR gdb/21104
2144 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2145 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2146 USING_GUILE_BEFORE_2_2.
2147 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2148 Change type to 'scm_t_port_type *'.
2149 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2150 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2151 parameter and honor it. Update callers.
2152 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2153 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2154 functions.
2155 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2156 USING_GUILE_BEFORE_2_2.
2157 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2158 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2159 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2160 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2161 and 'SCM_PORT_TYPE'.
2162 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2163 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2164 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2165 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2166 [!USING_GUILE_BEFORE_2_2]: New functions.
2167 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2168 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2169 'gdbscm_memory_port_read'.
2170 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2171 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2172 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2173 function.
2174 (ioscm_init_memory_port): Remove.
2175 (ioscm_init_memory_port_stream): New function
2176 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2177 function.
2178 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2179 Return scm_from_uint (0).
2180 (gdbscm_set_memory_port_read_buffer_size_x)
2181 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2182 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2183 Return scm_from_uint (0).
2184 (gdbscm_set_memory_port_write_buffer_size_x)
2185 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2186 * configure.ac (try_guile_versions): Add "guile-2.2".
2187 * configure: Regenerate.
2188 * NEWS: Add entry.
2189
2190 2020-07-18 Tom Tromey <tom@tromey.com>
2191
2192 * linux-nat.c (linux_multi_process): Remove.
2193 (linux_nat_target::supports_multi_process): Return true.
2194
2195 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2198 (riscv_lookup_target_description): Return pointer out of
2199 unique_ptr.
2200 * target-descriptions.c (allocate_target_description): Add
2201 comment.
2202 (target_desc_deleter::operator()): Likewise.
2203 * target-descriptions.h (struct target_desc_deleter): Moved to
2204 gdbsupport/tdesc.h.
2205 (target_desc_up): Likewise.
2206
2207 2020-07-17 Tom Tromey <tromey@adacore.com>
2208
2209 * linux-nat.c (linux_nat_target::supports_non_stop)
2210 (linux_nat_target::always_non_stop_p): Use "true".
2211 (linux_nat_target::supports_disable_randomization): Use "true" and
2212 "false".
2213
2214 2020-07-16 Caroline Tice <cmtice@google.com>
2215
2216 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2217 (RNGLIST_HEADER_SIZE64): New constant definition.
2218 (struct dwop_section_names): Add rnglists_dwo.
2219 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2220 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2221 (struct dwo_sections): Add rnglists field.
2222 (read_attribut_reprocess): Add tag parameter.
2223 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2224 (cu_debug_rnglists_section): New function (decl & definition).
2225 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2226 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2227 die whose range is being checked; get rnglist section from
2228 cu_debug_rnglists_section, to get from either objfile or dwo file as
2229 appropriate. Add cases for DW_RLE_base_addressx,
2230 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2231 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2232 test inside if-condition and updating complaint message.
2233 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2234 dwarf2_rnglists_process.
2235 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2236 dwarf2_ranges_process.
2237 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2238 need_ranges_base and update comment appropriately. Also pass die tag
2239 to dwarf2_ranges_read.
2240 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2241 need_ranges_base and update comment appropriately. Also pass die tag
2242 to dwarf2_ranges_process.
2243 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2244 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2245 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2246 need_ranges_base and update comment appropriately. Also pass die tag
2247 to read_attribute_reprocess and dwarf2_ranges_read.
2248 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2249 and update function comment appropriately.
2250 (read_loclist_index): Call read_loclists_rnglists_header instead of
2251 read_loclist_header.
2252 (read_rnglist_index): New function.
2253 (read_attribute_reprocess): Add tag parameter. Add code for
2254 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2255 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2256
2257 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2260 being resolved.
2261
2262 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * arch-utils.c (show_architecture): Update formatting of messages.
2265
2266 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2267
2268 * gdbtypes.h (struct type) <bounds>: Handle array and string
2269 types.
2270 * ada-lang.c (assign_aggregate): Use type::bounds on
2271 array/string type.
2272 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2273 * c-varobj.c (c_number_of_children): Likewise.
2274 (c_describe_child): Likewise.
2275 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2276 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2277 (f_type_print_base): Likewise.
2278 * f-valprint.c (f77_array_offset_tbl): Likewise.
2279 (f77_get_upperbound): Likewise.
2280 (f77_print_array_1): Likewise.
2281 * guile/scm-type.c (gdbscm_type_range): Likewise.
2282 * m2-typeprint.c (m2_array): Likewise.
2283 (m2_is_long_set_of_type): Likewise.
2284 * m2-valprint.c (get_long_set_bounds): Likewise.
2285 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2286 * python/py-type.c (typy_range): Likewise.
2287 * rust-lang.c (rust_internal_print_type): Likewise.
2288 * type-stack.c (type_stack::follow_types): Likewise.
2289 * valarith.c (value_subscripted_rvalue): Likewise.
2290 * valops.c (value_cast): Likewise.
2291
2292 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2295 callers to use the equivalent accessor methods.
2296
2297 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2298
2299 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2300 (struct type) <bit_stride>: New method.
2301 (TYPE_BIT_STRIDE): Remove.
2302 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2303
2304 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2305
2306 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2307 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2308 callers to use the equivalent accessor methods instead.
2309
2310 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2311
2312 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2313 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2314 callers to use the equivalent accessor methods instead.
2315
2316 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2317
2318 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2319 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2320 to use dynamic_prop::kind.
2321
2322 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2325 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2326 to get the bound property's kind and check against
2327 PROP_UNDEFINED.
2328
2329 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2330
2331 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2332 all callers to use type::range_bounds followed by
2333 dynamic_prop::{low,high}.
2334
2335 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2336
2337 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2338 const_val, set_const_val, baton, set_locexpr, set_loclist,
2339 set_addr_offset, variant_parts, set_variant_parts,
2340 original_type, set_original_type>: New methods.
2341 <kind>: Rename to...
2342 <m_kind>: ... this. Update all users to use the new methods
2343 instead.
2344 <data>: Rename to...
2345 <m_data>: ... this. Update all users to use the new methods
2346 instead.
2347
2348 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2349
2350 * gdbtypes.c (get_discrete_bounds): Return failure if
2351 the range type's bounds are not both defined and constant
2352 values.
2353 (get_array_bounds): Update comment. Remove undefined bound check.
2354
2355 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2358 the type::bounds method directly.
2359
2360 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2363 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2364 are used to set the range type's bounds to use set_bounds.
2365
2366 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2367
2368 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2369
2370 2020-07-10 Pedro Alves <pedro@palves.net>
2371
2372 * gdbthread.h (inferior_ref): Define.
2373 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2374 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2375 * thread.c
2376 (scoped_restore_current_thread::restore):
2377 Adjust to gdb::ref_ptr.
2378 (scoped_restore_current_thread::~scoped_restore_current_thread):
2379 Remove manual decref handling.
2380 (scoped_restore_current_thread::scoped_restore_current_thread):
2381 Adjust to use
2382 inferior_ref::new_reference/thread_info_ref::new_reference.
2383 Incref the thread before calling get_frame_id instead of after.
2384 Let TARGET_CLOSE_ERROR propagate.
2385
2386 2020-07-10 Pedro Alves <pedro@palves.net>
2387
2388 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2389 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2390 NOT_AVAILABLE_ERROR.
2391 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2392 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2393
2394 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2395 Pedro Alves <pedro@palves.net>
2396
2397 PR gdb/26199
2398 * infrun.c (threads_are_resumed_pending_p): Delete.
2399 (do_target_wait): Remove threads_are_executing and
2400 threads_are_resumed_pending_p checks from the inferior_matches
2401 lambda. Update comments.
2402
2403 2020-07-10 Pedro Alves <pedro@palves.net>
2404
2405 PR gdb/26199
2406 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2407 executing threads.
2408
2409 2020-07-10 Pedro Alves <pedro@palves.net>
2410
2411 PR gdb/26199
2412 * infrun.c (handle_no_resumed): Handle multiple targets.
2413
2414 2020-07-10 Pedro Alves <pedro@palves.net>
2415
2416 PR gdb/26199
2417 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2418 target_is_async_p.
2419
2420 2020-07-10 Pedro Alves <pedro@palves.net>
2421
2422 PR gdb/26199
2423 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2424 threads, not all threads.
2425
2426 2020-07-10 Pedro Alves <pedro@palves.net>
2427
2428 PR gdb/26199
2429 * remote.c (remote_target::open_1): Pass remote target pointer as
2430 data to create_async_event_handler.
2431 (remote_async_inferior_event_handler): Mark async event handler
2432 before returning if the remote target still has either pending
2433 events or unacknowledged notifications.
2434
2435 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2436
2437 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2438 declaration.
2439 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2440 function.
2441
2442 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2443
2444 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2445 inferior_ptid.
2446
2447 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2448
2449 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2450 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2451 AT_FREEBSD_PS_STRINGS.
2452
2453 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2454
2455 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2456 of debugfile path on Windows.
2457
2458 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2459
2460 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2461 argument to 'data'.
2462
2463 2020-07-08 Tom Tromey <tromey@adacore.com>
2464
2465 * ada-lang.c (ada_exception_message_1): Use read_memory.
2466
2467 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 PR python/22748
2470 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2471 special handling for inline frames.
2472 * findvar.c (value_of_register_lazy): Skip inline frames when
2473 creating lazy register values.
2474 * frame.c (frame_id_computed_p): Delete definition.
2475 * frame.h (frame_id_computed_p): Delete declaration.
2476
2477 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * NEWS: Mention additions to Python API.
2480 * python/py-arch.c (archpy_register_groups): New function.
2481 (arch_object_methods): Add 'register_groups' method.
2482 * python/py-registers.c (reggroup_iterator_object): New struct.
2483 (reggroup_object): New struct.
2484 (gdbpy_new_reggroup): New function.
2485 (gdbpy_reggroup_to_string): New function.
2486 (gdbpy_reggroup_name): New function.
2487 (gdbpy_reggroup_iter): New function.
2488 (gdbpy_reggroup_iter_next): New function.
2489 (gdbpy_new_reggroup_iterator): New function
2490 (gdbpy_initialize_registers): Register new types.
2491 (reggroup_iterator_object_type): Define new Python type.
2492 (gdbpy_reggroup_getset): New static global.
2493 (reggroup_object_type): Define new Python type.
2494 * python/python-internal.h
2495
2496 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2499 * python/py-arch.c (archpy_registers): New function.
2500 (arch_object_methods): Add 'registers' method.
2501 * python/py-registers.c: New file.
2502 * python/python-internal.h
2503 (gdbpy_new_register_descriptor_iterator): Declare.
2504 (gdbpy_initialize_registers): Declare.
2505 * python/python.c (do_start_initialization): Call
2506 gdbpy_initialize_registers.
2507 * NEWS: Mention additions to the Python API.
2508
2509 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * NEWS: Mention new Python API method.
2512 * python/py-unwind.c (pending_framepy_architecture): New function.
2513 (pending_frame_object_methods): Add architecture method.
2514
2515 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2516
2517 * gdbarch.c: Regenerate.
2518 * gdbarch.h: Regenerate.
2519 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2520 (gdbarch_data): Use internal_error for the case where
2521 deprecated_set_gdbarch_data was originally needed.
2522 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2523 and use passed in obstack.
2524 (libunwind_frame_set_descr): Should no longer get back NULL from
2525 gdbarch_data.
2526 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2527 type.
2528 * user-regs.c (user_regs_init): Update parameters, and use passed
2529 in obstack.
2530 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2531 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2532
2533 2020-07-06 Tom de Vries <tdevries@suse.de>
2534
2535 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2536 End-Of-Sequence in lte_is_less_than.
2537 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2538 "gdb: Don't reorder line table entries too much when sorting".
2539
2540 2020-07-06 Tom de Vries <tdevries@suse.de>
2541
2542 PR tui/26205
2543 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2544
2545 2020-07-05 Tom de Vries <tdevries@suse.de>
2546
2547 PR build/26187
2548 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2549 std::uncaught_exceptions instead of deprecated
2550 std::uncaught_exception.
2551
2552 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * macroexp.h (macro_stringify): Return
2555 gdb::unique_xmalloc_ptr<char>.
2556 * macroexp.c (macro_stringify): Likewise.
2557 * macrotab.c (fixup_definition): Update.
2558
2559 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2562 (lex_one_token): Update.
2563 * macroexp.c (struct macro_buffer) <release>: Return
2564 gdb::unique_xmalloc_ptr<char>.
2565 (macro_stringify): Update.
2566 (macro_expand): Update.
2567 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2568 * macroexp.h (macro_expand_next): Likewise.
2569
2570 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2571
2572 * macroexp.h (macro_lookup_ftype): Remove.
2573 (macro_expand, macro_expand_once, macro_expand_next): Remove
2574 lookup function parameters, add scope parameter.
2575 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2576 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2577 * macroscope.h (standard_macro_lookup): Change parameter type
2578 to macro_scope.
2579 * macroscope.c (standard_macro_lookup): Likewise.
2580 * c-exp.y (lex_one_token): Update.
2581 * macrocmd.c (macro_expand_command): Likewise.
2582 (macro_expand_once_command): Likewise.
2583
2584 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2585
2586 * inf-loop.c (inferior_event_handler): Remove client_data param.
2587 * inf-loop.h (inferior_event_handler): Likewise.
2588 * infcmd.c (step_1): Adjust.
2589 * infrun.c (proceed): Adjust.
2590 (fetch_inferior_event): Remove client_data param.
2591 (infrun_async_inferior_event_handler): Adjust.
2592 * infrun.h (fetch_inferior_event): Remove `void *` param.
2593 * linux-nat.c (handle_target_event): Adjust.
2594 * record-btrace.c (record_btrace_handle_async_inferior_event):
2595 Adjust.
2596 * record-full.c (record_full_async_inferior_event_handler):
2597 Adjust.
2598 * remote.c (remote_async_inferior_event_handler): Adjust.
2599
2600 2020-07-01 Tom Tromey <tom@tromey.com>
2601
2602 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2603 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2604
2605 2020-07-01 Tom Tromey <tom@tromey.com>
2606
2607 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2608 tui_gen_win_info.
2609 (tui_win_info::make_window): Merge with
2610 tui_gen_win_info::make_window.
2611 (tui_win_info::make_visible): Move from tui_gen_win_info.
2612 * tui/tui-win.c (tui_win_info::max_width): Move from
2613 tui_gen_win_info.
2614 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2615 type.
2616 <window_factory>: Likewise.
2617 * tui/tui-layout.c (tui_win_info::resize): Move from
2618 tui_gen_win_info.
2619 (make_standard_window): Change return type.
2620 (get_locator_window, tui_get_window_by_name): Likewise.
2621 (tui_layout_window::apply): Remove a cast.
2622 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2623 (struct tui_win_info): Merge with tui_gen_win_info.
2624 (struct tui_gen_win_info): Remove.
2625
2626 2020-07-01 Tom Tromey <tom@tromey.com>
2627
2628 * tui/tui-stack.h (struct tui_locator_window): Derive from
2629 tui_win_info.
2630 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2631 <can_box>: New method.
2632
2633 2020-07-01 Tom Tromey <tom@tromey.com>
2634
2635 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2636
2637 2020-07-01 Tom Tromey <tom@tromey.com>
2638
2639 * tui/tui-regs.c (tui_data_window::display_registers_from)
2640 (tui_data_window::display_registers_from)
2641 (tui_data_window::first_data_item_displayed)
2642 (tui_data_window::delete_data_content_windows): Update.
2643 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2644 Remove.
2645 (tui_data_window::check_register_values): Update.
2646 (tui_data_item_window::rerender): Add parameters. Update.
2647 (tui_data_item_window::refresh_window): Remove.
2648 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2649 virtual.
2650 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2651 tui_gen_win_info.
2652 <refresh_window, max_height, min_height>: Remove.
2653 <rerender>: Add parameters.
2654 <x, y, visible>: New members.
2655 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2656 <m_item_width>: New member.
2657
2658 2020-07-01 Tom Tromey <tom@tromey.com>
2659
2660 * tui/tui-regs.c (tui_data_window::show_register_group)
2661 (tui_data_window::check_register_values): Update.
2662 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2663 from item_no.
2664
2665 2020-07-01 Tom Tromey <tom@tromey.com>
2666
2667 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2668 useless "if".
2669
2670 2020-07-01 Tom Tromey <tom@tromey.com>
2671
2672 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2673 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2674
2675 2020-07-01 Tom Tromey <tom@tromey.com>
2676
2677 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2678 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2679 (struct tui_line_or_address): Move from tui-data.h.
2680 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2681 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2682 (tui_cmd_window, tui_source_window_base, tui_source_window)
2683 (tui_disasm_window): Don't declare.
2684 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2685 to tui-winsource.h.
2686 (SINGLE_KEY): Move to tui-stack.c.
2687
2688 2020-07-01 Tom Tromey <tom@tromey.com>
2689
2690 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2691 std::string.
2692 * tui/tui-regs.c (class tab_expansion_file): New.
2693 (tab_expansion_file::write): New method.
2694 (tui_register_format): Change return type. Use
2695 tab_expansion_file.
2696 (tui_get_register, tui_data_window::display_registers_from)
2697 (tui_data_item_window::rerender): Update.
2698 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2699 * tui/tui-io.c (tui_expand_tabs): Remove.
2700
2701 2020-07-01 Tom Tromey <tom@tromey.com>
2702
2703 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2704
2705 2020-07-01 Fangrui Song <maskray@google.com>
2706
2707 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2708
2709 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2710
2711 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2712 forms for DW_AT_associated and DW_AT_allocated attributes,
2713 which is already checked in function attr_to_dynamic_prop.
2714
2715 2020-06-30 Tom Tromey <tromey@adacore.com>
2716
2717 * dwarf2/read.c (quirk_rust_enum): Correctly call
2718 alloc_rust_variant for default-less enum.
2719
2720 2020-06-30 Tom Tromey <tromey@adacore.com>
2721
2722 PR build/26183:
2723 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2724 gdb::to_string.
2725
2726 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2727
2728 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2729 * gdbarch.h: Re-generate.
2730
2731 2020-06-28 Tom Tromey <tom@tromey.com>
2732
2733 * command.h (cmd_types): Remove.
2734 (cmd_type): Don't declare.
2735 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2736 typedef.
2737 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2738 * cli/cli-decode.c (cmd_type): Remove.
2739
2740 2020-06-27 Pedro Alves <palves@redhat.com>
2741
2742 * fork-child.c (prefork_hook): Adjust.
2743 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2744 Delete.
2745 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2746 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2747 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2748 Remove declarations.
2749 (struct inferior) <set_tty, tty>: New methods.
2750 (struct inferior) <terminal>: Rename to ...
2751 (struct inferior) <m_terminal>: ... this and make private.
2752 * main.c (captured_main_1): Adjust.
2753 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2754 (mi_cmd_inferior_tty_show): Adjust.
2755 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2756 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2757
2758 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2759
2760 * configure.ac: Add --enable-libctf: handle --disable-static
2761 properly.
2762 * acinclude.m4: sinclude ../config/enable.m4.
2763 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2764 (LIBCTF): Substitute in.
2765 (CTF_DEPS): New, likewise.
2766 (CLIBS): libctf needs symbols from libbfd: move earlier.
2767 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2768 flags.
2769 * ctfread.c: Surround in ENABLE_LIBCTF.
2770 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2771 * configure: Regenerate.
2772 * config.in: Likewise.
2773
2774 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2777
2778 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2779
2780 * inferior.h (struct inferior) <terminal>: Change type to
2781 gdb::unique_xmalloc_ptr<char>.
2782 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2783 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2784 field, adjust to unique pointer.
2785 (get_inferior_io_terminal): Adjust to unique pointer.
2786
2787 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2790 registers, not just the known core set of registers.
2791
2792 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2793
2794 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2795 fflags, frm, and fcsr registers.
2796 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2797 restore groups.
2798 (riscv_tdesc_unknown_reg): New function.
2799 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2800 tdesc_use_registers.
2801 * riscv-tdep.h (struct gdbarch_tdep): Add
2802 unknown_csrs_first_regnum, unknown_csrs_count,
2803 duplicate_fflags_regnum, duplicate_frm_regnum, and
2804 duplicate_fcsr_regnum fields.
2805
2806 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2807
2808 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2809 callback, use the callback (when not null) to help number unknown
2810 registers.
2811 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2812 (tdesc_use_registers): Add extra parameter to declaration.
2813
2814 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2817 in the file.
2818 (class riscv_pending_register_alias): Likewise.
2819 (riscv_register_feature::register_info): Change 'required_p' field
2820 to 'required', and change its type. Add 'check' member function.
2821 (riscv_register_feature::register_info::check): Define new member
2822 function.
2823 (riscv_xreg_feature): Change initialisation of 'required' field.
2824 (riscv_freg_feature): Likewise.
2825 (riscv_virtual_feature): Likewise.
2826 (riscv_csr_feature): Likewise.
2827 (riscv_check_tdesc_feature): Take extra parameter, the csr
2828 tdesc_feature, rewrite the function to use the new
2829 riscv_register_feature::register_info::check function.
2830 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2831
2832 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2833
2834 * features/Makefile: Remove all references to the deleted files
2835 below.
2836 * features/riscv/32bit-csr.c: Deleted.
2837 * features/riscv/32bit-csr.xml: Deleted.
2838 * features/riscv/64bit-csr.c: Deleted.
2839 * features/riscv/64bit-csr.xml: Deleted.
2840 * features/riscv/rebuild-csr-xml.sh: Deleted.
2841
2842 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2845 whitespace error for declaration of names member variable.
2846 (struct riscv_register_feature): Add new prefer_first_name member
2847 variable, and fix whitespace error in declaration of registers.
2848 (riscv_xreg_feature): Initialize prefer_first_name field.
2849 (riscv_freg_feature): Likewise.
2850 (riscv_virtual_feature): Likewise.
2851 (riscv_csr_feature): Likewise.
2852 (riscv_register_name): Expand on comments. Remove register name
2853 modifications for CSR and virtual registers.
2854
2855 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2858 errors.
2859
2860 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2861
2862 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2863 riscv-opc.h.
2864 (class riscv_pending_register_alias): New class.
2865 (riscv_check_tdesc_feature): Take vector of pending aliases and
2866 populate it as appropriate.
2867 (riscv_setup_register_aliases): Delete.
2868 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2869 to riscv_check_tdesc_feature in all cases. Use the vector to
2870 create the register aliases.
2871
2872 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2873
2874 * sol2-tdep.c (sol2_static_transform_name): Remove.
2875 (sol2_init_abi): Don't register it.
2876 * gdbarch.sh (static_transform_name): Remove.
2877 * gdbarch.c, gdbarch.h: Regenerate.
2878
2879 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2880 gdbarch_static_transform_name.
2881 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2882 * stabsread.c (define_symbol) <'X'>: Remove.
2883 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2884 handling.
2885 <'V'>: Likewise.
2886 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2887 <'S'>: Remove call to gdbarch_static_transform_name.
2888
2889 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2890
2891 * procfs.c (procfs_pre_trace): New function.
2892 (procfs_target::create_inferior): Pass it to fork_inferior.
2893
2894 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2895
2896 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2897 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2898 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2899 sol2-tdep.o, sparc-sol2-tdep.o.
2900 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2901 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2902 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2903 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2904
2905 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2906
2907 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2908 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2909 Call sol2_init_abi.
2910 Remove calls to set_gdbarch_skip_solib_resolver,
2911 set_gdbarch_core_pid_to_str.
2912 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2913 (i386_sol2_static_transform_name): Remove.
2914 (i386_sol2_init_abi): Call sol2_init_abi.
2915 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2916 set_gdbarch_static_transform_name,
2917 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2918 Use sol2_sigtramp_p.
2919 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2920 (sol2_sigtramp_p): New function.
2921 (sol2_static_transform_name): New function.
2922 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2923 (sol2_init_abi): New function.
2924 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2925 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2926 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2927 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2928 (sparc_sol2_static_transform_name): Remove.
2929 (sparc32_sol2_init_abi): Call sol2_init_abi.
2930 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2931 set_gdbarch_static_transform_name,
2932 set_gdbarch_skip_solib_resolver,
2933 set_gdbarch_core_pid_to_str.
2934 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2935 (sparc_sol2_static_transform_name): Remove
2936 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2937 call sol2_sigtramp_p.
2938 (sparc64_sol2_init_abi): Call sol2_init_abi.
2939 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2940 set_gdbarch_static_transform_name,
2941 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2942
2943 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2944
2945 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2946 * exec.c (validate_exec_file): If from_tty, set both
2947 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2948 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2949 and from_tty, unconditionally ask a confirmation.
2950
2951 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * target-descriptions.c (tdesc_architecture_name): Protect against
2954 NULL pointer dereference.
2955 (maint_print_xml_tdesc_cmd): New function.
2956 (_initialize_target_descriptions): Register new 'maint print
2957 xml-tdesc' command and give it the filename completer.
2958 * NEWS: Mention new 'maint print xml-tdesc' command.
2959
2960 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * target-descriptions.c (class tdesc_compatible_info): New class.
2963 (struct target_desc): Change type of compatible vector.
2964 (tdesc_compatible_p): Update for change in type of
2965 target_desc::compatible.
2966 (tdesc_compatible_info_list): New function.
2967 (tdesc_compatible_info_arch_name): New function.
2968 (tdesc_add_compatible): Update for change in type of
2969 target_desc::compatible.
2970 (print_c_tdesc::visit_pre): Likewise.
2971
2972 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2975 whitespace to underscore.
2976 (maint_print_c_tdesc_cmd): Use fake filename for target
2977 descriptions that came from the target.
2978 (_initialize_target_descriptions): Add filename command completion
2979 for 'maint print c-tdesc'.
2980
2981 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2982
2983 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2984 lines.
2985
2986 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2989 lines.
2990 (dwarf2_find_location_expression): Likewise.
2991 (call_site_parameter_matches): Likewise.
2992 (dwarf2_compile_expr_to_ax): Likewise.
2993 (disassemble_dwarf_expression): Likewise.
2994 (loclist_describe_location): Likewise.
2995
2996 2020-06-23 Pedro Alves <palves@redhat.com>
2997
2998 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2999 progspace-and-thread.h. Include scoped-mock-context.h instead.
3000 (register_to_value_test): Use scoped_mock_context.
3001 * regcache.c: Include "scoped-mock-context.h".
3002 (cooked_read_test): Don't error out if a target is already pushed.
3003 Use scoped_mock_context. Adjust.
3004 * scoped-mock-context.h: New file.
3005
3006 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3009 initializer.
3010 (ada_language::is_string_type_p): New member function.
3011 * c-lang.c (c_language_data): Delete la_is_string_type_p
3012 initializer.
3013 (cplus_language_data): Likewise.
3014 (asm_language_data): Likewise.
3015 (minimal_language_data): Likewise.
3016 * d-lang.c (d_language_data): Likewise.
3017 * f-lang.c (f_is_string_type_p): Delete function, implementation
3018 moved to f_language::is_string_type_p.
3019 (f_language_data): Delete la_is_string_type_p initializer.
3020 (f_language::is_string_type_p): New member function,
3021 implementation from f_is_string_type_p.
3022 * go-lang.c (go_is_string_type_p): Delete function, implementation
3023 moved to go_language::is_string_type_p.
3024 (go_language_data): Delete la_is_string_type_p initializer.
3025 (go_language::is_string_type_p): New member function,
3026 implementation from go_is_string_type_p.
3027 * language.c (language_defn::is_string_type_p): Define new member
3028 function.
3029 (default_is_string_type_p): Make static, add comment copied from
3030 header file.
3031 (unknown_language_data): Delete la_is_string_type_p initializer.
3032 (unknown_language::is_string_type_p): New member function.
3033 (auto_language_data): Delete la_is_string_type_p initializer.
3034 (auto_language::is_string_type_p): New member function.
3035 * language.h (language_data): Delete la_is_string_type_p field.
3036 (language_defn::is_string_type_p): Declare new function.
3037 (default_is_string_type_p): Delete desclaration, move comment to
3038 definition.
3039 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3040 moved to m2_language::is_string_type_p.
3041 (m2_language_data): Delete la_is_string_type_p initializer.
3042 (m2_language::is_string_type_p): New member function,
3043 implementation from m2_is_string_type_p.
3044 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3045 initializer.
3046 * opencl-lang.c (opencl_language_data): Likewise.
3047 * p-lang.c (pascal_is_string_type_p): Delete function,
3048 implementation moved to pascal_language::is_string_type_p.
3049 (pascal_language_data): Delete la_is_string_type_p initializer.
3050 (pascal_language::is_string_type_p): New member function,
3051 implementation from pascal_is_string_type_p.
3052 * rust-lang.c (rust_is_string_type_p): Delete function,
3053 implementation moved to rust_language::is_string_type_p.
3054 (rust_language_data): Delete la_is_string_type_p initializer.
3055 (rust_language::is_string_type_p): New member function,
3056 implementation from rust_is_string_type_p.
3057 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3058 is_string_type_p.
3059
3060 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3061
3062 * ada-lang.c (ada_language_data): Delete la_print_typedef
3063 initializer.
3064 (ada_language::print_typedef): New member function.
3065 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3066 (cplus_language_data): Likewise.
3067 (asm_language_data): Likewise.
3068 (minimal_language_data): Likewise.
3069 * d-lang.c (d_language_data): Likewise.
3070 * f-lang.c (f_language_data): Likewise.
3071 (f_language::print_typedef): New member function.
3072 * go-lang.c (go_language_data): Delete la_print_typedef
3073 initializer.
3074 * language.c (language_defn::print_typedef): Define member
3075 function.
3076 (unknown_language_data): Delete la_print_typedef initializer.
3077 (unknown_language::print_typedef): New member function.
3078 (auto_language_data): Delete la_print_typedef initializer.
3079 (auto_language::print_typedef): New member function.
3080 * language.h (language_data): Delete la_print_typedef field.
3081 (language_defn::print_typedef): Declare new member function.
3082 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3083 (default_print_typedef): Delete declaration.
3084 * m2-lang.c (m2_language_data): Delete la_print_typedef
3085 initializer.
3086 (m2_language::print_typedef): New member function.
3087 * objc-lang.c (objc_language_data): Delete la_print_typedef
3088 initializer.
3089 * opencl-lang.c (opencl_language_data): Likewise.
3090 * p-lang.c (pascal_language_data): Likewise.
3091 (pascal_language::print_typedef): New member function.
3092 * rust-lang.c (rust_print_typedef): Delete function,
3093 implementation moved to rust_language::print_typedef.
3094 (rust_language): Delete la_print_typedef initializer.
3095 (rust_language::print_typedef): New member function,
3096 implementation from rust_print_typedef.
3097 * typeprint.c (default_print_typedef): Delete.
3098
3099 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3102 (ada_language::printstr): New member function.
3103 * c-lang.c (c_language_data): Delete la_printstr initializer.
3104 (cplus_language_data): Likewise.
3105 (asm_language_data): Likewise.
3106 (minimal_language_data): Likewise.
3107 * d-lang.c (d_language_data): Likewise.
3108 * f-lang.c (f_printstr): Rename to f_language::printstr.
3109 (f_language_data): Delete la_printstr initializer.
3110 (f_language::printstr): New member function, implementation from
3111 f_printstr.
3112 * go-lang.c (go_language_data): Delete la_printstr initializer.
3113 * language.c (language_defn::printstr): Define new member
3114 function.
3115 (unk_lang_printstr): Delete.
3116 (unknown_language_data): Delete la_printstr initializer.
3117 (unknown_language::printstr): New member function.
3118 (auto_language_data): Delete la_printstr initializer.
3119 (auto_language::printstr): New member function.
3120 * language.h (language_data): Delete la_printstr field.
3121 (language_defn::printstr): Declare new member function.
3122 (LA_PRINT_STRING): Update call to printstr.
3123 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3124 (m2_language_data): Delete la_printstr initializer.
3125 (m2_language::printstr): New member function, implementation from
3126 m2_printstr.
3127 * objc-lang.c (objc_language_data): Delete la_printstr
3128 initializer.
3129 * opencl-lang.c (opencl_language_data): Likewise.
3130 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3131 (pascal_language_data): Delete la_printstr initializer.
3132 (pascal_language::printstr): New member function, implementation
3133 from pascal_printstr.
3134 * p-lang.h (pascal_printstr): Delete declaration.
3135 * rust-lang.c (rust_printstr): Update header comment.
3136 (rust_language_data): Delete la_printstr initializer.
3137 (rust_language::printstr): New member function.
3138
3139 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3140
3141 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3142 (ada_language::printchar): New member function.
3143 * c-lang.c (c_language_data): Delete la_printchar initializer.
3144 (cplus_language_data): Likewise.
3145 (asm_language_data): Likewise.
3146 (minimal_language_data): Likewise.
3147 * d-lang.c (d_language_data): Likewise.
3148 * f-lang.c (f_printchar): Rename to f_language::printchar.
3149 (f_language_data): Delete la_printchar initializer.
3150 (f_language::printchar): New member function, implementation from
3151 f_printchar.
3152 * go-lang.c (go_language_data): Delete la_printchar initializer.
3153 * language.c (unk_lang_printchar): Delete.
3154 (language_defn::printchar): Define new member function.
3155 (unknown_language_data): Delete la_printchar initializer.
3156 (unknown_language::printchar): New member function.
3157 (auto_language_data): Delete la_printchar initializer.
3158 (auto_language::printchar): New member function.
3159 * language.h (language_data): Delete la_printchar field.
3160 (language_defn::printchar): Declare new member function.
3161 (LA_PRINT_CHAR): Update call to printchar.
3162 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3163 (m2_language::printchar): New member function.
3164 * objc-lang.c (objc_language_data): Delete la_printchar
3165 initializer.
3166 * opencl-lang.c (opencl_language_data): Likewise.
3167 * p-lang.c (pascal_language_data): Delete la_printchar
3168 initializer.
3169 (pascal_language::printchar): New member function.
3170 * rust-lang.c (rust_printchar): Rename to
3171 rust_language::printchar.
3172 (rust_language_data): Delete la_printchar initializer.
3173 (rust_language::printchar): New member function, implementation
3174 from rust_printchar.
3175
3176 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3179 (ada_language_data): Delete la_emitchar initializer.
3180 (ada_language::emitchar): New member function, implementation from
3181 emit_char.
3182 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3183 (cplus_language_data): Likewise.
3184 (asm_language_data): Likewise.
3185 (minimal_language_data): Likewise.
3186 * d-lang.c (d_language_data): Likewise.
3187 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3188 (f_language_data): Delete la_emitchar initializer.
3189 (f_language::emitchar): New member function, implementation from
3190 f_emit_char.
3191 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3192 * language.c (unk_lang_emit_char): Delete.
3193 (language_defn::emitchar): New member function definition.
3194 (unknown_language_data): Delete la_emitchar initializer.
3195 (unknown_language::emitchar): New member function.
3196 (auto_language_data): Delete la_emitchar initializer.
3197 (auto_language::emitchar): New member function.
3198 * language.h (language_data): Delete la_emitchar field.
3199 (language_defn::emitchar): New member field declaration.
3200 (LA_EMIT_CHAR): Update call to emitchar.
3201 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3202 (m2_language_data): Delete la_emitchar initializer.
3203 (m2_language::emitchar): New member function, implementation from
3204 m2_emit_char.
3205 * objc-lang.c (objc_language_data): Delete la_emitchar
3206 initializer.
3207 * opencl-lang.c (opencl_language_data): Likewise.
3208 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3209 (pascal_language_data): Delete la_emitchar initializer.
3210 (pascal_language::emitchar): New member function, implementation
3211 from pascal_emit_char.
3212 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3213 (rust_language_data): Delete la_emitchar initializer.
3214 (rust_language::emitchar): New member function, implementation
3215 from rust_emitchar.
3216
3217 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3220 (ada_language_data): Delete la_post_parser initializer.
3221 (ada_language::post_parser): New member function.
3222 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3223 (cplus_language_data): Likewise.
3224 (asm_language_data): Likewise.
3225 (minimal_language_data): Likewise.
3226 * d-lang.c (d_language_data): Likewise.
3227 * f-lang.c (f_language_data): Likewise.
3228 * go-lang.c (go_language_data): Likewise.
3229 * language.c (unknown_language_data): Likewise.
3230 (auto_language_data): Likewise.
3231 * language.h (language_data): Delete la_post_parser field.
3232 (language_defn::post_parser): New member function.
3233 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3234 * objc-lang.c (objc_language_data): Likewise.
3235 * opencl-lang.c (opencl_language_data): Likewise.
3236 * p-lang.c (pascal_language_data): Likewise.
3237 * parse.c (parse_exp_in_context): Update call to post_parser.
3238 (null_post_parser): Delete definition.
3239 * parser-defs.h (null_post_parser): Delete declaration.
3240 * rust-lang.c (rust_language_data): Delete la_post_parser
3241 initializer.
3242
3243 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * ada-lang.c (parse): Rename to ada_language::parser.
3246 (ada_language_data): Delete la_parser initializer.
3247 (ada_language::parser): New member function, implementation from
3248 parse.
3249 * c-lang.c (c_language_data): Delete la_parser initializer.
3250 (cplus_language_data): Likewise.
3251 (asm_language_data): Likewise.
3252 (minimal_language_data): Likewise.
3253 * d-lang.c (d_language_data): Likewise.
3254 (d_language::parser): New member function.
3255 * f-lang.c (f_language_data): Delete la_parser initializer.
3256 (f_language::parser): New member function.
3257 * go-lang.c (go_language_data): Delete la_parser initializer.
3258 (go_language::parser): New member function.
3259 * language.c (unk_lang_parser): Delete.
3260 (language_defn::parser): Define new member function.
3261 (unknown_language_data): Delete la_parser initializer.
3262 (unknown_language::parser): New member function.
3263 (auto_language_data): Delete la_parser initializer.
3264 (auto_language::parser): New member function.
3265 * language.h (language_data): Delete la_parser field.
3266 (language_defn::parser): Declare new member function.
3267 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3268 (m2_language::parser): New member function.
3269 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3270 * opencl-lang.c (opencl_language_data): Likewise.
3271 * p-lang.c (pascal_language_data): Likewise.
3272 (pascal_language::parser): New member function.
3273 * parse.c (parse_exp_in_context): Update call to parser.
3274 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3275 (rust_language::parser): New member function.
3276
3277 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * top.c (print_gdb_configuration): Print --with-python-libdir
3280 configuration value.
3281
3282 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3283
3284 * NEWS: Mention change to the alias command.
3285
3286 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3287
3288 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3289 (alias_command_completer)
3290 (make_alias_options_def_group): New functions.
3291 (alias_opts, alias_option_defs): New struct and array.
3292 (alias_usage_error): Update usage.
3293 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3294 Use option framework.
3295 (_initialize_cli_cmds): Update alias command help.
3296 Update aliases command help.
3297 (show_user):
3298 Add NULL for new default_args lookup_cmd argument.
3299 (valid_command_p): Rename to validate_aliased_command.
3300 Add NULL for new default_args lookup_cmd argument. Verify that the
3301 aliased_command has no default args.
3302 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3303 (lookup_cmd_1, lookup_cmd): New argument default_args.
3304 (add_alias_cmd):
3305 Add NULL for new default_args lookup_cmd argument.
3306 (print_help_for_command): Show default args under the layout
3307 alias some_alias = some_aliased_cmd some_alias_default_arg.
3308 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3309 xfree default_args in destructor.
3310 * cli/cli-script.c (process_next_line, do_define_command):
3311 Add NULL for new default_args lookup_cmd argument.
3312 * command.h: Declare new default_args argument in lookup_cmd
3313 and lookup_cmd_1.
3314 * completer.c (complete_line_internal_1):
3315 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3316 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3317 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3318 Likewise.
3319 * infcmd.c (_initialize_infcmd): Likewise.
3320 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3321 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3322 * python/py-param.c (add_setshow_generic): Likewise.
3323 * remote.c (_initialize_remote): Likewise.
3324 * top.c (execute_command): Prepend default_args if command has some.
3325 (set_verbose):
3326 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3327 * tracepoint.c (validate_actionline, encode_actions_1):
3328 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3329
3330 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331
3332 * jit.c (jit_read_descriptor): Use bool as the return type.
3333 (jit_breakpoint_re_set_internal): Use bool as the return type.
3334 Invert the return value logic; return true if the jit breakpoint
3335 has been successfully initialized.
3336 (jit_inferior_init): Update the call to
3337 jit_breakpoint_re_set_internal.
3338
3339 2020-06-22 Pedro Alves <palves@redhat.com>
3340
3341 PR gdb/25939
3342 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3343 Use the current inferior instead. Don't return
3344 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3345 wait again.
3346 * sol-thread.c (sol_thread_target::wait): Don't reference
3347 inferior_ptid.
3348 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3349 (sol_update_thread_list_callback): Use the current inferior's pid
3350 instead of inferior_ptid.
3351
3352 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3353
3354 * procfs.c: Cleanup many comments.
3355
3356 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3357 (AFTER_WATCHFLAG): Replace by value.
3358
3359 (MAIN_PROC_NAME_FORMAT): Inline ...
3360 (create_procinfo): ... here.
3361
3362 (procfs_debug_inferior): Remove SYS_exec handling.
3363 (syscall_is_exec): Likewise.
3364 (procfs_set_exec_trap): Likewise.
3365
3366 (syscall_is_lwp_exit): Inline in callers.
3367 (syscall_is_exit): Likewise.
3368 (syscall_is_exec): Likewise.
3369 (syscall_is_lwp_create): Likewise.
3370
3371 (invalidate_cache): Remove #if 0 code.
3372
3373 (make_signal_thread_runnable): Remove.
3374 (procfs_target::resume): Remove #if 0 code.
3375
3376 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3377
3378 PR gdb/25939
3379 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3380 call ...
3381 (procfs_target::create_inferior): ... here.
3382
3383 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3384
3385 * exec.c (validate_exec_file): Ensure the build-id is up to
3386 date by calling reopen_exec_file (that checks file timestamp
3387 to decide to re-read the file).
3388
3389 2020-06-18 Pedro Alves <palves@redhat.com>
3390
3391 PR gdb/25412
3392 * gdbthread.h (delete_thread, delete_thread_silent)
3393 (find_thread_ptid): Update comments.
3394 * thread.c (current_thread_): New global.
3395 (is_current_thread): Move higher, and reimplement.
3396 (inferior_thread): Reimplement.
3397 (set_thread_exited): Use bool. Add assertions.
3398 (add_thread_silent): Simplify thread-reuse handling by always
3399 calling delete_thread.
3400 (delete_thread): Remove intro comment.
3401 (find_thread_ptid): Skip exited threads.
3402 (switch_to_thread_no_regs): Write to current_thread_.
3403 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3404 INFERIOR_PTID. Clear current_thread_.
3405
3406 2020-06-18 Pedro Alves <palves@redhat.com>
3407
3408 * aix-thread.c (pd_update): Use switch_to_thread.
3409
3410 2020-06-18 Pedro Alves <palves@redhat.com>
3411
3412 * ravenscar-thread.c (ravenscar_thread_target): Update.
3413 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3414 (ravenscar_thread_target::add_active_thread): ... this. Don't
3415 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3416 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3417
3418 2020-06-18 Pedro Alves <palves@redhat.com>
3419
3420 * nat/windows-nat.c (current_windows_thread): Remove.
3421 * nat/windows-nat.h (current_windows_thread): Remove.
3422 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3423 Adjust.
3424 (display_selectors): Adjust to fetch the current
3425 windows_thread_info based on inferior_ptid.
3426 (fake_create_process): No longer write to current_windows_thread.
3427 (windows_nat_target::get_windows_debug_event):
3428 Don't set inferior_ptid or current_windows_thread.
3429 (windows_nat_target::wait): Adjust to not rely on
3430 current_windows_thread.
3431 (do_initial_windows_stuff): Now a method of windows_nat_target.
3432 Switch to the last_ptid thread.
3433 (windows_nat_target::attach): Adjust.
3434 (windows_nat_target::detach): Use switch_to_no_thread instead of
3435 writing to inferior_ptid directly.
3436 (windows_nat_target::create_inferior): Adjust.
3437
3438 2020-06-18 Pedro Alves <palves@redhat.com>
3439
3440 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3441
3442 2020-06-18 Pedro Alves <palves@redhat.com>
3443
3444 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3445 after creating it, instead of writing to inferior_ptid. Don't
3446 write to inferior_ptid.
3447
3448 2020-06-18 Pedro Alves <palves@redhat.com>
3449
3450 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3451
3452 2020-06-18 Pedro Alves <palves@redhat.com>
3453
3454 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3455 it, instead of writing to inferior_ptid.
3456
3457 2020-06-18 Pedro Alves <palves@redhat.com>
3458
3459 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3460 to inferior_ptid.
3461
3462 2020-06-18 Pedro Alves <palves@redhat.com>
3463
3464 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3465 instead of writing to inferior_ptid directly.
3466
3467 2020-06-18 Pedro Alves <palves@redhat.com>
3468
3469 * corelow.c (core_target::close): Use switch_to_no_thread instead
3470 of writing to inferior_ptid directly.
3471 (add_to_thread_list, core_target_open): Use switch_to_thread
3472 instead of writing to inferior_ptid directly.
3473
3474 2020-06-18 Pedro Alves <palves@redhat.com>
3475
3476 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3477 inferior_ptid.
3478 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3479 inferior_ptid.
3480 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3481 inferior_ptid directly.
3482 (darwin_nat_target::init_thread_list): Switch to thread, instead
3483 of writing to inferior_ptid.
3484 (darwin_nat_target::attach): Don't write to inferior_ptid.
3485 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3486
3487 2020-06-18 Pedro Alves <palves@redhat.com>
3488
3489 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3490 thread.
3491 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3492 Instead use switch_to_thread.
3493 (gnu_nat_target::detach): Use switch_to_no_thread
3494 instead of writing to inferior_ptid directly. Used passed-in
3495 inferior instead of looking up the inferior by pid.
3496
3497 2020-06-18 Pedro Alves <palves@redhat.com>
3498
3499 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3500 inferior_ptid.
3501
3502 2020-06-18 Pedro Alves <palves@redhat.com>
3503
3504 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3505 inferior_ptid.
3506 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3507 thread.
3508 (nto_procfs_target::detach): Avoid referencing
3509 inferior_ptid. Use switch_to_no_thread instead of writing to
3510 inferior_ptid directly.
3511 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3512 instead of writing to inferior_ptid directly.
3513 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3514 to thread.
3515
3516 2020-06-18 Pedro Alves <palves@redhat.com>
3517
3518 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3519 after creating it, instead of writing to inferior_ptid.
3520 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3521 to inferior_ptid directly.
3522 (gdbsim_target::wait): Don't write to inferior_ptid.
3523
3524 2020-06-18 Pedro Alves <palves@redhat.com>
3525
3526 * remote.c (remote_target::remote_notice_new_inferior): Use
3527 switch_to_thread instead of writing to inferior_ptid directly.
3528 (remote_target::add_current_inferior_and_thread): Use
3529 switch_to_no_thread instead of writing to inferior_ptid directly.
3530 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3531 and switch_to_thread instead of using set_current_inferior or
3532 writing to inferior_ptid directly.
3533
3534 2020-06-18 Pedro Alves <palves@redhat.com>
3535
3536 * tracectf.c (ctf_target_open): Switch to added thread instead of
3537 writing to inferior_ptid directly.
3538 (ctf_target::close): Use switch_to_no_thread instead of writing to
3539 inferior_ptid directly.
3540
3541 2020-06-18 Pedro Alves <palves@redhat.com>
3542
3543 * tracefile-tfile.c (tfile_target_open): Don't write to
3544 inferior_ptid directly, instead switch to added thread.
3545 (tfile_target::close): Use switch_to_no_thread instead of writing
3546 to inferior_ptid directly.
3547
3548 2020-06-18 Pedro Alves <palves@redhat.com>
3549
3550 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3551 (procfs_target::detach): Use switch_to_no_thread
3552 instead of writing to inferior_ptid directly.
3553 (do_attach): Change return type to void. Switch to the added
3554 thread.
3555 (procfs_target::create_inferior): Switch to the added thread.
3556 (procfs_do_thread_registers): Don't write to inferior_ptid.
3557
3558 2020-06-18 Pedro Alves <palves@redhat.com>
3559
3560 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3561 of writing to inferior_ptid.
3562 (scoped_restore_exited_inferior): Delete.
3563 (handle_vfork_child_exec_or_exit): Simplify using
3564 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3565 instead of writing to inferior_ptid.
3566 (THREAD_STOPPED_BY): Delete.
3567 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3568 (thread_stopped_by_hw_breakpoint): Delete.
3569 (save_waitstatus): Use
3570 scoped_restore_current_thread+switch_to_thread, and call
3571 target_stopped_by_watchpoint instead of
3572 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3573 instead of thread_stopped_by_sw_breakpoint, and
3574 target_stopped_by_hw_breakpoint instead of
3575 thread_stopped_by_hw_breakpoint.
3576 (handle_inferior_event)
3577 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3578 inferior_ptid directly, nor
3579 set_current_inferior/set_current_program_space. Use
3580 switch_to_thread / switch_to_inferior_no_thread instead.
3581
3582 2020-06-18 Pedro Alves <palves@redhat.com>
3583
3584 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3585 instead of writing to inferior_ptid.
3586
3587 2020-06-18 Pedro Alves <palves@redhat.com>
3588
3589 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3590 added thread.
3591 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3592 to the added thread.
3593 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3594 instead of writing to inferior_ptid.
3595
3596 2020-06-18 Pedro Alves <palves@redhat.com>
3597
3598 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3599 (register_to_value_test): Mock a program_space too. Heap-allocate
3600 the address space. Don't write to inferior_ptid. Use
3601 switch_to_thread instead.
3602
3603 2020-06-18 Pedro Alves <palves@redhat.com>
3604
3605 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3606 Delete.
3607 (find_signalled_thread()): New, factored out from
3608 linux_make_corefile_notes and adjusted to handle exited threads.
3609 (linux_make_corefile_notes): Adjust to use the new
3610 find_signalled_thread.
3611
3612 2020-06-18 Pedro Alves <palves@redhat.com>
3613
3614 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3615 of saving/restoring inferior_ptid.
3616
3617 2020-06-17 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3620 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3621 declare.
3622 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3623
3624 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3625
3626 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3627 of partial symtabs.
3628
3629 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * regformats/reg-arm.dat: Remove.
3632 * regformats/reg-bfin.dat: Remove.
3633 * regformats/reg-cris.dat: Remove.
3634 * regformats/reg-crisv32.dat: Remove.
3635 * regformats/reg-m32r.dat: Remove.
3636 * regformats/reg-tilegx.dat: Remove.
3637 * regformats/reg-tilegx32.dat: Remove.
3638
3639 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * features/Makefile (WHICH): Remove arm files.
3642 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3643 * regformats/arm/arm-with-neon.dat: Remove.
3644 * regformats/arm/arm-with-vfpv2.dat: Remove.
3645 * regformats/arm/arm-with-vfpv3.dat: Remove.
3646
3647 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3648
3649 * features/Makefile (XMLTOC): Remove rx.xml.
3650
3651 2020-06-17 Pedro Alves <palves@redhat.com>
3652
3653 * gdbthread.h (thread_control_state) <trap_expected> Update
3654 comments.
3655
3656 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3659 ada_language::lookup_symbol_nonlocal.
3660 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3661 (ada_language::lookup_symbol_nonlocal): New member function,
3662 implementation from ada_lookup_symbol_nonlocal.
3663 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3664 initializer.
3665 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3666 initializer.
3667 (cplus_language::lookup_symbol_nonlocal): New member function.
3668 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3669 (minimal_language_data) Likewise.
3670 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3671 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3672 initializer.
3673 (d_language::lookup_symbol_nonlocal): New member function.
3674 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3675 initializer.
3676 (f_language::lookup_symbol_nonlocal): New member function.
3677 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3678 initializer.
3679 * language.c (unknown_language_data): Likewise.
3680 (auto_language_data): Likewise.
3681 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3682 field.
3683 (language_defn::lookup_symbol_nonlocal): New member function.
3684 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3685 initializer.
3686 * objc-lang.c (objc_language_data): Likewise.
3687 * opencl-lang.c (opencl_language_data): Likewise.
3688 * p-lang.c (pascal_language_data): Likewise.
3689 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3690 rust_language::lookup_symbol_nonlocal.
3691 (rust_language_data): Delete la_lookup_symbol_nonlocal
3692 initializer.
3693 (rust_language::lookup_symbol_nonlocal): New member function,
3694 implementation from rust_lookup_symbol_nonlocal.
3695 * symtab.c (lookup_symbol_aux): Update call to
3696 lookup_symbol_nonlocal.
3697 (basic_lookup_symbol_nonlocal): Rename to...
3698 (language_defn::lookup_symbol_nonlocal): ...this, and update
3699 header comment. Remove language_defn parameter, and replace with
3700 uses of `this'.
3701 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3702
3703 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3704
3705 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3706 initializer.
3707 (ada_language::value_print_inner): New member function.
3708 * c-lang.c (c_language_data): Delete la_value_print_inner
3709 initializer.
3710 (cplus_language_data): Likewise.
3711 (asm_language_data): Likewise.
3712 (minimal_language_data): Likewise.
3713 * d-lang.c (d_language_data): Likewise.
3714 (d_language::value_print_inner): New member function.
3715 * f-lang.c (f_language_data): Delete la_value_print_inner
3716 initializer.
3717 (f_language::value_print_inner): New member function.
3718 * f-lang.h (f_value_print_innner): Rename to...
3719 (f_value_print_inner): ...this (note spelling of 'inner').
3720 * f-valprint.c (f_value_print_innner): Rename to...
3721 (f_value_print_inner): ...this (note spelling of 'inner').
3722 * go-lang.c (go_language_data): Delete la_value_print_inner
3723 initializer.
3724 (go_language::value_print_inner): New member function.
3725 * language.c (language_defn::value_print_inner): Define new member
3726 function.
3727 (unk_lang_value_print_inner): Delete.
3728 (unknown_language_data): Delete la_value_print_inner initializer.
3729 (unknown_language::value_print_inner): New member function.
3730 (auto_language_data): Delete la_value_print_inner initializer.
3731 (auto_language::value_print_inner): New member function.
3732 * language.h (language_data): Delete la_value_print_inner field.
3733 (language_defn::value_print_inner): Delcare new member function.
3734 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3735 initializer.
3736 (m2_language::value_print_inner): New member function.
3737 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3738 initializer.
3739 * opencl-lang.c (opencl_language_data): Likewise.
3740 * p-lang.c (pascal_language_data): Likewise.
3741 (pascal_language::value_print_inner): New member function.
3742 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3743 initializer.
3744 (rust_language::value_print_inner): New member function.
3745 * valprint.c (do_val_print): Update call to value_print_inner.
3746
3747 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3748
3749 * ada-lang.c (ada_language_data): Delete la_value_print
3750 initializer.
3751 (ada_language::value_print): New member function.
3752 * c-lang.c (c_language_data): Delete la_value_print initializer.
3753 (cplus_language_data): Likewise.
3754 (asm_language_data): Likewise.
3755 (minimal_language_data): Likewise.
3756 * d-lang.c (d_language_data): Likewise.
3757 * f-lang.c (f_language_data): Likewise.
3758 * go-lang.c (go_language_data): Likewise.
3759 * language.c (unk_lang_value_print): Delete.
3760 (language_defn::value_print): Define new member function.
3761 (unknown_language_data): Delete la_value_print initializer.
3762 (unknown_language::value_print): New member function.
3763 (auto_language_data): Delete la_value_print initializer.
3764 (auto_language::value_print): New member function.
3765 * language.h (language_data): Delete la_value_print field.
3766 (language_defn::value_print): Declare new member function.
3767 (LA_VALUE_PRINT): Update call to value_print.
3768 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3769 * objc-lang.c (objc_language_data): Likewise.
3770 * opencl-lang.c (opencl_language_data): Likewise.
3771 * p-lang.c (pascal_language_data): Likewise.
3772 (pascal_language::value_print): New member function.
3773 * rust-lang.c (rust_language_data): Delete la_value_print
3774 initializer.
3775
3776 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3777
3778 * ada-lang.c (ada_watch_location_expression): Rename to
3779 ada_language::watch_location_expression.
3780 (ada_language_data): Delete la_watch_location_expression
3781 initializer.
3782 (ada_language::watch_location_expression): New member function,
3783 implementation from ada_watch_location_expression.
3784 * breakpoint.c (watch_command_1): Update call to
3785 watch_location_expression.
3786 * c-lang.c (c_watch_location_expression): Rename to
3787 language_defn::watch_location_expression.
3788 (c_language_data): Delete la_watch_location_expression
3789 initializer.
3790 (cplus_language_data): Likewise.
3791 (asm_language_data): Likewise.
3792 (minimal_language_data): Likewise.
3793 * c-lang.h (c_watch_location_expression): Delete declaration.
3794 * d-lang.c (d_language_data): Delete la_watch_location_expression
3795 initializer.
3796 * f-lang.c (f_language_data): Likewise.
3797 * go-lang.c (go_language_data): Likewise.
3798 * language.c (language_defn::watch_location_expression): Member
3799 function implementation from c_watch_location_expression.
3800 (unknown_language_data): Delete la_watch_location_expression
3801 initializer.
3802 (auto_language_data): Likewise.
3803 * language.h (language_data): Delete la_watch_location_expression
3804 field.
3805 (language_defn::watch_location_expression): Declare new member
3806 function.
3807 * m2-lang.c (m2_language_data): Delete
3808 la_watch_location_expression initializer.
3809 * objc-lang.c (objc_language_data): Likewise.
3810 * opencl-lang.c (opencl_language_data): Likewise.
3811 * p-lang.c (pascal_language_data): Likewise.
3812 * rust-lang.c (rust_watch_location_expression): Rename to
3813 rust_language::watch_location_expression.
3814 (rust_language_data): Delete la_watch_location_expression
3815 initializer.
3816 (rust_language::watch_location_expression): New member function,
3817 implementation from rust_watch_location_expression.
3818
3819 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3822 ada_language::collect_symbol_completion_matches.
3823 (ada_language_data): Delete la_collect_symbol_completion_matches
3824 initializer.
3825 (ada_language::collect_symbol_completion_matches): New member
3826 function, implementation from
3827 ada_collect_symbol_completion_matches.
3828 * c-lang.c (c_language_data): Delete
3829 la_collect_symbol_completion_matches initializer.
3830 (cplus_language_data): Likewise.
3831 (asm_language_data): Likewise.
3832 (minimal_language_data): Likewise.
3833 * d-lang.c (d_language_data): Likewise.
3834 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3835 f_language::collect_symbol_completion_matches.
3836 (f_language_data): Delete la_collect_symbol_completion_matches
3837 initializer.
3838 (f_language::collect_symbol_completion_matches) New member
3839 function, implementation from f_collect_symbol_completion_matches.
3840 * go-lang.c (go_language_data): Delete
3841 la_collect_symbol_completion_matches initializer.
3842 * language.c (unknown_language_data): Likewise.
3843 (auto_language_data): Likewise.
3844 * language.h (language_data): Delete
3845 la_collect_symbol_completion_matches field.
3846 (language_defn::collect_symbol_completion_matches): New member
3847 function.
3848 * m2-lang.c (m2_language_data): Delete
3849 la_collect_symbol_completion_matches initializer.
3850 * objc-lang.c (objc_language_data): Likewise.
3851 * opencl-lang.c (opencl_language_data): Likewise.
3852 * p-lang.c (pascal_language_data): Likewise.
3853 * rust-lang.c (rust_language_data): Likewise.
3854 * symtab.c (default_collect_symbol_completion_matches): Delete.
3855 (collect_symbol_completion_matches): Update call to
3856 collect_symbol_completion_matches.
3857 (collect_symbol_completion_matches_type): Likewise.
3858 * symtab.h (default_collect_symbol_completion_matches): Delete
3859 declaration.
3860
3861 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3864 (ada_language_data): Delete la_word_break_characters initializer.
3865 (ada_language::word_break_characters): New member function.
3866 * c-lang.c (c_language_data): Delete la_word_break_characters
3867 initializer.
3868 (cplus_language_data): Likewise.
3869 (asm_language_data): Likewise.
3870 (minimal_language_data): Likewise.
3871 * completer.c: Update global comment.
3872 (advance_to_expression_complete_word_point): Update call to
3873 word_break_characters.
3874 (complete_files_symbols): Likewise.
3875 (complete_line_internal_1): Likewise.
3876 (default_completer_handle_brkchars): Likewise.
3877 (skip_quoted_chars): Likewise.
3878 * d-lang.c (d_language_data): Delete la_word_break_characters
3879 initializer.
3880 * f-lang.c (f_word_break_characters): Delete.
3881 (f_language_data): Delete la_word_break_characters initializer.
3882 (f_language::word_break_characters): New member function.
3883 * go-lang.c (go_language_data): Delete la_word_break_characters
3884 initializer.
3885 * language.c (unknown_language_data): Likewise.
3886 (auto_language_data): Likewise.
3887 * language.h (default_word_break_characters): Move declaration to
3888 earlier in the file.
3889 (language_data): Delete la_word_break_characters field.
3890 (language_defn::word_break_characters): New member function.
3891 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3892 initializer.
3893 * objc-lang.c (objc_language_data): Likewise.
3894 * opencl-lang.c (opencl_language_data): Likewise.
3895 * p-lang.c (pascal_language_data): Likewise.
3896 * rust-lang.c (rust_language_data): Likewise.
3897
3898 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3901 (ada_language_data): Delete la_get_symbol_name_matcher
3902 initializer.
3903 (language_defn::get_symbol_name_matcher_inner): New member
3904 function.
3905 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3906 initializer.
3907 (cplus_language_data): Likewise.
3908 (cplus_language::get_symbol_name_matcher_inner): New member
3909 function.
3910 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3911 (minimal_language_data): Likewise.
3912 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3913 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3914 initializer.
3915 * dictionary.c (iter_match_first_hashed): Update call to
3916 get_symbol_name_matcher.
3917 (iter_match_next_hashed): Likewise.
3918 (iter_match_next_linear): Likewise.
3919 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3920 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3921 initializer.
3922 (f_language::get_symbol_name_matcher_inner): New member function.
3923 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3924 initializer.
3925 * language.c (default_symbol_name_matcher): Update header comment,
3926 make static.
3927 (language_defn::get_symbol_name_matcher): New definition.
3928 (language_defn::get_symbol_name_matcher_inner): Likewise.
3929 (get_symbol_name_matcher): Delete.
3930 (unknown_language_data): Delete la_get_symbol_name_matcher
3931 initializer.
3932 (auto_language_data): Likewise.
3933 * language.h (language_data): Delete la_get_symbol_name_matcher
3934 field.
3935 (language_defn::get_symbol_name_matcher): New member function.
3936 (language_defn::get_symbol_name_matcher_inner): Likewise.
3937 (default_symbol_name_matcher): Delete declaration.
3938 * linespec.c (find_methods): Update call to
3939 get_symbol_name_matcher.
3940 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3941 initializer.
3942 * minsyms.c (lookup_minimal_symbol): Update call to
3943 get_symbol_name_matcher.
3944 (iterate_over_minimal_symbols): Likewise.
3945 * objc-lang.c (objc_language_data): Delete
3946 la_get_symbol_name_matcher initializer.
3947 * opencl-lang.c (opencl_language_data): Likewise.
3948 * p-lang.c (pascal_language_data): Likewise.
3949 * psymtab.c (psymbol_name_matches): Update call to
3950 get_symbol_name_matcher.
3951 * rust-lang.c (rust_language_data): Delete
3952 la_get_symbol_name_matcher initializer.
3953 * symtab.c (symbol_matches_search_name): Update call to
3954 get_symbol_name_matcher.
3955 (compare_symbol_name): Likewise.
3956
3957 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3958
3959 * ada-lang.c (ada_language_data): Delete la_compute_program
3960 initializer.
3961 * c-lang.c (c_language_data): Likewise.
3962 (c_language::compute_program): New member function.
3963 (cplus_language_data): Delete la_compute_program initializer.
3964 (cplus_language::compute_program): New member function.
3965 (asm_language_data): Delete la_compute_program initializer.
3966 (minimal_language_data): Likewise.
3967 * c-lang.h (c_compute_program): Update comment.
3968 (cplus_compute_program): Likewise.
3969 * compile/compile-c-support.c (c_compute_program): Likewise.
3970 (cplus_compute_program): Likewise.
3971 * compile/compile.c (compile_to_object): Update call to
3972 la_compute_program.
3973 * d-lang.c (d_language_data): Delete la_compute_program
3974 initializer.
3975 * f-lang.c (f_language_data): Likewise.
3976 * go-lang.c (go_language_data): Likewise.
3977 * language.c (unknown_language_data): Likewise.
3978 (auto_language_data): Likewise.
3979 * language.h (language_data): Delete la_compute_program field.
3980 (language_defn::compute_program): New member function.
3981 * m2-lang.c (m2_language_data): Delete la_compute_program
3982 initializer.
3983 * objc-lang.c (objc_language_data): Likewise.
3984 * opencl-lang.c (opencl_language_data): Likewise.
3985 * p-lang.c (pascal_language_data): Likewise.
3986 * rust-lang.c (rust_language_data): Likewise.
3987
3988 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_language_data) Delete
3991 la_class_name_from_physname initializer.
3992 * c-lang.c (c_language_data): Likewise.
3993 (cplus_language_data): Likewise.
3994 (cplus_language::class_name_from_physname): New member function.
3995 (asm_language_data): Delete la_class_name_from_physname
3996 initializer.
3997 (minimal_language_data): Likewise.
3998 * d-lang.c (d_language_data): Likewise.
3999 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4000 method on language_defn class.
4001 (guess_full_die_structure_name): Likewise.
4002 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4003 initializer.
4004 * go-lang.c (go_language_data): Likewise.
4005 * language.c (language_class_name_from_physname): Delete.
4006 (unk_lang_class_name): Delete.
4007 (unknown_language_data): Delete la_class_name_from_physname
4008 initializer.
4009 (auto_language_data): Likewise.
4010 * language.h (language_data): Delete la_class_name_from_physname
4011 field.
4012 (language_defn::class_name_from_physname): New function.
4013 (language_class_name_from_physname): Delete declaration.
4014 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4015 initializer.
4016 * objc-lang.c (objc_language_data): Likewise.
4017 * opencl-lang.c (opencl_language_data): Likewise.
4018 * p-lang.c (pascal_language_data): Likewise.
4019 * rust-lang.c (rust_language_data): Likewise.
4020
4021 2020-06-16 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-data.h (STATUS_NAME): New macro.
4024 * tui/tui-layout.c (tui_remove_some_windows)
4025 (initialize_known_windows, tui_register_window)
4026 (tui_layout_split::remove_windows, initialize_layouts)
4027 (tui_new_layout_command): Don't use hard-coded window names.
4028
4029 2020-06-16 Tom Tromey <tom@tromey.com>
4030
4031 PR tui/25348:
4032 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4033 tui_initialize_readline. Only run once. Call rl_initialize.
4034 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4035 tui_initialize_readline.
4036 * tui/tui-io.c (tui_setup_io): Call
4037 tui_ensure_readline_initialized.
4038 * tui/tui-interp.c (tui_interp::init): Update.
4039
4040 2020-06-16 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4043 Also preserve the status window.
4044
4045 2020-06-16 Tom Tromey <tom@tromey.com>
4046
4047 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4048 where m_window==nullptr.
4049
4050 2020-06-15 Tom Tromey <tromey@adacore.com>
4051
4052 * windows-nat.c (windows_nat::handle_output_debug_string):
4053 Update.
4054 (windows_nat::handle_ms_vc_exception): Update.
4055 * target.h (target_read_string): Change API.
4056 * target.c (target_read_string): Change API.
4057 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4058 Update.
4059 * solib-frv.c (frv_current_sos): Update.
4060 * solib-dsbt.c (dsbt_current_sos): Update.
4061 * solib-darwin.c (darwin_current_sos): Update.
4062 * linux-thread-db.c (inferior_has_bug): Update.
4063 * expprint.c (print_subexp_standard): Update.
4064 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4065 (ada_exception_message_1): Update.
4066
4067 2020-06-15 Tom Tromey <tromey@adacore.com>
4068
4069 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4070
4071 2020-06-15 Tom Tromey <tromey@adacore.com>
4072
4073 * valprint.c (read_string): Update comment.
4074 * target.c (MIN): Remove.
4075 (target_read_string): Rewrite.
4076
4077 2020-06-15 Tom Tromey <tromey@adacore.com>
4078
4079 * corefile.c (read_memory_string): Remove.
4080 * ada-valprint.c (ada_value_print_ptr): Update.
4081 * ada-lang.h (ada_tag_name): Change return type.
4082 * ada-lang.c (type_from_tag): Update.
4083 (ada_tag_name_from_tsd): Change return type. Use
4084 target_read_string.
4085 (ada_tag_name): Likewise.
4086 * gdbcore.h (read_memory_string): Don't declare.
4087
4088 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4089
4090 * symtab.c (rbreak_command): Ignore Windows drive colon.
4091
4092 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * NEWS: Mention removed GDBserver host support.
4095
4096 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4097
4098 * features/riscv/rebuild-csr-xml.sh: Updated.
4099
4100 2020-06-11 Tom Tromey <tom@tromey.com>
4101
4102 PR gdb/18318:
4103 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4104
4105 2020-06-09 Jonny Grant <jg@jguk.org>
4106 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4107
4108 * main.c (captured_main_1): Don't print new line after help.
4109 (print_gdb_help): add mailing list and IRC channel information
4110 to --help. Add new lines between items in the footer. Remove
4111 quotes around bug url.
4112
4113 2020-06-11 Keith Seitz <keiths@redhat.com>
4114
4115 PR gdb/21356
4116 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4117 Resolve typedefs for type length calculations.
4118
4119 2020-06-10 Tom de Vries <tdevries@suse.de>
4120
4121 PR ada/24713
4122 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4123 (write_psymbols): Enable .gdb_index for ada.
4124 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4125 ada.
4126
4127 2020-06-10 Tom de Vries <tdevries@suse.de>
4128
4129 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4130 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4131 namei" instead of "const char *name" argument.
4132 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4133 dw2_symtab_iter_init.
4134
4135 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4138 to use type::field and field::type instead.
4139
4140 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4143 to use field::type instead.
4144
4145 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdbtypes.h (struct field) <type, set_type>: New methods.
4148 Rename `type` field to...
4149 <m_type>: ... this. Change references throughout to use type or
4150 set_type methods.
4151 (FIELD_TYPE): Use field::type. Change call sites that modify
4152 the field's type to use field::set_type instead.
4153
4154 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4157 to use type::index_type instead.
4158
4159 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4160
4161 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4162 methods.
4163 (TYPE_INDEX_TYPE): Use type::index_type.
4164 * gdbtypes.c (create_array_type_with_stride): Likewise.
4165
4166 2020-06-07 Tom Tromey <tom@tromey.com>
4167
4168 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4169 parameter.
4170 (generic_value_print): Update.
4171
4172 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 Revert commit 982a38f60b0.
4175 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4176
4177 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4180 avoid use after free.
4181
4182 2020-06-05 Tom de Vries <tdevries@suse.de>
4183
4184 * NEWS: Fix typos.
4185
4186 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4189 the per_bfd object.
4190 (dwarf2_read_debug_names): Likewise.
4191 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4192 object when re-using a per_bfd object with an index.
4193
4194 2020-06-03 Tom de Vries <tdevries@suse.de>
4195
4196 PR symtab/26046
4197 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4198 children for C++.
4199 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4200 DW_TAG_subprogram.
4201
4202 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * ada-lang.c (ada_language_data): Delete skip_trampoline
4205 initializer.
4206 * c-lang.c (c_language_data): Likewise.
4207 (cplus_language_data): Likewise.
4208 (cplus_language::skip_trampoline): New member function.
4209 (asm_language_data): Delete skip_trampoline initializer.
4210 (minimal_language_data): Likewise.
4211 * d-lang.c (d_language_data): Likewise.
4212 * f-lang.c (f_language_data): Likewise.
4213 * go-lang.c (go_language_data): Likewise.
4214 * language.c (unk_lang_trampoline): Delete function.
4215 (skip_language_trampoline): Update.
4216 (unknown_language_data): Delete skip_trampoline initializer.
4217 (auto_language_data): Likewise.
4218 * language.h (language_data): Delete skip_trampoline field.
4219 (language_defn::skip_trampoline): New function.
4220 * m2-lang.c (m2_language_data): Delete skip_trampoline
4221 initializer.
4222 * objc-lang.c (objc_skip_trampoline): Delete function, move
4223 implementation to objc_language::skip_trampoline.
4224 (objc_language_data): Delete skip_trampoline initializer.
4225 (objc_language::skip_trampoline): New member function with
4226 implementation from objc_skip_trampoline.
4227 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4228 initializer.
4229 * p-lang.c (pascal_language_data): Likewise.
4230 * rust-lang.c (rust_language_data): Likewise.
4231
4232 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4235 (ada_language::demangle): New member function.
4236 * c-lang.c (c_language_data): Delete la_demangle initializer.
4237 (cplus_language_data): Delete la_demangle initializer.
4238 (cplus_language::demangle): New member function.
4239 (asm_language_data): Delete la_demangle initializer.
4240 (minimal_language_data): Delete la_demangle initializer.
4241 * d-lang.c (d_language_data): Delete la_demangle initializer.
4242 (d_language::demangle): New member function.
4243 * f-lang.c (f_language_data): Delete la_demangle initializer.
4244 (f_language::demangle): New member function.
4245 * go-lang.c (go_language_data): Delete la_demangle initializer.
4246 (go_language::demangle): New member function.
4247 * language.c (language_demangle): Update.
4248 (unk_lang_demangle): Delete.
4249 (unknown_language_data): Delete la_demangle initializer.
4250 (unknown_language::demangle): New member function.
4251 (auto_language_data): Delete la_demangle initializer.
4252 (auto_language::demangle): New member function.
4253 * language.h (language_data): Delete la_demangle field.
4254 (language_defn::demangle): New function.
4255 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4256 * objc-lang.c (objc_language_data): Delete la_demangle
4257 initializer.
4258 (objc_language::demangle): New member function.
4259 * opencl-lang.c (opencl_language_data): Delete la_demangle
4260 initializer.
4261 * p-lang.c (pascal_language_data): Likewise.
4262 * rust-lang.c (rust_language_data): Likewise.
4263 (rust_language::demangle): New member function.
4264
4265 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * ada-lang.c (ada_language_data): Delete la_print_type
4268 initializer.
4269 (ada_language::print_type): New member function.
4270 * c-lang.c (c_language_data): Delete la_print_type initializer.
4271 (c_language::print_type): New member function.
4272 (cplus_language_data): Delete la_print_type initializer.
4273 (cplus_language::print_type): New member function.
4274 (asm_language_data): Delete la_print_type initializer.
4275 (asm_language::print_type): New member function.
4276 (minimal_language_data): Delete la_print_type initializer.
4277 (minimal_language::print_type): New member function.
4278 * d-lang.c (d_language_data): Delete la_print_type initializer.
4279 (d_language::print_type): New member function.
4280 * f-lang.c (f_language_data): Delete la_print_type initializer.
4281 (f_language::print_type): New member function.
4282 * go-lang.c (go_language_data): Delete la_print_type initializer.
4283 (go_language::print_type): New member function.
4284 * language.c (unk_lang_print_type): Delete.
4285 (unknown_language_data): Delete la_print_type initializer.
4286 (unknown_language::print_type): New member function.
4287 (auto_language_data): Delete la_print_type initializer.
4288 (auto_language::print_type): New member function.
4289 * language.h (language_data): Delete la_print_type field.
4290 (language_defn::print_type): New function.
4291 (LA_PRINT_TYPE): Update.
4292 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4293 (m2_language::print_type): New member function.
4294 * objc-lang.c (objc_language_data): Delete la_print_type
4295 initializer.
4296 (objc_language::print_type): New member function.
4297 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4298 to opencl_language::print_type.
4299 (opencl_language_data): Delete la_print_type initializer.
4300 (opencl_language::print_type): New member function, implementation
4301 from opencl_print_type.
4302 * p-lang.c (pascal_language_data): Delete la_print_type
4303 initializer.
4304 (pascal_language::print_type): New member function.
4305 * rust-lang.c (rust_print_type): Delete, implementation moved to
4306 rust_language::print_type.
4307 (rust_language_data): Delete la_print_type initializer.
4308 (rust_language::print_type): New member function, implementation
4309 from rust_print_type.
4310
4311 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4312
4313 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4314 implementation moves to...
4315 (ada_language::sniff_from_mangled_name): ...here. Update return
4316 type.
4317 (ada_language_data): Delete la_sniff_from_mangled_name
4318 initializer.
4319 * c-lang.c (c_language_data): Likewise.
4320 (cplus_language_data): Likewise.
4321 (cplus_language::sniff_from_mangled_name): New member function,
4322 implementation taken from gdb_sniff_from_mangled_name.
4323 (asm_language_data): Delete la_sniff_from_mangled_name
4324 initializer.
4325 (minimal_language_data): Likewise.
4326 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4327 implementation moves to cplus_language::sniff_from_mangled_name.
4328 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4329 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4330 moves to...
4331 (d_language::sniff_from_mangled_name): ...here.
4332 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4333 * f-lang.c (f_language_data): Likewise.
4334 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4335 moves to...
4336 (go_language::sniff_from_mangled_name): ...here.
4337 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4338 * language.c (language_sniff_from_mangled_name): Delete.
4339 (unknown_language_data): Delete la_sniff_from_mangled_name
4340 initializer.
4341 (auto_language_data): Likewise.
4342 * language.h (language_data): Delete la_sniff_from_mangled_name
4343 field.
4344 (language_defn::sniff_from_mangled_name): New function.
4345 (language_sniff_from_mangled_name): Delete declaration.
4346 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4347 field.
4348 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4349 implementation moves to...
4350 (objc_language::sniff_from_mangled_name): ...here.
4351 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4352 * opencl-lang.c (opencl_language_data): Likewise.
4353 * p-lang.c (pascal_language_data): Likewise.
4354 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4355 implementation moves to...
4356 (rust_language::sniff_from_mangled_name): ...here.
4357 (rust_language_data): Delete la_sniff_from_mangled_name
4358 initializer.
4359 * symtab.c (symbol_find_demangled_name): Call
4360 sniff_from_mangled_name member function.
4361
4362 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4363
4364 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4365 initializer.
4366 * c-lang.c (c_language_data): Likewise.
4367 (cplus_language_data): Likewise.
4368 (cplus_language::search_name_hash): New member function.
4369 (asm_language_data): Delete la_search_name_hash initializer.
4370 (minimal_language_data): Likewise.
4371 * d-lang.c (d_language_data): Likewise.
4372 * dictionary.c (default_search_name_hash): Rename to...
4373 (language_defn::search_name_hash): ...this.
4374 * f-lang.c (f_language_data): Likewise.
4375 (f_language::search_name_hash): New member function.
4376 * go-lang.c (go_language_data): Delete la_search_name_hash
4377 initializer.
4378 * language.c (unknown_language_data): Likewise.
4379 (auto_language_data): Likewise.
4380 * language.h (struct language_data): Delete la_search_name_hash
4381 field.
4382 (language_defn::search_name_hash): Declare new member function.
4383 (default_search_name_hash): Delete declaration.
4384 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4385 initializer.
4386 * objc-lang.c (objc_language_data): Likewise.
4387 * opencl-lang.c (opencl_language_data): Likewise.
4388 * p-lang.c (pascal_language_data): Likewise.
4389 * rust-lang.c (rust_language_data): Likewise.
4390 * symtab.c (search_name_hash): Update call.
4391
4392 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4395 initializer.
4396 * c-lang.c (class compile_instance): Declare.
4397 (c_language_data): Delete la_get_compile_instance initializer.
4398 (c_language::get_compile_instance): New member function.
4399 (cplus_language_data): Delete la_get_compile_instance initializer.
4400 (cplus_language::get_compile_instance): New member function.
4401 (asm_language_data): Delete la_get_compile_instance initializer.
4402 (minimal_language_data): Likewise.
4403 * c-lang.h (c_get_compile_context): Update comment.
4404 (cplus_get_compile_context): Update comment.
4405 * compile/compile.c (compile_to_object): Update calls, don't rely
4406 on function pointer being NULL.
4407 * d-lang.c (d_language_data): Delete la_get_compile_instance
4408 initializer.
4409 * f-lang.c (f_language_data): Likewise.
4410 * go-lang.c (go_language_data): Likewise.
4411 * language.c (unknown_language_data): Likewise.
4412 (auto_language_data): Likewise.
4413 * language.h (language_data): Delete la_get_compile_instance field.
4414 (language_defn::get_compile_instance): New member function.
4415 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4416 initializer.
4417 * objc-lang.c (objc_language_data): Likewise.
4418 * opencl-lang.c (opencl_language_data): Likewise.
4419 * p-lang.c (pascal_language_data): Likewise.
4420 * rust-lang.c (rust_language_data): Likewise.
4421
4422 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * ada-lang.c (ada_add_all_symbols): Update comment.
4425 (ada_iterate_over_symbols): Delete, move implementation to...
4426 (ada_language::iterate_over_symbols): ...here, a new member
4427 function, rewrite to use range based for loop.
4428 (ada_language_data): Delete la_iterate_over_symbols initializer.
4429 * c-lang.c (c_language_data): Likewise.
4430 (cplus_language_data): Likewise.
4431 (asm_language_data): Likewise.
4432 (minimal_language_data): Likewise.
4433 * d-lang.c (d_language_data): Likewise.
4434 * f-lang.c (f_language_data): Likewise.
4435 * go-lang.c (go_language_data): Likewise.
4436 * language.c (unknown_language_data): Likewise.
4437 (auto_language_data): Likewise.
4438 * language.h (language_data): Delete la_iterate_over_symbols field.
4439 (language_defn::iterate_over_symbols): New member function.
4440 (LA_ITERATE_OVER_SYMBOLS): Update.
4441 * linespec.c (iterate_over_all_matching_symtabs): Update.
4442 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4443 initializer.
4444 * objc-lang.c (objc_language_data): Likewise.
4445 * opencl-lang.c (opencl_language_data): Likewise.
4446 * p-lang.c (pascal_language_data): Likewise.
4447 * rust-lang.c (rust_language_data): Likewise.
4448
4449 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4450
4451 * ada-lang.c (ada_language_data): Delete
4452 la_lookup_transparent_type initializer.
4453 * c-lang.c (c_language_data): Likewise.
4454 (cplus_language_data): Likewise.
4455 (cplus_language::lookup_transparent_type): New member function.
4456 (asm_language_data): Delete la_lookup_transparent_type
4457 initializer.
4458 (minimal_language_data): Likewise.
4459 * d-lang.c (d_language_data): Likewise.
4460 * f-lang.c (f_language_data): Likewise.
4461 * go-lang.c (go_language_data): Likewise.
4462 * language.c (unknown_language_data): Likewise.
4463 (auto_language_data): Likewise.
4464 * language.h (struct language_data): Delete
4465 la_lookup_transparent_type field.
4466 (language_defn::lookup_transparent_type): New member function.
4467 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4468 initializer.
4469 * objc-lang.c (objc_language_data): Likewise.
4470 * opencl-lang.c (opencl_language_data): Likewise.
4471 * p-lang.c (pascal_language_data): Likewise.
4472 * rust-lang.c (rust_language_data): Likewise.
4473 * symtab.c (symbol_matches_domain): Update call.
4474
4475 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4476
4477 * ada-lang.c (ada_language_arch_info): Delete function, move
4478 implementation to...
4479 (ada_language::language_arch_info): ...here, a new member
4480 function.
4481 (ada_language_data): Delete la_language_arch_info.
4482 * c-lang.c (c_language_data): Likewise.
4483 (c_language::language_arch_info): New member function.
4484 (cplus_language_arch_info): Delete function, move
4485 implementation to...
4486 (cplus_language::language_arch_info): ...here, a new member
4487 function.
4488 (cplus_language_data): Delete la_language_arch_info.
4489 (asm_language_data): Likewise.
4490 (asm_language::language_arch_info): New member function.
4491 (minimal_language_data): Delete la_language_arch_info.
4492 (minimal_language::language_arch_info): New member function.
4493 * d-lang.c (d_language_arch_info): Delete function, move
4494 implementation to...
4495 (d_language::language_arch_info): ...here, a new member
4496 function.
4497 (d_language_data): Delete la_language_arch_info.
4498 * f-lang.c (f_language_arch_info): Delete function, move
4499 implementation to...
4500 (f_language::language_arch_info): ...here, a new member
4501 function.
4502 (f_language_data): Delete la_language_arch_info.
4503 * go-lang.c (go_language_arch_info): Delete function, move
4504 implementation to...
4505 (go_language::language_arch_info): ...here, a new member
4506 function.
4507 (go_language_data): Delete la_language_arch_info.
4508 * language.c (unknown_language_data): Likewise.
4509 (unknown_language::language_arch_info): New member function.
4510 (auto_language_data): Delete la_language_arch_info.
4511 (auto_language::language_arch_info): New member function.
4512 (language_gdbarch_post_init): Update call to
4513 la_language_arch_info.
4514 * language.h (language_data): Delete la_language_arch_info
4515 function pointer.
4516 (language_defn::language_arch_info): New function.
4517 * m2-lang.c (m2_language_arch_info): Delete function, move
4518 implementation to...
4519 (m2_language::language_arch_info): ...here, a new member
4520 function.
4521 (m2_language_data): Delete la_language_arch_info.
4522 * objc-lang.c (objc_language_arch_info): Delete function, move
4523 implementation to...
4524 (objc_language::language_arch_info): ...here, a new member
4525 function.
4526 (objc_language_data): Delete la_language_arch_info.
4527 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4528 implementation to...
4529 (opencl_language::language_arch_info): ...here, a new member
4530 function.
4531 (opencl_language_data): Delete la_language_arch_info.
4532 * p-lang.c (pascal_language_arch_info): Delete function, move
4533 implementation to...
4534 (pascal_language::language_arch_info): ...here, a new member
4535 function.
4536 (pascal_language_data): Delete la_language_arch_info.
4537 * rust-lang.c (rust_language_arch_info): Delete function, move
4538 implementation to...
4539 (rust_language::language_arch_info): ...here, a new member
4540 function.
4541 (rust_language_data): Delete la_language_arch_info.
4542
4543 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4544
4545 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4546 initializer.
4547 * c-lang.c (c_language_data): Likewise.
4548 (cplus_language_data): Likewise.
4549 (cplus_language::pass_by_reference_info): New method.
4550 (asm_language_data): Delete la_pass_by_reference initializer.
4551 (minimal_language_data): Likewise.
4552 * cp-abi.c (cp_pass_by_reference): Remove use of
4553 default_pass_by_reference.
4554 * d-lang.c (d_language_data): Likewise.
4555 * f-lang.c (f_language_data): Likewise.
4556 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4557 default_pass_by_reference.
4558 * go-lang.c (go_language_data): Likewise.
4559 * language.c (language_pass_by_reference): Update.
4560 (default_pass_by_reference): Delete.
4561 (unknown_language_data): Delete la_pass_by_reference
4562 initializer.
4563 (auto_language_data): Likewise.
4564 * language.h (struct language_data): Delete la_pass_by_reference
4565 field.
4566 (language_defn::pass_by_reference_info): New member function.
4567 (default_pass_by_reference): Delete declaration.
4568 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4569 initializer.
4570 * objc-lang.c (objc_language_data): Likewise.
4571 * opencl-lang.c (opencl_language_data): Likewise.
4572 * p-lang.c (pascal_language_data): Likewise.
4573 * rust-lang.c (rust_language_data): Likewise.
4574
4575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * ada-lang.c (ada_read_var_value): Delete function, move
4578 implementation to...
4579 (ada_language::read_var_value): ...here.
4580 (ada_language_data): Delete la_read_var_value initializer.
4581 * c-lang.c (c_language_data): Likewise.
4582 (cplus_language_data): Likewise.
4583 (minimal_language_data): Likewise.
4584 * d-lang.c (d_language_data): Likewise.
4585 * f-lang.c (f_language_data): Likewise.
4586 * findvar.c (default_read_var_value): Rename to...
4587 (language_defn::read_var_value): ...this.
4588 * findvar.c (read_var_value): Update header comment, and change to
4589 call member function instead of function pointer.
4590 * go-lang.c (go_language_data): Likewise.
4591 * language.c (unknown_language_data): Delete la_read_var_value
4592 initializer.
4593 (auto_language_data): Likewise.
4594 * language.h (struct language_data): Delete la_read_var_value
4595 field.
4596 (language_defn::read_var_value): New member function.
4597 (default_read_var_value): Delete declaration.
4598 * m2-lang.c (m2_language_data): Delete la_read_var_value
4599 initializer.
4600 * objc-lang.c (objc_language_data): Likewise.
4601 * opencl-lang.c (opencl_language_data): Likewise.
4602 * p-lang.c (pascal_language_data): Likewise.
4603 * rust-lang.c (rust_language_data): Likewise.
4604 * value.h (default_read_var_value): Delete declaration.
4605
4606 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * ada-lang.c (ada_print_array_index): Delete function, move
4609 implementation to...
4610 (ada_language::print_array_index): ...here.
4611 (ada_language_data): Delete la_print_array_index initializer.
4612 * c-lang.c (c_language_data): Likewise.
4613 (cplus_language_data): Likewise.
4614 (minimal_language_data): Likewise.
4615 * d-lang.c (d_language_data): Likewise.
4616 * f-lang.c (f_language_data): Likewise.
4617 * go-lang.c (go_language_data): Likewise.
4618 * language.c (default_print_array_index): Delete function, move
4619 implementation to...
4620 (language_defn::print_array_index): ...here.
4621 (unknown_language_data): Delete la_print_array_index initializer.
4622 (auto_language_data): Likewise.
4623 * language.h (struct language_data): Delete la_print_array_index
4624 field.
4625 (language_defn::print_array_index): New member function.
4626 (LA_PRINT_ARRAY_INDEX): Update.
4627 (default_print_array_index): Delete declaration.
4628 * m2-lang.c (m2_language_data): Delete la_print_array_index
4629 initializer.
4630 * objc-lang.c (objc_language_data): Likewise.
4631 * opencl-lang.c (opencl_language_data): Likewise.
4632 * p-lang.c (pascal_language_data): Likewise.
4633 * rust-lang.c (rust_language_data): Likewise.
4634
4635 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * gdb/ada-lang.c (ada_language_defn): Convert to...
4638 (ada_language_data): ...this.
4639 (class ada_language): New class.
4640 (ada_language_defn): New static global.
4641 * gdb/c-lang.c (c_language_defn): Convert to...
4642 (c_language_data): ...this.
4643 (class c_language): New class.
4644 (c_language_defn): New static global.
4645 (cplus_language_defn): Convert to...
4646 (cplus_language_data): ...this.
4647 (class cplus_language): New class.
4648 (cplus_language_defn): New static global.
4649 (asm_language_defn): Convert to...
4650 (asm_language_data): ...this.
4651 (class asm_language): New class.
4652 (asm_language_defn): New static global.
4653 (minimal_language_defn): Convert to...
4654 (minimal_language_data): ...this.
4655 (class minimal_language): New class.
4656 (minimal_language_defn): New static global.
4657 * gdb/d-lang.c (d_language_defn): Convert to...
4658 (d_language_data): ...this.
4659 (class d_language): New class.
4660 (d_language_defn): New static global.
4661 * gdb/f-lang.c (f_language_defn): Convert to...
4662 (f_language_data): ...this.
4663 (class f_language): New class.
4664 (f_language_defn): New static global.
4665 * gdb/go-lang.c (go_language_defn): Convert to...
4666 (go_language_data): ...this.
4667 (class go_language): New class.
4668 (go_language_defn): New static global.
4669 * gdb/language.c (unknown_language_defn): Remove declaration.
4670 (current_language): Initialize to nullptr, real initialization is
4671 moved to _initialize_language.
4672 (languages): Delete global.
4673 (language_defn::languages): Define.
4674 (set_language_command): Use language_defn::languages.
4675 (set_language): Likewise.
4676 (range_error): Likewise.
4677 (language_enum): Likewise.
4678 (language_def): Likewise.
4679 (add_set_language_command): Use language_def::languages for the
4680 language list, and language_def to lookup language pointers.
4681 (skip_language_trampoline): Use language_defn::languages.
4682 (unknown_language_defn): Convert to...
4683 (unknown_language_data): ...this.
4684 (class unknown_language): New class.
4685 (unknown_language_defn): New static global.
4686 (auto_language_defn): Convert to...
4687 (auto_language_data): ...this.
4688 (class auto_language): New class.
4689 (auto_language_defn): New static global.
4690 (language_gdbarch_post_init): Use language_defn::languages.
4691 (_initialize_language): Initialize current_language.
4692 * gdb/language.h (struct language_defn): Rename to...
4693 (struct language_data): ...this.
4694 (struct language_defn): New.
4695 (auto_language_defn): Delete.
4696 (unknown_language_defn): Delete.
4697 (minimal_language_defn): Delete.
4698 (ada_language_defn): Delete.
4699 (asm_language_defn): Delete.
4700 (c_language_defn): Delete.
4701 (cplus_language_defn): Delete.
4702 (d_language_defn): Delete.
4703 (f_language_defn): Delete.
4704 (go_language_defn): Delete.
4705 (m2_language_defn): Delete.
4706 (objc_language_defn): Delete.
4707 (opencl_language_defn): Delete.
4708 (pascal_language_defn): Delete.
4709 (rust_language_defn): Delete.
4710 * gdb/m2-lang.c (m2_language_defn): Convert to...
4711 (m2_language_data): ...this.
4712 (class m2_language): New class.
4713 (m2_language_defn): New static global.
4714 * gdb/objc-lang.c (objc_language_defn): Convert to...
4715 (objc_language_data): ...this.
4716 (class objc_language): New class.
4717 (objc_language_defn): New static global.
4718 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4719 (opencl_language_data): ...this.
4720 (class opencl_language): New class.
4721 (opencl_language_defn): New static global.
4722 * gdb/p-lang.c (pascal_language_defn): Convert to...
4723 (pascal_language_data): ...this.
4724 (class pascal_language): New class.
4725 (pascal_language_defn): New static global.
4726 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4727 language pointer, update comment format.
4728 * gdb/rust-lang.c (rust_language_defn): Convert to...
4729 (rust_language_data): ...this.
4730 (class rust_language): New class.
4731 (rust_language_defn): New static global.
4732
4733 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4736 member variable.
4737 <m_stmt_at_address>: New member variable.
4738 (lnp_state_machine::record_line): Don't record some lines, update
4739 tracking of is_stmt at the same address.
4740 (lnp_state_machine::lnp_state_machine): Initialise new member
4741 variables.
4742
4743 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4744
4745 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4746 "-include gnu-nat-mig.h".
4747 * gnu-nat-mig.h: New file.
4748 * gnu-nat.c: Include "gnu-nat-mig.h".
4749 (exc_server, msg_reply_server, notify_server,
4750 process_reply_server): Remove declarations.
4751
4752 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4753
4754 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4755 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4756 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4757 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4758 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4759 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4760 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4761 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4762 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4763 to gnu_nat_target class.
4764 * gnu-nat.c: Likewise.
4765 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4766 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4767 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4768 object.
4769 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4770 instead of `gnu_target'.
4771
4772 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4773
4774 * i386-gnu-tdep.c: Include "gdbcore.h"
4775 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4776 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4777 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4778 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4779 i386_gnu_sigcontext_addr): New functions
4780 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4781 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4782 tdep.
4783
4784 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4785
4786 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4787 before fork_inferior call. Avoid calling it if target_is_pushed returns
4788 true.
4789
4790 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4791
4792 * gnu-nat.h (gnu_target): New variable declaration.
4793 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4794 gnu_target.
4795 * gnu-nat.c (gnu_target): New variable.
4796 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4797 add_thread_silent, and add_thread calls.
4798 (gnu_nat_target::create_inferior): Pass gnu_target to
4799 add_thread_silent, thread_change_ptid call.
4800 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4801 call.
4802
4803 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4804
4805 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4806 (gnu_nat_target::find_memory_regions): Remove unused
4807 `old_address' variable.
4808
4809 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4810
4811 * gnu-nat.c: Include "gdbarch.h".
4812
4813 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4814
4815 * reply_mig_hack.awk (Error return): Cast function through
4816 void *, to bypass compiler function call check.
4817
4818 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4819
4820 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4821 $(srcdir)/reply_mig_hack.awk.
4822
4823 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4824
4825 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4826
4827 2020-05-30 Jonny Grant <jg@jguk.org>
4828
4829 * configure.ac (ACX_BUGURL): change bug URL to https.
4830
4831 2020-05-30 Pedro Alves <palves@redhat.com>
4832
4833 * cp-support.c (replace_typedefs_template): New.
4834 (replace_typedefs_qualified_name): Handle
4835 DEMANGLE_COMPONENT_TEMPLATE.
4836
4837 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4840 dwarf2/index-cache.h, dwarf2/index-write.c,
4841 dwarf2/index-write.h, dwarf2/line-header.c,
4842 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4843 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4844 variables and fields from `dwarf2_per_objfile` to just
4845 `per_objfile` throughout.
4846
4847 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4850 <push_dwarf_reg_entry_value>: Add comment.
4851
4852 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4853 Keith Seitz <keiths@redhat.com>
4854
4855 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4856 instead of PyEval_ReleaseLock.
4857 (class gdbpy_gil): Move to earlier in file.
4858 (finalize_python): Set gdb_python_initialized.
4859 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4860 when not initialized.
4861
4862 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4865 <push_dwarf_reg_entry_value>: Remove assert. Override
4866 per_objfile with caller_per_objfile.
4867
4868 2020-05-28 Tom de Vries <tdevries@suse.de>
4869
4870 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4871 PR gold/15646 workaround to symbol kind "type".
4872
4873 2020-05-27 Tom Tromey <tromey@adacore.com>
4874
4875 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4876
4877 2020-05-27 Tom Tromey <tromey@adacore.com>
4878
4879 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4880 Use htab_find_with_hash.
4881 <add_abbrev>: Remove "abbrev_number" parameter.
4882 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4883 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4884 (hash_abbrev): Add comment.
4885 (abbrev_table::lookup_abbrev): Move to header file.
4886 (abbrev_table::read): Update.
4887
4888 2020-05-27 Tom Tromey <tromey@adacore.com>
4889
4890 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4891 method.
4892 <canonical_name>: New member.
4893 <raw_name>: Rename from "name".
4894 (partial_die_info): Initialize canonical_name.
4895 (scan_partial_symbols): Check raw_name.
4896 (partial_die_parent_scope, partial_die_full_name)
4897 (add_partial_symbol, add_partial_subprogram)
4898 (add_partial_enumeration, load_partial_dies): Use "name" method.
4899 (partial_die_info::name): New method.
4900 (partial_die_info::read, guess_partial_die_structure_name)
4901 (partial_die_info::fixup): Update.
4902
4903 2020-05-27 Tom Tromey <tromey@adacore.com>
4904
4905 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4906 <get_ref_die_offset>: Inline.
4907 <get_ref_die_offset_complaint>: New method.
4908 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4909 (attribute::get_ref_die_offset_complaint): Rename from
4910 get_ref_die_offset. Just issue complaint.
4911
4912 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4913
4914 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4915
4916 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4917
4918 * exec.c (exec_file_attach): Use errno value of first openp failure.
4919
4920 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4921
4922 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4923 Don't close thread handle.
4924
4925 2020-05-27 Tom Tromey <tom@tromey.com>
4926 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4929 shared_ptr.
4930 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4931 member.
4932 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4933 dwarf2_per_bfd_objfile_data_key>: New globals.
4934 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4935 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4936 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4937 shared.
4938 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4939 short-circuit when sharing.
4940 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4941 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4942
4943 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4944
4945 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4946 to...
4947 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4948 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4949
4950 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4953 build_name_components, find_name_components_bounds>:
4954 Add per_objfile parameter.
4955 (struct mapped_index) <symbol_name_at>: Likewise.
4956 (struct mapped_debug_names): Remove constructor.
4957 <dwarf2_per_objfile>: Remove field.
4958 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4959 (mapped_index_base::find_name_components_bounds,
4960 mapped_index_base::build_name_components,
4961 dw2_expand_symtabs_matching_symbol): Likewise.
4962 (class mock_mapped_index) <symbol_name_at>: Likewise.
4963 (check_match): Likewise.
4964 (check_find_bounds_finds): Likewise.
4965 (test_mapped_index_find_name_component_bounds): Update.
4966 (CHECK_MATCH): Update.
4967 (dw2_expand_symtabs_matching): Update.
4968 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4969 per_objfile parameter.
4970 <find_vec_in_debug_names>: Likewise.
4971 <m_per_objfile>: New field.
4972 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4973 parameter.
4974 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4975 (dw2_debug_names_iterator::next): Update.
4976 (dw2_debug_names_lookup_symbol): Update.
4977 (dw2_debug_names_expand_symtabs_for_function): Update.
4978 (dw2_debug_names_map_matching_symbols): Update.
4979 (dw2_debug_names_expand_symtabs_matching): Update.
4980 (dwarf2_read_debug_names): Update.
4981
4982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4985 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4986 move to dwarf2_per_objfile.
4987 <read_in_chain>: Remove.
4988 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4989 remove_all_cus, age_comp_units>: New methods.
4990 <m_dwarf2_cus>: New member.
4991 (struct dwarf2_per_cu_data) <cu>: Remove.
4992 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4993 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4994 moved to methods of dwarf2_per_objfile.
4995 (dwarf2_clear_marks): Remove.
4996 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4997 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4998 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4999 (dwarf2_per_objfile::remove_all_cus): New.
5000 (class free_cached_comp_units) <~free_cached_comp_units>:
5001 Update.
5002 (load_cu): Update.
5003 (dw2_do_instantiate_symtab): Adjust.
5004 (fill_in_sig_entry_from_dwo_entry): Adjust.
5005 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5006 (cutu_reader::cutu_reader): Likewise.
5007 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5008 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5009 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5010 and dwarf2_per_objfile::age_comp_units.
5011 (load_partial_comp_unit): Update.
5012 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5013 (process_queue): Likewise.
5014 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5015 backlink.
5016 (dwarf2_read_addr_index): Likewise.
5017 (follow_die_offset): Likewise.
5018 (dwarf2_fetch_die_loc_sect_off): Likewise.
5019 (dwarf2_fetch_constant_bytes): Likewise.
5020 (dwarf2_fetch_die_type_sect_off): Likewise.
5021 (follow_die_sig_1): Likewise.
5022 (load_full_type_unit): Likewise.
5023 (read_signatured_type): Likewise.
5024 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5025 (dwarf2_cu::~dwarf2_cu): Remove.
5026 (dwarf2_per_objfile::get_cu): New.
5027 (dwarf2_per_objfile::set_cu): New.
5028 (age_cached_comp_units): Rename to...
5029 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5030 to std::unordered_map.
5031 (free_one_cached_comp_unit): Rename to...
5032 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5033 to std::unordered_map.
5034 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5035 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5036 a dwarf2_per_objfile in data.
5037 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5038 (dwarf2_clear_marks): Remove.
5039
5040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5043 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5044 (init_tu_and_read_dwo_dies): Likewise.
5045 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5046 (cutu_reader::cutu_reader): Likewise.
5047 (load_partial_comp_unit): Likewise.
5048 (process_psymtab_comp_unit): Update.
5049 (build_type_psymtabs_1): Update.
5050 (process_skeletonless_type_unit): Update.
5051 (load_full_comp_unit): Update.
5052 (find_partial_die): Update.
5053 (dwarf2_read_addr_index): Update.
5054 (read_signatured_type): Update.
5055
5056 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5059 m_header_read_in>: New fields.
5060 <get_header>: New method.
5061 * dwarf2/read.c (per_cu_header_read_in): Remove.
5062 (dwarf2_per_cu_data::get_header): New.
5063 (dwarf2_per_cu_data::addr_size): Update.
5064 (dwarf2_per_cu_data::offset_size): Update.
5065 (dwarf2_per_cu_data::ref_addr_size): Update.
5066
5067 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5068
5069 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5070 (dw2_do_instantiate_symtab): Update.
5071 (queue_and_load_all_dwo_tus): Change parameter from
5072 dwarf2_per_cu_data to dwarf2_cu.
5073 (dwarf2_fetch_die_loc_sect_off): Update.
5074 (dwarf2_fetch_constant_bytes): Update.
5075 (dwarf2_fetch_die_type_sect_off): Update.
5076
5077 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5078
5079 * dwarf2/read.c (process_full_comp_unit,
5080 process_full_type_unit): Remove per_cu, per_objfile paramters.
5081 Add dwarf2_cu parameter.
5082 (process_queue): Update.
5083
5084 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5085
5086 * dwarf2/read.c (create_cu_from_index_list): Replace
5087 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5088 (create_cus_from_index_list): Likewise.
5089 (create_cus_from_index): Likewise.
5090 (create_signatured_type_table_from_index): Likewise.
5091 (create_cus_from_debug_names_list): Likewise.
5092 (create_cus_from_debug_names): Likewise.
5093 (dwarf2_read_gdb_index): Update.
5094 (dwarf2_read_debug_names): Update.
5095
5096 2020-05-27 Tom Tromey <tom@tromey.com>
5097 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * dwarf2/read.h (struct dwarf2_per_objfile)
5100 <get_type_for_signatured_type, set_type_for_signatured_type>:
5101 New methods.
5102 <m_type_map>: New member.
5103 (struct signatured_type) <type>: Remove.
5104 * dwarf2/read.c
5105 (dwarf2_per_objfile::get_type_for_signatured_type,
5106 dwarf2_per_objfile::set_type_for_signatured_type): New.
5107 (get_signatured_type): Use new methods.
5108
5109 2020-05-27 Tom Tromey <tom@tromey.com>
5110 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5113 (struct dwarf2_per_objfile) <type_units>: New member.
5114 <get_type_unit_group_unshareable>: New method.
5115 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5116 num_symtabs, symtabs>: Remove; move to
5117 type_unit_group_unshareable.
5118 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5119 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5120 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5121
5122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5123
5124 * dwarf2/read.h (struct dwarf2_per_cu_data):
5125 <dwarf2_per_objfile>: Remove.
5126 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5127 dwarf2_per_objfile.
5128 (create_signatured_type_table_from_index): Likewise.
5129 (create_signatured_type_table_from_debug_names): Likewise.
5130 (create_debug_type_hash_table): Likewise.
5131 (fill_in_sig_entry_from_dwo_entry): Likewise.
5132 (create_type_unit_group): Likewise.
5133 (read_comp_units_from_section): Likewise.
5134 (create_cus_hash_table): Likewise.
5135
5136 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5137
5138 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5139 dwarf2_per_cu_data::dwarf2_per_objfile.
5140 (compute_compunit_symtab_includes): Likewise.
5141 (dwarf2_cu::start_symtab): Likewise.
5142
5143 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5144
5145 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5146 parameter.
5147 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5148 (read_namespace_alias): Update.
5149 (lookup_die_type): Update.
5150 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5151 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5152 Update.
5153 (disassemble_dwarf_expression): Update.
5154
5155 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5156
5157 * dwarf2/read.h (struct dwarf2_queue_item): Add
5158 dwarf2_per_objfile parameter, assign new parameter.
5159 <per_objfile>: New field.
5160 * dwarf2/read.c (free_one_cached_comp_unit): Add
5161 dwarf2_per_objfile parameter.
5162 (queue_comp_unit): Likewise.
5163 (dw2_do_instantiate_symtab): Update.
5164 (process_psymtab_comp_unit): Update.
5165 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5166 (process_imported_unit_die): Update.
5167 (queue_and_load_dwo_tu): Update.
5168 (follow_die_offset): Update.
5169 (follow_die_sig_1): Update.
5170
5171 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5174 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5175 (read_call_site_scope): Assign per_objfile.
5176 (dwarf2_per_cu_data::objfile): Remove.
5177 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5178 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5179 dwarf2_per_objfile parameter.
5180 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5181 dwarf2_per_objfile parameter.
5182 (dwarf_expr_reg_to_entry_parameter): Add output
5183 dwarf2_per_objfile parameter.
5184 (locexpr_get_frame_base): Update.
5185 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5186 <push_dwarf_reg_entry_value>: Update.
5187 <call_site_to_target_addr>: Update.
5188 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5189 parameter.
5190 (value_of_dwarf_reg_entry): Update.
5191 (rw_pieced_value): Update.
5192 (indirect_synthetic_pointer): Update.
5193 (dwarf2_evaluate_property): Update.
5194 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5195 parameter.
5196 (locexpr_read_variable): Update.
5197 (locexpr_get_symbol_read_needs): Update.
5198 (loclist_read_variable): Update.
5199
5200 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5201
5202 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5203 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5204 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5205 parameter.
5206 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5211 sect_variable_value): Add dwarf2_per_objfile parameter.
5212 (class dwarf_evaluate_loc_desc) <dwarf_call,
5213 dwarf_variable_value>: Update.
5214 (fetch_const_value_from_synthetic_pointer): Add
5215 dwarf2_per_objfile parameter.
5216 (fetch_const_value_from_synthetic_pointer): Update.
5217 (coerced_pieced_ref): Update.
5218 (class symbol_needs_eval_context) <dwarf_call,
5219 dwarf_variable_value>: Update.
5220 (dwarf2_compile_expr_to_ax): Update.
5221
5222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5223
5224 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5225 parameter.
5226 (dwarf2_evaluate_loc_desc_full): Update.
5227
5228 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5231 parameter.
5232 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5233 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5234 dwarf2_per_objfile parameter.
5235 (decode_debug_loc_dwo_addresses): Likewise.
5236 (dwarf2_find_location_expression): Update.
5237 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5238 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5239 parameter.
5240 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5241 parameter.
5242 (locexpr_describe_location_1): Likewise.
5243 (locexpr_describe_location): Update.
5244
5245 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5246
5247 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5248 Remove.
5249 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5250 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5251 (dwarf2_compile_property_to_c): Update.
5252 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5253 use text offset from objfile.
5254 (locexpr_tracepoint_var_ref): Update.
5255 (locexpr_generate_c_location): Update.
5256 (loclist_describe_location): Update.
5257 (loclist_tracepoint_var_ref): Update.
5258 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5259 dwarf2_per_objfile parameter.
5260 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5261 use text offset from objfile.
5262 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5263
5264 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * dwarf2/expr.h (struct dwarf_expr_context)
5267 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5268 <offset>: Remove.
5269 <per_objfile>: New member.
5270 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5271 dwarf2_per_objfile parameter. Don't set offset, set
5272 per_objfile.
5273 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5274 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5275 a dwarf2_per_objfile object instead of an offset.
5276 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5277 constructor.
5278 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5279 to dwarf2_expr_executor constructor. Don't set offset.
5280 (dwarf2_fetch_cfa_info): Update.
5281 (struct dwarf2_frame_cache) <text_offset>: Remove.
5282 <per_objfile>: New field.
5283 (dwarf2_frame_cache): Update.
5284 (dwarf2_frame_prev_register): Update.
5285 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5286 <dwarf_evaluate_loc_desc>: Add constructor.
5287 (dwarf2_evaluate_loc_desc_full): Update.
5288 (dwarf2_locexpr_baton_eval): Update.
5289 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5290 Add constructor.
5291 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5292
5293 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5294
5295 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5296 addr_sized_int_type>: Move to dwarf2_cu.
5297 <int_type>: Move to dwarf2_per_objfile.
5298 (struct dwarf2_per_objfile) <int_type>: Move here.
5299 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5300 addr_sized_int_type>: Move here.
5301 (read_func_scope): Update.
5302 (read_array_type): Update.
5303 (read_tag_string_type): Update.
5304 (attr_to_dynamic_prop): Update.
5305 (dwarf2_per_cu_data::int_type): Rename to...
5306 (dwarf2_per_objfile::int_type): ... this.
5307 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5308 (dwarf2_cu::addr_sized_int_type): ... this.
5309 (read_subrange_type): Update.
5310 (dwarf2_per_cu_data::addr_type): Rename to...
5311 (dwarf2_cu::addr_type): ... this.
5312 (set_die_type): Update.
5313
5314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5317 data through per_cu->cu.
5318
5319 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5322 dwarf2_per_cu_data parameter fo dwarf2_cu.
5323 (lookup_dwo_type_unit): Likewise.
5324 (read_cutu_die_from_dwo): Likewise.
5325 (lookup_dwo_unit): Likewise.
5326 (open_and_init_dwo_file): Likewise.
5327 (lookup_dwo_cutu): Likewise.
5328 (lookup_dwo_comp_unit): Likewise.
5329 (lookup_dwo_type_unit): Likewise.
5330 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5331 (cutu_reader::cutu_reader): Update.
5332
5333 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5334
5335 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5336 parameter.
5337 (process_full_type_unit): Likewise.
5338 (process_queue): Update.
5339
5340 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * dwarf2/read.c (recursively_compute_inclusions): Add
5343 dwarf2_per_objfile parameter.
5344 (compute_compunit_symtab_includes): Likewise.
5345 (process_cu_includes): Update.
5346
5347 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5348
5349 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5350 parameter.
5351 (create_type_unit_group): Update.
5352 (process_psymtab_comp_unit_reader): Update.
5353 (build_type_psymtabs_reader): Update.
5354
5355 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5356
5357 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5358 object through m_this_cu->cu.
5359
5360 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5361
5362 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5363 the info parameter.
5364 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5365
5366 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5369 per_objfile parameter.
5370 (load_full_type_unit): Add per_objfile parameter.
5371 (read_signatured_type): Likewise.
5372 (load_full_comp_unit): Likewise.
5373 (load_cu): Likewise.
5374 (dw2_do_instantiate_symtab): Likewise.
5375 (dw2_get_file_names): Likewise.
5376 (dw2_map_symtabs_matching_filename): Update.
5377 (dw_expand_symtabs_matching_file_matcher): Update.
5378 (dw2_map_symbol_filenames): Update.
5379 (process_psymtab_comp_unit): Add per_objfile parameter.
5380 (build_type_psymtabs_1): Update.
5381 (process_skeletonless_type_unit): Update.
5382 (dwarf2_build_psymtabs_hard): Update.
5383 (load_partial_comp_unit): Add per_objfile parameter.
5384 (scan_partial_symbols): Update.
5385 (load_full_comp_unit): Add per_objfile parameter.
5386 (process_imported_unit_die): Update.
5387 (create_cus_hash_table): Update.
5388 (find_partial_die): Update.
5389 (dwarf2_read_addr_index): Update.
5390 (follow_die_offset): Update.
5391 (dwarf2_fetch_die_loc_sect_off): Update.
5392 (dwarf2_fetch_constant_bytes): Update.
5393 (dwarf2_fetch_die_type_sect_off): Update.
5394 (follow_die_sig_1): Update.
5395 (load_full_type_unit): Add per_objfile parameter.
5396 (read_signatured_type): Likewise.
5397
5398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5401 of objfile_name.
5402
5403 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5404
5405 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5406 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5407 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5408 field.
5409 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5410 (create_cus_from_index): Update.
5411 (dwarf2_read_gdb_index): Update.
5412 (create_cus_from_debug_names): Update.
5413 (dwarf2_read_debug_names): Update.
5414 (get_abbrev_section_for_cu): Update.
5415 (create_all_comp_units): Update.
5416 (read_attribute_value): Update.
5417 (get_debug_line_section): Update.
5418 * dwarf2/index-cache.c (index_cache::store): Update.
5419 * dwarf2/index-write.c (save_gdb_index_command): Update.
5420 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5421
5422 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5423
5424 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5425 member.
5426 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5427 dwarf2_per_cu_data::per_bfd.
5428 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5429 (create_type_unit_group): Likewise.
5430 (queue_comp_unit): Remove reference to
5431 per_cu->dwarf2_per_objfile.
5432 (maybe_queue_comp_unit): Likewise.
5433 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5434 (create_cus_hash_table): Assign new field.
5435
5436 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5437
5438 * dwarf2/read.c: Replace
5439 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5440 dwarf2_cu->per_objfile throughout.
5441
5442 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5443
5444 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5445 parameter, don't use per_cu->dwarf2_per_objfile.
5446 (dw2_instantiate_symtab): Likewise.
5447 (dw2_find_last_source_symtab): Update.
5448 (dw2_map_expand_apply): Update.
5449 (dw2_lookup_symbol): Update.
5450 (dw2_expand_symtabs_for_function): Update.
5451 (dw2_expand_all_symtabs): Update.
5452 (dw2_expand_symtabs_with_fullname): Update.
5453 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5454 don't use per_cu->dwarf2_per_objfile.
5455 (dw2_expand_marked_cus): Update.
5456 (dw2_find_pc_sect_compunit_symtab): Update.
5457 (dw2_debug_names_lookup_symbol): Update.
5458 (dw2_debug_names_expand_symtabs_for_function): Update.
5459 (dw2_debug_names_map_matching_symbols): Update.
5460 (dwarf2_psymtab::expand_psymtab): Update.
5461
5462 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5463
5464 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5465 <per_objfile>: New member.
5466 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5467 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5468 call to dwarf2_cu.
5469 (cutu_reader::cutu_reader): Update.
5470 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5471
5472 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5473
5474 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5475 struct dwarf2_per_objfile.
5476 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5477 dwarf2_per_bfd.
5478 * dwarf2/read.c (set_die_type): Update.
5479 (get_die_type_at_offset): Update.
5480
5481 2020-05-27 Tom Tromey <tom@tromey.com>
5482 Simon Marchi <simon.marchi@efficios.com>
5483
5484 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5485 method.
5486 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5487 get_symtab, set_symtab>: New methods.
5488 <m_symtabs>: New field.
5489 (struct dwarf2_psymtab): Derive from partial_symtab.
5490 <readin_p, get_compunit_symtab>: Declare methods.
5491 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5492 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5493 New methods.
5494 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5495 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5496 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5497 (dw2_symtab_iter_next, dw2_print_stats)
5498 (dw2_expand_symtabs_with_fullname)
5499 (dw2_expand_symtabs_matching_one)
5500 (dw_expand_symtabs_matching_file_matcher)
5501 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5502 (dw2_debug_names_iterator::next)
5503 (dw2_debug_names_map_matching_symbols)
5504 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5505 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5506 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5507 New methods.
5508 (get_compunit_symtab, process_full_comp_unit)
5509 (process_full_type_unit): Update.
5510 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5511
5512 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5513
5514 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5515 then introduce a new dwarf2_per_objfile type.
5516 <read_line_string>: Move to the new dwarf2_per_objfile type.
5517 <objfile>: Likewise.
5518 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5519 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5520 dwarf2_per_objfile->per_bfd.
5521 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5522 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5523 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5524 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5525 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5526 (dwarf2_per_objfile::locate_sections): Rename to...
5527 (dwarf2_per_bfd::locate_sections): ... this.
5528 (dwarf2_per_objfile::get_cutu): Rename to...
5529 (dwarf2_per_bfd::get_cutu): ... this.
5530 (dwarf2_per_objfile::get_cu): Rename to...
5531 (dwarf2_per_bfd::get_cu): ... this.
5532 (dwarf2_per_objfile::get_tu): Rename to...
5533 (dwarf2_per_bfd::get_tu): ... this.
5534 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5535 (dwarf2_per_bfd::allocate_per_cu): ... this.
5536 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5537 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5538 (get_gdb_index_contents_ftype): Change parameter from
5539 dwarf2_per_objfile to dwarf2_per_bfd.
5540 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5541 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5542
5543 2020-05-27 Tom Tromey <tom@tromey.com>
5544 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5547 (allocate_piece_closure): Set "per_objfile" member.
5548 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5549 (locexpr_describe_location, loclist_describe_location): Use new
5550 member.
5551 * dwarf2/read.c (read_call_site_scope)
5552 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5553 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5554 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5555 handle_data_member_location): Set per_objfile member.
5556 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5557 member.
5558 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5559
5560 2020-05-27 Tom Tromey <tom@tromey.com>
5561
5562 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5563 allocate_signatured_type>: Declare new methods.
5564 <m_num_psymtabs>: New member.
5565 (struct dwarf2_per_cu_data) <index>: New member.
5566 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5567 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5568 (create_cu_from_index_list): Use allocate_per_cu.
5569 (create_signatured_type_table_from_index)
5570 (create_signatured_type_table_from_debug_names)
5571 (create_debug_type_hash_table, add_type_unit)
5572 (read_comp_units_from_section): Use allocate_signatured_type.
5573
5574 2020-05-27 Tom Tromey <tom@tromey.com>
5575
5576 * psymtab.c (partial_map_expand_apply)
5577 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5578 (psym_lookup_global_symbol_language)
5579 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5580 (psym_print_stats, psym_expand_symtabs_for_function)
5581 (psym_map_symbol_filenames, psym_map_matching_symbols)
5582 (psym_expand_symtabs_matching)
5583 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5584 (maintenance_check_psymtabs): Update.
5585 * psympriv.h (struct partial_symtab) <readin_p,
5586 get_compunit_symtab>: Add objfile parameter.
5587 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5588 Likewise.
5589 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5590 get_compunit_symtab>: Likewise.
5591 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5592
5593 2020-05-27 Tom Tromey <tom@tromey.com>
5594
5595 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5596 member.
5597 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5598 (create_cu_from_index_list)
5599 (create_signatured_type_table_from_index)
5600 (create_signatured_type_table_from_debug_names)
5601 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5602 (dwarf2_create_include_psymtab)
5603 (create_debug_type_hash_table, add_type_unit)
5604 (create_type_unit_group, read_comp_units_from_section)
5605 (dwarf2_compute_name, create_cus_hash_table)
5606 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5607 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5608 obstack.
5609 (dw2_get_real_path): Likewise. Change argument to
5610 dwarf2_per_objfile.
5611
5612 2020-05-27 Luis Machado <luis.machado@linaro.org>
5613
5614 PR tdep/26000
5615 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5616 for ldrd (immediate).
5617
5618 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5619
5620 * command.h: Add comment giving the name of class_tui.
5621 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5622 create the fake command for the help for class_tui.
5623
5624 2020-05-26 Tom Tromey <tromey@adacore.com>
5625
5626 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5627 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5628 (val_atr): New function.
5629 (value_val_atr): Use it.
5630 * ada-valprint.c (print_optional_low_bound): Change low bound
5631 handling for enums.
5632 (val_print_packed_array_elements): Don't call discrete_position.
5633 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5634 discrete_position for enum types.
5635 * language.c (default_print_array_index): Change type.
5636 * language.h (struct language_defn) <la_print_array_index>: Add
5637 index_type parameter, change type of index_value.
5638 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5639 (default_print_array_index): Update.
5640 * valprint.c (maybe_print_array_index): Don't call
5641 value_from_longest. Update.
5642 (value_print_array_elements): Don't call discrete_position.
5643
5644 2020-05-26 Tom Tromey <tromey@adacore.com>
5645
5646 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5647 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5648
5649 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5650
5651 PR gdb/13519
5652 * avr-tdep.c (avr_integer_to_address): Return data or code
5653 address accordingly to the second 'type' argument of the
5654 function.
5655
5656 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5657
5658 * infcmd.c, inferior.h: (construct_inferior_arguments):
5659 Moved function from here to gdbsupport/common-inferior.{h,cc}
5660
5661 2020-05-23 Tom Tromey <tom@tromey.com>
5662
5663 Revert commit eca1f90c:
5664 * NEWS: Remove entry for completion styling.
5665 * completer.c (_rl_completion_prefix_display_length): Move
5666 declaration later.
5667 (gdb_fnprint): Revert.
5668 (gdb_display_match_list_1): Likewise.
5669 * cli/cli-style.c (completion_prefix_style)
5670 (completion_difference_style, completion_suffix_style): Remove.
5671 (_initialize_cli_style): Revert.
5672 * cli/cli-style.h (completion_prefix_style)
5673 (completion_difference_style, completion_suffix_style): Don't
5674 declare.
5675
5676 2020-05-24 Pedro Alves <palves@redhat.com>
5677
5678 * symtab.c (completion_list_add_name): Return boolean indication
5679 of whether the symbol matched.
5680 (completion_list_add_symbol): Don't try to remove C++ aliases if
5681 the symbol didn't match in the first place.
5682 * symtab.h (completion_list_add_name): Return bool.
5683
5684 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5685
5686 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5687 type::field.
5688
5689 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5690
5691 GDB 9.2 released.
5692
5693 2020-05-23 Tom Tromey <tom@tromey.com>
5694
5695 * NEWS: Add entry for completion styling.
5696 * completer.c (_rl_completion_prefix_display_length): Move
5697 declaration earlier.
5698 (gdb_fnprint): Use completion_style.
5699 (gdb_display_match_list_1): Likewise.
5700 * cli/cli-style.c (completion_prefix_style)
5701 (completion_difference_style, completion_suffix_style): New
5702 globals.
5703 (_initialize_cli_style): Register new globals.
5704 * cli/cli-style.h (completion_prefix_style)
5705 (completion_difference_style, completion_suffix_style): Declare.
5706
5707 2020-05-23 Pedro Alves <palves@redhat.com>
5708
5709 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5710 (parse_escape): Use ISDIGIT instead of isdigit.
5711 (puts_debug): Use gdb_isprint instead of isprint.
5712 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5713 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5714 ISSPACE instead of isspace.
5715 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5716 instead of isspace.
5717 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5718 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5719 instead of isxdigit and ISDIGIT instead of isdigit.
5720
5721 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5722
5723 * gdbtypes.h (struct type) <field>: New method.
5724 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5725 or type::field.
5726
5727 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5730 (TYPE_FIELDS): Use type::fields. Change all call sites that
5731 modify the propery to use type::set_fields instead.
5732
5733 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5734
5735 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5736 type::num_fields instead.
5737
5738 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5741 methods.
5742 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5743 that modify the number of fields to use type::set_num_fields
5744 instead.
5745
5746 2020-05-22 Tom Tromey <tromey@adacore.com>
5747
5748 * compile/compile-object-load.h (munmap_list_free): Don't
5749 declare.
5750
5751 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5752
5753 * annotate.c (annotate_source_line): Update return type, add call
5754 to update current symtab and line.
5755 * annotate.h (annotate_source_line): Update return type, and
5756 extend header comment.
5757 * source.c (info_line_command): Check annotation_level before
5758 calling annotate_source_line.
5759 * stack.c (print_frame_info): If calling annotate_source_line
5760 returns true, then don't print any other source line information.
5761
5762 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5765
5766 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5767
5768 * coffread.c (patch_type): Remove NULL check before xfree.
5769 * corefile.c (set_gnutarget): Likewise.
5770 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5771 * exec.c (build_section_table): Likewise.
5772 * remote.c (remote_target::pass_signals): Likewise.
5773 * utils.c (n_spaces): Likewise.
5774 * cli/cli-script.c (document_command): Likewise.
5775 * i386-windows-tdep.c (core_process_module_section): Likewise.
5776 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5777
5778 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * symfile.c (reread_symbols): Clear objfile's section_offsets
5781 vector and section indices, re-compute them by calling
5782 sym_offsets.
5783
5784 2020-05-20 Tom Tromey <tromey@adacore.com>
5785
5786 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5787 (desc_one_bound, desc_index_type): Compute field name.
5788
5789 2020-05-20 Tom de Vries <tdevries@suse.de>
5790
5791 PR symtab/25833
5792 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5793
5794 2020-05-20 Alan Modra <amodra@gmail.com>
5795
5796 PR 25993
5797 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5798 bfd_set_filename.
5799 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5800 passed to bfd_set_filename.
5801 * symfile-mem.c (add_vsyscall_page): Likewise for string
5802 passed to symbol_file_add_from_memory.
5803 (symbol_file_add_from_memory): Make name param a const char* and
5804 don't strdup.
5805
5806 2020-05-20 Alan Modra <amodra@gmail.com>
5807
5808 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5809 rather than accessing bfd->filename directly.
5810 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5811 and use bfd_section_name.
5812 * dwarf2/frame.c (decode_frame_entry): Likewise.
5813 * exec.c (exec_set_section_address): Likewise.
5814 * solib-aix.c (solib_aix_bfd_open): Likewise.
5815 * stap-probe.c (get_stap_base_address): Likewise.
5816 * symfile.c (reread_symbols): Likewise.
5817
5818 2020-05-19 Tom Tromey <tromey@adacore.com>
5819
5820 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5821
5822 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5825
5826 2020-05-19 Pedro Alves <palves@redhat.com>
5827
5828 * NEWS (set exec-file-mismatch): Adjust entry.
5829 * exec.c: Include "build-id.h".
5830 (validate_exec_file): Try to match build IDs instead of filenames.
5831 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5832 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5833 and pass down 'warn_if_slow'.
5834 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5835 gdb_bfd_open_closure to pass it down.
5836 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5837
5838 2020-05-19 Pedro Alves <palves@redhat.com>
5839
5840 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5841 * target.c (target_fileio_open_1): Rename to target_fileio_open
5842 and make extern. Use bool.
5843 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5844 (target_fileio_read_alloc_1): Adjust.
5845 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5846 (target_fileio_open_warn_if_slow): Delete declaration.
5847
5848 2020-05-19 Pedro Alves <palves@redhat.com>
5849
5850 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5851 Adjust all callers.
5852
5853 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5854
5855 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5856 whether disp is negative.
5857
5858 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5859
5860 * symfile.h (struct symfile_segment_data)
5861 <~symfile_segment_data>: Remove.
5862 <segment_info>: Change to std::vector.
5863 * symfile.c (default_symfile_segments): Update.
5864 * elfread.c (elf_symfile_segments): Update.
5865
5866 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5869 <segments>: New.
5870 <segment_bases, segment_sizes>: Remove.
5871 * symfile.c (default_symfile_segments): Update.
5872 * elfread.c (elf_symfile_segments): Update.
5873 * remote.c (remote_target::get_offsets): Update.
5874 * solib-target.c (solib_target_relocate_section_addresses):
5875 Update.
5876
5877 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5878
5879 * symfile.h (struct symfile_segment_data): Initialize fields.
5880 <~symfile_segment_data>: Add.
5881 (symfile_segment_data_up): New.
5882 (struct sym_fns) <sym_segments>: Return a
5883 symfile_segment_data_up.
5884 (default_symfile_segments): Return a symfile_segment_data_up.
5885 (free_symfile_segment_data): Remove.
5886 (get_symfile_segment_data): Return a symfile_segment_data_up.
5887 * symfile.c (default_symfile_segments): Likewise.
5888 (get_symfile_segment_data): Likewise.
5889 (free_symfile_segment_data): Remove.
5890 (symfile_find_segment_sections): Update.
5891 * elfread.c (elf_symfile_segments): Return a
5892 symfile_segment_data_up.
5893 * remote.c (remote_target::get_offsets): Update.
5894 * solib-target.c (solib_target_relocate_section_addresses):
5895 Update.
5896 * symfile-debug.c (debug_sym_segments): Return a
5897 symfile_segment_data_up.
5898
5899 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5900
5901 PR build/25981
5902 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5903 Hardcode register numbers.
5904
5905 PR build/25981
5906 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5907 procfs_find_LDT_entry): Remove.
5908 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5909 procfs_find_LDT_entry): Remove.
5910 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5911 Remove.
5912
5913 2020-05-17 Pedro Alves <palves@redhat.com>
5914 Andrew Burgess <andrew.burgess@embecosm.com>
5915 Keno Fischer <keno@juliacomputing.com>
5916
5917 PR gdb/25741
5918 * breakpoint.c (build_target_condition_list): Update comments.
5919 (build_target_command_list): Update comments and skip matching
5920 locations.
5921 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5922 a separate function. Simplify "set breakpoint auto-hw off"
5923 handling.
5924 (insert_breakpoints): Update comment.
5925 (tracepoint_locations_match): New parameter. For breakpoints,
5926 compare location types too, if the caller wants to.
5927 (handle_automatic_hardware_breakpoints): New functions.
5928 (bp_location_is_less_than): Also sort by location type and
5929 hardware breakpoint length.
5930 (update_global_location_list): Handle "set breakpoint auto-hw on"
5931 here.
5932 (update_breakpoint_locations): Ask breakpoint_locations_match to
5933 ignore location types.
5934
5935 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5938 type::name instead.
5939
5940 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * gdbtypes.h (struct type) <name, set_name>: New methods.
5943 (TYPE_CODE): Use type::name. Change all call sites used to set
5944 the name to use type::set_name instead.
5945
5946 2020-05-16 Tom Tromey <tom@tromey.com>
5947
5948 * top.c (quit_force): Update.
5949 * infrun.c (handle_no_resumed): Update.
5950 * top.h (all_uis): New function.
5951 (ALL_UIS): Remove.
5952
5953 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5956
5957 2020-05-16 Pedro Alves <palves@redhat.com>
5958
5959 * ia64-linux-nat.c
5960 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5961 Declare method.
5962 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5963
5964 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5965
5966 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5967 (sparc64_adi_info): Likewise.
5968
5969 2020-05-15 Tom Tromey <tom@tromey.com>
5970
5971 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5972 block_objfile.
5973 (lookup_objfile_from_block): Remove.
5974 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5975 (lookup_global_symbol): Use block_objfile.
5976 * symtab.h (lookup_objfile_from_block): Don't declare.
5977 * printcmd.c (clear_dangling_display_expressions): Use
5978 block_objfile.
5979 * parse.c (operator_check_standard): Use block_objfile.
5980
5981 2020-05-15 Tom Tromey <tom@tromey.com>
5982
5983 * language.c (language_alloc_type_symbol): Set
5984 SYMBOL_SECTION.
5985 * symtab.c (initialize_objfile_symbol): Remove.
5986 (allocate_symbol): Remove.
5987 (allocate_template_symbol): Remove.
5988 * dwarf2/read.c (fixup_go_packaging): Use "new".
5989 (new_symbol): Use "new".
5990 (read_variable): Don't call initialize_objfile_symbol. Use
5991 "new".
5992 (read_func_scope): Use "new".
5993 * xcoffread.c (process_xcoff_symbol): Don't call
5994 initialize_objfile_symbol.
5995 (SYMBOL_DUP): Remove.
5996 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5997 "new".
5998 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5999 (allocate_template_symbol): Don't declare.
6000 (struct symbol): Add copy constructor. Change defaults.
6001 * jit.c (finalize_symtab): Use "new".
6002 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6003 Use "new".
6004 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6005 (common_block_end): Use "new".
6006 * mdebugread.c (parse_symbol): Use "new".
6007 (new_symbol): Likewise.
6008
6009 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6010
6011 * NEWS: Mention changes to help and apropos.
6012
6013 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6014
6015 * command.h (enum command_class): Improve comments, document
6016 that class_alias is for user-defined aliases, give the class
6017 name for each class, remove unused class_xdb.
6018 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6019 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6020 by a precise class.
6021 * infcmd.c (_initialize_infcmd): Likewise.
6022 * reverse.c (_initialize_reverse): Likewise.
6023 * stack.c (_initialize_stack): Likewise.
6024 * symfile.c (_initialize_symfile): Likewise.
6025 * tracepoint.c (_initialize_tracepoint): Likewise.
6026
6027 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6028
6029 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6030 when their aliased command is traversed.
6031 (help_cmd): Add fput_command_names_styled call to
6032 output command name and aliases when command has an alias.
6033
6034 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6035
6036 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6037 * cli/cli-decode.c (help_cmd_list): Declare as static,
6038 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6039 a command together with the command.
6040 (fput_command_name_styled, fput_command_names_styled): New functions.
6041 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6042 fput_command_name_styled.
6043 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6044 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6045
6046 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6047
6048 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6049 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6050 * command.h (cmd_show_list): Likewise.
6051 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6052 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6053
6054 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6055
6056 * unittests/command-def-selftests.c (traverse_command_structure):
6057 Verify all commands of a list have the same prefix command and
6058 that only the top cmdlist commands have a null prefix.
6059
6060 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6061
6062 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6063 as prefix, not one of its aliases.
6064 (set_cmd_prefix): Remove.
6065 (do_add_cmd): Centralize the setting of the prefix of a command, when
6066 command is defined after its full chain of prefix commands.
6067 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6068 (add_setshow_cmd_full): Likewise.
6069 (update_prefix_field_of_prefixed_commands): New function.
6070 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6071 update_prefix_field_of_prefixed_commands.
6072 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6073 addresses of remote_set_cmdlist and remote_show_cmdlist given
6074 as argument, not the address of an argument.
6075 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6076 * gdb/remote.c (_initialize_remote): Likewise.
6077
6078 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6079
6080 * cli/cli-cmds.c (alias_command): Check for an existing alias
6081 using lookup_cmd_composition, as valid_command_p is too strict
6082 and forbids aliases that are the prefix of an existing alias
6083 or command.
6084 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6085 command is properly recognised as a valid command.
6086
6087 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6088
6089 * unittests/help-doc-selftests.c: Rename to
6090 unittests/command-def-selftests.c
6091 * unittests/command-def-selftests.c (help_doc_tests): Update some
6092 comments.
6093 (command_structure_tests, traverse_command_structure): New namespace
6094 and function.
6095 (command_structure_invariants_tests): New function.
6096 (_initialize_command_def_selftests) Renamed from
6097 _initialize_help_doc_selftests, register command_structure_invariants
6098 selftest.
6099
6100 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6101
6102 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6103 an alias of 'show'.
6104
6105 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6106
6107 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6108 ada_is_fixed_point_type. Update all callers.
6109 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6110 all callers.
6111 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6112 Update all callers.
6113 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6114 print_fixed_point_type. Update all callers.
6115 * ada-valprint.c (ada_value_print_num): Replace call to
6116 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6117
6118 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6119
6120 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6121 processors.
6122 (cpu_supports_bts): Add CV_AMD case.
6123
6124 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6125 Simon Marchi <simon.marchi@efficios.com>
6126
6127 * infrun.c (stop_all_threads): Collect multiple wait events at
6128 each pass.
6129
6130 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6131
6132 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6133 type::code instead.
6134
6135 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * gdbtypes.h (struct type) <code, set_code>: New methods.
6138 (TYPE_CODE): Use type::code. Change all call sites used to set
6139 the code to use type::set_code instead.
6140
6141 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6142 Tom de Vries <tdevries@suse.de>
6143 Pedro Alves <palves@redhat.com>
6144
6145 PR threads/25478
6146 * infrun.c (stop_all_threads): Do NOT ignore
6147 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6148 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6149 received.
6150 (handle_no_resumed): Remove code handling a live inferior with no
6151 threads.
6152 * remote.c (has_single_non_exited_thread): New.
6153 (remote_target::update_thread_list): Do not delete a thread if is
6154 the last thread of the process.
6155 * thread.c (thread_select): Call delete_exited_threads instead of
6156 prune_threads.
6157
6158 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6159
6160 * infrun.c (stop_all_threads): Enable/disable thread events of all
6161 targets. Move a debug message denoting the end of the function
6162 into the SCOPED_EXIT block.
6163
6164 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6165
6166 * process-stratum-target.h: Include <set>.
6167 (all_non_exited_process_targets, switch_to_target_no_thread): New
6168 function declarations.
6169 * process-stratum-target.c (all_non_exited_process_targets)
6170 (switch_to_target_no_thread): New function implementations.
6171
6172 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6173
6174 * infrun.c (handle_inferior_event): Extract out a piece of code
6175 into...
6176 (mark_non_executing_threads): ...this new function.
6177
6178 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6179
6180 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6181 use.
6182
6183 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6184
6185 * regcache.c (regcache_read_pc_protected): New function
6186 implementation that returns 0 if the PC cannot read via
6187 'regcache_read_pc'.
6188 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6189 instead of 'regcache_read_pc'.
6190 (keep_going_pass_signal): Ditto.
6191
6192 2020-05-13 Tom Tromey <tromey@adacore.com>
6193
6194 * ada-lang.c (align_value): Remove.
6195 (ada_template_to_fixed_record_type_1): Use align_up.
6196
6197 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6198
6199 * async-event.c: Update the copyright year.
6200 * async-event.h: Update the copyright year.
6201
6202 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * objfiles.h (is_addr_in_objfile,
6205 shared_objfile_contains_address_p): Return bool.
6206 * objfile.c (is_addr_in_objfile,
6207 shared_objfile_contains_address_p): Return bool.
6208
6209 2020-05-11 Tom Tromey <tromey@adacore.com>
6210
6211 * cli/cli-cmds.c (info_command): Restore.
6212 (_initialize_cli_cmds): Use add_prefix_command for "info".
6213 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6214
6215 2020-05-11 Tom Tromey <tromey@adacore.com>
6216
6217 * ada-lang.c (ada_value_primitive_field): Now public.
6218 * ada-lang.h (ada_value_primitive_field): Declare.
6219 * ada-valprint.c (print_field_values): Use
6220 ada_value_primitive_field for wrapper fields.
6221
6222 2020-05-11 Tom de Vries <tdevries@suse.de>
6223
6224 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6225 MODULE_DOMAIN.
6226
6227 2020-05-11 Tom de Vries <tdevries@suse.de>
6228
6229 PR symtab/25941
6230 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6231 with length 0, if not gdb-produced.
6232 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6233
6234 2020-05-09 Tom de Vries <tdevries@suse.de>
6235
6236 PR gdb/25955
6237 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6238 calculation.
6239
6240 2020-05-09 Tom Tromey <tom@tromey.com>
6241
6242 * top.c (server_command): Now bool.
6243 * top.h (server_command): Now bool.
6244
6245 2020-05-08 Tom Tromey <tromey@adacore.com>
6246
6247 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6248 already being processed.
6249
6250 2020-05-08 Tom Tromey <tom@tromey.com>
6251
6252 * printcmd.c (struct display) <next>: Remove.
6253 <display>: New constructor.
6254 <exp_string>: Now a std::string.
6255 <enabled_p>: Now a bool.
6256 (display_number): Move definition earlier.
6257 (displays): Rename from display_chain. Now a std::vector.
6258 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6259 (display_command): Update.
6260 (do_one_display, disable_display)
6261 (enable_disable_display_command, do_enable_disable_display):
6262 Update.
6263 (free_display): Remove.
6264 (clear_displays): Rewrite.
6265 (delete_display): Update.
6266 (map_display_numbers): Use function_view. Remove "data"
6267 parameter. Update.
6268 (do_delete_display): Remove.
6269 (undisplay_command): Update.
6270 (do_one_display, do_displays, disable_display)
6271 (info_display_command): Update.
6272 (do_enable_disable_display): Remove.
6273 (enable_disable_display_command)
6274 (clear_dangling_display_expressions): Update.
6275
6276 2020-05-08 Tom Tromey <tom@tromey.com>
6277
6278 * symtab.c (set_symbol_cache_size)
6279 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6280 (maintenance_print_symbol_cache_statistics): Update.
6281 * symmisc.c (print_symbol_bcache_statistics)
6282 (print_objfile_statistics, maintenance_print_objfiles)
6283 (maintenance_info_symtabs, maintenance_check_symtabs)
6284 (maintenance_expand_symtabs, maintenance_info_line_tables):
6285 Update.
6286 * symfile-debug.c (set_debug_symfile): Update.
6287 * source.c (forget_cached_source_info): Update.
6288 * python/python.c (gdbpy_progspaces): Update.
6289 * psymtab.c (maintenance_info_psymtabs): Update.
6290 * probe.c (parse_probes): Update.
6291 * linespec.c (iterate_over_all_matching_symtabs)
6292 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6293 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6294 * exec.c (exec_target::close): Update.
6295 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6296 * breakpoint.c (print_one_breakpoint_location)
6297 (create_longjmp_master_breakpoint)
6298 (create_std_terminate_master_breakpoint): Update.
6299 * progspace.c (program_spaces): Now a std::vector.
6300 (maybe_new_address_space): Update.
6301 (add_program_space): Remove.
6302 (program_space::program_space): Update.
6303 (remove_program_space): Update.
6304 (number_of_program_spaces): Remove.
6305 (print_program_space, update_address_spaces): Update.
6306 * progspace.h (program_spaces): Change type.
6307 (ALL_PSPACES): Remove.
6308 (number_of_program_spaces): Don't declare.
6309 (struct program_space) <next>: Remove.
6310
6311 2020-05-08 Tom Tromey <tom@tromey.com>
6312
6313 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6314 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6315 (enable_break): Update.
6316 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6317 (frv_fdpic_find_canonical_descriptor): Update.
6318 (frv_fetch_objfile_link_map): Update.
6319 * progspace.c (program_space::free_all_objfiles): Update.
6320 (program_space::solibs): New method.
6321 * progspace.h (struct program_space) <solibs>: New method.
6322 * solist.h (master_so_list): Don't declare.
6323 (ALL_SO_LIBS): Remove.
6324 * solib.h (so_list_head): Remove.
6325 (update_solib_list): Update comment.
6326 * solib.c (master_so_list): Remove.
6327 (solib_used, update_solib_list, solib_add)
6328 (info_sharedlibrary_command, clear_solib)
6329 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6330
6331 2020-05-08 Tom Tromey <tom@tromey.com>
6332
6333 * extension.c (extension_languages): Now a std::array.
6334 (ALL_EXTENSION_LANGUAGES): Remove.
6335 (get_ext_lang_defn, get_ext_lang_of_file)
6336 (eval_ext_lang_from_control_command): Update.
6337 (finish_ext_lang_initialization)
6338 (auto_load_ext_lang_scripts_for_objfile)
6339 (ext_lang_type_printers::ext_lang_type_printers)
6340 (apply_ext_lang_type_printers)
6341 (ext_lang_type_printers::~ext_lang_type_printers)
6342 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6343 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6344 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6345 (get_matching_xmethod_workers, ext_lang_colorize)
6346 (ext_lang_before_prompt): Update.
6347 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6348
6349 2020-05-08 Tom Tromey <tom@tromey.com>
6350
6351 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6352 overload.
6353 <swap_string, m_string>: Remove.
6354 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6355 Update.
6356 * stabsread.c (define_symbol, read_type): Update.
6357 * linespec.c (find_linespec_symbols): Update.
6358 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6359 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6360 * dbxread.c (read_dbx_symtab): Update.
6361 * cp-support.h (cp_canonicalize_string_full)
6362 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6363 Return unique_xmalloc_ptr.
6364 * cp-support.c (inspect_type): Update.
6365 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6366 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6367 Likewise.
6368 * c-typeprint.c (print_name_maybe_canonical): Update.
6369 * break-catch-throw.c (check_status_exception_catchpoint):
6370 Update.
6371
6372 2020-05-08 Tom de Vries <tdevries@suse.de>
6373
6374 * infrun.c (follow_fork): Copy current_line and current_symtab to
6375 child thread.
6376
6377 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * async-event.c (struct async_signal_handler, struct
6380 async_event_handler): Reformat, remove typedef.
6381
6382 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6383
6384 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6385 access thistype->main_type->dyn_prop_list directly.
6386
6387 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6390 (remove_dyn_prop): Remove. Update all users to use
6391 type::remove_dyn_prop.
6392 * gdbtypes.c (remove_dyn_prop): Rename to...
6393 (type::remove_dyn_prop): ... this.
6394
6395 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6396
6397 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6398 (add_dyn_prop): Remove. Update all users to use
6399 type::add_dyn_prop.
6400 * gdbtypes.c (add_dyn_prop): Rename to...
6401 (type::add_dyn_prop): ... this.
6402
6403 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6404
6405 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6406 (get_dyn_prop): Remove. Update all users to use
6407 type::dyn_prop.
6408 * gdbtypes.c (get_dyn_prop): Rename to...
6409 (type::dyn_prop): ... this.
6410
6411 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6412
6413 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6414
6415 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6416
6417 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6418 instruction, skip it if it's there.
6419
6420 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6423
6424 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6425
6426 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6427 * gdbtypes.c (recursive_dump_type): Remove use of
6428 TYPE_INCOMPLETE.
6429
6430 2020-05-03 Tom Tromey <tom@tromey.com>
6431
6432 * breakpoint.c (catch_command, tcatch_command): Remove.
6433 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6434 add_show_prefix_cmd.
6435 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6436 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6437 Remove.
6438 (add_internal_problem_command): Use add_basic_prefix_cmd,
6439 add_show_prefix_cmd.
6440 * mips-tdep.c (set_mipsfpu_command): Remove.
6441 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6442 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6443 (_initialize_index_cache): Use add_basic_prefix_cmd.
6444 * memattr.c (dummy_cmd): Remove.
6445 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6446 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6447 (_initialize_tui_win): Use add_basic_prefix_cmd,
6448 add_show_prefix_cmd.
6449 * cli/cli-logging.c (set_logging_command): Remove.
6450 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6451 add_show_prefix_cmd.
6452 (show_logging_command): Remove.
6453 * target.c (target_command): Remove.
6454 (add_target): Use add_basic_prefix_cmd.
6455
6456 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6457
6458 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6459
6460 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6461
6462 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6463 info_command.
6464
6465 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6466
6467 * nbsd-nat.c (nbsd_enable_proc_events)
6468 (nbsd_nat_target::post_startup_inferior): Add.
6469 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6470 (nbsd_nat_target::update_thread_list): Rewrite.
6471 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6472 "PTRACE_LWP_CREATE".
6473 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6474
6475 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6476
6477 * stack.c (_initialize_stack): Remove duplicated creation
6478 of "frame" command and "f" alias.
6479
6480 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6481
6482 PR gdb/18706
6483 * gdbtypes.c (check_typedef): Calculate size of array of
6484 stubbed type.
6485
6486 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6487
6488 PR gdb/15559
6489 * i386-tdep.c (i386_push_dummy_call): Call
6490 i386_thiscall_push_dummy_call.
6491 (i386_thiscall_push_dummy_call): New function.
6492 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6493 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6494 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6495
6496 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbarch.sh (do_read): Add shellcheck disable directive for
6499 warning SC2162.
6500
6501 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6504 "referenced but not assigned" warning.
6505
6506 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * gdbarch.sh: Remove code that sets fallbackdefault.
6509
6510 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * gdbarch.sh: Use shell operators && and || instead of
6513 -a and -o.
6514
6515 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6516
6517 * gdbarch.sh: Use $(...) instead of `...`.
6518
6519 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6520
6521 * gdbarch.sh: Use double quotes around variables.
6522
6523 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6524
6525 * gdbarch.sh: Use %s with printf, instead of variables in the
6526 format string.
6527
6528 2020-04-29 Tom Tromey <tromey@adacore.com>
6529
6530 PR ada/25875:
6531 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6532 type fields here.
6533 (read_enumeration_type): Call
6534 update_enumeration_type_from_children later. Update comments.
6535 (process_enumeration_scope): Don't create type fields.
6536
6537 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6538
6539 * nbsd-tdep.c: Include "xml-syscall.h".
6540 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6541
6542 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6543
6544 * nbsd-nat.c: Include "sys/wait.h".
6545 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6546 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6547 (nbsd_nat_target::remove_exec_catchpoint)
6548 (nbsd_nat_target::set_syscall_catchpoint): Add.
6549 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6550 (nbsd_nat_target::insert_exec_catchpoint)
6551 (nbsd_nat_target::remove_exec_catchpoint)
6552 (nbsd_nat_target::set_syscall_catchpoint): Add.
6553 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6554 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6555 `nbsd_get_syscall_number'.
6556
6557 2020-04-29 Tom Tromey <tom@tromey.com>
6558
6559 * stack.c (print_block_frame_labels): Remove.
6560
6561 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6562
6563 PR gdb/17320
6564 * ada-valprint.c (val_print_packed_array_elements): Move array
6565 end bracket to new line.
6566 (ada_val_print_string): Remove extra spaces before first array
6567 element.
6568 * c-valprint.c (c_value_print_array): Likewise.
6569 * m2-valprint.c (m2_print_array_contents): Likewise.
6570 (m2_value_print_inner): Likewise.
6571 * p-valprint.c (pascal_value_print_inner): Likewise.
6572 * valprint.c (generic_val_print_array): Likewise.
6573 (value_print_array_elements): Move first array element and array
6574 end bracket to new line.
6575
6576 2020-04-29 Tom de Vries <tdevries@suse.de>
6577
6578 PR symtab/25889
6579 * linespec.c (find_method): Fix ix calculation.
6580
6581 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6582
6583 * syscalls/update-netbsd.sh: New file.
6584 * syscalls/netbsd.xml: Regenerate.
6585 * data-directory/Makefile.in: Register `netbsd.xml' in
6586 `SYSCALLS_FILES'.
6587
6588 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6589
6590 * syscalls/update-freebsd.sh: Add double quotes.
6591
6592 2020-04-28 Tom Tromey <tom@tromey.com>
6593
6594 * NEWS: Update.
6595 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6596 (cmdpy_init): Allow class_tui.
6597
6598 2020-04-28 Mark Williams <mark@myosotissp.com>
6599
6600 PR gdb/24480
6601 * dwarf2read.c: Add missing assingments to list_in_scope when
6602 start_symtab was already called.
6603
6604 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6605
6606 PR gdb/25881
6607 * dwarf2/read.c (offset_map_type): Use
6608 gdb:hash_enum<sect_offset> as hash function.
6609
6610 2020-04-28 Tom de Vries <tdevries@suse.de>
6611
6612 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6613 with DW_AT_signature.
6614
6615 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6616
6617 * configure.ac: Remove check for fs_base/gs_base in
6618 user_regs_struct.
6619 * configure: Re-generate.
6620 * config.in: Re-generate.
6621 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6622 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6623 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6624
6625 2020-04-27 Luis Machado <luis.machado@linaro.org>
6626
6627 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6628 problematic inline frame unwinding situation.
6629 * frame.c (frame_id_computed_p): New function.
6630 * frame.h (frame_id_computed_p): New prototype.
6631
6632 2020-04-26 Tom Tromey <tom@tromey.com>
6633
6634 * command.h (enum command_class) <class_pseudo>: Remove.
6635
6636 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6637
6638 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6639 and whitespace.
6640
6641 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6642
6643 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6644 `PT_GET_PROCESS_STATE' block.
6645
6646 2020-04-24 Tom Tromey <tom@tromey.com>
6647
6648 * symtab.h (symbol_get_demangled_name): Don't declare.
6649 * symtab.c (symbol_get_demangled_name): Remove.
6650 (general_symbol_info::natural_name)
6651 (general_symbol_info::demangled_name): Update.
6652
6653 2020-04-24 Tom Tromey <tom@tromey.com>
6654
6655 PR rust/25025:
6656 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6657
6658 2020-04-24 Tom Tromey <tom@tromey.com>
6659
6660 PR symtab/12707:
6661 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6662 exists.
6663 (new_symbol): Likewise.
6664 * compile/compile-object-load.c (get_out_value_type): Use
6665 symbol_matches_search_name.
6666
6667 2020-04-24 Tom Tromey <tom@tromey.com>
6668
6669 * dwarf2/read.c (add_partial_symbol): Do not call
6670 compute_and_set_names.
6671
6672 2020-04-24 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6675 overload.
6676
6677 2020-04-24 Tom Tromey <tom@tromey.com>
6678
6679 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6680 (add_psymbol_to_list): New overload. Make old overload call new
6681 one.
6682 * psympriv.h (add_psymbol_to_list): New overload.
6683
6684 2020-04-24 Tom Tromey <tom@tromey.com>
6685
6686 * dwarf2/read.c (partial_die_info::read) <case
6687 DW_AT_linkage_name>: Use value_as_string.
6688 (dwarf2_string_attr): Use value_as_string.
6689 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6690 method.
6691 * dwarf2/attribute.c (attribute::value_as_string): New method.
6692
6693 2020-04-24 Tom Tromey <tom@tromey.com>
6694
6695 * symtab.c (general_symbol_info::natural_name)
6696 (general_symbol_info::demangled_name): Check for language_rust.
6697
6698 2020-04-24 Tom Tromey <tom@tromey.com>
6699
6700 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6701 (dwarf2_physname): ... from here.
6702 (partial_die_info::read): Add Rust "{" hack.
6703
6704 2020-04-24 Tom Tromey <tom@tromey.com>
6705
6706 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6707 method.
6708 (symbol_set_demangled_name): Don't declare.
6709 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6710 symbol_set_demangled_name.
6711 (general_symbol_info::set_language)
6712 (general_symbol_info::compute_and_set_names): Update.
6713 * minsyms.c (minimal_symbol_reader::install): Update.
6714 * dwarf2/read.c (new_symbol): Update.
6715
6716 2020-04-24 Tom Tromey <tromey@adacore.com>
6717
6718 PR python/23662:
6719 * python/py-type.c (convert_field): Handle
6720 FIELD_LOC_KIND_DWARF_BLOCK.
6721 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6722 (typy_get_dynamic): Nw function.
6723 (type_object_getset): Add "dynamic".
6724 * NEWS: Add entry.
6725
6726 2020-04-24 Tom Tromey <tromey@adacore.com>
6727
6728 * ada-typeprint.c (print_choices, print_variant_part)
6729 (print_record_field_types_dynamic): New functions.
6730 (print_record_field_types): Use print_record_field_types_dynamic.
6731
6732 2020-04-24 Tom Tromey <tromey@adacore.com>
6733
6734 * dwarf2/read.c (handle_data_member_location): New overload.
6735 (dwarf2_add_field): Use it.
6736 (decode_locdesc): Add "computed" parameter. Update comment.
6737 * gdbtypes.c (is_dynamic_type_internal): Also look for
6738 FIELD_LOC_KIND_DWARF_BLOCK.
6739 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6740 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6741 virtual base classes.
6742 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6743 FIELD_LOC_KIND_DWARF_BLOCK.
6744
6745 2020-04-24 Tom Tromey <tromey@adacore.com>
6746
6747 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6748 * gdbtypes.c (is_dynamic_type_internal): Check
6749 TYPE_HAS_DYNAMIC_LENGTH.
6750 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6751 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6752 New macros.
6753 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6754 constant.
6755
6756 2020-04-24 Tom Tromey <tromey@adacore.com>
6757
6758 * dwarf2/read.c (struct variant_field): Rewrite.
6759 (struct variant_part_builder): New.
6760 (struct nextfield): Remove "variant" field. Add "offset".
6761 (struct field_info): Add "current_variant_part" and
6762 "variant_parts".
6763 (alloc_discriminant_info): Remove.
6764 (alloc_rust_variant): New function.
6765 (quirk_rust_enum): Update.
6766 (dwarf2_add_field): Set "offset" member. Don't handle
6767 DW_TAG_variant_part.
6768 (offset_map_type): New typedef.
6769 (convert_variant_range, create_one_variant)
6770 (create_one_variant_part, create_variant_parts)
6771 (add_variant_property): New functions.
6772 (dwarf2_attach_fields_to_type): Call add_variant_property.
6773 (read_structure_type): Don't handle DW_TAG_variant_part.
6774 (handle_variant_part, handle_variant): New functions.
6775 (handle_struct_member_die): Use them.
6776 (process_structure_scope): Don't handle variant parts.
6777 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6778 (struct discriminant_info): Remove.
6779 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6780 (struct main_type) <flag_discriminated_union>: Remove.
6781 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6782 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6783 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6784 Update.
6785 * valops.c (value_union_variant): Remove.
6786 * value.h (value_union_variant): Don't declare.
6787
6788 2020-04-24 Tom Tromey <tromey@adacore.com>
6789
6790 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6791 (ada_value_primitive_packed_val): Update.
6792 * ada-valprint.c (ada_value_print_1): Update.
6793 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6794 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6795 just an address. Use evaluate_for_locexpr_baton.
6796 (dwarf2_evaluate_property): Update.
6797 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6798 array_view.
6799 * findvar.c (default_read_var_value): Update.
6800 * gdbtypes.c (compute_variant_fields_inner)
6801 (resolve_dynamic_type_internal): Update.
6802 (resolve_dynamic_type): Change type of valaddr parameter.
6803 * gdbtypes.h (resolve_dynamic_type): Update.
6804 * valarith.c (value_subscripted_rvalue): Update.
6805 * value.c (value_from_contents_and_address): Update.
6806
6807 2020-04-24 Tom Tromey <tromey@adacore.com>
6808
6809 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6810 "push_initial_value" parameter.
6811 (dwarf2_evaluate_property): Likewise.
6812 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6813
6814 2020-04-24 Tom Tromey <tromey@adacore.com>
6815
6816 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6817 (variant::matches, compute_variant_fields_recurse)
6818 (compute_variant_fields_inner, compute_variant_fields): New
6819 functions.
6820 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6821 Use resolved_type after type is made.
6822 (operator==): Add new cases.
6823 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6824 (struct discriminant_range, struct variant, struct variant_part):
6825 New.
6826 (union dynamic_prop_data) <variant_parts, original_type>: New
6827 members.
6828 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6829 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6830 constants.
6831 * value.c (unpack_bits_as_long): Now public.
6832 * value.h (unpack_bits_as_long): Declare.
6833
6834 2020-04-24 Tom Tromey <tromey@adacore.com>
6835
6836 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6837 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6838
6839 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6840
6841 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6842
6843 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6844
6845 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6846 (remove_fork_catchpoint, post_startup_inferior)
6847 (post_attach): Move...
6848 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6849 (remove_fork_catchpoint, post_startup_inferior)
6850 (post_attach): ...here.
6851 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6852 (remove_fork_catchpoint, post_startup_inferior)
6853 (post_attach): Move...
6854 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6855 (remove_fork_catchpoint, post_startup_inferior)
6856 (post_attach): ...here.
6857
6858 2020-04-24 Tom Tromey <tromey@adacore.com>
6859
6860 * nat/windows-nat.h (struct windows_thread_info)
6861 <pc_adjusted>: New member.
6862 * windows-nat.c (windows_fetch_one_register): Check
6863 pc_adjusted.
6864 (windows_nat_target::get_windows_debug_event)
6865 (windows_nat_target::wait): Set pc_adjusted.
6866
6867 2020-04-24 Tom de Vries <tdevries@suse.de>
6868
6869 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6870 Run gdb-add-index inside temp dir.
6871
6872 2020-04-23 Tom Tromey <tromey@adacore.com>
6873
6874 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6875 in loop.
6876
6877 2020-04-23 Luis Machado <luis.machado@linaro.org>
6878
6879 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6880 get_frame_register instead of gdbarch_unwind_pc.
6881
6882 2020-04-23 Tom de Vries <tdevries@suse.de>
6883
6884 * symtab.c (lookup_global_symbol): Prefer def over decl.
6885
6886 2020-04-23 Tom de Vries <tdevries@suse.de>
6887
6888 PR symtab/25807
6889 * block.c (best_symbol, better_symbol): Promote to external.
6890 * block.h (best_symbol, better_symbol): Declare.
6891 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6892 decl.
6893
6894 2020-04-23 Tom Tromey <tromey@adacore.com>
6895
6896 PR ada/25837:
6897 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6898 "const char *", not a "const std::string &".
6899 <name_and_matcher::operator==>: Update.
6900 * unittests/lookup_name_info-selftests.c: Change type of
6901 "result".
6902
6903 2020-04-23 Tom Tromey <tom@tromey.com>
6904
6905 * inferior.h (iterate_over_inferiors): Don't declare.
6906 * inferior.c (iterate_over_inferiors): Remove.
6907 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6908 Remove.
6909 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6910 use iterate_over_inferiors.
6911 (darwin_resume_inferior_it)
6912 (struct resume_inferior_threads_param)
6913 (darwin_resume_inferior_threads_it): Remove.
6914 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6915
6916 2020-04-23 Tom de Vries <tdevries@suse.de>
6917
6918 * blockframe.c (find_pc_partial_function): Use
6919 find_pc_sect_compunit_symtab rather than
6920 objfile->sf->qf->find_pc_sect_compunit_symtab.
6921
6922 2020-04-22 Tom de Vries <tdevries@suse.de>
6923
6924 PR symtab/25764
6925 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6926 in psymtabs.
6927
6928 2020-04-22 Tom de Vries <tdevries@suse.de>
6929
6930 PR symtab/25801
6931 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6932 symtabs.
6933
6934 2020-04-22 Tom de Vries <tdevries@suse.de>
6935
6936 PR symtab/25700
6937 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6938 CU if already created.
6939
6940 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6941
6942 * infrun.c (displaced_step_fixup): Switch to the event_thread
6943 before calling displaced_step_restore, not after.
6944
6945 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6946
6947 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6948 its inferior is not recorded by us.
6949 (record_btrace_target_open): Replace call to
6950 all_non_exited_threads () with call to current_inferior
6951 ()->non_exited_threads ().
6952 (record_btrace_target::stop_recording): Likewise.
6953 (record_btrace_target::close): Likewise.
6954 (record_btrace_target::wait): Likewise.
6955 (record_btrace_target::record_stop_replaying): Likewise.
6956
6957 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6958
6959 * btrace.c (btrace_enable): Throw an error on double enables and
6960 when enabling recording fails.
6961 (btrace_disable): Throw an error if the thread is not recorded.
6962
6963 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6964
6965 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6966 request if we do not have a thread_info.
6967
6968 2020-04-21 Tom de Vries <tdevries@suse.de>
6969
6970 PR gdb/25471
6971 * thread.c
6972 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6973 exception in get_frame_id.
6974
6975 2020-04-20 Tom Tromey <tromey@adacore.com>
6976
6977 * python/python.c (struct gdbpy_event): Mark move constructor as
6978 noexcept.
6979 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6980 constructor as noexcept.
6981 * completer.h (struct completion_result): Mark move constructor as
6982 noexcept.
6983 * completer.c (completion_result::completion_result): Use
6984 initialization style. Don't call reset_match_list.
6985
6986 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6987
6988 * MAINTAINERS (Write After Approval): Add myself.
6989
6990 2020-04-18 Tom Tromey <tom@tromey.com>
6991
6992 * windows-tdep.c (init_w32_command_list)
6993 (w32_prefix_command_valid): Restore.
6994 (_initialize_windows_tdep): Call init_w32_command_list.
6995
6996 2020-04-18 Tom Tromey <tom@tromey.com>
6997
6998 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6999 * value.c (value_fn_field): Update.
7000 * valops.c (find_function_in_inferior)
7001 (value_allocate_space_in_inferior): Update.
7002 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7003 Update.
7004 * tui/tui-source.c (tui_source_window::set_contents): Update.
7005 * symtab.c (lookup_global_or_static_symbol)
7006 (find_function_start_sal_1, skip_prologue_sal)
7007 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7008 * symmisc.c (dump_msymbols, dump_symtab_1)
7009 (maintenance_print_one_line_table): Update.
7010 * symfile.c (init_entry_point_info, section_is_mapped)
7011 (list_overlays_command, simple_read_overlay_table)
7012 (simple_overlay_update_1): Update.
7013 * stap-probe.c (handle_stap_probe): Update.
7014 * stabsread.c (dbx_init_float_type, define_symbol)
7015 (read_one_struct_field, read_enum_type, read_range_type): Update.
7016 * source.c (info_line_command): Update.
7017 * python/python.c (gdbpy_source_objfile_script)
7018 (gdbpy_execute_objfile_script): Update.
7019 * python/py-type.c (save_objfile_types): Update.
7020 * python/py-objfile.c (py_free_objfile): Update.
7021 * python/py-inferior.c (python_new_objfile): Update.
7022 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7023 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7024 (maintenance_check_psymtabs): Update.
7025 * printcmd.c (info_address_command): Update.
7026 * objfiles.h (struct objfile) <arch>: New method, from
7027 get_objfile_arch.
7028 (get_objfile_arch): Don't declare.
7029 * objfiles.c (get_objfile_arch): Remove.
7030 (filter_overlapping_sections): Update.
7031 * minsyms.c (msymbol_is_function): Update.
7032 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7033 (output_nondebug_symbol): Update.
7034 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7035 (mdebug_expand_psymtab): Update.
7036 * machoread.c (macho_add_oso_symfile): Update.
7037 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7038 Update.
7039 * linux-fork.c (checkpoint_command): Update.
7040 * linespec.c (convert_linespec_to_sals): Update.
7041 * jit.c (finalize_symtab): Update.
7042 * infrun.c (insert_exception_resume_from_probe): Update.
7043 * ia64-tdep.c (ia64_find_unwind_table): Update.
7044 * hppa-tdep.c (internalize_unwinds): Update.
7045 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7046 Update.
7047 * gcore.c (call_target_sbrk): Update.
7048 * elfread.c (record_minimal_symbol, elf_symtab_read)
7049 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7050 (elf_gnu_ifunc_resolve_by_got): Update.
7051 * dwarf2/read.c (create_addrmap_from_index)
7052 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7053 (read_debug_names_from_section)
7054 (process_psymtab_comp_unit_reader, add_partial_symbol)
7055 (add_partial_subprogram, process_full_comp_unit)
7056 (read_file_scope, read_func_scope, read_lexical_block_scope)
7057 (read_call_site_scope, dwarf2_ranges_read)
7058 (dwarf2_record_block_ranges, dwarf2_add_field)
7059 (mark_common_block_symbol_computed, read_tag_pointer_type)
7060 (read_tag_string_type, dwarf2_init_float_type)
7061 (dwarf2_init_complex_target_type, read_base_type)
7062 (partial_die_info::read, partial_die_info::read)
7063 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7064 (dwarf2_fetch_die_loc_sect_off): Update.
7065 * dwarf2/loc.c (dwarf2_find_location_expression)
7066 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7067 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7068 (dwarf2_loc_desc_get_symbol_read_needs)
7069 (locexpr_describe_location_piece, locexpr_describe_location_1)
7070 (loclist_describe_location): Update.
7071 * dwarf2/index-write.c (write_debug_names): Update.
7072 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7073 * dtrace-probe.c (dtrace_process_dof): Update.
7074 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7075 (process_one_symbol): Update.
7076 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7077 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7078 (coff_read_enum_type): Update.
7079 * cli/cli-cmds.c (edit_command, list_command): Update.
7080 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7081 * breakpoint.c (create_overlay_event_breakpoint)
7082 (create_longjmp_master_breakpoint)
7083 (create_std_terminate_master_breakpoint)
7084 (create_exception_master_breakpoint, get_sal_arch): Update.
7085 * block.c (block_gdbarch): Update.
7086 * annotate.c (annotate_source_line): Update.
7087
7088 2020-04-17 Tom Tromey <tromey@adacore.com>
7089
7090 * auto-load.c (show_auto_load_cmd): Remove.
7091 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7092 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7093 (maintenance_print_arc_command): Remove.
7094 * tui/tui-win.c (tui_command): Remove.
7095 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7096 * tui/tui-layout.c (tui_layout_command): Remove.
7097 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7098 * python/python.c (user_set_python, user_show_python): Remove.
7099 (_initialize_python): Use add_basic_prefix_cmd,
7100 add_show_prefix_cmd.
7101 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7102 (install_gdb_commands): Use add_basic_prefix_cmd,
7103 add_show_prefix_cmd.
7104 (info_guile_command): Remove.
7105 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7106 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7107 add_show_prefix_cmd.
7108 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7109 Remove do_set and do_show parameters.
7110 * cli/cli-style.c (set_style, show_style): Remove.
7111 (_initialize_cli_style): Use add_basic_prefix_cmd,
7112 add_show_prefix_cmd.
7113 (cli_style_option::add_setshow_commands): Remove do_set and
7114 do_show parameters.
7115 (cli_style_option::add_setshow_commands): Use
7116 add_basic_prefix_cmd, add_show_prefix_cmd.
7117 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7118 (set_style_name): Remove.
7119 * cli/cli-dump.c (dump_command, append_command): Remove.
7120 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7121 (tekhex_dump_command, binary_dump_command)
7122 (binary_append_command): Remove.
7123 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7124 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7125 (init_w32_command_list): Remove; move into ...
7126 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7127 * valprint.c (set_print, show_print, set_print_raw)
7128 (show_print_raw): Remove.
7129 (_initialize_valprint): Use add_basic_prefix_cmd,
7130 add_show_prefix_cmd.
7131 * typeprint.c (set_print_type, show_print_type): Remove.
7132 (_initialize_typeprint): Use add_basic_prefix_cmd,
7133 add_show_prefix_cmd.
7134 * record.c (set_record_command, show_record_command): Remove.
7135 (_initialize_record): Use add_basic_prefix_cmd,
7136 add_show_prefix_cmd.
7137 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7138 add_show_prefix_cmd.
7139 (info_command, show_command, set_debug, show_debug): Remove.
7140 * top.h (set_history, show_history): Don't declare.
7141 * top.c (set_history, show_history): Remove.
7142 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7143 (unset_tdesc_cmd): Remove.
7144 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7145 add_show_prefix_cmd.
7146 * symtab.c (info_module_command): Remove.
7147 (_initialize_symtab): Use add_basic_prefix_cmd.
7148 * symfile.c (overlay_command): Remove.
7149 (_initialize_symfile): Use add_basic_prefix_cmd.
7150 * sparc64-tdep.c (info_adi_command): Remove.
7151 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7152 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7153 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7154 add_show_prefix_cmd.
7155 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7156 (_initialize_serial): Use add_basic_prefix_cmd,
7157 add_show_prefix_cmd.
7158 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7159 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7160 add_show_prefix_cmd.
7161 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7162 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7163 add_show_prefix_cmd.
7164 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7165 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7166 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7167 add_show_prefix_cmd.
7168 * remote.c (remote_command, set_remote_cmd): Remove.
7169 (_initialize_remote): Use add_basic_prefix_cmd.
7170 * record-full.c (set_record_full_command)
7171 (show_record_full_command): Remove.
7172 (_initialize_record_full): Use add_basic_prefix_cmd,
7173 add_show_prefix_cmd.
7174 * record-btrace.c (cmd_set_record_btrace)
7175 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7176 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7177 (cmd_show_record_btrace_pt): Remove.
7178 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7179 add_show_prefix_cmd.
7180 * ravenscar-thread.c (set_ravenscar_command)
7181 (show_ravenscar_command): Remove.
7182 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7183 add_show_prefix_cmd.
7184 * mips-tdep.c (show_mips_command, set_mips_command)
7185 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7186 add_show_prefix_cmd.
7187 * maint.c (maintenance_command, maintenance_info_command)
7188 (maintenance_check_command, maintenance_print_command)
7189 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7190 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7191 add_show_prefix_cmd.
7192 (show_per_command_cmd): Remove.
7193 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7194 Remove.
7195 (maintenance_show_test_settings_cmd): Remove.
7196 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7197 add_show_prefix_cmd.
7198 * maint-test-options.c (maintenance_test_options_command):
7199 Remove.
7200 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7201 * macrocmd.c (macro_command): Remove
7202 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7203 * language.c (set_check, show_check): Remove.
7204 (_initialize_language): Use add_basic_prefix_cmd,
7205 add_show_prefix_cmd.
7206 * infcmd.c (unset_command): Remove.
7207 (_initialize_infcmd): Use add_basic_prefix_cmd.
7208 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7209 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7210 add_show_prefix_cmd.
7211 * go32-nat.c (go32_info_dos_command): Remove.
7212 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7213 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7214 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7215 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7216 (_initialize_frame): Use add_basic_prefix_cmd,
7217 add_show_prefix_cmd.
7218 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7219 (_initialize_dcache): Use add_basic_prefix_cmd,
7220 add_show_prefix_cmd.
7221 * cp-support.c (maint_cplus_command): Remove.
7222 (_initialize_cp_support): Use add_basic_prefix_cmd.
7223 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7224 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7225 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7226 add_basic_prefix_cmd, add_show_prefix_cmd.
7227 * breakpoint.c (save_command): Remove.
7228 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7229 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7230 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7231 add_show_prefix_cmd.
7232 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7233 (set_ada_command, show_ada_command): Remove.
7234 (_initialize_ada_language): Use add_basic_prefix_cmd,
7235 add_show_prefix_cmd.
7236 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7237
7238 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7239
7240 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7241 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7242
7243 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7244
7245 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7246 warning messages.
7247
7248 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7249
7250 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7251 import table is not at beginning of .idata section.
7252
7253 2020-04-16 Pedro Alves <palves@redhat.com>
7254
7255 * inferior.c (delete_inferior): Use delete operator directly
7256 instead of delete_program_space.
7257 * progspace.c (add_program_space): New, factored out from
7258 program_space::program_space.
7259 (remove_program_space): New, factored out from
7260 delete_program_space.
7261 (program_space::program_space): Remove intro comment. Rewrite.
7262 (program_space::~program_space): Remove intro comment. Call
7263 remove_program_space.
7264 (delete_program_space): Delete.
7265 * progspace.h (program_space::program_space): Make explicit. Move
7266 intro comment here, adjusted.
7267 (program_space::~program_space): Move intro comment here,
7268 adjusted.
7269 (delete_program_space): Remove.
7270
7271 2020-04-16 Tom Tromey <tromey@adacore.com>
7272
7273 * windows-nat.c (windows_nat::handle_access_violation): New
7274 function.
7275 * nat/windows-nat.h (handle_access_violation): Declare.
7276 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7277 windows-nat.c. Call handle_access_violation.
7278
7279 2020-04-16 Tom de Vries <tdevries@suse.de>
7280
7281 PR symtab/25791
7282 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7283 CUs without psymtab.
7284
7285 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7286
7287 * python/python.c (do_start_initialization): Don't call
7288 PyEval_InitThreads for Python 3.9 and beyond.
7289
7290 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7291
7292 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7293 thread functions.
7294 (obsd_nat_target::wait): Likewise.
7295
7296 2020-04-15 Tom Tromey <tromey@adacore.com>
7297
7298 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7299 (DEBUG_EXCEPT): Use debug_printf.
7300
7301 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7302
7303 * completer.c (class completion_tracker::completion_hash_entry)
7304 <hash_name>: New member function.
7305 (completion_tracker::discard_completions): New callback to hash a
7306 completion_hash_entry, pass this to htab_create_alloc.
7307
7308 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7309
7310 * windows-nat.c (windows_make_so): Warn rather than stopping with
7311 an error if realpath() fails.
7312
7313 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7314
7315 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7316 (nbsd_nat_target::info_proc): Add do_status.
7317
7318 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7319 Tom de Vries <tdevries@suse.de>
7320
7321 PR symtab/25718
7322 * psympriv.h (struct partial_symtab::read_symtab)
7323 (struct partial_symtab::expand_psymtab)
7324 (struct partial_symtab::read_dependencies): Update comments.
7325 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7326 read_symtab for includer.
7327 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7328 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7329 (struct dwarf2_include_psymtab::m_readin): Remove.
7330 (struct dwarf2_include_psymtab::includer): New member function.
7331 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7332
7333 2020-04-14 Tom de Vries <tdevries@suse.de>
7334
7335 PR symtab/25720
7336 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7337 with NULL symbol_matcher and lookup_name.
7338 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7339 and lookup_name.
7340 * dwarf2/read.c (dw2_expand_symtabs_matching)
7341 (dw2_debug_names_expand_symtabs_matching): Same.
7342 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7343 Make lookup_name a pointer. Update comment.
7344 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7345 lookup_name being a pointer.
7346 * symfile.c (expand_symtabs_matching): Same.
7347 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7348 * linespec.c (iterate_over_all_matching_symtabs): Same.
7349
7350 2020-04-13 Tom Tromey <tom@tromey.com>
7351
7352 * run-on-main-thread.c: Update include.
7353 * unittests/main-thread-selftests.c: Update include.
7354 * tui/tui-win.c: Update include.
7355 * tui/tui-io.c: Update include.
7356 * tui/tui-interp.c: Update include.
7357 * tui/tui-hooks.c: Update include.
7358 * top.h: Update include.
7359 * top.c: Update include.
7360 * ser-base.c: Update include.
7361 * remote.c: Update include.
7362 * remote-notif.c: Update include.
7363 * remote-fileio.c: Update include.
7364 * record-full.c: Update include.
7365 * record-btrace.c: Update include.
7366 * python/python.c: Update include.
7367 * posix-hdep.c: Update include.
7368 * mingw-hdep.c: Update include.
7369 * mi/mi-main.c: Update include.
7370 * mi/mi-interp.c: Update include.
7371 * main.c: Update include.
7372 * linux-nat.c: Update include.
7373 * interps.c: Update include.
7374 * infrun.c: Update include.
7375 * inf-loop.c: Update include.
7376 * event-top.c: Update include.
7377 * event-loop.c: Move to ../gdbsupport/.
7378 * event-loop.h: Move to ../gdbsupport/.
7379 * async-event.h: Update include.
7380 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7381
7382 2020-04-13 Tom Tromey <tom@tromey.com>
7383
7384 * tui/tui-win.c: Include async-event.h.
7385 * remote.c: Include async-event.h.
7386 * remote-notif.c: Include async-event.h.
7387 * record-full.c: Include async-event.h.
7388 * record-btrace.c: Include async-event.h.
7389 * infrun.c: Include async-event.h.
7390 * event-top.c: Include async-event.h.
7391 * event-loop.h: Move some declarations to async-event.h.
7392 * event-loop.c: Don't include ser-event.h or top.h. Move some
7393 code to async-event.c.
7394 * async-event.h: New file.
7395 * async-event.c: New file.
7396 * Makefile.in (COMMON_SFILES): Add async-event.c.
7397 (HFILES_NO_SRCDIR): Add async-event.h.
7398
7399 2020-04-13 Tom Tromey <tom@tromey.com>
7400
7401 * utils.c (flush_streams): New function.
7402 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7403
7404 2020-04-13 Tom Tromey <tom@tromey.com>
7405
7406 * event-loop.c (handle_file_event): Use warning, not
7407 printf_unfiltered.
7408
7409 2020-04-13 Tom Tromey <tom@tromey.com>
7410
7411 * event-loop.c: Include <chrono>.
7412
7413 2020-04-13 Tom Tromey <tom@tromey.com>
7414
7415 * gdb_select.h: Move to ../gdbsupport/.
7416 * event-loop.c: Update include path.
7417 * top.c: Update include path.
7418 * ser-base.c: Update include path.
7419 * ui-file.c: Update include path.
7420 * ser-tcp.c: Update include path.
7421 * guile/scm-ports.c: Update include path.
7422 * posix-hdep.c: Update include path.
7423 * ser-unix.c: Update include path.
7424 * gdb_usleep.c: Update include path.
7425 * mingw-hdep.c: Update include path.
7426 * inflow.c: Update include path.
7427 * infrun.c: Update include path.
7428 * event-top.c: Update include path.
7429
7430 2020-04-13 Tom Tromey <tom@tromey.com>
7431
7432 * configure: Rebuild.
7433 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7434
7435 2020-04-13 Tom Tromey <tom@tromey.com>
7436
7437 * event-loop.h (start_event_loop): Don't declare.
7438 * event-loop.c (start_event_loop): Move...
7439 * main.c (start_event_loop): ...here. Now static.
7440
7441 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7442
7443 * MAINTAINERS: Update my email address.
7444
7445 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7446
7447 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7448 IP_ALL.
7449
7450 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7451
7452 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7453 (nbsd_nat_target::info_proc): Add do_cmdline.
7454
7455 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7456
7457 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7458 (nbsd_nat_target::info_proc): Add do_cwd.
7459
7460 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7461
7462 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7463
7464 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7465
7466 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7467 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7468 (nbsd_nat_target::info_proc): New functions.
7469 * nbsd-nat.c (kinfo_get_vmmap): New function.
7470 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7471 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7472 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7473 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7474 functions.
7475 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7476 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7477 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7478 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7479 (KINFO_VME_FLAG_GROWS_DOWN): New.
7480
7481 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7482
7483 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7484 bit shift.
7485
7486 2020-04-10 Tom Tromey <tromey@adacore.com>
7487
7488 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7489
7490 2020-04-10 Tom Tromey <tromey@adacore.com>
7491
7492 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7493 separate debug files.
7494
7495 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7496
7497 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7498 Move to...
7499 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7500 ... here.
7501 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7502 Check for STATUS_WX86_BREAKPOINT.
7503 (windows_nat_target::wait): Same.
7504
7505 2020-04-10 Tom de Vries <tdevries@suse.de>
7506
7507 PR cli/25808
7508 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7509
7510 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7513 (Write After Approval): Remove Tom de Vries.
7514
7515 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7516
7517 revert partially:
7518 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7519
7520 * buildsym.c (record_line): Fix undefined behavior and preserve
7521 lines at eof.
7522
7523 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7524
7525 * auxv.h (svr4_auxv_parse): New.
7526 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7527 and generic_auxv_parse.
7528 (svr4_auxv_parse): Add.
7529 * obsd-tdep.c: Include "auxv.h".
7530 (obsd_auxv_parse): Remove.
7531 (obsd_init_abi): Remove comment.
7532 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7533 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7534 * nbsd-tdep.c: Include "auxv.h".
7535 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7536
7537 2020-04-08 Tom Tromey <tromey@adacore.com>
7538
7539 * nat/windows-nat.h (last_wait_event): Don't declare.
7540 (wait_for_debug_event): Update comment.
7541 * nat/windows-nat.c (last_wait_event): Now static.
7542
7543 2020-04-08 Tom Tromey <tromey@adacore.com>
7544
7545 * windows-nat.c (wait_for_debug_event): Move to
7546 nat/windows-nat.c.
7547 * nat/windows-nat.h (wait_for_debug_event): Declare.
7548 * nat/windows-nat.c (wait_for_debug_event): Move from
7549 windows-nat.c. No longer static.
7550
7551 2020-04-08 Tom Tromey <tromey@adacore.com>
7552
7553 * windows-nat.c (get_windows_debug_event): Use
7554 fetch_pending_stop.
7555 * nat/windows-nat.h (fetch_pending_stop): Declare.
7556 * nat/windows-nat.c (fetch_pending_stop): New function.
7557
7558 2020-04-08 Tom Tromey <tromey@adacore.com>
7559
7560 * windows-nat.c (windows_continue): Use matching_pending_stop and
7561 continue_last_debug_event.
7562 * nat/windows-nat.h (matching_pending_stop)
7563 (continue_last_debug_event): Declare.
7564 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7565 (matching_pending_stop, continue_last_debug_event): New
7566 functions.
7567
7568 2020-04-08 Tom Tromey <tromey@adacore.com>
7569
7570 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7571 (handle_exception_result): Move to nat/windows-nat.h.
7572 (DEBUG_EXCEPTION_SIMPLE): Remove.
7573 (windows_nat::handle_ms_vc_exception): New function.
7574 (handle_exception): Move to nat/windows-nat.c.
7575 (get_windows_debug_event): Update.
7576 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7577 nat/windows-nat.c.
7578 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7579 (handle_exception_result): Move from windows-nat.c.
7580 (handle_exception): Declare.
7581 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7582 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7583 windows-nat.c.
7584
7585 2020-04-08 Tom Tromey <tromey@adacore.com>
7586
7587 * windows-nat.c (exception_count, event_count): Remove.
7588 (handle_exception, get_windows_debug_event)
7589 (do_initial_windows_stuff): Update.
7590
7591 2020-04-08 Tom Tromey <tromey@adacore.com>
7592
7593 * windows-nat.c (windows_nat::handle_load_dll)
7594 (windows_nat::handle_unload_dll): Rename. No longer static.
7595 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7596 Declare.
7597
7598 2020-04-08 Tom Tromey <tromey@adacore.com>
7599
7600 * complaints.h (stop_whining): Declare at top-level.
7601 (complaint): Don't declare stop_whining.
7602
7603 2020-04-08 Tom Tromey <tromey@adacore.com>
7604
7605 * windows-nat.c (windows_nat::handle_output_debug_string):
7606 Rename. No longer static.
7607 * nat/windows-nat.h (handle_output_debug_string): Declare.
7608
7609 2020-04-08 Tom Tromey <tromey@adacore.com>
7610
7611 * windows-nat.c (current_process_handle, current_process_id)
7612 (main_thread_id, last_sig, current_event, last_wait_event)
7613 (current_windows_thread, desired_stop_thread_id, pending_stops)
7614 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7615 (display_selectors, fake_create_process)
7616 (get_windows_debug_event): Update.
7617 * nat/windows-nat.h (current_process_handle, current_process_id)
7618 (main_thread_id, last_sig, current_event, last_wait_event)
7619 (current_windows_thread, desired_stop_thread_id, pending_stops)
7620 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7621 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
7625
7626 2020-04-08 Tom Tromey <tromey@adacore.com>
7627
7628 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7629 (handle_load_dll): Update.
7630 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7631
7632 2020-04-08 Tom Tromey <tromey@adacore.com>
7633
7634 * windows-nat.c (enum thread_disposition_type): Move to
7635 nat/windows-nat.h.
7636 (windows_nat::thread_rec): Rename from thread_rec. No longer
7637 static.
7638 (windows_add_thread, windows_nat_target::fetch_registers)
7639 (windows_nat_target::store_registers, handle_exception)
7640 (windows_nat_target::resume, get_windows_debug_event)
7641 (windows_nat_target::get_tib_address)
7642 (windows_nat_target::thread_name)
7643 (windows_nat_target::thread_alive): Update.
7644 * nat/windows-nat.h (enum thread_disposition_type): Move from
7645 windows-nat.c.
7646 (thread_rec): Declare.
7647
7648 2020-04-08 Tom Tromey <tromey@adacore.com>
7649
7650 * windows-nat.c: Add "using namespace".
7651 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7652 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7653
7654 2020-04-08 Tom Tromey <tromey@adacore.com>
7655
7656 * nat/windows-nat.h (struct windows_thread_info): Declare
7657 destructor.
7658 * nat/windows-nat.c (~windows_thread_info): New.
7659
7660 2020-04-08 Tom Tromey <tromey@adacore.com>
7661
7662 PR gdb/22992
7663 * windows-nat.c (current_event): Update comment.
7664 (last_wait_event, desired_stop_thread_id): New globals.
7665 (struct pending_stop): New.
7666 (pending_stops): New global.
7667 (windows_nat_target) <stopped_by_sw_breakpoint>
7668 <supports_stopped_by_sw_breakpoint>: New methods.
7669 (windows_fetch_one_register): Add assertions. Adjust PC.
7670 (windows_continue): Handle pending stops. Suspend other threads
7671 when stepping. Use last_wait_event
7672 (wait_for_debug_event): New function.
7673 (get_windows_debug_event): Use wait_for_debug_event. Handle
7674 pending stops. Queue spurious stops.
7675 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7676 (windows_nat_target::kill): Use wait_for_debug_event.
7677 * nat/windows-nat.h (struct windows_thread_info)
7678 <stopped_at_software_breakpoint>: New field.
7679 * nat/windows-nat.c (windows_thread_info::resume): Clear
7680 stopped_at_software_breakpoint.
7681
7682 2020-04-08 Tom Tromey <tromey@adacore.com>
7683
7684 * windows-nat.c (enum thread_disposition_type): New.
7685 (thread_rec): Replace "get_context" parameter with "disposition";
7686 change type.
7687 (windows_add_thread, windows_nat_target::fetch_registers)
7688 (windows_nat_target::store_registers, handle_exception)
7689 (windows_nat_target::resume, get_windows_debug_event)
7690 (windows_nat_target::get_tib_address)
7691 (windows_nat_target::thread_name)
7692 (windows_nat_target::thread_alive): Update.
7693
7694 2020-04-08 Tom Tromey <tromey@adacore.com>
7695
7696 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7697 (windows_continue): Use windows_continue::resume.
7698 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7699 resume>: Declare new methods.
7700 * nat/windows-nat.c: New file.
7701 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7702
7703 2020-04-08 Tom Tromey <tromey@adacore.com>
7704
7705 * windows-nat.c (windows_add_thread, windows_delete_thread)
7706 (windows_nat_target::fetch_registers)
7707 (windows_nat_target::store_registers, fake_create_process)
7708 (windows_nat_target::resume, windows_nat_target::resume)
7709 (get_windows_debug_event, windows_nat_target::wait)
7710 (windows_nat_target::pid_to_str)
7711 (windows_nat_target::get_tib_address)
7712 (windows_nat_target::get_ada_task_ptid)
7713 (windows_nat_target::thread_name)
7714 (windows_nat_target::thread_alive): Use lwp, not tid.
7715
7716 2020-04-08 Tom Tromey <tromey@adacore.com>
7717
7718 * windows-nat.c (handle_exception)
7719 (windows_nat_target::thread_name): Update.
7720 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7721 <name>: Now unique_xmalloc_ptr.
7722
7723 2020-04-08 Tom Tromey <tromey@adacore.com>
7724
7725 * windows-nat.c (thread_rec)
7726 (windows_nat_target::fetch_registers): Update.
7727 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7728 Update comment.
7729 <debug_registers_changed, reload_context>: Now bool.
7730
7731 2020-04-08 Tom Tromey <tromey@adacore.com>
7732
7733 * windows-nat.c (windows_add_thread): Use new.
7734 (windows_init_thread_list, windows_delete_thread): Use delete.
7735 (get_windows_debug_event): Update.
7736 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7737 destructor, and initializers.
7738
7739 2020-04-08 Tom Tromey <tromey@adacore.com>
7740
7741 * windows-nat.c (struct windows_thread_info): Remove.
7742 * nat/windows-nat.h: New file.
7743
7744 2020-04-08 Tom Tromey <tromey@adacore.com>
7745
7746 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7747 (thread_rec, windows_add_thread, windows_delete_thread)
7748 (windows_continue): Update.
7749
7750 2020-04-08 Tom Tromey <tromey@adacore.com>
7751
7752 * windows-nat.c (struct windows_thread_info): Remove typedef.
7753 (thread_head): Remove.
7754 (thread_list): New global.
7755 (thread_rec, windows_add_thread, windows_init_thread_list)
7756 (windows_delete_thread, windows_continue): Update.
7757
7758 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7759
7760 * windows-tdep.h (windows_init_abi): Add comment.
7761 (cygwin_init_abi): New declaration.
7762 * windows-tdep.c: Split signal enumeration in two, one for
7763 Windows and one for Cygwin.
7764 (windows_gdb_signal_to_target): Only deal with signal of the
7765 Windows OS ABI.
7766 (cygwin_gdb_signal_to_target): New function.
7767 (windows_init_abi): Rename to windows_init_abi_common, don't set
7768 gdb_signal_to_target gdbarch method. Add new new function with
7769 this name.
7770 (cygwin_init_abi): New function.
7771 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7772 comment. Don't call windows_init_abi.
7773 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7774 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7775 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7776 i386_windows_init_abi_common, don't call windows_init_abi. Add
7777 a new function of this name.
7778 (i386_cygwin_init_abi): New function.
7779 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7780 OS ABI Cygwin.
7781
7782 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7783
7784 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7785 parameter.c.
7786 (dwarf2_read_gdb_index): Update.
7787
7788 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7789
7790 * nbsd-tdep.c: Include "objfiles.h".
7791 (nbsd_skip_solib_resolver): New.
7792 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7793
7794 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7795
7796 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7797 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7798 with DW_LLE_base_addressx are being emitted in DWARFv5.
7799 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7800 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7801 unsigned integer.
7802
7803 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7804
7805 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7806 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7807 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7808 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7809 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7810 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7811 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7812
7813
7814 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7815
7816 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7817 (read_loclist_index): New function definition.
7818 (lookup_loclist_base): New function definition.
7819 (read_loclist_header): New function definition.
7820 (dwarf2_cu): Add loclist_base and loclist_header field.
7821 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7822 (read_full_die_1): Read the value of DW_AT_loclists_base.
7823 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7824 (read_attribute_value): Handle DW_FORM_loclistx.
7825 (skip_one_die): Handle DW_FORM_loclistx.
7826 (loclist_header): New structure declaration.
7827 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7828
7829 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7832 constructor. Remove `addr` parameter from other constructor and
7833 add `per_cu` parameter.
7834 * dwarf2/read.c (create_partial_symtab): Update.
7835
7836 2020-04-07 Tom de Vries <tdevries@suse.de>
7837
7838 PR symtab/25796
7839 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7840 (partial_die_info::fixup): Inherit has_const_value.
7841
7842 2020-04-07 Tom de Vries <tdevries@suse.de>
7843
7844 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7845 symbols without address.
7846
7847 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7848
7849 * nbsd-nat.h (struct thread_info): Add forward declaration.
7850 (nbsd_nat_target::thread_alive): Add.
7851 (nbsd_nat_target::thread_name): Likewise.
7852 (nbsd_nat_target::update_thread_list): Likewise.
7853 (update_thread_list::post_attach): Likewise.
7854 (post_attach::pid_to_str): Likewise.
7855 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7856 (nbsd_thread_lister): Add.
7857 (nbsd_nat_target::thread_alive): Likewise.
7858 (nbsd_nat_target::thread_name): Likewise.
7859 (nbsd_add_threads): Likewise.
7860 (update_thread_list::post_attach): Likewise.
7861 (nbsd_nat_target::update_thread_list): Likewise.
7862 (post_attach::pid_to_str): Likewise.
7863
7864 2020-04-06 Tom Tromey <tromey@adacore.com>
7865
7866 * ada-valprint.c (print_variant_part): Extract the variant field.
7867 (print_field_values): Use the field as the outer value when
7868 recursing.
7869
7870 2020-04-06 Tom Tromey <tromey@adacore.com>
7871
7872 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7873 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7874 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7875 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7876 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7877
7878 2020-04-06 Tom Tromey <tromey@adacore.com>
7879
7880 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7881 TYPE_CODE_ERROR.
7882
7883 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7884
7885 * nbsd-tdep.c: Include "gdbarch.h".
7886 Define enum with NetBSD signal numbers.
7887 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7888 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7889 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7890 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7891 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7892 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7893 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7894 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7895 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7896 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7897 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7898 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7899
7900 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7901
7902 PR gdb/25325
7903 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7904
7905 2020-04-03 Tom Tromey <tromey@adacore.com>
7906
7907 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7908 Read constant block.
7909
7910 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7911
7912 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7913 (gdb_bfd_get_full_section_contents): New declaration.
7914 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7915 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7916 gdb_bfd_get_full_section_contents.
7917
7918 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7919
7920 * exec.c (build_section_table): Replace internal_error with
7921 gdb_assert.
7922 (section_table_xfer_memory_partial): Likewise.
7923 * mdebugread.c (parse_partial_symbols): Likewise.
7924 * psymtab.c (lookup_partial_symbol): Likewise.
7925 * utils.c (wrap_here): Likewise.
7926
7927 2020-04-02 Tom Tromey <tromey@adacore.com>
7928
7929 * f-lang.c (build_fortran_types): Use arch_type to initialize
7930 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7931
7932 2020-04-02 Tom Tromey <tromey@adacore.com>
7933
7934 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7935 of attributes.
7936
7937 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7938 Bernd Edlinger <bernd.edlinger@hotmail.de>
7939 Tom Tromey <tromey@adacore.com>
7940
7941 * buildsym.c (buildsym_compunit::record_line): Remove
7942 deduplication code.
7943
7944 2020-04-02 Tom de Vries <tdevries@suse.de>
7945
7946 PR ada/24671
7947 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7948
7949 2020-04-02 Tom de Vries <tdevries@suse.de>
7950
7951 * dwarf2/read.c (dwarf2_gdb_index_functions,
7952 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7953 NULL.
7954 * psymtab.c (psym_lookup_global_symbol_language): New function.
7955 (psym_functions): Init psym_lookup_global_symbol_language with
7956 psym_lookup_global_symbol_language.
7957 * symfile-debug.c (debug_sym_quick_functions): Init
7958 lookup_global_symbol_language with NULL.
7959 * symfile.c (set_initial_language): Remove fixme comment.
7960 * symfile.h (struct quick_symbol_functions): Add
7961 lookup_global_symbol_language.
7962 * symtab.c (find_quick_global_symbol_language): New function.
7963 (find_main_name): Use find_quick_global_symbol_language.
7964
7965 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7966
7967 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7968
7969 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7970
7971 * buildsym.c (record_line): Fix undefined behavior and preserve
7972 lines at eof.
7973
7974 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7975
7976 * buildsym.c (record_line): Fix the resizing condition.
7977
7978 2020-04-01 Tom Tromey <tom@tromey.com>
7979
7980 * value.h (value_literal_complex): Add comment.
7981 * valops.c (value_literal_complex): Refer to value.h.
7982
7983 2020-04-01 Tom Tromey <tom@tromey.com>
7984
7985 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7986 (scalar_type): New rule, from typebase.
7987 (typebase): Use scalar_type. Recognize complex types.
7988 (field_name): Handle FLOAT_KEYWORD.
7989 (ident_tokens): Add _Complex and __complex__.
7990
7991 2020-04-01 Tom Tromey <tom@tromey.com>
7992
7993 PR exp/25299:
7994 * valarith.c (promotion_type, complex_binop): New functions.
7995 (scalar_binop): Handle complex numbers. Use promotion_type.
7996 (value_pos, value_neg, value_complement): Handle complex numbers.
7997
7998 2020-04-01 Tom Tromey <tom@tromey.com>
7999
8000 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8001 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8002 (parse_number): Handle complex numbers.
8003
8004 2020-04-01 Tom Tromey <tom@tromey.com>
8005
8006 * c-valprint.c (c_decorations): Change complex suffix to "i".
8007
8008 2020-04-01 Tom Tromey <tom@tromey.com>
8009
8010 * valprint.c (generic_value_print_complex): Use accessors.
8011 * value.h (value_real_part, value_imaginary_part): Declare.
8012 * valops.c (value_real_part, value_imaginary_part): New
8013 functions.
8014 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8015
8016 2020-04-01 Tom Tromey <tom@tromey.com>
8017
8018 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8019 (read_range_type): Update.
8020 * mdebugread.c (basic_type): Update.
8021 * go-lang.c (build_go_types): Use init_complex_type.
8022 * gdbtypes.h (struct main_type) <complex_type>: New member.
8023 (init_complex_type): Update.
8024 (arch_complex_type): Don't declare.
8025 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8026 Make name if none given. Use alloc_type_copy. Look for cached
8027 complex type.
8028 (arch_complex_type): Remove.
8029 (gdbtypes_post_init): Use init_complex_type.
8030 * f-lang.c (build_fortran_types): Use init_complex_type.
8031 * dwarf2/read.c (read_base_type): Update.
8032 * d-lang.c (build_d_types): Use init_complex_type.
8033 * ctfread.c (read_base_type): Update.
8034
8035 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8036
8037 * infrun.c (stop_all_threads): Update assertion, plus when
8038 stopping threads, take into account that we might be trying
8039 to stop an all-stop target.
8040 (stop_waiting): Call 'stop_all_threads' if there exists a
8041 non-stop target.
8042
8043 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8044
8045 * target.h (exists_non_stop_target): New function declaration.
8046 * target.c (exists_non_stop_target): New function.
8047
8048 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8049
8050 PR gdb/24789
8051 * eval.c (is_integral_or_integral_reference): New function.
8052 (evaluate_subexp_standard): Allow integer references in
8053 pointer arithmetic.
8054
8055 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8056
8057 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8058 check for no ptid in the stop reply when the target is non-stop.
8059
8060 2020-04-01 Tom Tromey <tromey@adacore.com>
8061
8062 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8063 "name" parameter to rvalue reference. Initialize m_name_holder.
8064 <lookup_name_info>: New overloads.
8065 <name>: Return gdb::string_view.
8066 <c_str>: New method.
8067 <make_ignore_params>: Update.
8068 <search_name_hash>: Update.
8069 <language_lookup_name>: Return const char *.
8070 <m_name>: Change type.
8071 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8072 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8073 (lookup_name_info::match_any): Update.
8074 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8075 Update.
8076 * minsyms.c (linkage_name_str): Update.
8077 * language.c (default_symbol_name_matcher): Update.
8078 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8079 Update.
8080 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8081 (ada_lookup_name_info::ada_lookup_name_info): Update.
8082 (literal_symbol_name_matcher): Update.
8083
8084 2020-04-01 Tom Tromey <tromey@adacore.com>
8085
8086 * psymtab.c (psymtab_search_name): Remove function.
8087 (psym_lookup_symbol): Create search name and lookup name here.
8088 (lookup_partial_symbol): Remove "name" parameter; add
8089 lookup_name.
8090 (psym_expand_symtabs_for_function): Update.
8091
8092 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8093
8094 PR tui/25597:
8095 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8096
8097 2020-03-31 Tom Tromey <tromey@adacore.com>
8098
8099 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8100 memcpy.
8101
8102 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8103
8104 * features/riscv/32bit-csr.xml: Regenerated.
8105 * features/riscv/64bit-csr.xml: Regenerated.
8106
8107 2020-03-30 Tom Tromey <tromey@adacore.com>
8108
8109 * ada-valprint.c (print_variant_part): Update.
8110 * ada-lang.h (ada_which_variant_applies): Update.
8111 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8112 outer_valaddr parameters; replace with "outer" value parameter.
8113 (to_fixed_variant_branch_type): Update.
8114
8115 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8116
8117 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8118 <list>. Remove inclusion of observable.h.
8119 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8120 (struct arch_lwp_info): New struct.
8121 (class ppc_linux_dreg_interface): New class.
8122 (struct ppc_linux_process_info): New struct.
8123 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8124 <low_new_clone, low_forget_process, low_prepare_to_resume>
8125 <copy_thread_dreg_state, mark_thread_stale>
8126 <mark_debug_registers_changed, register_hw_breakpoint>
8127 <clear_hw_breakpoint, register_wp, clear_wp>
8128 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8129 <num_memory_accesses, get_trigger_type>
8130 <create_watchpoint_request, hwdebug_point_cmp>
8131 <init_arch_lwp_info, get_arch_lwp_info>
8132 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8133 methods.
8134 <struct ptid_hash>: New inner struct.
8135 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8136 members.
8137 (saved_dabr_value, hwdebug_info, max_slots_number)
8138 (struct hw_break_tuple, struct thread_points, ppc_threads)
8139 (have_ptrace_hwdebug_interface)
8140 (hwdebug_find_thread_points_by_tid)
8141 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8142 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8143 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8144 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8145 use m_dreg_interface.
8146 (hwdebug_point_cmp): Change to...
8147 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8148 reference arguments instead of pointers.
8149 (ppc_linux_nat_target::ranged_break_num_registers): Use
8150 m_dreg_interface.
8151 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8152 m_dreg_interface. Call register_hw_breakpoint.
8153 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8154 m_dreg_interface. Call clear_hw_breakpoint.
8155 (get_trigger_type): Change to...
8156 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8157 comment.
8158 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8159 use m_dreg_interface. Call register_hw_breakpoint.
8160 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8161 use m_dreg_interface. Call clear_hw_breakpoint.
8162 (can_use_watchpoint_cond_accel): Change to...
8163 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8164 method. Update comment, use m_dreg_interface and
8165 m_process_info.
8166 (calculate_dvc): Change to...
8167 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8168 m_dreg_interface.
8169 (num_memory_accesses): Change to...
8170 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8171 (check_condition): Change to...
8172 (ppc_linux_nat_target::check_condition): ...this method.
8173 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8174 comment, use m_dreg_interface.
8175 (create_watchpoint_request): Change to...
8176 (ppc_linux_nat_target::create_watchpoint_request): ...this
8177 method. Use m_dreg_interface.
8178 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8179 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8180 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8181 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8182 (ppc_linux_nat_target::low_forget_process)
8183 (ppc_linux_nat_target::low_new_fork)
8184 (ppc_linux_nat_target::low_new_clone)
8185 (ppc_linux_nat_target::low_delete_thread)
8186 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8187 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8188 only call mark_thread_stale.
8189 (ppc_linux_thread_exit): Remove.
8190 (ppc_linux_nat_target::stopped_data_address): Change to...
8191 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8192 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8193 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8194 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8195 comment. Call low_stopped_data_address.
8196 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8197 m_dreg_interface.
8198 (ppc_linux_nat_target::masked_watch_num_registers): Use
8199 m_dreg_interface.
8200 (ppc_linux_nat_target::copy_thread_dreg_state)
8201 (ppc_linux_nat_target::mark_thread_stale)
8202 (ppc_linux_nat_target::mark_debug_registers_changed)
8203 (ppc_linux_nat_target::register_hw_breakpoint)
8204 (ppc_linux_nat_target::clear_hw_breakpoint)
8205 (ppc_linux_nat_target::register_wp)
8206 (ppc_linux_nat_target::clear_wp)
8207 (ppc_linux_nat_target::init_arch_lwp_info)
8208 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8209 (_initialize_ppc_linux_nat): Remove observer callback.
8210
8211 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8212
8213 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8214 (ppc_linux_nat_target::auxv_parse)
8215 (ppc_linux_nat_target::read_description)
8216 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8217 Move up.
8218
8219 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8220
8221 * linux-nat.h (low_new_clone): New method.
8222 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8223
8224 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8227 (dbx_expand_psymtab): ... this.
8228 (start_psymtab): Update.
8229 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8230 (mdebug_expand_psymtab): ... this.
8231 (parse_partial_symbols): Update.
8232 (new_psymtab): Update.
8233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8234 (xcoff_expand_psymtab): ... this.
8235 (xcoff_start_psymtab): Update.
8236
8237 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8238
8239 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8240 <expand_dependencies>: ... this.
8241 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8242 (partial_symtab::expand_dependencies): ... this.
8243 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8244 Update.
8245 (dwarf2_psymtab::expand_psymtab): Update.
8246 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8247 * mdebugread.c (psymtab_to_symtab_1): Update.
8248 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8249
8250 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8251
8252 * psympriv.h (discard_psymtab): Remove.
8253 * dbxread.c (dbx_end_psymtab): Update.
8254 * xcoffread.c (xcoff_end_psymtab): Update.
8255
8256 2020-03-28 Tom Tromey <tom@tromey.com>
8257
8258 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8259 comment.
8260
8261 2020-03-28 Tom Tromey <tom@tromey.com>
8262
8263 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8264
8265 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8266
8267 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8268
8269 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8270
8271 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8272
8273 2020-03-26 Tom Tromey <tom@tromey.com>
8274
8275 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8276 (mark_common_block_symbol_computed, read_tag_string_type)
8277 (attr_to_dynamic_prop, read_subrange_type): Update.
8278 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8279 to be methods on struct attribute.
8280 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8281 (read_call_site_scope, partial_die_info::read)
8282 (partial_die_info::read, lookup_die_type, follow_die_ref):
8283 Update.
8284 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8285 from dwarf2_get_ref_die_offset.
8286 (attribute::constant_value): New method, from
8287 dwarf2_get_attr_constant_value.
8288 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8289 Declare method.
8290 <constant_value>: New method.
8291
8292 2020-03-26 Tom Tromey <tom@tromey.com>
8293
8294 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8295 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8296 (dwarf_type_encoding_name): Move to stringify.c.
8297 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8298 * dwarf2/stringify.c: New file.
8299 * dwarf2/stringify.h: New file.
8300
8301 2020-03-26 Tom Tromey <tom@tromey.com>
8302
8303 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8304 Rewrite.
8305
8306 2020-03-26 Tom Tromey <tom@tromey.com>
8307
8308 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8309 methods.
8310 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8311 (lookup_ranges_base): Likewise.
8312 (read_cutu_die_from_dwo, read_full_die_1): Update.
8313
8314 2020-03-26 Tom Tromey <tom@tromey.com>
8315
8316 * dwarf2/read.c (read_import_statement, read_file_scope)
8317 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8318 (read_lexical_block_scope, read_call_site_scope)
8319 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8320 (handle_struct_member_die, process_structure_scope)
8321 (update_enumeration_type_from_children)
8322 (process_enumeration_scope, read_array_type, read_common_block)
8323 (read_namespace, read_module, read_subroutine_type): Update.
8324 (sibling_die): Remove.
8325
8326 2020-03-26 Tom Tromey <tom@tromey.com>
8327
8328 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8329 (build_type_psymtabs_reader, read_structure_type)
8330 (read_enumeration_type, read_full_die_1): Update.
8331 (dwarf2_attr_no_follow): Move to die.h.
8332 * dwarf2/die.h (struct die_info) <attr>: New method.
8333
8334 2020-03-26 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8337 <base_address>: Now an optional.
8338 (dwarf2_find_base_address, dwarf2_rnglists_process)
8339 (dwarf2_ranges_process, fill_in_loclist_baton)
8340 (dwarf2_symbol_mark_computed): Update.
8341
8342 2020-03-26 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2/read.c (struct die_info): Move to die.h.
8345 * dwarf2/die.h: New file.
8346
8347 2020-03-26 Tom Tromey <tom@tromey.com>
8348
8349 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8350 * dwarf2/read.c
8351 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8352 Move to line-header.c.
8353 (read_checked_initial_length_and_offset, read_formatted_entries):
8354 Likewise.
8355 (dwarf_decode_line_header): Split into two.
8356 * dwarf2/line-header.c
8357 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8358 Move from read.c.
8359 (read_checked_initial_length_and_offset, read_formatted_entries):
8360 Likewise.
8361 (dwarf_decode_line_header): New function, split from read.c.
8362
8363 2020-03-26 Tom Tromey <tom@tromey.com>
8364
8365 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8366 Declare method.
8367 * dwarf2/read.c (read_attribute_value): Update.
8368 (dwarf2_per_objfile::read_line_string): Rename from
8369 read_indirect_line_string.
8370 (read_formatted_entries): Update.
8371
8372 2020-03-26 Tom Tromey <tom@tromey.com>
8373
8374 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8375 variable.
8376
8377 2020-03-26 Tom Tromey <tom@tromey.com>
8378
8379 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8380 const.
8381 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8382 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8383 parameter const.
8384
8385 2020-03-26 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8388 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8389 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8390 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8391
8392 2020-03-26 Tom Tromey <tom@tromey.com>
8393
8394 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8395 file_names_size, file_full_name, file_file_name>: Use const.
8396 <file_name_at, file_names>: Add const overload.
8397 * dwarf2/line-header.c (line_header::file_file_name)
8398 (line_header::file_full_name): Update.
8399
8400 2020-03-26 Tom Tromey <tom@tromey.com>
8401
8402 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8403 (macro_start_file, consume_improper_spaces)
8404 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8405 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8406 (dwarf_decode_macros): Move to macro.c.
8407 * dwarf2/macro.c: New file.
8408 * dwarf2/macro.h: New file.
8409 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8410
8411 2020-03-26 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8414 method.
8415 * dwarf2/section.c: New method. From
8416 read_indirect_string_at_offset_from.
8417 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8418 (read_indirect_string_at_offset_from): Move to section.c.
8419 (read_indirect_string_at_offset): Rewrite.
8420 (read_indirect_line_string_at_offset): Remove.
8421 (read_indirect_string, read_indirect_line_string)
8422 (dwarf_decode_macro_bytes): Update.
8423
8424 2020-03-26 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/section.h (struct dwarf2_section_info)
8427 <overload_complaint>: Declare.
8428 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8429 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8430 Rename from dwarf2_section_buffer_overflow_complaint.
8431 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8432 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8433
8434 2020-03-26 Tom Tromey <tom@tromey.com>
8435
8436 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8437 Declare.
8438 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8439 Move from read.c.
8440 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8441 to section.c.
8442
8443 2020-03-26 Tom Tromey <tom@tromey.com>
8444
8445 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8446
8447 2020-03-26 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8450 "builder".
8451 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8452 parameter.
8453 (dwarf_decode_macros): Update.
8454
8455 2020-03-26 Tom Tromey <tom@tromey.com>
8456
8457 * dwarf2/read.c (read_attribute_value): Update.
8458 (read_indirect_string_from_dwz): Move to dwz.c; change into
8459 method.
8460 (dwarf_decode_macro_bytes): Update.
8461 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8462 * dwarf2/dwz.c: New file.
8463 * Makefile.in (COMMON_SFILES): Add dwz.c.
8464
8465 2020-03-26 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8468 * dwarf2/read.c: Add include.
8469 * dwarf2/index-write.c: Add include.
8470 * dwarf2/index-cache.c: Add include.
8471 * dwarf2/dwz.h: New file.
8472
8473 2020-03-25 Tom Tromey <tom@tromey.com>
8474
8475 * compile/compile-object-load.c (get_out_value_type): Mention
8476 correct symbol name in error message.
8477
8478 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8479
8480 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8481
8482 2020-03-25 Tom de Vries <tdevries@suse.de>
8483
8484 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8485 * symmisc.c (dump_symtab_1): Print user and includes fields.
8486 (maintenance_info_symtabs): Same.
8487
8488 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 PR gdb/25534
8491 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8492 (riscv_regcache_cooked_write): New function.
8493 (riscv_push_dummy_call): Use new function.
8494 (riscv_return_value): Likewise.
8495
8496 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8497
8498 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8499 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8500 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8501 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8502 * infrun.c (follow_fork): Likewise.
8503 (follow_fork_inferior): Likewise.
8504 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8505 * linux-nat.h (class linux_nat_target): Likewise.
8506 * remote.c (class remote_target) <follow_fork>: Likewise.
8507 (remote_target::follow_fork): Likewise.
8508 * target-delegates.c: Re-generate.
8509 * target.c (default_follow_fork): Likewise.
8510 (target_follow_fork): Likewise.
8511 * target.h (struct target_ops) <follow_fork>: Likewise.
8512 (target_follow_fork): Likewise.
8513
8514 2020-03-24 Tom de Vries <tdevries@suse.de>
8515
8516 * psymtab.c (maintenance_info_psymtabs): Print user field.
8517
8518 2020-03-20 Tom Tromey <tromey@adacore.com>
8519
8520 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8521 const.
8522 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8523 const.
8524
8525 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * ptrace.m4: Don't check for ptrace declaration.
8528 * config.in: Re-generate.
8529 * configure: Re-generate.
8530 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8531 not defined.
8532
8533 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8534
8535 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8536 `PTRACE_TYPE_RET'.
8537 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8538 * sparc-nat.c (gdb_ptrace): Likewise.
8539 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8540
8541 2020-03-20 Tom Tromey <tromey@adacore.com>
8542
8543 * c-exp.y (lex_one_token): Fix assert.
8544
8545 2020-03-20 Tom Tromey <tromey@adacore.com>
8546
8547 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8548 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8549 strncpy call.
8550
8551 2020-03-20 Tom Tromey <tromey@adacore.com>
8552
8553 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8554
8555 2020-03-20 Tom Tromey <tromey@adacore.com>
8556
8557 * ada-valprint.c (print_variant_part): Remove parameters; switch
8558 to value-based API.
8559 (print_field_values): Likewise.
8560 (ada_val_print_struct_union): Likewise.
8561 (ada_value_print_1): Update.
8562
8563 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8564
8565 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8566 nbsd_nat_target instead of inf_ptrace_target.
8567 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8568 nbsd_nat_target.
8569
8570 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8571
8572 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8573 it to the ptrace call.
8574 * (store_registers): Likewise.
8575
8576 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8577
8578 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8579 it to the ptrace call.
8580 * (store_registers): Likewise.
8581
8582 2020-03-19 Luis Machado <luis.machado@linaro.org>
8583
8584 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8585 valid, fetch vg value from ptrace.
8586
8587 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8588 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8589 * inf-ptrace.c: Likewise.
8590 * (gdb_ptrace): Add.
8591 * (inf_ptrace_target::resume): Update.
8592 * (inf_ptrace_target::xfer_partial): Likewise.
8593 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8594 * (inf_ptrace_peek_poke): Update.
8595
8596 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8597
8598 * x86-bsd-nat.c (gdb_ptrace): New.
8599 * (x86bsd_dr_set): Add new argument `ptid'.
8600 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8601 x86bsd_dr_set_addr): Update.
8602
8603 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8604
8605 * remote.c (remote_target::process_stop_reply): Handle events for
8606 all threads differently.
8607
8608 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8609
8610 * completer.c (completion_tracker::remove_completion): Define new
8611 function.
8612 * completer.h (completion_tracker::remove_completion): Declare new
8613 function.
8614 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8615 when adding a C++ function symbol.
8616
8617 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8618
8619 * completer.c (completion_tracker::completion_hash_entry): Define
8620 new class.
8621 (advance_to_filename_complete_word_point): Call
8622 recompute_lowest_common_denominator.
8623 (completion_tracker::completion_tracker): Call discard_completions
8624 to setup the hash table.
8625 (completion_tracker::discard_completions): Allow for being called
8626 from the constructor, pass new equal function, and element deleter
8627 when constructing the hash table. Initialise new class member
8628 variables.
8629 (completion_tracker::maybe_add_completion): Remove use of
8630 m_entries_vec, and store more information into m_entries_hash.
8631 (completion_tracker::recompute_lcd_visitor): New function, most
8632 content taken from...
8633 (completion_tracker::recompute_lowest_common_denominator):
8634 ...here, this now just visits each item in the hash calling the
8635 above visitor.
8636 (completion_tracker::build_completion_result): Remove use of
8637 m_entries_vec, call recompute_lowest_common_denominator.
8638 * completer.h (completion_tracker::have_completions): Remove use
8639 of m_entries_vec.
8640 (completion_tracker::completion_hash_entry): Declare new class.
8641 (completion_tracker::recompute_lowest_common_denominator): Change
8642 function signature.
8643 (completion_tracker::recompute_lcd_visitor): Declare new function.
8644 (completion_tracker::m_entries_vec): Delete.
8645 (completion_tracker::m_entries_hash): Initialize to NULL.
8646 (completion_tracker::m_lowest_common_denominator_valid): New
8647 member variable.
8648 (completion_tracker::m_lowest_common_denominator_max_length): New
8649 member variable.
8650
8651 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8652
8653 * regformats/regdef.h: Put reg in gdb namespace.
8654
8655 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8656
8657 * i386-bsd-nat.c (gdb_ptrace): New.
8658 * (i386bsd_fetch_inferior_registers,
8659 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8660 * (i386bsd_fetch_inferior_registers,
8661 i386bsd_store_inferior_registers) Use gdb_ptrace.
8662
8663 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8664
8665 * amd64-bsd-nat.c (gdb_ptrace): New.
8666 * (amd64bsd_fetch_inferior_registers,
8667 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8668 * (amd64bsd_fetch_inferior_registers,
8669 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8670
8671 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8672
8673 * user-regs.c (user_reg::read): Rename to...
8674 (user_reg::xread): ...this.
8675 * (append_user_reg): Rename argument `read' to `xread'.
8676 * (user_reg_add_builtin): Likewise.
8677 * (user_reg_add): Likewise.
8678 * (value_of_user_reg): Likewise.
8679
8680 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8681
8682 * sparc-nat.c (gdb_ptrace): New.
8683 * sparc-nat.c (sparc_fetch_inferior_registers)
8684 (sparc_store_inferior_registers) Remove obsolete comment.
8685 * sparc-nat.c (sparc_fetch_inferior_registers)
8686 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8687 * sparc-nat.c (sparc_fetch_inferior_registers)
8688 (sparc_store_inferior_registers) Use gdb_ptrace.
8689
8690 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8691
8692 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8693 it to the ptrace call.
8694 * sh-nbsd-nat.c (store_registers): Likewise.
8695
8696 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8697
8698 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8699 nbsd_nat_target instead of inf_ptrace_target.
8700 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8701 nbsd_nat_target.
8702
8703 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8704
8705 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8706
8707 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8708
8709 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8710 <sys/sysctl.h>.
8711 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8712
8713 2020-03-17 Tom de Vries <tdevries@suse.de>
8714
8715 PR gdb/23710
8716 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8717 fields.
8718 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8719 fields.
8720 (process_imported_unit_die): Skip import of c++ CUs.
8721
8722 2020-03-16 Tom Tromey <tom@tromey.com>
8723
8724 * p-valprint.c (pascal_object_print_value): Initialize
8725 base_value.
8726
8727 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8728 Shahab Vahedi <shahab@synopsys.com>
8729
8730 * Makefile.in: Add arch/arc.o
8731 * configure.tgt: Likewise.
8732 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8733 (_initialize_arc_tdep): Don't initialize old target descriptions.
8734 (arc_read_description): New function to cache target descriptions.
8735 * arc-tdep.h (arc_read_description): Add proto type.
8736 * arch/arc.c: New file.
8737 * arch/arc.h: Likewise.
8738 * features/Makefile: Replace old target descriptions with new.
8739 * features/arc-arcompact.c: Remove.
8740 * features/arc-arcompact.xml: Likewise.
8741 * features/arc-v2.c: Likewise
8742 * features/arc-v2.xml: Likewise
8743 * features/arc/aux-arcompact.xml: New file.
8744 * features/arc/aux-v2.xml: Likewise.
8745 * features/arc/core-arcompact.xml: Likewise.
8746 * features/arc/core-v2.xml: Likewise.
8747 * features/arc/aux-arcompact.c: Generate.
8748 * features/arc/aux-v2.c: Likewise.
8749 * features/arc/core-arcompact.c: Likewise.
8750 * features/arc/core-v2.c: Likewise.
8751 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8752
8753 2020-03-16 Tom Tromey <tromey@adacore.com>
8754
8755 PR gdb/25663:
8756 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8757 putting value into bcache.
8758
8759 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8760
8761 PR gdb/21500
8762 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8763 to...
8764 (amd64_windows_init_abi_common): ... this. Don't set size of
8765 long type.
8766 (amd64_windows_init_abi): New function.
8767 (amd64_cygwin_init_abi): New function.
8768 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8769 the Cygwin OS ABI.
8770 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8771 comment.
8772
8773 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8776 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8777 (pe_import_directory_entry): New struct type.
8778 (is_linked_with_cygwin_dll): New function.
8779 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8780 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8781 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8782
8783 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8786 i386_cygwin_core_osabi_sniffer.
8787
8788 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8789
8790 * i386-cygwin-tdep.c: Rename to...
8791 * i386-windows-tdep.c: ... this.
8792 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8793 i386-windows-tdep.c.
8794 * configure.tgt: Likewise.
8795
8796 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8799 * osabi.c (gdb_osabi_names): Add "Windows".
8800 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8801 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8802 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8803 i386_cygwin_osabi_sniffer.
8804 (_initialize_i386_cygwin_tdep): Register OS ABI
8805 GDB_OSABI_WINDOWS for i386.
8806 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8807 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8808 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8809 for x86-64.
8810 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8811 when the target matches '*-*-mingw*'.
8812
8813 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8814
8815 * defs.h (enum gdb_osabi): Move to...
8816 * osabi.h (enum gdb_osabi): ... here.
8817 * gdbarch.sh: Include osabi.h in gdbarch.h.
8818 * gdbarch.h: Re-generate.
8819
8820 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8821
8822 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8823 function.
8824 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8825
8826 2020-03-14 Tom Tromey <tom@tromey.com>
8827
8828 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8829 for C++.
8830 (c_type_print_modifier): Likewise. Add "language" parameter.
8831 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8832 (c_type_print_base_1): Update.
8833 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8834 constants.
8835 * type-stack.c (type_stack::insert): Handle tp_atomic and
8836 tp_restrict.
8837 (type_stack::follow_type_instance_flags): Likewise.
8838 (type_stack::follow_types): Likewise. Merge type-following code.
8839 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8840 (space_identifier, cv_with_space_id)
8841 (const_or_volatile_or_space_identifier_noopt)
8842 (const_or_volatile_or_space_identifier): Remove.
8843 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8844 rules.
8845 (ptr_operator, typebase): Update.
8846 (enum token_flag) <FLAG_C>: New constant.
8847 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8848 "_Atomic".
8849 (lex_one_token): Handle FLAG_C.
8850
8851 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8852
8853 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8854 it to the ptrace call.
8855 * m68k-bsd-nat.c (store_registers): Likewise.
8856
8857 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8858
8859 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8860 gdb_byte *.
8861 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8862 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8863 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8864
8865 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8866
8867 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8868 nbsd_nat_target instead of inf_ptrace_target.
8869 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8870 nbsd_nat_target.
8871
8872 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8873
8874 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8875 register_t.
8876
8877 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8878
8879 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8880 it to the ptrace call.
8881 * alpha-bsd-nat.c (store_registers): Likewise.
8882
8883 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8884
8885 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8886 includes.
8887 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8888 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8889 fill_fpregset): Likewise.
8890
8891 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8892
8893 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8894 nbsd_nat_target instead of inf_ptrace_target.
8895 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8896 nbsd_nat_target.
8897
8898 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8899
8900 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8901 register_t.
8902
8903 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8904
8905 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8906 it to the ptrace call.
8907 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8908 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8909 * arm-nbsd-nat.c (store_register): Likewise.
8910 * arm-nbsd-nat.c (store_regs): Likewise.
8911 * arm-nbsd-nat.c (store_fp_register): Likewise.
8912 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8913
8914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8915
8916 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8917 nbsd_nat_target instead of inf_ptrace_target.
8918 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8919 nbsd_nat_target.
8920
8921 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8922
8923 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8924 it to the ptrace call.
8925 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8926
8927 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8928
8929 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8930 it to the ptrace call.
8931 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8932
8933 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8934
8935 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8936 gdb_byte *.
8937 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8938
8939 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8940
8941 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8942 instead of inf_ptrace_target.
8943 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8944 nbsd_nat_target.
8945
8946 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8947
8948 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8949 register_t.
8950
8951 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8952
8953 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8954 register_t.
8955
8956 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8957
8958 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8959 register_t.
8960
8961 2020-03-13 Tom Tromey <tom@tromey.com>
8962
8963 * value.h (val_print): Don't declare.
8964 * valprint.h (val_print_array_elements)
8965 (val_print_scalar_formatted, generic_val_print): Don't declare.
8966 * valprint.c (generic_val_print_array): Take a struct value.
8967 (generic_val_print_ptr, generic_val_print_memberptr)
8968 (generic_val_print_bool, generic_val_print_int)
8969 (generic_val_print_char, generic_val_print_complex)
8970 (generic_val_print): Remove.
8971 (generic_value_print): Update.
8972 (do_val_print): Remove unused parameters. Don't call
8973 la_val_print.
8974 (val_print): Remove.
8975 (common_val_print): Update. Don't call value_check_printable.
8976 (val_print_scalar_formatted, val_print_array_elements): Remove.
8977 * rust-lang.c (rust_val_print): Remove.
8978 (rust_language_defn): Update.
8979 * p-valprint.c (pascal_val_print): Remove.
8980 (pascal_value_print_inner): Update.
8981 (pascal_object_print_val_fields, pascal_object_print_val):
8982 Remove.
8983 (pascal_object_print_static_field): Update.
8984 * p-lang.h (pascal_val_print): Don't declare.
8985 * p-lang.c (pascal_language_defn): Update.
8986 * opencl-lang.c (opencl_language_defn): Update.
8987 * objc-lang.c (objc_language_defn): Update.
8988 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8989 * m2-lang.h (m2_val_print): Don't declare.
8990 * m2-lang.c (m2_language_defn): Update.
8991 * language.h (struct language_defn) <la_val_print>: Remove.
8992 * language.c (unk_lang_value_print_inner): Rename. Change
8993 argument types.
8994 (unknown_language_defn, auto_language_defn): Update.
8995 * go-valprint.c (go_val_print): Remove.
8996 * go-lang.h (go_val_print): Don't declare.
8997 * go-lang.c (go_language_defn): Update.
8998 * f-valprint.c (f_val_print): Remove.
8999 * f-lang.h (f_value_print): Don't declare.
9000 * f-lang.c (f_language_defn): Update.
9001 * d-valprint.c (d_val_print): Remove.
9002 * d-lang.h (d_value_print): Don't declare.
9003 * d-lang.c (d_language_defn): Update.
9004 * cp-valprint.c (cp_print_value_fields)
9005 (cp_print_value_fields_rtti, cp_print_value): Remove.
9006 (cp_print_static_field): Update.
9007 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9008 (c_val_print_struct, c_val_print_union, c_val_print_int)
9009 (c_val_print_memberptr, c_val_print): Remove.
9010 * c-lang.h (c_val_print_array, cp_print_value_fields)
9011 (cp_print_value_fields_rtti): Don't declare.
9012 * c-lang.c (c_language_defn, cplus_language_defn)
9013 (asm_language_defn, minimal_language_defn): Update.
9014 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9015 (ada_val_print_enum): Take a struct value.
9016 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9017 (ada_val_print): Remove.
9018 (ada_value_print_1): Update.
9019 (printable_val_type): Remove.
9020 * ada-lang.h (ada_val_print): Don't declare.
9021 * ada-lang.c (ada_language_defn): Update.
9022
9023 2020-03-13 Tom Tromey <tom@tromey.com>
9024
9025 * valprint.c (do_val_print): Update.
9026 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9027 a struct value.
9028 (value_to_value_object_no_release): Declare.
9029 * python/py-value.c (value_to_value_object_no_release): New
9030 function.
9031 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9032 struct value.
9033 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9034 function.
9035 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9036 a struct value.
9037 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9038 Declare.
9039 (gdbscm_apply_val_pretty_printer): Take a struct value.
9040 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9041 value.
9042 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9043 value.
9044 * extension-priv.h (struct extension_language_ops)
9045 <apply_val_pretty_printer>: Take a struct value.
9046 * cp-valprint.c (cp_print_value): Create a struct value.
9047 (cp_print_value): Update.
9048
9049 2020-03-13 Tom Tromey <tom@tromey.com>
9050
9051 * ada-valprint.c (print_field_values): Call common_val_print.
9052
9053 2020-03-13 Tom Tromey <tom@tromey.com>
9054
9055 * ada-valprint.c (val_print_packed_array_elements): Remove
9056 bitoffset and val parameters. Call common_val_print.
9057 (ada_val_print_string): Remove offset, address, and original_value
9058 parameters.
9059 (ada_val_print_array): Update.
9060 (ada_value_print_array): New function.
9061 (ada_value_print_1): Call it.
9062
9063 2020-03-13 Tom Tromey <tom@tromey.com>
9064
9065 * ada-valprint.c (ada_value_print): Use common_val_print.
9066
9067 2020-03-13 Tom Tromey <tom@tromey.com>
9068
9069 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9070
9071 2020-03-13 Tom Tromey <tom@tromey.com>
9072
9073 * ada-valprint.c (ada_value_print_num): New function.
9074 (ada_value_print_1): Use it.
9075
9076 2020-03-13 Tom Tromey <tom@tromey.com>
9077
9078 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9079
9080 2020-03-13 Tom Tromey <tom@tromey.com>
9081
9082 * ada-valprint.c (ada_value_print_ptr): New function.
9083 (ada_value_print_1): Use it.
9084
9085 2020-03-13 Tom Tromey <tom@tromey.com>
9086
9087 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9088 call common_val_print.
9089 (ada_val_print_1): Update.
9090 (ada_value_print_1): New function.
9091 (ada_value_print_inner): Rewrite.
9092
9093 2020-03-13 Tom Tromey <tom@tromey.com>
9094
9095 * cp-valprint.c (cp_print_value_fields): Update.
9096 (cp_print_value): New function.
9097
9098 2020-03-13 Tom Tromey <tom@tromey.com>
9099
9100 * m2-valprint.c (m2_value_print_inner): Use
9101 cp_print_value_fields.
9102 * cp-valprint.c (cp_print_value_fields): New function.
9103 * c-valprint.c (c_value_print_struct): New function.
9104 (c_value_print_inner): Use c_value_print_struct.
9105 * c-lang.h (cp_print_value_fields): Declare.
9106
9107 2020-03-13 Tom Tromey <tom@tromey.com>
9108
9109 * c-valprint.c (c_value_print_array): New function.
9110 (c_value_print_inner): Use it.
9111
9112 2020-03-13 Tom Tromey <tom@tromey.com>
9113
9114 * c-valprint.c (c_value_print_memberptr): New function.
9115 (c_value_print_inner): Use it.
9116
9117 2020-03-13 Tom Tromey <tom@tromey.com>
9118
9119 * c-valprint.c (c_value_print_int): New function.
9120 (c_value_print_inner): Use it.
9121
9122 2020-03-13 Tom Tromey <tom@tromey.com>
9123
9124 * c-valprint.c (c_value_print_ptr): New function.
9125 (c_value_print_inner): Use it.
9126
9127 2020-03-13 Tom Tromey <tom@tromey.com>
9128
9129 * c-valprint.c (c_value_print_inner): Rewrite.
9130
9131 2020-03-13 Tom Tromey <tom@tromey.com>
9132
9133 * valprint.c (generic_value_print_complex): New function.
9134 (generic_value_print): Use it.
9135
9136 2020-03-13 Tom Tromey <tom@tromey.com>
9137
9138 * valprint.c (generic_val_print_float): Don't call
9139 val_print_scalar_formatted.
9140 (generic_val_print, generic_value_print): Update.
9141
9142 2020-03-13 Tom Tromey <tom@tromey.com>
9143
9144 * valprint.c (generic_value_print_char): New function
9145 (generic_value_print): Use it.
9146
9147 2020-03-13 Tom Tromey <tom@tromey.com>
9148
9149 * valprint.c (generic_value_print_int): New function.
9150 (generic_value_print): Use it.
9151
9152 2020-03-13 Tom Tromey <tom@tromey.com>
9153
9154 * valprint.c (generic_value_print_bool): New function.
9155 (generic_value_print): Use it.
9156
9157 2020-03-13 Tom Tromey <tom@tromey.com>
9158
9159 * valprint.c (generic_val_print_func): Simplify.
9160 (generic_val_print, generic_value_print): Update.
9161
9162 2020-03-13 Tom Tromey <tom@tromey.com>
9163
9164 * valprint.c (generic_val_print_flags): Remove.
9165 (generic_val_print, generic_value_print): Update.
9166 (val_print_type_code_flags): Add original_value parameter.
9167
9168 2020-03-13 Tom Tromey <tom@tromey.com>
9169
9170 * valprint.c (generic_val_print): Update.
9171 (generic_value_print): Update.
9172 * valprint.c (generic_val_print_enum): Don't call
9173 val_print_scalar_formatted.
9174
9175 2020-03-13 Tom Tromey <tom@tromey.com>
9176
9177 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9178 * valprint.c (generic_value_print_ptr): New function.
9179
9180 2020-03-13 Tom Tromey <tom@tromey.com>
9181
9182 * valprint.c (generic_value_print): Rewrite.
9183
9184 2020-03-13 Tom Tromey <tom@tromey.com>
9185
9186 * p-valprint.c (pascal_object_print_value_fields)
9187 (pascal_object_print_value): New functions.
9188
9189 2020-03-13 Tom Tromey <tom@tromey.com>
9190
9191 * p-valprint.c (pascal_value_print_inner): Rewrite.
9192
9193 2020-03-13 Tom Tromey <tom@tromey.com>
9194
9195 * f-valprint.c (f_value_print_innner): Rewrite.
9196
9197 2020-03-13 Tom Tromey <tom@tromey.com>
9198
9199 * m2-valprint.c (m2_print_unbounded_array): New overload.
9200 (m2_print_unbounded_array): Update.
9201 (m2_print_array_contents): Take a struct value.
9202 (m2_value_print_inner): Rewrite.
9203
9204 2020-03-13 Tom Tromey <tom@tromey.com>
9205
9206 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9207 (d_value_print_inner): New function.
9208 * d-lang.h (d_value_print_inner): Declare.
9209 * d-lang.c (d_language_defn): Use d_value_print_inner.
9210
9211 2020-03-13 Tom Tromey <tom@tromey.com>
9212
9213 * go-valprint.c (go_value_print_inner): New function.
9214 * go-lang.h (go_value_print_inner): Declare.
9215 * go-lang.c (go_language_defn): Use go_value_print_inner.
9216
9217 2020-03-13 Tom Tromey <tom@tromey.com>
9218
9219 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9220 API.
9221 (rust_val_print): Rewrite.
9222 (rust_value_print_inner): New function, from rust_val_print.
9223 (rust_language_defn): Use rust_value_print_inner.
9224
9225 2020-03-13 Tom Tromey <tom@tromey.com>
9226
9227 * ada-valprint.c (ada_value_print_inner): New function.
9228 * ada-lang.h (ada_value_print_inner): Declare.
9229 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9230
9231 2020-03-13 Tom Tromey <tom@tromey.com>
9232
9233 * f-valprint.c (f_value_print_innner): New function.
9234 * f-lang.h (f_value_print_innner): Declare.
9235 * f-lang.c (f_language_defn): Use f_value_print_innner.
9236
9237 2020-03-13 Tom Tromey <tom@tromey.com>
9238
9239 * p-valprint.c (pascal_value_print_inner): New function.
9240 * p-lang.h (pascal_value_print_inner): Declare.
9241 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9242
9243 2020-03-13 Tom Tromey <tom@tromey.com>
9244
9245 * m2-valprint.c (m2_value_print_inner): New function.
9246 * m2-lang.h (m2_value_print_inner): Declare.
9247 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9248
9249 2020-03-13 Tom Tromey <tom@tromey.com>
9250
9251 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9252 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9253 * c-valprint.c (c_value_print_inner): New function.
9254 * c-lang.h (c_value_print_inner): Declare.
9255 * c-lang.c (c_language_defn, cplus_language_defn)
9256 (asm_language_defn, minimal_language_defn): Use
9257 c_value_print_inner.
9258
9259 2020-03-13 Tom Tromey <tom@tromey.com>
9260
9261 * p-valprint.c (pascal_object_print_value_fields): Now static.
9262 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9263
9264 2020-03-13 Tom Tromey <tom@tromey.com>
9265
9266 * c-valprint.c (c_val_print_array): Simplify.
9267
9268 2020-03-13 Tom Tromey <tom@tromey.com>
9269
9270 * valprint.c (value_print_array_elements): New function.
9271 * valprint.h (value_print_array_elements): Declare.
9272
9273 2020-03-13 Tom Tromey <tom@tromey.com>
9274
9275 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9276 * mips-tdep.c (mips_print_register): Use
9277 value_print_scalar_formatted.
9278
9279 2020-03-13 Tom Tromey <tom@tromey.com>
9280
9281 * valprint.h (value_print_scalar_formatted): Declare.
9282 * valprint.c (value_print_scalar_formatted): New function.
9283
9284 2020-03-13 Tom Tromey <tom@tromey.com>
9285
9286 * valprint.h (generic_value_print): Declare.
9287 * valprint.c (generic_value_print): New function.
9288
9289 2020-03-13 Tom Tromey <tom@tromey.com>
9290
9291 * valprint.c (do_val_print): Call la_value_print_inner, if
9292 available.
9293 * rust-lang.c (rust_language_defn): Update.
9294 * p-lang.c (pascal_language_defn): Update.
9295 * opencl-lang.c (opencl_language_defn): Update.
9296 * objc-lang.c (objc_language_defn): Update.
9297 * m2-lang.c (m2_language_defn): Update.
9298 * language.h (struct language_defn) <la_value_print_inner>: New
9299 member.
9300 * language.c (unknown_language_defn, auto_language_defn): Update.
9301 * go-lang.c (go_language_defn): Update.
9302 * f-lang.c (f_language_defn): Update.
9303 * d-lang.c (d_language_defn): Update.
9304 * c-lang.c (c_language_defn, cplus_language_defn)
9305 (asm_language_defn, minimal_language_defn): Update.
9306 * ada-lang.c (ada_language_defn): Update.
9307
9308 2020-03-13 Tom Tromey <tom@tromey.com>
9309
9310 * c-valprint.c (c_value_print): Use common_val_print.
9311
9312 2020-03-13 Tom Tromey <tom@tromey.com>
9313
9314 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9315
9316 2020-03-13 Tom Tromey <tom@tromey.com>
9317
9318 * f-valprint.c (f77_print_array_1, f_val_print): Use
9319 common_val_print.
9320
9321 2020-03-13 Tom Tromey <tom@tromey.com>
9322
9323 * riscv-tdep.c (riscv_print_one_register_info): Use
9324 common_val_print.
9325
9326 2020-03-13 Tom Tromey <tom@tromey.com>
9327
9328 * mi/mi-main.c (output_register): Use common_val_print.
9329
9330 2020-03-13 Tom Tromey <tom@tromey.com>
9331
9332 * infcmd.c (default_print_one_register_info): Use
9333 common_val_print.
9334
9335 2020-03-13 Tom Tromey <tom@tromey.com>
9336
9337 * valprint.h (common_val_print_checked): Declare.
9338 * valprint.c (common_val_print_checked): New function.
9339 * stack.c (print_frame_arg): Use common_val_print_checked.
9340
9341 2020-03-13 Tom Tromey <tom@tromey.com>
9342
9343 * valprint.c (do_val_print): New function, from val_print.
9344 (val_print): Use do_val_print.
9345 (common_val_print): Use do_val_print.
9346
9347 2020-03-13 Tom Tromey <tom@tromey.com>
9348
9349 * valprint.c (value_print): Use scoped_value_mark.
9350
9351 2020-03-13 Tom de Vries <tdevries@suse.de>
9352
9353 PR symtab/25646
9354 * psymtab.c (partial_symtab::partial_symtab): Don't set
9355 globals_offset and statics_offset. Push element onto
9356 current_global_psymbols and current_static_psymbols stacks.
9357 (concat): New function.
9358 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9359 element from current_global_psymbols and current_static_psymbols
9360 stacks. Concat popped elements to global_psymbols and
9361 static_symbols.
9362 (add_psymbol_to_list): Use current_global_psymbols and
9363 current_static_psymbols stacks.
9364 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9365 current_static_psymbols fields.
9366
9367 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9368
9369 * corelow.c (sniff_core_bfd): Remove.
9370 (class core_target) <m_core_vec>: Remove.
9371 (core_target::core_target): Update.
9372 (core_file_fns): Remove.
9373 (deprecated_add_core_fns): Remove.
9374 (default_core_sniffer): Remove.
9375 (sniff_core_bfd): Remove.
9376 (default_check_format): Remove.
9377 (gdb_check_format): Remove.
9378 (core_target_open): Update.
9379 (core_target::get_core_register_section): Update.
9380 (get_core_registers_cb): Update.
9381 (core_target::fetch_registers): Update.
9382 * gdbcore.h (struct core_fns): Remove.
9383 (deprecated_add_core_fns): Remove.
9384 (default_core_sniffer): Remove.
9385 (default_check_format): Remove.
9386
9387 2020-03-12 Tom Tromey <tom@tromey.com>
9388
9389 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9390 CORE_ADDR.
9391 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9392
9393 2020-03-12 Tom Tromey <tom@tromey.com>
9394
9395 * remote.c (remote_target::download_tracepoint)
9396 (remote_target::enable_tracepoint)
9397 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9398 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9399 sprintf_vma.
9400
9401 2020-03-12 Tom Tromey <tom@tromey.com>
9402
9403 * symfile-mem.c: Update CORE_ADDR size assert.
9404
9405 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * selftest.m4: Move to gdbsupport/.
9408 * acinclude.m4: Update path to selftest.m4.
9409
9410 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9413 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9414 gdbarch-selfselftests.c and selftest-arch.c.
9415 (SUBDIR_UNITTESTS_OBS): Rename to...
9416 (SELFTESTS_OBS): ... this.
9417 (COMMON_SFILES): Remove disasm-selftests.c and
9418 gdbarch-selftests.c.
9419 * configure.ac: Don't add selftest-arch.{c,o} to
9420 CONFIG_{SRCS,OBS}.
9421 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9422 preprocessor conditions.
9423
9424 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9425
9426 * configure.ac: Don't source bfd/development.sh.
9427 * selftest.m4: Modify comment.
9428 * configure: Re-generate.
9429
9430 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9431
9432 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9433 not "true" or "false".
9434 * configure: Re-generate.
9435
9436 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9437
9438 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9439 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9440 renamed to arm_nbsd_supply_gregset.
9441 (fetch_register): Update to call arm_nbsd_supply_gregset.
9442 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9443 (arm_netbsd_nat_target::fetch_registers): Update.
9444 (fetch_elfcore_registers): Removed.
9445 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9446 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9447 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9448 not require NetBSD system headers.
9449 (arm_nbsd_regset): New struct.
9450 (arm_nbsd_iterate_over_regset_sections): New function.
9451 (arm_netbsd_init_abi_common): Updated to call
9452 set_gdbarch_iterate_over_regset_sections.
9453 * arm-nbsd-tdep.h: New file.
9454
9455 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9456
9457 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9458 recursion.
9459
9460 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9461
9462 * configure: Re-generate.
9463
9464 2020-03-11 Tom Tromey <tromey@adacore.com>
9465
9466 * ada-typeprint.c (print_choices): Fix comment.
9467
9468 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9469
9470 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9471 previous item in the list, when the list has no items.
9472
9473 2020-03-11 Tom de Vries <tdevries@suse.de>
9474
9475 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9476 PROP_LOCLIST handling code.
9477
9478 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9479
9480 * buildsym-legacy.c (record_line): Pass extra parameter to
9481 record_line.
9482 * buildsym.c (buildsym_compunit::record_line): Take an extra
9483 parameter, reduce duplication in the line table, and record the
9484 is_stmt flag in the line table.
9485 * buildsym.h (buildsym_compunit::record_line): Add extra
9486 parameter.
9487 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9488 non-statement lines.
9489 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9490 this to the symtab builder.
9491 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9492 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9493 through to dwarf_record_line_1.
9494 * infrun.c (process_event_stop_test): When stepping, don't stop at
9495 a non-statement instruction, and only refresh the step info when
9496 we land in the middle of a line's range. Also add an extra
9497 comment.
9498 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9499 field.
9500 * record-btrace.c (btrace_find_line_range): Only record lines
9501 marked as is-statement.
9502 * stack.c (frame_show_address): Show the frame address if we are
9503 in a non-statement sal.
9504 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9505 (maintenance_print_one_line_table): Print a header for the is_stmt
9506 column, and include is_stmt information in the output.
9507 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9508 preference to non-statements.
9509 (find_pcs_for_symtab_line): Prefer is-statement entries.
9510 (find_line_common): Likewise.
9511 * symtab.h (struct linetable_entry): Add is_stmt field.
9512 (struct symtab_and_line): Likewise.
9513 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9514 arranging the line table.
9515
9516 2020-03-07 Tom de Vries <tdevries@suse.de>
9517
9518 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9519 DIE.
9520
9521 2020-03-07 Tom Tromey <tom@tromey.com>
9522
9523 * valops.c (value_literal_complex): Remove obsolete comment.
9524 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9525 comment.
9526
9527 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9528
9529 * infrun.h: Forward-declare thread_info.
9530 (set_step_info): Add thread_info parameter, add doc.
9531 * infrun.c (set_step_info): Add thread_info parameter, move doc
9532 to header.
9533 * infrun.c (process_event_stop_test): Pass thread to
9534 set_step_info call.
9535 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9536 set_step_info.
9537 (prepare_one_step): Add thread_info parameter, pass it to
9538 set_step_frame and prepare_one_step (recursive) call.
9539 (step_1): Pass thread to prepare_one_step call.
9540 (step_command_fsm::should_stop): Pass thread to
9541 prepare_one_step.
9542 (until_next_fsm): Pass thread to set_step_frame call.
9543 (finish_command): Pass thread to set_step_info call.
9544
9545 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9546
9547 * windows-tdep.c (windows_solib_create_inferior_hook):
9548 Check if inferior is running.
9549
9550 2020-03-06 Tom de Vries <tdevries@suse.de>
9551
9552 * NEWS: Fix "the the".
9553 * ctfread.c: Same.
9554
9555 2020-03-06 Tom de Vries <tdevries@suse.de>
9556
9557 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9558
9559 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9560
9561 * .dir-locals.el: Add a comment referencing the other copies of
9562 this file.
9563
9564 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9565
9566 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9567 psargs.
9568
9569 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9570
9571 * .gitattributes: New file.
9572
9573 2020-03-04 Tom Tromey <tom@tromey.com>
9574
9575 * symmisc.c (print_symbol_bcache_statistics)
9576 (print_objfile_statistics): Update.
9577 * symfile.c (allocate_symtab): Use intern.
9578 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9579 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9580 macro_cache>: Remove.
9581 <string_cache>: New member.
9582 (struct objfile) <intern>: New methods.
9583 * elfread.c (elf_symtab_read): Use intern.
9584 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9585 (dwarf2_compute_name, dwarf2_physname)
9586 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9587 names.
9588 (guess_partial_die_structure_name): Update.
9589 (partial_die_info::fixup): Intern name.
9590 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9591 name.
9592 (dwarf2_name): Intern name. Update.
9593 * buildsym.c (buildsym_compunit::get_macro_table): Use
9594 string_cache.
9595
9596 2020-03-04 Tom Tromey <tom@tromey.com>
9597
9598 * jit.c (bfd_open_from_target_memory): Make "target" const.
9599 * corefile.c (gnutarget): Now const.
9600 * gdbcore.h (gnutarget): Now const.
9601
9602 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9603
9604 * NEWS: Mention support for WOW64 processes.
9605 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9606 (amd64_windows_segment_register_p): Remove static.
9607 (_initialize_amd64_windows_nat): Update.
9608 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9609 * i386-windows-nat.c (context_offset): Update.
9610 (i386_mappings): Rename and remove static.
9611 (i386_windows_segment_register_p): Remove static.
9612 (_initialize_i386_windows_nat): Update.
9613 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9614 (STATUS_WX86_SINGLE_STEP): New macro.
9615 (EnumProcessModulesEx): New macro.
9616 (Wow64SuspendThread): New macro.
9617 (Wow64GetThreadContext): New macro.
9618 (Wow64SetThreadContext): New macro.
9619 (Wow64GetThreadSelectorEntry): New macro.
9620 (windows_set_context_register_offsets): Add static.
9621 (windows_set_segment_register_p): Likewise.
9622 (windows_add_thread): Adapt for WOW64 processes.
9623 (windows_fetch_one_register): Likewise.
9624 (windows_nat_target::fetch_registers): Likewise.
9625 (windows_store_one_register): Likewise.
9626 (display_selector): Likewise.
9627 (display_selectors): Likewise.
9628 (handle_exception): Likewise.
9629 (windows_continue): Likewise.
9630 (windows_nat_target::resume): Likewise.
9631 (windows_add_all_dlls): Likewise.
9632 (do_initial_windows_stuff): Likewise.
9633 (windows_nat_target::attach): Likewise.
9634 (windows_get_exec_module_filename): Likewise.
9635 (windows_nat_target::create_inferior): Likewise.
9636 (windows_xfer_siginfo): Likewise.
9637 (_initialize_loadable): Initialize Wow64SuspendThread,
9638 Wow64GetThreadContext, Wow64SetThreadContext,
9639 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9640 * windows-nat.h (windows_set_context_register_offsets):
9641 Remove declaration.
9642 (windows_set_segment_register_p): Likewise.
9643 (i386_windows_segment_register_p): Add declaration.
9644 (amd64_windows_segment_register_p): Likewise.
9645
9646 2020-03-04 Luis Machado <luis.machado@linaro.org>
9647
9648 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9649 in "info registers" for AArch64/ARM.
9650
9651 The change caused "info registers" to not print GPR's.
9652
9653 gdb/ChangeLog:
9654
9655 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9656
9657 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9658 when reg->group is empty and reggroup is not.
9659
9660 2020-03-03 Tom Tromey <tromey@adacore.com>
9661
9662 * dwarf2/frame.c (struct dwarf2_frame_cache)
9663 <checked_tailcall_bottom, entry_cfa_sp_offset,
9664 entry_cfa_sp_offset_p>: Remove members.
9665 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9666 (dwarf2_frame_prev_register): Don't call
9667 dwarf2_tailcall_sniffer_first.
9668 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9669 * frame-unwind.c (add_unwinder): New fuction.
9670 (frame_unwind_init): Use it. Add tailcall unwinder.
9671
9672 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9673 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9674
9675 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9676 value should be printed as true.
9677
9678 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9679
9680 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9681 (windows_init_abi): Set and use windows_so_ops.
9682
9683 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9684
9685 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9686 when verifying if dealing with a convenience variable.
9687
9688 2020-03-03 Luis Machado <luis.machado@linaro.org>
9689
9690 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9691
9692 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9693
9694 * infrun.c (gdbarch_supports_displaced_stepping): New.
9695 (use_displaced_stepping): Break up conditions in smaller pieces.
9696 Use gdbarch_supports_displaced_stepping.
9697 (displaced_step_prepare_throw): Use
9698 gdbarch_supports_displaced_stepping.
9699
9700 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9701
9702 * NEWS: Mention new behaviour of the history filename.
9703 * top.c (write_history_p): Add comment.
9704 (show_write_history_p): Add header comment, give a different
9705 message when history writing is on, but the history filename is
9706 empty.
9707 (history_filename): Add comment.
9708 (history_filename_empty): New function.
9709 (show_history_filename): Add header comment, give a different
9710 message when the filename is empty.
9711 (init_history): Compare history_filename against nullptr, and only
9712 read history if the filename is not empty.
9713 (set_history_filename): Add header comment, and only make
9714 non-empty filenames absolute.
9715 (init_main): Make the filename argument to 'set history filename'
9716 optional.
9717
9718 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9719
9720 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9721 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9722 (fetch_fp_register): Update.
9723 (fetch_fp_regs): Update.
9724 (store_fp_register): Update.
9725 (store_fp_regs): Update.
9726 (arm_netbsd_nat_target::read_description): New function.
9727 (fetch_elfcore_registers): Update.
9728
9729 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9730
9731 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9732 general_thread if the stop reply is missing a thread-id.
9733 (remote_target::process_stop_reply): Use the first non-exited
9734 thread if the target didn't pass a thread-id.
9735 * infrun.c (do_target_wait): Move call to
9736 switch_to_inferior_no_thread to ....
9737 (do_target_wait_1): ... here.
9738
9739 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9740
9741 * debuginfod-support.c: Include defs.h first.
9742
9743 2020-02-28 Tom de Vries <tdevries@suse.de>
9744
9745 * symfile.c (set_initial_language): Use default language for lookup.
9746
9747 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9750 reader variable, pass `this` to read_cutu_die_from_dwo.
9751
9752 2020-02-27 Aaron Merey <amerey@redhat.com>
9753
9754 * source.c (open_source_file): Check for nullptr when computing
9755 srcpath.
9756
9757 2020-02-27 Tom Tromey <tromey@adacore.com>
9758
9759 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9760 member.
9761 (dwarf2_add_field): Don't update nfields.
9762 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9763
9764 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9765
9766 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9767 abs.
9768
9769 2020-02-26 Tom Tromey <tom@tromey.com>
9770
9771 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9772 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9773 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9774 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9775 per_cu_data.
9776
9777 2020-02-26 Tom Tromey <tom@tromey.com>
9778
9779 * dwarf2/index-write.c (psym_index_map): Change type.
9780 (add_address_entry_worker, write_one_signatured_type)
9781 (recursively_count_psymbols, recursively_write_psymbols)
9782 (class debug_names, psyms_seen_size, write_gdbindex)
9783 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9784
9785 2020-02-26 Aaron Merey <amerey@redhat.com>
9786
9787 * Makefile.in: Handle optional debuginfod support.
9788 * NEWS: Update.
9789 * README: Add --with-debuginfod summary.
9790 * config.in: Regenerate.
9791 * configure: Regenerate.
9792 * configure.ac: Handle optional debuginfod support.
9793 * debuginfod-support.c: debuginfod helper functions.
9794 * debuginfod-support.h: Ditto.
9795 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9796 summary.
9797 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9798 when a dwz file cannot be found.
9799 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9800 debuginfo file cannot be found.
9801 * source.c (open_source_file): Query debuginfod servers when a
9802 source file cannot be found.
9803 * top.c (print_gdb_configuration): Include
9804 --{with,without}-debuginfod in the output.
9805
9806 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9807
9808 * thread.c (thr_try_catch_cmd): Print thread name.
9809
9810 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9811
9812 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9813 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9814 dwarf2_fetch_die_type_sect_off): Move to...
9815 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9816 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9817 dwarf2_fetch_die_type_sect_off): ... here.
9818 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9819 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9820 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9821
9822 2020-02-26 Tom de Vries <tdevries@suse.de>
9823
9824 PR gdb/25603
9825 * symfile.c (set_initial_language): Exit-early if
9826 language_mode == language_mode_manual.
9827
9828 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9829
9830 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9831 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9832 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9833
9834 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9835
9836 * gdbtypes.c (create_array_type_with_stride): Handle negative
9837 array strides.
9838 * valarith.c (value_subscripted_rvalue): Likewise.
9839
9840 2020-02-25 Luis Machado <luis.machado@linaro.org>
9841
9842 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9843
9844 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9845
9846 * loc.h (dwarf2_get_die_type): Move to...
9847 * read.h (dwarf2_get_die_type): ... here.
9848 * read.c (dwarf2_get_die_type): Move doc to header.
9849
9850 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9851
9852 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9853 'gnulib/Makefile.in' to the list.
9854
9855 2020-02-24 Tom Tromey <tom@tromey.com>
9856
9857 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9858 Remove.
9859 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9860 XOBNEWVEC.
9861
9862 2020-02-24 Tom Tromey <tom@tromey.com>
9863
9864 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9865 New method.
9866 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9867 (dw2_do_instantiate_symtab, dw2_get_file_names)
9868 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9869
9870 2020-02-24 Tom Tromey <tom@tromey.com>
9871
9872 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9873 make_scoped_restore.
9874 (dwarf2_psymtab::read_symtab): Don't clear
9875 reading_partial_symbols.
9876
9877 2020-02-24 Tom de Vries <tdevries@suse.de>
9878
9879 PR gdb/25592
9880 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9881
9882 2020-02-24 Tom de Vries <tdevries@suse.de>
9883
9884 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9885 commands layout next/prev/regs.
9886
9887 2020-02-22 Tom Tromey <tom@tromey.com>
9888
9889 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9890 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9891
9892 2020-02-22 Tom Tromey <tom@tromey.com>
9893
9894 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9895
9896 2020-02-22 Tom Tromey <tom@tromey.com>
9897
9898 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9899 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9900 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9901 * tui/tui.c (_initialize_tui): Add usage text.
9902
9903 2020-02-22 Tom Tromey <tom@tromey.com>
9904
9905 * tui/tui-win.c (tui_set_focus_command)
9906 (tui_set_win_height_command): Use error_no_arg.
9907 (_initialize_tui_win): Update help text.
9908 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9909
9910 2020-02-22 Tom Tromey <tom@tromey.com>
9911
9912 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9913 * tui/tui-disasm.h (struct tui_disasm_window)
9914 <display_start_addr>: Declare.
9915 * tui/tui-source.h (struct tui_source_window)
9916 <display_start_addr>: Declare.
9917 * tui/tui-winsource.h (struct tui_source_window_base)
9918 <show_source_line, display_start_addr>: New methods.
9919 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9920 Rename and move to protected section.
9921 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9922 (tui_source_window_base::do_erase_source_content): Update.
9923 (tui_source_window_base::show_source_line): Now a method.
9924 (tui_source_window_base::show_source_content)
9925 (tui_source_window_base::tui_source_window_base)
9926 (tui_source_window_base::rerender)
9927 (tui_source_window_base::refill)
9928 (tui_source_window_base::do_scroll_horizontal)
9929 (tui_source_window_base::set_is_exec_point_at)
9930 (tui_source_window_base::update_breakpoint_info)
9931 (tui_source_window_base::update_exec_info): Update.
9932 * tui/tui-source.c (tui_source_window::set_contents)
9933 (tui_source_window::showing_source_p)
9934 (tui_source_window::do_scroll_vertical)
9935 (tui_source_window::location_matches_p)
9936 (tui_source_window::line_is_displayed): Update.
9937 (tui_source_window::display_start_addr): New method.
9938 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9939 (tui_disasm_window::do_scroll_vertical)
9940 (tui_disasm_window::location_matches_p): Update.
9941 (tui_disasm_window::display_start_addr): New method.
9942
9943 2020-02-22 Tom Tromey <tom@tromey.com>
9944
9945 * NEWS: Add entry for gdb.register_window_type.
9946 * tui/tui-layout.h (window_factory): New typedef.
9947 (tui_register_window): Declare.
9948 * tui/tui-layout.c (saved_tui_windows): New global.
9949 (tui_apply_current_layout): Use it.
9950 (tui_register_window): New function.
9951 * python/python.c (do_start_initialization): Call
9952 gdbpy_initialize_tui.
9953 (python_GdbMethods): Add "register_window_type" function.
9954 * python/python-internal.h (gdbpy_register_tui_window)
9955 (gdbpy_initialize_tui): Declare.
9956 * python/py-tui.c: New file.
9957 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9958
9959 2020-02-22 Tom Tromey <tom@tromey.com>
9960
9961 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9962
9963 2020-02-22 Tom Tromey <tom@tromey.com>
9964
9965 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9966 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9967 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9968 (tui_set_win_focus_to): Move from tui-win.c.
9969
9970 2020-02-22 Tom Tromey <tom@tromey.com>
9971
9972 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9973 functions.
9974 (known_window_types): New global.
9975 (tui_get_window_by_name): Reimplement.
9976 (initialize_known_windows): New function.
9977 (validate_window_name): Rewrite.
9978 (_initialize_tui_layout): Call initialize_known_windows.
9979
9980 2020-02-22 Tom Tromey <tom@tromey.com>
9981
9982 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9983 Remove constants.
9984 * tui/tui-winsource.h (struct tui_source_window_base)
9985 <tui_source_window_base>: Remove parameter.
9986 * tui/tui-winsource.c
9987 (tui_source_window_base::tui_source_window_base): Remove
9988 parameter.
9989 (tui_source_window_base::refill): Update.
9990 * tui/tui-stack.h (struct tui_locator_window)
9991 <tui_locator_window>: Update.
9992 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9993 Default the constructor.
9994 * tui/tui-regs.h (struct tui_data_item_window)
9995 <tui_data_item_window>: Default the constructor.
9996 (struct tui_data_window) <tui_data_window>: Likewise.
9997 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9998 Default the constructor.
9999 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10000 Default the constructor.
10001 <type>: Remove.
10002 (struct tui_win_info) <tui_win_info>: Default the constructor.
10003 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10004 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10005 Default the constructor.
10006
10007 2020-02-22 Tom Tromey <tom@tromey.com>
10008
10009 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10010 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10011 * tui/tui-win.c (tui_resize_all): Don't call
10012 tui_delete_invisible_windows.
10013 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10014 done.
10015 (tui_set_layout): Update.
10016 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10017 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10018 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10019
10020 2020-02-22 Tom Tromey <tom@tromey.com>
10021
10022 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10023 correctly.
10024
10025 2020-02-22 Tom Tromey <tom@tromey.com>
10026
10027 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10028
10029 2020-02-22 Tom Tromey <tom@tromey.com>
10030
10031 * tui/tui-winsource.h (struct tui_source_window_iterator)
10032 <inner_iterator>: New etytypedef.
10033 <tui_source_window_iterator>: Take "end" parameter.
10034 <tui_source_window_iterator>: Take iterator.
10035 <operator*, advance>: Update.
10036 <m_iter>: Change type.
10037 <m_end>: New field.
10038 (struct tui_source_windows) <begin, end>: Update.
10039 * tui/tui-layout.c (tui_windows): New global.
10040 (tui_apply_current_layout): Clear tui_windows.
10041 (tui_layout_window::apply): Update tui_windows.
10042 * tui/tui-data.h (tui_windows): Declare.
10043 (all_tui_windows): Now inline function.
10044 (class tui_window_iterator, struct all_tui_windows): Remove.
10045
10046 2020-02-22 Tom Tromey <tom@tromey.com>
10047
10048 PR tui/17850:
10049 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10050 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10051 "height" argument.
10052 (class tui_layout_window) <get_sizes>: Likewise.
10053 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10054 argument.
10055 <get_sizes>: Add "height" argument.
10056 <m_vertical>: New field.
10057 * tui/tui-layout.c (tui_layout_split::clone): Update.
10058 (tui_layout_split::get_sizes): Add "height" argument.
10059 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10060 (tui_new_layout_command): Parse "-horizontal".
10061 (_initialize_tui_layout): Update help string.
10062 (tui_layout_split::specification): Add "-horizontal" when needed.
10063 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10064 argument.
10065 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10066 New methods.
10067
10068 2020-02-22 Tom Tromey <tom@tromey.com>
10069
10070 * tui/tui-layout.h (enum tui_adjust_result): New.
10071 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10072 (class tui_layout_window) <adjust_size>: Return
10073 tui_adjust_result. Rewrite.
10074 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10075 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10076
10077 2020-02-22 Tom Tromey <tom@tromey.com>
10078
10079 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10080 parameter and return types.
10081 (class tui_layout_base) <specification>: Add "depth".
10082 (class tui_layout_window) <specification>: Add "depth".
10083 (class tui_layout_split) <specification>: Add "depth".
10084 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10085 and return types.
10086 (tui_new_layout_command): Parse sub-layouts.
10087 (_initialize_tui_layout): Update help string.
10088 (tui_layout_window::specification): Add "depth".
10089 (add_layout_command): Update.
10090
10091 2020-02-22 Tom Tromey <tom@tromey.com>
10092
10093 * NEWS: Add "tui new-layout" item.
10094 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10095 Add new-layout command to help text.
10096 (validate_window_name): New function.
10097 (tui_new_layout_command): New function.
10098 (_initialize_tui_layout): Register "new-layout".
10099 (tui_layout_window::specification): New method.
10100 (tui_layout_window::specification): New method.
10101 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10102 method.
10103 (class tui_layout_window) <specification>: New method.
10104 (class tui_layout_split) <specification>: New method.
10105
10106 2020-02-22 Tom Tromey <tom@tromey.com>
10107
10108 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10109 * tui/tui-win.c (window_name_completer): Update comment.
10110 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10111 Declare method.
10112 (class tui_layout_window) <replace_window>: Likewise.
10113 (class tui_layout_split) <replace_window>: Likewise.
10114 (tui_set_layout): Don't declare.
10115 (tui_set_initial_layout): Declare function.
10116 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10117 (asm_regs_layout): New globals.
10118 (tui_current_layout, show_layout): Remove.
10119 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10120 (find_layout, tui_apply_layout): New function.
10121 (layout_completer): Remove.
10122 (tui_next_layout): Reimplement.
10123 (tui_next_layout_command): New function.
10124 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10125 (tui_regs_layout): Reimplement.
10126 (tui_regs_layout_command): New function.
10127 (extract_display_start_addr): Rewrite.
10128 (next_layout, prev_layout): Remove.
10129 (tui_layout_window::replace_window): New method.
10130 (tui_layout_split::replace_window): New method.
10131 (destroy_layout): New function.
10132 (layout_list): New global.
10133 (add_layout_command): New function.
10134 (initialize_layouts): Update.
10135 (tui_layout_command): New function.
10136 (_initialize_tui_layout): Install "layout" commands.
10137 * tui/tui-data.h (enum tui_layout_type): Remove.
10138 (tui_current_layout): Don't declare.
10139
10140 2020-02-22 Tom Tromey <tom@tromey.com>
10141
10142 * tui/tui-regs.c (tui_reg_layout): Remove.
10143 (tui_reg_command): Use tui_regs_layout.
10144 * tui/tui-layout.h (tui_reg_command): Declare.
10145 * tui/tui-layout.c (tui_reg_command): New function.
10146
10147 2020-02-22 Tom Tromey <tom@tromey.com>
10148
10149 * tui/tui.c (tui_rl_delete_other_windows): Call
10150 tui_remove_some_windows.
10151 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10152 Declare method.
10153 (class tui_layout_window) <remove_windows>: New method.
10154 (class tui_layout_split) <remove_windows>: Declare.
10155 (tui_remove_some_windows): Declare.
10156 * tui/tui-layout.c (tui_remove_some_windows): New function.
10157 (tui_layout_split::remove_windows): New method.
10158
10159 2020-02-22 Tom Tromey <tom@tromey.com>
10160
10161 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10162 * tui/tui-layout.h (tui_next_layout): Declare.
10163 * tui/tui-layout.c (tui_next_layout): New function.
10164
10165 2020-02-22 Tom Tromey <tom@tromey.com>
10166
10167 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10168 correct coordinates.
10169
10170 2020-02-22 Tom Tromey <tom@tromey.com>
10171
10172 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10173 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10174 DATA_WIN case.
10175
10176 2020-02-22 Tom Tromey <tom@tromey.com>
10177
10178 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10179 TUI_DISASM_WIN, not tui_win_list.
10180
10181 2020-02-22 Tom Tromey <tom@tromey.com>
10182
10183 * valprint.c (generic_val_print_enum_1)
10184 (val_print_type_code_flags): Style member names.
10185 * rust-lang.c (val_print_struct, rust_print_enum)
10186 (rust_print_struct_def, rust_internal_print_type): Style member
10187 names.
10188 * p-valprint.c (pascal_object_print_value_fields): Style member
10189 names. Only call fprintf_symbol_filtered for static members.
10190 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10191 * f-valprint.c (f_val_print): Style member names.
10192 * f-typeprint.c (f_type_print_base): Style member names.
10193 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10194 call fprintf_symbol_filtered for static members.
10195 (cp_print_class_member): Style member names.
10196 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10197 member names.
10198 * ada-valprint.c (ada_print_scalar): Style enum names.
10199 (ada_val_print_enum): Likewise.
10200 * ada-typeprint.c (print_enum_type): Style enum names.
10201
10202 2020-02-21 Tom Tromey <tom@tromey.com>
10203
10204 * psympriv.h (struct partial_symtab): Update comment.
10205
10206 2020-02-21 Tom Tromey <tromey@adacore.com>
10207
10208 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10209 type is CORE_ADDR.
10210
10211 2020-02-21 Tom de Vries <tdevries@suse.de>
10212
10213 PR gdb/25534
10214 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10215 if dependencies[i]->user != NULL.
10216
10217 2020-02-21 Ali Tamur <tamur@google.com>
10218
10219 * dwarf2/read.c (dwarf2_name): Add null check.
10220
10221 2020-02-20 Tom Tromey <tom@tromey.com>
10222
10223 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10224 ">=", in binary search.
10225 (dwarf2_find_containing_comp_unit): New overload.
10226 (run_test): New self-test.
10227 (_initialize_dwarf2_read): Register new test.
10228
10229 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10230
10231 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10232 * riscv-tdep.h: Likewise.
10233 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10234 rv32-only CSR.
10235 * features/riscv/64bit-csr.xml: Regenerated.
10236
10237 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10238 Tom Tromey <tom@tromey.com>
10239
10240 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10241 of 'fputc_unfiltered'.
10242 (putchar_unfiltered): Call 'fputc_unfiltered'.
10243 (fputc_unfiltered): Call 'fputs_unfiltered'.
10244
10245 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10246
10247 * config.in: Regenerate.
10248 * configure: Regenerate.
10249 * configure.ac: Add --with-python-libdir option.
10250 * main.c: Use WITH_PYTHON_LIBDIR.
10251
10252 2020-02-19 Tom Tromey <tom@tromey.com>
10253
10254 * symtab.c (general_symbol_info::compute_and_set_names): Use
10255 obstack_strndup. Simplify call to symbol_set_demangled_name.
10256
10257 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * dwarf2/read.c (allocate_signatured_type_table,
10260 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10261 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10262 Remove objfile parameter, update all callers.
10263
10264 2020-02-19 Doug Evans <dje@google.com>
10265
10266 PR rust/25535
10267 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10268 rust_enum_variant calculation.
10269
10270 2020-02-19 Tom Tromey <tromey@adacore.com>
10271
10272 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10273
10274 2020-02-19 Tom Tromey <tromey@adacore.com>
10275
10276 * ada-lang.c (cache_symbol): Use obstack_strdup.
10277
10278 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10279
10280 * configure: Regenerate.
10281
10282 2020-02-19 Tom Tromey <tromey@adacore.com>
10283
10284 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10285 NULL check.
10286
10287 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10288
10289 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10290
10291 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10292
10293 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10294 if GDBSERVER is not defined.
10295 (riscv_tdesc_cache): Likewise, also store const target_desc.
10296 (STATIC_IN_GDB): Define.
10297 (riscv_create_target_description): Update declaration with
10298 STATIC_IN_GDB.
10299 (riscv_lookup_target_description): New function, only define if
10300 GDBSERVER is not defined.
10301 * arch/riscv.h (riscv_create_target_description): Declare only
10302 when GDBSERVER is defined.
10303 (riscv_lookup_target_description): New declaration when GDBSERVER
10304 is not defined.
10305 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10306 (riscv_linux_read_features): ...this, and return
10307 riscv_gdbarch_features instead of target_desc.
10308 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10309 (riscv_linux_read_description): Rename to...
10310 (riscv_linux_read_features): ...this.
10311 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10312 Update to use riscv_gdbarch_features and
10313 riscv_lookup_target_description.
10314 * riscv-tdep.c (riscv_find_default_target_description): Use
10315 riscv_lookup_target_description instead of
10316 riscv_create_target_description.
10317
10318 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * valprint.c (generic_val_print_enum_1): When printing a flag
10321 enum with value 0 and there is no enumerator with value 0, print
10322 just "0" instead of "(unknown: 0x0)".
10323
10324 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * valprint.c (generic_val_print_enum_1): Print unknown part of
10327 flag enum in hex.
10328
10329 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10332 flag enums to contain duplicate enumerators.
10333 * valprint.c (generic_val_print_enum_1): Update comment.
10334
10335 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10336
10337 * dwarf2/read.c: Include "count-one-bits.h".
10338 (update_enumeration_type_from_children): If an enumerator has
10339 multiple bits set, don't treat the enumeration as a "flag enum".
10340 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10341 of flag enums have 0 or 1 bit set.
10342
10343 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10344
10345 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10346 conversion.
10347 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10348 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10349 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10350 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10351 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10352
10353 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10356
10357 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10358
10359 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10360 displaced_step_closure_up.
10361 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10362 (struct displaced_step_closure_up):
10363 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10364 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10365 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10366 Likewise.
10367 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10368 * gdbarch.c, gdbarch.h: Re-generate.
10369 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10370 displaced_step_closure_up.
10371 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10372 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10373 * infrun.h (displaced_step_closure_up): New type alias.
10374 (struct displaced_step_inferior_state) <step_closure>: Change
10375 type to displaced_step_closure_up.
10376 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10377 displaced_step_closure_up.
10378 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10379
10380 2020-02-14 Tom Tromey <tom@tromey.com>
10381
10382 * minidebug.c (gnu_debug_key): New global.
10383 (find_separate_debug_file_in_section): Use it.
10384
10385 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10388 std::unique_ptr.
10389 * gdbarch.c: Re-generate.
10390 * gdbarch.h: Re-generate.
10391 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10392 change.
10393 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10394 type to std::unique_ptr.
10395 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10396 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10397 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10398 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10399 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10400 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10401 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10402 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10403 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10404
10405 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10408 std::unique_ptr.
10409 (displaced_step_clear): Rename to...
10410 (displaced_step_reset): ... this. Just call displaced->reset ().
10411 (displaced_step_clear_cleanup): Rename to...
10412 (displaced_step_reset_cleanup): ... this.
10413 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10414 (displaced_step_fixup): Likewise.
10415 (resume_1): Likewise.
10416 (handle_inferior_event): Restore child's memory before calling
10417 displaced_step_fixup on the parent.
10418 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10419 to std::unique_ptr.
10420 <step_closure>: Change type to std::unique_ptr.
10421
10422 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10423
10424 * arm-tdep.c: Include count-one-bits.h.
10425 (cleanup_block_store_pc): Use count_one_bits.
10426 (cleanup_block_load_pc): Use count_one_bits.
10427 (arm_copy_block_xfer): Use count_one_bits.
10428 (thumb2_copy_block_xfer): Use count_one_bits.
10429 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10430 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10431 (thumb_get_next_pcs_raw): Use count_one_bits.
10432 (arm_get_next_pcs_raw): Use count_one_bits_l.
10433 * arch/arm.c (bitcount): Remove.
10434 * arch/arm.h (bitcount): Remove.
10435
10436 2020-02-14 Tom Tromey <tromey@adacore.com>
10437
10438 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10439 Update.
10440 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10441 * dwarf2/loc.c (call_site_find_chain_1): Return
10442 unique_xmalloc_ptr.
10443 (call_site_find_chain): Likewise.
10444
10445 2020-02-14 Richard Biener <rguenther@suse.de>
10446
10447 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10448 on expression with division operators.
10449
10450 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10451
10452 * MAINTAINERS (Write After Approval): Adding myself.
10453
10454 2020-02-12 Tom Tromey <tom@tromey.com>
10455
10456 * event-loop.c (event_data, gdb_event, event_handler_func):
10457 Remove.
10458
10459 2020-02-12 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10462 (dwarf2_frame_objfile_data): Add comment.
10463 (find_comp_unit, set_comp_unit): New functions.
10464 (dwarf2_frame_find_fde): Use find_comp_unit.
10465 (dwarf2_build_frame_info): Use set_comp_unit.
10466
10467 2020-02-12 Tom Tromey <tom@tromey.com>
10468
10469 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10470 (comp_unit): Don't initialize objfile.
10471 (execute_cfa_program): Add text_offset parameter.
10472 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10473 (dwarf2_frame_cache): Update.
10474 (dwarf2_build_frame_info): Don't set "objfile" member.
10475
10476 2020-02-12 Tom Tromey <tom@tromey.com>
10477
10478 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10479 (decode_frame_entry): Likewise.
10480 (dwarf2_build_frame_info): Update.
10481
10482 2020-02-12 Tom Tromey <tom@tromey.com>
10483
10484 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10485 (decode_frame_entry_1): Use the comp_unit obstack.
10486
10487 2020-02-12 Tom Tromey <tom@tromey.com>
10488
10489 * dwarf2/frame.c (struct comp_unit): Add initializers and
10490 constructor.
10491 (dwarf2_frame_objfile_data): Store a comp_unit.
10492 (dwarf2_frame_find_fde): Update.
10493 (dwarf2_build_frame_info): Use "new".
10494
10495 2020-02-12 Tom Tromey <tom@tromey.com>
10496
10497 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10498 (dwarf2_fde_table): Typedef for std::vector.
10499 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10500 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10501 (decode_frame_entry): Update.
10502 (dwarf2_build_frame_info): Use "new".
10503
10504 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10505
10506 * arm-tdep.c (arm_gdbarch_init): Update.
10507 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10508 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10509 have_neon, is_m>: Change to bool.
10510
10511 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10512
10513 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10514
10515 2020-02-12 Tom Tromey <tom@tromey.com>
10516
10517 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10518
10519 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10520
10521 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10522 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10523
10524 2020-02-11 Tom Tromey <tom@tromey.com>
10525
10526 * psymtab.h: Update comment.
10527
10528 2020-02-11 Tom Tromey <tom@tromey.com>
10529
10530 * gdb_obstack.h (struct auto_obstack): Use
10531 DISABLE_COPY_AND_ASSIGN.
10532
10533 2020-02-11 Tom Tromey <tom@tromey.com>
10534
10535 * dwarf2/frame.h (struct objfile): Don't forward declare.
10536
10537 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10538
10539 * cris-tdep.c (cris_supply_gregset): Change signature to match
10540 what struct regset expects.
10541 (cris_regset): New struct.
10542 (fetch_core_registers): Remove.
10543 (cris_iterate_over_regset_sections): New function.
10544 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10545 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10546
10547 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10548
10549 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10550 registers.
10551
10552 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10553
10554 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10555
10556 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10557
10558 * configure: Re-generate.
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 * acinclude: Update warning.m4 path.
10567 * warning.m4: Move to gdbsupport.
10568
10569 2020-02-11 Tom Tromey <tromey@adacore.com>
10570
10571 * remote.c (remote_console_output): Update.
10572 * printcmd.c (printf_command): Update.
10573 * event-loop.c (gdb_wait_for_event): Update.
10574 * linux-nat.c (sigchld_handler): Update.
10575 * remote-sim.c (gdb_os_write_stdout): Update.
10576 (gdb_os_flush_stdout): Update.
10577 (gdb_os_flush_stderr): Update.
10578 (gdb_os_write_stderr): Update.
10579 * exceptions.c (print_exception): Update.
10580 * remote-fileio.c (remote_fileio_func_read): Update.
10581 (remote_fileio_func_write): Update.
10582 * tui/tui.c (tui_enable): Update.
10583 * tui/tui-interp.c (tui_interp::init): Update.
10584 * utils.c (init_page_info): Update.
10585 (putchar_unfiltered, fputc_unfiltered): Update.
10586 (gdb_flush): Update.
10587 (emit_style_escape): Update.
10588 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10589 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10590 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10591 (stderr_file::write): Update.
10592 (stderr_file::puts): Update.
10593 * ui-file.h (ui_file_isatty, ui_file_write)
10594 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10595 (ui_file_puts): Don't declare.
10596
10597 2020-02-10 Tom de Vries <tdevries@suse.de>
10598
10599 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10600 sentinel to char *.
10601
10602 2020-02-09 Tom de Vries <tdevries@suse.de>
10603
10604 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10605 filename if it matches "<artificial>".
10606
10607 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10608
10609 * windows-tdep.c (struct enum_value_name): New struct.
10610 (create_enum): New function.
10611 (windows_get_siginfo_type): Create and use enum types.
10612
10613 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10614
10615 * NEWS: Mention $_siginfo support for Windows.
10616 * windows-nat.c (handle_exception): Set siginfo_er.
10617 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10618 (windows_xfer_siginfo): New function.
10619 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10620 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10621 (init_windows_gdbarch_data): New function.
10622 (get_windows_gdbarch_data): New function.
10623 (windows_get_siginfo_type): New function.
10624 (windows_init_abi): Register windows_get_siginfo_type.
10625 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10626
10627 2020-02-08 Tom Tromey <tom@tromey.com>
10628
10629 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10630 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10631 <keep>: Declare method.
10632 <m_keep>: Remove member.
10633 <~cutu_reader>: Remove.
10634 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10635 (cutu_reader::cutu_reader): Update.
10636 (cutu_reader::keep): Rename from ~cutu_reader.
10637 (process_psymtab_comp_unit, build_type_psymtabs_1)
10638 (process_skeletonless_type_unit, load_partial_comp_unit)
10639 (load_full_comp_unit, dwarf2_read_addr_index)
10640 (read_signatured_type): Update.
10641
10642 2020-02-08 Tom Tromey <tom@tromey.com>
10643
10644 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10645 "want_partial_unit" parameter.
10646 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10647 Inline check for DW_TAG_partial_unit.
10648 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10649
10650 2020-02-08 Tom Tromey <tom@tromey.com>
10651
10652 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10653 read.c.
10654 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10655 read.c.
10656
10657 2020-02-08 Tom Tromey <tom@tromey.com>
10658
10659 * dwarf2/read.c (read_address): Move to comp-unit.c.
10660 (dwarf2_rnglists_process, dwarf2_ranges_process)
10661 (read_attribute_value, dwarf_decode_lines_1)
10662 (var_decode_location, decode_locdesc): Update.
10663 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10664 read.c. Remove "cu" parameter.
10665 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10666 method.
10667
10668 2020-02-08 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10671 (read_indirect_line_string): Update.
10672 * dwarf2/comp-unit.c (read_offset): Remove.
10673 (read_comp_unit_head): Update.
10674 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10675 method.
10676 (read_offset): Don't declare.
10677
10678 2020-02-08 Tom Tromey <tom@tromey.com>
10679
10680 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10681 * dwarf2/read.c (struct comp_unit_head): Move to
10682 dwarf2/comp-unit.h.
10683 (enum class rcuh_kind): Move to comp-unit.h.
10684 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10685 (read_comp_unit_head, error_check_comp_unit_head)
10686 (read_and_check_comp_unit_head): Move to comp-unit.c.
10687 (read_offset, dwarf_unit_type_name): Likewise.
10688 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10689 (cutu_reader::cutu_reader, read_call_site_scope)
10690 (find_partial_die, follow_die_offset): Update.
10691 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10692
10693 2020-02-08 Tom Tromey <tom@tromey.com>
10694
10695 * dwarf2/read.c (read_offset_1): Move to leb.c.
10696 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10697 (dwarf_decode_macro_bytes): Update.
10698 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10699 * dwarf2/leb.h (read_offset): Declare.
10700
10701 2020-02-08 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2/read.c (dwarf2_section_size): Remove.
10704 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10705 Update.
10706 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10707
10708 2020-02-08 Tom Tromey <tom@tromey.com>
10709
10710 * dwarf2/read.c (read_initial_length): Move to leb.c.
10711 * dwarf2/leb.h (read_initial_length): Declare.
10712 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10713 handle_nonstd parameter.
10714 * dwarf2/frame.c (read_initial_length): Remove.
10715 (decode_frame_entry_1): Update.
10716
10717 2020-02-08 Tom Tromey <tom@tromey.com>
10718
10719 * dwarf2/loc.c (dwarf2_find_location_expression)
10720 (dwarf_evaluate_loc_desc::get_tls_address)
10721 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10722 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10723 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10724 (dwarf2_compile_property_to_c)
10725 (dwarf2_loc_desc_get_symbol_read_needs)
10726 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10727 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10728 (loclist_describe_location, loclist_tracepoint_var_ref)
10729 (loclist_generate_c_location): Update.
10730 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10731 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10732 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10733 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10734 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10735 (dwarf2_per_cu_data::addr_size)
10736 (dwarf2_per_cu_data::ref_addr_size)
10737 (dwarf2_per_cu_data::text_offset)
10738 (dwarf2_per_cu_data::addr_type): Now methods.
10739 (per_cu_header_read_in): Make per_cu "const".
10740 (dwarf2_version): Remove.
10741 (dwarf2_per_cu_data::int_type): Now a method.
10742 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10743 (set_die_type, read_array_type, read_subrange_index_type)
10744 (read_tag_string_type, read_subrange_type): Update.
10745 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10746 offset_size, ref_addr_size, text_offset, addr_type, version,
10747 objfile, int_type, addr_sized_int_type>: Declare methods.
10748
10749 2020-02-08 Tom Tromey <tom@tromey.com>
10750
10751 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10752 Move earlier.
10753
10754 2020-02-08 Tom Tromey <tom@tromey.com>
10755
10756 * dwarf2/read.h (dwarf_line_debug): Declare.
10757 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10758 * dwarf2/read.c: Move line_header code to new files.
10759 (dwarf_line_debug): No longer static.
10760 * dwarf2/line-header.c: New file.
10761 * dwarf2/line-header.h: New file.
10762
10763 2020-02-08 Tom Tromey <tom@tromey.com>
10764
10765 * dwarf2/read.c (struct line_header) <file_full_name,
10766 file_file_name>: Return unique_xmalloc_ptr.
10767 (line_header::file_file_name): Update.
10768 (line_header::file_full_name): Update.
10769 (dw2_get_file_names_reader): Update.
10770 (macro_start_file): Update.
10771
10772 2020-02-08 Tom Tromey <tom@tromey.com>
10773
10774 * dwarf2/read.c (struct line_header) <file_full_name,
10775 file_file_name>: Declare methods.
10776 (dw2_get_file_names_reader): Update.
10777 (file_file_name): Now a method.
10778 (file_full_name): Likewise.
10779 (macro_start_file): Update.
10780
10781 2020-02-08 Tom Tromey <tom@tromey.com>
10782
10783 * dwarf2/read.c (dwarf_always_disassemble)
10784 (show_dwarf_always_disassemble): Move to loc.c.
10785 (_initialize_dwarf2_read): Move "always-disassemble" registration
10786 to loc.c.
10787 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10788 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10789 static.
10790 (show_dwarf_always_disassemble): Move from read.c.
10791 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10792
10793 2020-02-08 Tom Tromey <tom@tromey.com>
10794
10795 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10796 (create_quick_file_names_table): Return htab_up.
10797 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10798 Update.
10799 * dwarf2/read.h (struct dwarf2_per_objfile)
10800 <quick_file_names_table>: Now htab_up.
10801
10802 2020-02-08 Tom Tromey <tom@tromey.com>
10803
10804 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10805
10806 2020-02-08 Tom Tromey <tom@tromey.com>
10807
10808 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10809 Rewrite.
10810 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10811 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10812 (abbrev_table::abbrev_table): No longer inline.
10813 (ABBREV_HASH_SIZE): Remove.
10814 (abbrev_table::m_abbrevs): Now an htab_up.
10815
10816 2020-02-08 Tom Tromey <tom@tromey.com>
10817
10818 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10819 (cutu_reader): Update.
10820 (build_type_psymtabs_1): Update.
10821 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10822 (abbrev_table::alloc_abbrev): Update.
10823 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10824 (abbrev_table::read): New static method, renamed from
10825 abbrev_table_read_table.
10826 (abbrev_table::alloc_abbrev)
10827 (abbrev_table::add_abbrev): Now private.
10828 (abbrev_table::abbrev_table): Now private.
10829 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10830
10831 2020-02-08 Tom Tromey <tom@tromey.com>
10832
10833 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10834 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10835 htab_up.
10836
10837 2020-02-08 Tom Tromey <tom@tromey.com>
10838
10839 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10840 htab_up.
10841 (lookup_dwo_unit_in_dwp): Update.
10842 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10843 on obstack.
10844
10845 2020-02-08 Tom Tromey <tom@tromey.com>
10846
10847 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10848 obstack.
10849
10850 2020-02-08 Tom Tromey <tom@tromey.com>
10851
10852 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10853 line_header_hash.
10854 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10855 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10856 Change type to htab_up.
10857
10858 2020-02-08 Tom Tromey <tom@tromey.com>
10859
10860 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10861 htab_up. Don't allocate on obstack.
10862 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10863 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10864 Change type to htab_up.
10865
10866 2020-02-08 Tom Tromey <tom@tromey.com>
10867
10868 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10869 Change type to htab_up.
10870 * dwarf2/read.c (create_signatured_type_table_from_index)
10871 (create_signatured_type_table_from_debug_names)
10872 (create_all_type_units, add_type_unit)
10873 (lookup_dwo_signatured_type, lookup_signatured_type)
10874 (process_skeletonless_type_unit): Update.
10875 (create_debug_type_hash_table, create_debug_types_hash_table):
10876 Change type of types_htab.
10877 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10878 htab_up. Don't allocate on obstack.
10879 (create_cus_hash_table): Change type of cus_htab parameter.
10880 (struct dwo_file) <cus, tus>: Now htab_up.
10881 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10882 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10883 (queue_and_load_all_dwo_tus): Update.
10884 * dwarf2/index-write.c (write_gdbindex): Update.
10885 (write_debug_names): Update.
10886
10887 2020-02-08 Tom Tromey <tom@tromey.com>
10888
10889 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10890 dwarf2/read.c. Remove "next" member. Add constructor ntad
10891 destructor.
10892 (struct dwarf2_per_objfile) <queue>: New member.
10893 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10894 dwarf2/read.h.
10895 (dwarf2_queue, dwarf2_queue_tail): Remove.
10896 (class dwarf2_queue_guard): Add parameter to constructor. Use
10897 DISABLE_COPY_AND_ASSIGN.
10898 <m_per_objfile>: New member.
10899 <~dwarf2_queue_guard>: Rewrite.
10900 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10901 Update.
10902 (~dwarf2_queue_item): New.
10903
10904 2020-02-08 Tom Tromey <tom@tromey.com>
10905
10906 * dwarf2/read.c (struct die_info) <has_children>: New member.
10907 (dw2_get_file_names_reader): Remove has_children.
10908 (dw2_get_file_names): Update.
10909 (read_cutu_die_from_dwo): Remove has_children.
10910 (cutu_reader::init_tu_and_read_dwo_dies)
10911 (cutu_reader::cutu_reader): Update.
10912 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10913 Remove has_children.
10914 (build_type_psymtabs_1, process_skeletonless_type_unit)
10915 (load_partial_comp_unit, load_full_comp_unit): Update.
10916 (create_dwo_cu_reader): Remove has_children.
10917 (create_cus_hash_table, read_die_and_children): Update.
10918 (read_full_die_1,read_full_die): Remove has_children.
10919 (read_signatured_type): Update.
10920 (class cutu_reader) <has_children>: Remove.
10921
10922 2020-02-08 Tom Tromey <tom@tromey.com>
10923
10924 * dwarf2/expr.c: Rename from dwarf2expr.c.
10925 * dwarf2/expr.h: Rename from dwarf2expr.h.
10926 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10927 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10928 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10929 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10930 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10931 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10932 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10933 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10934 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10935 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10936 * dwarf2/loc.c: Rename from dwarf2loc.c.
10937 * dwarf2/loc.h: Rename from dwarf2loc.h.
10938 * dwarf2/read.c: Rename from dwarf2read.c.
10939 * dwarf2/read.h: Rename from dwarf2read.h.
10940 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10941 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10942 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10943 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10944 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10945 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10946 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10947 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10948 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10949 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10950 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10951 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10952 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10953 Update.
10954 * Makefile.in (COMMON_SFILES): Update.
10955 (HFILES_NO_SRCDIR): Update.
10956
10957 2020-02-08 Tom Tromey <tom@tromey.com>
10958
10959 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10960 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10961
10962 2020-02-08 Tom Tromey <tom@tromey.com>
10963
10964 * dwarf2read.h (struct die_info): Don't declare.
10965
10966 2020-02-08 Tom Tromey <tom@tromey.com>
10967
10968 * dwarf2read.h (die_info_ptr): Remove typedef.
10969
10970 2020-02-08 Tom Tromey <tom@tromey.com>
10971
10972 * dwarf2read.c (read_call_site_scope)
10973 (handle_data_member_location, dwarf2_add_member_fn)
10974 (mark_common_block_symbol_computed, read_common_block)
10975 (attr_to_dynamic_prop, partial_die_info::read)
10976 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10977 (dwarf2_symbol_mark_computed, set_die_type): Update.
10978 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10979 method.
10980 (attr_form_is_block): Don't declare.
10981 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10982
10983 2020-02-08 Tom Tromey <tom@tromey.com>
10984
10985 * dwarf2read.c (dwarf2_find_base_address, )
10986 (read_call_site_scope, rust_containing_type)
10987 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10988 (handle_data_member_location, dwarf2_add_member_fn)
10989 (get_alignment, read_structure_type, process_structure_scope)
10990 (mark_common_block_symbol_computed, read_common_block)
10991 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10992 (partial_die_info::read, read_attribute_value, new_symbol)
10993 (lookup_die_type, dwarf2_get_ref_die_offset)
10994 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10995 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10996 (dwarf2_symbol_mark_computed): Update.
10997 * dwarf2/attribute.h (struct attribute) <value_as_address,
10998 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10999 methods.
11000 (value_as_address, attr_form_is_section_offset)
11001 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11002 * dwarf2/attribute.c (attribute::value_as_address)
11003 (attribute::form_is_section_offset, attribute::form_is_constant)
11004 (attribute::form_is_ref): Now methods.
11005
11006 2020-02-08 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2read.c (struct attribute, DW_STRING)
11009 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11010 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11011 (attr_form_is_block, attr_form_is_section_offset)
11012 (attr_form_is_constant, attr_form_is_ref): Move.
11013 * dwarf2/attribute.h: New file.
11014 * dwarf2/attribute.c: New file, from dwarf2read.c.
11015 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11016
11017 2020-02-08 Tom Tromey <tom@tromey.com>
11018
11019 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11020 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11021 Move.
11022 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11023 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11024 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11025 abbrev.c.
11026 * dwarf2/abbrev.h: New file.
11027 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11028 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11029
11030 2020-02-08 Tom Tromey <tom@tromey.com>
11031
11032 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11033 (dwarf2_section_size, dwarf2_get_section_info)
11034 (create_signatured_type_table_from_debug_names)
11035 (create_addrmap_from_aranges, read_debug_names_from_section)
11036 (get_gdb_index_contents_from_section, read_comp_unit_head)
11037 (error_check_comp_unit_head, read_abbrev_offset)
11038 (create_debug_type_hash_table, init_cu_die_reader)
11039 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11040 (read_comp_units_from_section, create_cus_hash_table)
11041 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11042 (create_dwp_v2_section, dwarf2_rnglists_process)
11043 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11044 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11045 (read_indirect_string_from_dwz, read_addr_index_1)
11046 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11047 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11048 (fill_in_loclist_baton): Update.
11049 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11050 get_containing_section, get_bfd_owner, get_bfd_section,
11051 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11052 (dwarf2_read_section, get_section_name, get_section_file_name)
11053 (get_containing_section, get_section_bfd_owner)
11054 (get_section_bfd_section, get_section_name, get_section_file_name)
11055 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11056 declare.
11057 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11058 (dwarf2_section_info::get_bfd_owner)
11059 (dwarf2_section_info::get_bfd_section)
11060 (dwarf2_section_info::get_name)
11061 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11062 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11063 (dwarf2_section_info::read): Now methods.
11064 * dwarf-index-write.c (class debug_names): Update.
11065
11066 2020-02-08 Tom Tromey <tom@tromey.com>
11067
11068 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11069 Move to dwarf2/section.h.
11070 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11071 (get_section_bfd_section, get_section_name)
11072 (get_section_file_name, get_section_id, get_section_flags)
11073 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11074 dwarf2/section.c.
11075 * dwarf2/section.h: New file.
11076 * dwarf2/section.c: New file, from dwarf2read.c.
11077 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11078
11079 2020-02-08 Tom Tromey <tom@tromey.com>
11080
11081 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11082 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11083 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11084 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11085 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11086 * dwarf2/leb.h: New file, from dwarf2read.c.
11087 * dwarf2/leb.c: New file, from dwarf2read.c.
11088 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11089 Remove.
11090 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11091 (COMMON_SFILES): Add dwarf2/leb.c.
11092
11093 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11094
11095 GDB 9.1 released.
11096
11097 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11098
11099 PR gdb/25190:
11100 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11101 * gdb/remote.c (remote_console_output): Update.
11102 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11103 (ui_file_puts): ...this.
11104 * gdb/ui-file.h (ui_file_puts): Add declaration.
11105 * gdb/utils.c (emit_style_escape): Update.
11106 (flush_wrap_buffer): Update.
11107 (fputs_maybe_filtered): Update.
11108 (fputs_unfiltered): Add function.
11109
11110 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11111
11112 * gdb/event-loop.c (gdb_wait_for_event): Update.
11113 * gdb/printcmd.c (printf_command): Update.
11114 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11115 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11116 (gdb_os_flush_stderr): Update.
11117 * gdb/remote.c (remote_console_output): Update.
11118 * gdb/ui-file.c (gdb_flush): Rename to...
11119 (ui_file_flush): ...this.
11120 (stderr_file::write): Update.
11121 (stderr_file::puts): Update.
11122 * gdb/ui-file.h (gdb_flush): Rename to...
11123 (ui_file_flush): ...this.
11124 * gdb/utils.c (gdb_flush): Add function.
11125 * gdb/utils.h (gdb_flush): Add declaration.
11126
11127 2020-02-07 Tom Tromey <tromey@adacore.com>
11128
11129 PR breakpoints/24915:
11130 * source.c (find_and_open_source): Do not check basenames_may_differ.
11131
11132 2020-02-07 Tom Tromey <tom@tromey.com>
11133
11134 * README: Update gdbserver documentation.
11135 * gdbserver: Move to top level.
11136 * configure.tgt (build_gdbserver): Remove.
11137 * configure.ac: Remove --enable-gdbserver.
11138 * configure: Rebuild.
11139 * Makefile.in (distclean): Don't mention gdbserver.
11140
11141 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11142
11143 * source-cache.c (source_cache::ensure): Surround
11144 get_plain_source_lines with a try/catch.
11145 (source_cache::get_line_charpos): Get rid of try/catch
11146 and only check for the return value of "ensure".
11147 * tui/tui-source.c (tui_source_window::set_contents):
11148 Simplify "nlines" calculation.
11149
11150 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11151
11152 * MAINTAINERS (Write After Approval): Add myself.
11153
11154 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11155
11156 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11157 function call.
11158
11159 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11160
11161 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11162
11163 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11164
11165 * nat/riscv-linux-tdesc.h: New file.
11166 * nat/riscv-linux-tdesc.c: New file, taking code from...
11167 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11168 ... here.
11169 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11170 NATDEPFILES.
11171
11172 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11173
11174 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11175 we don't set the fake simulator ptid to the null_ptid.
11176
11177 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11178
11179 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11180 * gdbthread.h (class thread_info) <resumed>: Likewise.
11181 * infrun.c (resume_1): Likewise.
11182 (proceed): Likewise.
11183 (infrun_thread_stop_requested): Likewise.
11184 (stop_all_threads): Likewise.
11185 (handle_inferior_event): Likewise.
11186 (restart_threads): Likewise.
11187 (finish_step_over): Likewise.
11188 (keep_going_stepped_thread): Likewise.
11189 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11190 (linux_handle_extended_wait): Likewise.
11191 * record-btrace.c (get_thread_current_frame_id): Likewise.
11192 * record-full.c (record_full_wait_1): Likewise.
11193 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11194 * target.c (target_resume): Likewise.
11195 * thread.c (set_running_thread): Likewise.
11196
11197 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11198
11199 * f-valprint.c (f77_print_array_1): Changed datatype of index
11200 variable to LONGEST from int to enable it to contain bound
11201 values correctly.
11202
11203 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11204
11205 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11206 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11207 offsets according to FLEN determined.
11208 (riscv_linux_nat_target::read_description): Determine FLEN
11209 dynamically.
11210 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11211 according to FLEN determined.
11212 (riscv_linux_nat_target::store_registers): Likewise.
11213
11214 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11215
11216 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11217 when reg->group is empty and reggroup is not.
11218
11219 2020-01-31 Tom Tromey <tromey@adacore.com>
11220
11221 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11222 Call beneath target's mourn_inferior after unpushing.
11223
11224 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11225
11226 PR tui/9765
11227 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11228 have enough lines to fill the screen, still return the lowest
11229 address we found.
11230
11231 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11232
11233 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11234 '-', '<', and '>' commands.
11235
11236 2020-01-29 Pedro Alves <palves@redhat.com>
11237 Sergio Durigan Junior <sergiodj@redhat.com>
11238
11239 * infcmd.c (construct_inferior_arguments): Assert that
11240 'argc' is greater than 0.
11241
11242 2020-01-29 Luis Machado <luis.machado@linaro.org>
11243
11244 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11245 (BRK_INSN_MASK): Define to 0xd4200000.
11246 (aarch64_program_breakpoint_here_p): New function.
11247 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11248 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11249 breakpoint.c.
11250 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11251 breakpoint.h
11252 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11253 call gdbarch_program_breakpoint_here_p.
11254 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11255 default_program_breakpoint_here_p, changed return type to bool and
11256 simplified.
11257 * breakpoint.h (program_breakpoint_here): Moved prototype to
11258 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11259 return type to bool.
11260 * gdbarch.c: Regenerate.
11261 * gdbarch.h: Regenerate.
11262 * gdbarch.sh (program_breakpoint_here_p): New method.
11263 * infrun.c (handle_signal_stop): Call
11264 gdbarch_program_breakpoint_here_p.
11265
11266 2020-01-26 Tom Tromey <tom@tromey.com>
11267
11268 * ctfread.c (struct ctf_fp_info): Reindent.
11269 (_initialize_ctfread): Remove.
11270
11271 2020-01-26 Tom Tromey <tom@tromey.com>
11272
11273 * psymtab.c (partial_map_expand_apply)
11274 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11275 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11276 (psym_print_stats, psym_expand_symtabs_for_function)
11277 (psym_map_symbol_filenames, psym_map_matching_symbols)
11278 (psym_expand_symtabs_matching)
11279 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11280 (maintenance_check_psymtabs): Use new methods.
11281 * psympriv.h (struct partial_symtab) <readin_p,
11282 get_compunit_symtab>: New methods.
11283 <readin, compunit_symtab>: Remove members.
11284 (struct standard_psymtab): New.
11285 (struct legacy_psymtab): Derive from standard_psymtab.
11286 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11287 standard_psymtab.
11288 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11289
11290 2020-01-26 Tom Tromey <tom@tromey.com>
11291
11292 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11293 read_dependencies. Add assert.
11294 * psymtab.c (partial_symtab::read_dependencies): New method.
11295 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11296 method.
11297 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11298 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11299 read_dependencies.
11300 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11301 Add assert.
11302
11303 2020-01-26 Tom Tromey <tom@tromey.com>
11304
11305 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11306 Call expand_psymtab.
11307 (xcoff_read_symtab): Call expand_psymtab.
11308 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11309 legacy_expand_psymtab.
11310 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11311 method.
11312 (struct legacy_psymtab) <expand_psymtab>: Implement.
11313 <legacy_expand_psymtab>: New member.
11314 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11315 (parse_partial_symbols): Set legacy_expand_psymtab.
11316 (psymtab_to_symtab_1): Change argument order. Call
11317 expand_psymtab.
11318 (new_psymtab): Set legacy_expand_psymtab.
11319 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11320 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11321 expand_psymtab.
11322 (dwarf2_psymtab::expand_psymtab): Rename from
11323 psymtab_to_symtab_1. Call expand_psymtab.
11324 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11325 (dbx_end_psymtab): Likewise.
11326 (dbx_psymtab_to_symtab_1): Change argument order. Call
11327 expand_psymtab.
11328 (dbx_read_symtab): Call expand_psymtab.
11329 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11330 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11331 (ctf_psymtab::read_symtab): Call expand_psymtab.
11332
11333 2020-01-26 Tom Tromey <tom@tromey.com>
11334
11335 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11336 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11337 messages.
11338 * mdebugread.c (mdebug_read_symtab): Remove prints.
11339 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11340 assert.
11341 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11342
11343 2020-01-26 Tom Tromey <tom@tromey.com>
11344
11345 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11346 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11347 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11348 legacy_symtab.
11349 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11350 * psymtab.c (psymtab_to_symtab): Call method.
11351 (dump_psymtab): Update.
11352 * psympriv.h (struct partial_symtab): Add virtual destructor.
11353 <read_symtab>: New method.
11354 (struct legacy_symtab): New.
11355 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11356 (struct pst_map) <pst>: Now a legacy_psymtab.
11357 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11358 (new_psymtab): Use legacy_psymtab.
11359 * dwarf2read.h (struct dwarf2_psymtab): New.
11360 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11361 * dwarf2read.c (dwarf2_create_include_psymtab)
11362 (dwarf2_build_include_psymtabs, create_type_unit_group)
11363 (create_partial_symtab, process_psymtab_comp_unit_reader)
11364 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11365 (set_partial_user): Use dwarf2_psymtab.
11366 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11367 (psymtab_to_symtab_1, process_full_comp_unit)
11368 (process_full_type_unit, dwarf2_ranges_read)
11369 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11370 (dwarf_decode_lines): Use dwarf2_psymtab.
11371 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11372 (add_address_entry_worker, write_one_signatured_type)
11373 (recursively_count_psymbols, recursively_write_psymbols)
11374 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11375 (write_debug_names): Likewise.
11376 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11377 <pst>: Now a legacy_psymtab.
11378 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11379 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11380 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11381 * ctfread.c (struct ctf_psymtab): New.
11382 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11383 ctf_psymtab.
11384 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11385 (create_partial_symtab): Return a ctf_psymtab.
11386 (scan_partial_symbols): Update.
11387
11388 2020-01-26 Tom Tromey <tom@tromey.com>
11389
11390 * xcoffread.c (xcoff_start_psymtab): Use new.
11391 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11392 renamed from start_psymtab_common.
11393 * psympriv.h (struct partial_symtab): Add new constructor.
11394 (start_psymtab_common): Don't declare.
11395 * mdebugread.c (parse_partial_symbols): Use new.
11396 * dwarf2read.c (create_partial_symtab): Use new.
11397 * dbxread.c (start_psymtab): Use new.
11398 * ctfread.c (create_partial_symtab): Use new.
11399
11400 2020-01-26 Tom Tromey <tom@tromey.com>
11401
11402 * xcoffread.c (xcoff_end_psymtab): Use new.
11403 * psymtab.c (start_psymtab_common): Use new.
11404 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11405 Update.
11406 * psympriv.h (struct partial_symtab): Add parameters to
11407 constructor. Don't inline.
11408 (allocate_psymtab): Don't declare.
11409 * mdebugread.c (new_psymtab): Use new.
11410 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11411 * dbxread.c (dbx_end_psymtab): Use new.
11412
11413 2020-01-26 Tom Tromey <tom@tromey.com>
11414
11415 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11416 allocate_psymtab. Update documentation.
11417 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11418 allocate_psymtab. Do not use new.
11419 (allocate_psymtab): Use new. Update.
11420
11421 2020-01-26 Tom Tromey <tom@tromey.com>
11422
11423 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11424 * psymtab.c (psym_print_stats): Update.
11425 * psympriv.h (struct partial_symtab) <readin,
11426 psymtabs_addrmap_supported, anonymous>: Now bool.
11427 * mdebugread.c (psymtab_to_symtab_1): Update.
11428 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11429 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11430 (process_full_comp_unit, process_full_type_unit): Update.
11431 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11432 * ctfread.c (psymtab_to_symtab): Update.
11433
11434 2020-01-26 Tom Tromey <tom@tromey.com>
11435
11436 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11437 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11438 * psymtab.c (psymtab_storage): Delete psymtabs.
11439 (psymtab_storage::allocate_psymtab): Use new.
11440 (psymtab_storage::discard_psymtab): Use delete.
11441 * psympriv.h (struct partial_symtab): Add constructor and
11442 initializers.
11443
11444 2020-01-26 Tom Tromey <tom@tromey.com>
11445
11446 * machoread.c: Do not include psympriv.h.
11447
11448 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11449
11450 * NEWS: Mention the new option and the set/show commands.
11451
11452 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11453
11454 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11455 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11456 (validate_exec_file): New variables, enums, functions.
11457 (exec_file_locate_attach, print_section_info): Style the filenames.
11458 (_initialize_exec): Install show_exec_file_mismatch_command and
11459 set_exec_file_mismatch_command.
11460 * gdbcore.h (validate_exec_file): Declare.
11461 * infcmd.c (attach_command): Call validate_exec_file.
11462 * remote.c ( remote_target::remote_add_inferior): Likewise.
11463
11464 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11465
11466 * frame.c (find_frame_sal): Move call to get_next_frame into more
11467 inner scope.
11468 * inline-frame.c (inilne_state) <inline_state>: Update argument
11469 types.
11470 (inilne_state) <skipped_symbol>: Rename to...
11471 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11472 (skip_inline_frames): Build vector of skipped symbols and use this
11473 to reate the inline_state.
11474 (inline_skipped_symbol): Add a comment and some assertions, fetch
11475 skipped symbol from the list.
11476
11477 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11478
11479 * buildsym.c (lte_is_less_than): Delete.
11480 (buildsym_compunit::end_symtab_with_blockvector): Create local
11481 lambda function to sort line table entries, and use
11482 std::stable_sort instead of std::sort.
11483 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11484 markers when looking for a previous line.
11485
11486 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11487
11488 * dwarf2read.c (lnp_state_machine::record_line): Include
11489 end_sequence parameter in debug print out. Record the line if we
11490 are at an end_sequence marker even if it's not the start of a
11491 statement.
11492 * symmisc.c (maintenance_print_one_line_table): Print end of
11493 sequence markers with 'END' not '0'.
11494
11495 2020-01-24 Pedro Alves <palves@redhat.com>
11496
11497 PR gdb/25410
11498 * thread.c (scoped_restore_current_thread::restore): Use
11499 switch_to_inferior_no_thread.
11500 * exec.c: Include "progspace-and-thread.h".
11501 (add_target_sections, remove_target_sections):
11502 scoped_restore_current_pspace_and_thread instead of
11503 scoped_restore_current_thread.
11504 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11505 and aspace to the inferior before calling clone_program_space.
11506 Remove stale comment.
11507
11508 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11509
11510 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11511 (arm_netbsd_nat_target::fetch_registers): ...this.
11512 (arm_nbsd_nat_target::store_registers): Rename to...
11513 (arm_netbsd_nat_target::store_registers): ...this.
11514
11515 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11516
11517 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11518 register_t.
11519
11520 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11521
11522 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11523 Update comment.
11524 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11525 Likewise.
11526 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11527 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11528 the correct replacement (iterate_over_regset_sections).
11529 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11530 Update comment.
11531
11532 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11533
11534 PR gdb/23718
11535 * gdb/python/python.c (execute_gdb_command): Call
11536 async_enable_stdin in catch block.
11537
11538 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11539
11540 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11541 SWITCH_THRU_ALL_UIS.
11542
11543 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11544
11545 PR tui/9765
11546 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11547 comment, add extra parameter, and update to store previous symbol
11548 when appropriate.
11549 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11550 add extra parameter.
11551 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11552 remove unneeded parameter, add try/catch around gdb_print_insn,
11553 rewrite to add items to asm_lines vector.
11554 (tui_find_backward_disassembly_start_address): New function.
11555 (tui_find_disassembly_address): Updated throughout.
11556 (tui_disasm_window::set_contents): Update for changes to
11557 tui_disassemble.
11558 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11559 number of lines to scroll.
11560
11561 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11562
11563 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11564 (SECT_OFF_DATA): Likewise.
11565 (SECT_OFF_RODATA): Likewise.
11566 (SECT_OFF_TEXT): Likewise.
11567 (SECT_OFF_BSS): Likewise.
11568 (struct objfile) <text_section_offset, data_section_offset>: New
11569 methods.
11570 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11571 objfile::text_section_offset.
11572 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11573 * coffread.c (coff_symtab_read): Likewise.
11574 (enter_linenos): Likewise.
11575 (process_coff_symbol): Likewise.
11576 * ctfread.c (get_objfile_text_range): Likewise.
11577 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11578 Use objfile::data_section_offset.
11579 * dwarf2-frame.c (execute_cfa_program): Use
11580 objfile::text_section_offset.
11581 (dwarf2_frame_find_fde): Likewise.
11582 * dwarf2read.c (create_addrmap_from_index): Likewise.
11583 (create_addrmap_from_aranges): Likewise.
11584 (dw2_find_pc_sect_compunit_symtab): Likewise.
11585 (process_psymtab_comp_unit_reader): Likewise.
11586 (add_partial_symbol): Likewise.
11587 (add_partial_subprogram): Likewise.
11588 (process_full_comp_unit): Likewise.
11589 (read_file_scope): Likewise.
11590 (read_func_scope): Likewise.
11591 (read_lexical_block_scope): Likewise.
11592 (read_call_site_scope): Likewise.
11593 (dwarf2_rnglists_process): Likewise.
11594 (dwarf2_ranges_process): Likewise.
11595 (dwarf2_ranges_read): Likewise.
11596 (dwarf_decode_lines_1): Likewise.
11597 (new_symbol): Likewise.
11598 (dwarf2_fetch_die_loc_sect_off): Likewise.
11599 (dwarf2_per_cu_text_offset): Likewise.
11600 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11601 * hppa-tdep.c (read_unwind_info): Likewise.
11602 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11603 * psympriv.h (struct partial_symtab): Likewise.
11604 * psymtab.c (find_pc_sect_psymtab): Likewise.
11605 * solib-svr4.c (enable_break): Likewise.
11606 * stap-probe.c (relocate_address): Use
11607 objfile::data_section_offset.
11608 * xcoffread.c (enter_line_range): Use
11609 objfile::text_section_offset.
11610 (read_xcoff_symtab): Likewise.
11611
11612 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11613
11614 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11615 declaration to narrower scopes.
11616
11617 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11618
11619 * darwin-nat.h (struct darwin_exception_msg, enum
11620 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11621 Move up.
11622 (class darwin_nat_target) <wait_1, check_new_threads,
11623 decode_exception_message, decode_message, stop_inferior,
11624 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11625 * darwin-nat.c (darwin_check_new_threads): Rename to...
11626 (darwin_nat_target::check_new_threads): ... this.
11627 (darwin_suspend_inferior_it): Remove.
11628 (darwin_decode_exception_message): Rename to...
11629 (darwin_nat_target::decode_exception_message): ... this.
11630 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11631 (darwin_decode_message): Rename to...
11632 (darwin_nat_target::decode_message): ... this.
11633 (cancel_breakpoint): Rename to...
11634 (darwin_nat_target::cancel_breakpoint): ... this.
11635 (darwin_wait): Rename to...
11636 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11637 instead of iterate_over_inferiors.
11638 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11639 (darwin_stop_inferior): Rename to...
11640 (darwin_nat_target::stop_inferior): ... this.
11641 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11642 (darwin_init_thread_list): Rename to...
11643 (darwin_nat_target::init_thread_list): ... this.
11644 (darwin_ptrace_him): Rename to...
11645 (darwin_nat_target::ptrace_him): ... this.
11646 (darwin_nat_target::create_inferior): Pass lambda function to
11647 fork_inferior.
11648 (darwin_nat_target::detach): Call stop_inferior instead of
11649 darwin_stop_inferior.
11650 * fork-inferior.h (fork_inferior): Change init_trace_fun
11651 parameter to gdb::function_view.
11652 * fork-inferior.c (fork_inferior): Likewise.
11653
11654 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11655
11656 * i386-cygwin-tdep.c (core_process_module_section): Update.
11657 * windows-nat.c (struct lm_info_windows): Add text_offset.
11658 (windows_xfer_shared_libraries): Update.
11659 * windows-tdep.c (windows_xfer_shared_library):
11660 Add text_offset_cached argument.
11661 * windows-tdep.h (windows_xfer_shared_library): Update.
11662
11663 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11664
11665 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11666
11667 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11668
11669 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11670 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11671 replace with range-based for.
11672 (gdbsim_interrupt_inferior): Remove.
11673 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11674 with a range-based for. Inline code from
11675 gdbsim_interrupt_inferior.
11676
11677 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11678
11679 * infrun.c (proceed): Fix indentation.
11680
11681 2020-01-21 Tom Tromey <tromey@adacore.com>
11682
11683 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11684 * python/python.c (python_extension_ops): Update.
11685 (gdbpy_colorize): New function.
11686 * python/lib/gdb/__init__.py (colorize): New function.
11687 * extension.h (ext_lang_colorize): Declare.
11688 * extension.c (ext_lang_colorize): New function.
11689 * extension-priv.h (struct extension_language_ops) <colorize>: New
11690 member.
11691 * cli/cli-style.c (_initialize_cli_style): Update help text.
11692
11693 2020-01-21 Luis Machado <luis.machado@linaro.org>
11694
11695 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11696 <cond>: Change type to bool.
11697 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11698 (aarch64_displaced_step_cb): Likewise.
11699 (aarch64_displaced_step_tb): Likewise.
11700
11701 2020-01-21 Luis Machado <luis.machado@linaro.org>
11702
11703 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11704 output.
11705
11706 2020-01-21 Luis Machado <luis.machado@linaro.org>
11707
11708 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11709 <pc_adjust>: Adjust the documentation.
11710 (aarch64_displaced_step_fixup): Check if PC really moved before
11711 adjusting it.
11712
11713 2020-01-19 Tom Tromey <tom@tromey.com>
11714
11715 * disasm.c (~gdb_disassembler): New destructor.
11716 (gdb_buffered_insn_length): Call disassemble_free_target.
11717 * disasm.h (class gdb_disassembler): Declare destructor. Use
11718 DISABLE_COPY_AND_ASSIGN.
11719
11720 2020-01-19 Tom Tromey <tom@tromey.com>
11721
11722 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11723 (die_reader_func_ftype): Remove.
11724 (cutu_reader): New class.
11725 (dw2_get_file_names_reader): Remove "data" parameter.
11726 (dw2_get_file_names): Use cutu_reader.
11727 (create_debug_type_hash_table): Update.
11728 (read_cutu_die_from_dwo): Update comment.
11729 (lookup_dwo_unit): Add dwo_name parameter.
11730 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11731 die_reader_func_ftype and data parameters.
11732 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11733 Remove die_reader_func_ftype and data parameters.
11734 (~cutu_reader): New; from init_cutu_and_read_dies.
11735 (cutu_reader::cutu_reader): Rename from
11736 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11737 and data parameters.
11738 (init_cutu_and_read_dies_simple): Remove.
11739 (struct process_psymtab_comp_unit_data): Remove.
11740 (process_psymtab_comp_unit_reader): Remove data parameter; add
11741 want_partial_unit and pretend_language parameters.
11742 (process_psymtab_comp_unit): Use cutu_reader.
11743 (build_type_psymtabs_reader): Remove data parameter.
11744 (build_type_psymtabs_1): Use cutu_reader.
11745 (process_skeletonless_type_unit): Likewise.
11746 (load_partial_comp_unit_reader): Remove.
11747 (load_partial_comp_unit): Use cutu_reader.
11748 (load_full_comp_unit_reader): Remove.
11749 (load_full_comp_unit): Use cutu_reader.
11750 (struct create_dwo_cu_data): Remove.
11751 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11752 dwo_unit parameters.
11753 (create_cus_hash_table): Use cutu_reader.
11754 (struct dwarf2_read_addr_index_data): Remove.
11755 (dwarf2_read_addr_index_reader): Remove.
11756 (dwarf2_read_addr_index): Use cutu_reader.
11757 (read_signatured_type_reader): Remove.
11758 (read_signatured_type): Use cutu_reader.
11759
11760 2020-01-19 Tom Tromey <tom@tromey.com>
11761
11762 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11763 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11764 (tui_wrefresh): Declare.
11765 * tui/tui-wingeneral.c (suppress_output): New global.
11766 (tui_suppress_output, ~tui_suppress_output): New constructor and
11767 destructor.
11768 (tui_wrefresh): New function.
11769 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11770 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11771 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11772 method.
11773 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11774 tui_wrefresh.
11775 (tui_data_window::no_refresh): New method.
11776 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11777 (tui_reg_command): Use tui_suppress_output
11778 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11779 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11780 method.
11781 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11782
11783 2020-01-19 Tom Tromey <tom@tromey.com>
11784
11785 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11786 Handle case where symtab is null.
11787
11788 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11789
11790 * linux-fork.c (one_fork_p): Simplify.
11791
11792 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11793
11794 * top.c (struct qt_args): Remove.
11795 (kill_or_detach): Change return type to void, replace `void *`
11796 parameter with a proper one.
11797 (print_inferior_quit_action): Likewise.
11798 (quit_confirm): Use range-based for loop to iterate over inferiors.
11799 (quit_force): Likewise.
11800
11801 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11802
11803 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11804 `void *` parameter with proper parameters.
11805 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11806 (print_one_inferior): Change return type to void, replace `void *`
11807 parameter with proper parameters.
11808 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11809 inferiors.
11810 (get_other_inferior): Remove.
11811 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11812 inferiors.
11813
11814 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11815
11816 * mi/mi-interp.c (report_initial_inferior): Remove.
11817 (mi_interp::init): Use range-based for to iterate over inferiors.
11818
11819 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11820
11821 * python/py-inferior.c (build_inferior_list): Remove.
11822 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11823
11824 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11825
11826 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11827 (btrace_stitch_trace): Likewise.
11828 * charset.c (intermediate_encoding): Likewise (vaild).
11829 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11830 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11831 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11832
11833 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11834
11835 * windows-tdep.c (windows_get_tlb_type):
11836 Add rtl_user_process_parameters type.
11837
11838 2020-01-16 Pedro Alves <palves@redhat.com>
11839 Norbert Lange <nolange79@gmail.com>
11840
11841 PR build/24805
11842 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11843 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11844 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11845 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11846 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11847 (ps_plog): Redeclare exported functions with default visibility.
11848
11849 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11850
11851 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11852 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11853
11854 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11855
11856 * infcmd.c (post_create_inferior): Use get_thread_regcache
11857 instead of get_current_regcache.
11858
11859 2020-01-14 Tom Tromey <tom@tromey.com>
11860
11861 PR symtab/12535:
11862 * python/python.c (gdbpy_decode_line): Treat empty string the same
11863 as no argument.
11864
11865 2020-01-14 Tom Tromey <tom@tromey.com>
11866
11867 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11868
11869 2020-01-14 Tom Tromey <tom@tromey.com>
11870
11871 * nat/linux-btrace.c: Don't include <config.h>.
11872 * nat/linux-ptrace.c: Don't include <config.h>.
11873 * nat/x86-linux-dregs.c: Don't include <config.h>.
11874
11875 2020-01-14 Tom Tromey <tom@tromey.com>
11876
11877 * configure: Rebuild.
11878 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11879
11880 2020-01-14 Tom Tromey <tom@tromey.com>
11881
11882 * nat/x86-linux-dregs.c: Include configh.h.
11883 * nat/linux-ptrace.c: Include configh.h.
11884 * nat/linux-btrace.c: Include configh.h.
11885 * defs.h: Include config.h, bfd.h.
11886 * configure.ac: Don't source common.host.
11887 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11888 * configure: Rebuild.
11889 * acinclude.m4: Update path.
11890 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11891 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11892 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11893 (CLIBS): Add LIBSUPPORT.
11894 (CDEPS): Likewise.
11895 (COMMON_SFILES): Remove gdbsupport files.
11896 (HFILES_NO_SRCDIR): Likewise.
11897 (stamp-version): Update path to create-version.sh.
11898 (ALLDEPFILES): Remove gdbsupport files.
11899
11900 2020-01-14 Tom Tromey <tom@tromey.com>
11901
11902 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11903 USE_WIN32API when needed.
11904 * configure.ac (USE_WIN32API): Don't define.
11905 (WIN32LIBS): Use WIN32APILIBS.
11906 * configure: Rebuild.
11907
11908 2020-01-14 Tom Tromey <tom@tromey.com>
11909
11910 * configure: Rebuild.
11911 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11912
11913 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11914
11915 * skip.c (skip_function_command): Make skip w/o arguments use the
11916 name of the inlined function if pc is inside any inlined function.
11917
11918 2020-01-14 Luis Machado <luis.machado@linaro.org>
11919
11920 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11921 * infrun.c (resume_1): Likewise.
11922 (handle_inferior_event): Remove stale comment.
11923 * linux-nat.c (linux_nat_target::resume): Update comments.
11924 (save_stop_reason): Likewise.
11925 (linux_nat_filter_event): Likewise.
11926 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11927
11928 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11929
11930 * elfread.c (record_minimal_symbol): Set section index to 0 for
11931 non-allocatable sections.
11932
11933
11934 2020-01-13 Ali Tamur <tamur@google.com>
11935
11936 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11937 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11938 to gdb::optional. Update comments.
11939 (dwo_file): Update comments.
11940 (read_attribute): Update API to take an additional out parameter,
11941 need_reprocess. This is used to mark attributes that need other
11942 attributes (e.g. str_offsets_base) for correct computation which may not
11943 have been read yet.
11944 (read_attribute_reprocess): New function declaration.
11945 (read_addr_index): Likewise.
11946 (read_dwo_str_index): Likewise.
11947 (read_stub_str_index): Likewise.
11948 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11949 (lookup_addr_base): New function definition.
11950 (lookup_ranges_base): Likewise.
11951 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11952 lookup_ranges_base.
11953 (init_cutu_and_read_dies): Update comments.
11954 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11955 unit. This is used to inherit parent's str_offsets_base and addr_base.
11956 Update comments.
11957 (init_cutu_and_read_dies_simple): Reflect API changes.
11958 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11959 (create_cus_hash_table): Change API to take parent compile unit.
11960 Reflect API changes.
11961 (open_and_init_dwo_file): Reflect API changes.
11962 (dwarf2_get_pc_bounds): Update comments.
11963 (dwarf2_record_block_ranges): Likewise.
11964 (read_full_die_1): Change implementation to reprocess attributes that
11965 need str_offsets_base and addr_base.
11966 (partial_die_info::read): Likewise.
11967 (read_attribute_reprocess): New function definition.
11968 (read_attribute_value): Change API to take an additional out parameter,
11969 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11970 when a non-dwo compile unit has index based attributes.
11971 (read_attribute): Reflect API changes.
11972 (read_addr_index_1): Reflect API changes. Update comments.
11973 (dwarf2_read_addr_index_data): Reflect API changes.
11974 (dwarf2_read_addr_index): Likewise.
11975 (read_str_index): Change API and implementation. This becomes a helper
11976 to be used by the new string index related methods. Update error
11977 message and comments.
11978 (read_dwo_str_index): New function definition.
11979 (read_stub_str_index): Likewise.
11980 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11981 * symfile.h (dwarf2_debug_sections): Likewise.
11982 * xcoffread.c (dwarf2_debug_sections): Likewise.
11983
11984 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11985
11986 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11987 core_reg_sect type to gdb_byte *.
11988 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11989 * cris-tdep.c (fetch_core_registers): Likewise.
11990 * corelow.c (core_target::get_core_register_section): Change
11991 type of `contents` to gdb::byte_vector.
11992
11993 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11994
11995 * tui/tui-wingeneral.c (box_win): Position the title in the center
11996 of the border.
11997
11998 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11999
12000 * corelow.c (core_target::get_core_register_section): Use
12001 std::vector instead of alloca.
12002
12003 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12004
12005 * warning.m4: Add -Wmissing-declarations to build_warnings.
12006 * configure: Re-generate.
12007
12008 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12009
12010 * python/python.c (init__gdb_module): Add declaration.
12011
12012 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12013
12014 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12015 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12016 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12017 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12018 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12019 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12020 * ada-exp.y (_initialize_ada_exp): Add declaration.
12021 * ada-lang.c (_initialize_ada_language): Add declaration.
12022 * ada-tasks.c (_initialize_tasks): Add declaration.
12023 * agent.c (_initialize_agent): Add declaration.
12024 * aix-thread.c (_initialize_aix_thread): Add declaration.
12025 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12026 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12027 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12028 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12029 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12030 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12031 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12032 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12033 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12034 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12035 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12036 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12037 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12038 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12039 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12040 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12041 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12042 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12043 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12044 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12045 * annotate.c (_initialize_annotate): Add declaration.
12046 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12047 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12048 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12049 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12050 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12051 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12052 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12053 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12054 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12055 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12056 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12057 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12058 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12059 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12060 * auto-load.c (_initialize_auto_load): Add declaration.
12061 * auxv.c (_initialize_auxv): Add declaration.
12062 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12063 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12064 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12065 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12066 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12067 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12068 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12069 * breakpoint.c (_initialize_breakpoint): Add declaration.
12070 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12071 * btrace.c (_initialize_btrace): Add declaration.
12072 * charset.c (_initialize_charset): Add declaration.
12073 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12074 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12075 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12076 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12077 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12078 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12079 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12080 * coffread.c (_initialize_coffread): Add declaration.
12081 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12082 * compile/compile.c (_initialize_compile): Add declaration.
12083 * complaints.c (_initialize_complaints): Add declaration.
12084 * completer.c (_initialize_completer): Add declaration.
12085 * copying.c (_initialize_copying): Add declaration.
12086 * corefile.c (_initialize_core): Add declaration.
12087 * corelow.c (_initialize_corelow): Add declaration.
12088 * cp-abi.c (_initialize_cp_abi): Add declaration.
12089 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12090 * cp-support.c (_initialize_cp_support): Add declaration.
12091 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12092 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12093 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12094 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12095 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12096 * ctfread.c (_initialize_ctfread): Add declaration.
12097 * d-lang.c (_initialize_d_language): Add declaration.
12098 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12099 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12100 * dbxread.c (_initialize_dbxread): Add declaration.
12101 * dcache.c (_initialize_dcache): Add declaration.
12102 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12103 * disasm.c (_initialize_disasm): Add declaration.
12104 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12105 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12106 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12107 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12108 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12109 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12110 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12111 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12112 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12113 * elfread.c (_initialize_elfread): Add declaration.
12114 * exec.c (_initialize_exec): Add declaration.
12115 * extension.c (_initialize_extension): Add declaration.
12116 * f-lang.c (_initialize_f_language): Add declaration.
12117 * f-valprint.c (_initialize_f_valprint): Add declaration.
12118 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12119 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12120 * filesystem.c (_initialize_filesystem): Add declaration.
12121 * findcmd.c (_initialize_mem_search): Add declaration.
12122 * findvar.c (_initialize_findvar): Add declaration.
12123 * fork-child.c (_initialize_fork_child): Add declaration.
12124 * frame-base.c (_initialize_frame_base): Add declaration.
12125 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12126 * frame.c (_initialize_frame): Add declaration.
12127 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12128 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12129 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12130 * gcore.c (_initialize_gcore): Add declaration.
12131 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12132 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12133 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12134 * gdbarch.c (_initialize_gdbarch): Add declaration.
12135 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12136 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12137 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12138 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12139 * go-lang.c (_initialize_go_language): Add declaration.
12140 * go32-nat.c (_initialize_go32_nat): Add declaration.
12141 * guile/guile.c (_initialize_guile): Add declaration.
12142 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12143 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12144 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12145 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12146 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12147 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12148 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12149 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12150 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12151 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12152 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12153 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12154 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12155 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12156 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12157 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12158 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12159 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12160 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12161 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12162 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12163 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12164 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12165 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12166 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12167 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12168 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12169 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12170 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12171 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12172 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12173 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12174 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12175 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12176 * infcall.c (_initialize_infcall): Add declaration.
12177 * infcmd.c (_initialize_infcmd): Add declaration.
12178 * inflow.c (_initialize_inflow): Add declaration.
12179 * infrun.c (_initialize_infrun): Add declaration.
12180 * interps.c (_initialize_interpreter): Add declaration.
12181 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12182 * jit.c (_initialize_jit): Add declaration.
12183 * language.c (_initialize_language): Add declaration.
12184 * linux-fork.c (_initialize_linux_fork): Add declaration.
12185 * linux-nat.c (_initialize_linux_nat): Add declaration.
12186 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12187 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12188 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12189 * m2-lang.c (_initialize_m2_language): Add declaration.
12190 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12191 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12192 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12193 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12194 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12195 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12196 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12197 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12198 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12199 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12200 * machoread.c (_initialize_machoread): Add declaration.
12201 * macrocmd.c (_initialize_macrocmd): Add declaration.
12202 * macroscope.c (_initialize_macroscope): Add declaration.
12203 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12204 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12205 * maint.c (_initialize_maint_cmds): Add declaration.
12206 * mdebugread.c (_initialize_mdebugread): Add declaration.
12207 * memattr.c (_initialize_mem): Add declaration.
12208 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12209 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12210 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12211 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12212 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12213 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12214 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12215 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12216 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12217 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12218 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12219 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12220 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12221 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12222 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12223 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12224 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12225 * mipsread.c (_initialize_mipsread): Add declaration.
12226 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12227 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12228 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12229 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12230 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12231 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12232 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12233 * nto-procfs.c (_initialize_procfs): Add declaration.
12234 * objc-lang.c (_initialize_objc_language): Add declaration.
12235 * observable.c (_initialize_observer): Add declaration.
12236 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12237 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12238 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12239 * osabi.c (_initialize_gdb_osabi): Add declaration.
12240 * osdata.c (_initialize_osdata): Add declaration.
12241 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12242 * parse.c (_initialize_parse): Add declaration.
12243 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12244 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12245 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12246 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12247 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12248 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12249 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12250 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12251 * printcmd.c (_initialize_printcmd): Add declaration.
12252 * probe.c (_initialize_probe): Add declaration.
12253 * proc-api.c (_initialize_proc_api): Add declaration.
12254 * proc-events.c (_initialize_proc_events): Add declaration.
12255 * proc-service.c (_initialize_proc_service): Add declaration.
12256 * procfs.c (_initialize_procfs): Add declaration.
12257 * producer.c (_initialize_producer): Add declaration.
12258 * psymtab.c (_initialize_psymtab): Add declaration.
12259 * python/python.c (_initialize_python): Add declaration.
12260 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12261 * record-btrace.c (_initialize_record_btrace): Add declaration.
12262 * record-full.c (_initialize_record_full): Add declaration.
12263 * record.c (_initialize_record): Add declaration.
12264 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12265 * regcache.c (_initialize_regcache): Add declaration.
12266 * reggroups.c (_initialize_reggroup): Add declaration.
12267 * remote-notif.c (_initialize_notif): Add declaration.
12268 * remote-sim.c (_initialize_remote_sim): Add declaration.
12269 * remote.c (_initialize_remote): Add declaration.
12270 * reverse.c (_initialize_reverse): Add declaration.
12271 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12272 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12273 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12274 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12275 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12276 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12277 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12278 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12279 Add declaration.
12280 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12281 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12282 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12283 * rust-exp.y (_initialize_rust_exp): Add declaration.
12284 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12285 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12286 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12287 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12288 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12289 * score-tdep.c (_initialize_score_tdep): Add declaration.
12290 * ser-go32.c (_initialize_ser_dos): Add declaration.
12291 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12292 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12293 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12294 * ser-uds.c (_initialize_ser_socket): Add declaration.
12295 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12296 * serial.c (_initialize_serial): Add declaration.
12297 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12298 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12299 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12300 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12301 * skip.c (_initialize_step_skip): Add declaration.
12302 * sol-thread.c (_initialize_sol_thread): Add declaration.
12303 * solib-aix.c (_initialize_solib_aix): Add declaration.
12304 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12305 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12306 * solib-frv.c (_initialize_frv_solib): Add declaration.
12307 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12308 * solib-target.c (_initialize_solib_target): Add declaration.
12309 * solib.c (_initialize_solib): Add declaration.
12310 * source-cache.c (_initialize_source_cache): Add declaration.
12311 * source.c (_initialize_source): Add declaration.
12312 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12313 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12314 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12315 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12316 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12317 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12318 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12319 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12320 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12321 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12322 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12323 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12324 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12325 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12326 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12327 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12328 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12329 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12330 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12331 * stabsread.c (_initialize_stabsread): Add declaration.
12332 * stack.c (_initialize_stack): Add declaration.
12333 * stap-probe.c (_initialize_stap_probe): Add declaration.
12334 * std-regs.c (_initialize_frame_reg): Add declaration.
12335 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12336 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12337 * symfile.c (_initialize_symfile): Add declaration.
12338 * symmisc.c (_initialize_symmisc): Add declaration.
12339 * symtab.c (_initialize_symtab): Add declaration.
12340 * target.c (_initialize_target): Add declaration.
12341 * target-connection.c (_initialize_target_connection): Add
12342 declaration.
12343 * target-dcache.c (_initialize_target_dcache): Add declaration.
12344 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12345 * thread.c (_initialize_thread): Add declaration.
12346 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12347 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12348 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12349 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12350 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12351 * tracectf.c (_initialize_ctf): Add declaration.
12352 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12353 * tracefile.c (_initialize_tracefile): Add declaration.
12354 * tracepoint.c (_initialize_tracepoint): Add declaration.
12355 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12356 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12357 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12358 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12359 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12360 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12361 * tui/tui.c (_initialize_tui): Add declaration.
12362 * typeprint.c (_initialize_typeprint): Add declaration.
12363 * ui-style.c (_initialize_ui_style): Add declaration.
12364 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12365 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12366 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12367 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12368 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12369 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12370 * unittests/filtered_iterator-selftests.c
12371 (_initialize_filtered_iterator_selftests): Add declaration.
12372 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12373 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12374 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12375 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12376 * unittests/main-thread-selftests.c
12377 (_initialize_main_thread_selftests): Add declaration.
12378 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12379 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12380 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12381 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12382 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12383 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12384 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12385 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12386 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12387 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12388 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12389 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12390 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12391 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12392 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12393 declaration.
12394 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12395 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12396 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12397 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12398 * user-regs.c (_initialize_user_regs): Add declaration.
12399 * utils.c (_initialize_utils): Add declaration.
12400 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12401 * valops.c (_initialize_valops): Add declaration.
12402 * valprint.c (_initialize_valprint): Add declaration.
12403 * value.c (_initialize_values): Add declaration.
12404 * varobj.c (_initialize_varobj): Add declaration.
12405 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12406 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12407 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12408 * windows-nat.c (_initialize_windows_nat): Add declaration.
12409 (_initialize_check_for_gdb_ini): Add declaration.
12410 (_initialize_loadable): Add declaration.
12411 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12412 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12413 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12414 * xcoffread.c (_initialize_xcoffread): Add declaration.
12415 * xml-support.c (_initialize_xml_support): Add declaration.
12416 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12417 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12418 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12419 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12420
12421 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12422
12423 * regformats/regdat.sh: Generate declaration for init function.
12424
12425 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12428 up.
12429 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12430 close_one_inferior>: New methods.
12431 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12432 pass down target to find_inferior_pid.
12433 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12434 Pass down target to find_inferior_ptid.
12435 (gdbsim_target::create_inferior): Pass down target to
12436 add_thread_silent.
12437 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12438 target down to find_inferior_ptid and switch_to_thread.
12439 (gdbsim_target::close): Update to call close_one_inferior.
12440 (struct resume_data): Remove.
12441 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12442 directly, rather than through a void pointer.
12443 (gdbsim_target::resume): Update to call resume_one_inferior.
12444
12445 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12446
12447 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12448
12449 2020-01-12 Pedro Alves <palves@redhat.com>
12450
12451 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12452 directly for the current inferior instead of
12453 discard_all_inferiors.
12454 (discard_all_inferiors): Delete.
12455
12456 2020-01-11 Tom Tromey <tom@tromey.com>
12457
12458 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12459 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12460 deprecated_safe_get_selected_frame.
12461
12462 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12463
12464 * inferior.c (print_inferior): Switch inferior before printing it.
12465
12466 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12467 Pedro Alves <palves@redhat.com>
12468
12469 * progspace-and-thread.c (switch_to_program_space_and_thread):
12470 Assert there's an inferior for PSPACE. Use
12471 switch_to_inferior_no_thread to switch the inferior too.
12472 * progspace.c (program_space::~program_space): Call
12473 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12474 (program_space::free_all_objfiles): Don't call clear_symtab_users
12475 here.
12476 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12477
12478 2020-01-10 Pedro Alves <palves@redhat.com>
12479
12480 * NEWS: Mention multi-target debugging, "info connections", and
12481 "add-inferior -no-connection".
12482
12483 2020-01-10 Pedro Alves <palves@redhat.com>
12484
12485 * infrun.c: Include "target-connection.h".
12486 (check_multi_target_resumption): New.
12487 (proceed): Call it.
12488 * target-connection.c (make_target_connection_string): Make
12489 extern.
12490 * target-connection.h (make_target_connection_string): Declare.
12491
12492 2020-01-10 Pedro Alves <palves@redhat.com>
12493
12494 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12495 * inferior.c (uiout_field_connection): New function.
12496 (print_inferior): Add new "connection-id" column.
12497 (add_inferior_command): Show connection number/string of added
12498 inferior.
12499 * process-stratum-target.h
12500 (process_stratum_target::connection_string): New virtual method.
12501 (process_stratum_target::connection_number): New field.
12502 * remote.c (remote_target::connection_string): New override.
12503 * target-connection.c: New file.
12504 * target-connection.h: New file.
12505 * target.c (decref_target): Remove process_stratum targets from
12506 the connection list.
12507 (target_stack::push): Add process_stratum targets to the
12508 connection list.
12509
12510 2020-01-10 Pedro Alves <palves@redhat.com>
12511
12512 Revert:
12513 2016-04-12 Pedro Alves <palves@redhat.com>
12514 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12515 Remove references to name.
12516 * serial.h (struct serial) <name>: Delete.
12517
12518 2020-01-10 Pedro Alves <palves@redhat.com>
12519
12520 * gdbarch-selftests.c (register_to_value_test): Remove "target
12521 already pushed" check.
12522
12523 2020-01-10 Pedro Alves <palves@redhat.com>
12524 John Baldwin <jhb@FreeBSD.org>
12525
12526 * aarch64-linux-nat.c
12527 (aarch64_linux_nat_target::thread_architecture): Adjust.
12528 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12529 (task_command_1): Likewise.
12530 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12531 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12532 (aix_thread_target::store_registers)
12533 (aix_thread_target::thread_alive): Adjust.
12534 * amd64-fbsd-tdep.c: Include "inferior.h".
12535 (amd64fbsd_get_thread_local_address): Pass down target.
12536 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12537 thread's gdbarch instead of target_gdbarch.
12538 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12539 get_last_target_status.
12540 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12541 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12542 inferiors.
12543 (update_inserted_breakpoint_locations): Skip if inferiors with no
12544 execution.
12545 (update_global_location_list): When handling moribund locations,
12546 find representative inferior for location's pspace, and use thread
12547 count of its process_stratum target.
12548 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12549 * bsd-uthread.c (bsd_uthread_target::wait): Use
12550 as_process_stratum_target and adjust thread_change_ptid and
12551 add_thread calls.
12552 (bsd_uthread_target::update_thread_list): Use
12553 as_process_stratum_target and adjust find_thread_ptid,
12554 thread_change_ptid and add_thread calls.
12555 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12556 find_thread_ptid call.
12557 * corelow.c (add_to_thread_list): Adjust add_thread call.
12558 (core_target_open): Adjust add_thread_silent and thread_count
12559 calls.
12560 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12561 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12562 * event-top.c (async_disconnect): Pop targets from all inferiors.
12563 * exec.c (add_target_sections): Push exec target on all inferiors
12564 sharing the program space.
12565 (remove_target_sections): Remove the exec target from all
12566 inferiors sharing the program space.
12567 (exec_on_vfork): New.
12568 * exec.h (exec_on_vfork): Declare.
12569 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12570 Pass it down.
12571 (fbsd_nat_target::update_thread_list): Adjust.
12572 (fbsd_nat_target::resume): Adjust.
12573 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12574 down.
12575 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12576 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12577 get_thread_arch_regcache call.
12578 * fork-child.c (gdb_startup_inferior): Pass target down to
12579 startup_inferior and set_executing.
12580 * gdbthread.h (struct process_stratum_target): Forward declare.
12581 (add_thread, add_thread_silent, add_thread_with_info)
12582 (in_thread_list): Add process_stratum_target parameter.
12583 (find_thread_ptid(inferior*, ptid_t)): New overload.
12584 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12585 parameter.
12586 (all_threads()): Delete overload.
12587 (all_threads, all_non_exited_threads): Add process_stratum_target
12588 parameter.
12589 (all_threads_safe): Use brace initialization.
12590 (thread_count): Add process_stratum_target parameter.
12591 (set_resumed, set_running, set_stop_requested, set_executing)
12592 (threads_are_executing, finish_thread_state): Add
12593 process_stratum_target parameter.
12594 (switch_to_thread): Use is_current_thread.
12595 * i386-fbsd-tdep.c: Include "inferior.h".
12596 (i386fbsd_get_thread_local_address): Pass down target.
12597 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12598 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12599 have_inferiors check.
12600 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12601 (inf_ptrace_target::attach): Adjust.
12602 * infcall.c (run_inferior_call): Adjust.
12603 * infcmd.c (run_command_1): Pass target to
12604 scoped_finish_thread_state.
12605 (proceed_thread_callback): Skip inferiors with no execution.
12606 (continue_command): Rename 'all_threads' local to avoid hiding
12607 'all_threads' function. Adjust get_last_target_status call.
12608 (prepare_one_step): Adjust set_running call.
12609 (signal_command): Use user_visible_resume_target. Compare thread
12610 pointers instead of inferior_ptid.
12611 (info_program_command): Adjust to pass down target.
12612 (attach_command): Mark target's 'thread_executing' flag.
12613 (stop_current_target_threads_ns): New, factored out from ...
12614 (interrupt_target_1): ... this. Switch inferior before making
12615 target calls.
12616 * inferior-iter.h
12617 (struct all_inferiors_iterator, struct all_inferiors_range)
12618 (struct all_inferiors_safe_range)
12619 (struct all_non_exited_inferiors_range): Filter on
12620 process_stratum_target too. Remove explicit.
12621 * inferior.c (inferior::inferior): Push dummy target on target
12622 stack.
12623 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12624 Add process_stratum_target parameter, and pass it down.
12625 (have_live_inferiors): Adjust.
12626 (switch_to_inferior_and_push_target): New.
12627 (add_inferior_command, clone_inferior_command): Handle
12628 "-no-connection" parameter. Use
12629 switch_to_inferior_and_push_target.
12630 (_initialize_inferior): Mention "-no-connection" option in
12631 the help of "add-inferior" and "clone-inferior" commands.
12632 * inferior.h: Include "process-stratum-target.h".
12633 (interrupt_target_1): Use bool.
12634 (struct inferior) <push_target, unpush_target, target_is_pushed,
12635 find_target_beneath, top_target, process_target, target_at,
12636 m_stack>: New.
12637 (discard_all_inferiors): Delete.
12638 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12639 (all_inferiors, all_non_exited_inferiors): Add
12640 process_stratum_target parameter.
12641 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12642 (target_last_proc_target): New global.
12643 (follow_fork_inferior): Push target on new inferior. Pass target
12644 to add_thread_silent. Call exec_on_vfork. Handle target's
12645 reference count.
12646 (follow_fork): Adjust get_last_target_status call. Also consider
12647 target.
12648 (follow_exec): Push target on new inferior.
12649 (struct execution_control_state) <target>: New field.
12650 (user_visible_resume_target): New.
12651 (do_target_resume): Call target_async.
12652 (resume_1): Set target's threads_executing flag. Consider resume
12653 target.
12654 (commit_resume_all_targets): New.
12655 (proceed): Also consider resume target. Skip threads of inferiors
12656 with no execution. Commit resumtion in all targets.
12657 (start_remote): Pass current inferior to wait_for_inferior.
12658 (infrun_thread_stop_requested): Consider target as well. Pass
12659 thread_info pointer to clear_inline_frame_state instead of ptid.
12660 (infrun_thread_thread_exit): Consider target as well.
12661 (random_pending_event_thread): New inferior parameter. Use it.
12662 (do_target_wait): Rename to ...
12663 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12664 down.
12665 (threads_are_resumed_pending_p, do_target_wait): New.
12666 (prepare_for_detach): Adjust calls.
12667 (wait_for_inferior): New inferior parameter. Handle it. Use
12668 do_target_wait_1 instead of do_target_wait.
12669 (fetch_inferior_event): Adjust. Switch to representative
12670 inferior. Pass target down.
12671 (set_last_target_status): Add process_stratum_target parameter.
12672 Save target in global.
12673 (get_last_target_status): Add process_stratum_target parameter and
12674 handle it.
12675 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12676 (context_switch): Check inferior_ptid == null_ptid before calling
12677 inferior_thread().
12678 (get_inferior_stop_soon): Pass down target.
12679 (wait_one): Rename to ...
12680 (poll_one_curr_target): ... this.
12681 (struct wait_one_event): New.
12682 (wait_one): New.
12683 (stop_all_threads): Adjust.
12684 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12685 event's target.
12686 (switch_back_to_stepped_thread): Also consider target.
12687 (print_stop_event): Update.
12688 (normal_stop): Update. Also consider the resume target.
12689 * infrun.h (wait_for_inferior): Remove declaration.
12690 (user_visible_resume_target): New declaration.
12691 (get_last_target_status, set_last_target_status): New
12692 process_stratum_target parameter.
12693 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12694 process_stratum_target parameter, and use it.
12695 (clear_inline_frame_state (thread_info*)): New.
12696 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12697 process_stratum_target parameter.
12698 (clear_inline_frame_state (thread_info*)): Declare.
12699 * linux-fork.c (delete_checkpoint_command): Pass target down to
12700 find_thread_ptid.
12701 (checkpoint_command): Adjust.
12702 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12703 instead of just tweaking inferior_ptid.
12704 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12705 (exit_lwp): Pass target down to find_thread_ptid.
12706 (attach_proc_task_lwp_callback): Pass target down to
12707 add_thread/set_running/set_executing.
12708 (linux_nat_target::attach): Pass target down to
12709 thread_change_ptid.
12710 (get_detach_signal): Pass target down to find_thread_ptid.
12711 Consider last target status's target.
12712 (linux_resume_one_lwp_throw, resume_lwp)
12713 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12714 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12715 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12716 (linux_nat_target::async_wait_fd): New.
12717 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12718 target down.
12719 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12720 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12721 * linux-thread-db.c (struct thread_db_info::process_target): New
12722 field.
12723 (add_thread_db_info): Save target.
12724 (get_thread_db_info): New process_stratum_target parameter. Also
12725 match target.
12726 (delete_thread_db_info): New process_stratum_target parameter.
12727 Also match target.
12728 (thread_from_lwp): Adjust to pass down target.
12729 (thread_db_notice_clone): Pass down target.
12730 (check_thread_db_callback): Pass down target.
12731 (try_thread_db_load_1): Always push the thread_db target.
12732 (try_thread_db_load, record_thread): Pass target down.
12733 (thread_db_target::detach): Pass target down. Always unpush the
12734 thread_db target.
12735 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12736 target down. Always unpush the thread_db target.
12737 (find_new_threads_callback, thread_db_find_new_threads_2)
12738 (thread_db_target::update_thread_list): Pass target down.
12739 (thread_db_target::pid_to_str): Pass current inferior down.
12740 (thread_db_target::get_thread_local_address): Pass target down.
12741 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12742 target down.
12743 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12744 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12745 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12746 (procfs_init_inferior): Rename to ...
12747 (procfs_target::procfs_init_inferior): ... this and adjust.
12748 (procfs_target::create_inferior, procfs_notice_thread)
12749 (procfs_do_thread_registers): Adjust.
12750 * ppc-fbsd-tdep.c: Include "inferior.h".
12751 (ppcfbsd_get_thread_local_address): Pass down target.
12752 * proc-service.c (ps_xfer_memory): Switch current inferior and
12753 program space as well.
12754 (get_ps_regcache): Pass target down.
12755 * process-stratum-target.c
12756 (process_stratum_target::thread_address_space)
12757 (process_stratum_target::thread_architecture): Pass target down.
12758 * process-stratum-target.h
12759 (process_stratum_target::threads_executing): New field.
12760 (as_process_stratum_target): New.
12761 * ravenscar-thread.c
12762 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12763 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12764 down.
12765 * record-btrace.c (record_btrace_target::info_record): Adjust.
12766 (record_btrace_target::record_method)
12767 (record_btrace_target::record_is_replaying)
12768 (record_btrace_target::fetch_registers)
12769 (get_thread_current_frame_id, record_btrace_target::resume)
12770 (record_btrace_target::wait, record_btrace_target::stop): Pass
12771 target down.
12772 * record-full.c (record_full_wait_1): Switch to event thread.
12773 Pass target down.
12774 * regcache.c (regcache::regcache)
12775 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12776 process_stratum_target parameter and handle it.
12777 (current_thread_target): New global.
12778 (get_thread_regcache): Add process_stratum_target parameter and
12779 handle it. Switch inferior before calling target method.
12780 (get_thread_regcache): Pass target down.
12781 (get_thread_regcache_for_ptid): Pass target down.
12782 (registers_changed_ptid): Add process_stratum_target parameter and
12783 handle it.
12784 (registers_changed_thread, registers_changed): Pass target down.
12785 (test_get_thread_arch_aspace_regcache): New.
12786 (current_regcache_test): Define a couple local test_target_ops
12787 instances and use them for testing.
12788 (readwrite_regcache): Pass process_stratum_target parameter.
12789 (cooked_read_test, cooked_write_test): Pass mock_target down.
12790 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12791 (get_thread_arch_aspace_regcache): Add process_stratum_target
12792 parameter.
12793 (regcache::target): New method.
12794 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12795 (regcache::registers_changed_ptid): Add process_stratum_target
12796 parameter.
12797 (regcache::m_target): New field.
12798 (registers_changed_ptid): Add process_stratum_target parameter.
12799 * remote.c (remote_state::supports_vCont_probed): New field.
12800 (remote_target::async_wait_fd): New method.
12801 (remote_unpush_and_throw): Add remote_target parameter.
12802 (get_current_remote_target): Adjust.
12803 (remote_target::remote_add_inferior): Push target.
12804 (remote_target::remote_add_thread)
12805 (remote_target::remote_notice_new_inferior)
12806 (get_remote_thread_info): Pass target down.
12807 (remote_target::update_thread_list): Skip threads of inferiors
12808 bound to other targets. (remote_target::close): Don't discard
12809 inferiors. (remote_target::add_current_inferior_and_thread)
12810 (remote_target::process_initial_stop_replies)
12811 (remote_target::start_remote)
12812 (remote_target::remote_serial_quit_handler): Pass down target.
12813 (remote_target::remote_unpush_target): New remote_target
12814 parameter. Unpush the target from all inferiors.
12815 (remote_target::remote_unpush_and_throw): New remote_target
12816 parameter. Pass it down.
12817 (remote_target::open_1): Check whether the current inferior has
12818 execution instead of checking whether any inferior is live. Pass
12819 target down.
12820 (remote_target::remote_detach_1): Pass down target. Use
12821 remote_unpush_target.
12822 (extended_remote_target::attach): Pass down target.
12823 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12824 (remote_target::append_resumption): Pass down target.
12825 (remote_target::append_pending_thread_resumptions)
12826 (remote_target::remote_resume_with_hc, remote_target::resume)
12827 (remote_target::commit_resume): Pass down target.
12828 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12829 (remote_target::interrupt_query)
12830 (remote_target::remove_new_fork_children)
12831 (remote_target::check_pending_events_prevent_wildcard_vcont)
12832 (remote_target::remote_parse_stop_reply)
12833 (remote_target::process_stop_reply): Pass down target.
12834 (first_remote_resumed_thread): New remote_target parameter. Pass
12835 it down.
12836 (remote_target::wait_as): Pass down target.
12837 (unpush_and_perror): New remote_target parameter. Pass it down.
12838 (remote_target::readchar, remote_target::remote_serial_write)
12839 (remote_target::getpkt_or_notif_sane_1)
12840 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12841 down target.
12842 (remote_target::mourn_inferior): Pass down target. Use
12843 remote_unpush_target.
12844 (remote_target::core_of_thread)
12845 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12846 (remote_target::pid_to_exec_file)
12847 (remote_target::thread_handle_to_thread_info): Pass down target.
12848 (remote_target::async_wait_fd): New.
12849 * riscv-fbsd-tdep.c: Include "inferior.h".
12850 (riscv_fbsd_get_thread_local_address): Pass down target.
12851 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12852 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12853 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12854 Adjust.
12855 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12856 * solib-svr4.c (enable_break): Pass down target.
12857 * spu-multiarch.c (parse_spufs_run): Pass down target.
12858 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12859 * target-delegates.c: Regenerate.
12860 * target.c (g_target_stack): Delete.
12861 (current_top_target): Return the current inferior's top target.
12862 (target_has_execution_1): Refer to the passed-in inferior's top
12863 target.
12864 (target_supports_terminal_ours): Check whether the initial
12865 inferior was already created.
12866 (decref_target): New.
12867 (target_stack::push): Incref/decref the target.
12868 (push_target, push_target, unpush_target): Adjust.
12869 (target_stack::unpush): Defref target.
12870 (target_is_pushed): Return bool. Adjust to refer to the current
12871 inferior's target stack.
12872 (dispose_inferior): Delete, and inline parts ...
12873 (target_preopen): ... here. Only dispose of the current inferior.
12874 (target_detach): Hold strong target reference while detaching.
12875 Pass target down.
12876 (target_thread_name): Add assertion.
12877 (target_resume): Pass down target.
12878 (target_ops::beneath, find_target_at): Adjust to refer to the
12879 current inferior's target stack.
12880 (get_dummy_target): New.
12881 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12882 has a thread running.
12883 (initialize_targets): Rename to ...
12884 (_initialize_target): ... this.
12885 * target.h: Include "gdbsupport/refcounted-object.h".
12886 (struct target_ops): Inherit refcounted_object.
12887 (target_ops::shortname, target_ops::longname): Make const.
12888 (target_ops::async_wait_fd): New method.
12889 (decref_target): Declare.
12890 (struct target_ops_ref_policy): New.
12891 (target_ops_ref): New typedef.
12892 (get_dummy_target): Declare function.
12893 (target_is_pushed): Return bool.
12894 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12895 (all_matching_threads_iterator::all_matching_threads_iterator):
12896 Handle filter target.
12897 * thread-iter.h (struct all_matching_threads_iterator, struct
12898 all_matching_threads_range, class all_non_exited_threads_range):
12899 Filter by target too. Remove explicit.
12900 * thread.c (threads_executing): Delete.
12901 (inferior_thread): Pass down current inferior.
12902 (clear_thread_inferior_resources): Pass down thread pointer
12903 instead of ptid_t.
12904 (add_thread_silent, add_thread_with_info, add_thread): Add
12905 process_stratum_target parameter. Use it for thread and inferior
12906 searches.
12907 (is_current_thread): New.
12908 (thread_info::deletable): Use it.
12909 (find_thread_ptid, thread_count, in_thread_list)
12910 (thread_change_ptid, set_resumed, set_running): New
12911 process_stratum_target parameter. Pass it down.
12912 (set_executing): New process_stratum_target parameter. Pass it
12913 down. Adjust reference to 'threads_executing'.
12914 (threads_are_executing): New process_stratum_target parameter.
12915 Adjust reference to 'threads_executing'.
12916 (set_stop_requested, finish_thread_state): New
12917 process_stratum_target parameter. Pass it down.
12918 (switch_to_thread): Also match inferior.
12919 (switch_to_thread): New process_stratum_target parameter. Pass it
12920 down.
12921 (update_threads_executing): Reimplement.
12922 * top.c (quit_force): Pop targets from all inferior.
12923 (gdb_init): Don't call initialize_targets.
12924 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12925 Declare.
12926 (windows_add_thread, windows_delete_thread): Adjust.
12927 (get_windows_debug_event): Rename to ...
12928 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12929 * tracefile-tfile.c (tfile_target_open): Pass down target.
12930 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12931 Forward declare.
12932 (switch_to_thread): Add process_stratum_target parameter.
12933 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12934 parameter. Use it.
12935 (mi_on_resume): Pass target down.
12936 * nat/fork-inferior.c (startup_inferior): Add
12937 process_stratum_target parameter. Pass it down.
12938 * nat/fork-inferior.h (startup_inferior): Add
12939 process_stratum_target parameter.
12940 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12941
12942 2020-01-10 Pedro Alves <palves@redhat.com>
12943
12944 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12945 directly. Instead find the first thread in the thread list and
12946 use switch_to_thread.
12947
12948 2020-01-10 Pedro Alves <palves@redhat.com>
12949
12950 * remote.c (remote_target::remote_add_inferior): Don't bind a
12951 process to the current inferior if the current inferior is already
12952 bound to a process.
12953
12954 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12955 Pedro Alves <palves@redhat.com>
12956
12957 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12958 If no process is specified, return null_ptid instead of
12959 inferior_ptid.
12960 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12961 TARGET_WAITKIND_SIGNALLED with no pid.
12962
12963 2020-01-10 Pedro Alves <palves@redhat.com>
12964
12965 * remote.c (first_remote_resumed_thread): New.
12966 (remote_target::wait_as): Use it as default event_ptid instead of
12967 inferior_ptid.
12968
12969 2020-01-10 Pedro Alves <palves@redhat.com>
12970
12971 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12972
12973 2020-01-10 Pedro Alves <palves@redhat.com>
12974
12975 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12976 not -1.
12977
12978 2020-01-10 Pedro Alves <palves@redhat.com>
12979
12980 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12981 ptid to get_last_target_status.
12982 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12983 ptid to get_last_target_status.
12984 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12985 get_last_target_status.
12986 (info_program_command): Don't pass a target_waitstatus to
12987 get_last_target_status.
12988 * infrun.c (init_wait_for_inferior): Use
12989 nullify_last_target_wait_ptid.
12990 (get_last_target_status): Handle nullptr arguments.
12991 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12992 (print_stop_event): Don't pass a ptid to get_last_target_status.
12993 (normal_stop): Don't pass a ptid to get_last_target_status.
12994 * infrun.h (get_last_target_status, set_last_target_status): Move
12995 comments here and update.
12996 (nullify_last_target_wait_ptid): Declare.
12997 * linux-fork.c (fork_load_infrun_state): Remove local extern
12998 declaration of nullify_last_target_wait_ptid.
12999 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13000 to get_last_target_status.
13001
13002 2020-01-10 Pedro Alves <palves@redhat.com>
13003
13004 * gdbthread.h (scoped_restore_current_thread)
13005 <dont_restore, restore, m_dont_restore>: Declare.
13006 * thread.c (thread_alive): Add assertion. Return bool.
13007 (switch_to_thread_if_alive): New.
13008 (prune_threads): Switch inferior/thread.
13009 (print_thread_info_1): Switch thread before calling target methods.
13010 (scoped_restore_current_thread::restore): New, factored out from
13011 ...
13012 (scoped_restore_current_thread::~scoped_restore_current_thread):
13013 ... this.
13014 (scoped_restore_current_thread::scoped_restore_current_thread):
13015 Add assertion.
13016 (thread_apply_all_command, thread_select): Use
13017 switch_to_thread_if_alive.
13018 * infrun.c (proceed, restart_threads, handle_signal_stop)
13019 (switch_back_to_stepped_thread): Switch current thread before
13020 calling target methods.
13021
13022 2020-01-10 Pedro Alves <palves@redhat.com>
13023
13024 * inferior.c (switch_to_inferior_no_thread): New function,
13025 factored out from ...
13026 (inferior_command): ... here.
13027 * inferior.h (switch_to_inferior_no_thread): Declare.
13028 * mi/mi-main.c (run_one_inferior): Use
13029 switch_to_inferior_no_thread.
13030
13031 2020-01-10 Pedro Alves <palves@redhat.com>
13032
13033 * infcmd.c (kill_command): Remove dead code.
13034
13035 2020-01-10 Pedro Alves <palves@redhat.com>
13036
13037 * remote.c (remote_target::mourn_inferior): No longer check
13038 whether the target is running.
13039
13040 2020-01-10 Pedro Alves <palves@redhat.com>
13041
13042 * corelow.c (core_target::has_execution): Change parameter type to
13043 inferior pointer.
13044 * inferior.c (number_of_live_inferiors): Use
13045 inferior::has_execution instead of target_has_execution_1.
13046 * inferior.h (inferior::has_execution): New.
13047 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13048 inferior::has_execution instead of target_has_execution_1.
13049 * process-stratum-target.c
13050 (process_stratum_target::has_execution): Change parameter type to
13051 inferior pointer. Check the inferior's PID instead of
13052 inferior_ptid.
13053 * process-stratum-target.h
13054 (process_stratum_target::has_execution): Change parameter type to
13055 inferior pointer.
13056 * record-full.c (record_full_core_target::has_execution): Change
13057 parameter type to inferior pointer.
13058 * target.c (target_has_execution_1): Change parameter type to
13059 inferior pointer.
13060 (target_has_execution_current): Adjust.
13061 * target.h (target_ops::has_execution): Change parameter type to
13062 inferior pointer.
13063 (target_has_execution_1): Change parameter type to inferior
13064 pointer. Change return type to bool.
13065 * tracefile.h (tracefile_target::has_execution): Change parameter
13066 type to inferior pointer.
13067
13068 2020-01-10 Pedro Alves <palves@redhat.com>
13069
13070 * exceptions.c (print_flush): Remove current_top_target() check.
13071
13072 2020-01-10 Pedro Alves <palves@redhat.com>
13073
13074 * remote.c (show_remote_exec_file): Show the current inferior's
13075 exec-file instead of the command variable's value.
13076
13077 2020-01-10 Pedro Alves <palves@redhat.com>
13078
13079 * record-full.c (record_full_resume_ptid): New global.
13080 (record_full_target::resume): Set it.
13081 (record_full_wait_1): Use record_full_resume_ptid instead of
13082 inferior_ptid.
13083
13084 2020-01-10 Pedro Alves <palves@redhat.com>
13085
13086 * gdbthread.h (scoped_restore_current_thread)
13087 <dont_restore, restore, m_dont_restore>: Declare.
13088 * thread.c (thread_alive): Add assertion. Return bool.
13089 (switch_to_thread_if_alive): New.
13090 (prune_threads): Switch inferior/thread.
13091 (print_thread_info_1): Switch thread before calling target methods.
13092 (scoped_restore_current_thread::restore): New, factored out from
13093 ...
13094 (scoped_restore_current_thread::~scoped_restore_current_thread):
13095 ... this.
13096 (scoped_restore_current_thread::scoped_restore_current_thread):
13097 Add assertion.
13098 (thread_apply_all_command, thread_select): Use
13099 switch_to_thread_if_alive.
13100
13101 2020-01-10 George Barrett <bob@bob131.so>
13102
13103 * stap-probe.c (stap_modify_semaphore): Don't check for null
13104 semaphores.
13105 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13106 for null semaphores.
13107
13108 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13109
13110 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13111 all source windows, and maintain horizontal scroll status while
13112 doing so.
13113
13114 2020-01-09 Tom Tromey <tom@tromey.com>
13115
13116 PR tui/18932:
13117 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13118 update_source_window, not print_source_lines.
13119
13120 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13121
13122 * tui/tui.c (tui_enable): Register tui hooks after calling
13123 tui_display_main.
13124
13125 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13126
13127 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13128
13129 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13130
13131 * thread.c (print_thread_info_1): Fix indentation.
13132
13133 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13134
13135 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13136 unique_xmalloc_ptr outside the if to always free the demangled name.
13137
13138 2020-01-08 Tom Tromey <tromey@adacore.com>
13139
13140 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13141 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13142 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13143 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13144 Remove.
13145 (section_offsets): New typedef.
13146 * symtab.c (fixup_section, get_msymbol_address): Update.
13147 * symmisc.c (dump_msymbols): Update.
13148 * symfile.h (relative_addr_info_to_section_offsets)
13149 (symfile_map_offsets_to_segments): Update.
13150 * symfile.c (build_section_addr_info_from_objfile)
13151 (init_objfile_sect_indices): Update.
13152 (struct place_section_arg): Change type of "offsets".
13153 (place_section): Update.
13154 (relative_addr_info_to_section_offsets): Change type of
13155 "section_offsets". Remove "num_sections" parameter.
13156 (default_symfile_offsets, syms_from_objfile_1)
13157 (set_objfile_default_section_offset): Update.
13158 (reread_symbols): No need to preserve section offsets by hand.
13159 (symfile_map_offsets_to_segments): Change type of "offsets".
13160 * stap-probe.c (relocate_address): Update.
13161 * stabsread.h (process_one_symbol): Update.
13162 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13163 (solib_target_relocate_section_addresses): Update.
13164 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13165 Update.
13166 * solib-frv.c (frv_relocate_main_executable): Update.
13167 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13168 * solib-aix.c (solib_aix_get_section_offsets): Change return
13169 type.
13170 (solib_aix_solib_create_inferior_hook): Update.
13171 * remote.c (remote_target::get_offsets): Update.
13172 * psymtab.c (find_pc_sect_psymtab): Update.
13173 * psympriv.h (struct partial_symbol) <address, text_low,
13174 text_high>: Update.
13175 * objfiles.h (obj_section_offset): Update.
13176 (struct objfile) <section_offsets>: Change type.
13177 <num_sections>: Remove.
13178 (objfile_relocate): Update.
13179 * objfiles.c (entry_point_address_query): Update
13180 (relocate_one_symbol): Change type of "section_offsets".
13181 (objfile_relocate1, objfile_relocate1): Change type of
13182 "new_offsets".
13183 (objfile_rebase1): Update.
13184 * mipsread.c (mipscoff_symfile_read): Update.
13185 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13186 parameter.
13187 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13188 (parse_external, psymtab_to_symtab_1): Update.
13189 * machoread.c (macho_symfile_offsets): Update.
13190 * ia64-tdep.c (ia64_find_unwind_table): Update.
13191 * hppa-tdep.c (read_unwind_info): Update.
13192 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13193 * dwarf2read.c (create_addrmap_from_index)
13194 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13195 (process_psymtab_comp_unit_reader, add_partial_symbol)
13196 (add_partial_subprogram, process_full_comp_unit)
13197 (read_file_scope, read_func_scope, read_lexical_block_scope)
13198 (read_call_site_scope, dwarf2_rnglists_process)
13199 (dwarf2_ranges_process, dwarf2_ranges_read)
13200 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13201 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13202 Update.
13203 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13204 Update.
13205 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13206 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13207 (process_one_symbol): Change type of "section_offsets".
13208 * ctfread.c (get_objfile_text_range): Update.
13209 * coffread.c (coff_symtab_read, enter_linenos)
13210 (process_coff_symbol): Update.
13211 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13212 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13213
13214 2020-01-08 Tom Tromey <tromey@adacore.com>
13215
13216 * dwarf2read.c (parse_macro_definition): Use std::string.
13217 (parse_macro_definition): Likewise.
13218
13219 2020-01-08 Tom Tromey <tromey@adacore.com>
13220
13221 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13222 (ATTR_ALLOC_CHUNK): Remove.
13223
13224 2020-01-08 Tom Tromey <tromey@adacore.com>
13225
13226 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13227
13228 2020-01-08 Tom Tromey <tromey@adacore.com>
13229
13230 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13231 (dwarf2_compute_name, open_dwo_file): Likewise.
13232 (process_enumeration_scope): Use std::vector.
13233 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13234 (partial_die_info::fixup, dwarf2_start_subfile)
13235 (guess_full_die_structure_name, dwarf2_name): Likewise.
13236 (determine_prefix): Update.
13237 (guess_full_die_structure_name): Make return type const.
13238 (partial_die_full_name): Return unique_xmalloc_ptr.
13239 (DW_FIELD_ALLOC_CHUNK): Remove.
13240
13241 2020-01-07 Tom Tromey <tromey@adacore.com>
13242
13243 PR build/24937:
13244 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13245
13246 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13247
13248 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13249
13250 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13251
13252 * stack.c (print_frame_info): Move disassemble_next_line code
13253 inside source_print block.
13254
13255 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13256
13257 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13258 gdb/signals.h, as we are now using native signal symbols.
13259
13260 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13261
13262 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13263 overflow by an early check of content vs threshold.
13264 * tui/tui-source.c (tui_source_window::line_is_displayed):
13265 Likewise.
13266
13267 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13268
13269 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13270
13271 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13272
13273 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13274 export table if no section contains it's RVA.
13275
13276 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13277
13278 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13279
13280 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13281
13282 * source.c (print_source_lines_base): Set last_line_listed.
13283
13284 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13285
13286 * tui/tui-disasm.c: Remove trailing spaces.
13287
13288 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13289 Pedro Alves <palves@redhat.com>
13290
13291 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13292 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13293 (windows_gdb_signal_to_target): New function, uses the above
13294 enumeration to convert GDB internal signal codes to equivalent
13295 Windows codes.
13296 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13297 * windows-nat.c: Include "gdb_wait.h".
13298 (get_windows_debug_event): Extract the fatal exception from the
13299 exit status and convert to the equivalent Posix signal number.
13300 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13301 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13302 * gdbsupport/gdb_wait.c: New file, implements
13303 windows_status_to_termsig.
13304 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13305 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13306
13307 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13308
13309 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13310 show_layout.
13311
13312 2020-01-05 Luis Machado <luis.machado@linaro.org>
13313
13314 * aarch64-linux-nat.c
13315 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13316 and bfd_mach_aarch64.
13317
13318 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13319
13320 * ui-file.c (stdio_file::can_emit_style_escape)
13321 (tee_file::can_emit_style_escape): Ensure style is used also on
13322 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13323 to gdb_stdout.
13324 * main.c (set_gdb_data_directory): Use file style to output the
13325 warning that the given pathname is not a directory.
13326 * top.c (show_history_filename, gdb_safe_append_history)
13327 (show_gdb_datadir): Use file style.
13328
13329 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13330
13331 * solib-target.c (struct lm_info_target):
13332 Change offsets to be a unique_xmalloc_ptr.
13333 (solib_target_relocate_section_addresses): Update.
13334
13335 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13336
13337 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13338
13339 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13340
13341 * MAINTAINERS (Write After Approval): Add myself.
13342
13343 2020-01-02 Luis Machado <luis.machado@linaro.org>
13344
13345 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13346 Cell BE architecture.
13347 * target.h (struct target_ops) <thread_architecture>: Likewise.
13348
13349 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13350
13351 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13352
13353 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13354
13355 * MAINTAINERS (Write After Approval): Add myself.
13356
13357 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13358
13359 * gdbarch.sh: Update copyright year range of generated files.
13360
13361 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13362
13363 Update copyright year range in all GDB files.
13364
13365 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13366
13367 * copyright.py: Convert to Python 3.
13368
13369 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13370
13371 * copyright.py: Adapt after move of gnulib directory from gdb
13372 directory to toplevel directory.
13373
13374 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13375
13376 * copyright.py (main): Exit if run from the wrong directory.
13377
13378 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13379
13380 * top.c (print_gdb_version): Change copyright year to 2020.
13381
13382 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13383
13384 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13385
13386 For older changes see ChangeLog-2019.
13387 \f
13388 Local Variables:
13389 mode: change-log
13390 left-margin: 8
13391 fill-column: 74
13392 version-control: never
13393 coding: utf-8
13394 End: