gdb: Convert la_store_sym_names_in_linkage_form_p 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
4 la_store_sym_names_in_linkage_form_p initializer.
5 (ada_language::store_sym_names_in_linkage_form_p): New member
6 function.
7 * c-lang.c (c_language_data): Remove
8 la_store_sym_names_in_linkage_form_p initializer.
9 (c_language::store_sym_names_in_linkage_form_p): New member
10 function.
11 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
12 initializer.
13 (asm_language_data): Likewise.
14 (asm_language::store_sym_names_in_linkage_form_p): New member
15 function.
16 (minimal_language_data): Remove
17 la_store_sym_names_in_linkage_form_p initializer.
18 (minimal_language::store_sym_names_in_linkage_form_p): New member
19 function.
20 * d-lang.c (d_language_data): Remove
21 la_store_sym_names_in_linkage_form_p initializer.
22 * dwarf2/read.c (dwarf2_physname): Update call to
23 store_sym_names_in_linkage_form_p.
24 * f-lang.c (f_language_data): Remove
25 la_store_sym_names_in_linkage_form_p initializer.
26 * go-lang.c (go_language_data): Remove
27 la_store_sym_names_in_linkage_form_p initializer.
28 * language.c (unknown_language_data): Remove
29 la_store_sym_names_in_linkage_form_p initializer.
30 (unknown_language::store_sym_names_in_linkage_form_p): New member
31 function.
32 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
33 initializer.
34 (auto_language::store_sym_names_in_linkage_form_p): New member
35 function.
36 * language.h (language_data): Remove
37 la_store_sym_names_in_linkage_form_p member variable.
38 (language_defn::store_sym_names_in_linkage_form_p): New member
39 function.
40 * m2-lang.c (m2_language_data): Remove
41 la_store_sym_names_in_linkage_form_p initializer.
42 * objc-lang.c (objc_language_data): Likewise.
43 * opencl-lang.c (opencl_language_data): Likewise.
44 * p-lang.c (pascal_language_data): Likewise.
45 * rust-lang.c (rust_language_data): Likewise.
46
47 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
48
49 * ada-lang.c (ada_language_data): Remove string_lower_bound
50 initializer.
51 * c-lang.c (c_language_data): Likewise.
52 (cplus_language_data): Likewise.
53 (asm_language_data): Likewise.
54 (minimal_language_data): Likewise.
55 * d-lang.c (d_language_data): Likewise.
56 * f-lang.c (f_language_data): Likewise.
57 * go-lang.c (go_language_data): Likewise.
58 * language.c (unknown_language_data): Likewise.
59 (auto_language_data): Likewise.
60 * language.h (language_data): Remove string_lower_bound field.
61 (language_defn::string_lower_bound): New member function.
62 * m2-lang.c (m2_language_data): Remove string_lower_bound
63 initializer.
64 (m2_language::string_lower_bound): New member function.
65 * objc-lang.c (objc_language_data): Remove string_lower_bound
66 initializer.
67 * opencl-lang.c (opencl_language_data): Likewise.
68 * p-lang.c (pascal_language_data): Likewise.
69 * rust-lang.c (rust_language_data): Likewise.
70 * valops.c (value_cstring): Update call to string_lower_bound.
71 (value_string): Likewise.
72 * value.c (allocate_repeated_value): Likewise.
73
74 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
75
76 * valops.c (value_repeat): Fix incorrect argument name in comment.
77
78 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * ada-lang.c (ada_language_data): Remove c_style_arrays
81 initializer.
82 (ada_language::c_style_arrays_p): New member fuction.
83 * c-lang.c (c_language_data): Remove c_style_arrays
84 initializer.
85 (cplus_language_data): Likewise.
86 (asm_language_data): Likewise.
87 (minimal_language_data): Likewise.
88 * d-lang.c (d_language_data): Likewise.
89 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
90 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
91 (f_language::c_style_arrays_p): New member function.
92 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
93 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
94 * language.c (unknown_language_data): Remove c_style_arrays
95 initializer.
96 (auto_language_data): Likewise.
97 * language.h (language_data): Remove c_style_arrays field.
98 (language_defn::c_style_arrays_p): New member function.
99 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
100 (m2_language::c_style_arrays_p): New member function.
101 * objc-lang.c (objc_language_data): Remove c_style_arrays
102 initializer.
103 * opencl-lang.c (opencl_language_data): Likewise.
104 * p-lang.c (pascal_language_data): Likewise.
105 * rust-lang.c (rust_language_data): Likewise.
106 * valarith.c (value_subscript): Update call to c_style_arrays_p,
107 and update local variable to a bool.
108 * valops.c (value_cast): Update call to c_style_arrays_p.
109 (value_array): Likewise.
110 * value.c (coerce_array): Likewise.
111
112 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * ada-lang.c (ada_language_data): Remove la_language initializer.
115 * c-lang.c (c_language_data): Likewise.
116 (cplus_language_data): Likewise.
117 (asm_language_data): Likewise.
118 (minimal_language_data): Likewise.
119 * d-lang.c (d_language_data): Likewise.
120 * f-lang.c (f_language_data): Likewise.
121 * go-lang.c (go_language_data): Likewise.
122 * language.c (unknown_language_data): Likewise.
123 (auto_language_data): Likewise.
124 * language.h (language_data): Remove la_language field.
125 (language_defn::language_defn): Initialise la_language field.
126 (language_defn::la_language): New member variable.
127 * m2-lang.c (m2_language_data): Remove la_language field.
128 * objc-lang.c (objc_language_data): Likewise.
129 * opencl-lang.c (opencl_language_data): Likewise.
130 * p-lang.c (pascal_language_data): Likewise.
131 * rust-lang.c (rust_language_data): Likewise.
132
133 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * ada-lang.c (ada_extensions): Delete, moved into
136 ada_language::filename_extensions.
137 (ada_language_data): Remove la_filename_extensions initializer.
138 (ada_language::filename_extensions): New member function.
139 * c-lang.c (c_extensions): Delete, moved into
140 c_language::filename_extensions.
141 (c_language_data): Remove la_filename_extensions initializer.
142 (c_language::filename_extensions): New member function.
143 (cplus_extensions): Delete, moved into
144 cplus_language::filename_extensions.
145 (cplus_language_data): Remove la_filename_extensions initializer.
146 (cplus_language::filename_extensions): New member function.
147 (asm_extensions): Delete, moved into
148 asm_language::filename_extensions.
149 (asm_language_data): Remove la_filename_extensions initializer.
150 (asm_language::filename_extensions): New member function.
151 (minimal_language_data): Remove la_filename_extensions
152 initializer.
153 * d-lang.c (d_extensions): Delete, moved into
154 d_language::filename_extensions.
155 (d_language_data): Remove la_filename_extensions initializer.
156 (d_language::filename_extensions): New member function.
157 * f-lang.c (f_extensions): Delete, moved into
158 f_language::filename_extensions.
159 (f_language_data): Remove la_filename_extensions initializer.
160 (f_language::filename_extensions): New member function.
161 * go-lang.c (go_language_data): Remove la_filename_extensions
162 initializer.
163 * language.c (add_set_language_command): Update now that
164 filename_extensions returns a vector.
165 (unknown_language_data): Remove la_filename_extensions
166 initializer.
167 (auto_language_data): Likewise.
168 * language.h (language_data): Remove la_filename_extensions field.
169 (language_defn::filename_extensions): New member function.
170 * m2-lang.c (m2_language_data): Remove la_filename_extensions
171 initializer.
172 * objc-lang.c (objc_extensions): Delete, moved into
173 objc_language::filename_extensions.
174 (objc_language_data): Remove la_filename_extensions initializer.
175 (objc_language::filename_extensions): New member function.
176 * opencl-lang.c (opencl_language_data): Remove
177 la_filename_extensions initializer.
178 * p-lang.c (pascal_extensions): Delete, moved into
179 pascal_language::filename_extensions.
180 (pascal_language_data): Remove la_filename_extensions initializer.
181 (pascal_language::filename_extensions): New member function.
182 * rust-lang.c (rust_extensions): Delete, moved into
183 rust_language::filename_extensions.
184 (rust_language_data): Remove la_filename_extensions initializer.
185 (rust_language::filename_extensions): New member function.
186 * symfile.c (add_filename_language): Add new assert.
187
188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * ada-lang.c (ada_language_data): Remove la_name and
191 la_natural_name initializers.
192 (ada_language::name): New member function.
193 (ada_language::natural_name): New member function.
194 * c-lang.c (c_language_data): Remove la_name and
195 la_natural_name initializers.
196 (c_language::name): New member function.
197 (c_language::natural_name): New member function.
198 (cplus_language_data): Remove la_name and
199 la_natural_name initializers.
200 (cplus_language::name): New member function.
201 (cplus_language::natural_name): New member function.
202 (asm_language_data): Remove la_name and
203 la_natural_name initializers.
204 (asm_language::name): New member function.
205 (asm_language::natural_name): New member function.
206 (minimal_language_data): Remove la_name and
207 la_natural_name initializers.
208 (minimal_language::name): New member function.
209 (minimal_language::natural_name): New member function.
210 * compile/compile.c (compile_to_object): Update call to
211 lanugage_defn::name.
212 * d-lang.c (d_language_data): Remove la_name and
213 la_natural_name initializers.
214 (d_language::name): New member function.
215 (d_language::natural_name): New member function.
216 * expprint.c (print_subexp_standard): Update call to
217 language_defn::name.
218 (dump_raw_expression): Likewise
219 (dump_prefix_expression): Likewise.
220 * f-lang.c (f_language_data): Remove la_name and
221 la_natural_name initializers.
222 (f_language::name): New member function.
223 (f_language::natural_name): New member function.
224 * go-lang.c (go_language_data): Remove la_name and
225 la_natural_name initializers.
226 (go_language::name): New member function.
227 (go_language::natural_name): New member function.
228 * language.c (show_language_command): Update call to
229 language_defn::name.
230 (set_language_command): Likewise.
231 (language_enum): Likewise.
232 (language_str): Likewise.
233 (add_set_language_command): Likewise, use
234 language_defn::natural_name in the doc string.
235 (unknown_language_data): Remove la_name and
236 la_natural_name initializers.
237 (unknown_language::name): New member function.
238 (unknown_language::natural_name): New member function.
239 (auto_language_data): Remove la_name and
240 la_natural_name initializers.
241 (auto_language::name): New member function.
242 (auto_language::natural_name): New member function.
243 (language_lookup_primitive_type_as_symbol): Update call to
244 language_defn::name.
245 * language.h (language_data): Remove la_name and la_natural_name
246 member variables.
247 (language_defn::name): New member function.
248 (language_defn::natural_name): New member function.
249 * m2-lang.c (m2_language_data): Remove la_name and
250 la_natural_name initializers.
251 (m2_language::name): New member function.
252 (m2_language::natural_name): New member function.
253 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
254 language_defn::natural_name.
255 * objc-lang.c (objc_language_data): Remove la_name and
256 la_natural_name initializers.
257 (objc_language::name): New member function.
258 (objc_language::natural_name): New member function.
259 * opencl-lang.c (opencl_language_data): Remove la_name and
260 la_natural_name initializers.
261 (opencl_language::name): New member function.
262 (opencl_language::natural_name): New member function.
263 * p-lang.c (pascal_language_data): Remove la_name and
264 la_natural_name initializers.
265 (pascal_language::name): New member function.
266 (pascal_language::natural_name): New member function.
267 * rust-lang.c (rust_language_data): Remove la_name and
268 la_natural_name initializers.
269 (rust_language::name): New member function.
270 (rust_language::natural_name): New member function.
271 * symtab.c (lookup_language_this): Update call to
272 language_defn::name.
273
274 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * ada-lang.c (ada_language_data): Remove la_name_of_this
277 initializer.
278 * ax-gdb.c (gen_expr): Update call to name_of_this.
279 * c-exp.y (classify_name): Likewise.
280 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
281 (cplus_language_data): Likewise.
282 (cplus_language::name_of_this): New member function.
283 (asm_language_data): Remove la_name_of_this initializer.
284 (minimal_language_data): Likewise.
285 * d-lang.c (d_language_data): Likewise.
286 (d_language::name_of_this): New member function.
287 * expprint.c (print_subexp_standard): Update call to name_of_this.
288 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
289 * go-lang.c (go_language_data): Likewise.
290 * language.c (unknown_language_data): Likewise.
291 (unknown_language::name_of_this): New member function.
292 (auto_language_data): Remove la_name_of_this initializer.
293 (auto_language::name_of_this): New member function.
294 * language.h (language_data): Delete la_name_of_this member
295 variable.
296 (language_defn::name_of_this): New member function.
297 * m2-lang.c (m2_language_data): Remove la_name_of_this
298 initializer.
299 * objc-lang.c (objc_language_data): Likewise.
300 (objc_language::name_of_this): New member function.
301 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
302 initializer.
303 * p-lang.c (pascal_language_data): Likewise.
304 (pascal_language::name_of_this): New member function.
305 * rust-lang.c (rust_language_data): Remove la_name_of_this
306 initializer.
307 * symtab.c (lookup_language_this): Update call to name_of_this.
308 (lookup_symbol_aux): Likewise.
309 * valops.c (value_of_this): Likewise.
310
311 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * ada-lang.c (ada_language_data): Remove
314 la_struct_too_deep_ellipsis initializer.
315 (ada_language::struct_too_deep_ellipsis): New member function.
316 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
317 initializer.
318 (cplus_language_data): Likewise.
319 (asm_language_data): Likewise.
320 (minimal_language_data): Likewise.
321 * cp-valprint.c (cp_print_value): Update call to
322 struct_too_deep_ellipsis.
323 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
324 initializer.
325 * f-lang.c (f_language_data): Likewise.
326 (f_language::struct_too_deep_ellipsis): New member function.
327 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
328 initializer.
329 * language.c (unknown_language_data): Likewise.
330 (auto_language_data): Likewise.
331 * language.h (language_data): Delete la_struct_too_deep_ellipsis
332 member variable.
333 (language_defn::struct_too_deep_ellipsis): New member function.
334 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
335 initializer.Q
336 * objc-lang.c (objc_language_data): Likewise.
337 * opencl-lang.c (opencl_language_data): Likewise.
338 * p-lang.c (pascal_language_data): Likewise.
339 * rust-lang.c (rust_language_data): Likewise.
340 * valprint.c (val_print_check_max_depth): Update call to
341 struct_too_deep_ellipsis.
342
343 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
344
345 * MAINTAINERS (Write After Approval): Add myself.
346
347 2020-09-15 Tom Tromey <tom@tromey.com>
348
349 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
350 Remove.
351
352 2020-09-15 Tom Tromey <tom@tromey.com>
353
354 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
355 and TYPE_CODE_METHODPTR cases.
356 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
357 (c_value_print_inner): Update.
358 * valprint.c (generic_value_print_memberptr): New function, from
359 c_value_print_memberptr.
360 (generic_value_print): Use it. Call cplus_print_method_ptr.
361
362 2020-09-15 Tom Tromey <tromey@adacore.com>
363
364 * python/python-internal.h (PyInt_FromLong): Remove define.
365 * python/py-value.c (convert_value_from_python): Use
366 gdb_py_object_from_longest.
367 * python/py-type.c (typy_get_code): Use
368 gdb_py_object_from_longest.
369 * python/py-symtab.c (salpy_get_line): Use
370 gdb_py_object_from_longest.
371 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
372 gdb_py_object_from_longest.
373 * python/py-record.c (recpy_gap_reason_code): Use
374 gdb_py_object_from_longest.
375 * python/py-record-btrace.c (recpy_bt_insn_size)
376 (recpy_bt_func_level, btpy_list_count): Use
377 gdb_py_object_from_longest.
378 * python/py-infthread.c (gdbpy_create_ptid_object): Use
379 gdb_py_object_from_longest. Fix error handling.
380 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
381 gdb_py_object_from_longest.
382 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
383 gdb_py_object_from_longest.
384 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
385 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
386 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
387
388 2020-09-15 Tom Tromey <tromey@adacore.com>
389
390 * python/python.c (gdbpy_parameter_value): Use
391 gdb_py_object_from_ulongest.
392
393 2020-09-15 Tom Tromey <tromey@adacore.com>
394
395 * python/py-infevents.c (create_register_changed_event_object):
396 Use gdb_py_object_from_longest.
397 * python/py-exitedevent.c (create_exited_event_object): Use
398 gdb_py_object_from_longest.
399
400 2020-09-15 Tom Tromey <tromey@adacore.com>
401
402 * python/python.c (gdbpy_parameter_value): Use
403 gdb_py_object_from_longest.
404 * python/py-type.c (convert_field, typy_range): Use
405 gdb_py_object_from_longest.
406 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
407 gdb_py_object_from_longest.
408 * python/py-lazy-string.c (stpy_get_length): Use
409 gdb_py_object_from_longest.
410 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
411 gdb_py_object_from_longest.
412 * python/py-infevents.c (create_memory_changed_event_object): Use
413 gdb_py_object_from_longest.
414 * python/py-inferior.c (infpy_get_num): Use
415 gdb_py_object_from_longest.
416 (infpy_get_pid): Likewise.
417
418 2020-09-15 Tom Tromey <tromey@adacore.com>
419
420 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
421 defines.
422 * python/py-value.c (valpy_long): Use
423 gdb_py_object_from_ulongest.
424 * python/py-symtab.c (salpy_get_pc): Use
425 gdb_py_object_from_ulongest.
426 (salpy_get_last): Likewise.
427 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
428 gdb_py_object_from_ulongest.
429 * python/py-lazy-string.c (stpy_get_address): Use
430 gdb_py_object_from_ulongest.
431 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
432 * python/py-arch.c (archpy_disassemble): Use
433 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
434 error handling.
435
436 2020-09-15 Tom Tromey <tromey@adacore.com>
437
438 * python/python-internal.h (gdb_py_long_from_longest): Remove
439 defines.
440 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
441 * python/py-type.c (convert_field, typy_get_sizeof): Use
442 gdb_py_object_from_longest.
443 * python/py-record-btrace.c (btpy_list_index): Use
444 gdb_py_object_from_longest.
445
446 2020-09-15 Tom Tromey <tromey@adacore.com>
447
448 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
449 * python/py-record.c (recpy_element_number): Use
450 gdb_py_object_from_longest.
451 (recpy_gap_number): Likewise.
452
453 2020-09-15 Tom Tromey <tromey@adacore.com>
454
455 * top.c (ui::ui): Update.
456 (highest_ui_num): Remove.
457 * top.h (struct ui) <num>: Remove.
458
459 2020-09-15 Tom Tromey <tromey@adacore.com>
460
461 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
462 * ui-style.c (ansi_regex_text): Now array.
463 * rust-exp.y (number_regex_text): Now array.
464 * linespec.c (linespec_quote_characters): Now array.
465 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
466 Now arrays.
467
468 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
469
470 * debuginfod-support.c (debuginfod_client_deleter): New.
471 (debuginfod_client_up): New.
472 (debuginfod_init): Return debuginfod_client_up.
473 (debuginfod_source_query): Adjust.
474 (debuginfod_debuginfo_query): Adjust.
475
476 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * debuginfod-support.c (debuginfod_source_query): Use
479 make_unique_xstrdup.
480
481 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
482
483 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
484 with `type::instance_flags`.
485
486 2020-09-14 Michael Mullin <masmullin@gmail.com>
487
488 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
489 Remove baton parameter.
490
491 2020-09-14 Pedro Alves <pedro@palves.net>
492
493 * Makefile.in (SELFTESTS_SRCS): Add
494 unittests/enum-flags-selftests.c.
495 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
496 btrace_function_flags instead of enum btrace_function_flag.
497 * compile/compile-c-types.c (convert_qualified): Use
498 enum_flags::raw.
499 * compile/compile-cplus-symbols.c (convert_one_symbol)
500 (convert_symbol_bmsym):
501 * compile/compile-cplus-types.c (compile_cplus_convert_method)
502 (compile_cplus_convert_struct_or_union_methods)
503 (compile_cplus_instance::convert_qualified_base):
504 * go-exp.y (parse_string_or_char): Add cast to int.
505 * unittests/enum-flags-selftests.c: New file.
506 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
507 type to btrace_thread_flags from btrace_thread_flag.
508 (record_btrace_cancel_resume, record_btrace_step_thread): Change
509 local's type to btrace_thread_flags from btrace_thread_flag. Add
510 cast in DEBUG call.
511
512 2020-09-14 Pedro Alves <pedro@palves.net>
513
514 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
515 * gdbtypes.c (address_space_name_to_int): Rename to ...
516 (address_space_name_to_type_instance_flags): ... this.
517 (address_space_int_to_name): Rename to ...
518 (address_space_type_instance_flags_to_name): ... this.
519 * gdbtypes.h (address_space_name_to_int): Rename to ...
520 (address_space_name_to_type_instance_flags): ... this.
521 (address_space_int_to_name): Rename to ...
522 (address_space_type_instance_flags_to_name): ... this.
523 * type-stack.c (type_stack::insert): Adjust to rename.
524 * type-stack.h (type_stack::insert): Likewise.
525
526 2020-09-14 Pedro Alves <pedro@palves.net>
527 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * avr-tdep.c (avr_address_class_type_flags): Return
530 type_instance_flags.
531 (avr_address_class_type_flags_to_name): Take a
532 type_instance_flags.
533 (avr_address_class_name_to_type_flags): Return bool and take a
534 type_instance_flags.
535 * d-lang.c (build_d_types): Use type::set_instance_flags.
536 * ft32-tdep.c (ft32_address_class_type_flags): Return
537 type_instance_flags.
538 (ft32_address_class_type_flags_to_name): Take a
539 type_instance_flags.
540 (ft32_address_class_name_to_type_flags): Return bool and take a
541 type_instance_flags.
542 (ft32_gdbarch_init): Use type::set_instance_flags.
543 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
544 * gdbarch.h, gdbarch.c: Regenerate.
545 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
546 (address_class_name_to_type_flags): Use type_instance_flags and
547 bool.
548 * gdbtypes.c (address_space_name_to_int)
549 (address_space_int_to_name, make_qualified_type): Use
550 type_instance_flags.
551 (make_qualified_type): Use type_instance_flags and
552 type::set_instance_flags.
553 (make_type_with_address_space, make_cv_type, make_vector_type)
554 (check_typedef): Use type_instance_flags.
555 (recursive_dump_type): Cast type_instance_flags to unsigned for
556 printing.
557 (copy_type_recursive): Use type::set_instance_flags.
558 (gdbtypes_post_init): Use type::set_instance_flags.
559 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
560 <m_instance_flags>: ... this.
561 <instance_flags, set_instance_flags>: New methods.
562 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
563 (SET_TYPE_INSTANCE_FLAGS): New.
564 (address_space_name_to_int, address_space_int_to_name)
565 (make_type_with_address_space): Pass flags using
566 type_instance_flags instead of int.
567 * stabsread.c (cleanup_undefined_types_noname): Use
568 type::set_instance_flags.
569 * s390-tdep.c (s390_address_class_type_flags): Return
570 type_instance_flags.
571 (s390_address_class_type_flags_to_name): Take a
572 type_instance_flags.
573 (s390_address_class_name_to_type_flags): Return bool and take a
574 type_instance_flags.
575 * type-stack.c (type_stack::follow_types): Use
576 type_instance_flags.
577 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
578
579 2020-09-14 Tom Tromey <tromey@adacore.com>
580
581 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
582 * x86-tdep.c (x86_is_thunk_register_name)
583 (x86_in_indirect_branch_thunk): Update.
584 * sparc64-tdep.c (sparc64_fpu_register_names)
585 (sparc64_cp0_register_names, sparc64_register_names)
586 (sparc64_pseudo_register_names): Now const.
587 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
588 cp0_registers_num>: Now const.
589 * sparc-tdep.c (sparc_core_register_names)
590 (sparc32_fpu_register_names, sparc32_cp0_register_names)
591 (sparc32_pseudo_register_names): Now const.
592 (validate_tdesc_registers): Update.
593 * rust-lang.c (rust_extensions): Now const.
594 * p-lang.c (p_extensions): Now const.
595 * objc-lang.c (objc_extensions): Now const.
596 * nto-tdep.c (nto_thread_state_str): Now const.
597 * moxie-tdep.c (moxie_register_names): Now const.
598 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
599 Now const.
600 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
601 (mips_linux_reg_names): Now const.
602 (mips_gdbarch_init): Update.
603 * microblaze-tdep.c (microblaze_register_names): Now const.
604 * m68k-tdep.c (m68k_register_names): Now const.
605 * m32r-tdep.c (m32r_register_names): Now const.
606 * ia64-tdep.c (ia64_register_names): Now const.
607 * i386-tdep.h (struct gdbarch_tdep) <register_names,
608 ymmh_register_names, ymm16h_regnum, mpx_register_names,
609 k_register_names, zmmh_register_names, xmm_avx512_register_names,
610 ymm_avx512_register_names, pkeys_register_names>: Now const.
611 * i386-tdep.c (i386_register_names, i386_zmm_names)
612 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
613 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
614 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
615 * f-lang.c (f_extensions): Now const.
616 * d-lang.c (d_extensions): Now const.
617 * csky-tdep.c (csky_register_names): Now const.
618 * charset.c (default_charset_names, charset_enum): Now const.
619 (_initialize_charset): Update.
620 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
621 const.
622 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
623 (bsd_uthread_solib_loaded): Update.
624 (bsd_uthread_state): Now const.
625 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
626 (amd64_ymm_avx512_names, amd64_ymmh_names)
627 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
628 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
629 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
630 (amd64_dword_names): Now const.
631 * agent.c (can_use_agent_enum): Now const.
632 * ada-tasks.c (task_states, long_task_states): Now const.
633 * ada-lang.c (known_runtime_file_name_patterns)
634 (known_auxiliary_function_name_patterns, attribute_names)
635 (standard_exc, ada_extensions): Now const.
636
637 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * bcache.h (struct bcache) <bcache>: Remove constructor.
640 <m_hash_function, m_compare_function>: Remove.
641 <~bcache>: Make virtual.
642 <compare>: Remove static method, introduce virtual method.
643 <default_hash>: Remove.
644 <hash>: New virtual method.
645 * bcache.c (bcache::expand_hash_table): Update.
646 (bcache::insert): Update.
647 (bcache::hash): New.
648 (bcache::compare): Update comment and parameter names.
649 * gdbtypes.c (types_deeply_equal): Update.
650 * psymtab.h (struct psymbol_bcache): New struct.
651 (class psymtab_storage) <psymtab_storage>: Make default.
652 <psymbol_cache>: Change type to psymbol_bcache.
653 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
654 (psymbol_hash): Change to...
655 (psymbol_bcache::hash): ... this.
656 (psymbol_compare): Change to...
657 (psymbol_bcache::compare): ... this.
658
659 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
660
661 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
662 checking for initial lwp.
663
664 2020-09-14 Tom Tromey <tromey@adacore.com>
665
666 * m68k-tdep.c (m68k_extract_return_value): Use
667 pointer_result_regnum.
668 (m68k_store_return_value): Likewise.
669 (m68k_reg_struct_return_p): Handle vectors and arrays.
670 (m68k_return_value): Handle arrays.
671 (m68k_svr4_return_value): Fix single-element aggregate handling.
672 Handle long double. Adjust for embedded ABI.
673 (m68k_svr4_init_abi): Set pointer_result_regnum.
674 (m68k_embedded_init_abi): New function.
675 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
676 (m68k_osabi_sniffer): New function.
677 (_initialize_m68k_tdep): Register osabi sniffer.
678 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
679 member.
680
681 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
682
683 * xml-support.c (xml_fetch_content_from_file): Replace xfree
684 with gdb::unique_xmalloc_ptr<char>.
685
686 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * xml-support.h (xml_fetch_another): Change type to be a
689 function_view.
690 (xml_process_xincludes): Remove baton parameter.
691 (xml_fetch_content_from_file): Change baton parameter to
692 dirname.
693 * xml-support.c (struct xinclude_parsing_data)
694 <xinclude_parsing_data>: Remove baton parameter.
695 <fetcher_baton>: Remove.
696 (xinclude_start_include): Adjust.
697 (xml_process_xincludes): Adjust.
698 (xml_fetch_content_from_file): Replace baton parameter with
699 dirname.
700 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
701 (xml_init_syscalls_info): Use a lambda.
702 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
703 (file_read_description_xml): Use a lambda.
704 (fetch_available_features_from_target): Change baton parameter
705 to target_ops.
706 (target_read_description_xml): Use a lambda.
707 (target_fetch_description_xml): Use a lambda.
708 (string_read_description_xml): Update.
709
710 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
713 uses with type::endianity_is_not_default.
714
715 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
716
717 * gdbtypes.h (struct type) <endianity_is_not_default,
718 set_endianity_is_not_default>: New methods.
719 (TYPE_ENDIANITY_NOT_DEFAULT): Use
720 type::endianity_is_not_default, change all write call sites to
721 use type::set_endianity_is_not_default.
722
723 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
724
725 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
726 uses with type::is_fixed_instance.
727
728 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
729
730 * gdbtypes.h (struct type) <is_fixed_instance,
731 set_is_fixed_instance>: New methods.
732 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
733 write call sites to use type::set_is_fixed_instance.
734
735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
736
737 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
738 uses with type::is_gnu_ifunc.
739
740 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
741
742 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
743 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
744 use type::set_is_gnu_ifunc.
745
746 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
747
748 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
749 uses with type::stub_is_supported.
750
751 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
752
753 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
754 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
755 use type::set_stub_is_supported.
756
757 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
758
759 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
760 uses with type::is_vector.
761
762 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
763
764 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
765 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
766 use type::set_is_vector.
767
768 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
769
770 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
771 uses with type::has_varargs.
772
773 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
774
775 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
776 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
777 use type::set_has_varargs.
778
779 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
780
781 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
782 uses with type::is_prototyped.
783
784 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
785
786 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
787 New methods.
788 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
789 call sites to use type::set_is_prototyped.
790
791 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
792
793 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
794 uses with type::target_is_stub.
795
796 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
797
798 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
799 New methods.
800 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
801 sites to use type::set_target_is_stub.
802
803 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
804
805 * gdbtypes.h (TYPE_STUB): Remove, replace all
806 uses with type::is_stub.
807
808 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
809
810 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
811 (TYPE_STUB): Use type::is_stub, change all write call sites to
812 use type::set_is_stub.
813
814 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
815
816 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
817 type::has_no_signedness.
818
819 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
820
821 * gdbtypes.h (struct type) <has_no_signedness,
822 set_has_no_signedness>: New methods.
823 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
824 call sites to use type::set_has_no_signedness.
825
826 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
827
828 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
829 type::is_unsigned.
830
831 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
832
833 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
834 methods.
835 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
836 sites to use type::set_is_unsigned.
837
838 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
839 Adam Renquinha <arenquinha@cimeq.qc.ca>
840
841 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
842 pointer and stack frame offset when unwinding.
843
844 2020-09-13 Pedro Alves <pedro@palves.net>
845
846 * NEWS: Document "-break-insert --qualified".
847 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
848
849 2020-09-13 Pedro Alves <pedro@palves.net>
850
851 * linespec.c (classify_mtype, compare_msyms): Delete.
852 (search_minsyms_for_name): Remove classification logic. Instead
853 filter out trampoline symbols if we also found an external
854 function of the same name.
855
856 2020-09-13 Joel Brobecker <brobecker@adacore.com>
857
858 * NEWS: Create a new section for the next release branch.
859 Rename the section of the current branch, now that it has
860 been cut.
861
862 2020-09-13 Joel Brobecker <brobecker@adacore.com>
863
864 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
865 * version.in: Bump version to 11.0.50.DATE-git.
866
867 2020-09-12 Joel Brobecker <brobecker@adacore.com>
868
869 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
870
871 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
872 Felix Willgerodt <Felix.Willgerodt@intel.com>
873
874 * gdbarch.sh: Added bfloat16 type.
875 * gdbarch.c: Regenerated.
876 * gdbarch.h: Regenerated.
877 * gdbtypes.c (floatformats_bfloat16): New struct.
878 (gdbtypes_post_init): Add builtin_bfloat16.
879 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
880 (floatformats_bfloat16): New struct.
881 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
882 (i386_ymm_type): Add field "v16_bfloat16"
883 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
884 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
885 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
886 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
887 * features/i386/64bit-avx512.xml: Add bfloat16 type.
888 * features/i386/64bit-avx512.c: Regenerated.
889 * features/i386/64bit-sse.xml: Add bfloat16 type.
890 * features/i386/64bit-sse.c: Regenerated.
891
892 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
893
894 * i386-tdep.c (i386_zmm_type): Fix field names.
895 (i386_ymm_type): Fix field names.
896
897 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898
899 * breakpoint.c: Fix typo in the help message of the
900 "set breakpoint condition-evaluation" command.
901
902 2020-09-10 Kamil Rytarowski <n54@gmx.com>
903
904 * nbsd-nat.c: Include "nat/netbsd-nat.h".
905 * (nbsd_nat_target::pid_to_exec_file)
906 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
907 (nbsd_nat_target::post_startup_inferior)
908 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
909 (nbsd_add_threads): Switch local code to common gdb/nat functions.
910 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
911 * (nbsd_thread_lister): Remove.
912
913 2020-09-10 Kamil Rytarowski <n54@gmx.com>
914
915 * fork-inferior.c (startup_inferior): Avoid double free.
916
917 2020-09-10 Kamil Rytarowski <n54@gmx.com>
918
919 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
920 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
921
922 2020-09-10 Kamil Rytarowski <n54@gmx.com>
923
924 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
925 * netbsd-nat.c: Include <sys/ptrace.h>.
926 * (netbsd_nat::enable_proc_events): Add.
927
928 2020-09-10 Kamil Rytarowski <n54@gmx.com>
929
930 * netbsd-nat.h: Include "gdbsupport/function-view.h".
931 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
932 (netbsd_nat::for_each_thread): Add.
933 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
934 "gdbsupport/common-debug.h".
935 * (netbsd_nat::netbsd_thread_lister)
936 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
937 (netbsd_nat::for_each_thread): Add.
938
939 2020-09-10 Kamil Rytarowski <n54@gmx.com>
940
941 * netbsd-nat.h: Include <unistd.h>.
942 * (netbsd_nat::pid_to_exec_file): Add.
943 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
944 * (netbsd_nat::pid_to_exec_file) Add.
945
946 2020-09-10 Kamil Rytarowski <n54@gmx.com>
947
948 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
949
950 2020-09-10 Kamil Rytarowski <n54@gmx.com>
951
952 * netbsd-nat.h: New file.
953 * netbsd-nat.c: Likewise.
954
955 2020-09-09 Tom Tromey <tromey@adacore.com>
956
957 * ada-lang.c (remove_extra_symbols): Do not increment when
958 removing an element
959
960 2020-09-08 Tom Tromey <tromey@adacore.com>
961
962 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
963
964 2020-09-08 Tom Tromey <tromey@adacore.com>
965
966 PR win32/25302:
967 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
968 (gdb_bfd_init_data): New function.
969 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
970
971 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
972
973 * infrun.c (fetch_inferior_event): Use
974 `switch_to_target_no_thread` to switch the target.
975
976 2020-09-06 Tom Tromey <tom@tromey.com>
977
978 * symfile.h (dwarf2_free_objfile): Don't declare.
979
980 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
981
982 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
983 to match 16 byte real/complex type generated by Flang compiler.
984
985 2020-09-03 Tom de Vries <tdevries@suse.de>
986
987 PR breakpoint/26546
988 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
989 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
990
991 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
992
993 * maint.c (index_digits): New function.
994 (struct maint_print_section_data): Remove.
995 (print_bfd_section_info): Remove print_data parameter, add arg
996 and index_digits.
997 (print_objfile_section_info): Likewise.
998 (print_bfd_section_info_maybe_relocated): Likewise (plus
999 objfile).
1000 (maintenance_info_sections): Adjust calls.
1001
1002 2020-09-02 Tom Tromey <tromey@adacore.com>
1003
1004 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1005 for null pointers.
1006 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1007
1008 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1009
1010 * bcache.h (struct bcache) <insert>: Change type of `added` to
1011 pointer to bool.
1012 * bcache.c (bcache::insert): Likewise.
1013 * gdbtypes.c (check_types_worklist): Adjust.
1014 * psymtab.c (add_psymbol_to_bcache): Adjust.
1015
1016 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1017
1018 * corelow.c (unordered_set): Include.
1019 (class core_target): Add field 'm_core_unavailable_mappings'.
1020 (core_target::build_file_mappings): Print only one warning
1021 per inaccessible file. Add unavailable/broken mappings
1022 to m_core_unavailable_mappings.
1023 (core_target::xfer_partial): Call...
1024 (core_target::xfer_memory_via_mappings): New method.
1025
1026 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1029 type to bool.
1030
1031 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * dwarf2/read.c (struct field_info): Fix indentation.
1034
1035 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1038 ordering in comment.
1039 * frame.c (frame_id_eq): Fix indentation.
1040
1041 2020-08-31 Scott Linder <scott@scottlinder.com>
1042 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1045 inline frame ids in outer frame.
1046
1047 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1048
1049 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1050 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1051 (outer_frame_id): Use FID_STACK_OUTER instead of
1052 FID_STACK_INVALID.
1053 (frame_id_p): Don't check for outer_frame_id.
1054
1055 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1058 regnum/frame in value. Call allocate_value_lazy.
1059 * frame.c (frame_unwind_register_value): Use
1060 val_print_not_saved.
1061
1062 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1065
1066 2020-08-29 Pedro Alves <pedro@palves.net>
1067
1068 * progspace.c (print_program_space): Use all_inferiors. Switch to
1069 the inferior before calling target_pid_to_str.
1070
1071 2020-08-28 Tom Tromey <tom@tromey.com>
1072
1073 * xcoffread.c (xcoff_end_psymtab): Update comment.
1074 * dbxread.c (dbx_end_psymtab): Update comment.
1075
1076 2020-08-28 Tom de Vries <tdevries@suse.de>
1077
1078 PR breakpoint/26544
1079 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1080 event_location.
1081 (create_breakpoint): Same.
1082 (base_breakpoint_decode_location): Same.
1083 (bkpt_create_sals_from_location): Same.
1084 (bkpt_decode_location): Same.
1085 (bkpt_probe_create_sals_from_location): Same.
1086 (bkpt_probe_decode_location): Same.
1087 (tracepoint_create_sals_from_location): Same.
1088 (tracepoint_decode_location): Same.
1089 (tracepoint_probe_decode_location): Same.
1090 (strace_marker_create_sals_from_location): Same.
1091 (strace_marker_decode_location): Same.
1092 (create_sals_from_location_default): Same.
1093 (decode_location_default): Same.
1094 * breakpoint.h (struct breakpoint_ops): Same.
1095 (create_breakpoint): Same.
1096 * linespec.h (decode_line_full): Same.
1097 * linespec.c (decode_line_full): Same. Throw error if
1098 result.size () == 0.
1099
1100 2020-08-27 Pedro Alves <pedro@palves.net>
1101
1102 PR gdb/26524
1103 * breakpoint.c (until_break_fsm) <location_breakpoint,
1104 caller_breakpoint>: Delete fields.
1105 <breakpoints>: New field.
1106 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1107 two individual breakpoints.
1108 (until_break_fsm::should_stop): Loop over breakpoints in the
1109 breakpoint vector.
1110 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1111 vector.
1112 (until_break_command): Handle location expanding into multiple
1113 sals.
1114
1115 2020-08-27 Pedro Alves <pedro@palves.net>
1116
1117 PR gdb/26523
1118 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1119 bp_until breakpoints user-specified locations. Update intro
1120 comment.
1121
1122 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1125 gdb_bfd_sections): New.
1126 * maint.c (print_bfd_section_info): Change param type to
1127 maint_print_section_data.
1128 (print_objfile_section_info): Likewise.
1129 (print_bfd_section_info_maybe_relocated): Likewise.
1130 (maintenance_info_sections): Use gdb_bfd_sections.
1131
1132 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1133
1134 * MAINTAINERS: Add ARC target and maintainer.
1135
1136 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1137
1138 * configure.tgt: ARC support for GNU/Linux.
1139 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1140 * arc-linux-tdep.c: New file.
1141 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1142 * arc-tdep.c (arc_write_pc): Use it.
1143
1144 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1145
1146 * arc-tdep.c (arc_check_for_hardware_loop): New.
1147 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1148
1149 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1150
1151 * arc-tdep.h: Include "gdbarch.h".
1152
1153 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1154
1155 * arch/arc.h
1156 (arc_gdbarch_features): New class to stir the selection of target XML.
1157 (arc_create_target_description): Use FEATURES to choose XML target.
1158 (arc_lookup_target_description): Use arc_create_target_description
1159 to create _new_ target descriptions or return the already created
1160 ones if the FEATURES is the same.
1161 * arch/arc.c: Implementation of prototypes described above.
1162 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1163 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1164 * arc-tdep.c (*_feature_name): Make feature names consistent.
1165 (arc_register_feature): A new struct to hold information about
1166 registers of a particular target/feature.
1167 (arc_check_tdesc_feature): Check if XML provides registers in
1168 compliance with ARC_REGISTER_FEATURE structs.
1169 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1170 (determine_*_reg_feature_set): Which feature name to look for.
1171 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1172 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1173 to expected ISA enums to be used in arc_gdbarch_features structs.
1174 * features/Makefile (FEATURE_XMLFILES): Add new files.
1175 * gdb/features/arc/v1-aux.c: New file.
1176 * gdb/features/arc/v1-aux.xml: Likewise.
1177 * gdb/features/arc/v1-core.c: Likewise.
1178 * gdb/features/arc/v1-core.xml: Likewise.
1179 * gdb/features/arc/v2-aux.c: Likewise.
1180 * gdb/features/arc/v2-aux.xml: Likewise.
1181 * gdb/features/arc/v2-core.c: Likewise.
1182 * gdb/features/arc/v2-core.xml: Likewise.
1183 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1184
1185 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1186 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 PR m2/26372
1189 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1190 an assert. Remove single element array indexing pattern as the
1191 MULTI_SUBSCRIPT support will handle this case too.
1192
1193 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 * value.h (valprint_check_validity): Move declaration from
1196 here...
1197 * valprint.h (valprint_check_validity): ... to here.
1198
1199 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1200
1201 * debug.h: New file.
1202 * debug.c (debug_prefixed_vprintf): New function.
1203 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1204 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1205
1206 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1207
1208 * infrun.h (infrun_debug_printf_1): New function declaration.
1209 (infrun_debug_printf): New macro.
1210 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1211 throughout.
1212 (infrun_debug_printf): New function.
1213 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1214 (handle_jit_event): Likewise.
1215
1216 2020-08-21 Mark Wielaard <mark@klomp.org>
1217
1218 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1219
1220 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1221
1222 * frame.c (enum class frame_id_status): New.
1223 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1224 (fprintf_frame): Update.
1225 (compute_frame_id): Set frame id status to "computing" on entry.
1226 Set it back to "not_computed" on failure and to "computed" on
1227 success.
1228 (get_frame_id): Assert the frame id is not being computed.
1229 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1230 (create_new_frame): Likewise.
1231 (frame_cleanup_after_sniffer): Update assert.
1232
1233 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * regcache.c (pid_ptid_regcache_map): New type.
1236 (target_ptid_regcache_map): Remove.
1237 (target_pid_ptid_regcache_map): New type.
1238 (regcaches): Change type to target_pid_ptid_regcache_map.
1239 (get_thread_arch_aspace_regcache): Update.
1240 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1241 case.
1242 (regcaches_size): Update.
1243 (regcache_count): Update.
1244 (registers_changed_ptid_target_pid_test): New.
1245 (_initialize_regcache): Register new test.
1246
1247 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * regcache.c (regcache_count): New.
1250 (struct regcache_test_data): New.
1251 (regcache_test_data_up): New.
1252 (populate_regcaches_for_test): New.
1253 (regcaches_test): Remove.
1254 (get_thread_arch_aspace_regcache_test): New.
1255 (registers_changed_ptid_all_test): New.
1256 (registers_changed_ptid_target_test): New.
1257 (registers_changed_ptid_target_ptid_test): New.
1258 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1259 (_initialize_regcache): Register new tests.
1260
1261 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1262
1263 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1264 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1265 gdbarch and aspace parameter. Use current inferior's aspace.
1266 Validate regcache's arch value.
1267 (regcaches_test): Update.
1268
1269 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 * regcache.c (regcaches_test): Call registers_changed.
1272
1273 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274
1275 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1276
1277 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1278
1279 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1280 to find the end of prologue for flang compiled binaries.
1281 * arm-tdep.c (arm_skip_prologue): Likewise.
1282 * i386-tdep.c (i386_skip_prologue): Likewise.
1283 * producer.c (producer_is_llvm): New function.
1284 (producer_parsing_tests): Added new tests for clang/flang.
1285 * producer.h (producer_is_llvm): New declaration.
1286
1287 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1288
1289 * linux-nat.c (linux_nat_debug_printf): New function.
1290 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1291
1292 2020-08-18 Aaron Merey <amerey@redhat.com>
1293
1294 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1295 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1296 (CLIBS): Add DEBUGINFOD_LIBS.
1297
1298 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1299
1300 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1301 'gdbarch_num_regs'.
1302
1303 2020-08-17 Tom Tromey <tromey@adacore.com>
1304
1305 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1306 ada_get_decoded_value returns NULL.
1307
1308 2020-08-17 Tom Tromey <tromey@adacore.com>
1309
1310 * python/py-inferior.c (infpy_search_memory): Use
1311 gdb_py_object_from_ulongest.
1312 * python/py-infevents.c (create_inferior_call_event_object)
1313 (create_memory_changed_event_object): Use
1314 gdb_py_object_from_ulongest.
1315 * python/py-linetable.c (ltpy_entry_get_pc): Use
1316 gdb_py_object_from_ulongest.
1317
1318 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1319
1320 * loc.c (class symbol_needs_eval_context): Fix indentation.
1321
1322 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1323
1324 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1325 bool.
1326
1327 2020-08-17 Tom de Vries <tdevries@suse.de>
1328
1329 PR gdb/26393
1330 * gdbtypes.c (dump_dynamic_prop): New function.
1331 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1332
1333 2020-08-15 Tom de Vries <tdevries@suse.de>
1334
1335 PR backtrace/26390
1336 * stack.c (print_frame_args): Temporarily set the selected
1337 frame to FRAME while printing the frame's arguments.
1338
1339 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1340
1341 PR breakpoints/26385
1342 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1343 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1344
1345 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1346
1347 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1348 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1349 and >= to check return value instead of == -1 and != -1.
1350
1351 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * utils.h (class gdb_argv) <as_array_view>: New method.
1354 * utils.c (gdb_argv_as_array_view_test): New.
1355 (_initialize_utils): Register selftest.
1356 * maint.c (maintenance_selftest): Use the new method.
1357
1358 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1359
1360 * target.h (supports_dumpcore, dumpcore): New
1361 function declarations.
1362 * target.c (supports_dumpcore, dumpcore): New
1363 functions.
1364 * target-delegates.c: Rebuild.
1365 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1366 and target_dumpcore ().
1367
1368 2020-08-13 Aaron Merey <amerey@redhat.com>
1369
1370 * debuginfod-support.c: Replace global variables with user_data.
1371
1372 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * maint.c (maintenance_selftest): Split args and pass array_view
1375 to run_tests.
1376
1377 2020-08-12 Luis Machado <luis.machado@linaro.org>
1378
1379 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1380 type's length.
1381 Use %s and pulongest to print the length.
1382
1383 2020-08-12 Pedro Alves <palves@redhat.com>
1384
1385 * NEWS: Move "Multi-target debugging support" item to the
1386 "Changes since GDB 9" section.
1387
1388 2020-08-12 Pedro Alves <palves@redhat.com>
1389
1390 PR gdb/26336
1391 * progspace.c (program_space::remove_objfile): Invalidate the
1392 frame cache.
1393
1394 2020-08-11 Tom de Vries <tdevries@suse.de>
1395
1396 * MAINTAINERS: Mark ms1 as deleted.
1397
1398 2020-08-10 Luis Machado <luis.machado@linaro.org>
1399
1400 PR gdb/26310
1401
1402 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1403 act accordingly.
1404 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1405 movz/str/stur/stp skipping behavior.
1406
1407 2020-08-10 Luis Machado <luis.machado@linaro.org>
1408
1409 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1410 struct user_sve_header instead of struct sve_context.
1411
1412 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * read.h (dwarf2_fetch_die_loc_sect_off,
1415 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1416 `void *` parameter with function_view.
1417 * read.c (dwarf2_fetch_die_loc_sect_off,
1418 dwarf2_fetch_die_loc_cu_off): Likewise.
1419 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1420 (per_cu_dwarf_call): Adjust.
1421 (get_frame_address_in_block_wrapper): Remove.
1422 (indirect_synthetic_pointer): Adjust.
1423 (get_ax_pc): Remove.
1424 (dwarf2_compile_expr_to_ax): Adjust.
1425
1426 2020-08-08 Tom de Vries <tdevries@suse.de>
1427
1428 PR build/26344
1429 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1430 constructor.
1431 * regcache.c (get_thread_arch_aspace_regcache): Same.
1432
1433 2020-08-07 Tom Tromey <tromey@adacore.com>
1434
1435 * ravenscar-thread.c
1436 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1437 New method.
1438 (ravenscar_thread_target::wait): Check
1439 runtime_initialized.
1440 (ravenscar_thread_target::prepare_to_store)
1441 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1442 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1443 (ravenscar_thread_target::stopped_by_watchpoint)
1444 (ravenscar_thread_target::stopped_data_address)
1445 (ravenscar_thread_target::core_of_thread): Use
1446 scoped_restore_current_thread and
1447 set_base_thread_from_ravenscar_task.
1448
1449 2020-08-07 Tom Tromey <tromey@adacore.com>
1450
1451 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1452
1453 2020-08-07 Tom Tromey <tromey@adacore.com>
1454
1455 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1456 update_inferior_ptid before update_thread_list.
1457 (temporarily_change_regcache_ptid): New class.
1458 (ravenscar_thread_target::fetch_registers)
1459 (ravenscar_thread_target::store_registers)
1460 (ravenscar_thread_target::prepare_to_store): Use base thread when
1461 forwarding operation.
1462
1463 2020-08-07 Tom Tromey <tromey@adacore.com>
1464
1465 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1466 "is_pid" case.
1467
1468 2020-08-07 Tom Tromey <tromey@adacore.com>
1469
1470 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1471 New methods.
1472 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1473 first.
1474 (ravenscar_thread_target::add_thread): Rename from
1475 ravenscar_add_thread.
1476 (ravenscar_thread_target::update_thread_list): Use a lambda.
1477 (ravenscar_thread_target::xfer_partial): New method.
1478
1479 2020-08-07 Tom Tromey <tromey@adacore.com>
1480
1481 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1482 gdb::function_view.
1483 (iterate_over_live_ada_tasks): Change type of argument.
1484 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1485 of argument.
1486
1487 2020-08-07 Tom Tromey <tromey@adacore.com>
1488
1489 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1490 Remove.
1491 (ravenscar_thread_target::extra_thread_info): Remove.
1492 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1493 defer to target beneath for non-Ravenscar threads.
1494
1495 2020-08-07 Tom Tromey <tromey@adacore.com>
1496
1497 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1498 get_base_thread_from_ravenscar_task>: Now methods.
1499 <m_cpu_map>: New member.
1500 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1501 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1502 (ravenscar_thread_target::task_is_currently_active): Update.
1503 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1504 Now a method.
1505 (ravenscar_thread_target::add_active_thread): Put initial thread
1506 into the m_cpu_map.
1507
1508 2020-08-07 Tom Tromey <tromey@adacore.com>
1509
1510 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1511 event_ptid.
1512
1513 2020-08-07 Tom Tromey <tromey@adacore.com>
1514
1515 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1516 runtime_initialized.
1517
1518 2020-08-07 Tom Tromey <tromey@adacore.com>
1519
1520 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1521 add_active_thread.
1522 (ravenscar_thread_target::add_active_thread): Now public.
1523 (ravenscar_inferior_created): Call add_active_thread after pushing
1524 the target.
1525
1526 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * regcache.c (ptid_regcache_map): New type.
1529 (target_ptid_regcache_map): New type.
1530 (regcaches): Change type to target_ptid_regcache_map.
1531 (get_thread_arch_aspace_regcache): Update to regcaches' new
1532 type.
1533 (regcache_thread_ptid_changed): Likewise.
1534 (registers_changed_ptid): Likewise.
1535 (regcaches_size): Likewise.
1536 (regcaches_test): Update.
1537 (regcache_thread_ptid_changed): Update.
1538 * regcache.h (regcache_up): New type.
1539 * gdbsupport/ptid.h (hash_ptid): New struct.
1540
1541 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1542
1543 * observable.h (thread_ptid_changed): Add parameter
1544 `process_stratum_target *`.
1545 * infrun.c (infrun_thread_ptid_changed): Add parameter
1546 `process_stratum_target *` and use it.
1547 (selftests): New namespace.
1548 (infrun_thread_ptid_changed): New function.
1549 (_initialize_infrun): Register selftest.
1550 * regcache.c (regcache_thread_ptid_changed): Add parameter
1551 `process_stratum_target *` and use it.
1552 (regcache_thread_ptid_changed): New function.
1553 (_initialize_regcache): Register selftest.
1554 * thread.c (thread_change_ptid): Pass target to
1555 thread_ptid_changed observable.
1556
1557 2020-08-06 Caroline Tice <cmtice@google.com>
1558
1559 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1560 (struct dwp_sections): Update field comments. Add loclists and
1561 rnglists fields.
1562 (struct virtual_v2_dwo_sections): Rename struct to
1563 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1564 size & offset fields for loclists and rnglists.
1565 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1566 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1567 skipping dummy type units.
1568 (create_dwp_hash_table): Update the large comment above the function to
1569 discuss Version 5 DWP files as well, with references. Update all the
1570 version checks in the function to check for version 5 as well. Add new
1571 section at the end to create dwp hash table for version 5.
1572 (create_dwp_v2_section): Rename function to
1573 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1574 Add V5 to error message text.
1575 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1576 into calls to create_dwp_v2_or_v5_section.
1577 (create_dwo_unit_in_dwp_v5): New function.
1578 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1579 check for version2; add else clause to handle version 5.
1580 (open_and_init_dwo_file): Add code to check dwarf version & only call
1581 create_debug_types_hash_table (with sections.types) if version is not 5;
1582 else call create_debug_type_hash_table, with sections.info.
1583 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1584 version 5.
1585 (dwarf2_locate_v5_dwp_sections): New function.
1586 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1587 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1588
1589 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1590
1591 * regcache.h (class regcache): Remove friend
1592 registers_changed_ptid.
1593 <regcache_thread_ptid_changed>: Remove.
1594 <regcaches>: Remove.
1595 * regcache.c (regcache::regcaches): Rename to...
1596 (regcaches): ... this. Make static.
1597 (get_thread_arch_aspace_regcache): Update.
1598 (regcache::regcache_thread_ptid_changed): Rename to...
1599 (regcache_thread_ptid_changed): ... this. Update.
1600 (class regcache_access): Remove.
1601 (regcaches_test): Update.
1602 (_initialize_regcache): Update.
1603 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1604 <forward_list>.
1605
1606 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1607
1608 * regcache.h (class regcache) <current_regcache>: Rename to...
1609 <regcaches>: ... this. Move doc here.
1610 * regcache.c (regcache::current_regcache) Rename to...
1611 (regcache::regcaches): ... this. Move doc to header.
1612 (get_thread_arch_aspace_regcache): Update.
1613 (regcache::regcache_thread_ptid_changed): Update.
1614 (registers_changed_ptid): Update.
1615 (class regcache_access) <current_regcache_size>: Rename to...
1616 <regcaches_size>: ... this.
1617 (current_regcache_test): Rename to...
1618 (regcaches_test): ... this.
1619 (_initialize_regcache): Update.
1620
1621 2020-08-06 Victor Collod <vcollod@nvidia.com>
1622
1623 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1624
1625 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1626
1627 * corelow.c (core_target::build_file_mappings): Don't output
1628 null pathname in warning.
1629
1630 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1633 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1634 gdb.dwarf2/dw2-single-line-discriminators.exp,
1635 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1636
1637 2020-08-05 Tom Tromey <tromey@adacore.com>
1638
1639 PR rust/26197:
1640 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1641 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1642 Fix off-by-one and type size errors in ordinary case.
1643
1644 2020-08-05 Tom de Vries <tdevries@suse.de>
1645
1646 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1647 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1648
1649 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * frame.h (frame_id_p): Return bool.
1652 (frame_id_artificial_p): Return bool.
1653 (frame_id_eq): Return bool.
1654 (has_stack_frames): Return bool.
1655 (get_selected_frame): Fix typo in comment.
1656 (get_frame_pc_if_available): Return bool.
1657 (get_frame_address_in_block_if_available): Return bool.
1658 (get_frame_func_if_available): Return bool.
1659 (read_frame_register_unsigned): Return bool.
1660 (get_frame_register_bytes): Return bool.
1661 (safe_frame_unwind_memory): Return bool.
1662 (deprecated_frame_register_read): Return bool.
1663 (frame_unwinder_is): Return bool.
1664 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1665 bool.
1666 <this_id::p>: Likewise.
1667 <prev_p>: Likewise.
1668 (frame_stash_add): Return bool.
1669 (get_frame_id): Use bool.
1670 (frame_id_build_special) Use bool.
1671 (frame_id_build_unavailable_stack): Use bool.
1672 (frame_id_build): Use bool.
1673 (frame_id_p): Return bool, use true/false instead of 1/0.
1674 (frame_id_artificial_p): Likewise.
1675 (frame_id_eq): Likewise.
1676 (frame_id_inner): Likewise.
1677 (get_frame_func_if_available): Likewise.
1678 (read_frame_register_unsigned): Likewise.
1679 (deprecated_frame_register_read): Likewise.
1680 (get_frame_register_bytes): Likewise.
1681 (has_stack_frames): Likewise.
1682 (inside_main_func): Likewise.
1683 (inside_entry_func): Likewise.
1684 (get_frame_pc_if_available): Likewise.
1685 (get_frame_address_in_block_if_available): Likewise.
1686 (frame_unwinder_is): Likewise.
1687 (safe_frame_unwind_memory): Likewise.
1688 (frame_unwind_arch): Likewise.
1689
1690 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1693 type to cached_copy_status.
1694 (fprintf_frame): Adjust.
1695 (get_frame_func_if_available): Adjust.
1696 (frame_cleanup_after_sniffer): Adjust.
1697
1698 2020-08-04 Mark Wielaard <mark@klomp.org>
1699
1700 * MAINTAINERS (Write After Approval): Update email address.
1701
1702 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1703
1704 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1705 dynamic_prop::const_val.
1706
1707 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1708
1709 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1710 dynamic_prop::kind.
1711
1712 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1713
1714 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1715
1716 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1717
1718 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1719
1720 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1721 Jose E. Marchesi <jose.marchesi@oracle.com>
1722
1723 * configure.tgt: Add entry for bpf-*-*.
1724 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1725 (ALLDEPFILES): Add bpf-tdep.c.
1726 * bpf-tdep.c: New file.
1727 * MAINTAINERS: Add bpf target and maintainer.
1728 * NEWS: Mention the support for the new target.
1729
1730 2020-08-04 Tom de Vries <tdevries@suse.de>
1731
1732 PR symtab/23270
1733 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1734 Error.
1735
1736 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1737
1738 * syscalls/freebsd.xml: Regenerate.
1739
1740 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1741
1742 * syscalls/update-freebsd.sh: Fix usage and year range.
1743
1744 2020-08-03 Tom de Vries <tdevries@suse.de>
1745
1746 PR symtab/26333
1747 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1748 DW_LNE_lo_user/DW_LNE_hi_user range.
1749
1750 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1751
1752 PR ada/26318
1753 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1754 kind.
1755
1756 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1759
1760 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1761
1762 * breakpoint.c (set_breakpoint_condition): Update the condition
1763 expressions after checking that the input condition string parses
1764 successfully and does not contain junk at the end.
1765
1766 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1767
1768 * breakpoint.c (set_breakpoint_condition): Update the
1769 condition string after parsing the new condition successfully.
1770
1771 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1772
1773 * proc-api.c (_STRUCTURED_PROC): Don't define.
1774 * proc-events.c: Likewise.
1775 * proc-flags.c: Likewise.
1776 * proc-why.c: Likewise.
1777 * procfs.c: Likewise.
1778
1779 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1780 * configure, config.in: Regenerate.
1781
1782 2020-07-30 Tom de Vries <tdevries@suse.de>
1783
1784 PR build/26320
1785 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1786 m_red/m_green/m_blue in a union.
1787
1788 2020-07-29 Tom de Vries <tdevries@suse.de>
1789
1790 PR tdep/26280
1791 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1792
1793 2020-07-28 Tom Tromey <tromey@adacore.com>
1794
1795 PR symtab/26270:
1796 * symtab.h (find_pc_partial_function_sym): Declare.
1797 * cli/cli-cmds.c (disassemble_command): Use
1798 find_pc_partial_function_sym. Check asm_demangle.
1799 * blockframe.c (cache_pc_function_sym): New global.
1800 (cache_pc_function_name): Remove.
1801 (clear_pc_function_cache): Update.
1802 (find_pc_partial_function_sym): New function, from
1803 find_pc_partial_function.
1804 (find_pc_partial_function): Rewrite using
1805 find_pc_partial_function_sym.
1806
1807 2020-07-28 Tom Tromey <tromey@adacore.com>
1808
1809 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1810 help. Add usage.
1811
1812 2020-07-28 Tom Tromey <tromey@adacore.com>
1813
1814 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1815 <DW_OP_GNU_variable_value>: Cast to address type.
1816
1817 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1818
1819 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1820 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1821 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1822 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1823 (nbsd_get_siginfo_type): New.
1824 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1825 (_initialize_nbsd_tdep): New.
1826
1827 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1828
1829 PR binutils/26301
1830 * configure: Regenerated.
1831
1832 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1833
1834 PR binutils/26301
1835 * configure: Regenerated.
1836
1837 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * python/py-frame.c: Remove 'user-regs.h' include.
1840 (frapy_read_register): Rewrite to make use of
1841 gdbpy_parse_register_id.
1842 * python/py-registers.c (gdbpy_parse_register_id): New function,
1843 moved here from python/py-unwind.c. Updated the return type, and
1844 also accepts register descriptor objects.
1845 * python/py-unwind.c: Remove 'user-regs.h' include.
1846 (pyuw_parse_register_id): Moved to python/py-registers.c.
1847 (unwind_infopy_add_saved_register): Update to use
1848 gdbpy_parse_register_id.
1849 (pending_framepy_read_register): Likewise.
1850 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1851
1852 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * python/py-registers.c: Add 'user-regs.h' include.
1855 (register_descriptor_iter_find): New function.
1856 (register_descriptor_iterator_object_methods): New static global
1857 methods array.
1858 (register_descriptor_iterator_object_type): Add pointer to methods
1859 array.
1860
1861 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1862
1863 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1864 for all architectures on FreeBSD 11.3 and later.
1865
1866 2020-07-27 Tom Tromey <tromey@adacore.com>
1867
1868 * gcore.h (load_corefile): Don't declare.
1869
1870 2020-07-27 Tom de Vries <tdevries@suse.de>
1871
1872 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1873 * config.in: Regenerate.
1874 * configure: Regenerate.
1875
1876 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1877
1878 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1879 ws2tcpip.h. When checking whether socklen_t type is defined, use
1880 ws2tcpip.h if it is available and sys/socket.h isn't.
1881 * configure: Regenerate.
1882 * config.in: Regenerate.
1883
1884 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 PR fortran/23051
1887 PR fortran/26139
1888 * valops.c (value_ind): Pass address to
1889 readjust_indirect_value_type.
1890 * value.c (readjust_indirect_value_type): Make parameter
1891 non-const, and add extra address parameter. Resolve original type
1892 before using it.
1893 * value.h (readjust_indirect_value_type): Update function
1894 signature and comment.
1895
1896 2020-07-25 Tom de Vries <tdevries@suse.de>
1897
1898 PR symtab/26243
1899 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1900 entries.
1901
1902 2020-07-24 Aaron Merey <amerey@redhat.com>
1903
1904 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1905 * configure: Rebuild.
1906
1907 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1908
1909 PR corefiles/26294
1910 * corelow.c (_initialize_corelow): Add period to help text
1911 for "maintenance print core-file-backed-mappings".
1912
1913 2020-07-23 Pedro Alves <pedro@palves.net>
1914
1915 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1916 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1917 meanwhile.
1918 * frame.c (frame_cache_generation, get_frame_cache_generation):
1919 New.
1920 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1921 (get_prev_frame_if_no_cycle): On exception, don't touch
1922 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1923 * frame.h (get_frame_cache_generation): Declare.
1924
1925 2020-07-23 Tom de Vries <tdevries@suse.de>
1926
1927 PR tui/26282
1928 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1929 New default constructor.
1930
1931 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1934 exclude non-statement entries.
1935
1936 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1937
1938 * NEWS (New commands): Mention new command
1939 "maintenance print core-file-backed-mappings".
1940
1941 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1942
1943 * corelow.c (gdbcmd.h): Include.
1944 (core_target::info_proc_mappings): New method.
1945 (get_current_core_target): New function.
1946 (maintenance_print_core_file_backed_mappings): New function.
1947 (_initialize_corelow): Add core-file-backed-mappings to
1948 "maint print" commands.
1949
1950 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1951
1952 * linux-tdep.c (dump_note_entry_p): New function.
1953 (linux_dump_mapping_p_ftype): New typedef.
1954 (linux_find_memory_regions_full): Add new parameter,
1955 should_dump_mapping_p.
1956 (linux_find_memory_regions): Adjust call to
1957 linux_find_memory_regions_full.
1958 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1959 call to linux_find_memory_regions_full.
1960
1961 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1962
1963 * corelow.c (solist.h, unordered_map): Include.
1964 (class core_target): Add field m_core_file_mappings and
1965 method build_file_mappings.
1966 (core_target::core_target): Call build_file_mappings.
1967 (core_target::~core_target): Free memory associated with
1968 m_core_file_mappings.
1969 (core_target::build_file_mappings): New method.
1970 (core_target::xfer_partial): Use m_core_file_mappings
1971 for memory transfers.
1972 * linux-tdep.c (linux_read_core_file_mappings): New
1973 function.
1974 (linux_core_info_proc_mappings): Rewrite to use
1975 linux_read_core_file_mappings.
1976 (linux_init_abi): Register linux_read_core_file_mappings.
1977
1978 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1979
1980 * arch-utils.c (default_read_core_file_mappings): New function.
1981 * arch-utils.c (default_read_core_file_mappings): Declare.
1982 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1983 * gdbarch.h, gdbarch.c: Regenerate.
1984
1985 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1986
1987 PR corefiles/25631
1988 * corelow.c (core_target:xfer_partial): Revise
1989 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1990 case after first checking the stratum beneath the core
1991 target.
1992 (has_all_memory): Return true.
1993 * target.c (raw_memory_xfer_partial): Revise comment
1994 regarding use of has_all_memory.
1995
1996 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1997
1998 * exec.h (section_table_xfer_memory): Revise declaration,
1999 replacing section name parameter with an optional callback
2000 predicate.
2001 * exec.c (section_table_xfer_memory): Likewise.
2002 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2003 of section_table_xfer_memory.
2004
2005 2020-07-22 Tom Tromey <tromey@adacore.com>
2006
2007 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2008 lookup_symbol_search_name.
2009
2010 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2013 redundant local variable.
2014 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2015 reference, not pointer, update code accordingly.
2016
2017 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2018 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2019
2020 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2021 * jit.c (jit_breakpoint_re_set_internal): Use the
2022 `skip_jit_symbol_lookup` field.
2023
2024 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2025 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2026
2027 * jit.c (jit_read_descriptor): Define the descriptor address once,
2028 use twice.
2029 (jit_breakpoint_deleted): Move the declaration of the loop variable
2030 `iter` into the loop header.
2031 (jit_breakpoint_re_set_internal): Move the declaration of the local
2032 variable `objf_data` to the first point of definition.
2033 (jit_event_handler): Move the declaration of local variables
2034 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2035 Rename `objf` to `jited`.
2036
2037 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2040 Remove.
2041 * jit.c (get_jiter_objfile_data): Update.
2042
2043 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2044 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * jit.c (struct jit_program_space_data): Remove.
2047 (jit_program_space_key): Remove.
2048 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2049 stuff.
2050 (get_jit_program_space_data): Remove.
2051 (jit_breakpoint_deleted): Iterate on all of the program space's
2052 objfiles.
2053 (jit_inferior_init): Likewise.
2054 (jit_breakpoint_re_set_internal): Likewise. Also change return
2055 type to void.
2056 (jit_breakpoint_re_set): Pass current_program_space to
2057 jit_breakpoint_re_set_internal.
2058
2059 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 * jit.h (struct jiter_objfile_data) <cached_code_address,
2062 jit_breakpoint>: Move to here from ...
2063 * jit.c (jit_program_space_data): ... here.
2064 (jiter_objfile_data::~jiter_objfile_data): Update.
2065 (jit_breakpoint_deleted): Update.
2066 (jit_breakpoint_re_set_internal): Update.
2067
2068 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2069
2070 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2071 checks.
2072 (jit_read_descriptor): Remove NULL check.
2073 (jit_event_handler): Add an assertion.
2074
2075 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * jit.h (struct jit_objfile_data): Split into...
2078 (struct jiter_objfile_data): ... this ...
2079 (struct jited_objfile_data): ... and this.
2080 * objfiles.h (struct objfile) <jit_data>: Remove.
2081 <jiter_data, jited_data>: New fields.
2082 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2083 (jiter_objfile_data::~jiter_objfile_data): ... this.
2084 (get_jit_objfile_data): Rename to ...
2085 (get_jiter_objfile_data): ... this.
2086 (add_objfile_entry): Update.
2087 (jit_read_descriptor): Use get_jiter_objfile_data.
2088 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2089 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2090 (jit_inferior_exit_hook): Use objfile's jited_data field.
2091
2092 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * jit.h: Forward-declare `struct minimal_symbol`.
2095 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2096 constructor, destructor, and an objfile* field.
2097 * jit.c (jit_objfile_data): Remove.
2098 (struct jit_objfile_data): Migrate from here to jit.h.
2099 (jit_objfile_data::~jit_objfile_data): New destructor
2100 implementation with code moved from free_objfile_data.
2101 (free_objfile_data): Delete.
2102 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2103 (jit_find_objf_with_entry_addr): Ditto.
2104 (jit_inferior_exit_hook): Ditto.
2105 (_initialize_jit): Remove the call to
2106 register_objfile_data_with_cleanup.
2107 * objfiles.h (struct objfile) <jit_data>: New field.
2108
2109 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2110
2111 * jit.h: Forward-declare `struct objfile`.
2112 (jit_event_handler): Add a second parameter, the JITer objfile.
2113 * jit.c (jit_read_descriptor): Change the signature to take the
2114 JITer objfile as an argument instead of the jit_program_space_data.
2115 (jit_inferior_init): Update the call to jit_read_descriptor.
2116 (jit_event_handler): Use the new JITer objfile argument when calling
2117 jit_read_descriptor.
2118 * breakpoint.c (handle_jit_event): Update the call to
2119 jit_event_handler to pass the JITer objfile.
2120
2121 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2122
2123 * gdbarch.c: Regenerate.
2124 * gdbarch.h: Regenerate.
2125 * gdbarch.sh (handle_segmentation_fault): Remove method.
2126 * infrun.c (handle_segmentation_fault): Remove.
2127 (print_signal_received_reason): Remove call to
2128 handle_segmentation_fault.
2129
2130 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2131
2132 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2133 Rename to sparc64_linux_report_signal_info and add siggnal
2134 argument.
2135 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2136 instead of sparc64_linux_handle_segmentation_fault.
2137
2138 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2139
2140 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2141 i386_linux_report_signal_info instead of
2142 i386_linux_handle_segmentation_fault.
2143 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2144 to i386_linux_report_signal_info and add siggnal argument.
2145 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2146 of i386_linux_handle_segmentation_fault.
2147 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2148 to i386_linux_report_signal_info and add siggnal argument.
2149
2150 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2151
2152 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2153 hook if present.
2154
2155 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2156
2157 * gdbarch.c: Regenerate.
2158 * gdbarch.h: Regenerate.
2159 * gdbarch.sh (report_signal_info): New method.
2160 * infrun.c (print_signal_received_reason): Invoke gdbarch
2161 report_signal_info hook if present.
2162
2163 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * python/py-registers.c : Add 'unordered_map' include.
2166 (gdbpy_new_reggroup): Renamed to...
2167 (gdbpy_get_reggroup): ...this. Update to only create register
2168 group descriptors when needed.
2169 (gdbpy_reggroup_iter_next): Update.
2170
2171 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2172
2173 * python/py-registers.c (gdbpy_register_object_data): New static
2174 global.
2175 (gdbpy_register_object_data_init): New function.
2176 (gdbpy_new_register_descriptor): Renamed to...
2177 (gdbpy_get_register_descriptor): ...this, and update to reuse
2178 existing register descriptors where possible.
2179 (gdbpy_register_descriptor_iter_next): Update.
2180 (gdbpy_initialize_registers): Register new gdbarch data.
2181
2182 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2183
2184 * linux-nat.c (stopped_pids): Make static.
2185
2186 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2187
2188 PR ada/26235
2189 * gdbtypes.c (ada_discrete_type_low_bound,
2190 ada_discrete_type_high_bound): Handle undefined bounds.
2191
2192 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2193
2194 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2195 declaration.
2196 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2197 function.
2198
2199 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2200
2201 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2202 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2203 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2204 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2205 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2206 method.
2207
2208 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2209
2210 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2211 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2212 which are deprecated in Guile 3.0.
2213 * configure.ac (try_guile_versions): Add "guile-3.0".
2214 * configure (try_guile_versions): Regenerate.
2215 * NEWS: Update entry.
2216
2217 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2218 Doug Evans <dje@google.com>
2219
2220 PR gdb/21104
2221 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2222 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2223 USING_GUILE_BEFORE_2_2.
2224 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2225 Change type to 'scm_t_port_type *'.
2226 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2227 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2228 parameter and honor it. Update callers.
2229 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2230 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2231 functions.
2232 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2233 USING_GUILE_BEFORE_2_2.
2234 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2235 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2236 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2237 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2238 and 'SCM_PORT_TYPE'.
2239 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2240 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2241 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2242 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2243 [!USING_GUILE_BEFORE_2_2]: New functions.
2244 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2245 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2246 'gdbscm_memory_port_read'.
2247 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2248 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2249 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2250 function.
2251 (ioscm_init_memory_port): Remove.
2252 (ioscm_init_memory_port_stream): New function
2253 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2254 function.
2255 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2256 Return scm_from_uint (0).
2257 (gdbscm_set_memory_port_read_buffer_size_x)
2258 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2259 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2260 Return scm_from_uint (0).
2261 (gdbscm_set_memory_port_write_buffer_size_x)
2262 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2263 * configure.ac (try_guile_versions): Add "guile-2.2".
2264 * configure: Regenerate.
2265 * NEWS: Add entry.
2266
2267 2020-07-18 Tom Tromey <tom@tromey.com>
2268
2269 * linux-nat.c (linux_multi_process): Remove.
2270 (linux_nat_target::supports_multi_process): Return true.
2271
2272 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2273
2274 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2275 (riscv_lookup_target_description): Return pointer out of
2276 unique_ptr.
2277 * target-descriptions.c (allocate_target_description): Add
2278 comment.
2279 (target_desc_deleter::operator()): Likewise.
2280 * target-descriptions.h (struct target_desc_deleter): Moved to
2281 gdbsupport/tdesc.h.
2282 (target_desc_up): Likewise.
2283
2284 2020-07-17 Tom Tromey <tromey@adacore.com>
2285
2286 * linux-nat.c (linux_nat_target::supports_non_stop)
2287 (linux_nat_target::always_non_stop_p): Use "true".
2288 (linux_nat_target::supports_disable_randomization): Use "true" and
2289 "false".
2290
2291 2020-07-16 Caroline Tice <cmtice@google.com>
2292
2293 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2294 (RNGLIST_HEADER_SIZE64): New constant definition.
2295 (struct dwop_section_names): Add rnglists_dwo.
2296 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2297 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2298 (struct dwo_sections): Add rnglists field.
2299 (read_attribut_reprocess): Add tag parameter.
2300 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2301 (cu_debug_rnglists_section): New function (decl & definition).
2302 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2303 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2304 die whose range is being checked; get rnglist section from
2305 cu_debug_rnglists_section, to get from either objfile or dwo file as
2306 appropriate. Add cases for DW_RLE_base_addressx,
2307 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2308 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2309 test inside if-condition and updating complaint message.
2310 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2311 dwarf2_rnglists_process.
2312 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2313 dwarf2_ranges_process.
2314 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2315 need_ranges_base and update comment appropriately. Also pass die tag
2316 to dwarf2_ranges_read.
2317 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2318 need_ranges_base and update comment appropriately. Also pass die tag
2319 to dwarf2_ranges_process.
2320 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2321 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2322 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2323 need_ranges_base and update comment appropriately. Also pass die tag
2324 to read_attribute_reprocess and dwarf2_ranges_read.
2325 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2326 and update function comment appropriately.
2327 (read_loclist_index): Call read_loclists_rnglists_header instead of
2328 read_loclist_header.
2329 (read_rnglist_index): New function.
2330 (read_attribute_reprocess): Add tag parameter. Add code for
2331 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2332 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2333
2334 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2335
2336 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2337 being resolved.
2338
2339 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * arch-utils.c (show_architecture): Update formatting of messages.
2342
2343 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2344
2345 * gdbtypes.h (struct type) <bounds>: Handle array and string
2346 types.
2347 * ada-lang.c (assign_aggregate): Use type::bounds on
2348 array/string type.
2349 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2350 * c-varobj.c (c_number_of_children): Likewise.
2351 (c_describe_child): Likewise.
2352 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2353 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2354 (f_type_print_base): Likewise.
2355 * f-valprint.c (f77_array_offset_tbl): Likewise.
2356 (f77_get_upperbound): Likewise.
2357 (f77_print_array_1): Likewise.
2358 * guile/scm-type.c (gdbscm_type_range): Likewise.
2359 * m2-typeprint.c (m2_array): Likewise.
2360 (m2_is_long_set_of_type): Likewise.
2361 * m2-valprint.c (get_long_set_bounds): Likewise.
2362 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2363 * python/py-type.c (typy_range): Likewise.
2364 * rust-lang.c (rust_internal_print_type): Likewise.
2365 * type-stack.c (type_stack::follow_types): Likewise.
2366 * valarith.c (value_subscripted_rvalue): Likewise.
2367 * valops.c (value_cast): Likewise.
2368
2369 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2370
2371 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2372 callers to use the equivalent accessor methods.
2373
2374 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2375
2376 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2377 (struct type) <bit_stride>: New method.
2378 (TYPE_BIT_STRIDE): Remove.
2379 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2380
2381 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2384 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2385 callers to use the equivalent accessor methods instead.
2386
2387 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2388
2389 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2390 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2391 callers to use the equivalent accessor methods instead.
2392
2393 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2396 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2397 to use dynamic_prop::kind.
2398
2399 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2402 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2403 to get the bound property's kind and check against
2404 PROP_UNDEFINED.
2405
2406 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2409 all callers to use type::range_bounds followed by
2410 dynamic_prop::{low,high}.
2411
2412 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2415 const_val, set_const_val, baton, set_locexpr, set_loclist,
2416 set_addr_offset, variant_parts, set_variant_parts,
2417 original_type, set_original_type>: New methods.
2418 <kind>: Rename to...
2419 <m_kind>: ... this. Update all users to use the new methods
2420 instead.
2421 <data>: Rename to...
2422 <m_data>: ... this. Update all users to use the new methods
2423 instead.
2424
2425 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * gdbtypes.c (get_discrete_bounds): Return failure if
2428 the range type's bounds are not both defined and constant
2429 values.
2430 (get_array_bounds): Update comment. Remove undefined bound check.
2431
2432 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2433
2434 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2435 the type::bounds method directly.
2436
2437 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2438
2439 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2440 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2441 are used to set the range type's bounds to use set_bounds.
2442
2443 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2444
2445 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2446
2447 2020-07-10 Pedro Alves <pedro@palves.net>
2448
2449 * gdbthread.h (inferior_ref): Define.
2450 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2451 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2452 * thread.c
2453 (scoped_restore_current_thread::restore):
2454 Adjust to gdb::ref_ptr.
2455 (scoped_restore_current_thread::~scoped_restore_current_thread):
2456 Remove manual decref handling.
2457 (scoped_restore_current_thread::scoped_restore_current_thread):
2458 Adjust to use
2459 inferior_ref::new_reference/thread_info_ref::new_reference.
2460 Incref the thread before calling get_frame_id instead of after.
2461 Let TARGET_CLOSE_ERROR propagate.
2462
2463 2020-07-10 Pedro Alves <pedro@palves.net>
2464
2465 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2466 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2467 NOT_AVAILABLE_ERROR.
2468 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2469 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2470
2471 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2472 Pedro Alves <pedro@palves.net>
2473
2474 PR gdb/26199
2475 * infrun.c (threads_are_resumed_pending_p): Delete.
2476 (do_target_wait): Remove threads_are_executing and
2477 threads_are_resumed_pending_p checks from the inferior_matches
2478 lambda. Update comments.
2479
2480 2020-07-10 Pedro Alves <pedro@palves.net>
2481
2482 PR gdb/26199
2483 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2484 executing threads.
2485
2486 2020-07-10 Pedro Alves <pedro@palves.net>
2487
2488 PR gdb/26199
2489 * infrun.c (handle_no_resumed): Handle multiple targets.
2490
2491 2020-07-10 Pedro Alves <pedro@palves.net>
2492
2493 PR gdb/26199
2494 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2495 target_is_async_p.
2496
2497 2020-07-10 Pedro Alves <pedro@palves.net>
2498
2499 PR gdb/26199
2500 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2501 threads, not all threads.
2502
2503 2020-07-10 Pedro Alves <pedro@palves.net>
2504
2505 PR gdb/26199
2506 * remote.c (remote_target::open_1): Pass remote target pointer as
2507 data to create_async_event_handler.
2508 (remote_async_inferior_event_handler): Mark async event handler
2509 before returning if the remote target still has either pending
2510 events or unacknowledged notifications.
2511
2512 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2513
2514 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2515 declaration.
2516 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2517 function.
2518
2519 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2520
2521 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2522 inferior_ptid.
2523
2524 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2525
2526 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2527 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2528 AT_FREEBSD_PS_STRINGS.
2529
2530 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2531
2532 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2533 of debugfile path on Windows.
2534
2535 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2536
2537 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2538 argument to 'data'.
2539
2540 2020-07-08 Tom Tromey <tromey@adacore.com>
2541
2542 * ada-lang.c (ada_exception_message_1): Use read_memory.
2543
2544 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 PR python/22748
2547 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2548 special handling for inline frames.
2549 * findvar.c (value_of_register_lazy): Skip inline frames when
2550 creating lazy register values.
2551 * frame.c (frame_id_computed_p): Delete definition.
2552 * frame.h (frame_id_computed_p): Delete declaration.
2553
2554 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2555
2556 * NEWS: Mention additions to Python API.
2557 * python/py-arch.c (archpy_register_groups): New function.
2558 (arch_object_methods): Add 'register_groups' method.
2559 * python/py-registers.c (reggroup_iterator_object): New struct.
2560 (reggroup_object): New struct.
2561 (gdbpy_new_reggroup): New function.
2562 (gdbpy_reggroup_to_string): New function.
2563 (gdbpy_reggroup_name): New function.
2564 (gdbpy_reggroup_iter): New function.
2565 (gdbpy_reggroup_iter_next): New function.
2566 (gdbpy_new_reggroup_iterator): New function
2567 (gdbpy_initialize_registers): Register new types.
2568 (reggroup_iterator_object_type): Define new Python type.
2569 (gdbpy_reggroup_getset): New static global.
2570 (reggroup_object_type): Define new Python type.
2571 * python/python-internal.h
2572
2573 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2576 * python/py-arch.c (archpy_registers): New function.
2577 (arch_object_methods): Add 'registers' method.
2578 * python/py-registers.c: New file.
2579 * python/python-internal.h
2580 (gdbpy_new_register_descriptor_iterator): Declare.
2581 (gdbpy_initialize_registers): Declare.
2582 * python/python.c (do_start_initialization): Call
2583 gdbpy_initialize_registers.
2584 * NEWS: Mention additions to the Python API.
2585
2586 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * NEWS: Mention new Python API method.
2589 * python/py-unwind.c (pending_framepy_architecture): New function.
2590 (pending_frame_object_methods): Add architecture method.
2591
2592 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * gdbarch.c: Regenerate.
2595 * gdbarch.h: Regenerate.
2596 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2597 (gdbarch_data): Use internal_error for the case where
2598 deprecated_set_gdbarch_data was originally needed.
2599 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2600 and use passed in obstack.
2601 (libunwind_frame_set_descr): Should no longer get back NULL from
2602 gdbarch_data.
2603 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2604 type.
2605 * user-regs.c (user_regs_init): Update parameters, and use passed
2606 in obstack.
2607 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2608 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2609
2610 2020-07-06 Tom de Vries <tdevries@suse.de>
2611
2612 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2613 End-Of-Sequence in lte_is_less_than.
2614 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2615 "gdb: Don't reorder line table entries too much when sorting".
2616
2617 2020-07-06 Tom de Vries <tdevries@suse.de>
2618
2619 PR tui/26205
2620 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2621
2622 2020-07-05 Tom de Vries <tdevries@suse.de>
2623
2624 PR build/26187
2625 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2626 std::uncaught_exceptions instead of deprecated
2627 std::uncaught_exception.
2628
2629 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2630
2631 * macroexp.h (macro_stringify): Return
2632 gdb::unique_xmalloc_ptr<char>.
2633 * macroexp.c (macro_stringify): Likewise.
2634 * macrotab.c (fixup_definition): Update.
2635
2636 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2639 (lex_one_token): Update.
2640 * macroexp.c (struct macro_buffer) <release>: Return
2641 gdb::unique_xmalloc_ptr<char>.
2642 (macro_stringify): Update.
2643 (macro_expand): Update.
2644 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2645 * macroexp.h (macro_expand_next): Likewise.
2646
2647 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * macroexp.h (macro_lookup_ftype): Remove.
2650 (macro_expand, macro_expand_once, macro_expand_next): Remove
2651 lookup function parameters, add scope parameter.
2652 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2653 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2654 * macroscope.h (standard_macro_lookup): Change parameter type
2655 to macro_scope.
2656 * macroscope.c (standard_macro_lookup): Likewise.
2657 * c-exp.y (lex_one_token): Update.
2658 * macrocmd.c (macro_expand_command): Likewise.
2659 (macro_expand_once_command): Likewise.
2660
2661 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2662
2663 * inf-loop.c (inferior_event_handler): Remove client_data param.
2664 * inf-loop.h (inferior_event_handler): Likewise.
2665 * infcmd.c (step_1): Adjust.
2666 * infrun.c (proceed): Adjust.
2667 (fetch_inferior_event): Remove client_data param.
2668 (infrun_async_inferior_event_handler): Adjust.
2669 * infrun.h (fetch_inferior_event): Remove `void *` param.
2670 * linux-nat.c (handle_target_event): Adjust.
2671 * record-btrace.c (record_btrace_handle_async_inferior_event):
2672 Adjust.
2673 * record-full.c (record_full_async_inferior_event_handler):
2674 Adjust.
2675 * remote.c (remote_async_inferior_event_handler): Adjust.
2676
2677 2020-07-01 Tom Tromey <tom@tromey.com>
2678
2679 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2680 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2681
2682 2020-07-01 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2685 tui_gen_win_info.
2686 (tui_win_info::make_window): Merge with
2687 tui_gen_win_info::make_window.
2688 (tui_win_info::make_visible): Move from tui_gen_win_info.
2689 * tui/tui-win.c (tui_win_info::max_width): Move from
2690 tui_gen_win_info.
2691 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2692 type.
2693 <window_factory>: Likewise.
2694 * tui/tui-layout.c (tui_win_info::resize): Move from
2695 tui_gen_win_info.
2696 (make_standard_window): Change return type.
2697 (get_locator_window, tui_get_window_by_name): Likewise.
2698 (tui_layout_window::apply): Remove a cast.
2699 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2700 (struct tui_win_info): Merge with tui_gen_win_info.
2701 (struct tui_gen_win_info): Remove.
2702
2703 2020-07-01 Tom Tromey <tom@tromey.com>
2704
2705 * tui/tui-stack.h (struct tui_locator_window): Derive from
2706 tui_win_info.
2707 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2708 <can_box>: New method.
2709
2710 2020-07-01 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2713
2714 2020-07-01 Tom Tromey <tom@tromey.com>
2715
2716 * tui/tui-regs.c (tui_data_window::display_registers_from)
2717 (tui_data_window::display_registers_from)
2718 (tui_data_window::first_data_item_displayed)
2719 (tui_data_window::delete_data_content_windows): Update.
2720 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2721 Remove.
2722 (tui_data_window::check_register_values): Update.
2723 (tui_data_item_window::rerender): Add parameters. Update.
2724 (tui_data_item_window::refresh_window): Remove.
2725 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2726 virtual.
2727 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2728 tui_gen_win_info.
2729 <refresh_window, max_height, min_height>: Remove.
2730 <rerender>: Add parameters.
2731 <x, y, visible>: New members.
2732 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2733 <m_item_width>: New member.
2734
2735 2020-07-01 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-regs.c (tui_data_window::show_register_group)
2738 (tui_data_window::check_register_values): Update.
2739 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2740 from item_no.
2741
2742 2020-07-01 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2745 useless "if".
2746
2747 2020-07-01 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2750 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2751
2752 2020-07-01 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2755 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2756 (struct tui_line_or_address): Move from tui-data.h.
2757 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2758 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2759 (tui_cmd_window, tui_source_window_base, tui_source_window)
2760 (tui_disasm_window): Don't declare.
2761 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2762 to tui-winsource.h.
2763 (SINGLE_KEY): Move to tui-stack.c.
2764
2765 2020-07-01 Tom Tromey <tom@tromey.com>
2766
2767 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2768 std::string.
2769 * tui/tui-regs.c (class tab_expansion_file): New.
2770 (tab_expansion_file::write): New method.
2771 (tui_register_format): Change return type. Use
2772 tab_expansion_file.
2773 (tui_get_register, tui_data_window::display_registers_from)
2774 (tui_data_item_window::rerender): Update.
2775 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2776 * tui/tui-io.c (tui_expand_tabs): Remove.
2777
2778 2020-07-01 Tom Tromey <tom@tromey.com>
2779
2780 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2781
2782 2020-07-01 Fangrui Song <maskray@google.com>
2783
2784 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2785
2786 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2787
2788 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2789 forms for DW_AT_associated and DW_AT_allocated attributes,
2790 which is already checked in function attr_to_dynamic_prop.
2791
2792 2020-06-30 Tom Tromey <tromey@adacore.com>
2793
2794 * dwarf2/read.c (quirk_rust_enum): Correctly call
2795 alloc_rust_variant for default-less enum.
2796
2797 2020-06-30 Tom Tromey <tromey@adacore.com>
2798
2799 PR build/26183:
2800 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2801 gdb::to_string.
2802
2803 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2804
2805 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2806 * gdbarch.h: Re-generate.
2807
2808 2020-06-28 Tom Tromey <tom@tromey.com>
2809
2810 * command.h (cmd_types): Remove.
2811 (cmd_type): Don't declare.
2812 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2813 typedef.
2814 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2815 * cli/cli-decode.c (cmd_type): Remove.
2816
2817 2020-06-27 Pedro Alves <palves@redhat.com>
2818
2819 * fork-child.c (prefork_hook): Adjust.
2820 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2821 Delete.
2822 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2823 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2824 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2825 Remove declarations.
2826 (struct inferior) <set_tty, tty>: New methods.
2827 (struct inferior) <terminal>: Rename to ...
2828 (struct inferior) <m_terminal>: ... this and make private.
2829 * main.c (captured_main_1): Adjust.
2830 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2831 (mi_cmd_inferior_tty_show): Adjust.
2832 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2833 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2834
2835 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2836
2837 * configure.ac: Add --enable-libctf: handle --disable-static
2838 properly.
2839 * acinclude.m4: sinclude ../config/enable.m4.
2840 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2841 (LIBCTF): Substitute in.
2842 (CTF_DEPS): New, likewise.
2843 (CLIBS): libctf needs symbols from libbfd: move earlier.
2844 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2845 flags.
2846 * ctfread.c: Surround in ENABLE_LIBCTF.
2847 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2848 * configure: Regenerate.
2849 * config.in: Likewise.
2850
2851 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2854
2855 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * inferior.h (struct inferior) <terminal>: Change type to
2858 gdb::unique_xmalloc_ptr<char>.
2859 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2860 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2861 field, adjust to unique pointer.
2862 (get_inferior_io_terminal): Adjust to unique pointer.
2863
2864 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2867 registers, not just the known core set of registers.
2868
2869 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2870
2871 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2872 fflags, frm, and fcsr registers.
2873 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2874 restore groups.
2875 (riscv_tdesc_unknown_reg): New function.
2876 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2877 tdesc_use_registers.
2878 * riscv-tdep.h (struct gdbarch_tdep): Add
2879 unknown_csrs_first_regnum, unknown_csrs_count,
2880 duplicate_fflags_regnum, duplicate_frm_regnum, and
2881 duplicate_fcsr_regnum fields.
2882
2883 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2886 callback, use the callback (when not null) to help number unknown
2887 registers.
2888 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2889 (tdesc_use_registers): Add extra parameter to declaration.
2890
2891 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2892
2893 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2894 in the file.
2895 (class riscv_pending_register_alias): Likewise.
2896 (riscv_register_feature::register_info): Change 'required_p' field
2897 to 'required', and change its type. Add 'check' member function.
2898 (riscv_register_feature::register_info::check): Define new member
2899 function.
2900 (riscv_xreg_feature): Change initialisation of 'required' field.
2901 (riscv_freg_feature): Likewise.
2902 (riscv_virtual_feature): Likewise.
2903 (riscv_csr_feature): Likewise.
2904 (riscv_check_tdesc_feature): Take extra parameter, the csr
2905 tdesc_feature, rewrite the function to use the new
2906 riscv_register_feature::register_info::check function.
2907 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2908
2909 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * features/Makefile: Remove all references to the deleted files
2912 below.
2913 * features/riscv/32bit-csr.c: Deleted.
2914 * features/riscv/32bit-csr.xml: Deleted.
2915 * features/riscv/64bit-csr.c: Deleted.
2916 * features/riscv/64bit-csr.xml: Deleted.
2917 * features/riscv/rebuild-csr-xml.sh: Deleted.
2918
2919 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2922 whitespace error for declaration of names member variable.
2923 (struct riscv_register_feature): Add new prefer_first_name member
2924 variable, and fix whitespace error in declaration of registers.
2925 (riscv_xreg_feature): Initialize prefer_first_name field.
2926 (riscv_freg_feature): Likewise.
2927 (riscv_virtual_feature): Likewise.
2928 (riscv_csr_feature): Likewise.
2929 (riscv_register_name): Expand on comments. Remove register name
2930 modifications for CSR and virtual registers.
2931
2932 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2935 errors.
2936
2937 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2940 riscv-opc.h.
2941 (class riscv_pending_register_alias): New class.
2942 (riscv_check_tdesc_feature): Take vector of pending aliases and
2943 populate it as appropriate.
2944 (riscv_setup_register_aliases): Delete.
2945 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2946 to riscv_check_tdesc_feature in all cases. Use the vector to
2947 create the register aliases.
2948
2949 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2950
2951 * sol2-tdep.c (sol2_static_transform_name): Remove.
2952 (sol2_init_abi): Don't register it.
2953 * gdbarch.sh (static_transform_name): Remove.
2954 * gdbarch.c, gdbarch.h: Regenerate.
2955
2956 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2957 gdbarch_static_transform_name.
2958 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2959 * stabsread.c (define_symbol) <'X'>: Remove.
2960 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2961 handling.
2962 <'V'>: Likewise.
2963 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2964 <'S'>: Remove call to gdbarch_static_transform_name.
2965
2966 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2967
2968 * procfs.c (procfs_pre_trace): New function.
2969 (procfs_target::create_inferior): Pass it to fork_inferior.
2970
2971 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2972
2973 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2974 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2975 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2976 sol2-tdep.o, sparc-sol2-tdep.o.
2977 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2978 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2979 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2980 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2981
2982 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2983
2984 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2985 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2986 Call sol2_init_abi.
2987 Remove calls to set_gdbarch_skip_solib_resolver,
2988 set_gdbarch_core_pid_to_str.
2989 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2990 (i386_sol2_static_transform_name): Remove.
2991 (i386_sol2_init_abi): Call sol2_init_abi.
2992 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2993 set_gdbarch_static_transform_name,
2994 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2995 Use sol2_sigtramp_p.
2996 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2997 (sol2_sigtramp_p): New function.
2998 (sol2_static_transform_name): New function.
2999 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3000 (sol2_init_abi): New function.
3001 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3002 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3003 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3004 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3005 (sparc_sol2_static_transform_name): Remove.
3006 (sparc32_sol2_init_abi): Call sol2_init_abi.
3007 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3008 set_gdbarch_static_transform_name,
3009 set_gdbarch_skip_solib_resolver,
3010 set_gdbarch_core_pid_to_str.
3011 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3012 (sparc_sol2_static_transform_name): Remove
3013 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3014 call sol2_sigtramp_p.
3015 (sparc64_sol2_init_abi): Call sol2_init_abi.
3016 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3017 set_gdbarch_static_transform_name,
3018 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3019
3020 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3021
3022 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3023 * exec.c (validate_exec_file): If from_tty, set both
3024 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3025 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3026 and from_tty, unconditionally ask a confirmation.
3027
3028 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3029
3030 * target-descriptions.c (tdesc_architecture_name): Protect against
3031 NULL pointer dereference.
3032 (maint_print_xml_tdesc_cmd): New function.
3033 (_initialize_target_descriptions): Register new 'maint print
3034 xml-tdesc' command and give it the filename completer.
3035 * NEWS: Mention new 'maint print xml-tdesc' command.
3036
3037 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * target-descriptions.c (class tdesc_compatible_info): New class.
3040 (struct target_desc): Change type of compatible vector.
3041 (tdesc_compatible_p): Update for change in type of
3042 target_desc::compatible.
3043 (tdesc_compatible_info_list): New function.
3044 (tdesc_compatible_info_arch_name): New function.
3045 (tdesc_add_compatible): Update for change in type of
3046 target_desc::compatible.
3047 (print_c_tdesc::visit_pre): Likewise.
3048
3049 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3052 whitespace to underscore.
3053 (maint_print_c_tdesc_cmd): Use fake filename for target
3054 descriptions that came from the target.
3055 (_initialize_target_descriptions): Add filename command completion
3056 for 'maint print c-tdesc'.
3057
3058 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3061 lines.
3062
3063 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3066 lines.
3067 (dwarf2_find_location_expression): Likewise.
3068 (call_site_parameter_matches): Likewise.
3069 (dwarf2_compile_expr_to_ax): Likewise.
3070 (disassemble_dwarf_expression): Likewise.
3071 (loclist_describe_location): Likewise.
3072
3073 2020-06-23 Pedro Alves <palves@redhat.com>
3074
3075 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3076 progspace-and-thread.h. Include scoped-mock-context.h instead.
3077 (register_to_value_test): Use scoped_mock_context.
3078 * regcache.c: Include "scoped-mock-context.h".
3079 (cooked_read_test): Don't error out if a target is already pushed.
3080 Use scoped_mock_context. Adjust.
3081 * scoped-mock-context.h: New file.
3082
3083 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3086 initializer.
3087 (ada_language::is_string_type_p): New member function.
3088 * c-lang.c (c_language_data): Delete la_is_string_type_p
3089 initializer.
3090 (cplus_language_data): Likewise.
3091 (asm_language_data): Likewise.
3092 (minimal_language_data): Likewise.
3093 * d-lang.c (d_language_data): Likewise.
3094 * f-lang.c (f_is_string_type_p): Delete function, implementation
3095 moved to f_language::is_string_type_p.
3096 (f_language_data): Delete la_is_string_type_p initializer.
3097 (f_language::is_string_type_p): New member function,
3098 implementation from f_is_string_type_p.
3099 * go-lang.c (go_is_string_type_p): Delete function, implementation
3100 moved to go_language::is_string_type_p.
3101 (go_language_data): Delete la_is_string_type_p initializer.
3102 (go_language::is_string_type_p): New member function,
3103 implementation from go_is_string_type_p.
3104 * language.c (language_defn::is_string_type_p): Define new member
3105 function.
3106 (default_is_string_type_p): Make static, add comment copied from
3107 header file.
3108 (unknown_language_data): Delete la_is_string_type_p initializer.
3109 (unknown_language::is_string_type_p): New member function.
3110 (auto_language_data): Delete la_is_string_type_p initializer.
3111 (auto_language::is_string_type_p): New member function.
3112 * language.h (language_data): Delete la_is_string_type_p field.
3113 (language_defn::is_string_type_p): Declare new function.
3114 (default_is_string_type_p): Delete desclaration, move comment to
3115 definition.
3116 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3117 moved to m2_language::is_string_type_p.
3118 (m2_language_data): Delete la_is_string_type_p initializer.
3119 (m2_language::is_string_type_p): New member function,
3120 implementation from m2_is_string_type_p.
3121 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3122 initializer.
3123 * opencl-lang.c (opencl_language_data): Likewise.
3124 * p-lang.c (pascal_is_string_type_p): Delete function,
3125 implementation moved to pascal_language::is_string_type_p.
3126 (pascal_language_data): Delete la_is_string_type_p initializer.
3127 (pascal_language::is_string_type_p): New member function,
3128 implementation from pascal_is_string_type_p.
3129 * rust-lang.c (rust_is_string_type_p): Delete function,
3130 implementation moved to rust_language::is_string_type_p.
3131 (rust_language_data): Delete la_is_string_type_p initializer.
3132 (rust_language::is_string_type_p): New member function,
3133 implementation from rust_is_string_type_p.
3134 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3135 is_string_type_p.
3136
3137 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * ada-lang.c (ada_language_data): Delete la_print_typedef
3140 initializer.
3141 (ada_language::print_typedef): New member function.
3142 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3143 (cplus_language_data): Likewise.
3144 (asm_language_data): Likewise.
3145 (minimal_language_data): Likewise.
3146 * d-lang.c (d_language_data): Likewise.
3147 * f-lang.c (f_language_data): Likewise.
3148 (f_language::print_typedef): New member function.
3149 * go-lang.c (go_language_data): Delete la_print_typedef
3150 initializer.
3151 * language.c (language_defn::print_typedef): Define member
3152 function.
3153 (unknown_language_data): Delete la_print_typedef initializer.
3154 (unknown_language::print_typedef): New member function.
3155 (auto_language_data): Delete la_print_typedef initializer.
3156 (auto_language::print_typedef): New member function.
3157 * language.h (language_data): Delete la_print_typedef field.
3158 (language_defn::print_typedef): Declare new member function.
3159 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3160 (default_print_typedef): Delete declaration.
3161 * m2-lang.c (m2_language_data): Delete la_print_typedef
3162 initializer.
3163 (m2_language::print_typedef): New member function.
3164 * objc-lang.c (objc_language_data): Delete la_print_typedef
3165 initializer.
3166 * opencl-lang.c (opencl_language_data): Likewise.
3167 * p-lang.c (pascal_language_data): Likewise.
3168 (pascal_language::print_typedef): New member function.
3169 * rust-lang.c (rust_print_typedef): Delete function,
3170 implementation moved to rust_language::print_typedef.
3171 (rust_language): Delete la_print_typedef initializer.
3172 (rust_language::print_typedef): New member function,
3173 implementation from rust_print_typedef.
3174 * typeprint.c (default_print_typedef): Delete.
3175
3176 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3179 (ada_language::printstr): New member function.
3180 * c-lang.c (c_language_data): Delete la_printstr initializer.
3181 (cplus_language_data): Likewise.
3182 (asm_language_data): Likewise.
3183 (minimal_language_data): Likewise.
3184 * d-lang.c (d_language_data): Likewise.
3185 * f-lang.c (f_printstr): Rename to f_language::printstr.
3186 (f_language_data): Delete la_printstr initializer.
3187 (f_language::printstr): New member function, implementation from
3188 f_printstr.
3189 * go-lang.c (go_language_data): Delete la_printstr initializer.
3190 * language.c (language_defn::printstr): Define new member
3191 function.
3192 (unk_lang_printstr): Delete.
3193 (unknown_language_data): Delete la_printstr initializer.
3194 (unknown_language::printstr): New member function.
3195 (auto_language_data): Delete la_printstr initializer.
3196 (auto_language::printstr): New member function.
3197 * language.h (language_data): Delete la_printstr field.
3198 (language_defn::printstr): Declare new member function.
3199 (LA_PRINT_STRING): Update call to printstr.
3200 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3201 (m2_language_data): Delete la_printstr initializer.
3202 (m2_language::printstr): New member function, implementation from
3203 m2_printstr.
3204 * objc-lang.c (objc_language_data): Delete la_printstr
3205 initializer.
3206 * opencl-lang.c (opencl_language_data): Likewise.
3207 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3208 (pascal_language_data): Delete la_printstr initializer.
3209 (pascal_language::printstr): New member function, implementation
3210 from pascal_printstr.
3211 * p-lang.h (pascal_printstr): Delete declaration.
3212 * rust-lang.c (rust_printstr): Update header comment.
3213 (rust_language_data): Delete la_printstr initializer.
3214 (rust_language::printstr): New member function.
3215
3216 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3219 (ada_language::printchar): New member function.
3220 * c-lang.c (c_language_data): Delete la_printchar initializer.
3221 (cplus_language_data): Likewise.
3222 (asm_language_data): Likewise.
3223 (minimal_language_data): Likewise.
3224 * d-lang.c (d_language_data): Likewise.
3225 * f-lang.c (f_printchar): Rename to f_language::printchar.
3226 (f_language_data): Delete la_printchar initializer.
3227 (f_language::printchar): New member function, implementation from
3228 f_printchar.
3229 * go-lang.c (go_language_data): Delete la_printchar initializer.
3230 * language.c (unk_lang_printchar): Delete.
3231 (language_defn::printchar): Define new member function.
3232 (unknown_language_data): Delete la_printchar initializer.
3233 (unknown_language::printchar): New member function.
3234 (auto_language_data): Delete la_printchar initializer.
3235 (auto_language::printchar): New member function.
3236 * language.h (language_data): Delete la_printchar field.
3237 (language_defn::printchar): Declare new member function.
3238 (LA_PRINT_CHAR): Update call to printchar.
3239 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3240 (m2_language::printchar): New member function.
3241 * objc-lang.c (objc_language_data): Delete la_printchar
3242 initializer.
3243 * opencl-lang.c (opencl_language_data): Likewise.
3244 * p-lang.c (pascal_language_data): Delete la_printchar
3245 initializer.
3246 (pascal_language::printchar): New member function.
3247 * rust-lang.c (rust_printchar): Rename to
3248 rust_language::printchar.
3249 (rust_language_data): Delete la_printchar initializer.
3250 (rust_language::printchar): New member function, implementation
3251 from rust_printchar.
3252
3253 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3256 (ada_language_data): Delete la_emitchar initializer.
3257 (ada_language::emitchar): New member function, implementation from
3258 emit_char.
3259 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3260 (cplus_language_data): Likewise.
3261 (asm_language_data): Likewise.
3262 (minimal_language_data): Likewise.
3263 * d-lang.c (d_language_data): Likewise.
3264 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3265 (f_language_data): Delete la_emitchar initializer.
3266 (f_language::emitchar): New member function, implementation from
3267 f_emit_char.
3268 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3269 * language.c (unk_lang_emit_char): Delete.
3270 (language_defn::emitchar): New member function definition.
3271 (unknown_language_data): Delete la_emitchar initializer.
3272 (unknown_language::emitchar): New member function.
3273 (auto_language_data): Delete la_emitchar initializer.
3274 (auto_language::emitchar): New member function.
3275 * language.h (language_data): Delete la_emitchar field.
3276 (language_defn::emitchar): New member field declaration.
3277 (LA_EMIT_CHAR): Update call to emitchar.
3278 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3279 (m2_language_data): Delete la_emitchar initializer.
3280 (m2_language::emitchar): New member function, implementation from
3281 m2_emit_char.
3282 * objc-lang.c (objc_language_data): Delete la_emitchar
3283 initializer.
3284 * opencl-lang.c (opencl_language_data): Likewise.
3285 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3286 (pascal_language_data): Delete la_emitchar initializer.
3287 (pascal_language::emitchar): New member function, implementation
3288 from pascal_emit_char.
3289 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3290 (rust_language_data): Delete la_emitchar initializer.
3291 (rust_language::emitchar): New member function, implementation
3292 from rust_emitchar.
3293
3294 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3297 (ada_language_data): Delete la_post_parser initializer.
3298 (ada_language::post_parser): New member function.
3299 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3300 (cplus_language_data): Likewise.
3301 (asm_language_data): Likewise.
3302 (minimal_language_data): Likewise.
3303 * d-lang.c (d_language_data): Likewise.
3304 * f-lang.c (f_language_data): Likewise.
3305 * go-lang.c (go_language_data): Likewise.
3306 * language.c (unknown_language_data): Likewise.
3307 (auto_language_data): Likewise.
3308 * language.h (language_data): Delete la_post_parser field.
3309 (language_defn::post_parser): New member function.
3310 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3311 * objc-lang.c (objc_language_data): Likewise.
3312 * opencl-lang.c (opencl_language_data): Likewise.
3313 * p-lang.c (pascal_language_data): Likewise.
3314 * parse.c (parse_exp_in_context): Update call to post_parser.
3315 (null_post_parser): Delete definition.
3316 * parser-defs.h (null_post_parser): Delete declaration.
3317 * rust-lang.c (rust_language_data): Delete la_post_parser
3318 initializer.
3319
3320 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * ada-lang.c (parse): Rename to ada_language::parser.
3323 (ada_language_data): Delete la_parser initializer.
3324 (ada_language::parser): New member function, implementation from
3325 parse.
3326 * c-lang.c (c_language_data): Delete la_parser initializer.
3327 (cplus_language_data): Likewise.
3328 (asm_language_data): Likewise.
3329 (minimal_language_data): Likewise.
3330 * d-lang.c (d_language_data): Likewise.
3331 (d_language::parser): New member function.
3332 * f-lang.c (f_language_data): Delete la_parser initializer.
3333 (f_language::parser): New member function.
3334 * go-lang.c (go_language_data): Delete la_parser initializer.
3335 (go_language::parser): New member function.
3336 * language.c (unk_lang_parser): Delete.
3337 (language_defn::parser): Define new member function.
3338 (unknown_language_data): Delete la_parser initializer.
3339 (unknown_language::parser): New member function.
3340 (auto_language_data): Delete la_parser initializer.
3341 (auto_language::parser): New member function.
3342 * language.h (language_data): Delete la_parser field.
3343 (language_defn::parser): Declare new member function.
3344 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3345 (m2_language::parser): New member function.
3346 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3347 * opencl-lang.c (opencl_language_data): Likewise.
3348 * p-lang.c (pascal_language_data): Likewise.
3349 (pascal_language::parser): New member function.
3350 * parse.c (parse_exp_in_context): Update call to parser.
3351 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3352 (rust_language::parser): New member function.
3353
3354 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 * top.c (print_gdb_configuration): Print --with-python-libdir
3357 configuration value.
3358
3359 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3360
3361 * NEWS: Mention change to the alias command.
3362
3363 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3364
3365 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3366 (alias_command_completer)
3367 (make_alias_options_def_group): New functions.
3368 (alias_opts, alias_option_defs): New struct and array.
3369 (alias_usage_error): Update usage.
3370 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3371 Use option framework.
3372 (_initialize_cli_cmds): Update alias command help.
3373 Update aliases command help.
3374 (show_user):
3375 Add NULL for new default_args lookup_cmd argument.
3376 (valid_command_p): Rename to validate_aliased_command.
3377 Add NULL for new default_args lookup_cmd argument. Verify that the
3378 aliased_command has no default args.
3379 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3380 (lookup_cmd_1, lookup_cmd): New argument default_args.
3381 (add_alias_cmd):
3382 Add NULL for new default_args lookup_cmd argument.
3383 (print_help_for_command): Show default args under the layout
3384 alias some_alias = some_aliased_cmd some_alias_default_arg.
3385 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3386 xfree default_args in destructor.
3387 * cli/cli-script.c (process_next_line, do_define_command):
3388 Add NULL for new default_args lookup_cmd argument.
3389 * command.h: Declare new default_args argument in lookup_cmd
3390 and lookup_cmd_1.
3391 * completer.c (complete_line_internal_1):
3392 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3393 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3394 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3395 Likewise.
3396 * infcmd.c (_initialize_infcmd): Likewise.
3397 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3398 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3399 * python/py-param.c (add_setshow_generic): Likewise.
3400 * remote.c (_initialize_remote): Likewise.
3401 * top.c (execute_command): Prepend default_args if command has some.
3402 (set_verbose):
3403 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3404 * tracepoint.c (validate_actionline, encode_actions_1):
3405 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3406
3407 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3408
3409 * jit.c (jit_read_descriptor): Use bool as the return type.
3410 (jit_breakpoint_re_set_internal): Use bool as the return type.
3411 Invert the return value logic; return true if the jit breakpoint
3412 has been successfully initialized.
3413 (jit_inferior_init): Update the call to
3414 jit_breakpoint_re_set_internal.
3415
3416 2020-06-22 Pedro Alves <palves@redhat.com>
3417
3418 PR gdb/25939
3419 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3420 Use the current inferior instead. Don't return
3421 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3422 wait again.
3423 * sol-thread.c (sol_thread_target::wait): Don't reference
3424 inferior_ptid.
3425 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3426 (sol_update_thread_list_callback): Use the current inferior's pid
3427 instead of inferior_ptid.
3428
3429 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3430
3431 * procfs.c: Cleanup many comments.
3432
3433 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3434 (AFTER_WATCHFLAG): Replace by value.
3435
3436 (MAIN_PROC_NAME_FORMAT): Inline ...
3437 (create_procinfo): ... here.
3438
3439 (procfs_debug_inferior): Remove SYS_exec handling.
3440 (syscall_is_exec): Likewise.
3441 (procfs_set_exec_trap): Likewise.
3442
3443 (syscall_is_lwp_exit): Inline in callers.
3444 (syscall_is_exit): Likewise.
3445 (syscall_is_exec): Likewise.
3446 (syscall_is_lwp_create): Likewise.
3447
3448 (invalidate_cache): Remove #if 0 code.
3449
3450 (make_signal_thread_runnable): Remove.
3451 (procfs_target::resume): Remove #if 0 code.
3452
3453 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3454
3455 PR gdb/25939
3456 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3457 call ...
3458 (procfs_target::create_inferior): ... here.
3459
3460 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3461
3462 * exec.c (validate_exec_file): Ensure the build-id is up to
3463 date by calling reopen_exec_file (that checks file timestamp
3464 to decide to re-read the file).
3465
3466 2020-06-18 Pedro Alves <palves@redhat.com>
3467
3468 PR gdb/25412
3469 * gdbthread.h (delete_thread, delete_thread_silent)
3470 (find_thread_ptid): Update comments.
3471 * thread.c (current_thread_): New global.
3472 (is_current_thread): Move higher, and reimplement.
3473 (inferior_thread): Reimplement.
3474 (set_thread_exited): Use bool. Add assertions.
3475 (add_thread_silent): Simplify thread-reuse handling by always
3476 calling delete_thread.
3477 (delete_thread): Remove intro comment.
3478 (find_thread_ptid): Skip exited threads.
3479 (switch_to_thread_no_regs): Write to current_thread_.
3480 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3481 INFERIOR_PTID. Clear current_thread_.
3482
3483 2020-06-18 Pedro Alves <palves@redhat.com>
3484
3485 * aix-thread.c (pd_update): Use switch_to_thread.
3486
3487 2020-06-18 Pedro Alves <palves@redhat.com>
3488
3489 * ravenscar-thread.c (ravenscar_thread_target): Update.
3490 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3491 (ravenscar_thread_target::add_active_thread): ... this. Don't
3492 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3493 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3494
3495 2020-06-18 Pedro Alves <palves@redhat.com>
3496
3497 * nat/windows-nat.c (current_windows_thread): Remove.
3498 * nat/windows-nat.h (current_windows_thread): Remove.
3499 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3500 Adjust.
3501 (display_selectors): Adjust to fetch the current
3502 windows_thread_info based on inferior_ptid.
3503 (fake_create_process): No longer write to current_windows_thread.
3504 (windows_nat_target::get_windows_debug_event):
3505 Don't set inferior_ptid or current_windows_thread.
3506 (windows_nat_target::wait): Adjust to not rely on
3507 current_windows_thread.
3508 (do_initial_windows_stuff): Now a method of windows_nat_target.
3509 Switch to the last_ptid thread.
3510 (windows_nat_target::attach): Adjust.
3511 (windows_nat_target::detach): Use switch_to_no_thread instead of
3512 writing to inferior_ptid directly.
3513 (windows_nat_target::create_inferior): Adjust.
3514
3515 2020-06-18 Pedro Alves <palves@redhat.com>
3516
3517 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3518
3519 2020-06-18 Pedro Alves <palves@redhat.com>
3520
3521 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3522 after creating it, instead of writing to inferior_ptid. Don't
3523 write to inferior_ptid.
3524
3525 2020-06-18 Pedro Alves <palves@redhat.com>
3526
3527 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3528
3529 2020-06-18 Pedro Alves <palves@redhat.com>
3530
3531 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3532 it, instead of writing to inferior_ptid.
3533
3534 2020-06-18 Pedro Alves <palves@redhat.com>
3535
3536 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3537 to inferior_ptid.
3538
3539 2020-06-18 Pedro Alves <palves@redhat.com>
3540
3541 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3542 instead of writing to inferior_ptid directly.
3543
3544 2020-06-18 Pedro Alves <palves@redhat.com>
3545
3546 * corelow.c (core_target::close): Use switch_to_no_thread instead
3547 of writing to inferior_ptid directly.
3548 (add_to_thread_list, core_target_open): Use switch_to_thread
3549 instead of writing to inferior_ptid directly.
3550
3551 2020-06-18 Pedro Alves <palves@redhat.com>
3552
3553 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3554 inferior_ptid.
3555 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3556 inferior_ptid.
3557 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3558 inferior_ptid directly.
3559 (darwin_nat_target::init_thread_list): Switch to thread, instead
3560 of writing to inferior_ptid.
3561 (darwin_nat_target::attach): Don't write to inferior_ptid.
3562 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3563
3564 2020-06-18 Pedro Alves <palves@redhat.com>
3565
3566 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3567 thread.
3568 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3569 Instead use switch_to_thread.
3570 (gnu_nat_target::detach): Use switch_to_no_thread
3571 instead of writing to inferior_ptid directly. Used passed-in
3572 inferior instead of looking up the inferior by pid.
3573
3574 2020-06-18 Pedro Alves <palves@redhat.com>
3575
3576 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3577 inferior_ptid.
3578
3579 2020-06-18 Pedro Alves <palves@redhat.com>
3580
3581 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3582 inferior_ptid.
3583 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3584 thread.
3585 (nto_procfs_target::detach): Avoid referencing
3586 inferior_ptid. Use switch_to_no_thread instead of writing to
3587 inferior_ptid directly.
3588 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3589 instead of writing to inferior_ptid directly.
3590 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3591 to thread.
3592
3593 2020-06-18 Pedro Alves <palves@redhat.com>
3594
3595 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3596 after creating it, instead of writing to inferior_ptid.
3597 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3598 to inferior_ptid directly.
3599 (gdbsim_target::wait): Don't write to inferior_ptid.
3600
3601 2020-06-18 Pedro Alves <palves@redhat.com>
3602
3603 * remote.c (remote_target::remote_notice_new_inferior): Use
3604 switch_to_thread instead of writing to inferior_ptid directly.
3605 (remote_target::add_current_inferior_and_thread): Use
3606 switch_to_no_thread instead of writing to inferior_ptid directly.
3607 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3608 and switch_to_thread instead of using set_current_inferior or
3609 writing to inferior_ptid directly.
3610
3611 2020-06-18 Pedro Alves <palves@redhat.com>
3612
3613 * tracectf.c (ctf_target_open): Switch to added thread instead of
3614 writing to inferior_ptid directly.
3615 (ctf_target::close): Use switch_to_no_thread instead of writing to
3616 inferior_ptid directly.
3617
3618 2020-06-18 Pedro Alves <palves@redhat.com>
3619
3620 * tracefile-tfile.c (tfile_target_open): Don't write to
3621 inferior_ptid directly, instead switch to added thread.
3622 (tfile_target::close): Use switch_to_no_thread instead of writing
3623 to inferior_ptid directly.
3624
3625 2020-06-18 Pedro Alves <palves@redhat.com>
3626
3627 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3628 (procfs_target::detach): Use switch_to_no_thread
3629 instead of writing to inferior_ptid directly.
3630 (do_attach): Change return type to void. Switch to the added
3631 thread.
3632 (procfs_target::create_inferior): Switch to the added thread.
3633 (procfs_do_thread_registers): Don't write to inferior_ptid.
3634
3635 2020-06-18 Pedro Alves <palves@redhat.com>
3636
3637 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3638 of writing to inferior_ptid.
3639 (scoped_restore_exited_inferior): Delete.
3640 (handle_vfork_child_exec_or_exit): Simplify using
3641 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3642 instead of writing to inferior_ptid.
3643 (THREAD_STOPPED_BY): Delete.
3644 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3645 (thread_stopped_by_hw_breakpoint): Delete.
3646 (save_waitstatus): Use
3647 scoped_restore_current_thread+switch_to_thread, and call
3648 target_stopped_by_watchpoint instead of
3649 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3650 instead of thread_stopped_by_sw_breakpoint, and
3651 target_stopped_by_hw_breakpoint instead of
3652 thread_stopped_by_hw_breakpoint.
3653 (handle_inferior_event)
3654 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3655 inferior_ptid directly, nor
3656 set_current_inferior/set_current_program_space. Use
3657 switch_to_thread / switch_to_inferior_no_thread instead.
3658
3659 2020-06-18 Pedro Alves <palves@redhat.com>
3660
3661 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3662 instead of writing to inferior_ptid.
3663
3664 2020-06-18 Pedro Alves <palves@redhat.com>
3665
3666 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3667 added thread.
3668 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3669 to the added thread.
3670 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3671 instead of writing to inferior_ptid.
3672
3673 2020-06-18 Pedro Alves <palves@redhat.com>
3674
3675 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3676 (register_to_value_test): Mock a program_space too. Heap-allocate
3677 the address space. Don't write to inferior_ptid. Use
3678 switch_to_thread instead.
3679
3680 2020-06-18 Pedro Alves <palves@redhat.com>
3681
3682 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3683 Delete.
3684 (find_signalled_thread()): New, factored out from
3685 linux_make_corefile_notes and adjusted to handle exited threads.
3686 (linux_make_corefile_notes): Adjust to use the new
3687 find_signalled_thread.
3688
3689 2020-06-18 Pedro Alves <palves@redhat.com>
3690
3691 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3692 of saving/restoring inferior_ptid.
3693
3694 2020-06-17 Tom Tromey <tom@tromey.com>
3695
3696 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3697 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3698 declare.
3699 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3700
3701 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3704 of partial symtabs.
3705
3706 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * regformats/reg-arm.dat: Remove.
3709 * regformats/reg-bfin.dat: Remove.
3710 * regformats/reg-cris.dat: Remove.
3711 * regformats/reg-crisv32.dat: Remove.
3712 * regformats/reg-m32r.dat: Remove.
3713 * regformats/reg-tilegx.dat: Remove.
3714 * regformats/reg-tilegx32.dat: Remove.
3715
3716 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * features/Makefile (WHICH): Remove arm files.
3719 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3720 * regformats/arm/arm-with-neon.dat: Remove.
3721 * regformats/arm/arm-with-vfpv2.dat: Remove.
3722 * regformats/arm/arm-with-vfpv3.dat: Remove.
3723
3724 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * features/Makefile (XMLTOC): Remove rx.xml.
3727
3728 2020-06-17 Pedro Alves <palves@redhat.com>
3729
3730 * gdbthread.h (thread_control_state) <trap_expected> Update
3731 comments.
3732
3733 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3734
3735 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3736 ada_language::lookup_symbol_nonlocal.
3737 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3738 (ada_language::lookup_symbol_nonlocal): New member function,
3739 implementation from ada_lookup_symbol_nonlocal.
3740 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3741 initializer.
3742 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3743 initializer.
3744 (cplus_language::lookup_symbol_nonlocal): New member function.
3745 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3746 (minimal_language_data) Likewise.
3747 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3748 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3749 initializer.
3750 (d_language::lookup_symbol_nonlocal): New member function.
3751 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3752 initializer.
3753 (f_language::lookup_symbol_nonlocal): New member function.
3754 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3755 initializer.
3756 * language.c (unknown_language_data): Likewise.
3757 (auto_language_data): Likewise.
3758 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3759 field.
3760 (language_defn::lookup_symbol_nonlocal): New member function.
3761 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3762 initializer.
3763 * objc-lang.c (objc_language_data): Likewise.
3764 * opencl-lang.c (opencl_language_data): Likewise.
3765 * p-lang.c (pascal_language_data): Likewise.
3766 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3767 rust_language::lookup_symbol_nonlocal.
3768 (rust_language_data): Delete la_lookup_symbol_nonlocal
3769 initializer.
3770 (rust_language::lookup_symbol_nonlocal): New member function,
3771 implementation from rust_lookup_symbol_nonlocal.
3772 * symtab.c (lookup_symbol_aux): Update call to
3773 lookup_symbol_nonlocal.
3774 (basic_lookup_symbol_nonlocal): Rename to...
3775 (language_defn::lookup_symbol_nonlocal): ...this, and update
3776 header comment. Remove language_defn parameter, and replace with
3777 uses of `this'.
3778 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3779
3780 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3783 initializer.
3784 (ada_language::value_print_inner): New member function.
3785 * c-lang.c (c_language_data): Delete la_value_print_inner
3786 initializer.
3787 (cplus_language_data): Likewise.
3788 (asm_language_data): Likewise.
3789 (minimal_language_data): Likewise.
3790 * d-lang.c (d_language_data): Likewise.
3791 (d_language::value_print_inner): New member function.
3792 * f-lang.c (f_language_data): Delete la_value_print_inner
3793 initializer.
3794 (f_language::value_print_inner): New member function.
3795 * f-lang.h (f_value_print_innner): Rename to...
3796 (f_value_print_inner): ...this (note spelling of 'inner').
3797 * f-valprint.c (f_value_print_innner): Rename to...
3798 (f_value_print_inner): ...this (note spelling of 'inner').
3799 * go-lang.c (go_language_data): Delete la_value_print_inner
3800 initializer.
3801 (go_language::value_print_inner): New member function.
3802 * language.c (language_defn::value_print_inner): Define new member
3803 function.
3804 (unk_lang_value_print_inner): Delete.
3805 (unknown_language_data): Delete la_value_print_inner initializer.
3806 (unknown_language::value_print_inner): New member function.
3807 (auto_language_data): Delete la_value_print_inner initializer.
3808 (auto_language::value_print_inner): New member function.
3809 * language.h (language_data): Delete la_value_print_inner field.
3810 (language_defn::value_print_inner): Delcare new member function.
3811 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3812 initializer.
3813 (m2_language::value_print_inner): New member function.
3814 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3815 initializer.
3816 * opencl-lang.c (opencl_language_data): Likewise.
3817 * p-lang.c (pascal_language_data): Likewise.
3818 (pascal_language::value_print_inner): New member function.
3819 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3820 initializer.
3821 (rust_language::value_print_inner): New member function.
3822 * valprint.c (do_val_print): Update call to value_print_inner.
3823
3824 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * ada-lang.c (ada_language_data): Delete la_value_print
3827 initializer.
3828 (ada_language::value_print): New member function.
3829 * c-lang.c (c_language_data): Delete la_value_print 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_language_data): Likewise.
3835 * go-lang.c (go_language_data): Likewise.
3836 * language.c (unk_lang_value_print): Delete.
3837 (language_defn::value_print): Define new member function.
3838 (unknown_language_data): Delete la_value_print initializer.
3839 (unknown_language::value_print): New member function.
3840 (auto_language_data): Delete la_value_print initializer.
3841 (auto_language::value_print): New member function.
3842 * language.h (language_data): Delete la_value_print field.
3843 (language_defn::value_print): Declare new member function.
3844 (LA_VALUE_PRINT): Update call to value_print.
3845 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3846 * objc-lang.c (objc_language_data): Likewise.
3847 * opencl-lang.c (opencl_language_data): Likewise.
3848 * p-lang.c (pascal_language_data): Likewise.
3849 (pascal_language::value_print): New member function.
3850 * rust-lang.c (rust_language_data): Delete la_value_print
3851 initializer.
3852
3853 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * ada-lang.c (ada_watch_location_expression): Rename to
3856 ada_language::watch_location_expression.
3857 (ada_language_data): Delete la_watch_location_expression
3858 initializer.
3859 (ada_language::watch_location_expression): New member function,
3860 implementation from ada_watch_location_expression.
3861 * breakpoint.c (watch_command_1): Update call to
3862 watch_location_expression.
3863 * c-lang.c (c_watch_location_expression): Rename to
3864 language_defn::watch_location_expression.
3865 (c_language_data): Delete la_watch_location_expression
3866 initializer.
3867 (cplus_language_data): Likewise.
3868 (asm_language_data): Likewise.
3869 (minimal_language_data): Likewise.
3870 * c-lang.h (c_watch_location_expression): Delete declaration.
3871 * d-lang.c (d_language_data): Delete la_watch_location_expression
3872 initializer.
3873 * f-lang.c (f_language_data): Likewise.
3874 * go-lang.c (go_language_data): Likewise.
3875 * language.c (language_defn::watch_location_expression): Member
3876 function implementation from c_watch_location_expression.
3877 (unknown_language_data): Delete la_watch_location_expression
3878 initializer.
3879 (auto_language_data): Likewise.
3880 * language.h (language_data): Delete la_watch_location_expression
3881 field.
3882 (language_defn::watch_location_expression): Declare new member
3883 function.
3884 * m2-lang.c (m2_language_data): Delete
3885 la_watch_location_expression initializer.
3886 * objc-lang.c (objc_language_data): Likewise.
3887 * opencl-lang.c (opencl_language_data): Likewise.
3888 * p-lang.c (pascal_language_data): Likewise.
3889 * rust-lang.c (rust_watch_location_expression): Rename to
3890 rust_language::watch_location_expression.
3891 (rust_language_data): Delete la_watch_location_expression
3892 initializer.
3893 (rust_language::watch_location_expression): New member function,
3894 implementation from rust_watch_location_expression.
3895
3896 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3899 ada_language::collect_symbol_completion_matches.
3900 (ada_language_data): Delete la_collect_symbol_completion_matches
3901 initializer.
3902 (ada_language::collect_symbol_completion_matches): New member
3903 function, implementation from
3904 ada_collect_symbol_completion_matches.
3905 * c-lang.c (c_language_data): Delete
3906 la_collect_symbol_completion_matches initializer.
3907 (cplus_language_data): Likewise.
3908 (asm_language_data): Likewise.
3909 (minimal_language_data): Likewise.
3910 * d-lang.c (d_language_data): Likewise.
3911 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3912 f_language::collect_symbol_completion_matches.
3913 (f_language_data): Delete la_collect_symbol_completion_matches
3914 initializer.
3915 (f_language::collect_symbol_completion_matches) New member
3916 function, implementation from f_collect_symbol_completion_matches.
3917 * go-lang.c (go_language_data): Delete
3918 la_collect_symbol_completion_matches initializer.
3919 * language.c (unknown_language_data): Likewise.
3920 (auto_language_data): Likewise.
3921 * language.h (language_data): Delete
3922 la_collect_symbol_completion_matches field.
3923 (language_defn::collect_symbol_completion_matches): New member
3924 function.
3925 * m2-lang.c (m2_language_data): Delete
3926 la_collect_symbol_completion_matches initializer.
3927 * objc-lang.c (objc_language_data): Likewise.
3928 * opencl-lang.c (opencl_language_data): Likewise.
3929 * p-lang.c (pascal_language_data): Likewise.
3930 * rust-lang.c (rust_language_data): Likewise.
3931 * symtab.c (default_collect_symbol_completion_matches): Delete.
3932 (collect_symbol_completion_matches): Update call to
3933 collect_symbol_completion_matches.
3934 (collect_symbol_completion_matches_type): Likewise.
3935 * symtab.h (default_collect_symbol_completion_matches): Delete
3936 declaration.
3937
3938 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3939
3940 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3941 (ada_language_data): Delete la_word_break_characters initializer.
3942 (ada_language::word_break_characters): New member function.
3943 * c-lang.c (c_language_data): Delete la_word_break_characters
3944 initializer.
3945 (cplus_language_data): Likewise.
3946 (asm_language_data): Likewise.
3947 (minimal_language_data): Likewise.
3948 * completer.c: Update global comment.
3949 (advance_to_expression_complete_word_point): Update call to
3950 word_break_characters.
3951 (complete_files_symbols): Likewise.
3952 (complete_line_internal_1): Likewise.
3953 (default_completer_handle_brkchars): Likewise.
3954 (skip_quoted_chars): Likewise.
3955 * d-lang.c (d_language_data): Delete la_word_break_characters
3956 initializer.
3957 * f-lang.c (f_word_break_characters): Delete.
3958 (f_language_data): Delete la_word_break_characters initializer.
3959 (f_language::word_break_characters): New member function.
3960 * go-lang.c (go_language_data): Delete la_word_break_characters
3961 initializer.
3962 * language.c (unknown_language_data): Likewise.
3963 (auto_language_data): Likewise.
3964 * language.h (default_word_break_characters): Move declaration to
3965 earlier in the file.
3966 (language_data): Delete la_word_break_characters field.
3967 (language_defn::word_break_characters): New member function.
3968 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3969 initializer.
3970 * objc-lang.c (objc_language_data): Likewise.
3971 * opencl-lang.c (opencl_language_data): Likewise.
3972 * p-lang.c (pascal_language_data): Likewise.
3973 * rust-lang.c (rust_language_data): Likewise.
3974
3975 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3978 (ada_language_data): Delete la_get_symbol_name_matcher
3979 initializer.
3980 (language_defn::get_symbol_name_matcher_inner): New member
3981 function.
3982 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3983 initializer.
3984 (cplus_language_data): Likewise.
3985 (cplus_language::get_symbol_name_matcher_inner): New member
3986 function.
3987 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3988 (minimal_language_data): Likewise.
3989 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3990 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3991 initializer.
3992 * dictionary.c (iter_match_first_hashed): Update call to
3993 get_symbol_name_matcher.
3994 (iter_match_next_hashed): Likewise.
3995 (iter_match_next_linear): Likewise.
3996 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3997 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3998 initializer.
3999 (f_language::get_symbol_name_matcher_inner): New member function.
4000 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4001 initializer.
4002 * language.c (default_symbol_name_matcher): Update header comment,
4003 make static.
4004 (language_defn::get_symbol_name_matcher): New definition.
4005 (language_defn::get_symbol_name_matcher_inner): Likewise.
4006 (get_symbol_name_matcher): Delete.
4007 (unknown_language_data): Delete la_get_symbol_name_matcher
4008 initializer.
4009 (auto_language_data): Likewise.
4010 * language.h (language_data): Delete la_get_symbol_name_matcher
4011 field.
4012 (language_defn::get_symbol_name_matcher): New member function.
4013 (language_defn::get_symbol_name_matcher_inner): Likewise.
4014 (default_symbol_name_matcher): Delete declaration.
4015 * linespec.c (find_methods): Update call to
4016 get_symbol_name_matcher.
4017 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4018 initializer.
4019 * minsyms.c (lookup_minimal_symbol): Update call to
4020 get_symbol_name_matcher.
4021 (iterate_over_minimal_symbols): Likewise.
4022 * objc-lang.c (objc_language_data): Delete
4023 la_get_symbol_name_matcher initializer.
4024 * opencl-lang.c (opencl_language_data): Likewise.
4025 * p-lang.c (pascal_language_data): Likewise.
4026 * psymtab.c (psymbol_name_matches): Update call to
4027 get_symbol_name_matcher.
4028 * rust-lang.c (rust_language_data): Delete
4029 la_get_symbol_name_matcher initializer.
4030 * symtab.c (symbol_matches_search_name): Update call to
4031 get_symbol_name_matcher.
4032 (compare_symbol_name): Likewise.
4033
4034 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * ada-lang.c (ada_language_data): Delete la_compute_program
4037 initializer.
4038 * c-lang.c (c_language_data): Likewise.
4039 (c_language::compute_program): New member function.
4040 (cplus_language_data): Delete la_compute_program initializer.
4041 (cplus_language::compute_program): New member function.
4042 (asm_language_data): Delete la_compute_program initializer.
4043 (minimal_language_data): Likewise.
4044 * c-lang.h (c_compute_program): Update comment.
4045 (cplus_compute_program): Likewise.
4046 * compile/compile-c-support.c (c_compute_program): Likewise.
4047 (cplus_compute_program): Likewise.
4048 * compile/compile.c (compile_to_object): Update call to
4049 la_compute_program.
4050 * d-lang.c (d_language_data): Delete la_compute_program
4051 initializer.
4052 * f-lang.c (f_language_data): Likewise.
4053 * go-lang.c (go_language_data): Likewise.
4054 * language.c (unknown_language_data): Likewise.
4055 (auto_language_data): Likewise.
4056 * language.h (language_data): Delete la_compute_program field.
4057 (language_defn::compute_program): New member function.
4058 * m2-lang.c (m2_language_data): Delete la_compute_program
4059 initializer.
4060 * objc-lang.c (objc_language_data): Likewise.
4061 * opencl-lang.c (opencl_language_data): Likewise.
4062 * p-lang.c (pascal_language_data): Likewise.
4063 * rust-lang.c (rust_language_data): Likewise.
4064
4065 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4066
4067 * ada-lang.c (ada_language_data) Delete
4068 la_class_name_from_physname initializer.
4069 * c-lang.c (c_language_data): Likewise.
4070 (cplus_language_data): Likewise.
4071 (cplus_language::class_name_from_physname): New member function.
4072 (asm_language_data): Delete la_class_name_from_physname
4073 initializer.
4074 (minimal_language_data): Likewise.
4075 * d-lang.c (d_language_data): Likewise.
4076 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4077 method on language_defn class.
4078 (guess_full_die_structure_name): Likewise.
4079 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4080 initializer.
4081 * go-lang.c (go_language_data): Likewise.
4082 * language.c (language_class_name_from_physname): Delete.
4083 (unk_lang_class_name): Delete.
4084 (unknown_language_data): Delete la_class_name_from_physname
4085 initializer.
4086 (auto_language_data): Likewise.
4087 * language.h (language_data): Delete la_class_name_from_physname
4088 field.
4089 (language_defn::class_name_from_physname): New function.
4090 (language_class_name_from_physname): Delete declaration.
4091 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4092 initializer.
4093 * objc-lang.c (objc_language_data): Likewise.
4094 * opencl-lang.c (opencl_language_data): Likewise.
4095 * p-lang.c (pascal_language_data): Likewise.
4096 * rust-lang.c (rust_language_data): Likewise.
4097
4098 2020-06-16 Tom Tromey <tom@tromey.com>
4099
4100 * tui/tui-data.h (STATUS_NAME): New macro.
4101 * tui/tui-layout.c (tui_remove_some_windows)
4102 (initialize_known_windows, tui_register_window)
4103 (tui_layout_split::remove_windows, initialize_layouts)
4104 (tui_new_layout_command): Don't use hard-coded window names.
4105
4106 2020-06-16 Tom Tromey <tom@tromey.com>
4107
4108 PR tui/25348:
4109 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4110 tui_initialize_readline. Only run once. Call rl_initialize.
4111 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4112 tui_initialize_readline.
4113 * tui/tui-io.c (tui_setup_io): Call
4114 tui_ensure_readline_initialized.
4115 * tui/tui-interp.c (tui_interp::init): Update.
4116
4117 2020-06-16 Tom Tromey <tom@tromey.com>
4118
4119 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4120 Also preserve the status window.
4121
4122 2020-06-16 Tom Tromey <tom@tromey.com>
4123
4124 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4125 where m_window==nullptr.
4126
4127 2020-06-15 Tom Tromey <tromey@adacore.com>
4128
4129 * windows-nat.c (windows_nat::handle_output_debug_string):
4130 Update.
4131 (windows_nat::handle_ms_vc_exception): Update.
4132 * target.h (target_read_string): Change API.
4133 * target.c (target_read_string): Change API.
4134 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4135 Update.
4136 * solib-frv.c (frv_current_sos): Update.
4137 * solib-dsbt.c (dsbt_current_sos): Update.
4138 * solib-darwin.c (darwin_current_sos): Update.
4139 * linux-thread-db.c (inferior_has_bug): Update.
4140 * expprint.c (print_subexp_standard): Update.
4141 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4142 (ada_exception_message_1): Update.
4143
4144 2020-06-15 Tom Tromey <tromey@adacore.com>
4145
4146 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4147
4148 2020-06-15 Tom Tromey <tromey@adacore.com>
4149
4150 * valprint.c (read_string): Update comment.
4151 * target.c (MIN): Remove.
4152 (target_read_string): Rewrite.
4153
4154 2020-06-15 Tom Tromey <tromey@adacore.com>
4155
4156 * corefile.c (read_memory_string): Remove.
4157 * ada-valprint.c (ada_value_print_ptr): Update.
4158 * ada-lang.h (ada_tag_name): Change return type.
4159 * ada-lang.c (type_from_tag): Update.
4160 (ada_tag_name_from_tsd): Change return type. Use
4161 target_read_string.
4162 (ada_tag_name): Likewise.
4163 * gdbcore.h (read_memory_string): Don't declare.
4164
4165 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4166
4167 * symtab.c (rbreak_command): Ignore Windows drive colon.
4168
4169 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * NEWS: Mention removed GDBserver host support.
4172
4173 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4174
4175 * features/riscv/rebuild-csr-xml.sh: Updated.
4176
4177 2020-06-11 Tom Tromey <tom@tromey.com>
4178
4179 PR gdb/18318:
4180 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4181
4182 2020-06-09 Jonny Grant <jg@jguk.org>
4183 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * main.c (captured_main_1): Don't print new line after help.
4186 (print_gdb_help): add mailing list and IRC channel information
4187 to --help. Add new lines between items in the footer. Remove
4188 quotes around bug url.
4189
4190 2020-06-11 Keith Seitz <keiths@redhat.com>
4191
4192 PR gdb/21356
4193 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4194 Resolve typedefs for type length calculations.
4195
4196 2020-06-10 Tom de Vries <tdevries@suse.de>
4197
4198 PR ada/24713
4199 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4200 (write_psymbols): Enable .gdb_index for ada.
4201 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4202 ada.
4203
4204 2020-06-10 Tom de Vries <tdevries@suse.de>
4205
4206 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4207 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4208 namei" instead of "const char *name" argument.
4209 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4210 dw2_symtab_iter_init.
4211
4212 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4215 to use type::field and field::type instead.
4216
4217 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4218
4219 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4220 to use field::type instead.
4221
4222 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4223
4224 * gdbtypes.h (struct field) <type, set_type>: New methods.
4225 Rename `type` field to...
4226 <m_type>: ... this. Change references throughout to use type or
4227 set_type methods.
4228 (FIELD_TYPE): Use field::type. Change call sites that modify
4229 the field's type to use field::set_type instead.
4230
4231 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4232
4233 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4234 to use type::index_type instead.
4235
4236 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4237
4238 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4239 methods.
4240 (TYPE_INDEX_TYPE): Use type::index_type.
4241 * gdbtypes.c (create_array_type_with_stride): Likewise.
4242
4243 2020-06-07 Tom Tromey <tom@tromey.com>
4244
4245 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4246 parameter.
4247 (generic_value_print): Update.
4248
4249 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 Revert commit 982a38f60b0.
4252 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4253
4254 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4255
4256 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4257 avoid use after free.
4258
4259 2020-06-05 Tom de Vries <tdevries@suse.de>
4260
4261 * NEWS: Fix typos.
4262
4263 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4264
4265 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4266 the per_bfd object.
4267 (dwarf2_read_debug_names): Likewise.
4268 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4269 object when re-using a per_bfd object with an index.
4270
4271 2020-06-03 Tom de Vries <tdevries@suse.de>
4272
4273 PR symtab/26046
4274 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4275 children for C++.
4276 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4277 DW_TAG_subprogram.
4278
4279 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * ada-lang.c (ada_language_data): Delete skip_trampoline
4282 initializer.
4283 * c-lang.c (c_language_data): Likewise.
4284 (cplus_language_data): Likewise.
4285 (cplus_language::skip_trampoline): New member function.
4286 (asm_language_data): Delete skip_trampoline initializer.
4287 (minimal_language_data): Likewise.
4288 * d-lang.c (d_language_data): Likewise.
4289 * f-lang.c (f_language_data): Likewise.
4290 * go-lang.c (go_language_data): Likewise.
4291 * language.c (unk_lang_trampoline): Delete function.
4292 (skip_language_trampoline): Update.
4293 (unknown_language_data): Delete skip_trampoline initializer.
4294 (auto_language_data): Likewise.
4295 * language.h (language_data): Delete skip_trampoline field.
4296 (language_defn::skip_trampoline): New function.
4297 * m2-lang.c (m2_language_data): Delete skip_trampoline
4298 initializer.
4299 * objc-lang.c (objc_skip_trampoline): Delete function, move
4300 implementation to objc_language::skip_trampoline.
4301 (objc_language_data): Delete skip_trampoline initializer.
4302 (objc_language::skip_trampoline): New member function with
4303 implementation from objc_skip_trampoline.
4304 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4305 initializer.
4306 * p-lang.c (pascal_language_data): Likewise.
4307 * rust-lang.c (rust_language_data): Likewise.
4308
4309 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4310
4311 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4312 (ada_language::demangle): New member function.
4313 * c-lang.c (c_language_data): Delete la_demangle initializer.
4314 (cplus_language_data): Delete la_demangle initializer.
4315 (cplus_language::demangle): New member function.
4316 (asm_language_data): Delete la_demangle initializer.
4317 (minimal_language_data): Delete la_demangle initializer.
4318 * d-lang.c (d_language_data): Delete la_demangle initializer.
4319 (d_language::demangle): New member function.
4320 * f-lang.c (f_language_data): Delete la_demangle initializer.
4321 (f_language::demangle): New member function.
4322 * go-lang.c (go_language_data): Delete la_demangle initializer.
4323 (go_language::demangle): New member function.
4324 * language.c (language_demangle): Update.
4325 (unk_lang_demangle): Delete.
4326 (unknown_language_data): Delete la_demangle initializer.
4327 (unknown_language::demangle): New member function.
4328 (auto_language_data): Delete la_demangle initializer.
4329 (auto_language::demangle): New member function.
4330 * language.h (language_data): Delete la_demangle field.
4331 (language_defn::demangle): New function.
4332 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4333 * objc-lang.c (objc_language_data): Delete la_demangle
4334 initializer.
4335 (objc_language::demangle): New member function.
4336 * opencl-lang.c (opencl_language_data): Delete la_demangle
4337 initializer.
4338 * p-lang.c (pascal_language_data): Likewise.
4339 * rust-lang.c (rust_language_data): Likewise.
4340 (rust_language::demangle): New member function.
4341
4342 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4343
4344 * ada-lang.c (ada_language_data): Delete la_print_type
4345 initializer.
4346 (ada_language::print_type): New member function.
4347 * c-lang.c (c_language_data): Delete la_print_type initializer.
4348 (c_language::print_type): New member function.
4349 (cplus_language_data): Delete la_print_type initializer.
4350 (cplus_language::print_type): New member function.
4351 (asm_language_data): Delete la_print_type initializer.
4352 (asm_language::print_type): New member function.
4353 (minimal_language_data): Delete la_print_type initializer.
4354 (minimal_language::print_type): New member function.
4355 * d-lang.c (d_language_data): Delete la_print_type initializer.
4356 (d_language::print_type): New member function.
4357 * f-lang.c (f_language_data): Delete la_print_type initializer.
4358 (f_language::print_type): New member function.
4359 * go-lang.c (go_language_data): Delete la_print_type initializer.
4360 (go_language::print_type): New member function.
4361 * language.c (unk_lang_print_type): Delete.
4362 (unknown_language_data): Delete la_print_type initializer.
4363 (unknown_language::print_type): New member function.
4364 (auto_language_data): Delete la_print_type initializer.
4365 (auto_language::print_type): New member function.
4366 * language.h (language_data): Delete la_print_type field.
4367 (language_defn::print_type): New function.
4368 (LA_PRINT_TYPE): Update.
4369 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4370 (m2_language::print_type): New member function.
4371 * objc-lang.c (objc_language_data): Delete la_print_type
4372 initializer.
4373 (objc_language::print_type): New member function.
4374 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4375 to opencl_language::print_type.
4376 (opencl_language_data): Delete la_print_type initializer.
4377 (opencl_language::print_type): New member function, implementation
4378 from opencl_print_type.
4379 * p-lang.c (pascal_language_data): Delete la_print_type
4380 initializer.
4381 (pascal_language::print_type): New member function.
4382 * rust-lang.c (rust_print_type): Delete, implementation moved to
4383 rust_language::print_type.
4384 (rust_language_data): Delete la_print_type initializer.
4385 (rust_language::print_type): New member function, implementation
4386 from rust_print_type.
4387
4388 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4391 implementation moves to...
4392 (ada_language::sniff_from_mangled_name): ...here. Update return
4393 type.
4394 (ada_language_data): Delete la_sniff_from_mangled_name
4395 initializer.
4396 * c-lang.c (c_language_data): Likewise.
4397 (cplus_language_data): Likewise.
4398 (cplus_language::sniff_from_mangled_name): New member function,
4399 implementation taken from gdb_sniff_from_mangled_name.
4400 (asm_language_data): Delete la_sniff_from_mangled_name
4401 initializer.
4402 (minimal_language_data): Likewise.
4403 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4404 implementation moves to cplus_language::sniff_from_mangled_name.
4405 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4406 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4407 moves to...
4408 (d_language::sniff_from_mangled_name): ...here.
4409 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4410 * f-lang.c (f_language_data): Likewise.
4411 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4412 moves to...
4413 (go_language::sniff_from_mangled_name): ...here.
4414 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4415 * language.c (language_sniff_from_mangled_name): Delete.
4416 (unknown_language_data): Delete la_sniff_from_mangled_name
4417 initializer.
4418 (auto_language_data): Likewise.
4419 * language.h (language_data): Delete la_sniff_from_mangled_name
4420 field.
4421 (language_defn::sniff_from_mangled_name): New function.
4422 (language_sniff_from_mangled_name): Delete declaration.
4423 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4424 field.
4425 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4426 implementation moves to...
4427 (objc_language::sniff_from_mangled_name): ...here.
4428 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4429 * opencl-lang.c (opencl_language_data): Likewise.
4430 * p-lang.c (pascal_language_data): Likewise.
4431 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4432 implementation moves to...
4433 (rust_language::sniff_from_mangled_name): ...here.
4434 (rust_language_data): Delete la_sniff_from_mangled_name
4435 initializer.
4436 * symtab.c (symbol_find_demangled_name): Call
4437 sniff_from_mangled_name member function.
4438
4439 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4440
4441 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4442 initializer.
4443 * c-lang.c (c_language_data): Likewise.
4444 (cplus_language_data): Likewise.
4445 (cplus_language::search_name_hash): New member function.
4446 (asm_language_data): Delete la_search_name_hash initializer.
4447 (minimal_language_data): Likewise.
4448 * d-lang.c (d_language_data): Likewise.
4449 * dictionary.c (default_search_name_hash): Rename to...
4450 (language_defn::search_name_hash): ...this.
4451 * f-lang.c (f_language_data): Likewise.
4452 (f_language::search_name_hash): New member function.
4453 * go-lang.c (go_language_data): Delete la_search_name_hash
4454 initializer.
4455 * language.c (unknown_language_data): Likewise.
4456 (auto_language_data): Likewise.
4457 * language.h (struct language_data): Delete la_search_name_hash
4458 field.
4459 (language_defn::search_name_hash): Declare new member function.
4460 (default_search_name_hash): Delete declaration.
4461 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4462 initializer.
4463 * objc-lang.c (objc_language_data): Likewise.
4464 * opencl-lang.c (opencl_language_data): Likewise.
4465 * p-lang.c (pascal_language_data): Likewise.
4466 * rust-lang.c (rust_language_data): Likewise.
4467 * symtab.c (search_name_hash): Update call.
4468
4469 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4470
4471 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4472 initializer.
4473 * c-lang.c (class compile_instance): Declare.
4474 (c_language_data): Delete la_get_compile_instance initializer.
4475 (c_language::get_compile_instance): New member function.
4476 (cplus_language_data): Delete la_get_compile_instance initializer.
4477 (cplus_language::get_compile_instance): New member function.
4478 (asm_language_data): Delete la_get_compile_instance initializer.
4479 (minimal_language_data): Likewise.
4480 * c-lang.h (c_get_compile_context): Update comment.
4481 (cplus_get_compile_context): Update comment.
4482 * compile/compile.c (compile_to_object): Update calls, don't rely
4483 on function pointer being NULL.
4484 * d-lang.c (d_language_data): Delete la_get_compile_instance
4485 initializer.
4486 * f-lang.c (f_language_data): Likewise.
4487 * go-lang.c (go_language_data): Likewise.
4488 * language.c (unknown_language_data): Likewise.
4489 (auto_language_data): Likewise.
4490 * language.h (language_data): Delete la_get_compile_instance field.
4491 (language_defn::get_compile_instance): New member function.
4492 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4493 initializer.
4494 * objc-lang.c (objc_language_data): Likewise.
4495 * opencl-lang.c (opencl_language_data): Likewise.
4496 * p-lang.c (pascal_language_data): Likewise.
4497 * rust-lang.c (rust_language_data): Likewise.
4498
4499 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * ada-lang.c (ada_add_all_symbols): Update comment.
4502 (ada_iterate_over_symbols): Delete, move implementation to...
4503 (ada_language::iterate_over_symbols): ...here, a new member
4504 function, rewrite to use range based for loop.
4505 (ada_language_data): Delete la_iterate_over_symbols initializer.
4506 * c-lang.c (c_language_data): Likewise.
4507 (cplus_language_data): Likewise.
4508 (asm_language_data): Likewise.
4509 (minimal_language_data): Likewise.
4510 * d-lang.c (d_language_data): Likewise.
4511 * f-lang.c (f_language_data): Likewise.
4512 * go-lang.c (go_language_data): Likewise.
4513 * language.c (unknown_language_data): Likewise.
4514 (auto_language_data): Likewise.
4515 * language.h (language_data): Delete la_iterate_over_symbols field.
4516 (language_defn::iterate_over_symbols): New member function.
4517 (LA_ITERATE_OVER_SYMBOLS): Update.
4518 * linespec.c (iterate_over_all_matching_symtabs): Update.
4519 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4520 initializer.
4521 * objc-lang.c (objc_language_data): Likewise.
4522 * opencl-lang.c (opencl_language_data): Likewise.
4523 * p-lang.c (pascal_language_data): Likewise.
4524 * rust-lang.c (rust_language_data): Likewise.
4525
4526 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4527
4528 * ada-lang.c (ada_language_data): Delete
4529 la_lookup_transparent_type initializer.
4530 * c-lang.c (c_language_data): Likewise.
4531 (cplus_language_data): Likewise.
4532 (cplus_language::lookup_transparent_type): New member function.
4533 (asm_language_data): Delete la_lookup_transparent_type
4534 initializer.
4535 (minimal_language_data): Likewise.
4536 * d-lang.c (d_language_data): Likewise.
4537 * f-lang.c (f_language_data): Likewise.
4538 * go-lang.c (go_language_data): Likewise.
4539 * language.c (unknown_language_data): Likewise.
4540 (auto_language_data): Likewise.
4541 * language.h (struct language_data): Delete
4542 la_lookup_transparent_type field.
4543 (language_defn::lookup_transparent_type): New member function.
4544 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4545 initializer.
4546 * objc-lang.c (objc_language_data): Likewise.
4547 * opencl-lang.c (opencl_language_data): Likewise.
4548 * p-lang.c (pascal_language_data): Likewise.
4549 * rust-lang.c (rust_language_data): Likewise.
4550 * symtab.c (symbol_matches_domain): Update call.
4551
4552 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * ada-lang.c (ada_language_arch_info): Delete function, move
4555 implementation to...
4556 (ada_language::language_arch_info): ...here, a new member
4557 function.
4558 (ada_language_data): Delete la_language_arch_info.
4559 * c-lang.c (c_language_data): Likewise.
4560 (c_language::language_arch_info): New member function.
4561 (cplus_language_arch_info): Delete function, move
4562 implementation to...
4563 (cplus_language::language_arch_info): ...here, a new member
4564 function.
4565 (cplus_language_data): Delete la_language_arch_info.
4566 (asm_language_data): Likewise.
4567 (asm_language::language_arch_info): New member function.
4568 (minimal_language_data): Delete la_language_arch_info.
4569 (minimal_language::language_arch_info): New member function.
4570 * d-lang.c (d_language_arch_info): Delete function, move
4571 implementation to...
4572 (d_language::language_arch_info): ...here, a new member
4573 function.
4574 (d_language_data): Delete la_language_arch_info.
4575 * f-lang.c (f_language_arch_info): Delete function, move
4576 implementation to...
4577 (f_language::language_arch_info): ...here, a new member
4578 function.
4579 (f_language_data): Delete la_language_arch_info.
4580 * go-lang.c (go_language_arch_info): Delete function, move
4581 implementation to...
4582 (go_language::language_arch_info): ...here, a new member
4583 function.
4584 (go_language_data): Delete la_language_arch_info.
4585 * language.c (unknown_language_data): Likewise.
4586 (unknown_language::language_arch_info): New member function.
4587 (auto_language_data): Delete la_language_arch_info.
4588 (auto_language::language_arch_info): New member function.
4589 (language_gdbarch_post_init): Update call to
4590 la_language_arch_info.
4591 * language.h (language_data): Delete la_language_arch_info
4592 function pointer.
4593 (language_defn::language_arch_info): New function.
4594 * m2-lang.c (m2_language_arch_info): Delete function, move
4595 implementation to...
4596 (m2_language::language_arch_info): ...here, a new member
4597 function.
4598 (m2_language_data): Delete la_language_arch_info.
4599 * objc-lang.c (objc_language_arch_info): Delete function, move
4600 implementation to...
4601 (objc_language::language_arch_info): ...here, a new member
4602 function.
4603 (objc_language_data): Delete la_language_arch_info.
4604 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4605 implementation to...
4606 (opencl_language::language_arch_info): ...here, a new member
4607 function.
4608 (opencl_language_data): Delete la_language_arch_info.
4609 * p-lang.c (pascal_language_arch_info): Delete function, move
4610 implementation to...
4611 (pascal_language::language_arch_info): ...here, a new member
4612 function.
4613 (pascal_language_data): Delete la_language_arch_info.
4614 * rust-lang.c (rust_language_arch_info): Delete function, move
4615 implementation to...
4616 (rust_language::language_arch_info): ...here, a new member
4617 function.
4618 (rust_language_data): Delete la_language_arch_info.
4619
4620 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4621
4622 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4623 initializer.
4624 * c-lang.c (c_language_data): Likewise.
4625 (cplus_language_data): Likewise.
4626 (cplus_language::pass_by_reference_info): New method.
4627 (asm_language_data): Delete la_pass_by_reference initializer.
4628 (minimal_language_data): Likewise.
4629 * cp-abi.c (cp_pass_by_reference): Remove use of
4630 default_pass_by_reference.
4631 * d-lang.c (d_language_data): Likewise.
4632 * f-lang.c (f_language_data): Likewise.
4633 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4634 default_pass_by_reference.
4635 * go-lang.c (go_language_data): Likewise.
4636 * language.c (language_pass_by_reference): Update.
4637 (default_pass_by_reference): Delete.
4638 (unknown_language_data): Delete la_pass_by_reference
4639 initializer.
4640 (auto_language_data): Likewise.
4641 * language.h (struct language_data): Delete la_pass_by_reference
4642 field.
4643 (language_defn::pass_by_reference_info): New member function.
4644 (default_pass_by_reference): Delete declaration.
4645 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4646 initializer.
4647 * objc-lang.c (objc_language_data): Likewise.
4648 * opencl-lang.c (opencl_language_data): Likewise.
4649 * p-lang.c (pascal_language_data): Likewise.
4650 * rust-lang.c (rust_language_data): Likewise.
4651
4652 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4653
4654 * ada-lang.c (ada_read_var_value): Delete function, move
4655 implementation to...
4656 (ada_language::read_var_value): ...here.
4657 (ada_language_data): Delete la_read_var_value initializer.
4658 * c-lang.c (c_language_data): Likewise.
4659 (cplus_language_data): Likewise.
4660 (minimal_language_data): Likewise.
4661 * d-lang.c (d_language_data): Likewise.
4662 * f-lang.c (f_language_data): Likewise.
4663 * findvar.c (default_read_var_value): Rename to...
4664 (language_defn::read_var_value): ...this.
4665 * findvar.c (read_var_value): Update header comment, and change to
4666 call member function instead of function pointer.
4667 * go-lang.c (go_language_data): Likewise.
4668 * language.c (unknown_language_data): Delete la_read_var_value
4669 initializer.
4670 (auto_language_data): Likewise.
4671 * language.h (struct language_data): Delete la_read_var_value
4672 field.
4673 (language_defn::read_var_value): New member function.
4674 (default_read_var_value): Delete declaration.
4675 * m2-lang.c (m2_language_data): Delete la_read_var_value
4676 initializer.
4677 * objc-lang.c (objc_language_data): Likewise.
4678 * opencl-lang.c (opencl_language_data): Likewise.
4679 * p-lang.c (pascal_language_data): Likewise.
4680 * rust-lang.c (rust_language_data): Likewise.
4681 * value.h (default_read_var_value): Delete declaration.
4682
4683 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4684
4685 * ada-lang.c (ada_print_array_index): Delete function, move
4686 implementation to...
4687 (ada_language::print_array_index): ...here.
4688 (ada_language_data): Delete la_print_array_index initializer.
4689 * c-lang.c (c_language_data): Likewise.
4690 (cplus_language_data): Likewise.
4691 (minimal_language_data): Likewise.
4692 * d-lang.c (d_language_data): Likewise.
4693 * f-lang.c (f_language_data): Likewise.
4694 * go-lang.c (go_language_data): Likewise.
4695 * language.c (default_print_array_index): Delete function, move
4696 implementation to...
4697 (language_defn::print_array_index): ...here.
4698 (unknown_language_data): Delete la_print_array_index initializer.
4699 (auto_language_data): Likewise.
4700 * language.h (struct language_data): Delete la_print_array_index
4701 field.
4702 (language_defn::print_array_index): New member function.
4703 (LA_PRINT_ARRAY_INDEX): Update.
4704 (default_print_array_index): Delete declaration.
4705 * m2-lang.c (m2_language_data): Delete la_print_array_index
4706 initializer.
4707 * objc-lang.c (objc_language_data): Likewise.
4708 * opencl-lang.c (opencl_language_data): Likewise.
4709 * p-lang.c (pascal_language_data): Likewise.
4710 * rust-lang.c (rust_language_data): Likewise.
4711
4712 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4713
4714 * gdb/ada-lang.c (ada_language_defn): Convert to...
4715 (ada_language_data): ...this.
4716 (class ada_language): New class.
4717 (ada_language_defn): New static global.
4718 * gdb/c-lang.c (c_language_defn): Convert to...
4719 (c_language_data): ...this.
4720 (class c_language): New class.
4721 (c_language_defn): New static global.
4722 (cplus_language_defn): Convert to...
4723 (cplus_language_data): ...this.
4724 (class cplus_language): New class.
4725 (cplus_language_defn): New static global.
4726 (asm_language_defn): Convert to...
4727 (asm_language_data): ...this.
4728 (class asm_language): New class.
4729 (asm_language_defn): New static global.
4730 (minimal_language_defn): Convert to...
4731 (minimal_language_data): ...this.
4732 (class minimal_language): New class.
4733 (minimal_language_defn): New static global.
4734 * gdb/d-lang.c (d_language_defn): Convert to...
4735 (d_language_data): ...this.
4736 (class d_language): New class.
4737 (d_language_defn): New static global.
4738 * gdb/f-lang.c (f_language_defn): Convert to...
4739 (f_language_data): ...this.
4740 (class f_language): New class.
4741 (f_language_defn): New static global.
4742 * gdb/go-lang.c (go_language_defn): Convert to...
4743 (go_language_data): ...this.
4744 (class go_language): New class.
4745 (go_language_defn): New static global.
4746 * gdb/language.c (unknown_language_defn): Remove declaration.
4747 (current_language): Initialize to nullptr, real initialization is
4748 moved to _initialize_language.
4749 (languages): Delete global.
4750 (language_defn::languages): Define.
4751 (set_language_command): Use language_defn::languages.
4752 (set_language): Likewise.
4753 (range_error): Likewise.
4754 (language_enum): Likewise.
4755 (language_def): Likewise.
4756 (add_set_language_command): Use language_def::languages for the
4757 language list, and language_def to lookup language pointers.
4758 (skip_language_trampoline): Use language_defn::languages.
4759 (unknown_language_defn): Convert to...
4760 (unknown_language_data): ...this.
4761 (class unknown_language): New class.
4762 (unknown_language_defn): New static global.
4763 (auto_language_defn): Convert to...
4764 (auto_language_data): ...this.
4765 (class auto_language): New class.
4766 (auto_language_defn): New static global.
4767 (language_gdbarch_post_init): Use language_defn::languages.
4768 (_initialize_language): Initialize current_language.
4769 * gdb/language.h (struct language_defn): Rename to...
4770 (struct language_data): ...this.
4771 (struct language_defn): New.
4772 (auto_language_defn): Delete.
4773 (unknown_language_defn): Delete.
4774 (minimal_language_defn): Delete.
4775 (ada_language_defn): Delete.
4776 (asm_language_defn): Delete.
4777 (c_language_defn): Delete.
4778 (cplus_language_defn): Delete.
4779 (d_language_defn): Delete.
4780 (f_language_defn): Delete.
4781 (go_language_defn): Delete.
4782 (m2_language_defn): Delete.
4783 (objc_language_defn): Delete.
4784 (opencl_language_defn): Delete.
4785 (pascal_language_defn): Delete.
4786 (rust_language_defn): Delete.
4787 * gdb/m2-lang.c (m2_language_defn): Convert to...
4788 (m2_language_data): ...this.
4789 (class m2_language): New class.
4790 (m2_language_defn): New static global.
4791 * gdb/objc-lang.c (objc_language_defn): Convert to...
4792 (objc_language_data): ...this.
4793 (class objc_language): New class.
4794 (objc_language_defn): New static global.
4795 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4796 (opencl_language_data): ...this.
4797 (class opencl_language): New class.
4798 (opencl_language_defn): New static global.
4799 * gdb/p-lang.c (pascal_language_defn): Convert to...
4800 (pascal_language_data): ...this.
4801 (class pascal_language): New class.
4802 (pascal_language_defn): New static global.
4803 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4804 language pointer, update comment format.
4805 * gdb/rust-lang.c (rust_language_defn): Convert to...
4806 (rust_language_data): ...this.
4807 (class rust_language): New class.
4808 (rust_language_defn): New static global.
4809
4810 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4811
4812 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4813 member variable.
4814 <m_stmt_at_address>: New member variable.
4815 (lnp_state_machine::record_line): Don't record some lines, update
4816 tracking of is_stmt at the same address.
4817 (lnp_state_machine::lnp_state_machine): Initialise new member
4818 variables.
4819
4820 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4821
4822 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4823 "-include gnu-nat-mig.h".
4824 * gnu-nat-mig.h: New file.
4825 * gnu-nat.c: Include "gnu-nat-mig.h".
4826 (exc_server, msg_reply_server, notify_server,
4827 process_reply_server): Remove declarations.
4828
4829 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4830
4831 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4832 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4833 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4834 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4835 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4836 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4837 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4838 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4839 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4840 to gnu_nat_target class.
4841 * gnu-nat.c: Likewise.
4842 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4843 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4844 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4845 object.
4846 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4847 instead of `gnu_target'.
4848
4849 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4850
4851 * i386-gnu-tdep.c: Include "gdbcore.h"
4852 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4853 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4854 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4855 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4856 i386_gnu_sigcontext_addr): New functions
4857 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4858 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4859 tdep.
4860
4861 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4862
4863 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4864 before fork_inferior call. Avoid calling it if target_is_pushed returns
4865 true.
4866
4867 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4868
4869 * gnu-nat.h (gnu_target): New variable declaration.
4870 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4871 gnu_target.
4872 * gnu-nat.c (gnu_target): New variable.
4873 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4874 add_thread_silent, and add_thread calls.
4875 (gnu_nat_target::create_inferior): Pass gnu_target to
4876 add_thread_silent, thread_change_ptid call.
4877 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4878 call.
4879
4880 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4881
4882 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4883 (gnu_nat_target::find_memory_regions): Remove unused
4884 `old_address' variable.
4885
4886 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4887
4888 * gnu-nat.c: Include "gdbarch.h".
4889
4890 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4891
4892 * reply_mig_hack.awk (Error return): Cast function through
4893 void *, to bypass compiler function call check.
4894
4895 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4896
4897 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4898 $(srcdir)/reply_mig_hack.awk.
4899
4900 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4901
4902 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4903
4904 2020-05-30 Jonny Grant <jg@jguk.org>
4905
4906 * configure.ac (ACX_BUGURL): change bug URL to https.
4907
4908 2020-05-30 Pedro Alves <palves@redhat.com>
4909
4910 * cp-support.c (replace_typedefs_template): New.
4911 (replace_typedefs_qualified_name): Handle
4912 DEMANGLE_COMPONENT_TEMPLATE.
4913
4914 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4917 dwarf2/index-cache.h, dwarf2/index-write.c,
4918 dwarf2/index-write.h, dwarf2/line-header.c,
4919 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4920 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4921 variables and fields from `dwarf2_per_objfile` to just
4922 `per_objfile` throughout.
4923
4924 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4925
4926 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4927 <push_dwarf_reg_entry_value>: Add comment.
4928
4929 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4930 Keith Seitz <keiths@redhat.com>
4931
4932 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4933 instead of PyEval_ReleaseLock.
4934 (class gdbpy_gil): Move to earlier in file.
4935 (finalize_python): Set gdb_python_initialized.
4936 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4937 when not initialized.
4938
4939 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4942 <push_dwarf_reg_entry_value>: Remove assert. Override
4943 per_objfile with caller_per_objfile.
4944
4945 2020-05-28 Tom de Vries <tdevries@suse.de>
4946
4947 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4948 PR gold/15646 workaround to symbol kind "type".
4949
4950 2020-05-27 Tom Tromey <tromey@adacore.com>
4951
4952 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4953
4954 2020-05-27 Tom Tromey <tromey@adacore.com>
4955
4956 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4957 Use htab_find_with_hash.
4958 <add_abbrev>: Remove "abbrev_number" parameter.
4959 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4960 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4961 (hash_abbrev): Add comment.
4962 (abbrev_table::lookup_abbrev): Move to header file.
4963 (abbrev_table::read): Update.
4964
4965 2020-05-27 Tom Tromey <tromey@adacore.com>
4966
4967 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4968 method.
4969 <canonical_name>: New member.
4970 <raw_name>: Rename from "name".
4971 (partial_die_info): Initialize canonical_name.
4972 (scan_partial_symbols): Check raw_name.
4973 (partial_die_parent_scope, partial_die_full_name)
4974 (add_partial_symbol, add_partial_subprogram)
4975 (add_partial_enumeration, load_partial_dies): Use "name" method.
4976 (partial_die_info::name): New method.
4977 (partial_die_info::read, guess_partial_die_structure_name)
4978 (partial_die_info::fixup): Update.
4979
4980 2020-05-27 Tom Tromey <tromey@adacore.com>
4981
4982 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4983 <get_ref_die_offset>: Inline.
4984 <get_ref_die_offset_complaint>: New method.
4985 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4986 (attribute::get_ref_die_offset_complaint): Rename from
4987 get_ref_die_offset. Just issue complaint.
4988
4989 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4990
4991 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4992
4993 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4994
4995 * exec.c (exec_file_attach): Use errno value of first openp failure.
4996
4997 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4998
4999 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5000 Don't close thread handle.
5001
5002 2020-05-27 Tom Tromey <tom@tromey.com>
5003 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5006 shared_ptr.
5007 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5008 member.
5009 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5010 dwarf2_per_bfd_objfile_data_key>: New globals.
5011 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5012 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5013 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5014 shared.
5015 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5016 short-circuit when sharing.
5017 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5018 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5019
5020 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5021
5022 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5023 to...
5024 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5025 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5026
5027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5030 build_name_components, find_name_components_bounds>:
5031 Add per_objfile parameter.
5032 (struct mapped_index) <symbol_name_at>: Likewise.
5033 (struct mapped_debug_names): Remove constructor.
5034 <dwarf2_per_objfile>: Remove field.
5035 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5036 (mapped_index_base::find_name_components_bounds,
5037 mapped_index_base::build_name_components,
5038 dw2_expand_symtabs_matching_symbol): Likewise.
5039 (class mock_mapped_index) <symbol_name_at>: Likewise.
5040 (check_match): Likewise.
5041 (check_find_bounds_finds): Likewise.
5042 (test_mapped_index_find_name_component_bounds): Update.
5043 (CHECK_MATCH): Update.
5044 (dw2_expand_symtabs_matching): Update.
5045 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5046 per_objfile parameter.
5047 <find_vec_in_debug_names>: Likewise.
5048 <m_per_objfile>: New field.
5049 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5050 parameter.
5051 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5052 (dw2_debug_names_iterator::next): Update.
5053 (dw2_debug_names_lookup_symbol): Update.
5054 (dw2_debug_names_expand_symtabs_for_function): Update.
5055 (dw2_debug_names_map_matching_symbols): Update.
5056 (dw2_debug_names_expand_symtabs_matching): Update.
5057 (dwarf2_read_debug_names): Update.
5058
5059 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5060
5061 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5062 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5063 move to dwarf2_per_objfile.
5064 <read_in_chain>: Remove.
5065 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5066 remove_all_cus, age_comp_units>: New methods.
5067 <m_dwarf2_cus>: New member.
5068 (struct dwarf2_per_cu_data) <cu>: Remove.
5069 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5070 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5071 moved to methods of dwarf2_per_objfile.
5072 (dwarf2_clear_marks): Remove.
5073 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5074 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5075 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5076 (dwarf2_per_objfile::remove_all_cus): New.
5077 (class free_cached_comp_units) <~free_cached_comp_units>:
5078 Update.
5079 (load_cu): Update.
5080 (dw2_do_instantiate_symtab): Adjust.
5081 (fill_in_sig_entry_from_dwo_entry): Adjust.
5082 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5083 (cutu_reader::cutu_reader): Likewise.
5084 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5085 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5086 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5087 and dwarf2_per_objfile::age_comp_units.
5088 (load_partial_comp_unit): Update.
5089 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5090 (process_queue): Likewise.
5091 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5092 backlink.
5093 (dwarf2_read_addr_index): Likewise.
5094 (follow_die_offset): Likewise.
5095 (dwarf2_fetch_die_loc_sect_off): Likewise.
5096 (dwarf2_fetch_constant_bytes): Likewise.
5097 (dwarf2_fetch_die_type_sect_off): Likewise.
5098 (follow_die_sig_1): Likewise.
5099 (load_full_type_unit): Likewise.
5100 (read_signatured_type): Likewise.
5101 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5102 (dwarf2_cu::~dwarf2_cu): Remove.
5103 (dwarf2_per_objfile::get_cu): New.
5104 (dwarf2_per_objfile::set_cu): New.
5105 (age_cached_comp_units): Rename to...
5106 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5107 to std::unordered_map.
5108 (free_one_cached_comp_unit): Rename to...
5109 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5110 to std::unordered_map.
5111 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5112 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5113 a dwarf2_per_objfile in data.
5114 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5115 (dwarf2_clear_marks): Remove.
5116
5117 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5118
5119 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5120 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5121 (init_tu_and_read_dwo_dies): Likewise.
5122 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5123 (cutu_reader::cutu_reader): Likewise.
5124 (load_partial_comp_unit): Likewise.
5125 (process_psymtab_comp_unit): Update.
5126 (build_type_psymtabs_1): Update.
5127 (process_skeletonless_type_unit): Update.
5128 (load_full_comp_unit): Update.
5129 (find_partial_die): Update.
5130 (dwarf2_read_addr_index): Update.
5131 (read_signatured_type): Update.
5132
5133 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5134
5135 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5136 m_header_read_in>: New fields.
5137 <get_header>: New method.
5138 * dwarf2/read.c (per_cu_header_read_in): Remove.
5139 (dwarf2_per_cu_data::get_header): New.
5140 (dwarf2_per_cu_data::addr_size): Update.
5141 (dwarf2_per_cu_data::offset_size): Update.
5142 (dwarf2_per_cu_data::ref_addr_size): Update.
5143
5144 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5145
5146 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5147 (dw2_do_instantiate_symtab): Update.
5148 (queue_and_load_all_dwo_tus): Change parameter from
5149 dwarf2_per_cu_data to dwarf2_cu.
5150 (dwarf2_fetch_die_loc_sect_off): Update.
5151 (dwarf2_fetch_constant_bytes): Update.
5152 (dwarf2_fetch_die_type_sect_off): Update.
5153
5154 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * dwarf2/read.c (process_full_comp_unit,
5157 process_full_type_unit): Remove per_cu, per_objfile paramters.
5158 Add dwarf2_cu parameter.
5159 (process_queue): Update.
5160
5161 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 * dwarf2/read.c (create_cu_from_index_list): Replace
5164 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5165 (create_cus_from_index_list): Likewise.
5166 (create_cus_from_index): Likewise.
5167 (create_signatured_type_table_from_index): Likewise.
5168 (create_cus_from_debug_names_list): Likewise.
5169 (create_cus_from_debug_names): Likewise.
5170 (dwarf2_read_gdb_index): Update.
5171 (dwarf2_read_debug_names): Update.
5172
5173 2020-05-27 Tom Tromey <tom@tromey.com>
5174 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * dwarf2/read.h (struct dwarf2_per_objfile)
5177 <get_type_for_signatured_type, set_type_for_signatured_type>:
5178 New methods.
5179 <m_type_map>: New member.
5180 (struct signatured_type) <type>: Remove.
5181 * dwarf2/read.c
5182 (dwarf2_per_objfile::get_type_for_signatured_type,
5183 dwarf2_per_objfile::set_type_for_signatured_type): New.
5184 (get_signatured_type): Use new methods.
5185
5186 2020-05-27 Tom Tromey <tom@tromey.com>
5187 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5190 (struct dwarf2_per_objfile) <type_units>: New member.
5191 <get_type_unit_group_unshareable>: New method.
5192 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5193 num_symtabs, symtabs>: Remove; move to
5194 type_unit_group_unshareable.
5195 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5196 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5197 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5198
5199 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * dwarf2/read.h (struct dwarf2_per_cu_data):
5202 <dwarf2_per_objfile>: Remove.
5203 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5204 dwarf2_per_objfile.
5205 (create_signatured_type_table_from_index): Likewise.
5206 (create_signatured_type_table_from_debug_names): Likewise.
5207 (create_debug_type_hash_table): Likewise.
5208 (fill_in_sig_entry_from_dwo_entry): Likewise.
5209 (create_type_unit_group): Likewise.
5210 (read_comp_units_from_section): Likewise.
5211 (create_cus_hash_table): Likewise.
5212
5213 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5216 dwarf2_per_cu_data::dwarf2_per_objfile.
5217 (compute_compunit_symtab_includes): Likewise.
5218 (dwarf2_cu::start_symtab): Likewise.
5219
5220 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5223 parameter.
5224 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5225 (read_namespace_alias): Update.
5226 (lookup_die_type): Update.
5227 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5228 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5229 Update.
5230 (disassemble_dwarf_expression): Update.
5231
5232 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * dwarf2/read.h (struct dwarf2_queue_item): Add
5235 dwarf2_per_objfile parameter, assign new parameter.
5236 <per_objfile>: New field.
5237 * dwarf2/read.c (free_one_cached_comp_unit): Add
5238 dwarf2_per_objfile parameter.
5239 (queue_comp_unit): Likewise.
5240 (dw2_do_instantiate_symtab): Update.
5241 (process_psymtab_comp_unit): Update.
5242 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5243 (process_imported_unit_die): Update.
5244 (queue_and_load_dwo_tu): Update.
5245 (follow_die_offset): Update.
5246 (follow_die_sig_1): Update.
5247
5248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5249
5250 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5251 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5252 (read_call_site_scope): Assign per_objfile.
5253 (dwarf2_per_cu_data::objfile): Remove.
5254 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5255 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5256 dwarf2_per_objfile parameter.
5257 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5258 dwarf2_per_objfile parameter.
5259 (dwarf_expr_reg_to_entry_parameter): Add output
5260 dwarf2_per_objfile parameter.
5261 (locexpr_get_frame_base): Update.
5262 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5263 <push_dwarf_reg_entry_value>: Update.
5264 <call_site_to_target_addr>: Update.
5265 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5266 parameter.
5267 (value_of_dwarf_reg_entry): Update.
5268 (rw_pieced_value): Update.
5269 (indirect_synthetic_pointer): Update.
5270 (dwarf2_evaluate_property): Update.
5271 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5272 parameter.
5273 (locexpr_read_variable): Update.
5274 (locexpr_get_symbol_read_needs): Update.
5275 (loclist_read_variable): Update.
5276
5277 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5280 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5281 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5282 parameter.
5283 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5284 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5285 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5286 parameter.
5287 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5288 sect_variable_value): Add dwarf2_per_objfile parameter.
5289 (class dwarf_evaluate_loc_desc) <dwarf_call,
5290 dwarf_variable_value>: Update.
5291 (fetch_const_value_from_synthetic_pointer): Add
5292 dwarf2_per_objfile parameter.
5293 (fetch_const_value_from_synthetic_pointer): Update.
5294 (coerced_pieced_ref): Update.
5295 (class symbol_needs_eval_context) <dwarf_call,
5296 dwarf_variable_value>: Update.
5297 (dwarf2_compile_expr_to_ax): Update.
5298
5299 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5300
5301 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5302 parameter.
5303 (dwarf2_evaluate_loc_desc_full): Update.
5304
5305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5308 parameter.
5309 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5310 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5311 dwarf2_per_objfile parameter.
5312 (decode_debug_loc_dwo_addresses): Likewise.
5313 (dwarf2_find_location_expression): Update.
5314 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5315 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5316 parameter.
5317 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5318 parameter.
5319 (locexpr_describe_location_1): Likewise.
5320 (locexpr_describe_location): Update.
5321
5322 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5323
5324 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5325 Remove.
5326 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5327 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5328 (dwarf2_compile_property_to_c): Update.
5329 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5330 use text offset from objfile.
5331 (locexpr_tracepoint_var_ref): Update.
5332 (locexpr_generate_c_location): Update.
5333 (loclist_describe_location): Update.
5334 (loclist_tracepoint_var_ref): Update.
5335 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5336 dwarf2_per_objfile parameter.
5337 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5338 use text offset from objfile.
5339 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5340
5341 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5342
5343 * dwarf2/expr.h (struct dwarf_expr_context)
5344 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5345 <offset>: Remove.
5346 <per_objfile>: New member.
5347 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5348 dwarf2_per_objfile parameter. Don't set offset, set
5349 per_objfile.
5350 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5351 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5352 a dwarf2_per_objfile object instead of an offset.
5353 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5354 constructor.
5355 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5356 to dwarf2_expr_executor constructor. Don't set offset.
5357 (dwarf2_fetch_cfa_info): Update.
5358 (struct dwarf2_frame_cache) <text_offset>: Remove.
5359 <per_objfile>: New field.
5360 (dwarf2_frame_cache): Update.
5361 (dwarf2_frame_prev_register): Update.
5362 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5363 <dwarf_evaluate_loc_desc>: Add constructor.
5364 (dwarf2_evaluate_loc_desc_full): Update.
5365 (dwarf2_locexpr_baton_eval): Update.
5366 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5367 Add constructor.
5368 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5369
5370 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5373 addr_sized_int_type>: Move to dwarf2_cu.
5374 <int_type>: Move to dwarf2_per_objfile.
5375 (struct dwarf2_per_objfile) <int_type>: Move here.
5376 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5377 addr_sized_int_type>: Move here.
5378 (read_func_scope): Update.
5379 (read_array_type): Update.
5380 (read_tag_string_type): Update.
5381 (attr_to_dynamic_prop): Update.
5382 (dwarf2_per_cu_data::int_type): Rename to...
5383 (dwarf2_per_objfile::int_type): ... this.
5384 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5385 (dwarf2_cu::addr_sized_int_type): ... this.
5386 (read_subrange_type): Update.
5387 (dwarf2_per_cu_data::addr_type): Rename to...
5388 (dwarf2_cu::addr_type): ... this.
5389 (set_die_type): Update.
5390
5391 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5394 data through per_cu->cu.
5395
5396 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5397
5398 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5399 dwarf2_per_cu_data parameter fo dwarf2_cu.
5400 (lookup_dwo_type_unit): Likewise.
5401 (read_cutu_die_from_dwo): Likewise.
5402 (lookup_dwo_unit): Likewise.
5403 (open_and_init_dwo_file): Likewise.
5404 (lookup_dwo_cutu): Likewise.
5405 (lookup_dwo_comp_unit): Likewise.
5406 (lookup_dwo_type_unit): Likewise.
5407 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5408 (cutu_reader::cutu_reader): Update.
5409
5410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5413 parameter.
5414 (process_full_type_unit): Likewise.
5415 (process_queue): Update.
5416
5417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/read.c (recursively_compute_inclusions): Add
5420 dwarf2_per_objfile parameter.
5421 (compute_compunit_symtab_includes): Likewise.
5422 (process_cu_includes): Update.
5423
5424 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5427 parameter.
5428 (create_type_unit_group): Update.
5429 (process_psymtab_comp_unit_reader): Update.
5430 (build_type_psymtabs_reader): Update.
5431
5432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5435 object through m_this_cu->cu.
5436
5437 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5440 the info parameter.
5441 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5442
5443 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5444
5445 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5446 per_objfile parameter.
5447 (load_full_type_unit): Add per_objfile parameter.
5448 (read_signatured_type): Likewise.
5449 (load_full_comp_unit): Likewise.
5450 (load_cu): Likewise.
5451 (dw2_do_instantiate_symtab): Likewise.
5452 (dw2_get_file_names): Likewise.
5453 (dw2_map_symtabs_matching_filename): Update.
5454 (dw_expand_symtabs_matching_file_matcher): Update.
5455 (dw2_map_symbol_filenames): Update.
5456 (process_psymtab_comp_unit): Add per_objfile parameter.
5457 (build_type_psymtabs_1): Update.
5458 (process_skeletonless_type_unit): Update.
5459 (dwarf2_build_psymtabs_hard): Update.
5460 (load_partial_comp_unit): Add per_objfile parameter.
5461 (scan_partial_symbols): Update.
5462 (load_full_comp_unit): Add per_objfile parameter.
5463 (process_imported_unit_die): Update.
5464 (create_cus_hash_table): Update.
5465 (find_partial_die): Update.
5466 (dwarf2_read_addr_index): Update.
5467 (follow_die_offset): Update.
5468 (dwarf2_fetch_die_loc_sect_off): Update.
5469 (dwarf2_fetch_constant_bytes): Update.
5470 (dwarf2_fetch_die_type_sect_off): Update.
5471 (follow_die_sig_1): Update.
5472 (load_full_type_unit): Add per_objfile parameter.
5473 (read_signatured_type): Likewise.
5474
5475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5478 of objfile_name.
5479
5480 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5481
5482 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5483 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5484 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5485 field.
5486 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5487 (create_cus_from_index): Update.
5488 (dwarf2_read_gdb_index): Update.
5489 (create_cus_from_debug_names): Update.
5490 (dwarf2_read_debug_names): Update.
5491 (get_abbrev_section_for_cu): Update.
5492 (create_all_comp_units): Update.
5493 (read_attribute_value): Update.
5494 (get_debug_line_section): Update.
5495 * dwarf2/index-cache.c (index_cache::store): Update.
5496 * dwarf2/index-write.c (save_gdb_index_command): Update.
5497 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5498
5499 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5500
5501 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5502 member.
5503 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5504 dwarf2_per_cu_data::per_bfd.
5505 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5506 (create_type_unit_group): Likewise.
5507 (queue_comp_unit): Remove reference to
5508 per_cu->dwarf2_per_objfile.
5509 (maybe_queue_comp_unit): Likewise.
5510 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5511 (create_cus_hash_table): Assign new field.
5512
5513 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5514
5515 * dwarf2/read.c: Replace
5516 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5517 dwarf2_cu->per_objfile throughout.
5518
5519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5522 parameter, don't use per_cu->dwarf2_per_objfile.
5523 (dw2_instantiate_symtab): Likewise.
5524 (dw2_find_last_source_symtab): Update.
5525 (dw2_map_expand_apply): Update.
5526 (dw2_lookup_symbol): Update.
5527 (dw2_expand_symtabs_for_function): Update.
5528 (dw2_expand_all_symtabs): Update.
5529 (dw2_expand_symtabs_with_fullname): Update.
5530 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5531 don't use per_cu->dwarf2_per_objfile.
5532 (dw2_expand_marked_cus): Update.
5533 (dw2_find_pc_sect_compunit_symtab): Update.
5534 (dw2_debug_names_lookup_symbol): Update.
5535 (dw2_debug_names_expand_symtabs_for_function): Update.
5536 (dw2_debug_names_map_matching_symbols): Update.
5537 (dwarf2_psymtab::expand_psymtab): Update.
5538
5539 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5540
5541 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5542 <per_objfile>: New member.
5543 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5544 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5545 call to dwarf2_cu.
5546 (cutu_reader::cutu_reader): Update.
5547 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5548
5549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5552 struct dwarf2_per_objfile.
5553 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5554 dwarf2_per_bfd.
5555 * dwarf2/read.c (set_die_type): Update.
5556 (get_die_type_at_offset): Update.
5557
5558 2020-05-27 Tom Tromey <tom@tromey.com>
5559 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5562 method.
5563 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5564 get_symtab, set_symtab>: New methods.
5565 <m_symtabs>: New field.
5566 (struct dwarf2_psymtab): Derive from partial_symtab.
5567 <readin_p, get_compunit_symtab>: Declare methods.
5568 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5569 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5570 New methods.
5571 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5572 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5573 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5574 (dw2_symtab_iter_next, dw2_print_stats)
5575 (dw2_expand_symtabs_with_fullname)
5576 (dw2_expand_symtabs_matching_one)
5577 (dw_expand_symtabs_matching_file_matcher)
5578 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5579 (dw2_debug_names_iterator::next)
5580 (dw2_debug_names_map_matching_symbols)
5581 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5582 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5583 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5584 New methods.
5585 (get_compunit_symtab, process_full_comp_unit)
5586 (process_full_type_unit): Update.
5587 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5588
5589 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5590
5591 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5592 then introduce a new dwarf2_per_objfile type.
5593 <read_line_string>: Move to the new dwarf2_per_objfile type.
5594 <objfile>: Likewise.
5595 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5596 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5597 dwarf2_per_objfile->per_bfd.
5598 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5599 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5600 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5601 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5602 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5603 (dwarf2_per_objfile::locate_sections): Rename to...
5604 (dwarf2_per_bfd::locate_sections): ... this.
5605 (dwarf2_per_objfile::get_cutu): Rename to...
5606 (dwarf2_per_bfd::get_cutu): ... this.
5607 (dwarf2_per_objfile::get_cu): Rename to...
5608 (dwarf2_per_bfd::get_cu): ... this.
5609 (dwarf2_per_objfile::get_tu): Rename to...
5610 (dwarf2_per_bfd::get_tu): ... this.
5611 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5612 (dwarf2_per_bfd::allocate_per_cu): ... this.
5613 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5614 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5615 (get_gdb_index_contents_ftype): Change parameter from
5616 dwarf2_per_objfile to dwarf2_per_bfd.
5617 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5618 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5619
5620 2020-05-27 Tom Tromey <tom@tromey.com>
5621 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5624 (allocate_piece_closure): Set "per_objfile" member.
5625 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5626 (locexpr_describe_location, loclist_describe_location): Use new
5627 member.
5628 * dwarf2/read.c (read_call_site_scope)
5629 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5630 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5631 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5632 handle_data_member_location): Set per_objfile member.
5633 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5634 member.
5635 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5636
5637 2020-05-27 Tom Tromey <tom@tromey.com>
5638
5639 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5640 allocate_signatured_type>: Declare new methods.
5641 <m_num_psymtabs>: New member.
5642 (struct dwarf2_per_cu_data) <index>: New member.
5643 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5644 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5645 (create_cu_from_index_list): Use allocate_per_cu.
5646 (create_signatured_type_table_from_index)
5647 (create_signatured_type_table_from_debug_names)
5648 (create_debug_type_hash_table, add_type_unit)
5649 (read_comp_units_from_section): Use allocate_signatured_type.
5650
5651 2020-05-27 Tom Tromey <tom@tromey.com>
5652
5653 * psymtab.c (partial_map_expand_apply)
5654 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5655 (psym_lookup_global_symbol_language)
5656 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5657 (psym_print_stats, psym_expand_symtabs_for_function)
5658 (psym_map_symbol_filenames, psym_map_matching_symbols)
5659 (psym_expand_symtabs_matching)
5660 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5661 (maintenance_check_psymtabs): Update.
5662 * psympriv.h (struct partial_symtab) <readin_p,
5663 get_compunit_symtab>: Add objfile parameter.
5664 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5665 Likewise.
5666 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5667 get_compunit_symtab>: Likewise.
5668 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5669
5670 2020-05-27 Tom Tromey <tom@tromey.com>
5671
5672 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5673 member.
5674 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5675 (create_cu_from_index_list)
5676 (create_signatured_type_table_from_index)
5677 (create_signatured_type_table_from_debug_names)
5678 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5679 (dwarf2_create_include_psymtab)
5680 (create_debug_type_hash_table, add_type_unit)
5681 (create_type_unit_group, read_comp_units_from_section)
5682 (dwarf2_compute_name, create_cus_hash_table)
5683 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5684 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5685 obstack.
5686 (dw2_get_real_path): Likewise. Change argument to
5687 dwarf2_per_objfile.
5688
5689 2020-05-27 Luis Machado <luis.machado@linaro.org>
5690
5691 PR tdep/26000
5692 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5693 for ldrd (immediate).
5694
5695 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5696
5697 * command.h: Add comment giving the name of class_tui.
5698 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5699 create the fake command for the help for class_tui.
5700
5701 2020-05-26 Tom Tromey <tromey@adacore.com>
5702
5703 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5704 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5705 (val_atr): New function.
5706 (value_val_atr): Use it.
5707 * ada-valprint.c (print_optional_low_bound): Change low bound
5708 handling for enums.
5709 (val_print_packed_array_elements): Don't call discrete_position.
5710 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5711 discrete_position for enum types.
5712 * language.c (default_print_array_index): Change type.
5713 * language.h (struct language_defn) <la_print_array_index>: Add
5714 index_type parameter, change type of index_value.
5715 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5716 (default_print_array_index): Update.
5717 * valprint.c (maybe_print_array_index): Don't call
5718 value_from_longest. Update.
5719 (value_print_array_elements): Don't call discrete_position.
5720
5721 2020-05-26 Tom Tromey <tromey@adacore.com>
5722
5723 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5724 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5725
5726 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5727
5728 PR gdb/13519
5729 * avr-tdep.c (avr_integer_to_address): Return data or code
5730 address accordingly to the second 'type' argument of the
5731 function.
5732
5733 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5734
5735 * infcmd.c, inferior.h: (construct_inferior_arguments):
5736 Moved function from here to gdbsupport/common-inferior.{h,cc}
5737
5738 2020-05-23 Tom Tromey <tom@tromey.com>
5739
5740 Revert commit eca1f90c:
5741 * NEWS: Remove entry for completion styling.
5742 * completer.c (_rl_completion_prefix_display_length): Move
5743 declaration later.
5744 (gdb_fnprint): Revert.
5745 (gdb_display_match_list_1): Likewise.
5746 * cli/cli-style.c (completion_prefix_style)
5747 (completion_difference_style, completion_suffix_style): Remove.
5748 (_initialize_cli_style): Revert.
5749 * cli/cli-style.h (completion_prefix_style)
5750 (completion_difference_style, completion_suffix_style): Don't
5751 declare.
5752
5753 2020-05-24 Pedro Alves <palves@redhat.com>
5754
5755 * symtab.c (completion_list_add_name): Return boolean indication
5756 of whether the symbol matched.
5757 (completion_list_add_symbol): Don't try to remove C++ aliases if
5758 the symbol didn't match in the first place.
5759 * symtab.h (completion_list_add_name): Return bool.
5760
5761 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5762
5763 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5764 type::field.
5765
5766 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5767
5768 GDB 9.2 released.
5769
5770 2020-05-23 Tom Tromey <tom@tromey.com>
5771
5772 * NEWS: Add entry for completion styling.
5773 * completer.c (_rl_completion_prefix_display_length): Move
5774 declaration earlier.
5775 (gdb_fnprint): Use completion_style.
5776 (gdb_display_match_list_1): Likewise.
5777 * cli/cli-style.c (completion_prefix_style)
5778 (completion_difference_style, completion_suffix_style): New
5779 globals.
5780 (_initialize_cli_style): Register new globals.
5781 * cli/cli-style.h (completion_prefix_style)
5782 (completion_difference_style, completion_suffix_style): Declare.
5783
5784 2020-05-23 Pedro Alves <palves@redhat.com>
5785
5786 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5787 (parse_escape): Use ISDIGIT instead of isdigit.
5788 (puts_debug): Use gdb_isprint instead of isprint.
5789 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5790 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5791 ISSPACE instead of isspace.
5792 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5793 instead of isspace.
5794 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5795 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5796 instead of isxdigit and ISDIGIT instead of isdigit.
5797
5798 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5799
5800 * gdbtypes.h (struct type) <field>: New method.
5801 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5802 or type::field.
5803
5804 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5805
5806 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5807 (TYPE_FIELDS): Use type::fields. Change all call sites that
5808 modify the propery to use type::set_fields instead.
5809
5810 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5813 type::num_fields instead.
5814
5815 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5818 methods.
5819 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5820 that modify the number of fields to use type::set_num_fields
5821 instead.
5822
5823 2020-05-22 Tom Tromey <tromey@adacore.com>
5824
5825 * compile/compile-object-load.h (munmap_list_free): Don't
5826 declare.
5827
5828 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5829
5830 * annotate.c (annotate_source_line): Update return type, add call
5831 to update current symtab and line.
5832 * annotate.h (annotate_source_line): Update return type, and
5833 extend header comment.
5834 * source.c (info_line_command): Check annotation_level before
5835 calling annotate_source_line.
5836 * stack.c (print_frame_info): If calling annotate_source_line
5837 returns true, then don't print any other source line information.
5838
5839 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5840
5841 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5842
5843 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * coffread.c (patch_type): Remove NULL check before xfree.
5846 * corefile.c (set_gnutarget): Likewise.
5847 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5848 * exec.c (build_section_table): Likewise.
5849 * remote.c (remote_target::pass_signals): Likewise.
5850 * utils.c (n_spaces): Likewise.
5851 * cli/cli-script.c (document_command): Likewise.
5852 * i386-windows-tdep.c (core_process_module_section): Likewise.
5853 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5854
5855 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5856
5857 * symfile.c (reread_symbols): Clear objfile's section_offsets
5858 vector and section indices, re-compute them by calling
5859 sym_offsets.
5860
5861 2020-05-20 Tom Tromey <tromey@adacore.com>
5862
5863 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5864 (desc_one_bound, desc_index_type): Compute field name.
5865
5866 2020-05-20 Tom de Vries <tdevries@suse.de>
5867
5868 PR symtab/25833
5869 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5870
5871 2020-05-20 Alan Modra <amodra@gmail.com>
5872
5873 PR 25993
5874 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5875 bfd_set_filename.
5876 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5877 passed to bfd_set_filename.
5878 * symfile-mem.c (add_vsyscall_page): Likewise for string
5879 passed to symbol_file_add_from_memory.
5880 (symbol_file_add_from_memory): Make name param a const char* and
5881 don't strdup.
5882
5883 2020-05-20 Alan Modra <amodra@gmail.com>
5884
5885 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5886 rather than accessing bfd->filename directly.
5887 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5888 and use bfd_section_name.
5889 * dwarf2/frame.c (decode_frame_entry): Likewise.
5890 * exec.c (exec_set_section_address): Likewise.
5891 * solib-aix.c (solib_aix_bfd_open): Likewise.
5892 * stap-probe.c (get_stap_base_address): Likewise.
5893 * symfile.c (reread_symbols): Likewise.
5894
5895 2020-05-19 Tom Tromey <tromey@adacore.com>
5896
5897 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5898
5899 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5902
5903 2020-05-19 Pedro Alves <palves@redhat.com>
5904
5905 * NEWS (set exec-file-mismatch): Adjust entry.
5906 * exec.c: Include "build-id.h".
5907 (validate_exec_file): Try to match build IDs instead of filenames.
5908 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5909 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5910 and pass down 'warn_if_slow'.
5911 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5912 gdb_bfd_open_closure to pass it down.
5913 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5914
5915 2020-05-19 Pedro Alves <palves@redhat.com>
5916
5917 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5918 * target.c (target_fileio_open_1): Rename to target_fileio_open
5919 and make extern. Use bool.
5920 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5921 (target_fileio_read_alloc_1): Adjust.
5922 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5923 (target_fileio_open_warn_if_slow): Delete declaration.
5924
5925 2020-05-19 Pedro Alves <palves@redhat.com>
5926
5927 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5928 Adjust all callers.
5929
5930 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5931
5932 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5933 whether disp is negative.
5934
5935 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5936
5937 * symfile.h (struct symfile_segment_data)
5938 <~symfile_segment_data>: Remove.
5939 <segment_info>: Change to std::vector.
5940 * symfile.c (default_symfile_segments): Update.
5941 * elfread.c (elf_symfile_segments): Update.
5942
5943 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5944
5945 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5946 <segments>: New.
5947 <segment_bases, segment_sizes>: Remove.
5948 * symfile.c (default_symfile_segments): Update.
5949 * elfread.c (elf_symfile_segments): Update.
5950 * remote.c (remote_target::get_offsets): Update.
5951 * solib-target.c (solib_target_relocate_section_addresses):
5952 Update.
5953
5954 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * symfile.h (struct symfile_segment_data): Initialize fields.
5957 <~symfile_segment_data>: Add.
5958 (symfile_segment_data_up): New.
5959 (struct sym_fns) <sym_segments>: Return a
5960 symfile_segment_data_up.
5961 (default_symfile_segments): Return a symfile_segment_data_up.
5962 (free_symfile_segment_data): Remove.
5963 (get_symfile_segment_data): Return a symfile_segment_data_up.
5964 * symfile.c (default_symfile_segments): Likewise.
5965 (get_symfile_segment_data): Likewise.
5966 (free_symfile_segment_data): Remove.
5967 (symfile_find_segment_sections): Update.
5968 * elfread.c (elf_symfile_segments): Return a
5969 symfile_segment_data_up.
5970 * remote.c (remote_target::get_offsets): Update.
5971 * solib-target.c (solib_target_relocate_section_addresses):
5972 Update.
5973 * symfile-debug.c (debug_sym_segments): Return a
5974 symfile_segment_data_up.
5975
5976 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5977
5978 PR build/25981
5979 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5980 Hardcode register numbers.
5981
5982 PR build/25981
5983 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5984 procfs_find_LDT_entry): Remove.
5985 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5986 procfs_find_LDT_entry): Remove.
5987 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5988 Remove.
5989
5990 2020-05-17 Pedro Alves <palves@redhat.com>
5991 Andrew Burgess <andrew.burgess@embecosm.com>
5992 Keno Fischer <keno@juliacomputing.com>
5993
5994 PR gdb/25741
5995 * breakpoint.c (build_target_condition_list): Update comments.
5996 (build_target_command_list): Update comments and skip matching
5997 locations.
5998 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5999 a separate function. Simplify "set breakpoint auto-hw off"
6000 handling.
6001 (insert_breakpoints): Update comment.
6002 (tracepoint_locations_match): New parameter. For breakpoints,
6003 compare location types too, if the caller wants to.
6004 (handle_automatic_hardware_breakpoints): New functions.
6005 (bp_location_is_less_than): Also sort by location type and
6006 hardware breakpoint length.
6007 (update_global_location_list): Handle "set breakpoint auto-hw on"
6008 here.
6009 (update_breakpoint_locations): Ask breakpoint_locations_match to
6010 ignore location types.
6011
6012 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6015 type::name instead.
6016
6017 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6018
6019 * gdbtypes.h (struct type) <name, set_name>: New methods.
6020 (TYPE_CODE): Use type::name. Change all call sites used to set
6021 the name to use type::set_name instead.
6022
6023 2020-05-16 Tom Tromey <tom@tromey.com>
6024
6025 * top.c (quit_force): Update.
6026 * infrun.c (handle_no_resumed): Update.
6027 * top.h (all_uis): New function.
6028 (ALL_UIS): Remove.
6029
6030 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6031
6032 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6033
6034 2020-05-16 Pedro Alves <palves@redhat.com>
6035
6036 * ia64-linux-nat.c
6037 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6038 Declare method.
6039 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6040
6041 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6042
6043 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6044 (sparc64_adi_info): Likewise.
6045
6046 2020-05-15 Tom Tromey <tom@tromey.com>
6047
6048 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6049 block_objfile.
6050 (lookup_objfile_from_block): Remove.
6051 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6052 (lookup_global_symbol): Use block_objfile.
6053 * symtab.h (lookup_objfile_from_block): Don't declare.
6054 * printcmd.c (clear_dangling_display_expressions): Use
6055 block_objfile.
6056 * parse.c (operator_check_standard): Use block_objfile.
6057
6058 2020-05-15 Tom Tromey <tom@tromey.com>
6059
6060 * language.c (language_alloc_type_symbol): Set
6061 SYMBOL_SECTION.
6062 * symtab.c (initialize_objfile_symbol): Remove.
6063 (allocate_symbol): Remove.
6064 (allocate_template_symbol): Remove.
6065 * dwarf2/read.c (fixup_go_packaging): Use "new".
6066 (new_symbol): Use "new".
6067 (read_variable): Don't call initialize_objfile_symbol. Use
6068 "new".
6069 (read_func_scope): Use "new".
6070 * xcoffread.c (process_xcoff_symbol): Don't call
6071 initialize_objfile_symbol.
6072 (SYMBOL_DUP): Remove.
6073 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6074 "new".
6075 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6076 (allocate_template_symbol): Don't declare.
6077 (struct symbol): Add copy constructor. Change defaults.
6078 * jit.c (finalize_symtab): Use "new".
6079 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6080 Use "new".
6081 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6082 (common_block_end): Use "new".
6083 * mdebugread.c (parse_symbol): Use "new".
6084 (new_symbol): Likewise.
6085
6086 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6087
6088 * NEWS: Mention changes to help and apropos.
6089
6090 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6091
6092 * command.h (enum command_class): Improve comments, document
6093 that class_alias is for user-defined aliases, give the class
6094 name for each class, remove unused class_xdb.
6095 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6096 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6097 by a precise class.
6098 * infcmd.c (_initialize_infcmd): Likewise.
6099 * reverse.c (_initialize_reverse): Likewise.
6100 * stack.c (_initialize_stack): Likewise.
6101 * symfile.c (_initialize_symfile): Likewise.
6102 * tracepoint.c (_initialize_tracepoint): Likewise.
6103
6104 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6105
6106 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6107 when their aliased command is traversed.
6108 (help_cmd): Add fput_command_names_styled call to
6109 output command name and aliases when command has an alias.
6110
6111 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6112
6113 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6114 * cli/cli-decode.c (help_cmd_list): Declare as static,
6115 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6116 a command together with the command.
6117 (fput_command_name_styled, fput_command_names_styled): New functions.
6118 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6119 fput_command_name_styled.
6120 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6121 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6122
6123 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6124
6125 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6126 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6127 * command.h (cmd_show_list): Likewise.
6128 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6129 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6130
6131 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6132
6133 * unittests/command-def-selftests.c (traverse_command_structure):
6134 Verify all commands of a list have the same prefix command and
6135 that only the top cmdlist commands have a null prefix.
6136
6137 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6138
6139 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6140 as prefix, not one of its aliases.
6141 (set_cmd_prefix): Remove.
6142 (do_add_cmd): Centralize the setting of the prefix of a command, when
6143 command is defined after its full chain of prefix commands.
6144 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6145 (add_setshow_cmd_full): Likewise.
6146 (update_prefix_field_of_prefixed_commands): New function.
6147 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6148 update_prefix_field_of_prefixed_commands.
6149 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6150 addresses of remote_set_cmdlist and remote_show_cmdlist given
6151 as argument, not the address of an argument.
6152 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6153 * gdb/remote.c (_initialize_remote): Likewise.
6154
6155 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6156
6157 * cli/cli-cmds.c (alias_command): Check for an existing alias
6158 using lookup_cmd_composition, as valid_command_p is too strict
6159 and forbids aliases that are the prefix of an existing alias
6160 or command.
6161 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6162 command is properly recognised as a valid command.
6163
6164 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6165
6166 * unittests/help-doc-selftests.c: Rename to
6167 unittests/command-def-selftests.c
6168 * unittests/command-def-selftests.c (help_doc_tests): Update some
6169 comments.
6170 (command_structure_tests, traverse_command_structure): New namespace
6171 and function.
6172 (command_structure_invariants_tests): New function.
6173 (_initialize_command_def_selftests) Renamed from
6174 _initialize_help_doc_selftests, register command_structure_invariants
6175 selftest.
6176
6177 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6178
6179 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6180 an alias of 'show'.
6181
6182 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6183
6184 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6185 ada_is_fixed_point_type. Update all callers.
6186 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6187 all callers.
6188 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6189 Update all callers.
6190 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6191 print_fixed_point_type. Update all callers.
6192 * ada-valprint.c (ada_value_print_num): Replace call to
6193 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6194
6195 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6196
6197 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6198 processors.
6199 (cpu_supports_bts): Add CV_AMD case.
6200
6201 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6202 Simon Marchi <simon.marchi@efficios.com>
6203
6204 * infrun.c (stop_all_threads): Collect multiple wait events at
6205 each pass.
6206
6207 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6210 type::code instead.
6211
6212 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6213
6214 * gdbtypes.h (struct type) <code, set_code>: New methods.
6215 (TYPE_CODE): Use type::code. Change all call sites used to set
6216 the code to use type::set_code instead.
6217
6218 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6219 Tom de Vries <tdevries@suse.de>
6220 Pedro Alves <palves@redhat.com>
6221
6222 PR threads/25478
6223 * infrun.c (stop_all_threads): Do NOT ignore
6224 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6225 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6226 received.
6227 (handle_no_resumed): Remove code handling a live inferior with no
6228 threads.
6229 * remote.c (has_single_non_exited_thread): New.
6230 (remote_target::update_thread_list): Do not delete a thread if is
6231 the last thread of the process.
6232 * thread.c (thread_select): Call delete_exited_threads instead of
6233 prune_threads.
6234
6235 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6236
6237 * infrun.c (stop_all_threads): Enable/disable thread events of all
6238 targets. Move a debug message denoting the end of the function
6239 into the SCOPED_EXIT block.
6240
6241 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6242
6243 * process-stratum-target.h: Include <set>.
6244 (all_non_exited_process_targets, switch_to_target_no_thread): New
6245 function declarations.
6246 * process-stratum-target.c (all_non_exited_process_targets)
6247 (switch_to_target_no_thread): New function implementations.
6248
6249 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6250
6251 * infrun.c (handle_inferior_event): Extract out a piece of code
6252 into...
6253 (mark_non_executing_threads): ...this new function.
6254
6255 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6256
6257 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6258 use.
6259
6260 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6261
6262 * regcache.c (regcache_read_pc_protected): New function
6263 implementation that returns 0 if the PC cannot read via
6264 'regcache_read_pc'.
6265 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6266 instead of 'regcache_read_pc'.
6267 (keep_going_pass_signal): Ditto.
6268
6269 2020-05-13 Tom Tromey <tromey@adacore.com>
6270
6271 * ada-lang.c (align_value): Remove.
6272 (ada_template_to_fixed_record_type_1): Use align_up.
6273
6274 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6275
6276 * async-event.c: Update the copyright year.
6277 * async-event.h: Update the copyright year.
6278
6279 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6280
6281 * objfiles.h (is_addr_in_objfile,
6282 shared_objfile_contains_address_p): Return bool.
6283 * objfile.c (is_addr_in_objfile,
6284 shared_objfile_contains_address_p): Return bool.
6285
6286 2020-05-11 Tom Tromey <tromey@adacore.com>
6287
6288 * cli/cli-cmds.c (info_command): Restore.
6289 (_initialize_cli_cmds): Use add_prefix_command for "info".
6290 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6291
6292 2020-05-11 Tom Tromey <tromey@adacore.com>
6293
6294 * ada-lang.c (ada_value_primitive_field): Now public.
6295 * ada-lang.h (ada_value_primitive_field): Declare.
6296 * ada-valprint.c (print_field_values): Use
6297 ada_value_primitive_field for wrapper fields.
6298
6299 2020-05-11 Tom de Vries <tdevries@suse.de>
6300
6301 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6302 MODULE_DOMAIN.
6303
6304 2020-05-11 Tom de Vries <tdevries@suse.de>
6305
6306 PR symtab/25941
6307 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6308 with length 0, if not gdb-produced.
6309 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6310
6311 2020-05-09 Tom de Vries <tdevries@suse.de>
6312
6313 PR gdb/25955
6314 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6315 calculation.
6316
6317 2020-05-09 Tom Tromey <tom@tromey.com>
6318
6319 * top.c (server_command): Now bool.
6320 * top.h (server_command): Now bool.
6321
6322 2020-05-08 Tom Tromey <tromey@adacore.com>
6323
6324 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6325 already being processed.
6326
6327 2020-05-08 Tom Tromey <tom@tromey.com>
6328
6329 * printcmd.c (struct display) <next>: Remove.
6330 <display>: New constructor.
6331 <exp_string>: Now a std::string.
6332 <enabled_p>: Now a bool.
6333 (display_number): Move definition earlier.
6334 (displays): Rename from display_chain. Now a std::vector.
6335 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6336 (display_command): Update.
6337 (do_one_display, disable_display)
6338 (enable_disable_display_command, do_enable_disable_display):
6339 Update.
6340 (free_display): Remove.
6341 (clear_displays): Rewrite.
6342 (delete_display): Update.
6343 (map_display_numbers): Use function_view. Remove "data"
6344 parameter. Update.
6345 (do_delete_display): Remove.
6346 (undisplay_command): Update.
6347 (do_one_display, do_displays, disable_display)
6348 (info_display_command): Update.
6349 (do_enable_disable_display): Remove.
6350 (enable_disable_display_command)
6351 (clear_dangling_display_expressions): Update.
6352
6353 2020-05-08 Tom Tromey <tom@tromey.com>
6354
6355 * symtab.c (set_symbol_cache_size)
6356 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6357 (maintenance_print_symbol_cache_statistics): Update.
6358 * symmisc.c (print_symbol_bcache_statistics)
6359 (print_objfile_statistics, maintenance_print_objfiles)
6360 (maintenance_info_symtabs, maintenance_check_symtabs)
6361 (maintenance_expand_symtabs, maintenance_info_line_tables):
6362 Update.
6363 * symfile-debug.c (set_debug_symfile): Update.
6364 * source.c (forget_cached_source_info): Update.
6365 * python/python.c (gdbpy_progspaces): Update.
6366 * psymtab.c (maintenance_info_psymtabs): Update.
6367 * probe.c (parse_probes): Update.
6368 * linespec.c (iterate_over_all_matching_symtabs)
6369 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6370 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6371 * exec.c (exec_target::close): Update.
6372 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6373 * breakpoint.c (print_one_breakpoint_location)
6374 (create_longjmp_master_breakpoint)
6375 (create_std_terminate_master_breakpoint): Update.
6376 * progspace.c (program_spaces): Now a std::vector.
6377 (maybe_new_address_space): Update.
6378 (add_program_space): Remove.
6379 (program_space::program_space): Update.
6380 (remove_program_space): Update.
6381 (number_of_program_spaces): Remove.
6382 (print_program_space, update_address_spaces): Update.
6383 * progspace.h (program_spaces): Change type.
6384 (ALL_PSPACES): Remove.
6385 (number_of_program_spaces): Don't declare.
6386 (struct program_space) <next>: Remove.
6387
6388 2020-05-08 Tom Tromey <tom@tromey.com>
6389
6390 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6391 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6392 (enable_break): Update.
6393 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6394 (frv_fdpic_find_canonical_descriptor): Update.
6395 (frv_fetch_objfile_link_map): Update.
6396 * progspace.c (program_space::free_all_objfiles): Update.
6397 (program_space::solibs): New method.
6398 * progspace.h (struct program_space) <solibs>: New method.
6399 * solist.h (master_so_list): Don't declare.
6400 (ALL_SO_LIBS): Remove.
6401 * solib.h (so_list_head): Remove.
6402 (update_solib_list): Update comment.
6403 * solib.c (master_so_list): Remove.
6404 (solib_used, update_solib_list, solib_add)
6405 (info_sharedlibrary_command, clear_solib)
6406 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6407
6408 2020-05-08 Tom Tromey <tom@tromey.com>
6409
6410 * extension.c (extension_languages): Now a std::array.
6411 (ALL_EXTENSION_LANGUAGES): Remove.
6412 (get_ext_lang_defn, get_ext_lang_of_file)
6413 (eval_ext_lang_from_control_command): Update.
6414 (finish_ext_lang_initialization)
6415 (auto_load_ext_lang_scripts_for_objfile)
6416 (ext_lang_type_printers::ext_lang_type_printers)
6417 (apply_ext_lang_type_printers)
6418 (ext_lang_type_printers::~ext_lang_type_printers)
6419 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6420 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6421 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6422 (get_matching_xmethod_workers, ext_lang_colorize)
6423 (ext_lang_before_prompt): Update.
6424 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6425
6426 2020-05-08 Tom Tromey <tom@tromey.com>
6427
6428 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6429 overload.
6430 <swap_string, m_string>: Remove.
6431 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6432 Update.
6433 * stabsread.c (define_symbol, read_type): Update.
6434 * linespec.c (find_linespec_symbols): Update.
6435 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6436 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6437 * dbxread.c (read_dbx_symtab): Update.
6438 * cp-support.h (cp_canonicalize_string_full)
6439 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6440 Return unique_xmalloc_ptr.
6441 * cp-support.c (inspect_type): Update.
6442 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6443 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6444 Likewise.
6445 * c-typeprint.c (print_name_maybe_canonical): Update.
6446 * break-catch-throw.c (check_status_exception_catchpoint):
6447 Update.
6448
6449 2020-05-08 Tom de Vries <tdevries@suse.de>
6450
6451 * infrun.c (follow_fork): Copy current_line and current_symtab to
6452 child thread.
6453
6454 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * async-event.c (struct async_signal_handler, struct
6457 async_event_handler): Reformat, remove typedef.
6458
6459 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6462 access thistype->main_type->dyn_prop_list directly.
6463
6464 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6467 (remove_dyn_prop): Remove. Update all users to use
6468 type::remove_dyn_prop.
6469 * gdbtypes.c (remove_dyn_prop): Rename to...
6470 (type::remove_dyn_prop): ... this.
6471
6472 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6473
6474 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6475 (add_dyn_prop): Remove. Update all users to use
6476 type::add_dyn_prop.
6477 * gdbtypes.c (add_dyn_prop): Rename to...
6478 (type::add_dyn_prop): ... this.
6479
6480 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6481
6482 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6483 (get_dyn_prop): Remove. Update all users to use
6484 type::dyn_prop.
6485 * gdbtypes.c (get_dyn_prop): Rename to...
6486 (type::dyn_prop): ... this.
6487
6488 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6489
6490 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6491
6492 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6495 instruction, skip it if it's there.
6496
6497 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6500
6501 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6504 * gdbtypes.c (recursive_dump_type): Remove use of
6505 TYPE_INCOMPLETE.
6506
6507 2020-05-03 Tom Tromey <tom@tromey.com>
6508
6509 * breakpoint.c (catch_command, tcatch_command): Remove.
6510 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6511 add_show_prefix_cmd.
6512 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6513 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6514 Remove.
6515 (add_internal_problem_command): Use add_basic_prefix_cmd,
6516 add_show_prefix_cmd.
6517 * mips-tdep.c (set_mipsfpu_command): Remove.
6518 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6519 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6520 (_initialize_index_cache): Use add_basic_prefix_cmd.
6521 * memattr.c (dummy_cmd): Remove.
6522 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6523 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6524 (_initialize_tui_win): Use add_basic_prefix_cmd,
6525 add_show_prefix_cmd.
6526 * cli/cli-logging.c (set_logging_command): Remove.
6527 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6528 add_show_prefix_cmd.
6529 (show_logging_command): Remove.
6530 * target.c (target_command): Remove.
6531 (add_target): Use add_basic_prefix_cmd.
6532
6533 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6534
6535 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6536
6537 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6538
6539 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6540 info_command.
6541
6542 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6543
6544 * nbsd-nat.c (nbsd_enable_proc_events)
6545 (nbsd_nat_target::post_startup_inferior): Add.
6546 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6547 (nbsd_nat_target::update_thread_list): Rewrite.
6548 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6549 "PTRACE_LWP_CREATE".
6550 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6551
6552 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6553
6554 * stack.c (_initialize_stack): Remove duplicated creation
6555 of "frame" command and "f" alias.
6556
6557 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6558
6559 PR gdb/18706
6560 * gdbtypes.c (check_typedef): Calculate size of array of
6561 stubbed type.
6562
6563 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6564
6565 PR gdb/15559
6566 * i386-tdep.c (i386_push_dummy_call): Call
6567 i386_thiscall_push_dummy_call.
6568 (i386_thiscall_push_dummy_call): New function.
6569 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6570 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6571 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6572
6573 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * gdbarch.sh (do_read): Add shellcheck disable directive for
6576 warning SC2162.
6577
6578 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6581 "referenced but not assigned" warning.
6582
6583 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * gdbarch.sh: Remove code that sets fallbackdefault.
6586
6587 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * gdbarch.sh: Use shell operators && and || instead of
6590 -a and -o.
6591
6592 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * gdbarch.sh: Use $(...) instead of `...`.
6595
6596 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6597
6598 * gdbarch.sh: Use double quotes around variables.
6599
6600 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6601
6602 * gdbarch.sh: Use %s with printf, instead of variables in the
6603 format string.
6604
6605 2020-04-29 Tom Tromey <tromey@adacore.com>
6606
6607 PR ada/25875:
6608 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6609 type fields here.
6610 (read_enumeration_type): Call
6611 update_enumeration_type_from_children later. Update comments.
6612 (process_enumeration_scope): Don't create type fields.
6613
6614 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6615
6616 * nbsd-tdep.c: Include "xml-syscall.h".
6617 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6618
6619 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6620
6621 * nbsd-nat.c: Include "sys/wait.h".
6622 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6623 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6624 (nbsd_nat_target::remove_exec_catchpoint)
6625 (nbsd_nat_target::set_syscall_catchpoint): Add.
6626 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6627 (nbsd_nat_target::insert_exec_catchpoint)
6628 (nbsd_nat_target::remove_exec_catchpoint)
6629 (nbsd_nat_target::set_syscall_catchpoint): Add.
6630 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6631 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6632 `nbsd_get_syscall_number'.
6633
6634 2020-04-29 Tom Tromey <tom@tromey.com>
6635
6636 * stack.c (print_block_frame_labels): Remove.
6637
6638 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6639
6640 PR gdb/17320
6641 * ada-valprint.c (val_print_packed_array_elements): Move array
6642 end bracket to new line.
6643 (ada_val_print_string): Remove extra spaces before first array
6644 element.
6645 * c-valprint.c (c_value_print_array): Likewise.
6646 * m2-valprint.c (m2_print_array_contents): Likewise.
6647 (m2_value_print_inner): Likewise.
6648 * p-valprint.c (pascal_value_print_inner): Likewise.
6649 * valprint.c (generic_val_print_array): Likewise.
6650 (value_print_array_elements): Move first array element and array
6651 end bracket to new line.
6652
6653 2020-04-29 Tom de Vries <tdevries@suse.de>
6654
6655 PR symtab/25889
6656 * linespec.c (find_method): Fix ix calculation.
6657
6658 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6659
6660 * syscalls/update-netbsd.sh: New file.
6661 * syscalls/netbsd.xml: Regenerate.
6662 * data-directory/Makefile.in: Register `netbsd.xml' in
6663 `SYSCALLS_FILES'.
6664
6665 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6666
6667 * syscalls/update-freebsd.sh: Add double quotes.
6668
6669 2020-04-28 Tom Tromey <tom@tromey.com>
6670
6671 * NEWS: Update.
6672 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6673 (cmdpy_init): Allow class_tui.
6674
6675 2020-04-28 Mark Williams <mark@myosotissp.com>
6676
6677 PR gdb/24480
6678 * dwarf2read.c: Add missing assingments to list_in_scope when
6679 start_symtab was already called.
6680
6681 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6682
6683 PR gdb/25881
6684 * dwarf2/read.c (offset_map_type): Use
6685 gdb:hash_enum<sect_offset> as hash function.
6686
6687 2020-04-28 Tom de Vries <tdevries@suse.de>
6688
6689 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6690 with DW_AT_signature.
6691
6692 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6693
6694 * configure.ac: Remove check for fs_base/gs_base in
6695 user_regs_struct.
6696 * configure: Re-generate.
6697 * config.in: Re-generate.
6698 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6699 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6700 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6701
6702 2020-04-27 Luis Machado <luis.machado@linaro.org>
6703
6704 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6705 problematic inline frame unwinding situation.
6706 * frame.c (frame_id_computed_p): New function.
6707 * frame.h (frame_id_computed_p): New prototype.
6708
6709 2020-04-26 Tom Tromey <tom@tromey.com>
6710
6711 * command.h (enum command_class) <class_pseudo>: Remove.
6712
6713 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6714
6715 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6716 and whitespace.
6717
6718 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6719
6720 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6721 `PT_GET_PROCESS_STATE' block.
6722
6723 2020-04-24 Tom Tromey <tom@tromey.com>
6724
6725 * symtab.h (symbol_get_demangled_name): Don't declare.
6726 * symtab.c (symbol_get_demangled_name): Remove.
6727 (general_symbol_info::natural_name)
6728 (general_symbol_info::demangled_name): Update.
6729
6730 2020-04-24 Tom Tromey <tom@tromey.com>
6731
6732 PR rust/25025:
6733 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6734
6735 2020-04-24 Tom Tromey <tom@tromey.com>
6736
6737 PR symtab/12707:
6738 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6739 exists.
6740 (new_symbol): Likewise.
6741 * compile/compile-object-load.c (get_out_value_type): Use
6742 symbol_matches_search_name.
6743
6744 2020-04-24 Tom Tromey <tom@tromey.com>
6745
6746 * dwarf2/read.c (add_partial_symbol): Do not call
6747 compute_and_set_names.
6748
6749 2020-04-24 Tom Tromey <tom@tromey.com>
6750
6751 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6752 overload.
6753
6754 2020-04-24 Tom Tromey <tom@tromey.com>
6755
6756 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6757 (add_psymbol_to_list): New overload. Make old overload call new
6758 one.
6759 * psympriv.h (add_psymbol_to_list): New overload.
6760
6761 2020-04-24 Tom Tromey <tom@tromey.com>
6762
6763 * dwarf2/read.c (partial_die_info::read) <case
6764 DW_AT_linkage_name>: Use value_as_string.
6765 (dwarf2_string_attr): Use value_as_string.
6766 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6767 method.
6768 * dwarf2/attribute.c (attribute::value_as_string): New method.
6769
6770 2020-04-24 Tom Tromey <tom@tromey.com>
6771
6772 * symtab.c (general_symbol_info::natural_name)
6773 (general_symbol_info::demangled_name): Check for language_rust.
6774
6775 2020-04-24 Tom Tromey <tom@tromey.com>
6776
6777 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6778 (dwarf2_physname): ... from here.
6779 (partial_die_info::read): Add Rust "{" hack.
6780
6781 2020-04-24 Tom Tromey <tom@tromey.com>
6782
6783 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6784 method.
6785 (symbol_set_demangled_name): Don't declare.
6786 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6787 symbol_set_demangled_name.
6788 (general_symbol_info::set_language)
6789 (general_symbol_info::compute_and_set_names): Update.
6790 * minsyms.c (minimal_symbol_reader::install): Update.
6791 * dwarf2/read.c (new_symbol): Update.
6792
6793 2020-04-24 Tom Tromey <tromey@adacore.com>
6794
6795 PR python/23662:
6796 * python/py-type.c (convert_field): Handle
6797 FIELD_LOC_KIND_DWARF_BLOCK.
6798 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6799 (typy_get_dynamic): Nw function.
6800 (type_object_getset): Add "dynamic".
6801 * NEWS: Add entry.
6802
6803 2020-04-24 Tom Tromey <tromey@adacore.com>
6804
6805 * ada-typeprint.c (print_choices, print_variant_part)
6806 (print_record_field_types_dynamic): New functions.
6807 (print_record_field_types): Use print_record_field_types_dynamic.
6808
6809 2020-04-24 Tom Tromey <tromey@adacore.com>
6810
6811 * dwarf2/read.c (handle_data_member_location): New overload.
6812 (dwarf2_add_field): Use it.
6813 (decode_locdesc): Add "computed" parameter. Update comment.
6814 * gdbtypes.c (is_dynamic_type_internal): Also look for
6815 FIELD_LOC_KIND_DWARF_BLOCK.
6816 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6817 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6818 virtual base classes.
6819 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6820 FIELD_LOC_KIND_DWARF_BLOCK.
6821
6822 2020-04-24 Tom Tromey <tromey@adacore.com>
6823
6824 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6825 * gdbtypes.c (is_dynamic_type_internal): Check
6826 TYPE_HAS_DYNAMIC_LENGTH.
6827 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6828 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6829 New macros.
6830 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6831 constant.
6832
6833 2020-04-24 Tom Tromey <tromey@adacore.com>
6834
6835 * dwarf2/read.c (struct variant_field): Rewrite.
6836 (struct variant_part_builder): New.
6837 (struct nextfield): Remove "variant" field. Add "offset".
6838 (struct field_info): Add "current_variant_part" and
6839 "variant_parts".
6840 (alloc_discriminant_info): Remove.
6841 (alloc_rust_variant): New function.
6842 (quirk_rust_enum): Update.
6843 (dwarf2_add_field): Set "offset" member. Don't handle
6844 DW_TAG_variant_part.
6845 (offset_map_type): New typedef.
6846 (convert_variant_range, create_one_variant)
6847 (create_one_variant_part, create_variant_parts)
6848 (add_variant_property): New functions.
6849 (dwarf2_attach_fields_to_type): Call add_variant_property.
6850 (read_structure_type): Don't handle DW_TAG_variant_part.
6851 (handle_variant_part, handle_variant): New functions.
6852 (handle_struct_member_die): Use them.
6853 (process_structure_scope): Don't handle variant parts.
6854 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6855 (struct discriminant_info): Remove.
6856 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6857 (struct main_type) <flag_discriminated_union>: Remove.
6858 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6859 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6860 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6861 Update.
6862 * valops.c (value_union_variant): Remove.
6863 * value.h (value_union_variant): Don't declare.
6864
6865 2020-04-24 Tom Tromey <tromey@adacore.com>
6866
6867 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6868 (ada_value_primitive_packed_val): Update.
6869 * ada-valprint.c (ada_value_print_1): Update.
6870 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6871 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6872 just an address. Use evaluate_for_locexpr_baton.
6873 (dwarf2_evaluate_property): Update.
6874 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6875 array_view.
6876 * findvar.c (default_read_var_value): Update.
6877 * gdbtypes.c (compute_variant_fields_inner)
6878 (resolve_dynamic_type_internal): Update.
6879 (resolve_dynamic_type): Change type of valaddr parameter.
6880 * gdbtypes.h (resolve_dynamic_type): Update.
6881 * valarith.c (value_subscripted_rvalue): Update.
6882 * value.c (value_from_contents_and_address): Update.
6883
6884 2020-04-24 Tom Tromey <tromey@adacore.com>
6885
6886 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6887 "push_initial_value" parameter.
6888 (dwarf2_evaluate_property): Likewise.
6889 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6890
6891 2020-04-24 Tom Tromey <tromey@adacore.com>
6892
6893 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6894 (variant::matches, compute_variant_fields_recurse)
6895 (compute_variant_fields_inner, compute_variant_fields): New
6896 functions.
6897 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6898 Use resolved_type after type is made.
6899 (operator==): Add new cases.
6900 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6901 (struct discriminant_range, struct variant, struct variant_part):
6902 New.
6903 (union dynamic_prop_data) <variant_parts, original_type>: New
6904 members.
6905 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6906 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6907 constants.
6908 * value.c (unpack_bits_as_long): Now public.
6909 * value.h (unpack_bits_as_long): Declare.
6910
6911 2020-04-24 Tom Tromey <tromey@adacore.com>
6912
6913 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6914 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6915
6916 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6917
6918 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6919
6920 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6921
6922 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6923 (remove_fork_catchpoint, post_startup_inferior)
6924 (post_attach): Move...
6925 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6926 (remove_fork_catchpoint, post_startup_inferior)
6927 (post_attach): ...here.
6928 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6929 (remove_fork_catchpoint, post_startup_inferior)
6930 (post_attach): Move...
6931 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6932 (remove_fork_catchpoint, post_startup_inferior)
6933 (post_attach): ...here.
6934
6935 2020-04-24 Tom Tromey <tromey@adacore.com>
6936
6937 * nat/windows-nat.h (struct windows_thread_info)
6938 <pc_adjusted>: New member.
6939 * windows-nat.c (windows_fetch_one_register): Check
6940 pc_adjusted.
6941 (windows_nat_target::get_windows_debug_event)
6942 (windows_nat_target::wait): Set pc_adjusted.
6943
6944 2020-04-24 Tom de Vries <tdevries@suse.de>
6945
6946 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6947 Run gdb-add-index inside temp dir.
6948
6949 2020-04-23 Tom Tromey <tromey@adacore.com>
6950
6951 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6952 in loop.
6953
6954 2020-04-23 Luis Machado <luis.machado@linaro.org>
6955
6956 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6957 get_frame_register instead of gdbarch_unwind_pc.
6958
6959 2020-04-23 Tom de Vries <tdevries@suse.de>
6960
6961 * symtab.c (lookup_global_symbol): Prefer def over decl.
6962
6963 2020-04-23 Tom de Vries <tdevries@suse.de>
6964
6965 PR symtab/25807
6966 * block.c (best_symbol, better_symbol): Promote to external.
6967 * block.h (best_symbol, better_symbol): Declare.
6968 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6969 decl.
6970
6971 2020-04-23 Tom Tromey <tromey@adacore.com>
6972
6973 PR ada/25837:
6974 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6975 "const char *", not a "const std::string &".
6976 <name_and_matcher::operator==>: Update.
6977 * unittests/lookup_name_info-selftests.c: Change type of
6978 "result".
6979
6980 2020-04-23 Tom Tromey <tom@tromey.com>
6981
6982 * inferior.h (iterate_over_inferiors): Don't declare.
6983 * inferior.c (iterate_over_inferiors): Remove.
6984 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6985 Remove.
6986 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6987 use iterate_over_inferiors.
6988 (darwin_resume_inferior_it)
6989 (struct resume_inferior_threads_param)
6990 (darwin_resume_inferior_threads_it): Remove.
6991 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6992
6993 2020-04-23 Tom de Vries <tdevries@suse.de>
6994
6995 * blockframe.c (find_pc_partial_function): Use
6996 find_pc_sect_compunit_symtab rather than
6997 objfile->sf->qf->find_pc_sect_compunit_symtab.
6998
6999 2020-04-22 Tom de Vries <tdevries@suse.de>
7000
7001 PR symtab/25764
7002 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7003 in psymtabs.
7004
7005 2020-04-22 Tom de Vries <tdevries@suse.de>
7006
7007 PR symtab/25801
7008 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7009 symtabs.
7010
7011 2020-04-22 Tom de Vries <tdevries@suse.de>
7012
7013 PR symtab/25700
7014 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7015 CU if already created.
7016
7017 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7018
7019 * infrun.c (displaced_step_fixup): Switch to the event_thread
7020 before calling displaced_step_restore, not after.
7021
7022 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7023
7024 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7025 its inferior is not recorded by us.
7026 (record_btrace_target_open): Replace call to
7027 all_non_exited_threads () with call to current_inferior
7028 ()->non_exited_threads ().
7029 (record_btrace_target::stop_recording): Likewise.
7030 (record_btrace_target::close): Likewise.
7031 (record_btrace_target::wait): Likewise.
7032 (record_btrace_target::record_stop_replaying): Likewise.
7033
7034 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7035
7036 * btrace.c (btrace_enable): Throw an error on double enables and
7037 when enabling recording fails.
7038 (btrace_disable): Throw an error if the thread is not recorded.
7039
7040 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7041
7042 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7043 request if we do not have a thread_info.
7044
7045 2020-04-21 Tom de Vries <tdevries@suse.de>
7046
7047 PR gdb/25471
7048 * thread.c
7049 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7050 exception in get_frame_id.
7051
7052 2020-04-20 Tom Tromey <tromey@adacore.com>
7053
7054 * python/python.c (struct gdbpy_event): Mark move constructor as
7055 noexcept.
7056 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7057 constructor as noexcept.
7058 * completer.h (struct completion_result): Mark move constructor as
7059 noexcept.
7060 * completer.c (completion_result::completion_result): Use
7061 initialization style. Don't call reset_match_list.
7062
7063 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7064
7065 * MAINTAINERS (Write After Approval): Add myself.
7066
7067 2020-04-18 Tom Tromey <tom@tromey.com>
7068
7069 * windows-tdep.c (init_w32_command_list)
7070 (w32_prefix_command_valid): Restore.
7071 (_initialize_windows_tdep): Call init_w32_command_list.
7072
7073 2020-04-18 Tom Tromey <tom@tromey.com>
7074
7075 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7076 * value.c (value_fn_field): Update.
7077 * valops.c (find_function_in_inferior)
7078 (value_allocate_space_in_inferior): Update.
7079 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7080 Update.
7081 * tui/tui-source.c (tui_source_window::set_contents): Update.
7082 * symtab.c (lookup_global_or_static_symbol)
7083 (find_function_start_sal_1, skip_prologue_sal)
7084 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7085 * symmisc.c (dump_msymbols, dump_symtab_1)
7086 (maintenance_print_one_line_table): Update.
7087 * symfile.c (init_entry_point_info, section_is_mapped)
7088 (list_overlays_command, simple_read_overlay_table)
7089 (simple_overlay_update_1): Update.
7090 * stap-probe.c (handle_stap_probe): Update.
7091 * stabsread.c (dbx_init_float_type, define_symbol)
7092 (read_one_struct_field, read_enum_type, read_range_type): Update.
7093 * source.c (info_line_command): Update.
7094 * python/python.c (gdbpy_source_objfile_script)
7095 (gdbpy_execute_objfile_script): Update.
7096 * python/py-type.c (save_objfile_types): Update.
7097 * python/py-objfile.c (py_free_objfile): Update.
7098 * python/py-inferior.c (python_new_objfile): Update.
7099 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7100 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7101 (maintenance_check_psymtabs): Update.
7102 * printcmd.c (info_address_command): Update.
7103 * objfiles.h (struct objfile) <arch>: New method, from
7104 get_objfile_arch.
7105 (get_objfile_arch): Don't declare.
7106 * objfiles.c (get_objfile_arch): Remove.
7107 (filter_overlapping_sections): Update.
7108 * minsyms.c (msymbol_is_function): Update.
7109 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7110 (output_nondebug_symbol): Update.
7111 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7112 (mdebug_expand_psymtab): Update.
7113 * machoread.c (macho_add_oso_symfile): Update.
7114 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7115 Update.
7116 * linux-fork.c (checkpoint_command): Update.
7117 * linespec.c (convert_linespec_to_sals): Update.
7118 * jit.c (finalize_symtab): Update.
7119 * infrun.c (insert_exception_resume_from_probe): Update.
7120 * ia64-tdep.c (ia64_find_unwind_table): Update.
7121 * hppa-tdep.c (internalize_unwinds): Update.
7122 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7123 Update.
7124 * gcore.c (call_target_sbrk): Update.
7125 * elfread.c (record_minimal_symbol, elf_symtab_read)
7126 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7127 (elf_gnu_ifunc_resolve_by_got): Update.
7128 * dwarf2/read.c (create_addrmap_from_index)
7129 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7130 (read_debug_names_from_section)
7131 (process_psymtab_comp_unit_reader, add_partial_symbol)
7132 (add_partial_subprogram, process_full_comp_unit)
7133 (read_file_scope, read_func_scope, read_lexical_block_scope)
7134 (read_call_site_scope, dwarf2_ranges_read)
7135 (dwarf2_record_block_ranges, dwarf2_add_field)
7136 (mark_common_block_symbol_computed, read_tag_pointer_type)
7137 (read_tag_string_type, dwarf2_init_float_type)
7138 (dwarf2_init_complex_target_type, read_base_type)
7139 (partial_die_info::read, partial_die_info::read)
7140 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7141 (dwarf2_fetch_die_loc_sect_off): Update.
7142 * dwarf2/loc.c (dwarf2_find_location_expression)
7143 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7144 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7145 (dwarf2_loc_desc_get_symbol_read_needs)
7146 (locexpr_describe_location_piece, locexpr_describe_location_1)
7147 (loclist_describe_location): Update.
7148 * dwarf2/index-write.c (write_debug_names): Update.
7149 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7150 * dtrace-probe.c (dtrace_process_dof): Update.
7151 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7152 (process_one_symbol): Update.
7153 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7154 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7155 (coff_read_enum_type): Update.
7156 * cli/cli-cmds.c (edit_command, list_command): Update.
7157 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7158 * breakpoint.c (create_overlay_event_breakpoint)
7159 (create_longjmp_master_breakpoint)
7160 (create_std_terminate_master_breakpoint)
7161 (create_exception_master_breakpoint, get_sal_arch): Update.
7162 * block.c (block_gdbarch): Update.
7163 * annotate.c (annotate_source_line): Update.
7164
7165 2020-04-17 Tom Tromey <tromey@adacore.com>
7166
7167 * auto-load.c (show_auto_load_cmd): Remove.
7168 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7169 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7170 (maintenance_print_arc_command): Remove.
7171 * tui/tui-win.c (tui_command): Remove.
7172 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7173 * tui/tui-layout.c (tui_layout_command): Remove.
7174 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7175 * python/python.c (user_set_python, user_show_python): Remove.
7176 (_initialize_python): Use add_basic_prefix_cmd,
7177 add_show_prefix_cmd.
7178 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7179 (install_gdb_commands): Use add_basic_prefix_cmd,
7180 add_show_prefix_cmd.
7181 (info_guile_command): Remove.
7182 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7183 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7184 add_show_prefix_cmd.
7185 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7186 Remove do_set and do_show parameters.
7187 * cli/cli-style.c (set_style, show_style): Remove.
7188 (_initialize_cli_style): Use add_basic_prefix_cmd,
7189 add_show_prefix_cmd.
7190 (cli_style_option::add_setshow_commands): Remove do_set and
7191 do_show parameters.
7192 (cli_style_option::add_setshow_commands): Use
7193 add_basic_prefix_cmd, add_show_prefix_cmd.
7194 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7195 (set_style_name): Remove.
7196 * cli/cli-dump.c (dump_command, append_command): Remove.
7197 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7198 (tekhex_dump_command, binary_dump_command)
7199 (binary_append_command): Remove.
7200 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7201 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7202 (init_w32_command_list): Remove; move into ...
7203 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7204 * valprint.c (set_print, show_print, set_print_raw)
7205 (show_print_raw): Remove.
7206 (_initialize_valprint): Use add_basic_prefix_cmd,
7207 add_show_prefix_cmd.
7208 * typeprint.c (set_print_type, show_print_type): Remove.
7209 (_initialize_typeprint): Use add_basic_prefix_cmd,
7210 add_show_prefix_cmd.
7211 * record.c (set_record_command, show_record_command): Remove.
7212 (_initialize_record): Use add_basic_prefix_cmd,
7213 add_show_prefix_cmd.
7214 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7215 add_show_prefix_cmd.
7216 (info_command, show_command, set_debug, show_debug): Remove.
7217 * top.h (set_history, show_history): Don't declare.
7218 * top.c (set_history, show_history): Remove.
7219 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7220 (unset_tdesc_cmd): Remove.
7221 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7222 add_show_prefix_cmd.
7223 * symtab.c (info_module_command): Remove.
7224 (_initialize_symtab): Use add_basic_prefix_cmd.
7225 * symfile.c (overlay_command): Remove.
7226 (_initialize_symfile): Use add_basic_prefix_cmd.
7227 * sparc64-tdep.c (info_adi_command): Remove.
7228 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7229 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7230 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7231 add_show_prefix_cmd.
7232 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7233 (_initialize_serial): Use add_basic_prefix_cmd,
7234 add_show_prefix_cmd.
7235 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7236 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7237 add_show_prefix_cmd.
7238 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7239 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7240 add_show_prefix_cmd.
7241 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7242 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7243 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7244 add_show_prefix_cmd.
7245 * remote.c (remote_command, set_remote_cmd): Remove.
7246 (_initialize_remote): Use add_basic_prefix_cmd.
7247 * record-full.c (set_record_full_command)
7248 (show_record_full_command): Remove.
7249 (_initialize_record_full): Use add_basic_prefix_cmd,
7250 add_show_prefix_cmd.
7251 * record-btrace.c (cmd_set_record_btrace)
7252 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7253 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7254 (cmd_show_record_btrace_pt): Remove.
7255 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7256 add_show_prefix_cmd.
7257 * ravenscar-thread.c (set_ravenscar_command)
7258 (show_ravenscar_command): Remove.
7259 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7260 add_show_prefix_cmd.
7261 * mips-tdep.c (show_mips_command, set_mips_command)
7262 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7263 add_show_prefix_cmd.
7264 * maint.c (maintenance_command, maintenance_info_command)
7265 (maintenance_check_command, maintenance_print_command)
7266 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7267 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7268 add_show_prefix_cmd.
7269 (show_per_command_cmd): Remove.
7270 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7271 Remove.
7272 (maintenance_show_test_settings_cmd): Remove.
7273 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7274 add_show_prefix_cmd.
7275 * maint-test-options.c (maintenance_test_options_command):
7276 Remove.
7277 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7278 * macrocmd.c (macro_command): Remove
7279 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7280 * language.c (set_check, show_check): Remove.
7281 (_initialize_language): Use add_basic_prefix_cmd,
7282 add_show_prefix_cmd.
7283 * infcmd.c (unset_command): Remove.
7284 (_initialize_infcmd): Use add_basic_prefix_cmd.
7285 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7286 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7287 add_show_prefix_cmd.
7288 * go32-nat.c (go32_info_dos_command): Remove.
7289 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7290 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7291 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7292 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7293 (_initialize_frame): Use add_basic_prefix_cmd,
7294 add_show_prefix_cmd.
7295 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7296 (_initialize_dcache): Use add_basic_prefix_cmd,
7297 add_show_prefix_cmd.
7298 * cp-support.c (maint_cplus_command): Remove.
7299 (_initialize_cp_support): Use add_basic_prefix_cmd.
7300 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7301 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7302 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7303 add_basic_prefix_cmd, add_show_prefix_cmd.
7304 * breakpoint.c (save_command): Remove.
7305 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7306 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7307 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7308 add_show_prefix_cmd.
7309 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7310 (set_ada_command, show_ada_command): Remove.
7311 (_initialize_ada_language): Use add_basic_prefix_cmd,
7312 add_show_prefix_cmd.
7313 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7314
7315 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7316
7317 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7318 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7319
7320 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7321
7322 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7323 warning messages.
7324
7325 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7326
7327 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7328 import table is not at beginning of .idata section.
7329
7330 2020-04-16 Pedro Alves <palves@redhat.com>
7331
7332 * inferior.c (delete_inferior): Use delete operator directly
7333 instead of delete_program_space.
7334 * progspace.c (add_program_space): New, factored out from
7335 program_space::program_space.
7336 (remove_program_space): New, factored out from
7337 delete_program_space.
7338 (program_space::program_space): Remove intro comment. Rewrite.
7339 (program_space::~program_space): Remove intro comment. Call
7340 remove_program_space.
7341 (delete_program_space): Delete.
7342 * progspace.h (program_space::program_space): Make explicit. Move
7343 intro comment here, adjusted.
7344 (program_space::~program_space): Move intro comment here,
7345 adjusted.
7346 (delete_program_space): Remove.
7347
7348 2020-04-16 Tom Tromey <tromey@adacore.com>
7349
7350 * windows-nat.c (windows_nat::handle_access_violation): New
7351 function.
7352 * nat/windows-nat.h (handle_access_violation): Declare.
7353 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7354 windows-nat.c. Call handle_access_violation.
7355
7356 2020-04-16 Tom de Vries <tdevries@suse.de>
7357
7358 PR symtab/25791
7359 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7360 CUs without psymtab.
7361
7362 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7363
7364 * python/python.c (do_start_initialization): Don't call
7365 PyEval_InitThreads for Python 3.9 and beyond.
7366
7367 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7368
7369 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7370 thread functions.
7371 (obsd_nat_target::wait): Likewise.
7372
7373 2020-04-15 Tom Tromey <tromey@adacore.com>
7374
7375 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7376 (DEBUG_EXCEPT): Use debug_printf.
7377
7378 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7379
7380 * completer.c (class completion_tracker::completion_hash_entry)
7381 <hash_name>: New member function.
7382 (completion_tracker::discard_completions): New callback to hash a
7383 completion_hash_entry, pass this to htab_create_alloc.
7384
7385 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7386
7387 * windows-nat.c (windows_make_so): Warn rather than stopping with
7388 an error if realpath() fails.
7389
7390 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7391
7392 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7393 (nbsd_nat_target::info_proc): Add do_status.
7394
7395 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7396 Tom de Vries <tdevries@suse.de>
7397
7398 PR symtab/25718
7399 * psympriv.h (struct partial_symtab::read_symtab)
7400 (struct partial_symtab::expand_psymtab)
7401 (struct partial_symtab::read_dependencies): Update comments.
7402 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7403 read_symtab for includer.
7404 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7405 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7406 (struct dwarf2_include_psymtab::m_readin): Remove.
7407 (struct dwarf2_include_psymtab::includer): New member function.
7408 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7409
7410 2020-04-14 Tom de Vries <tdevries@suse.de>
7411
7412 PR symtab/25720
7413 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7414 with NULL symbol_matcher and lookup_name.
7415 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7416 and lookup_name.
7417 * dwarf2/read.c (dw2_expand_symtabs_matching)
7418 (dw2_debug_names_expand_symtabs_matching): Same.
7419 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7420 Make lookup_name a pointer. Update comment.
7421 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7422 lookup_name being a pointer.
7423 * symfile.c (expand_symtabs_matching): Same.
7424 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7425 * linespec.c (iterate_over_all_matching_symtabs): Same.
7426
7427 2020-04-13 Tom Tromey <tom@tromey.com>
7428
7429 * run-on-main-thread.c: Update include.
7430 * unittests/main-thread-selftests.c: Update include.
7431 * tui/tui-win.c: Update include.
7432 * tui/tui-io.c: Update include.
7433 * tui/tui-interp.c: Update include.
7434 * tui/tui-hooks.c: Update include.
7435 * top.h: Update include.
7436 * top.c: Update include.
7437 * ser-base.c: Update include.
7438 * remote.c: Update include.
7439 * remote-notif.c: Update include.
7440 * remote-fileio.c: Update include.
7441 * record-full.c: Update include.
7442 * record-btrace.c: Update include.
7443 * python/python.c: Update include.
7444 * posix-hdep.c: Update include.
7445 * mingw-hdep.c: Update include.
7446 * mi/mi-main.c: Update include.
7447 * mi/mi-interp.c: Update include.
7448 * main.c: Update include.
7449 * linux-nat.c: Update include.
7450 * interps.c: Update include.
7451 * infrun.c: Update include.
7452 * inf-loop.c: Update include.
7453 * event-top.c: Update include.
7454 * event-loop.c: Move to ../gdbsupport/.
7455 * event-loop.h: Move to ../gdbsupport/.
7456 * async-event.h: Update include.
7457 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7458
7459 2020-04-13 Tom Tromey <tom@tromey.com>
7460
7461 * tui/tui-win.c: Include async-event.h.
7462 * remote.c: Include async-event.h.
7463 * remote-notif.c: Include async-event.h.
7464 * record-full.c: Include async-event.h.
7465 * record-btrace.c: Include async-event.h.
7466 * infrun.c: Include async-event.h.
7467 * event-top.c: Include async-event.h.
7468 * event-loop.h: Move some declarations to async-event.h.
7469 * event-loop.c: Don't include ser-event.h or top.h. Move some
7470 code to async-event.c.
7471 * async-event.h: New file.
7472 * async-event.c: New file.
7473 * Makefile.in (COMMON_SFILES): Add async-event.c.
7474 (HFILES_NO_SRCDIR): Add async-event.h.
7475
7476 2020-04-13 Tom Tromey <tom@tromey.com>
7477
7478 * utils.c (flush_streams): New function.
7479 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7480
7481 2020-04-13 Tom Tromey <tom@tromey.com>
7482
7483 * event-loop.c (handle_file_event): Use warning, not
7484 printf_unfiltered.
7485
7486 2020-04-13 Tom Tromey <tom@tromey.com>
7487
7488 * event-loop.c: Include <chrono>.
7489
7490 2020-04-13 Tom Tromey <tom@tromey.com>
7491
7492 * gdb_select.h: Move to ../gdbsupport/.
7493 * event-loop.c: Update include path.
7494 * top.c: Update include path.
7495 * ser-base.c: Update include path.
7496 * ui-file.c: Update include path.
7497 * ser-tcp.c: Update include path.
7498 * guile/scm-ports.c: Update include path.
7499 * posix-hdep.c: Update include path.
7500 * ser-unix.c: Update include path.
7501 * gdb_usleep.c: Update include path.
7502 * mingw-hdep.c: Update include path.
7503 * inflow.c: Update include path.
7504 * infrun.c: Update include path.
7505 * event-top.c: Update include path.
7506
7507 2020-04-13 Tom Tromey <tom@tromey.com>
7508
7509 * configure: Rebuild.
7510 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7511
7512 2020-04-13 Tom Tromey <tom@tromey.com>
7513
7514 * event-loop.h (start_event_loop): Don't declare.
7515 * event-loop.c (start_event_loop): Move...
7516 * main.c (start_event_loop): ...here. Now static.
7517
7518 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7519
7520 * MAINTAINERS: Update my email address.
7521
7522 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7523
7524 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7525 IP_ALL.
7526
7527 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7528
7529 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7530 (nbsd_nat_target::info_proc): Add do_cmdline.
7531
7532 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7533
7534 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7535 (nbsd_nat_target::info_proc): Add do_cwd.
7536
7537 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7538
7539 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7540
7541 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7542
7543 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7544 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7545 (nbsd_nat_target::info_proc): New functions.
7546 * nbsd-nat.c (kinfo_get_vmmap): New function.
7547 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7548 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7549 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7550 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7551 functions.
7552 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7553 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7554 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7555 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7556 (KINFO_VME_FLAG_GROWS_DOWN): New.
7557
7558 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7559
7560 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7561 bit shift.
7562
7563 2020-04-10 Tom Tromey <tromey@adacore.com>
7564
7565 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7566
7567 2020-04-10 Tom Tromey <tromey@adacore.com>
7568
7569 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7570 separate debug files.
7571
7572 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7573
7574 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7575 Move to...
7576 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7577 ... here.
7578 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7579 Check for STATUS_WX86_BREAKPOINT.
7580 (windows_nat_target::wait): Same.
7581
7582 2020-04-10 Tom de Vries <tdevries@suse.de>
7583
7584 PR cli/25808
7585 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7586
7587 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7588
7589 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7590 (Write After Approval): Remove Tom de Vries.
7591
7592 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7593
7594 revert partially:
7595 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7596
7597 * buildsym.c (record_line): Fix undefined behavior and preserve
7598 lines at eof.
7599
7600 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7601
7602 * auxv.h (svr4_auxv_parse): New.
7603 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7604 and generic_auxv_parse.
7605 (svr4_auxv_parse): Add.
7606 * obsd-tdep.c: Include "auxv.h".
7607 (obsd_auxv_parse): Remove.
7608 (obsd_init_abi): Remove comment.
7609 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7610 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7611 * nbsd-tdep.c: Include "auxv.h".
7612 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7613
7614 2020-04-08 Tom Tromey <tromey@adacore.com>
7615
7616 * nat/windows-nat.h (last_wait_event): Don't declare.
7617 (wait_for_debug_event): Update comment.
7618 * nat/windows-nat.c (last_wait_event): Now static.
7619
7620 2020-04-08 Tom Tromey <tromey@adacore.com>
7621
7622 * windows-nat.c (wait_for_debug_event): Move to
7623 nat/windows-nat.c.
7624 * nat/windows-nat.h (wait_for_debug_event): Declare.
7625 * nat/windows-nat.c (wait_for_debug_event): Move from
7626 windows-nat.c. No longer static.
7627
7628 2020-04-08 Tom Tromey <tromey@adacore.com>
7629
7630 * windows-nat.c (get_windows_debug_event): Use
7631 fetch_pending_stop.
7632 * nat/windows-nat.h (fetch_pending_stop): Declare.
7633 * nat/windows-nat.c (fetch_pending_stop): New function.
7634
7635 2020-04-08 Tom Tromey <tromey@adacore.com>
7636
7637 * windows-nat.c (windows_continue): Use matching_pending_stop and
7638 continue_last_debug_event.
7639 * nat/windows-nat.h (matching_pending_stop)
7640 (continue_last_debug_event): Declare.
7641 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7642 (matching_pending_stop, continue_last_debug_event): New
7643 functions.
7644
7645 2020-04-08 Tom Tromey <tromey@adacore.com>
7646
7647 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7648 (handle_exception_result): Move to nat/windows-nat.h.
7649 (DEBUG_EXCEPTION_SIMPLE): Remove.
7650 (windows_nat::handle_ms_vc_exception): New function.
7651 (handle_exception): Move to nat/windows-nat.c.
7652 (get_windows_debug_event): Update.
7653 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7654 nat/windows-nat.c.
7655 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7656 (handle_exception_result): Move from windows-nat.c.
7657 (handle_exception): Declare.
7658 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7659 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7660 windows-nat.c.
7661
7662 2020-04-08 Tom Tromey <tromey@adacore.com>
7663
7664 * windows-nat.c (exception_count, event_count): Remove.
7665 (handle_exception, get_windows_debug_event)
7666 (do_initial_windows_stuff): Update.
7667
7668 2020-04-08 Tom Tromey <tromey@adacore.com>
7669
7670 * windows-nat.c (windows_nat::handle_load_dll)
7671 (windows_nat::handle_unload_dll): Rename. No longer static.
7672 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7673 Declare.
7674
7675 2020-04-08 Tom Tromey <tromey@adacore.com>
7676
7677 * complaints.h (stop_whining): Declare at top-level.
7678 (complaint): Don't declare stop_whining.
7679
7680 2020-04-08 Tom Tromey <tromey@adacore.com>
7681
7682 * windows-nat.c (windows_nat::handle_output_debug_string):
7683 Rename. No longer static.
7684 * nat/windows-nat.h (handle_output_debug_string): Declare.
7685
7686 2020-04-08 Tom Tromey <tromey@adacore.com>
7687
7688 * windows-nat.c (current_process_handle, current_process_id)
7689 (main_thread_id, last_sig, current_event, last_wait_event)
7690 (current_windows_thread, desired_stop_thread_id, pending_stops)
7691 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7692 (display_selectors, fake_create_process)
7693 (get_windows_debug_event): Update.
7694 * nat/windows-nat.h (current_process_handle, current_process_id)
7695 (main_thread_id, last_sig, current_event, last_wait_event)
7696 (current_windows_thread, desired_stop_thread_id, pending_stops)
7697 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7698 * nat/windows-nat.c (current_process_handle, current_process_id)
7699 (main_thread_id, last_sig, current_event, last_wait_event)
7700 (current_windows_thread, desired_stop_thread_id, pending_stops)
7701 (siginfo_er): New globals. Move from windows-nat.c.
7702
7703 2020-04-08 Tom Tromey <tromey@adacore.com>
7704
7705 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7706 (handle_load_dll): Update.
7707 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7708
7709 2020-04-08 Tom Tromey <tromey@adacore.com>
7710
7711 * windows-nat.c (enum thread_disposition_type): Move to
7712 nat/windows-nat.h.
7713 (windows_nat::thread_rec): Rename from thread_rec. No longer
7714 static.
7715 (windows_add_thread, windows_nat_target::fetch_registers)
7716 (windows_nat_target::store_registers, handle_exception)
7717 (windows_nat_target::resume, get_windows_debug_event)
7718 (windows_nat_target::get_tib_address)
7719 (windows_nat_target::thread_name)
7720 (windows_nat_target::thread_alive): Update.
7721 * nat/windows-nat.h (enum thread_disposition_type): Move from
7722 windows-nat.c.
7723 (thread_rec): Declare.
7724
7725 2020-04-08 Tom Tromey <tromey@adacore.com>
7726
7727 * windows-nat.c: Add "using namespace".
7728 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7729 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7730
7731 2020-04-08 Tom Tromey <tromey@adacore.com>
7732
7733 * nat/windows-nat.h (struct windows_thread_info): Declare
7734 destructor.
7735 * nat/windows-nat.c (~windows_thread_info): New.
7736
7737 2020-04-08 Tom Tromey <tromey@adacore.com>
7738
7739 PR gdb/22992
7740 * windows-nat.c (current_event): Update comment.
7741 (last_wait_event, desired_stop_thread_id): New globals.
7742 (struct pending_stop): New.
7743 (pending_stops): New global.
7744 (windows_nat_target) <stopped_by_sw_breakpoint>
7745 <supports_stopped_by_sw_breakpoint>: New methods.
7746 (windows_fetch_one_register): Add assertions. Adjust PC.
7747 (windows_continue): Handle pending stops. Suspend other threads
7748 when stepping. Use last_wait_event
7749 (wait_for_debug_event): New function.
7750 (get_windows_debug_event): Use wait_for_debug_event. Handle
7751 pending stops. Queue spurious stops.
7752 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7753 (windows_nat_target::kill): Use wait_for_debug_event.
7754 * nat/windows-nat.h (struct windows_thread_info)
7755 <stopped_at_software_breakpoint>: New field.
7756 * nat/windows-nat.c (windows_thread_info::resume): Clear
7757 stopped_at_software_breakpoint.
7758
7759 2020-04-08 Tom Tromey <tromey@adacore.com>
7760
7761 * windows-nat.c (enum thread_disposition_type): New.
7762 (thread_rec): Replace "get_context" parameter with "disposition";
7763 change type.
7764 (windows_add_thread, windows_nat_target::fetch_registers)
7765 (windows_nat_target::store_registers, handle_exception)
7766 (windows_nat_target::resume, get_windows_debug_event)
7767 (windows_nat_target::get_tib_address)
7768 (windows_nat_target::thread_name)
7769 (windows_nat_target::thread_alive): Update.
7770
7771 2020-04-08 Tom Tromey <tromey@adacore.com>
7772
7773 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7774 (windows_continue): Use windows_continue::resume.
7775 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7776 resume>: Declare new methods.
7777 * nat/windows-nat.c: New file.
7778 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7779
7780 2020-04-08 Tom Tromey <tromey@adacore.com>
7781
7782 * windows-nat.c (windows_add_thread, windows_delete_thread)
7783 (windows_nat_target::fetch_registers)
7784 (windows_nat_target::store_registers, fake_create_process)
7785 (windows_nat_target::resume, windows_nat_target::resume)
7786 (get_windows_debug_event, windows_nat_target::wait)
7787 (windows_nat_target::pid_to_str)
7788 (windows_nat_target::get_tib_address)
7789 (windows_nat_target::get_ada_task_ptid)
7790 (windows_nat_target::thread_name)
7791 (windows_nat_target::thread_alive): Use lwp, not tid.
7792
7793 2020-04-08 Tom Tromey <tromey@adacore.com>
7794
7795 * windows-nat.c (handle_exception)
7796 (windows_nat_target::thread_name): Update.
7797 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7798 <name>: Now unique_xmalloc_ptr.
7799
7800 2020-04-08 Tom Tromey <tromey@adacore.com>
7801
7802 * windows-nat.c (thread_rec)
7803 (windows_nat_target::fetch_registers): Update.
7804 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7805 Update comment.
7806 <debug_registers_changed, reload_context>: Now bool.
7807
7808 2020-04-08 Tom Tromey <tromey@adacore.com>
7809
7810 * windows-nat.c (windows_add_thread): Use new.
7811 (windows_init_thread_list, windows_delete_thread): Use delete.
7812 (get_windows_debug_event): Update.
7813 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7814 destructor, and initializers.
7815
7816 2020-04-08 Tom Tromey <tromey@adacore.com>
7817
7818 * windows-nat.c (struct windows_thread_info): Remove.
7819 * nat/windows-nat.h: New file.
7820
7821 2020-04-08 Tom Tromey <tromey@adacore.com>
7822
7823 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7824 (thread_rec, windows_add_thread, windows_delete_thread)
7825 (windows_continue): Update.
7826
7827 2020-04-08 Tom Tromey <tromey@adacore.com>
7828
7829 * windows-nat.c (struct windows_thread_info): Remove typedef.
7830 (thread_head): Remove.
7831 (thread_list): New global.
7832 (thread_rec, windows_add_thread, windows_init_thread_list)
7833 (windows_delete_thread, windows_continue): Update.
7834
7835 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7836
7837 * windows-tdep.h (windows_init_abi): Add comment.
7838 (cygwin_init_abi): New declaration.
7839 * windows-tdep.c: Split signal enumeration in two, one for
7840 Windows and one for Cygwin.
7841 (windows_gdb_signal_to_target): Only deal with signal of the
7842 Windows OS ABI.
7843 (cygwin_gdb_signal_to_target): New function.
7844 (windows_init_abi): Rename to windows_init_abi_common, don't set
7845 gdb_signal_to_target gdbarch method. Add new new function with
7846 this name.
7847 (cygwin_init_abi): New function.
7848 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7849 comment. Don't call windows_init_abi.
7850 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7851 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7852 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7853 i386_windows_init_abi_common, don't call windows_init_abi. Add
7854 a new function of this name.
7855 (i386_cygwin_init_abi): New function.
7856 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7857 OS ABI Cygwin.
7858
7859 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7860
7861 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7862 parameter.c.
7863 (dwarf2_read_gdb_index): Update.
7864
7865 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7866
7867 * nbsd-tdep.c: Include "objfiles.h".
7868 (nbsd_skip_solib_resolver): New.
7869 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7870
7871 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7872
7873 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7874 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7875 with DW_LLE_base_addressx are being emitted in DWARFv5.
7876 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7877 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7878 unsigned integer.
7879
7880 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7881
7882 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7883 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7884 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7885 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7886 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7887 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7888 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7889
7890
7891 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7892
7893 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7894 (read_loclist_index): New function definition.
7895 (lookup_loclist_base): New function definition.
7896 (read_loclist_header): New function definition.
7897 (dwarf2_cu): Add loclist_base and loclist_header field.
7898 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7899 (read_full_die_1): Read the value of DW_AT_loclists_base.
7900 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7901 (read_attribute_value): Handle DW_FORM_loclistx.
7902 (skip_one_die): Handle DW_FORM_loclistx.
7903 (loclist_header): New structure declaration.
7904 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7905
7906 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7907
7908 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7909 constructor. Remove `addr` parameter from other constructor and
7910 add `per_cu` parameter.
7911 * dwarf2/read.c (create_partial_symtab): Update.
7912
7913 2020-04-07 Tom de Vries <tdevries@suse.de>
7914
7915 PR symtab/25796
7916 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7917 (partial_die_info::fixup): Inherit has_const_value.
7918
7919 2020-04-07 Tom de Vries <tdevries@suse.de>
7920
7921 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7922 symbols without address.
7923
7924 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7925
7926 * nbsd-nat.h (struct thread_info): Add forward declaration.
7927 (nbsd_nat_target::thread_alive): Add.
7928 (nbsd_nat_target::thread_name): Likewise.
7929 (nbsd_nat_target::update_thread_list): Likewise.
7930 (update_thread_list::post_attach): Likewise.
7931 (post_attach::pid_to_str): Likewise.
7932 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7933 (nbsd_thread_lister): Add.
7934 (nbsd_nat_target::thread_alive): Likewise.
7935 (nbsd_nat_target::thread_name): Likewise.
7936 (nbsd_add_threads): Likewise.
7937 (update_thread_list::post_attach): Likewise.
7938 (nbsd_nat_target::update_thread_list): Likewise.
7939 (post_attach::pid_to_str): Likewise.
7940
7941 2020-04-06 Tom Tromey <tromey@adacore.com>
7942
7943 * ada-valprint.c (print_variant_part): Extract the variant field.
7944 (print_field_values): Use the field as the outer value when
7945 recursing.
7946
7947 2020-04-06 Tom Tromey <tromey@adacore.com>
7948
7949 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7950 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7951 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7952 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7953 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7954
7955 2020-04-06 Tom Tromey <tromey@adacore.com>
7956
7957 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7958 TYPE_CODE_ERROR.
7959
7960 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7961
7962 * nbsd-tdep.c: Include "gdbarch.h".
7963 Define enum with NetBSD signal numbers.
7964 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7965 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7966 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7967 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7968 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7969 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7970 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7971 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7972 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7973 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7974 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7975 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7976
7977 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7978
7979 PR gdb/25325
7980 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7981
7982 2020-04-03 Tom Tromey <tromey@adacore.com>
7983
7984 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7985 Read constant block.
7986
7987 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7988
7989 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7990 (gdb_bfd_get_full_section_contents): New declaration.
7991 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7992 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7993 gdb_bfd_get_full_section_contents.
7994
7995 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7996
7997 * exec.c (build_section_table): Replace internal_error with
7998 gdb_assert.
7999 (section_table_xfer_memory_partial): Likewise.
8000 * mdebugread.c (parse_partial_symbols): Likewise.
8001 * psymtab.c (lookup_partial_symbol): Likewise.
8002 * utils.c (wrap_here): Likewise.
8003
8004 2020-04-02 Tom Tromey <tromey@adacore.com>
8005
8006 * f-lang.c (build_fortran_types): Use arch_type to initialize
8007 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8008
8009 2020-04-02 Tom Tromey <tromey@adacore.com>
8010
8011 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8012 of attributes.
8013
8014 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8015 Bernd Edlinger <bernd.edlinger@hotmail.de>
8016 Tom Tromey <tromey@adacore.com>
8017
8018 * buildsym.c (buildsym_compunit::record_line): Remove
8019 deduplication code.
8020
8021 2020-04-02 Tom de Vries <tdevries@suse.de>
8022
8023 PR ada/24671
8024 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8025
8026 2020-04-02 Tom de Vries <tdevries@suse.de>
8027
8028 * dwarf2/read.c (dwarf2_gdb_index_functions,
8029 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8030 NULL.
8031 * psymtab.c (psym_lookup_global_symbol_language): New function.
8032 (psym_functions): Init psym_lookup_global_symbol_language with
8033 psym_lookup_global_symbol_language.
8034 * symfile-debug.c (debug_sym_quick_functions): Init
8035 lookup_global_symbol_language with NULL.
8036 * symfile.c (set_initial_language): Remove fixme comment.
8037 * symfile.h (struct quick_symbol_functions): Add
8038 lookup_global_symbol_language.
8039 * symtab.c (find_quick_global_symbol_language): New function.
8040 (find_main_name): Use find_quick_global_symbol_language.
8041
8042 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8043
8044 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8045
8046 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8047
8048 * buildsym.c (record_line): Fix undefined behavior and preserve
8049 lines at eof.
8050
8051 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8052
8053 * buildsym.c (record_line): Fix the resizing condition.
8054
8055 2020-04-01 Tom Tromey <tom@tromey.com>
8056
8057 * value.h (value_literal_complex): Add comment.
8058 * valops.c (value_literal_complex): Refer to value.h.
8059
8060 2020-04-01 Tom Tromey <tom@tromey.com>
8061
8062 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8063 (scalar_type): New rule, from typebase.
8064 (typebase): Use scalar_type. Recognize complex types.
8065 (field_name): Handle FLOAT_KEYWORD.
8066 (ident_tokens): Add _Complex and __complex__.
8067
8068 2020-04-01 Tom Tromey <tom@tromey.com>
8069
8070 PR exp/25299:
8071 * valarith.c (promotion_type, complex_binop): New functions.
8072 (scalar_binop): Handle complex numbers. Use promotion_type.
8073 (value_pos, value_neg, value_complement): Handle complex numbers.
8074
8075 2020-04-01 Tom Tromey <tom@tromey.com>
8076
8077 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8078 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8079 (parse_number): Handle complex numbers.
8080
8081 2020-04-01 Tom Tromey <tom@tromey.com>
8082
8083 * c-valprint.c (c_decorations): Change complex suffix to "i".
8084
8085 2020-04-01 Tom Tromey <tom@tromey.com>
8086
8087 * valprint.c (generic_value_print_complex): Use accessors.
8088 * value.h (value_real_part, value_imaginary_part): Declare.
8089 * valops.c (value_real_part, value_imaginary_part): New
8090 functions.
8091 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8092
8093 2020-04-01 Tom Tromey <tom@tromey.com>
8094
8095 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8096 (read_range_type): Update.
8097 * mdebugread.c (basic_type): Update.
8098 * go-lang.c (build_go_types): Use init_complex_type.
8099 * gdbtypes.h (struct main_type) <complex_type>: New member.
8100 (init_complex_type): Update.
8101 (arch_complex_type): Don't declare.
8102 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8103 Make name if none given. Use alloc_type_copy. Look for cached
8104 complex type.
8105 (arch_complex_type): Remove.
8106 (gdbtypes_post_init): Use init_complex_type.
8107 * f-lang.c (build_fortran_types): Use init_complex_type.
8108 * dwarf2/read.c (read_base_type): Update.
8109 * d-lang.c (build_d_types): Use init_complex_type.
8110 * ctfread.c (read_base_type): Update.
8111
8112 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8113
8114 * infrun.c (stop_all_threads): Update assertion, plus when
8115 stopping threads, take into account that we might be trying
8116 to stop an all-stop target.
8117 (stop_waiting): Call 'stop_all_threads' if there exists a
8118 non-stop target.
8119
8120 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8121
8122 * target.h (exists_non_stop_target): New function declaration.
8123 * target.c (exists_non_stop_target): New function.
8124
8125 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8126
8127 PR gdb/24789
8128 * eval.c (is_integral_or_integral_reference): New function.
8129 (evaluate_subexp_standard): Allow integer references in
8130 pointer arithmetic.
8131
8132 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8133
8134 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8135 check for no ptid in the stop reply when the target is non-stop.
8136
8137 2020-04-01 Tom Tromey <tromey@adacore.com>
8138
8139 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8140 "name" parameter to rvalue reference. Initialize m_name_holder.
8141 <lookup_name_info>: New overloads.
8142 <name>: Return gdb::string_view.
8143 <c_str>: New method.
8144 <make_ignore_params>: Update.
8145 <search_name_hash>: Update.
8146 <language_lookup_name>: Return const char *.
8147 <m_name>: Change type.
8148 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8149 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8150 (lookup_name_info::match_any): Update.
8151 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8152 Update.
8153 * minsyms.c (linkage_name_str): Update.
8154 * language.c (default_symbol_name_matcher): Update.
8155 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8156 Update.
8157 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8158 (ada_lookup_name_info::ada_lookup_name_info): Update.
8159 (literal_symbol_name_matcher): Update.
8160
8161 2020-04-01 Tom Tromey <tromey@adacore.com>
8162
8163 * psymtab.c (psymtab_search_name): Remove function.
8164 (psym_lookup_symbol): Create search name and lookup name here.
8165 (lookup_partial_symbol): Remove "name" parameter; add
8166 lookup_name.
8167 (psym_expand_symtabs_for_function): Update.
8168
8169 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8170
8171 PR tui/25597:
8172 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8173
8174 2020-03-31 Tom Tromey <tromey@adacore.com>
8175
8176 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8177 memcpy.
8178
8179 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8180
8181 * features/riscv/32bit-csr.xml: Regenerated.
8182 * features/riscv/64bit-csr.xml: Regenerated.
8183
8184 2020-03-30 Tom Tromey <tromey@adacore.com>
8185
8186 * ada-valprint.c (print_variant_part): Update.
8187 * ada-lang.h (ada_which_variant_applies): Update.
8188 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8189 outer_valaddr parameters; replace with "outer" value parameter.
8190 (to_fixed_variant_branch_type): Update.
8191
8192 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8193
8194 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8195 <list>. Remove inclusion of observable.h.
8196 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8197 (struct arch_lwp_info): New struct.
8198 (class ppc_linux_dreg_interface): New class.
8199 (struct ppc_linux_process_info): New struct.
8200 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8201 <low_new_clone, low_forget_process, low_prepare_to_resume>
8202 <copy_thread_dreg_state, mark_thread_stale>
8203 <mark_debug_registers_changed, register_hw_breakpoint>
8204 <clear_hw_breakpoint, register_wp, clear_wp>
8205 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8206 <num_memory_accesses, get_trigger_type>
8207 <create_watchpoint_request, hwdebug_point_cmp>
8208 <init_arch_lwp_info, get_arch_lwp_info>
8209 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8210 methods.
8211 <struct ptid_hash>: New inner struct.
8212 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8213 members.
8214 (saved_dabr_value, hwdebug_info, max_slots_number)
8215 (struct hw_break_tuple, struct thread_points, ppc_threads)
8216 (have_ptrace_hwdebug_interface)
8217 (hwdebug_find_thread_points_by_tid)
8218 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8219 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8220 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8221 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8222 use m_dreg_interface.
8223 (hwdebug_point_cmp): Change to...
8224 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8225 reference arguments instead of pointers.
8226 (ppc_linux_nat_target::ranged_break_num_registers): Use
8227 m_dreg_interface.
8228 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8229 m_dreg_interface. Call register_hw_breakpoint.
8230 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8231 m_dreg_interface. Call clear_hw_breakpoint.
8232 (get_trigger_type): Change to...
8233 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8234 comment.
8235 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8236 use m_dreg_interface. Call register_hw_breakpoint.
8237 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8238 use m_dreg_interface. Call clear_hw_breakpoint.
8239 (can_use_watchpoint_cond_accel): Change to...
8240 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8241 method. Update comment, use m_dreg_interface and
8242 m_process_info.
8243 (calculate_dvc): Change to...
8244 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8245 m_dreg_interface.
8246 (num_memory_accesses): Change to...
8247 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8248 (check_condition): Change to...
8249 (ppc_linux_nat_target::check_condition): ...this method.
8250 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8251 comment, use m_dreg_interface.
8252 (create_watchpoint_request): Change to...
8253 (ppc_linux_nat_target::create_watchpoint_request): ...this
8254 method. Use m_dreg_interface.
8255 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8256 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8257 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8258 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8259 (ppc_linux_nat_target::low_forget_process)
8260 (ppc_linux_nat_target::low_new_fork)
8261 (ppc_linux_nat_target::low_new_clone)
8262 (ppc_linux_nat_target::low_delete_thread)
8263 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8264 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8265 only call mark_thread_stale.
8266 (ppc_linux_thread_exit): Remove.
8267 (ppc_linux_nat_target::stopped_data_address): Change to...
8268 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8269 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8270 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8271 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8272 comment. Call low_stopped_data_address.
8273 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8274 m_dreg_interface.
8275 (ppc_linux_nat_target::masked_watch_num_registers): Use
8276 m_dreg_interface.
8277 (ppc_linux_nat_target::copy_thread_dreg_state)
8278 (ppc_linux_nat_target::mark_thread_stale)
8279 (ppc_linux_nat_target::mark_debug_registers_changed)
8280 (ppc_linux_nat_target::register_hw_breakpoint)
8281 (ppc_linux_nat_target::clear_hw_breakpoint)
8282 (ppc_linux_nat_target::register_wp)
8283 (ppc_linux_nat_target::clear_wp)
8284 (ppc_linux_nat_target::init_arch_lwp_info)
8285 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8286 (_initialize_ppc_linux_nat): Remove observer callback.
8287
8288 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8289
8290 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8291 (ppc_linux_nat_target::auxv_parse)
8292 (ppc_linux_nat_target::read_description)
8293 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8294 Move up.
8295
8296 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8297
8298 * linux-nat.h (low_new_clone): New method.
8299 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8300
8301 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8302
8303 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8304 (dbx_expand_psymtab): ... this.
8305 (start_psymtab): Update.
8306 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8307 (mdebug_expand_psymtab): ... this.
8308 (parse_partial_symbols): Update.
8309 (new_psymtab): Update.
8310 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8311 (xcoff_expand_psymtab): ... this.
8312 (xcoff_start_psymtab): Update.
8313
8314 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8315
8316 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8317 <expand_dependencies>: ... this.
8318 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8319 (partial_symtab::expand_dependencies): ... this.
8320 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8321 Update.
8322 (dwarf2_psymtab::expand_psymtab): Update.
8323 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8324 * mdebugread.c (psymtab_to_symtab_1): Update.
8325 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8326
8327 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8328
8329 * psympriv.h (discard_psymtab): Remove.
8330 * dbxread.c (dbx_end_psymtab): Update.
8331 * xcoffread.c (xcoff_end_psymtab): Update.
8332
8333 2020-03-28 Tom Tromey <tom@tromey.com>
8334
8335 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8336 comment.
8337
8338 2020-03-28 Tom Tromey <tom@tromey.com>
8339
8340 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8341
8342 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8343
8344 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8345
8346 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8347
8348 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8349
8350 2020-03-26 Tom Tromey <tom@tromey.com>
8351
8352 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8353 (mark_common_block_symbol_computed, read_tag_string_type)
8354 (attr_to_dynamic_prop, read_subrange_type): Update.
8355 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8356 to be methods on struct attribute.
8357 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8358 (read_call_site_scope, partial_die_info::read)
8359 (partial_die_info::read, lookup_die_type, follow_die_ref):
8360 Update.
8361 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8362 from dwarf2_get_ref_die_offset.
8363 (attribute::constant_value): New method, from
8364 dwarf2_get_attr_constant_value.
8365 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8366 Declare method.
8367 <constant_value>: New method.
8368
8369 2020-03-26 Tom Tromey <tom@tromey.com>
8370
8371 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8372 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8373 (dwarf_type_encoding_name): Move to stringify.c.
8374 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8375 * dwarf2/stringify.c: New file.
8376 * dwarf2/stringify.h: New file.
8377
8378 2020-03-26 Tom Tromey <tom@tromey.com>
8379
8380 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8381 Rewrite.
8382
8383 2020-03-26 Tom Tromey <tom@tromey.com>
8384
8385 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8386 methods.
8387 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8388 (lookup_ranges_base): Likewise.
8389 (read_cutu_die_from_dwo, read_full_die_1): Update.
8390
8391 2020-03-26 Tom Tromey <tom@tromey.com>
8392
8393 * dwarf2/read.c (read_import_statement, read_file_scope)
8394 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8395 (read_lexical_block_scope, read_call_site_scope)
8396 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8397 (handle_struct_member_die, process_structure_scope)
8398 (update_enumeration_type_from_children)
8399 (process_enumeration_scope, read_array_type, read_common_block)
8400 (read_namespace, read_module, read_subroutine_type): Update.
8401 (sibling_die): Remove.
8402
8403 2020-03-26 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8406 (build_type_psymtabs_reader, read_structure_type)
8407 (read_enumeration_type, read_full_die_1): Update.
8408 (dwarf2_attr_no_follow): Move to die.h.
8409 * dwarf2/die.h (struct die_info) <attr>: New method.
8410
8411 2020-03-26 Tom Tromey <tom@tromey.com>
8412
8413 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8414 <base_address>: Now an optional.
8415 (dwarf2_find_base_address, dwarf2_rnglists_process)
8416 (dwarf2_ranges_process, fill_in_loclist_baton)
8417 (dwarf2_symbol_mark_computed): Update.
8418
8419 2020-03-26 Tom Tromey <tom@tromey.com>
8420
8421 * dwarf2/read.c (struct die_info): Move to die.h.
8422 * dwarf2/die.h: New file.
8423
8424 2020-03-26 Tom Tromey <tom@tromey.com>
8425
8426 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8427 * dwarf2/read.c
8428 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8429 Move to line-header.c.
8430 (read_checked_initial_length_and_offset, read_formatted_entries):
8431 Likewise.
8432 (dwarf_decode_line_header): Split into two.
8433 * dwarf2/line-header.c
8434 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8435 Move from read.c.
8436 (read_checked_initial_length_and_offset, read_formatted_entries):
8437 Likewise.
8438 (dwarf_decode_line_header): New function, split from read.c.
8439
8440 2020-03-26 Tom Tromey <tom@tromey.com>
8441
8442 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8443 Declare method.
8444 * dwarf2/read.c (read_attribute_value): Update.
8445 (dwarf2_per_objfile::read_line_string): Rename from
8446 read_indirect_line_string.
8447 (read_formatted_entries): Update.
8448
8449 2020-03-26 Tom Tromey <tom@tromey.com>
8450
8451 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8452 variable.
8453
8454 2020-03-26 Tom Tromey <tom@tromey.com>
8455
8456 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8457 const.
8458 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8459 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8460 parameter const.
8461
8462 2020-03-26 Tom Tromey <tom@tromey.com>
8463
8464 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8465 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8466 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8467 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8468
8469 2020-03-26 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8472 file_names_size, file_full_name, file_file_name>: Use const.
8473 <file_name_at, file_names>: Add const overload.
8474 * dwarf2/line-header.c (line_header::file_file_name)
8475 (line_header::file_full_name): Update.
8476
8477 2020-03-26 Tom Tromey <tom@tromey.com>
8478
8479 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8480 (macro_start_file, consume_improper_spaces)
8481 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8482 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8483 (dwarf_decode_macros): Move to macro.c.
8484 * dwarf2/macro.c: New file.
8485 * dwarf2/macro.h: New file.
8486 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8487
8488 2020-03-26 Tom Tromey <tom@tromey.com>
8489
8490 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8491 method.
8492 * dwarf2/section.c: New method. From
8493 read_indirect_string_at_offset_from.
8494 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8495 (read_indirect_string_at_offset_from): Move to section.c.
8496 (read_indirect_string_at_offset): Rewrite.
8497 (read_indirect_line_string_at_offset): Remove.
8498 (read_indirect_string, read_indirect_line_string)
8499 (dwarf_decode_macro_bytes): Update.
8500
8501 2020-03-26 Tom Tromey <tom@tromey.com>
8502
8503 * dwarf2/section.h (struct dwarf2_section_info)
8504 <overload_complaint>: Declare.
8505 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8506 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8507 Rename from dwarf2_section_buffer_overflow_complaint.
8508 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8509 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8510
8511 2020-03-26 Tom Tromey <tom@tromey.com>
8512
8513 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8514 Declare.
8515 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8516 Move from read.c.
8517 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8518 to section.c.
8519
8520 2020-03-26 Tom Tromey <tom@tromey.com>
8521
8522 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8523
8524 2020-03-26 Tom Tromey <tom@tromey.com>
8525
8526 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8527 "builder".
8528 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8529 parameter.
8530 (dwarf_decode_macros): Update.
8531
8532 2020-03-26 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2/read.c (read_attribute_value): Update.
8535 (read_indirect_string_from_dwz): Move to dwz.c; change into
8536 method.
8537 (dwarf_decode_macro_bytes): Update.
8538 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8539 * dwarf2/dwz.c: New file.
8540 * Makefile.in (COMMON_SFILES): Add dwz.c.
8541
8542 2020-03-26 Tom Tromey <tom@tromey.com>
8543
8544 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8545 * dwarf2/read.c: Add include.
8546 * dwarf2/index-write.c: Add include.
8547 * dwarf2/index-cache.c: Add include.
8548 * dwarf2/dwz.h: New file.
8549
8550 2020-03-25 Tom Tromey <tom@tromey.com>
8551
8552 * compile/compile-object-load.c (get_out_value_type): Mention
8553 correct symbol name in error message.
8554
8555 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8556
8557 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8558
8559 2020-03-25 Tom de Vries <tdevries@suse.de>
8560
8561 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8562 * symmisc.c (dump_symtab_1): Print user and includes fields.
8563 (maintenance_info_symtabs): Same.
8564
8565 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 PR gdb/25534
8568 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8569 (riscv_regcache_cooked_write): New function.
8570 (riscv_push_dummy_call): Use new function.
8571 (riscv_return_value): Likewise.
8572
8573 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8574
8575 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8576 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8577 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8578 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8579 * infrun.c (follow_fork): Likewise.
8580 (follow_fork_inferior): Likewise.
8581 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8582 * linux-nat.h (class linux_nat_target): Likewise.
8583 * remote.c (class remote_target) <follow_fork>: Likewise.
8584 (remote_target::follow_fork): Likewise.
8585 * target-delegates.c: Re-generate.
8586 * target.c (default_follow_fork): Likewise.
8587 (target_follow_fork): Likewise.
8588 * target.h (struct target_ops) <follow_fork>: Likewise.
8589 (target_follow_fork): Likewise.
8590
8591 2020-03-24 Tom de Vries <tdevries@suse.de>
8592
8593 * psymtab.c (maintenance_info_psymtabs): Print user field.
8594
8595 2020-03-20 Tom Tromey <tromey@adacore.com>
8596
8597 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8598 const.
8599 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8600 const.
8601
8602 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * ptrace.m4: Don't check for ptrace declaration.
8605 * config.in: Re-generate.
8606 * configure: Re-generate.
8607 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8608 not defined.
8609
8610 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8611
8612 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8613 `PTRACE_TYPE_RET'.
8614 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8615 * sparc-nat.c (gdb_ptrace): Likewise.
8616 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8617
8618 2020-03-20 Tom Tromey <tromey@adacore.com>
8619
8620 * c-exp.y (lex_one_token): Fix assert.
8621
8622 2020-03-20 Tom Tromey <tromey@adacore.com>
8623
8624 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8625 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8626 strncpy call.
8627
8628 2020-03-20 Tom Tromey <tromey@adacore.com>
8629
8630 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8631
8632 2020-03-20 Tom Tromey <tromey@adacore.com>
8633
8634 * ada-valprint.c (print_variant_part): Remove parameters; switch
8635 to value-based API.
8636 (print_field_values): Likewise.
8637 (ada_val_print_struct_union): Likewise.
8638 (ada_value_print_1): Update.
8639
8640 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8641
8642 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8643 nbsd_nat_target instead of inf_ptrace_target.
8644 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8645 nbsd_nat_target.
8646
8647 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8648
8649 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8650 it to the ptrace call.
8651 * (store_registers): Likewise.
8652
8653 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8654
8655 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8656 it to the ptrace call.
8657 * (store_registers): Likewise.
8658
8659 2020-03-19 Luis Machado <luis.machado@linaro.org>
8660
8661 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8662 valid, fetch vg value from ptrace.
8663
8664 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8665 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8666 * inf-ptrace.c: Likewise.
8667 * (gdb_ptrace): Add.
8668 * (inf_ptrace_target::resume): Update.
8669 * (inf_ptrace_target::xfer_partial): Likewise.
8670 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8671 * (inf_ptrace_peek_poke): Update.
8672
8673 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8674
8675 * x86-bsd-nat.c (gdb_ptrace): New.
8676 * (x86bsd_dr_set): Add new argument `ptid'.
8677 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8678 x86bsd_dr_set_addr): Update.
8679
8680 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8681
8682 * remote.c (remote_target::process_stop_reply): Handle events for
8683 all threads differently.
8684
8685 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8686
8687 * completer.c (completion_tracker::remove_completion): Define new
8688 function.
8689 * completer.h (completion_tracker::remove_completion): Declare new
8690 function.
8691 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8692 when adding a C++ function symbol.
8693
8694 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8695
8696 * completer.c (completion_tracker::completion_hash_entry): Define
8697 new class.
8698 (advance_to_filename_complete_word_point): Call
8699 recompute_lowest_common_denominator.
8700 (completion_tracker::completion_tracker): Call discard_completions
8701 to setup the hash table.
8702 (completion_tracker::discard_completions): Allow for being called
8703 from the constructor, pass new equal function, and element deleter
8704 when constructing the hash table. Initialise new class member
8705 variables.
8706 (completion_tracker::maybe_add_completion): Remove use of
8707 m_entries_vec, and store more information into m_entries_hash.
8708 (completion_tracker::recompute_lcd_visitor): New function, most
8709 content taken from...
8710 (completion_tracker::recompute_lowest_common_denominator):
8711 ...here, this now just visits each item in the hash calling the
8712 above visitor.
8713 (completion_tracker::build_completion_result): Remove use of
8714 m_entries_vec, call recompute_lowest_common_denominator.
8715 * completer.h (completion_tracker::have_completions): Remove use
8716 of m_entries_vec.
8717 (completion_tracker::completion_hash_entry): Declare new class.
8718 (completion_tracker::recompute_lowest_common_denominator): Change
8719 function signature.
8720 (completion_tracker::recompute_lcd_visitor): Declare new function.
8721 (completion_tracker::m_entries_vec): Delete.
8722 (completion_tracker::m_entries_hash): Initialize to NULL.
8723 (completion_tracker::m_lowest_common_denominator_valid): New
8724 member variable.
8725 (completion_tracker::m_lowest_common_denominator_max_length): New
8726 member variable.
8727
8728 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8729
8730 * regformats/regdef.h: Put reg in gdb namespace.
8731
8732 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8733
8734 * i386-bsd-nat.c (gdb_ptrace): New.
8735 * (i386bsd_fetch_inferior_registers,
8736 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8737 * (i386bsd_fetch_inferior_registers,
8738 i386bsd_store_inferior_registers) Use gdb_ptrace.
8739
8740 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8741
8742 * amd64-bsd-nat.c (gdb_ptrace): New.
8743 * (amd64bsd_fetch_inferior_registers,
8744 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8745 * (amd64bsd_fetch_inferior_registers,
8746 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8747
8748 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8749
8750 * user-regs.c (user_reg::read): Rename to...
8751 (user_reg::xread): ...this.
8752 * (append_user_reg): Rename argument `read' to `xread'.
8753 * (user_reg_add_builtin): Likewise.
8754 * (user_reg_add): Likewise.
8755 * (value_of_user_reg): Likewise.
8756
8757 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8758
8759 * sparc-nat.c (gdb_ptrace): New.
8760 * sparc-nat.c (sparc_fetch_inferior_registers)
8761 (sparc_store_inferior_registers) Remove obsolete comment.
8762 * sparc-nat.c (sparc_fetch_inferior_registers)
8763 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8764 * sparc-nat.c (sparc_fetch_inferior_registers)
8765 (sparc_store_inferior_registers) Use gdb_ptrace.
8766
8767 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8768
8769 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8770 it to the ptrace call.
8771 * sh-nbsd-nat.c (store_registers): Likewise.
8772
8773 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8774
8775 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8776 nbsd_nat_target instead of inf_ptrace_target.
8777 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8778 nbsd_nat_target.
8779
8780 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8781
8782 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8783
8784 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8785
8786 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8787 <sys/sysctl.h>.
8788 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8789
8790 2020-03-17 Tom de Vries <tdevries@suse.de>
8791
8792 PR gdb/23710
8793 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8794 fields.
8795 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8796 fields.
8797 (process_imported_unit_die): Skip import of c++ CUs.
8798
8799 2020-03-16 Tom Tromey <tom@tromey.com>
8800
8801 * p-valprint.c (pascal_object_print_value): Initialize
8802 base_value.
8803
8804 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8805 Shahab Vahedi <shahab@synopsys.com>
8806
8807 * Makefile.in: Add arch/arc.o
8808 * configure.tgt: Likewise.
8809 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8810 (_initialize_arc_tdep): Don't initialize old target descriptions.
8811 (arc_read_description): New function to cache target descriptions.
8812 * arc-tdep.h (arc_read_description): Add proto type.
8813 * arch/arc.c: New file.
8814 * arch/arc.h: Likewise.
8815 * features/Makefile: Replace old target descriptions with new.
8816 * features/arc-arcompact.c: Remove.
8817 * features/arc-arcompact.xml: Likewise.
8818 * features/arc-v2.c: Likewise
8819 * features/arc-v2.xml: Likewise
8820 * features/arc/aux-arcompact.xml: New file.
8821 * features/arc/aux-v2.xml: Likewise.
8822 * features/arc/core-arcompact.xml: Likewise.
8823 * features/arc/core-v2.xml: Likewise.
8824 * features/arc/aux-arcompact.c: Generate.
8825 * features/arc/aux-v2.c: Likewise.
8826 * features/arc/core-arcompact.c: Likewise.
8827 * features/arc/core-v2.c: Likewise.
8828 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8829
8830 2020-03-16 Tom Tromey <tromey@adacore.com>
8831
8832 PR gdb/25663:
8833 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8834 putting value into bcache.
8835
8836 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8837
8838 PR gdb/21500
8839 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8840 to...
8841 (amd64_windows_init_abi_common): ... this. Don't set size of
8842 long type.
8843 (amd64_windows_init_abi): New function.
8844 (amd64_cygwin_init_abi): New function.
8845 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8846 the Cygwin OS ABI.
8847 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8848 comment.
8849
8850 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8851
8852 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8853 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8854 (pe_import_directory_entry): New struct type.
8855 (is_linked_with_cygwin_dll): New function.
8856 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8857 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8858 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8859
8860 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8861
8862 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8863 i386_cygwin_core_osabi_sniffer.
8864
8865 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8866
8867 * i386-cygwin-tdep.c: Rename to...
8868 * i386-windows-tdep.c: ... this.
8869 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8870 i386-windows-tdep.c.
8871 * configure.tgt: Likewise.
8872
8873 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8874
8875 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8876 * osabi.c (gdb_osabi_names): Add "Windows".
8877 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8878 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8879 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8880 i386_cygwin_osabi_sniffer.
8881 (_initialize_i386_cygwin_tdep): Register OS ABI
8882 GDB_OSABI_WINDOWS for i386.
8883 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8884 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8885 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8886 for x86-64.
8887 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8888 when the target matches '*-*-mingw*'.
8889
8890 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * defs.h (enum gdb_osabi): Move to...
8893 * osabi.h (enum gdb_osabi): ... here.
8894 * gdbarch.sh: Include osabi.h in gdbarch.h.
8895 * gdbarch.h: Re-generate.
8896
8897 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8900 function.
8901 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8902
8903 2020-03-14 Tom Tromey <tom@tromey.com>
8904
8905 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8906 for C++.
8907 (c_type_print_modifier): Likewise. Add "language" parameter.
8908 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8909 (c_type_print_base_1): Update.
8910 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8911 constants.
8912 * type-stack.c (type_stack::insert): Handle tp_atomic and
8913 tp_restrict.
8914 (type_stack::follow_type_instance_flags): Likewise.
8915 (type_stack::follow_types): Likewise. Merge type-following code.
8916 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8917 (space_identifier, cv_with_space_id)
8918 (const_or_volatile_or_space_identifier_noopt)
8919 (const_or_volatile_or_space_identifier): Remove.
8920 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8921 rules.
8922 (ptr_operator, typebase): Update.
8923 (enum token_flag) <FLAG_C>: New constant.
8924 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8925 "_Atomic".
8926 (lex_one_token): Handle FLAG_C.
8927
8928 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8929
8930 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8931 it to the ptrace call.
8932 * m68k-bsd-nat.c (store_registers): Likewise.
8933
8934 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8935
8936 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8937 gdb_byte *.
8938 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8939 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8940 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8941
8942 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8943
8944 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8945 nbsd_nat_target instead of inf_ptrace_target.
8946 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8947 nbsd_nat_target.
8948
8949 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8950
8951 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8952 register_t.
8953
8954 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8955
8956 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8957 it to the ptrace call.
8958 * alpha-bsd-nat.c (store_registers): Likewise.
8959
8960 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8961
8962 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8963 includes.
8964 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8965 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8966 fill_fpregset): Likewise.
8967
8968 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8969
8970 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8971 nbsd_nat_target instead of inf_ptrace_target.
8972 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8973 nbsd_nat_target.
8974
8975 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8976
8977 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8978 register_t.
8979
8980 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8981
8982 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8983 it to the ptrace call.
8984 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8985 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8986 * arm-nbsd-nat.c (store_register): Likewise.
8987 * arm-nbsd-nat.c (store_regs): Likewise.
8988 * arm-nbsd-nat.c (store_fp_register): Likewise.
8989 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8990
8991 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8992
8993 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8994 nbsd_nat_target instead of inf_ptrace_target.
8995 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8996 nbsd_nat_target.
8997
8998 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8999
9000 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9001 it to the ptrace call.
9002 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9003
9004 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9005
9006 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9007 it to the ptrace call.
9008 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9009
9010 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9011
9012 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9013 gdb_byte *.
9014 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9015
9016 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9017
9018 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9019 instead of inf_ptrace_target.
9020 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9021 nbsd_nat_target.
9022
9023 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9024
9025 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9026 register_t.
9027
9028 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9029
9030 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9031 register_t.
9032
9033 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9034
9035 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9036 register_t.
9037
9038 2020-03-13 Tom Tromey <tom@tromey.com>
9039
9040 * value.h (val_print): Don't declare.
9041 * valprint.h (val_print_array_elements)
9042 (val_print_scalar_formatted, generic_val_print): Don't declare.
9043 * valprint.c (generic_val_print_array): Take a struct value.
9044 (generic_val_print_ptr, generic_val_print_memberptr)
9045 (generic_val_print_bool, generic_val_print_int)
9046 (generic_val_print_char, generic_val_print_complex)
9047 (generic_val_print): Remove.
9048 (generic_value_print): Update.
9049 (do_val_print): Remove unused parameters. Don't call
9050 la_val_print.
9051 (val_print): Remove.
9052 (common_val_print): Update. Don't call value_check_printable.
9053 (val_print_scalar_formatted, val_print_array_elements): Remove.
9054 * rust-lang.c (rust_val_print): Remove.
9055 (rust_language_defn): Update.
9056 * p-valprint.c (pascal_val_print): Remove.
9057 (pascal_value_print_inner): Update.
9058 (pascal_object_print_val_fields, pascal_object_print_val):
9059 Remove.
9060 (pascal_object_print_static_field): Update.
9061 * p-lang.h (pascal_val_print): Don't declare.
9062 * p-lang.c (pascal_language_defn): Update.
9063 * opencl-lang.c (opencl_language_defn): Update.
9064 * objc-lang.c (objc_language_defn): Update.
9065 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9066 * m2-lang.h (m2_val_print): Don't declare.
9067 * m2-lang.c (m2_language_defn): Update.
9068 * language.h (struct language_defn) <la_val_print>: Remove.
9069 * language.c (unk_lang_value_print_inner): Rename. Change
9070 argument types.
9071 (unknown_language_defn, auto_language_defn): Update.
9072 * go-valprint.c (go_val_print): Remove.
9073 * go-lang.h (go_val_print): Don't declare.
9074 * go-lang.c (go_language_defn): Update.
9075 * f-valprint.c (f_val_print): Remove.
9076 * f-lang.h (f_value_print): Don't declare.
9077 * f-lang.c (f_language_defn): Update.
9078 * d-valprint.c (d_val_print): Remove.
9079 * d-lang.h (d_value_print): Don't declare.
9080 * d-lang.c (d_language_defn): Update.
9081 * cp-valprint.c (cp_print_value_fields)
9082 (cp_print_value_fields_rtti, cp_print_value): Remove.
9083 (cp_print_static_field): Update.
9084 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9085 (c_val_print_struct, c_val_print_union, c_val_print_int)
9086 (c_val_print_memberptr, c_val_print): Remove.
9087 * c-lang.h (c_val_print_array, cp_print_value_fields)
9088 (cp_print_value_fields_rtti): Don't declare.
9089 * c-lang.c (c_language_defn, cplus_language_defn)
9090 (asm_language_defn, minimal_language_defn): Update.
9091 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9092 (ada_val_print_enum): Take a struct value.
9093 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9094 (ada_val_print): Remove.
9095 (ada_value_print_1): Update.
9096 (printable_val_type): Remove.
9097 * ada-lang.h (ada_val_print): Don't declare.
9098 * ada-lang.c (ada_language_defn): Update.
9099
9100 2020-03-13 Tom Tromey <tom@tromey.com>
9101
9102 * valprint.c (do_val_print): Update.
9103 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9104 a struct value.
9105 (value_to_value_object_no_release): Declare.
9106 * python/py-value.c (value_to_value_object_no_release): New
9107 function.
9108 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9109 struct value.
9110 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9111 function.
9112 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9113 a struct value.
9114 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9115 Declare.
9116 (gdbscm_apply_val_pretty_printer): Take a struct value.
9117 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9118 value.
9119 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9120 value.
9121 * extension-priv.h (struct extension_language_ops)
9122 <apply_val_pretty_printer>: Take a struct value.
9123 * cp-valprint.c (cp_print_value): Create a struct value.
9124 (cp_print_value): Update.
9125
9126 2020-03-13 Tom Tromey <tom@tromey.com>
9127
9128 * ada-valprint.c (print_field_values): Call common_val_print.
9129
9130 2020-03-13 Tom Tromey <tom@tromey.com>
9131
9132 * ada-valprint.c (val_print_packed_array_elements): Remove
9133 bitoffset and val parameters. Call common_val_print.
9134 (ada_val_print_string): Remove offset, address, and original_value
9135 parameters.
9136 (ada_val_print_array): Update.
9137 (ada_value_print_array): New function.
9138 (ada_value_print_1): Call it.
9139
9140 2020-03-13 Tom Tromey <tom@tromey.com>
9141
9142 * ada-valprint.c (ada_value_print): Use common_val_print.
9143
9144 2020-03-13 Tom Tromey <tom@tromey.com>
9145
9146 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9147
9148 2020-03-13 Tom Tromey <tom@tromey.com>
9149
9150 * ada-valprint.c (ada_value_print_num): New function.
9151 (ada_value_print_1): Use it.
9152
9153 2020-03-13 Tom Tromey <tom@tromey.com>
9154
9155 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9156
9157 2020-03-13 Tom Tromey <tom@tromey.com>
9158
9159 * ada-valprint.c (ada_value_print_ptr): New function.
9160 (ada_value_print_1): Use it.
9161
9162 2020-03-13 Tom Tromey <tom@tromey.com>
9163
9164 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9165 call common_val_print.
9166 (ada_val_print_1): Update.
9167 (ada_value_print_1): New function.
9168 (ada_value_print_inner): Rewrite.
9169
9170 2020-03-13 Tom Tromey <tom@tromey.com>
9171
9172 * cp-valprint.c (cp_print_value_fields): Update.
9173 (cp_print_value): New function.
9174
9175 2020-03-13 Tom Tromey <tom@tromey.com>
9176
9177 * m2-valprint.c (m2_value_print_inner): Use
9178 cp_print_value_fields.
9179 * cp-valprint.c (cp_print_value_fields): New function.
9180 * c-valprint.c (c_value_print_struct): New function.
9181 (c_value_print_inner): Use c_value_print_struct.
9182 * c-lang.h (cp_print_value_fields): Declare.
9183
9184 2020-03-13 Tom Tromey <tom@tromey.com>
9185
9186 * c-valprint.c (c_value_print_array): New function.
9187 (c_value_print_inner): Use it.
9188
9189 2020-03-13 Tom Tromey <tom@tromey.com>
9190
9191 * c-valprint.c (c_value_print_memberptr): New function.
9192 (c_value_print_inner): Use it.
9193
9194 2020-03-13 Tom Tromey <tom@tromey.com>
9195
9196 * c-valprint.c (c_value_print_int): New function.
9197 (c_value_print_inner): Use it.
9198
9199 2020-03-13 Tom Tromey <tom@tromey.com>
9200
9201 * c-valprint.c (c_value_print_ptr): New function.
9202 (c_value_print_inner): Use it.
9203
9204 2020-03-13 Tom Tromey <tom@tromey.com>
9205
9206 * c-valprint.c (c_value_print_inner): Rewrite.
9207
9208 2020-03-13 Tom Tromey <tom@tromey.com>
9209
9210 * valprint.c (generic_value_print_complex): New function.
9211 (generic_value_print): Use it.
9212
9213 2020-03-13 Tom Tromey <tom@tromey.com>
9214
9215 * valprint.c (generic_val_print_float): Don't call
9216 val_print_scalar_formatted.
9217 (generic_val_print, generic_value_print): Update.
9218
9219 2020-03-13 Tom Tromey <tom@tromey.com>
9220
9221 * valprint.c (generic_value_print_char): New function
9222 (generic_value_print): Use it.
9223
9224 2020-03-13 Tom Tromey <tom@tromey.com>
9225
9226 * valprint.c (generic_value_print_int): New function.
9227 (generic_value_print): Use it.
9228
9229 2020-03-13 Tom Tromey <tom@tromey.com>
9230
9231 * valprint.c (generic_value_print_bool): New function.
9232 (generic_value_print): Use it.
9233
9234 2020-03-13 Tom Tromey <tom@tromey.com>
9235
9236 * valprint.c (generic_val_print_func): Simplify.
9237 (generic_val_print, generic_value_print): Update.
9238
9239 2020-03-13 Tom Tromey <tom@tromey.com>
9240
9241 * valprint.c (generic_val_print_flags): Remove.
9242 (generic_val_print, generic_value_print): Update.
9243 (val_print_type_code_flags): Add original_value parameter.
9244
9245 2020-03-13 Tom Tromey <tom@tromey.com>
9246
9247 * valprint.c (generic_val_print): Update.
9248 (generic_value_print): Update.
9249 * valprint.c (generic_val_print_enum): Don't call
9250 val_print_scalar_formatted.
9251
9252 2020-03-13 Tom Tromey <tom@tromey.com>
9253
9254 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9255 * valprint.c (generic_value_print_ptr): New function.
9256
9257 2020-03-13 Tom Tromey <tom@tromey.com>
9258
9259 * valprint.c (generic_value_print): Rewrite.
9260
9261 2020-03-13 Tom Tromey <tom@tromey.com>
9262
9263 * p-valprint.c (pascal_object_print_value_fields)
9264 (pascal_object_print_value): New functions.
9265
9266 2020-03-13 Tom Tromey <tom@tromey.com>
9267
9268 * p-valprint.c (pascal_value_print_inner): Rewrite.
9269
9270 2020-03-13 Tom Tromey <tom@tromey.com>
9271
9272 * f-valprint.c (f_value_print_innner): Rewrite.
9273
9274 2020-03-13 Tom Tromey <tom@tromey.com>
9275
9276 * m2-valprint.c (m2_print_unbounded_array): New overload.
9277 (m2_print_unbounded_array): Update.
9278 (m2_print_array_contents): Take a struct value.
9279 (m2_value_print_inner): Rewrite.
9280
9281 2020-03-13 Tom Tromey <tom@tromey.com>
9282
9283 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9284 (d_value_print_inner): New function.
9285 * d-lang.h (d_value_print_inner): Declare.
9286 * d-lang.c (d_language_defn): Use d_value_print_inner.
9287
9288 2020-03-13 Tom Tromey <tom@tromey.com>
9289
9290 * go-valprint.c (go_value_print_inner): New function.
9291 * go-lang.h (go_value_print_inner): Declare.
9292 * go-lang.c (go_language_defn): Use go_value_print_inner.
9293
9294 2020-03-13 Tom Tromey <tom@tromey.com>
9295
9296 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9297 API.
9298 (rust_val_print): Rewrite.
9299 (rust_value_print_inner): New function, from rust_val_print.
9300 (rust_language_defn): Use rust_value_print_inner.
9301
9302 2020-03-13 Tom Tromey <tom@tromey.com>
9303
9304 * ada-valprint.c (ada_value_print_inner): New function.
9305 * ada-lang.h (ada_value_print_inner): Declare.
9306 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9307
9308 2020-03-13 Tom Tromey <tom@tromey.com>
9309
9310 * f-valprint.c (f_value_print_innner): New function.
9311 * f-lang.h (f_value_print_innner): Declare.
9312 * f-lang.c (f_language_defn): Use f_value_print_innner.
9313
9314 2020-03-13 Tom Tromey <tom@tromey.com>
9315
9316 * p-valprint.c (pascal_value_print_inner): New function.
9317 * p-lang.h (pascal_value_print_inner): Declare.
9318 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9319
9320 2020-03-13 Tom Tromey <tom@tromey.com>
9321
9322 * m2-valprint.c (m2_value_print_inner): New function.
9323 * m2-lang.h (m2_value_print_inner): Declare.
9324 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9325
9326 2020-03-13 Tom Tromey <tom@tromey.com>
9327
9328 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9329 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9330 * c-valprint.c (c_value_print_inner): New function.
9331 * c-lang.h (c_value_print_inner): Declare.
9332 * c-lang.c (c_language_defn, cplus_language_defn)
9333 (asm_language_defn, minimal_language_defn): Use
9334 c_value_print_inner.
9335
9336 2020-03-13 Tom Tromey <tom@tromey.com>
9337
9338 * p-valprint.c (pascal_object_print_value_fields): Now static.
9339 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9340
9341 2020-03-13 Tom Tromey <tom@tromey.com>
9342
9343 * c-valprint.c (c_val_print_array): Simplify.
9344
9345 2020-03-13 Tom Tromey <tom@tromey.com>
9346
9347 * valprint.c (value_print_array_elements): New function.
9348 * valprint.h (value_print_array_elements): Declare.
9349
9350 2020-03-13 Tom Tromey <tom@tromey.com>
9351
9352 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9353 * mips-tdep.c (mips_print_register): Use
9354 value_print_scalar_formatted.
9355
9356 2020-03-13 Tom Tromey <tom@tromey.com>
9357
9358 * valprint.h (value_print_scalar_formatted): Declare.
9359 * valprint.c (value_print_scalar_formatted): New function.
9360
9361 2020-03-13 Tom Tromey <tom@tromey.com>
9362
9363 * valprint.h (generic_value_print): Declare.
9364 * valprint.c (generic_value_print): New function.
9365
9366 2020-03-13 Tom Tromey <tom@tromey.com>
9367
9368 * valprint.c (do_val_print): Call la_value_print_inner, if
9369 available.
9370 * rust-lang.c (rust_language_defn): Update.
9371 * p-lang.c (pascal_language_defn): Update.
9372 * opencl-lang.c (opencl_language_defn): Update.
9373 * objc-lang.c (objc_language_defn): Update.
9374 * m2-lang.c (m2_language_defn): Update.
9375 * language.h (struct language_defn) <la_value_print_inner>: New
9376 member.
9377 * language.c (unknown_language_defn, auto_language_defn): Update.
9378 * go-lang.c (go_language_defn): Update.
9379 * f-lang.c (f_language_defn): Update.
9380 * d-lang.c (d_language_defn): Update.
9381 * c-lang.c (c_language_defn, cplus_language_defn)
9382 (asm_language_defn, minimal_language_defn): Update.
9383 * ada-lang.c (ada_language_defn): Update.
9384
9385 2020-03-13 Tom Tromey <tom@tromey.com>
9386
9387 * c-valprint.c (c_value_print): Use common_val_print.
9388
9389 2020-03-13 Tom Tromey <tom@tromey.com>
9390
9391 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9392
9393 2020-03-13 Tom Tromey <tom@tromey.com>
9394
9395 * f-valprint.c (f77_print_array_1, f_val_print): Use
9396 common_val_print.
9397
9398 2020-03-13 Tom Tromey <tom@tromey.com>
9399
9400 * riscv-tdep.c (riscv_print_one_register_info): Use
9401 common_val_print.
9402
9403 2020-03-13 Tom Tromey <tom@tromey.com>
9404
9405 * mi/mi-main.c (output_register): Use common_val_print.
9406
9407 2020-03-13 Tom Tromey <tom@tromey.com>
9408
9409 * infcmd.c (default_print_one_register_info): Use
9410 common_val_print.
9411
9412 2020-03-13 Tom Tromey <tom@tromey.com>
9413
9414 * valprint.h (common_val_print_checked): Declare.
9415 * valprint.c (common_val_print_checked): New function.
9416 * stack.c (print_frame_arg): Use common_val_print_checked.
9417
9418 2020-03-13 Tom Tromey <tom@tromey.com>
9419
9420 * valprint.c (do_val_print): New function, from val_print.
9421 (val_print): Use do_val_print.
9422 (common_val_print): Use do_val_print.
9423
9424 2020-03-13 Tom Tromey <tom@tromey.com>
9425
9426 * valprint.c (value_print): Use scoped_value_mark.
9427
9428 2020-03-13 Tom de Vries <tdevries@suse.de>
9429
9430 PR symtab/25646
9431 * psymtab.c (partial_symtab::partial_symtab): Don't set
9432 globals_offset and statics_offset. Push element onto
9433 current_global_psymbols and current_static_psymbols stacks.
9434 (concat): New function.
9435 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9436 element from current_global_psymbols and current_static_psymbols
9437 stacks. Concat popped elements to global_psymbols and
9438 static_symbols.
9439 (add_psymbol_to_list): Use current_global_psymbols and
9440 current_static_psymbols stacks.
9441 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9442 current_static_psymbols fields.
9443
9444 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9445
9446 * corelow.c (sniff_core_bfd): Remove.
9447 (class core_target) <m_core_vec>: Remove.
9448 (core_target::core_target): Update.
9449 (core_file_fns): Remove.
9450 (deprecated_add_core_fns): Remove.
9451 (default_core_sniffer): Remove.
9452 (sniff_core_bfd): Remove.
9453 (default_check_format): Remove.
9454 (gdb_check_format): Remove.
9455 (core_target_open): Update.
9456 (core_target::get_core_register_section): Update.
9457 (get_core_registers_cb): Update.
9458 (core_target::fetch_registers): Update.
9459 * gdbcore.h (struct core_fns): Remove.
9460 (deprecated_add_core_fns): Remove.
9461 (default_core_sniffer): Remove.
9462 (default_check_format): Remove.
9463
9464 2020-03-12 Tom Tromey <tom@tromey.com>
9465
9466 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9467 CORE_ADDR.
9468 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9469
9470 2020-03-12 Tom Tromey <tom@tromey.com>
9471
9472 * remote.c (remote_target::download_tracepoint)
9473 (remote_target::enable_tracepoint)
9474 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9475 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9476 sprintf_vma.
9477
9478 2020-03-12 Tom Tromey <tom@tromey.com>
9479
9480 * symfile-mem.c: Update CORE_ADDR size assert.
9481
9482 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9483
9484 * selftest.m4: Move to gdbsupport/.
9485 * acinclude.m4: Update path to selftest.m4.
9486
9487 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9490 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9491 gdbarch-selfselftests.c and selftest-arch.c.
9492 (SUBDIR_UNITTESTS_OBS): Rename to...
9493 (SELFTESTS_OBS): ... this.
9494 (COMMON_SFILES): Remove disasm-selftests.c and
9495 gdbarch-selftests.c.
9496 * configure.ac: Don't add selftest-arch.{c,o} to
9497 CONFIG_{SRCS,OBS}.
9498 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9499 preprocessor conditions.
9500
9501 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9502
9503 * configure.ac: Don't source bfd/development.sh.
9504 * selftest.m4: Modify comment.
9505 * configure: Re-generate.
9506
9507 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9510 not "true" or "false".
9511 * configure: Re-generate.
9512
9513 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9514
9515 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9516 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9517 renamed to arm_nbsd_supply_gregset.
9518 (fetch_register): Update to call arm_nbsd_supply_gregset.
9519 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9520 (arm_netbsd_nat_target::fetch_registers): Update.
9521 (fetch_elfcore_registers): Removed.
9522 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9523 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9524 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9525 not require NetBSD system headers.
9526 (arm_nbsd_regset): New struct.
9527 (arm_nbsd_iterate_over_regset_sections): New function.
9528 (arm_netbsd_init_abi_common): Updated to call
9529 set_gdbarch_iterate_over_regset_sections.
9530 * arm-nbsd-tdep.h: New file.
9531
9532 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9533
9534 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9535 recursion.
9536
9537 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9538
9539 * configure: Re-generate.
9540
9541 2020-03-11 Tom Tromey <tromey@adacore.com>
9542
9543 * ada-typeprint.c (print_choices): Fix comment.
9544
9545 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9546
9547 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9548 previous item in the list, when the list has no items.
9549
9550 2020-03-11 Tom de Vries <tdevries@suse.de>
9551
9552 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9553 PROP_LOCLIST handling code.
9554
9555 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9556
9557 * buildsym-legacy.c (record_line): Pass extra parameter to
9558 record_line.
9559 * buildsym.c (buildsym_compunit::record_line): Take an extra
9560 parameter, reduce duplication in the line table, and record the
9561 is_stmt flag in the line table.
9562 * buildsym.h (buildsym_compunit::record_line): Add extra
9563 parameter.
9564 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9565 non-statement lines.
9566 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9567 this to the symtab builder.
9568 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9569 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9570 through to dwarf_record_line_1.
9571 * infrun.c (process_event_stop_test): When stepping, don't stop at
9572 a non-statement instruction, and only refresh the step info when
9573 we land in the middle of a line's range. Also add an extra
9574 comment.
9575 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9576 field.
9577 * record-btrace.c (btrace_find_line_range): Only record lines
9578 marked as is-statement.
9579 * stack.c (frame_show_address): Show the frame address if we are
9580 in a non-statement sal.
9581 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9582 (maintenance_print_one_line_table): Print a header for the is_stmt
9583 column, and include is_stmt information in the output.
9584 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9585 preference to non-statements.
9586 (find_pcs_for_symtab_line): Prefer is-statement entries.
9587 (find_line_common): Likewise.
9588 * symtab.h (struct linetable_entry): Add is_stmt field.
9589 (struct symtab_and_line): Likewise.
9590 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9591 arranging the line table.
9592
9593 2020-03-07 Tom de Vries <tdevries@suse.de>
9594
9595 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9596 DIE.
9597
9598 2020-03-07 Tom Tromey <tom@tromey.com>
9599
9600 * valops.c (value_literal_complex): Remove obsolete comment.
9601 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9602 comment.
9603
9604 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9605
9606 * infrun.h: Forward-declare thread_info.
9607 (set_step_info): Add thread_info parameter, add doc.
9608 * infrun.c (set_step_info): Add thread_info parameter, move doc
9609 to header.
9610 * infrun.c (process_event_stop_test): Pass thread to
9611 set_step_info call.
9612 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9613 set_step_info.
9614 (prepare_one_step): Add thread_info parameter, pass it to
9615 set_step_frame and prepare_one_step (recursive) call.
9616 (step_1): Pass thread to prepare_one_step call.
9617 (step_command_fsm::should_stop): Pass thread to
9618 prepare_one_step.
9619 (until_next_fsm): Pass thread to set_step_frame call.
9620 (finish_command): Pass thread to set_step_info call.
9621
9622 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9623
9624 * windows-tdep.c (windows_solib_create_inferior_hook):
9625 Check if inferior is running.
9626
9627 2020-03-06 Tom de Vries <tdevries@suse.de>
9628
9629 * NEWS: Fix "the the".
9630 * ctfread.c: Same.
9631
9632 2020-03-06 Tom de Vries <tdevries@suse.de>
9633
9634 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9635
9636 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9637
9638 * .dir-locals.el: Add a comment referencing the other copies of
9639 this file.
9640
9641 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9642
9643 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9644 psargs.
9645
9646 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9647
9648 * .gitattributes: New file.
9649
9650 2020-03-04 Tom Tromey <tom@tromey.com>
9651
9652 * symmisc.c (print_symbol_bcache_statistics)
9653 (print_objfile_statistics): Update.
9654 * symfile.c (allocate_symtab): Use intern.
9655 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9656 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9657 macro_cache>: Remove.
9658 <string_cache>: New member.
9659 (struct objfile) <intern>: New methods.
9660 * elfread.c (elf_symtab_read): Use intern.
9661 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9662 (dwarf2_compute_name, dwarf2_physname)
9663 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9664 names.
9665 (guess_partial_die_structure_name): Update.
9666 (partial_die_info::fixup): Intern name.
9667 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9668 name.
9669 (dwarf2_name): Intern name. Update.
9670 * buildsym.c (buildsym_compunit::get_macro_table): Use
9671 string_cache.
9672
9673 2020-03-04 Tom Tromey <tom@tromey.com>
9674
9675 * jit.c (bfd_open_from_target_memory): Make "target" const.
9676 * corefile.c (gnutarget): Now const.
9677 * gdbcore.h (gnutarget): Now const.
9678
9679 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9680
9681 * NEWS: Mention support for WOW64 processes.
9682 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9683 (amd64_windows_segment_register_p): Remove static.
9684 (_initialize_amd64_windows_nat): Update.
9685 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9686 * i386-windows-nat.c (context_offset): Update.
9687 (i386_mappings): Rename and remove static.
9688 (i386_windows_segment_register_p): Remove static.
9689 (_initialize_i386_windows_nat): Update.
9690 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9691 (STATUS_WX86_SINGLE_STEP): New macro.
9692 (EnumProcessModulesEx): New macro.
9693 (Wow64SuspendThread): New macro.
9694 (Wow64GetThreadContext): New macro.
9695 (Wow64SetThreadContext): New macro.
9696 (Wow64GetThreadSelectorEntry): New macro.
9697 (windows_set_context_register_offsets): Add static.
9698 (windows_set_segment_register_p): Likewise.
9699 (windows_add_thread): Adapt for WOW64 processes.
9700 (windows_fetch_one_register): Likewise.
9701 (windows_nat_target::fetch_registers): Likewise.
9702 (windows_store_one_register): Likewise.
9703 (display_selector): Likewise.
9704 (display_selectors): Likewise.
9705 (handle_exception): Likewise.
9706 (windows_continue): Likewise.
9707 (windows_nat_target::resume): Likewise.
9708 (windows_add_all_dlls): Likewise.
9709 (do_initial_windows_stuff): Likewise.
9710 (windows_nat_target::attach): Likewise.
9711 (windows_get_exec_module_filename): Likewise.
9712 (windows_nat_target::create_inferior): Likewise.
9713 (windows_xfer_siginfo): Likewise.
9714 (_initialize_loadable): Initialize Wow64SuspendThread,
9715 Wow64GetThreadContext, Wow64SetThreadContext,
9716 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9717 * windows-nat.h (windows_set_context_register_offsets):
9718 Remove declaration.
9719 (windows_set_segment_register_p): Likewise.
9720 (i386_windows_segment_register_p): Add declaration.
9721 (amd64_windows_segment_register_p): Likewise.
9722
9723 2020-03-04 Luis Machado <luis.machado@linaro.org>
9724
9725 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9726 in "info registers" for AArch64/ARM.
9727
9728 The change caused "info registers" to not print GPR's.
9729
9730 gdb/ChangeLog:
9731
9732 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9733
9734 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9735 when reg->group is empty and reggroup is not.
9736
9737 2020-03-03 Tom Tromey <tromey@adacore.com>
9738
9739 * dwarf2/frame.c (struct dwarf2_frame_cache)
9740 <checked_tailcall_bottom, entry_cfa_sp_offset,
9741 entry_cfa_sp_offset_p>: Remove members.
9742 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9743 (dwarf2_frame_prev_register): Don't call
9744 dwarf2_tailcall_sniffer_first.
9745 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9746 * frame-unwind.c (add_unwinder): New fuction.
9747 (frame_unwind_init): Use it. Add tailcall unwinder.
9748
9749 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9750 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9751
9752 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9753 value should be printed as true.
9754
9755 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9756
9757 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9758 (windows_init_abi): Set and use windows_so_ops.
9759
9760 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9761
9762 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9763 when verifying if dealing with a convenience variable.
9764
9765 2020-03-03 Luis Machado <luis.machado@linaro.org>
9766
9767 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9768
9769 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9770
9771 * infrun.c (gdbarch_supports_displaced_stepping): New.
9772 (use_displaced_stepping): Break up conditions in smaller pieces.
9773 Use gdbarch_supports_displaced_stepping.
9774 (displaced_step_prepare_throw): Use
9775 gdbarch_supports_displaced_stepping.
9776
9777 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9778
9779 * NEWS: Mention new behaviour of the history filename.
9780 * top.c (write_history_p): Add comment.
9781 (show_write_history_p): Add header comment, give a different
9782 message when history writing is on, but the history filename is
9783 empty.
9784 (history_filename): Add comment.
9785 (history_filename_empty): New function.
9786 (show_history_filename): Add header comment, give a different
9787 message when the filename is empty.
9788 (init_history): Compare history_filename against nullptr, and only
9789 read history if the filename is not empty.
9790 (set_history_filename): Add header comment, and only make
9791 non-empty filenames absolute.
9792 (init_main): Make the filename argument to 'set history filename'
9793 optional.
9794
9795 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9796
9797 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9798 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9799 (fetch_fp_register): Update.
9800 (fetch_fp_regs): Update.
9801 (store_fp_register): Update.
9802 (store_fp_regs): Update.
9803 (arm_netbsd_nat_target::read_description): New function.
9804 (fetch_elfcore_registers): Update.
9805
9806 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9807
9808 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9809 general_thread if the stop reply is missing a thread-id.
9810 (remote_target::process_stop_reply): Use the first non-exited
9811 thread if the target didn't pass a thread-id.
9812 * infrun.c (do_target_wait): Move call to
9813 switch_to_inferior_no_thread to ....
9814 (do_target_wait_1): ... here.
9815
9816 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9817
9818 * debuginfod-support.c: Include defs.h first.
9819
9820 2020-02-28 Tom de Vries <tdevries@suse.de>
9821
9822 * symfile.c (set_initial_language): Use default language for lookup.
9823
9824 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9827 reader variable, pass `this` to read_cutu_die_from_dwo.
9828
9829 2020-02-27 Aaron Merey <amerey@redhat.com>
9830
9831 * source.c (open_source_file): Check for nullptr when computing
9832 srcpath.
9833
9834 2020-02-27 Tom Tromey <tromey@adacore.com>
9835
9836 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9837 member.
9838 (dwarf2_add_field): Don't update nfields.
9839 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9840
9841 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9844 abs.
9845
9846 2020-02-26 Tom Tromey <tom@tromey.com>
9847
9848 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9849 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9850 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9851 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9852 per_cu_data.
9853
9854 2020-02-26 Tom Tromey <tom@tromey.com>
9855
9856 * dwarf2/index-write.c (psym_index_map): Change type.
9857 (add_address_entry_worker, write_one_signatured_type)
9858 (recursively_count_psymbols, recursively_write_psymbols)
9859 (class debug_names, psyms_seen_size, write_gdbindex)
9860 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9861
9862 2020-02-26 Aaron Merey <amerey@redhat.com>
9863
9864 * Makefile.in: Handle optional debuginfod support.
9865 * NEWS: Update.
9866 * README: Add --with-debuginfod summary.
9867 * config.in: Regenerate.
9868 * configure: Regenerate.
9869 * configure.ac: Handle optional debuginfod support.
9870 * debuginfod-support.c: debuginfod helper functions.
9871 * debuginfod-support.h: Ditto.
9872 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9873 summary.
9874 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9875 when a dwz file cannot be found.
9876 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9877 debuginfo file cannot be found.
9878 * source.c (open_source_file): Query debuginfod servers when a
9879 source file cannot be found.
9880 * top.c (print_gdb_configuration): Include
9881 --{with,without}-debuginfod in the output.
9882
9883 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9884
9885 * thread.c (thr_try_catch_cmd): Print thread name.
9886
9887 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9890 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9891 dwarf2_fetch_die_type_sect_off): Move to...
9892 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9893 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9894 dwarf2_fetch_die_type_sect_off): ... here.
9895 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9896 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9897 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9898
9899 2020-02-26 Tom de Vries <tdevries@suse.de>
9900
9901 PR gdb/25603
9902 * symfile.c (set_initial_language): Exit-early if
9903 language_mode == language_mode_manual.
9904
9905 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9906
9907 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9908 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9909 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9910
9911 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * gdbtypes.c (create_array_type_with_stride): Handle negative
9914 array strides.
9915 * valarith.c (value_subscripted_rvalue): Likewise.
9916
9917 2020-02-25 Luis Machado <luis.machado@linaro.org>
9918
9919 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9920
9921 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9922
9923 * loc.h (dwarf2_get_die_type): Move to...
9924 * read.h (dwarf2_get_die_type): ... here.
9925 * read.c (dwarf2_get_die_type): Move doc to header.
9926
9927 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9928
9929 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9930 'gnulib/Makefile.in' to the list.
9931
9932 2020-02-24 Tom Tromey <tom@tromey.com>
9933
9934 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9935 Remove.
9936 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9937 XOBNEWVEC.
9938
9939 2020-02-24 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9942 New method.
9943 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9944 (dw2_do_instantiate_symtab, dw2_get_file_names)
9945 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9946
9947 2020-02-24 Tom Tromey <tom@tromey.com>
9948
9949 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9950 make_scoped_restore.
9951 (dwarf2_psymtab::read_symtab): Don't clear
9952 reading_partial_symbols.
9953
9954 2020-02-24 Tom de Vries <tdevries@suse.de>
9955
9956 PR gdb/25592
9957 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9958
9959 2020-02-24 Tom de Vries <tdevries@suse.de>
9960
9961 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9962 commands layout next/prev/regs.
9963
9964 2020-02-22 Tom Tromey <tom@tromey.com>
9965
9966 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9967 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9968
9969 2020-02-22 Tom Tromey <tom@tromey.com>
9970
9971 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9972
9973 2020-02-22 Tom Tromey <tom@tromey.com>
9974
9975 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9976 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9977 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9978 * tui/tui.c (_initialize_tui): Add usage text.
9979
9980 2020-02-22 Tom Tromey <tom@tromey.com>
9981
9982 * tui/tui-win.c (tui_set_focus_command)
9983 (tui_set_win_height_command): Use error_no_arg.
9984 (_initialize_tui_win): Update help text.
9985 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9986
9987 2020-02-22 Tom Tromey <tom@tromey.com>
9988
9989 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9990 * tui/tui-disasm.h (struct tui_disasm_window)
9991 <display_start_addr>: Declare.
9992 * tui/tui-source.h (struct tui_source_window)
9993 <display_start_addr>: Declare.
9994 * tui/tui-winsource.h (struct tui_source_window_base)
9995 <show_source_line, display_start_addr>: New methods.
9996 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9997 Rename and move to protected section.
9998 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9999 (tui_source_window_base::do_erase_source_content): Update.
10000 (tui_source_window_base::show_source_line): Now a method.
10001 (tui_source_window_base::show_source_content)
10002 (tui_source_window_base::tui_source_window_base)
10003 (tui_source_window_base::rerender)
10004 (tui_source_window_base::refill)
10005 (tui_source_window_base::do_scroll_horizontal)
10006 (tui_source_window_base::set_is_exec_point_at)
10007 (tui_source_window_base::update_breakpoint_info)
10008 (tui_source_window_base::update_exec_info): Update.
10009 * tui/tui-source.c (tui_source_window::set_contents)
10010 (tui_source_window::showing_source_p)
10011 (tui_source_window::do_scroll_vertical)
10012 (tui_source_window::location_matches_p)
10013 (tui_source_window::line_is_displayed): Update.
10014 (tui_source_window::display_start_addr): New method.
10015 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10016 (tui_disasm_window::do_scroll_vertical)
10017 (tui_disasm_window::location_matches_p): Update.
10018 (tui_disasm_window::display_start_addr): New method.
10019
10020 2020-02-22 Tom Tromey <tom@tromey.com>
10021
10022 * NEWS: Add entry for gdb.register_window_type.
10023 * tui/tui-layout.h (window_factory): New typedef.
10024 (tui_register_window): Declare.
10025 * tui/tui-layout.c (saved_tui_windows): New global.
10026 (tui_apply_current_layout): Use it.
10027 (tui_register_window): New function.
10028 * python/python.c (do_start_initialization): Call
10029 gdbpy_initialize_tui.
10030 (python_GdbMethods): Add "register_window_type" function.
10031 * python/python-internal.h (gdbpy_register_tui_window)
10032 (gdbpy_initialize_tui): Declare.
10033 * python/py-tui.c: New file.
10034 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10035
10036 2020-02-22 Tom Tromey <tom@tromey.com>
10037
10038 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10039
10040 2020-02-22 Tom Tromey <tom@tromey.com>
10041
10042 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10043 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10044 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10045 (tui_set_win_focus_to): Move from tui-win.c.
10046
10047 2020-02-22 Tom Tromey <tom@tromey.com>
10048
10049 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10050 functions.
10051 (known_window_types): New global.
10052 (tui_get_window_by_name): Reimplement.
10053 (initialize_known_windows): New function.
10054 (validate_window_name): Rewrite.
10055 (_initialize_tui_layout): Call initialize_known_windows.
10056
10057 2020-02-22 Tom Tromey <tom@tromey.com>
10058
10059 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10060 Remove constants.
10061 * tui/tui-winsource.h (struct tui_source_window_base)
10062 <tui_source_window_base>: Remove parameter.
10063 * tui/tui-winsource.c
10064 (tui_source_window_base::tui_source_window_base): Remove
10065 parameter.
10066 (tui_source_window_base::refill): Update.
10067 * tui/tui-stack.h (struct tui_locator_window)
10068 <tui_locator_window>: Update.
10069 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10070 Default the constructor.
10071 * tui/tui-regs.h (struct tui_data_item_window)
10072 <tui_data_item_window>: Default the constructor.
10073 (struct tui_data_window) <tui_data_window>: Likewise.
10074 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10075 Default the constructor.
10076 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10077 Default the constructor.
10078 <type>: Remove.
10079 (struct tui_win_info) <tui_win_info>: Default the constructor.
10080 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10081 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10082 Default the constructor.
10083
10084 2020-02-22 Tom Tromey <tom@tromey.com>
10085
10086 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10087 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10088 * tui/tui-win.c (tui_resize_all): Don't call
10089 tui_delete_invisible_windows.
10090 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10091 done.
10092 (tui_set_layout): Update.
10093 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10094 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10095 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10096
10097 2020-02-22 Tom Tromey <tom@tromey.com>
10098
10099 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10100 correctly.
10101
10102 2020-02-22 Tom Tromey <tom@tromey.com>
10103
10104 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10105
10106 2020-02-22 Tom Tromey <tom@tromey.com>
10107
10108 * tui/tui-winsource.h (struct tui_source_window_iterator)
10109 <inner_iterator>: New etytypedef.
10110 <tui_source_window_iterator>: Take "end" parameter.
10111 <tui_source_window_iterator>: Take iterator.
10112 <operator*, advance>: Update.
10113 <m_iter>: Change type.
10114 <m_end>: New field.
10115 (struct tui_source_windows) <begin, end>: Update.
10116 * tui/tui-layout.c (tui_windows): New global.
10117 (tui_apply_current_layout): Clear tui_windows.
10118 (tui_layout_window::apply): Update tui_windows.
10119 * tui/tui-data.h (tui_windows): Declare.
10120 (all_tui_windows): Now inline function.
10121 (class tui_window_iterator, struct all_tui_windows): Remove.
10122
10123 2020-02-22 Tom Tromey <tom@tromey.com>
10124
10125 PR tui/17850:
10126 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10127 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10128 "height" argument.
10129 (class tui_layout_window) <get_sizes>: Likewise.
10130 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10131 argument.
10132 <get_sizes>: Add "height" argument.
10133 <m_vertical>: New field.
10134 * tui/tui-layout.c (tui_layout_split::clone): Update.
10135 (tui_layout_split::get_sizes): Add "height" argument.
10136 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10137 (tui_new_layout_command): Parse "-horizontal".
10138 (_initialize_tui_layout): Update help string.
10139 (tui_layout_split::specification): Add "-horizontal" when needed.
10140 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10141 argument.
10142 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10143 New methods.
10144
10145 2020-02-22 Tom Tromey <tom@tromey.com>
10146
10147 * tui/tui-layout.h (enum tui_adjust_result): New.
10148 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10149 (class tui_layout_window) <adjust_size>: Return
10150 tui_adjust_result. Rewrite.
10151 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10152 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10153
10154 2020-02-22 Tom Tromey <tom@tromey.com>
10155
10156 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10157 parameter and return types.
10158 (class tui_layout_base) <specification>: Add "depth".
10159 (class tui_layout_window) <specification>: Add "depth".
10160 (class tui_layout_split) <specification>: Add "depth".
10161 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10162 and return types.
10163 (tui_new_layout_command): Parse sub-layouts.
10164 (_initialize_tui_layout): Update help string.
10165 (tui_layout_window::specification): Add "depth".
10166 (add_layout_command): Update.
10167
10168 2020-02-22 Tom Tromey <tom@tromey.com>
10169
10170 * NEWS: Add "tui new-layout" item.
10171 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10172 Add new-layout command to help text.
10173 (validate_window_name): New function.
10174 (tui_new_layout_command): New function.
10175 (_initialize_tui_layout): Register "new-layout".
10176 (tui_layout_window::specification): New method.
10177 (tui_layout_window::specification): New method.
10178 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10179 method.
10180 (class tui_layout_window) <specification>: New method.
10181 (class tui_layout_split) <specification>: New method.
10182
10183 2020-02-22 Tom Tromey <tom@tromey.com>
10184
10185 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10186 * tui/tui-win.c (window_name_completer): Update comment.
10187 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10188 Declare method.
10189 (class tui_layout_window) <replace_window>: Likewise.
10190 (class tui_layout_split) <replace_window>: Likewise.
10191 (tui_set_layout): Don't declare.
10192 (tui_set_initial_layout): Declare function.
10193 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10194 (asm_regs_layout): New globals.
10195 (tui_current_layout, show_layout): Remove.
10196 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10197 (find_layout, tui_apply_layout): New function.
10198 (layout_completer): Remove.
10199 (tui_next_layout): Reimplement.
10200 (tui_next_layout_command): New function.
10201 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10202 (tui_regs_layout): Reimplement.
10203 (tui_regs_layout_command): New function.
10204 (extract_display_start_addr): Rewrite.
10205 (next_layout, prev_layout): Remove.
10206 (tui_layout_window::replace_window): New method.
10207 (tui_layout_split::replace_window): New method.
10208 (destroy_layout): New function.
10209 (layout_list): New global.
10210 (add_layout_command): New function.
10211 (initialize_layouts): Update.
10212 (tui_layout_command): New function.
10213 (_initialize_tui_layout): Install "layout" commands.
10214 * tui/tui-data.h (enum tui_layout_type): Remove.
10215 (tui_current_layout): Don't declare.
10216
10217 2020-02-22 Tom Tromey <tom@tromey.com>
10218
10219 * tui/tui-regs.c (tui_reg_layout): Remove.
10220 (tui_reg_command): Use tui_regs_layout.
10221 * tui/tui-layout.h (tui_reg_command): Declare.
10222 * tui/tui-layout.c (tui_reg_command): New function.
10223
10224 2020-02-22 Tom Tromey <tom@tromey.com>
10225
10226 * tui/tui.c (tui_rl_delete_other_windows): Call
10227 tui_remove_some_windows.
10228 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10229 Declare method.
10230 (class tui_layout_window) <remove_windows>: New method.
10231 (class tui_layout_split) <remove_windows>: Declare.
10232 (tui_remove_some_windows): Declare.
10233 * tui/tui-layout.c (tui_remove_some_windows): New function.
10234 (tui_layout_split::remove_windows): New method.
10235
10236 2020-02-22 Tom Tromey <tom@tromey.com>
10237
10238 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10239 * tui/tui-layout.h (tui_next_layout): Declare.
10240 * tui/tui-layout.c (tui_next_layout): New function.
10241
10242 2020-02-22 Tom Tromey <tom@tromey.com>
10243
10244 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10245 correct coordinates.
10246
10247 2020-02-22 Tom Tromey <tom@tromey.com>
10248
10249 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10250 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10251 DATA_WIN case.
10252
10253 2020-02-22 Tom Tromey <tom@tromey.com>
10254
10255 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10256 TUI_DISASM_WIN, not tui_win_list.
10257
10258 2020-02-22 Tom Tromey <tom@tromey.com>
10259
10260 * valprint.c (generic_val_print_enum_1)
10261 (val_print_type_code_flags): Style member names.
10262 * rust-lang.c (val_print_struct, rust_print_enum)
10263 (rust_print_struct_def, rust_internal_print_type): Style member
10264 names.
10265 * p-valprint.c (pascal_object_print_value_fields): Style member
10266 names. Only call fprintf_symbol_filtered for static members.
10267 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10268 * f-valprint.c (f_val_print): Style member names.
10269 * f-typeprint.c (f_type_print_base): Style member names.
10270 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10271 call fprintf_symbol_filtered for static members.
10272 (cp_print_class_member): Style member names.
10273 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10274 member names.
10275 * ada-valprint.c (ada_print_scalar): Style enum names.
10276 (ada_val_print_enum): Likewise.
10277 * ada-typeprint.c (print_enum_type): Style enum names.
10278
10279 2020-02-21 Tom Tromey <tom@tromey.com>
10280
10281 * psympriv.h (struct partial_symtab): Update comment.
10282
10283 2020-02-21 Tom Tromey <tromey@adacore.com>
10284
10285 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10286 type is CORE_ADDR.
10287
10288 2020-02-21 Tom de Vries <tdevries@suse.de>
10289
10290 PR gdb/25534
10291 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10292 if dependencies[i]->user != NULL.
10293
10294 2020-02-21 Ali Tamur <tamur@google.com>
10295
10296 * dwarf2/read.c (dwarf2_name): Add null check.
10297
10298 2020-02-20 Tom Tromey <tom@tromey.com>
10299
10300 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10301 ">=", in binary search.
10302 (dwarf2_find_containing_comp_unit): New overload.
10303 (run_test): New self-test.
10304 (_initialize_dwarf2_read): Register new test.
10305
10306 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10307
10308 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10309 * riscv-tdep.h: Likewise.
10310 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10311 rv32-only CSR.
10312 * features/riscv/64bit-csr.xml: Regenerated.
10313
10314 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10315 Tom Tromey <tom@tromey.com>
10316
10317 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10318 of 'fputc_unfiltered'.
10319 (putchar_unfiltered): Call 'fputc_unfiltered'.
10320 (fputc_unfiltered): Call 'fputs_unfiltered'.
10321
10322 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10323
10324 * config.in: Regenerate.
10325 * configure: Regenerate.
10326 * configure.ac: Add --with-python-libdir option.
10327 * main.c: Use WITH_PYTHON_LIBDIR.
10328
10329 2020-02-19 Tom Tromey <tom@tromey.com>
10330
10331 * symtab.c (general_symbol_info::compute_and_set_names): Use
10332 obstack_strndup. Simplify call to symbol_set_demangled_name.
10333
10334 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * dwarf2/read.c (allocate_signatured_type_table,
10337 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10338 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10339 Remove objfile parameter, update all callers.
10340
10341 2020-02-19 Doug Evans <dje@google.com>
10342
10343 PR rust/25535
10344 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10345 rust_enum_variant calculation.
10346
10347 2020-02-19 Tom Tromey <tromey@adacore.com>
10348
10349 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10350
10351 2020-02-19 Tom Tromey <tromey@adacore.com>
10352
10353 * ada-lang.c (cache_symbol): Use obstack_strdup.
10354
10355 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * configure: Regenerate.
10358
10359 2020-02-19 Tom Tromey <tromey@adacore.com>
10360
10361 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10362 NULL check.
10363
10364 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10365
10366 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10367
10368 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10369
10370 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10371 if GDBSERVER is not defined.
10372 (riscv_tdesc_cache): Likewise, also store const target_desc.
10373 (STATIC_IN_GDB): Define.
10374 (riscv_create_target_description): Update declaration with
10375 STATIC_IN_GDB.
10376 (riscv_lookup_target_description): New function, only define if
10377 GDBSERVER is not defined.
10378 * arch/riscv.h (riscv_create_target_description): Declare only
10379 when GDBSERVER is defined.
10380 (riscv_lookup_target_description): New declaration when GDBSERVER
10381 is not defined.
10382 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10383 (riscv_linux_read_features): ...this, and return
10384 riscv_gdbarch_features instead of target_desc.
10385 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10386 (riscv_linux_read_description): Rename to...
10387 (riscv_linux_read_features): ...this.
10388 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10389 Update to use riscv_gdbarch_features and
10390 riscv_lookup_target_description.
10391 * riscv-tdep.c (riscv_find_default_target_description): Use
10392 riscv_lookup_target_description instead of
10393 riscv_create_target_description.
10394
10395 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * valprint.c (generic_val_print_enum_1): When printing a flag
10398 enum with value 0 and there is no enumerator with value 0, print
10399 just "0" instead of "(unknown: 0x0)".
10400
10401 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * valprint.c (generic_val_print_enum_1): Print unknown part of
10404 flag enum in hex.
10405
10406 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10409 flag enums to contain duplicate enumerators.
10410 * valprint.c (generic_val_print_enum_1): Update comment.
10411
10412 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10413
10414 * dwarf2/read.c: Include "count-one-bits.h".
10415 (update_enumeration_type_from_children): If an enumerator has
10416 multiple bits set, don't treat the enumeration as a "flag enum".
10417 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10418 of flag enums have 0 or 1 bit set.
10419
10420 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10421
10422 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10423 conversion.
10424 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10425 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10426 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10427 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10428 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10429
10430 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10431
10432 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10433
10434 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10435
10436 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10437 displaced_step_closure_up.
10438 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10439 (struct displaced_step_closure_up):
10440 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10441 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10442 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10443 Likewise.
10444 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10445 * gdbarch.c, gdbarch.h: Re-generate.
10446 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10447 displaced_step_closure_up.
10448 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10449 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10450 * infrun.h (displaced_step_closure_up): New type alias.
10451 (struct displaced_step_inferior_state) <step_closure>: Change
10452 type to displaced_step_closure_up.
10453 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10454 displaced_step_closure_up.
10455 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10456
10457 2020-02-14 Tom Tromey <tom@tromey.com>
10458
10459 * minidebug.c (gnu_debug_key): New global.
10460 (find_separate_debug_file_in_section): Use it.
10461
10462 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10463
10464 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10465 std::unique_ptr.
10466 * gdbarch.c: Re-generate.
10467 * gdbarch.h: Re-generate.
10468 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10469 change.
10470 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10471 type to std::unique_ptr.
10472 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10473 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10474 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10475 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10476 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10477 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10478 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10479 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10480 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10481
10482 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10485 std::unique_ptr.
10486 (displaced_step_clear): Rename to...
10487 (displaced_step_reset): ... this. Just call displaced->reset ().
10488 (displaced_step_clear_cleanup): Rename to...
10489 (displaced_step_reset_cleanup): ... this.
10490 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10491 (displaced_step_fixup): Likewise.
10492 (resume_1): Likewise.
10493 (handle_inferior_event): Restore child's memory before calling
10494 displaced_step_fixup on the parent.
10495 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10496 to std::unique_ptr.
10497 <step_closure>: Change type to std::unique_ptr.
10498
10499 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * arm-tdep.c: Include count-one-bits.h.
10502 (cleanup_block_store_pc): Use count_one_bits.
10503 (cleanup_block_load_pc): Use count_one_bits.
10504 (arm_copy_block_xfer): Use count_one_bits.
10505 (thumb2_copy_block_xfer): Use count_one_bits.
10506 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10507 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10508 (thumb_get_next_pcs_raw): Use count_one_bits.
10509 (arm_get_next_pcs_raw): Use count_one_bits_l.
10510 * arch/arm.c (bitcount): Remove.
10511 * arch/arm.h (bitcount): Remove.
10512
10513 2020-02-14 Tom Tromey <tromey@adacore.com>
10514
10515 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10516 Update.
10517 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10518 * dwarf2/loc.c (call_site_find_chain_1): Return
10519 unique_xmalloc_ptr.
10520 (call_site_find_chain): Likewise.
10521
10522 2020-02-14 Richard Biener <rguenther@suse.de>
10523
10524 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10525 on expression with division operators.
10526
10527 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10528
10529 * MAINTAINERS (Write After Approval): Adding myself.
10530
10531 2020-02-12 Tom Tromey <tom@tromey.com>
10532
10533 * event-loop.c (event_data, gdb_event, event_handler_func):
10534 Remove.
10535
10536 2020-02-12 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10539 (dwarf2_frame_objfile_data): Add comment.
10540 (find_comp_unit, set_comp_unit): New functions.
10541 (dwarf2_frame_find_fde): Use find_comp_unit.
10542 (dwarf2_build_frame_info): Use set_comp_unit.
10543
10544 2020-02-12 Tom Tromey <tom@tromey.com>
10545
10546 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10547 (comp_unit): Don't initialize objfile.
10548 (execute_cfa_program): Add text_offset parameter.
10549 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10550 (dwarf2_frame_cache): Update.
10551 (dwarf2_build_frame_info): Don't set "objfile" member.
10552
10553 2020-02-12 Tom Tromey <tom@tromey.com>
10554
10555 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10556 (decode_frame_entry): Likewise.
10557 (dwarf2_build_frame_info): Update.
10558
10559 2020-02-12 Tom Tromey <tom@tromey.com>
10560
10561 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10562 (decode_frame_entry_1): Use the comp_unit obstack.
10563
10564 2020-02-12 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/frame.c (struct comp_unit): Add initializers and
10567 constructor.
10568 (dwarf2_frame_objfile_data): Store a comp_unit.
10569 (dwarf2_frame_find_fde): Update.
10570 (dwarf2_build_frame_info): Use "new".
10571
10572 2020-02-12 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10575 (dwarf2_fde_table): Typedef for std::vector.
10576 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10577 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10578 (decode_frame_entry): Update.
10579 (dwarf2_build_frame_info): Use "new".
10580
10581 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10582
10583 * arm-tdep.c (arm_gdbarch_init): Update.
10584 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10585 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10586 have_neon, is_m>: Change to bool.
10587
10588 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10589
10590 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10591
10592 2020-02-12 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10595
10596 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10597
10598 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10599 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10600
10601 2020-02-11 Tom Tromey <tom@tromey.com>
10602
10603 * psymtab.h: Update comment.
10604
10605 2020-02-11 Tom Tromey <tom@tromey.com>
10606
10607 * gdb_obstack.h (struct auto_obstack): Use
10608 DISABLE_COPY_AND_ASSIGN.
10609
10610 2020-02-11 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/frame.h (struct objfile): Don't forward declare.
10613
10614 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10615
10616 * cris-tdep.c (cris_supply_gregset): Change signature to match
10617 what struct regset expects.
10618 (cris_regset): New struct.
10619 (fetch_core_registers): Remove.
10620 (cris_iterate_over_regset_sections): New function.
10621 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10622 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10623
10624 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10625
10626 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10627 registers.
10628
10629 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10630
10631 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10632
10633 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10634
10635 * configure: Re-generate.
10636
10637 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10638
10639 * configure: Re-generate.
10640
10641 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10642
10643 * acinclude: Update warning.m4 path.
10644 * warning.m4: Move to gdbsupport.
10645
10646 2020-02-11 Tom Tromey <tromey@adacore.com>
10647
10648 * remote.c (remote_console_output): Update.
10649 * printcmd.c (printf_command): Update.
10650 * event-loop.c (gdb_wait_for_event): Update.
10651 * linux-nat.c (sigchld_handler): Update.
10652 * remote-sim.c (gdb_os_write_stdout): Update.
10653 (gdb_os_flush_stdout): Update.
10654 (gdb_os_flush_stderr): Update.
10655 (gdb_os_write_stderr): Update.
10656 * exceptions.c (print_exception): Update.
10657 * remote-fileio.c (remote_fileio_func_read): Update.
10658 (remote_fileio_func_write): Update.
10659 * tui/tui.c (tui_enable): Update.
10660 * tui/tui-interp.c (tui_interp::init): Update.
10661 * utils.c (init_page_info): Update.
10662 (putchar_unfiltered, fputc_unfiltered): Update.
10663 (gdb_flush): Update.
10664 (emit_style_escape): Update.
10665 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10666 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10667 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10668 (stderr_file::write): Update.
10669 (stderr_file::puts): Update.
10670 * ui-file.h (ui_file_isatty, ui_file_write)
10671 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10672 (ui_file_puts): Don't declare.
10673
10674 2020-02-10 Tom de Vries <tdevries@suse.de>
10675
10676 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10677 sentinel to char *.
10678
10679 2020-02-09 Tom de Vries <tdevries@suse.de>
10680
10681 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10682 filename if it matches "<artificial>".
10683
10684 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10685
10686 * windows-tdep.c (struct enum_value_name): New struct.
10687 (create_enum): New function.
10688 (windows_get_siginfo_type): Create and use enum types.
10689
10690 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10691
10692 * NEWS: Mention $_siginfo support for Windows.
10693 * windows-nat.c (handle_exception): Set siginfo_er.
10694 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10695 (windows_xfer_siginfo): New function.
10696 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10697 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10698 (init_windows_gdbarch_data): New function.
10699 (get_windows_gdbarch_data): New function.
10700 (windows_get_siginfo_type): New function.
10701 (windows_init_abi): Register windows_get_siginfo_type.
10702 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10703
10704 2020-02-08 Tom Tromey <tom@tromey.com>
10705
10706 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10707 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10708 <keep>: Declare method.
10709 <m_keep>: Remove member.
10710 <~cutu_reader>: Remove.
10711 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10712 (cutu_reader::cutu_reader): Update.
10713 (cutu_reader::keep): Rename from ~cutu_reader.
10714 (process_psymtab_comp_unit, build_type_psymtabs_1)
10715 (process_skeletonless_type_unit, load_partial_comp_unit)
10716 (load_full_comp_unit, dwarf2_read_addr_index)
10717 (read_signatured_type): Update.
10718
10719 2020-02-08 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10722 "want_partial_unit" parameter.
10723 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10724 Inline check for DW_TAG_partial_unit.
10725 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10726
10727 2020-02-08 Tom Tromey <tom@tromey.com>
10728
10729 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10730 read.c.
10731 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10732 read.c.
10733
10734 2020-02-08 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/read.c (read_address): Move to comp-unit.c.
10737 (dwarf2_rnglists_process, dwarf2_ranges_process)
10738 (read_attribute_value, dwarf_decode_lines_1)
10739 (var_decode_location, decode_locdesc): Update.
10740 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10741 read.c. Remove "cu" parameter.
10742 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10743 method.
10744
10745 2020-02-08 Tom Tromey <tom@tromey.com>
10746
10747 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10748 (read_indirect_line_string): Update.
10749 * dwarf2/comp-unit.c (read_offset): Remove.
10750 (read_comp_unit_head): Update.
10751 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10752 method.
10753 (read_offset): Don't declare.
10754
10755 2020-02-08 Tom Tromey <tom@tromey.com>
10756
10757 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10758 * dwarf2/read.c (struct comp_unit_head): Move to
10759 dwarf2/comp-unit.h.
10760 (enum class rcuh_kind): Move to comp-unit.h.
10761 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10762 (read_comp_unit_head, error_check_comp_unit_head)
10763 (read_and_check_comp_unit_head): Move to comp-unit.c.
10764 (read_offset, dwarf_unit_type_name): Likewise.
10765 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10766 (cutu_reader::cutu_reader, read_call_site_scope)
10767 (find_partial_die, follow_die_offset): Update.
10768 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10769
10770 2020-02-08 Tom Tromey <tom@tromey.com>
10771
10772 * dwarf2/read.c (read_offset_1): Move to leb.c.
10773 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10774 (dwarf_decode_macro_bytes): Update.
10775 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10776 * dwarf2/leb.h (read_offset): Declare.
10777
10778 2020-02-08 Tom Tromey <tom@tromey.com>
10779
10780 * dwarf2/read.c (dwarf2_section_size): Remove.
10781 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10782 Update.
10783 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10784
10785 2020-02-08 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.c (read_initial_length): Move to leb.c.
10788 * dwarf2/leb.h (read_initial_length): Declare.
10789 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10790 handle_nonstd parameter.
10791 * dwarf2/frame.c (read_initial_length): Remove.
10792 (decode_frame_entry_1): Update.
10793
10794 2020-02-08 Tom Tromey <tom@tromey.com>
10795
10796 * dwarf2/loc.c (dwarf2_find_location_expression)
10797 (dwarf_evaluate_loc_desc::get_tls_address)
10798 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10799 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10800 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10801 (dwarf2_compile_property_to_c)
10802 (dwarf2_loc_desc_get_symbol_read_needs)
10803 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10804 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10805 (loclist_describe_location, loclist_tracepoint_var_ref)
10806 (loclist_generate_c_location): Update.
10807 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10808 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10809 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10810 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10811 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10812 (dwarf2_per_cu_data::addr_size)
10813 (dwarf2_per_cu_data::ref_addr_size)
10814 (dwarf2_per_cu_data::text_offset)
10815 (dwarf2_per_cu_data::addr_type): Now methods.
10816 (per_cu_header_read_in): Make per_cu "const".
10817 (dwarf2_version): Remove.
10818 (dwarf2_per_cu_data::int_type): Now a method.
10819 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10820 (set_die_type, read_array_type, read_subrange_index_type)
10821 (read_tag_string_type, read_subrange_type): Update.
10822 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10823 offset_size, ref_addr_size, text_offset, addr_type, version,
10824 objfile, int_type, addr_sized_int_type>: Declare methods.
10825
10826 2020-02-08 Tom Tromey <tom@tromey.com>
10827
10828 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10829 Move earlier.
10830
10831 2020-02-08 Tom Tromey <tom@tromey.com>
10832
10833 * dwarf2/read.h (dwarf_line_debug): Declare.
10834 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10835 * dwarf2/read.c: Move line_header code to new files.
10836 (dwarf_line_debug): No longer static.
10837 * dwarf2/line-header.c: New file.
10838 * dwarf2/line-header.h: New file.
10839
10840 2020-02-08 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/read.c (struct line_header) <file_full_name,
10843 file_file_name>: Return unique_xmalloc_ptr.
10844 (line_header::file_file_name): Update.
10845 (line_header::file_full_name): Update.
10846 (dw2_get_file_names_reader): Update.
10847 (macro_start_file): Update.
10848
10849 2020-02-08 Tom Tromey <tom@tromey.com>
10850
10851 * dwarf2/read.c (struct line_header) <file_full_name,
10852 file_file_name>: Declare methods.
10853 (dw2_get_file_names_reader): Update.
10854 (file_file_name): Now a method.
10855 (file_full_name): Likewise.
10856 (macro_start_file): Update.
10857
10858 2020-02-08 Tom Tromey <tom@tromey.com>
10859
10860 * dwarf2/read.c (dwarf_always_disassemble)
10861 (show_dwarf_always_disassemble): Move to loc.c.
10862 (_initialize_dwarf2_read): Move "always-disassemble" registration
10863 to loc.c.
10864 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10865 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10866 static.
10867 (show_dwarf_always_disassemble): Move from read.c.
10868 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10869
10870 2020-02-08 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10873 (create_quick_file_names_table): Return htab_up.
10874 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10875 Update.
10876 * dwarf2/read.h (struct dwarf2_per_objfile)
10877 <quick_file_names_table>: Now htab_up.
10878
10879 2020-02-08 Tom Tromey <tom@tromey.com>
10880
10881 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10882
10883 2020-02-08 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10886 Rewrite.
10887 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10888 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10889 (abbrev_table::abbrev_table): No longer inline.
10890 (ABBREV_HASH_SIZE): Remove.
10891 (abbrev_table::m_abbrevs): Now an htab_up.
10892
10893 2020-02-08 Tom Tromey <tom@tromey.com>
10894
10895 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10896 (cutu_reader): Update.
10897 (build_type_psymtabs_1): Update.
10898 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10899 (abbrev_table::alloc_abbrev): Update.
10900 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10901 (abbrev_table::read): New static method, renamed from
10902 abbrev_table_read_table.
10903 (abbrev_table::alloc_abbrev)
10904 (abbrev_table::add_abbrev): Now private.
10905 (abbrev_table::abbrev_table): Now private.
10906 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10907
10908 2020-02-08 Tom Tromey <tom@tromey.com>
10909
10910 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10911 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10912 htab_up.
10913
10914 2020-02-08 Tom Tromey <tom@tromey.com>
10915
10916 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10917 htab_up.
10918 (lookup_dwo_unit_in_dwp): Update.
10919 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10920 on obstack.
10921
10922 2020-02-08 Tom Tromey <tom@tromey.com>
10923
10924 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10925 obstack.
10926
10927 2020-02-08 Tom Tromey <tom@tromey.com>
10928
10929 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10930 line_header_hash.
10931 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10932 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10933 Change type to htab_up.
10934
10935 2020-02-08 Tom Tromey <tom@tromey.com>
10936
10937 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10938 htab_up. Don't allocate on obstack.
10939 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10940 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10941 Change type to htab_up.
10942
10943 2020-02-08 Tom Tromey <tom@tromey.com>
10944
10945 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10946 Change type to htab_up.
10947 * dwarf2/read.c (create_signatured_type_table_from_index)
10948 (create_signatured_type_table_from_debug_names)
10949 (create_all_type_units, add_type_unit)
10950 (lookup_dwo_signatured_type, lookup_signatured_type)
10951 (process_skeletonless_type_unit): Update.
10952 (create_debug_type_hash_table, create_debug_types_hash_table):
10953 Change type of types_htab.
10954 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10955 htab_up. Don't allocate on obstack.
10956 (create_cus_hash_table): Change type of cus_htab parameter.
10957 (struct dwo_file) <cus, tus>: Now htab_up.
10958 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10959 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10960 (queue_and_load_all_dwo_tus): Update.
10961 * dwarf2/index-write.c (write_gdbindex): Update.
10962 (write_debug_names): Update.
10963
10964 2020-02-08 Tom Tromey <tom@tromey.com>
10965
10966 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10967 dwarf2/read.c. Remove "next" member. Add constructor ntad
10968 destructor.
10969 (struct dwarf2_per_objfile) <queue>: New member.
10970 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10971 dwarf2/read.h.
10972 (dwarf2_queue, dwarf2_queue_tail): Remove.
10973 (class dwarf2_queue_guard): Add parameter to constructor. Use
10974 DISABLE_COPY_AND_ASSIGN.
10975 <m_per_objfile>: New member.
10976 <~dwarf2_queue_guard>: Rewrite.
10977 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10978 Update.
10979 (~dwarf2_queue_item): New.
10980
10981 2020-02-08 Tom Tromey <tom@tromey.com>
10982
10983 * dwarf2/read.c (struct die_info) <has_children>: New member.
10984 (dw2_get_file_names_reader): Remove has_children.
10985 (dw2_get_file_names): Update.
10986 (read_cutu_die_from_dwo): Remove has_children.
10987 (cutu_reader::init_tu_and_read_dwo_dies)
10988 (cutu_reader::cutu_reader): Update.
10989 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10990 Remove has_children.
10991 (build_type_psymtabs_1, process_skeletonless_type_unit)
10992 (load_partial_comp_unit, load_full_comp_unit): Update.
10993 (create_dwo_cu_reader): Remove has_children.
10994 (create_cus_hash_table, read_die_and_children): Update.
10995 (read_full_die_1,read_full_die): Remove has_children.
10996 (read_signatured_type): Update.
10997 (class cutu_reader) <has_children>: Remove.
10998
10999 2020-02-08 Tom Tromey <tom@tromey.com>
11000
11001 * dwarf2/expr.c: Rename from dwarf2expr.c.
11002 * dwarf2/expr.h: Rename from dwarf2expr.h.
11003 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11004 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11005 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11006 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11007 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11008 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11009 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11010 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11011 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11012 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11013 * dwarf2/loc.c: Rename from dwarf2loc.c.
11014 * dwarf2/loc.h: Rename from dwarf2loc.h.
11015 * dwarf2/read.c: Rename from dwarf2read.c.
11016 * dwarf2/read.h: Rename from dwarf2read.h.
11017 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11018 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11019 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11020 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11021 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11022 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11023 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11024 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11025 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11026 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11027 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11028 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11029 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11030 Update.
11031 * Makefile.in (COMMON_SFILES): Update.
11032 (HFILES_NO_SRCDIR): Update.
11033
11034 2020-02-08 Tom Tromey <tom@tromey.com>
11035
11036 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11037 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11038
11039 2020-02-08 Tom Tromey <tom@tromey.com>
11040
11041 * dwarf2read.h (struct die_info): Don't declare.
11042
11043 2020-02-08 Tom Tromey <tom@tromey.com>
11044
11045 * dwarf2read.h (die_info_ptr): Remove typedef.
11046
11047 2020-02-08 Tom Tromey <tom@tromey.com>
11048
11049 * dwarf2read.c (read_call_site_scope)
11050 (handle_data_member_location, dwarf2_add_member_fn)
11051 (mark_common_block_symbol_computed, read_common_block)
11052 (attr_to_dynamic_prop, partial_die_info::read)
11053 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11054 (dwarf2_symbol_mark_computed, set_die_type): Update.
11055 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11056 method.
11057 (attr_form_is_block): Don't declare.
11058 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11059
11060 2020-02-08 Tom Tromey <tom@tromey.com>
11061
11062 * dwarf2read.c (dwarf2_find_base_address, )
11063 (read_call_site_scope, rust_containing_type)
11064 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11065 (handle_data_member_location, dwarf2_add_member_fn)
11066 (get_alignment, read_structure_type, process_structure_scope)
11067 (mark_common_block_symbol_computed, read_common_block)
11068 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11069 (partial_die_info::read, read_attribute_value, new_symbol)
11070 (lookup_die_type, dwarf2_get_ref_die_offset)
11071 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11072 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11073 (dwarf2_symbol_mark_computed): Update.
11074 * dwarf2/attribute.h (struct attribute) <value_as_address,
11075 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11076 methods.
11077 (value_as_address, attr_form_is_section_offset)
11078 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11079 * dwarf2/attribute.c (attribute::value_as_address)
11080 (attribute::form_is_section_offset, attribute::form_is_constant)
11081 (attribute::form_is_ref): Now methods.
11082
11083 2020-02-08 Tom Tromey <tom@tromey.com>
11084
11085 * dwarf2read.c (struct attribute, DW_STRING)
11086 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11087 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11088 (attr_form_is_block, attr_form_is_section_offset)
11089 (attr_form_is_constant, attr_form_is_ref): Move.
11090 * dwarf2/attribute.h: New file.
11091 * dwarf2/attribute.c: New file, from dwarf2read.c.
11092 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11093
11094 2020-02-08 Tom Tromey <tom@tromey.com>
11095
11096 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11097 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11098 Move.
11099 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11100 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11101 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11102 abbrev.c.
11103 * dwarf2/abbrev.h: New file.
11104 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11105 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11106
11107 2020-02-08 Tom Tromey <tom@tromey.com>
11108
11109 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11110 (dwarf2_section_size, dwarf2_get_section_info)
11111 (create_signatured_type_table_from_debug_names)
11112 (create_addrmap_from_aranges, read_debug_names_from_section)
11113 (get_gdb_index_contents_from_section, read_comp_unit_head)
11114 (error_check_comp_unit_head, read_abbrev_offset)
11115 (create_debug_type_hash_table, init_cu_die_reader)
11116 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11117 (read_comp_units_from_section, create_cus_hash_table)
11118 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11119 (create_dwp_v2_section, dwarf2_rnglists_process)
11120 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11121 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11122 (read_indirect_string_from_dwz, read_addr_index_1)
11123 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11124 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11125 (fill_in_loclist_baton): Update.
11126 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11127 get_containing_section, get_bfd_owner, get_bfd_section,
11128 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11129 (dwarf2_read_section, get_section_name, get_section_file_name)
11130 (get_containing_section, get_section_bfd_owner)
11131 (get_section_bfd_section, get_section_name, get_section_file_name)
11132 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11133 declare.
11134 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11135 (dwarf2_section_info::get_bfd_owner)
11136 (dwarf2_section_info::get_bfd_section)
11137 (dwarf2_section_info::get_name)
11138 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11139 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11140 (dwarf2_section_info::read): Now methods.
11141 * dwarf-index-write.c (class debug_names): Update.
11142
11143 2020-02-08 Tom Tromey <tom@tromey.com>
11144
11145 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11146 Move to dwarf2/section.h.
11147 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11148 (get_section_bfd_section, get_section_name)
11149 (get_section_file_name, get_section_id, get_section_flags)
11150 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11151 dwarf2/section.c.
11152 * dwarf2/section.h: New file.
11153 * dwarf2/section.c: New file, from dwarf2read.c.
11154 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11155
11156 2020-02-08 Tom Tromey <tom@tromey.com>
11157
11158 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11159 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11160 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11161 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11162 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11163 * dwarf2/leb.h: New file, from dwarf2read.c.
11164 * dwarf2/leb.c: New file, from dwarf2read.c.
11165 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11166 Remove.
11167 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11168 (COMMON_SFILES): Add dwarf2/leb.c.
11169
11170 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11171
11172 GDB 9.1 released.
11173
11174 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11175
11176 PR gdb/25190:
11177 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11178 * gdb/remote.c (remote_console_output): Update.
11179 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11180 (ui_file_puts): ...this.
11181 * gdb/ui-file.h (ui_file_puts): Add declaration.
11182 * gdb/utils.c (emit_style_escape): Update.
11183 (flush_wrap_buffer): Update.
11184 (fputs_maybe_filtered): Update.
11185 (fputs_unfiltered): Add function.
11186
11187 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11188
11189 * gdb/event-loop.c (gdb_wait_for_event): Update.
11190 * gdb/printcmd.c (printf_command): Update.
11191 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11192 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11193 (gdb_os_flush_stderr): Update.
11194 * gdb/remote.c (remote_console_output): Update.
11195 * gdb/ui-file.c (gdb_flush): Rename to...
11196 (ui_file_flush): ...this.
11197 (stderr_file::write): Update.
11198 (stderr_file::puts): Update.
11199 * gdb/ui-file.h (gdb_flush): Rename to...
11200 (ui_file_flush): ...this.
11201 * gdb/utils.c (gdb_flush): Add function.
11202 * gdb/utils.h (gdb_flush): Add declaration.
11203
11204 2020-02-07 Tom Tromey <tromey@adacore.com>
11205
11206 PR breakpoints/24915:
11207 * source.c (find_and_open_source): Do not check basenames_may_differ.
11208
11209 2020-02-07 Tom Tromey <tom@tromey.com>
11210
11211 * README: Update gdbserver documentation.
11212 * gdbserver: Move to top level.
11213 * configure.tgt (build_gdbserver): Remove.
11214 * configure.ac: Remove --enable-gdbserver.
11215 * configure: Rebuild.
11216 * Makefile.in (distclean): Don't mention gdbserver.
11217
11218 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11219
11220 * source-cache.c (source_cache::ensure): Surround
11221 get_plain_source_lines with a try/catch.
11222 (source_cache::get_line_charpos): Get rid of try/catch
11223 and only check for the return value of "ensure".
11224 * tui/tui-source.c (tui_source_window::set_contents):
11225 Simplify "nlines" calculation.
11226
11227 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11228
11229 * MAINTAINERS (Write After Approval): Add myself.
11230
11231 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11232
11233 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11234 function call.
11235
11236 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11237
11238 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11239
11240 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11241
11242 * nat/riscv-linux-tdesc.h: New file.
11243 * nat/riscv-linux-tdesc.c: New file, taking code from...
11244 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11245 ... here.
11246 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11247 NATDEPFILES.
11248
11249 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11250
11251 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11252 we don't set the fake simulator ptid to the null_ptid.
11253
11254 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11255
11256 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11257 * gdbthread.h (class thread_info) <resumed>: Likewise.
11258 * infrun.c (resume_1): Likewise.
11259 (proceed): Likewise.
11260 (infrun_thread_stop_requested): Likewise.
11261 (stop_all_threads): Likewise.
11262 (handle_inferior_event): Likewise.
11263 (restart_threads): Likewise.
11264 (finish_step_over): Likewise.
11265 (keep_going_stepped_thread): Likewise.
11266 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11267 (linux_handle_extended_wait): Likewise.
11268 * record-btrace.c (get_thread_current_frame_id): Likewise.
11269 * record-full.c (record_full_wait_1): Likewise.
11270 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11271 * target.c (target_resume): Likewise.
11272 * thread.c (set_running_thread): Likewise.
11273
11274 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11275
11276 * f-valprint.c (f77_print_array_1): Changed datatype of index
11277 variable to LONGEST from int to enable it to contain bound
11278 values correctly.
11279
11280 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11281
11282 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11283 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11284 offsets according to FLEN determined.
11285 (riscv_linux_nat_target::read_description): Determine FLEN
11286 dynamically.
11287 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11288 according to FLEN determined.
11289 (riscv_linux_nat_target::store_registers): Likewise.
11290
11291 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11292
11293 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11294 when reg->group is empty and reggroup is not.
11295
11296 2020-01-31 Tom Tromey <tromey@adacore.com>
11297
11298 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11299 Call beneath target's mourn_inferior after unpushing.
11300
11301 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11302
11303 PR tui/9765
11304 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11305 have enough lines to fill the screen, still return the lowest
11306 address we found.
11307
11308 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11311 '-', '<', and '>' commands.
11312
11313 2020-01-29 Pedro Alves <palves@redhat.com>
11314 Sergio Durigan Junior <sergiodj@redhat.com>
11315
11316 * infcmd.c (construct_inferior_arguments): Assert that
11317 'argc' is greater than 0.
11318
11319 2020-01-29 Luis Machado <luis.machado@linaro.org>
11320
11321 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11322 (BRK_INSN_MASK): Define to 0xd4200000.
11323 (aarch64_program_breakpoint_here_p): New function.
11324 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11325 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11326 breakpoint.c.
11327 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11328 breakpoint.h
11329 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11330 call gdbarch_program_breakpoint_here_p.
11331 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11332 default_program_breakpoint_here_p, changed return type to bool and
11333 simplified.
11334 * breakpoint.h (program_breakpoint_here): Moved prototype to
11335 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11336 return type to bool.
11337 * gdbarch.c: Regenerate.
11338 * gdbarch.h: Regenerate.
11339 * gdbarch.sh (program_breakpoint_here_p): New method.
11340 * infrun.c (handle_signal_stop): Call
11341 gdbarch_program_breakpoint_here_p.
11342
11343 2020-01-26 Tom Tromey <tom@tromey.com>
11344
11345 * ctfread.c (struct ctf_fp_info): Reindent.
11346 (_initialize_ctfread): Remove.
11347
11348 2020-01-26 Tom Tromey <tom@tromey.com>
11349
11350 * psymtab.c (partial_map_expand_apply)
11351 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11352 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11353 (psym_print_stats, psym_expand_symtabs_for_function)
11354 (psym_map_symbol_filenames, psym_map_matching_symbols)
11355 (psym_expand_symtabs_matching)
11356 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11357 (maintenance_check_psymtabs): Use new methods.
11358 * psympriv.h (struct partial_symtab) <readin_p,
11359 get_compunit_symtab>: New methods.
11360 <readin, compunit_symtab>: Remove members.
11361 (struct standard_psymtab): New.
11362 (struct legacy_psymtab): Derive from standard_psymtab.
11363 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11364 standard_psymtab.
11365 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11366
11367 2020-01-26 Tom Tromey <tom@tromey.com>
11368
11369 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11370 read_dependencies. Add assert.
11371 * psymtab.c (partial_symtab::read_dependencies): New method.
11372 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11373 method.
11374 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11375 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11376 read_dependencies.
11377 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11378 Add assert.
11379
11380 2020-01-26 Tom Tromey <tom@tromey.com>
11381
11382 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11383 Call expand_psymtab.
11384 (xcoff_read_symtab): Call expand_psymtab.
11385 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11386 legacy_expand_psymtab.
11387 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11388 method.
11389 (struct legacy_psymtab) <expand_psymtab>: Implement.
11390 <legacy_expand_psymtab>: New member.
11391 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11392 (parse_partial_symbols): Set legacy_expand_psymtab.
11393 (psymtab_to_symtab_1): Change argument order. Call
11394 expand_psymtab.
11395 (new_psymtab): Set legacy_expand_psymtab.
11396 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11397 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11398 expand_psymtab.
11399 (dwarf2_psymtab::expand_psymtab): Rename from
11400 psymtab_to_symtab_1. Call expand_psymtab.
11401 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11402 (dbx_end_psymtab): Likewise.
11403 (dbx_psymtab_to_symtab_1): Change argument order. Call
11404 expand_psymtab.
11405 (dbx_read_symtab): Call expand_psymtab.
11406 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11407 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11408 (ctf_psymtab::read_symtab): Call expand_psymtab.
11409
11410 2020-01-26 Tom Tromey <tom@tromey.com>
11411
11412 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11413 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11414 messages.
11415 * mdebugread.c (mdebug_read_symtab): Remove prints.
11416 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11417 assert.
11418 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11419
11420 2020-01-26 Tom Tromey <tom@tromey.com>
11421
11422 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11423 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11424 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11425 legacy_symtab.
11426 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11427 * psymtab.c (psymtab_to_symtab): Call method.
11428 (dump_psymtab): Update.
11429 * psympriv.h (struct partial_symtab): Add virtual destructor.
11430 <read_symtab>: New method.
11431 (struct legacy_symtab): New.
11432 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11433 (struct pst_map) <pst>: Now a legacy_psymtab.
11434 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11435 (new_psymtab): Use legacy_psymtab.
11436 * dwarf2read.h (struct dwarf2_psymtab): New.
11437 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11438 * dwarf2read.c (dwarf2_create_include_psymtab)
11439 (dwarf2_build_include_psymtabs, create_type_unit_group)
11440 (create_partial_symtab, process_psymtab_comp_unit_reader)
11441 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11442 (set_partial_user): Use dwarf2_psymtab.
11443 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11444 (psymtab_to_symtab_1, process_full_comp_unit)
11445 (process_full_type_unit, dwarf2_ranges_read)
11446 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11447 (dwarf_decode_lines): Use dwarf2_psymtab.
11448 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11449 (add_address_entry_worker, write_one_signatured_type)
11450 (recursively_count_psymbols, recursively_write_psymbols)
11451 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11452 (write_debug_names): Likewise.
11453 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11454 <pst>: Now a legacy_psymtab.
11455 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11456 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11457 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11458 * ctfread.c (struct ctf_psymtab): New.
11459 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11460 ctf_psymtab.
11461 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11462 (create_partial_symtab): Return a ctf_psymtab.
11463 (scan_partial_symbols): Update.
11464
11465 2020-01-26 Tom Tromey <tom@tromey.com>
11466
11467 * xcoffread.c (xcoff_start_psymtab): Use new.
11468 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11469 renamed from start_psymtab_common.
11470 * psympriv.h (struct partial_symtab): Add new constructor.
11471 (start_psymtab_common): Don't declare.
11472 * mdebugread.c (parse_partial_symbols): Use new.
11473 * dwarf2read.c (create_partial_symtab): Use new.
11474 * dbxread.c (start_psymtab): Use new.
11475 * ctfread.c (create_partial_symtab): Use new.
11476
11477 2020-01-26 Tom Tromey <tom@tromey.com>
11478
11479 * xcoffread.c (xcoff_end_psymtab): Use new.
11480 * psymtab.c (start_psymtab_common): Use new.
11481 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11482 Update.
11483 * psympriv.h (struct partial_symtab): Add parameters to
11484 constructor. Don't inline.
11485 (allocate_psymtab): Don't declare.
11486 * mdebugread.c (new_psymtab): Use new.
11487 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11488 * dbxread.c (dbx_end_psymtab): Use new.
11489
11490 2020-01-26 Tom Tromey <tom@tromey.com>
11491
11492 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11493 allocate_psymtab. Update documentation.
11494 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11495 allocate_psymtab. Do not use new.
11496 (allocate_psymtab): Use new. Update.
11497
11498 2020-01-26 Tom Tromey <tom@tromey.com>
11499
11500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11501 * psymtab.c (psym_print_stats): Update.
11502 * psympriv.h (struct partial_symtab) <readin,
11503 psymtabs_addrmap_supported, anonymous>: Now bool.
11504 * mdebugread.c (psymtab_to_symtab_1): Update.
11505 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11506 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11507 (process_full_comp_unit, process_full_type_unit): Update.
11508 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11509 * ctfread.c (psymtab_to_symtab): Update.
11510
11511 2020-01-26 Tom Tromey <tom@tromey.com>
11512
11513 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11514 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11515 * psymtab.c (psymtab_storage): Delete psymtabs.
11516 (psymtab_storage::allocate_psymtab): Use new.
11517 (psymtab_storage::discard_psymtab): Use delete.
11518 * psympriv.h (struct partial_symtab): Add constructor and
11519 initializers.
11520
11521 2020-01-26 Tom Tromey <tom@tromey.com>
11522
11523 * machoread.c: Do not include psympriv.h.
11524
11525 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11526
11527 * NEWS: Mention the new option and the set/show commands.
11528
11529 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11530
11531 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11532 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11533 (validate_exec_file): New variables, enums, functions.
11534 (exec_file_locate_attach, print_section_info): Style the filenames.
11535 (_initialize_exec): Install show_exec_file_mismatch_command and
11536 set_exec_file_mismatch_command.
11537 * gdbcore.h (validate_exec_file): Declare.
11538 * infcmd.c (attach_command): Call validate_exec_file.
11539 * remote.c ( remote_target::remote_add_inferior): Likewise.
11540
11541 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11542
11543 * frame.c (find_frame_sal): Move call to get_next_frame into more
11544 inner scope.
11545 * inline-frame.c (inilne_state) <inline_state>: Update argument
11546 types.
11547 (inilne_state) <skipped_symbol>: Rename to...
11548 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11549 (skip_inline_frames): Build vector of skipped symbols and use this
11550 to reate the inline_state.
11551 (inline_skipped_symbol): Add a comment and some assertions, fetch
11552 skipped symbol from the list.
11553
11554 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11555
11556 * buildsym.c (lte_is_less_than): Delete.
11557 (buildsym_compunit::end_symtab_with_blockvector): Create local
11558 lambda function to sort line table entries, and use
11559 std::stable_sort instead of std::sort.
11560 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11561 markers when looking for a previous line.
11562
11563 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11564
11565 * dwarf2read.c (lnp_state_machine::record_line): Include
11566 end_sequence parameter in debug print out. Record the line if we
11567 are at an end_sequence marker even if it's not the start of a
11568 statement.
11569 * symmisc.c (maintenance_print_one_line_table): Print end of
11570 sequence markers with 'END' not '0'.
11571
11572 2020-01-24 Pedro Alves <palves@redhat.com>
11573
11574 PR gdb/25410
11575 * thread.c (scoped_restore_current_thread::restore): Use
11576 switch_to_inferior_no_thread.
11577 * exec.c: Include "progspace-and-thread.h".
11578 (add_target_sections, remove_target_sections):
11579 scoped_restore_current_pspace_and_thread instead of
11580 scoped_restore_current_thread.
11581 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11582 and aspace to the inferior before calling clone_program_space.
11583 Remove stale comment.
11584
11585 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11586
11587 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11588 (arm_netbsd_nat_target::fetch_registers): ...this.
11589 (arm_nbsd_nat_target::store_registers): Rename to...
11590 (arm_netbsd_nat_target::store_registers): ...this.
11591
11592 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11593
11594 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11595 register_t.
11596
11597 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11598
11599 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11600 Update comment.
11601 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11602 Likewise.
11603 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11604 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11605 the correct replacement (iterate_over_regset_sections).
11606 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11607 Update comment.
11608
11609 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11610
11611 PR gdb/23718
11612 * gdb/python/python.c (execute_gdb_command): Call
11613 async_enable_stdin in catch block.
11614
11615 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11616
11617 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11618 SWITCH_THRU_ALL_UIS.
11619
11620 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11621
11622 PR tui/9765
11623 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11624 comment, add extra parameter, and update to store previous symbol
11625 when appropriate.
11626 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11627 add extra parameter.
11628 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11629 remove unneeded parameter, add try/catch around gdb_print_insn,
11630 rewrite to add items to asm_lines vector.
11631 (tui_find_backward_disassembly_start_address): New function.
11632 (tui_find_disassembly_address): Updated throughout.
11633 (tui_disasm_window::set_contents): Update for changes to
11634 tui_disassemble.
11635 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11636 number of lines to scroll.
11637
11638 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11639
11640 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11641 (SECT_OFF_DATA): Likewise.
11642 (SECT_OFF_RODATA): Likewise.
11643 (SECT_OFF_TEXT): Likewise.
11644 (SECT_OFF_BSS): Likewise.
11645 (struct objfile) <text_section_offset, data_section_offset>: New
11646 methods.
11647 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11648 objfile::text_section_offset.
11649 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11650 * coffread.c (coff_symtab_read): Likewise.
11651 (enter_linenos): Likewise.
11652 (process_coff_symbol): Likewise.
11653 * ctfread.c (get_objfile_text_range): Likewise.
11654 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11655 Use objfile::data_section_offset.
11656 * dwarf2-frame.c (execute_cfa_program): Use
11657 objfile::text_section_offset.
11658 (dwarf2_frame_find_fde): Likewise.
11659 * dwarf2read.c (create_addrmap_from_index): Likewise.
11660 (create_addrmap_from_aranges): Likewise.
11661 (dw2_find_pc_sect_compunit_symtab): Likewise.
11662 (process_psymtab_comp_unit_reader): Likewise.
11663 (add_partial_symbol): Likewise.
11664 (add_partial_subprogram): Likewise.
11665 (process_full_comp_unit): Likewise.
11666 (read_file_scope): Likewise.
11667 (read_func_scope): Likewise.
11668 (read_lexical_block_scope): Likewise.
11669 (read_call_site_scope): Likewise.
11670 (dwarf2_rnglists_process): Likewise.
11671 (dwarf2_ranges_process): Likewise.
11672 (dwarf2_ranges_read): Likewise.
11673 (dwarf_decode_lines_1): Likewise.
11674 (new_symbol): Likewise.
11675 (dwarf2_fetch_die_loc_sect_off): Likewise.
11676 (dwarf2_per_cu_text_offset): Likewise.
11677 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11678 * hppa-tdep.c (read_unwind_info): Likewise.
11679 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11680 * psympriv.h (struct partial_symtab): Likewise.
11681 * psymtab.c (find_pc_sect_psymtab): Likewise.
11682 * solib-svr4.c (enable_break): Likewise.
11683 * stap-probe.c (relocate_address): Use
11684 objfile::data_section_offset.
11685 * xcoffread.c (enter_line_range): Use
11686 objfile::text_section_offset.
11687 (read_xcoff_symtab): Likewise.
11688
11689 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11690
11691 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11692 declaration to narrower scopes.
11693
11694 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11695
11696 * darwin-nat.h (struct darwin_exception_msg, enum
11697 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11698 Move up.
11699 (class darwin_nat_target) <wait_1, check_new_threads,
11700 decode_exception_message, decode_message, stop_inferior,
11701 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11702 * darwin-nat.c (darwin_check_new_threads): Rename to...
11703 (darwin_nat_target::check_new_threads): ... this.
11704 (darwin_suspend_inferior_it): Remove.
11705 (darwin_decode_exception_message): Rename to...
11706 (darwin_nat_target::decode_exception_message): ... this.
11707 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11708 (darwin_decode_message): Rename to...
11709 (darwin_nat_target::decode_message): ... this.
11710 (cancel_breakpoint): Rename to...
11711 (darwin_nat_target::cancel_breakpoint): ... this.
11712 (darwin_wait): Rename to...
11713 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11714 instead of iterate_over_inferiors.
11715 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11716 (darwin_stop_inferior): Rename to...
11717 (darwin_nat_target::stop_inferior): ... this.
11718 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11719 (darwin_init_thread_list): Rename to...
11720 (darwin_nat_target::init_thread_list): ... this.
11721 (darwin_ptrace_him): Rename to...
11722 (darwin_nat_target::ptrace_him): ... this.
11723 (darwin_nat_target::create_inferior): Pass lambda function to
11724 fork_inferior.
11725 (darwin_nat_target::detach): Call stop_inferior instead of
11726 darwin_stop_inferior.
11727 * fork-inferior.h (fork_inferior): Change init_trace_fun
11728 parameter to gdb::function_view.
11729 * fork-inferior.c (fork_inferior): Likewise.
11730
11731 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11732
11733 * i386-cygwin-tdep.c (core_process_module_section): Update.
11734 * windows-nat.c (struct lm_info_windows): Add text_offset.
11735 (windows_xfer_shared_libraries): Update.
11736 * windows-tdep.c (windows_xfer_shared_library):
11737 Add text_offset_cached argument.
11738 * windows-tdep.h (windows_xfer_shared_library): Update.
11739
11740 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11741
11742 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11743
11744 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11745
11746 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11747 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11748 replace with range-based for.
11749 (gdbsim_interrupt_inferior): Remove.
11750 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11751 with a range-based for. Inline code from
11752 gdbsim_interrupt_inferior.
11753
11754 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11755
11756 * infrun.c (proceed): Fix indentation.
11757
11758 2020-01-21 Tom Tromey <tromey@adacore.com>
11759
11760 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11761 * python/python.c (python_extension_ops): Update.
11762 (gdbpy_colorize): New function.
11763 * python/lib/gdb/__init__.py (colorize): New function.
11764 * extension.h (ext_lang_colorize): Declare.
11765 * extension.c (ext_lang_colorize): New function.
11766 * extension-priv.h (struct extension_language_ops) <colorize>: New
11767 member.
11768 * cli/cli-style.c (_initialize_cli_style): Update help text.
11769
11770 2020-01-21 Luis Machado <luis.machado@linaro.org>
11771
11772 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11773 <cond>: Change type to bool.
11774 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11775 (aarch64_displaced_step_cb): Likewise.
11776 (aarch64_displaced_step_tb): Likewise.
11777
11778 2020-01-21 Luis Machado <luis.machado@linaro.org>
11779
11780 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11781 output.
11782
11783 2020-01-21 Luis Machado <luis.machado@linaro.org>
11784
11785 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11786 <pc_adjust>: Adjust the documentation.
11787 (aarch64_displaced_step_fixup): Check if PC really moved before
11788 adjusting it.
11789
11790 2020-01-19 Tom Tromey <tom@tromey.com>
11791
11792 * disasm.c (~gdb_disassembler): New destructor.
11793 (gdb_buffered_insn_length): Call disassemble_free_target.
11794 * disasm.h (class gdb_disassembler): Declare destructor. Use
11795 DISABLE_COPY_AND_ASSIGN.
11796
11797 2020-01-19 Tom Tromey <tom@tromey.com>
11798
11799 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11800 (die_reader_func_ftype): Remove.
11801 (cutu_reader): New class.
11802 (dw2_get_file_names_reader): Remove "data" parameter.
11803 (dw2_get_file_names): Use cutu_reader.
11804 (create_debug_type_hash_table): Update.
11805 (read_cutu_die_from_dwo): Update comment.
11806 (lookup_dwo_unit): Add dwo_name parameter.
11807 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11808 die_reader_func_ftype and data parameters.
11809 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11810 Remove die_reader_func_ftype and data parameters.
11811 (~cutu_reader): New; from init_cutu_and_read_dies.
11812 (cutu_reader::cutu_reader): Rename from
11813 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11814 and data parameters.
11815 (init_cutu_and_read_dies_simple): Remove.
11816 (struct process_psymtab_comp_unit_data): Remove.
11817 (process_psymtab_comp_unit_reader): Remove data parameter; add
11818 want_partial_unit and pretend_language parameters.
11819 (process_psymtab_comp_unit): Use cutu_reader.
11820 (build_type_psymtabs_reader): Remove data parameter.
11821 (build_type_psymtabs_1): Use cutu_reader.
11822 (process_skeletonless_type_unit): Likewise.
11823 (load_partial_comp_unit_reader): Remove.
11824 (load_partial_comp_unit): Use cutu_reader.
11825 (load_full_comp_unit_reader): Remove.
11826 (load_full_comp_unit): Use cutu_reader.
11827 (struct create_dwo_cu_data): Remove.
11828 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11829 dwo_unit parameters.
11830 (create_cus_hash_table): Use cutu_reader.
11831 (struct dwarf2_read_addr_index_data): Remove.
11832 (dwarf2_read_addr_index_reader): Remove.
11833 (dwarf2_read_addr_index): Use cutu_reader.
11834 (read_signatured_type_reader): Remove.
11835 (read_signatured_type): Use cutu_reader.
11836
11837 2020-01-19 Tom Tromey <tom@tromey.com>
11838
11839 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11840 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11841 (tui_wrefresh): Declare.
11842 * tui/tui-wingeneral.c (suppress_output): New global.
11843 (tui_suppress_output, ~tui_suppress_output): New constructor and
11844 destructor.
11845 (tui_wrefresh): New function.
11846 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11847 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11848 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11849 method.
11850 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11851 tui_wrefresh.
11852 (tui_data_window::no_refresh): New method.
11853 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11854 (tui_reg_command): Use tui_suppress_output
11855 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11856 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11857 method.
11858 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11859
11860 2020-01-19 Tom Tromey <tom@tromey.com>
11861
11862 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11863 Handle case where symtab is null.
11864
11865 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11866
11867 * linux-fork.c (one_fork_p): Simplify.
11868
11869 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11870
11871 * top.c (struct qt_args): Remove.
11872 (kill_or_detach): Change return type to void, replace `void *`
11873 parameter with a proper one.
11874 (print_inferior_quit_action): Likewise.
11875 (quit_confirm): Use range-based for loop to iterate over inferiors.
11876 (quit_force): Likewise.
11877
11878 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11879
11880 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11881 `void *` parameter with proper parameters.
11882 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11883 (print_one_inferior): Change return type to void, replace `void *`
11884 parameter with proper parameters.
11885 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11886 inferiors.
11887 (get_other_inferior): Remove.
11888 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11889 inferiors.
11890
11891 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11892
11893 * mi/mi-interp.c (report_initial_inferior): Remove.
11894 (mi_interp::init): Use range-based for to iterate over inferiors.
11895
11896 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11897
11898 * python/py-inferior.c (build_inferior_list): Remove.
11899 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11900
11901 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11902
11903 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11904 (btrace_stitch_trace): Likewise.
11905 * charset.c (intermediate_encoding): Likewise (vaild).
11906 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11907 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11908 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11909
11910 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11911
11912 * windows-tdep.c (windows_get_tlb_type):
11913 Add rtl_user_process_parameters type.
11914
11915 2020-01-16 Pedro Alves <palves@redhat.com>
11916 Norbert Lange <nolange79@gmail.com>
11917
11918 PR build/24805
11919 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11920 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11921 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11922 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11923 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11924 (ps_plog): Redeclare exported functions with default visibility.
11925
11926 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11927
11928 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11929 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11930
11931 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11932
11933 * infcmd.c (post_create_inferior): Use get_thread_regcache
11934 instead of get_current_regcache.
11935
11936 2020-01-14 Tom Tromey <tom@tromey.com>
11937
11938 PR symtab/12535:
11939 * python/python.c (gdbpy_decode_line): Treat empty string the same
11940 as no argument.
11941
11942 2020-01-14 Tom Tromey <tom@tromey.com>
11943
11944 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11945
11946 2020-01-14 Tom Tromey <tom@tromey.com>
11947
11948 * nat/linux-btrace.c: Don't include <config.h>.
11949 * nat/linux-ptrace.c: Don't include <config.h>.
11950 * nat/x86-linux-dregs.c: Don't include <config.h>.
11951
11952 2020-01-14 Tom Tromey <tom@tromey.com>
11953
11954 * configure: Rebuild.
11955 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11956
11957 2020-01-14 Tom Tromey <tom@tromey.com>
11958
11959 * nat/x86-linux-dregs.c: Include configh.h.
11960 * nat/linux-ptrace.c: Include configh.h.
11961 * nat/linux-btrace.c: Include configh.h.
11962 * defs.h: Include config.h, bfd.h.
11963 * configure.ac: Don't source common.host.
11964 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11965 * configure: Rebuild.
11966 * acinclude.m4: Update path.
11967 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11968 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11969 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11970 (CLIBS): Add LIBSUPPORT.
11971 (CDEPS): Likewise.
11972 (COMMON_SFILES): Remove gdbsupport files.
11973 (HFILES_NO_SRCDIR): Likewise.
11974 (stamp-version): Update path to create-version.sh.
11975 (ALLDEPFILES): Remove gdbsupport files.
11976
11977 2020-01-14 Tom Tromey <tom@tromey.com>
11978
11979 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11980 USE_WIN32API when needed.
11981 * configure.ac (USE_WIN32API): Don't define.
11982 (WIN32LIBS): Use WIN32APILIBS.
11983 * configure: Rebuild.
11984
11985 2020-01-14 Tom Tromey <tom@tromey.com>
11986
11987 * configure: Rebuild.
11988 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11989
11990 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11991
11992 * skip.c (skip_function_command): Make skip w/o arguments use the
11993 name of the inlined function if pc is inside any inlined function.
11994
11995 2020-01-14 Luis Machado <luis.machado@linaro.org>
11996
11997 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11998 * infrun.c (resume_1): Likewise.
11999 (handle_inferior_event): Remove stale comment.
12000 * linux-nat.c (linux_nat_target::resume): Update comments.
12001 (save_stop_reason): Likewise.
12002 (linux_nat_filter_event): Likewise.
12003 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12004
12005 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12006
12007 * elfread.c (record_minimal_symbol): Set section index to 0 for
12008 non-allocatable sections.
12009
12010
12011 2020-01-13 Ali Tamur <tamur@google.com>
12012
12013 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12014 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12015 to gdb::optional. Update comments.
12016 (dwo_file): Update comments.
12017 (read_attribute): Update API to take an additional out parameter,
12018 need_reprocess. This is used to mark attributes that need other
12019 attributes (e.g. str_offsets_base) for correct computation which may not
12020 have been read yet.
12021 (read_attribute_reprocess): New function declaration.
12022 (read_addr_index): Likewise.
12023 (read_dwo_str_index): Likewise.
12024 (read_stub_str_index): Likewise.
12025 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12026 (lookup_addr_base): New function definition.
12027 (lookup_ranges_base): Likewise.
12028 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12029 lookup_ranges_base.
12030 (init_cutu_and_read_dies): Update comments.
12031 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12032 unit. This is used to inherit parent's str_offsets_base and addr_base.
12033 Update comments.
12034 (init_cutu_and_read_dies_simple): Reflect API changes.
12035 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12036 (create_cus_hash_table): Change API to take parent compile unit.
12037 Reflect API changes.
12038 (open_and_init_dwo_file): Reflect API changes.
12039 (dwarf2_get_pc_bounds): Update comments.
12040 (dwarf2_record_block_ranges): Likewise.
12041 (read_full_die_1): Change implementation to reprocess attributes that
12042 need str_offsets_base and addr_base.
12043 (partial_die_info::read): Likewise.
12044 (read_attribute_reprocess): New function definition.
12045 (read_attribute_value): Change API to take an additional out parameter,
12046 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12047 when a non-dwo compile unit has index based attributes.
12048 (read_attribute): Reflect API changes.
12049 (read_addr_index_1): Reflect API changes. Update comments.
12050 (dwarf2_read_addr_index_data): Reflect API changes.
12051 (dwarf2_read_addr_index): Likewise.
12052 (read_str_index): Change API and implementation. This becomes a helper
12053 to be used by the new string index related methods. Update error
12054 message and comments.
12055 (read_dwo_str_index): New function definition.
12056 (read_stub_str_index): Likewise.
12057 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12058 * symfile.h (dwarf2_debug_sections): Likewise.
12059 * xcoffread.c (dwarf2_debug_sections): Likewise.
12060
12061 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12062
12063 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12064 core_reg_sect type to gdb_byte *.
12065 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12066 * cris-tdep.c (fetch_core_registers): Likewise.
12067 * corelow.c (core_target::get_core_register_section): Change
12068 type of `contents` to gdb::byte_vector.
12069
12070 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12071
12072 * tui/tui-wingeneral.c (box_win): Position the title in the center
12073 of the border.
12074
12075 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12076
12077 * corelow.c (core_target::get_core_register_section): Use
12078 std::vector instead of alloca.
12079
12080 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12081
12082 * warning.m4: Add -Wmissing-declarations to build_warnings.
12083 * configure: Re-generate.
12084
12085 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12086
12087 * python/python.c (init__gdb_module): Add declaration.
12088
12089 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12090
12091 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12092 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12093 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12094 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12095 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12096 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12097 * ada-exp.y (_initialize_ada_exp): Add declaration.
12098 * ada-lang.c (_initialize_ada_language): Add declaration.
12099 * ada-tasks.c (_initialize_tasks): Add declaration.
12100 * agent.c (_initialize_agent): Add declaration.
12101 * aix-thread.c (_initialize_aix_thread): Add declaration.
12102 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12103 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12104 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12105 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12106 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12107 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12108 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12109 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12110 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12111 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12112 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12113 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12114 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12115 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12116 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12117 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12118 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12119 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12120 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12121 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12122 * annotate.c (_initialize_annotate): Add declaration.
12123 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12124 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12125 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12126 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12127 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12128 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12129 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12130 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12131 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12132 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12133 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12134 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12135 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12136 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12137 * auto-load.c (_initialize_auto_load): Add declaration.
12138 * auxv.c (_initialize_auxv): Add declaration.
12139 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12140 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12141 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12142 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12143 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12144 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12145 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12146 * breakpoint.c (_initialize_breakpoint): Add declaration.
12147 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12148 * btrace.c (_initialize_btrace): Add declaration.
12149 * charset.c (_initialize_charset): Add declaration.
12150 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12151 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12152 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12153 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12154 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12155 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12156 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12157 * coffread.c (_initialize_coffread): Add declaration.
12158 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12159 * compile/compile.c (_initialize_compile): Add declaration.
12160 * complaints.c (_initialize_complaints): Add declaration.
12161 * completer.c (_initialize_completer): Add declaration.
12162 * copying.c (_initialize_copying): Add declaration.
12163 * corefile.c (_initialize_core): Add declaration.
12164 * corelow.c (_initialize_corelow): Add declaration.
12165 * cp-abi.c (_initialize_cp_abi): Add declaration.
12166 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12167 * cp-support.c (_initialize_cp_support): Add declaration.
12168 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12169 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12170 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12171 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12172 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12173 * ctfread.c (_initialize_ctfread): Add declaration.
12174 * d-lang.c (_initialize_d_language): Add declaration.
12175 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12176 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12177 * dbxread.c (_initialize_dbxread): Add declaration.
12178 * dcache.c (_initialize_dcache): Add declaration.
12179 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12180 * disasm.c (_initialize_disasm): Add declaration.
12181 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12182 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12183 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12184 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12185 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12186 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12187 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12188 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12189 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12190 * elfread.c (_initialize_elfread): Add declaration.
12191 * exec.c (_initialize_exec): Add declaration.
12192 * extension.c (_initialize_extension): Add declaration.
12193 * f-lang.c (_initialize_f_language): Add declaration.
12194 * f-valprint.c (_initialize_f_valprint): Add declaration.
12195 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12196 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12197 * filesystem.c (_initialize_filesystem): Add declaration.
12198 * findcmd.c (_initialize_mem_search): Add declaration.
12199 * findvar.c (_initialize_findvar): Add declaration.
12200 * fork-child.c (_initialize_fork_child): Add declaration.
12201 * frame-base.c (_initialize_frame_base): Add declaration.
12202 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12203 * frame.c (_initialize_frame): Add declaration.
12204 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12205 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12206 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12207 * gcore.c (_initialize_gcore): Add declaration.
12208 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12209 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12210 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12211 * gdbarch.c (_initialize_gdbarch): Add declaration.
12212 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12213 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12214 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12215 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12216 * go-lang.c (_initialize_go_language): Add declaration.
12217 * go32-nat.c (_initialize_go32_nat): Add declaration.
12218 * guile/guile.c (_initialize_guile): Add declaration.
12219 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12220 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12221 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12222 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12223 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12224 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12225 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12226 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12227 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12228 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12229 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12230 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12231 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12232 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12233 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12234 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12235 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12236 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12237 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12238 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12239 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12240 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12241 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12242 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12243 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12244 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12245 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12246 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12247 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12248 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12249 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12250 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12251 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12252 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12253 * infcall.c (_initialize_infcall): Add declaration.
12254 * infcmd.c (_initialize_infcmd): Add declaration.
12255 * inflow.c (_initialize_inflow): Add declaration.
12256 * infrun.c (_initialize_infrun): Add declaration.
12257 * interps.c (_initialize_interpreter): Add declaration.
12258 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12259 * jit.c (_initialize_jit): Add declaration.
12260 * language.c (_initialize_language): Add declaration.
12261 * linux-fork.c (_initialize_linux_fork): Add declaration.
12262 * linux-nat.c (_initialize_linux_nat): Add declaration.
12263 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12264 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12265 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12266 * m2-lang.c (_initialize_m2_language): Add declaration.
12267 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12268 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12269 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12270 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12271 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12272 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12273 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12274 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12275 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12276 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12277 * machoread.c (_initialize_machoread): Add declaration.
12278 * macrocmd.c (_initialize_macrocmd): Add declaration.
12279 * macroscope.c (_initialize_macroscope): Add declaration.
12280 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12281 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12282 * maint.c (_initialize_maint_cmds): Add declaration.
12283 * mdebugread.c (_initialize_mdebugread): Add declaration.
12284 * memattr.c (_initialize_mem): Add declaration.
12285 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12286 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12287 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12288 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12289 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12290 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12291 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12292 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12293 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12294 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12295 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12296 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12297 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12298 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12299 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12300 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12301 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12302 * mipsread.c (_initialize_mipsread): Add declaration.
12303 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12304 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12305 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12306 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12307 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12308 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12309 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12310 * nto-procfs.c (_initialize_procfs): Add declaration.
12311 * objc-lang.c (_initialize_objc_language): Add declaration.
12312 * observable.c (_initialize_observer): Add declaration.
12313 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12314 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12315 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12316 * osabi.c (_initialize_gdb_osabi): Add declaration.
12317 * osdata.c (_initialize_osdata): Add declaration.
12318 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12319 * parse.c (_initialize_parse): Add declaration.
12320 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12321 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12322 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12323 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12324 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12325 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12326 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12327 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12328 * printcmd.c (_initialize_printcmd): Add declaration.
12329 * probe.c (_initialize_probe): Add declaration.
12330 * proc-api.c (_initialize_proc_api): Add declaration.
12331 * proc-events.c (_initialize_proc_events): Add declaration.
12332 * proc-service.c (_initialize_proc_service): Add declaration.
12333 * procfs.c (_initialize_procfs): Add declaration.
12334 * producer.c (_initialize_producer): Add declaration.
12335 * psymtab.c (_initialize_psymtab): Add declaration.
12336 * python/python.c (_initialize_python): Add declaration.
12337 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12338 * record-btrace.c (_initialize_record_btrace): Add declaration.
12339 * record-full.c (_initialize_record_full): Add declaration.
12340 * record.c (_initialize_record): Add declaration.
12341 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12342 * regcache.c (_initialize_regcache): Add declaration.
12343 * reggroups.c (_initialize_reggroup): Add declaration.
12344 * remote-notif.c (_initialize_notif): Add declaration.
12345 * remote-sim.c (_initialize_remote_sim): Add declaration.
12346 * remote.c (_initialize_remote): Add declaration.
12347 * reverse.c (_initialize_reverse): Add declaration.
12348 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12349 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12350 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12351 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12352 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12353 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12354 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12355 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12356 Add declaration.
12357 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12358 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12359 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12360 * rust-exp.y (_initialize_rust_exp): Add declaration.
12361 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12362 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12363 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12364 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12365 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12366 * score-tdep.c (_initialize_score_tdep): Add declaration.
12367 * ser-go32.c (_initialize_ser_dos): Add declaration.
12368 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12369 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12370 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12371 * ser-uds.c (_initialize_ser_socket): Add declaration.
12372 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12373 * serial.c (_initialize_serial): Add declaration.
12374 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12375 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12376 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12377 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12378 * skip.c (_initialize_step_skip): Add declaration.
12379 * sol-thread.c (_initialize_sol_thread): Add declaration.
12380 * solib-aix.c (_initialize_solib_aix): Add declaration.
12381 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12382 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12383 * solib-frv.c (_initialize_frv_solib): Add declaration.
12384 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12385 * solib-target.c (_initialize_solib_target): Add declaration.
12386 * solib.c (_initialize_solib): Add declaration.
12387 * source-cache.c (_initialize_source_cache): Add declaration.
12388 * source.c (_initialize_source): Add declaration.
12389 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12390 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12391 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12392 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12393 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12394 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12395 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12396 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12397 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12398 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12399 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12400 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12401 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12402 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12403 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12404 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12405 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12406 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12407 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12408 * stabsread.c (_initialize_stabsread): Add declaration.
12409 * stack.c (_initialize_stack): Add declaration.
12410 * stap-probe.c (_initialize_stap_probe): Add declaration.
12411 * std-regs.c (_initialize_frame_reg): Add declaration.
12412 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12413 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12414 * symfile.c (_initialize_symfile): Add declaration.
12415 * symmisc.c (_initialize_symmisc): Add declaration.
12416 * symtab.c (_initialize_symtab): Add declaration.
12417 * target.c (_initialize_target): Add declaration.
12418 * target-connection.c (_initialize_target_connection): Add
12419 declaration.
12420 * target-dcache.c (_initialize_target_dcache): Add declaration.
12421 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12422 * thread.c (_initialize_thread): Add declaration.
12423 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12424 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12425 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12426 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12427 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12428 * tracectf.c (_initialize_ctf): Add declaration.
12429 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12430 * tracefile.c (_initialize_tracefile): Add declaration.
12431 * tracepoint.c (_initialize_tracepoint): Add declaration.
12432 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12433 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12434 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12435 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12436 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12437 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12438 * tui/tui.c (_initialize_tui): Add declaration.
12439 * typeprint.c (_initialize_typeprint): Add declaration.
12440 * ui-style.c (_initialize_ui_style): Add declaration.
12441 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12442 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12443 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12444 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12445 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12446 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12447 * unittests/filtered_iterator-selftests.c
12448 (_initialize_filtered_iterator_selftests): Add declaration.
12449 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12450 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12451 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12452 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12453 * unittests/main-thread-selftests.c
12454 (_initialize_main_thread_selftests): Add declaration.
12455 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12456 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12457 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12458 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12459 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12460 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12461 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12462 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12463 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12464 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12465 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12466 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12467 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12468 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12469 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12470 declaration.
12471 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12472 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12473 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12474 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12475 * user-regs.c (_initialize_user_regs): Add declaration.
12476 * utils.c (_initialize_utils): Add declaration.
12477 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12478 * valops.c (_initialize_valops): Add declaration.
12479 * valprint.c (_initialize_valprint): Add declaration.
12480 * value.c (_initialize_values): Add declaration.
12481 * varobj.c (_initialize_varobj): Add declaration.
12482 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12483 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12484 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12485 * windows-nat.c (_initialize_windows_nat): Add declaration.
12486 (_initialize_check_for_gdb_ini): Add declaration.
12487 (_initialize_loadable): Add declaration.
12488 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12489 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12490 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12491 * xcoffread.c (_initialize_xcoffread): Add declaration.
12492 * xml-support.c (_initialize_xml_support): Add declaration.
12493 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12494 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12495 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12496 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12497
12498 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12499
12500 * regformats/regdat.sh: Generate declaration for init function.
12501
12502 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12503
12504 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12505 up.
12506 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12507 close_one_inferior>: New methods.
12508 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12509 pass down target to find_inferior_pid.
12510 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12511 Pass down target to find_inferior_ptid.
12512 (gdbsim_target::create_inferior): Pass down target to
12513 add_thread_silent.
12514 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12515 target down to find_inferior_ptid and switch_to_thread.
12516 (gdbsim_target::close): Update to call close_one_inferior.
12517 (struct resume_data): Remove.
12518 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12519 directly, rather than through a void pointer.
12520 (gdbsim_target::resume): Update to call resume_one_inferior.
12521
12522 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12523
12524 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12525
12526 2020-01-12 Pedro Alves <palves@redhat.com>
12527
12528 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12529 directly for the current inferior instead of
12530 discard_all_inferiors.
12531 (discard_all_inferiors): Delete.
12532
12533 2020-01-11 Tom Tromey <tom@tromey.com>
12534
12535 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12536 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12537 deprecated_safe_get_selected_frame.
12538
12539 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12540
12541 * inferior.c (print_inferior): Switch inferior before printing it.
12542
12543 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12544 Pedro Alves <palves@redhat.com>
12545
12546 * progspace-and-thread.c (switch_to_program_space_and_thread):
12547 Assert there's an inferior for PSPACE. Use
12548 switch_to_inferior_no_thread to switch the inferior too.
12549 * progspace.c (program_space::~program_space): Call
12550 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12551 (program_space::free_all_objfiles): Don't call clear_symtab_users
12552 here.
12553 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12554
12555 2020-01-10 Pedro Alves <palves@redhat.com>
12556
12557 * NEWS: Mention multi-target debugging, "info connections", and
12558 "add-inferior -no-connection".
12559
12560 2020-01-10 Pedro Alves <palves@redhat.com>
12561
12562 * infrun.c: Include "target-connection.h".
12563 (check_multi_target_resumption): New.
12564 (proceed): Call it.
12565 * target-connection.c (make_target_connection_string): Make
12566 extern.
12567 * target-connection.h (make_target_connection_string): Declare.
12568
12569 2020-01-10 Pedro Alves <palves@redhat.com>
12570
12571 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12572 * inferior.c (uiout_field_connection): New function.
12573 (print_inferior): Add new "connection-id" column.
12574 (add_inferior_command): Show connection number/string of added
12575 inferior.
12576 * process-stratum-target.h
12577 (process_stratum_target::connection_string): New virtual method.
12578 (process_stratum_target::connection_number): New field.
12579 * remote.c (remote_target::connection_string): New override.
12580 * target-connection.c: New file.
12581 * target-connection.h: New file.
12582 * target.c (decref_target): Remove process_stratum targets from
12583 the connection list.
12584 (target_stack::push): Add process_stratum targets to the
12585 connection list.
12586
12587 2020-01-10 Pedro Alves <palves@redhat.com>
12588
12589 Revert:
12590 2016-04-12 Pedro Alves <palves@redhat.com>
12591 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12592 Remove references to name.
12593 * serial.h (struct serial) <name>: Delete.
12594
12595 2020-01-10 Pedro Alves <palves@redhat.com>
12596
12597 * gdbarch-selftests.c (register_to_value_test): Remove "target
12598 already pushed" check.
12599
12600 2020-01-10 Pedro Alves <palves@redhat.com>
12601 John Baldwin <jhb@FreeBSD.org>
12602
12603 * aarch64-linux-nat.c
12604 (aarch64_linux_nat_target::thread_architecture): Adjust.
12605 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12606 (task_command_1): Likewise.
12607 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12608 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12609 (aix_thread_target::store_registers)
12610 (aix_thread_target::thread_alive): Adjust.
12611 * amd64-fbsd-tdep.c: Include "inferior.h".
12612 (amd64fbsd_get_thread_local_address): Pass down target.
12613 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12614 thread's gdbarch instead of target_gdbarch.
12615 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12616 get_last_target_status.
12617 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12618 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12619 inferiors.
12620 (update_inserted_breakpoint_locations): Skip if inferiors with no
12621 execution.
12622 (update_global_location_list): When handling moribund locations,
12623 find representative inferior for location's pspace, and use thread
12624 count of its process_stratum target.
12625 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12626 * bsd-uthread.c (bsd_uthread_target::wait): Use
12627 as_process_stratum_target and adjust thread_change_ptid and
12628 add_thread calls.
12629 (bsd_uthread_target::update_thread_list): Use
12630 as_process_stratum_target and adjust find_thread_ptid,
12631 thread_change_ptid and add_thread calls.
12632 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12633 find_thread_ptid call.
12634 * corelow.c (add_to_thread_list): Adjust add_thread call.
12635 (core_target_open): Adjust add_thread_silent and thread_count
12636 calls.
12637 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12638 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12639 * event-top.c (async_disconnect): Pop targets from all inferiors.
12640 * exec.c (add_target_sections): Push exec target on all inferiors
12641 sharing the program space.
12642 (remove_target_sections): Remove the exec target from all
12643 inferiors sharing the program space.
12644 (exec_on_vfork): New.
12645 * exec.h (exec_on_vfork): Declare.
12646 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12647 Pass it down.
12648 (fbsd_nat_target::update_thread_list): Adjust.
12649 (fbsd_nat_target::resume): Adjust.
12650 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12651 down.
12652 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12653 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12654 get_thread_arch_regcache call.
12655 * fork-child.c (gdb_startup_inferior): Pass target down to
12656 startup_inferior and set_executing.
12657 * gdbthread.h (struct process_stratum_target): Forward declare.
12658 (add_thread, add_thread_silent, add_thread_with_info)
12659 (in_thread_list): Add process_stratum_target parameter.
12660 (find_thread_ptid(inferior*, ptid_t)): New overload.
12661 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12662 parameter.
12663 (all_threads()): Delete overload.
12664 (all_threads, all_non_exited_threads): Add process_stratum_target
12665 parameter.
12666 (all_threads_safe): Use brace initialization.
12667 (thread_count): Add process_stratum_target parameter.
12668 (set_resumed, set_running, set_stop_requested, set_executing)
12669 (threads_are_executing, finish_thread_state): Add
12670 process_stratum_target parameter.
12671 (switch_to_thread): Use is_current_thread.
12672 * i386-fbsd-tdep.c: Include "inferior.h".
12673 (i386fbsd_get_thread_local_address): Pass down target.
12674 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12675 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12676 have_inferiors check.
12677 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12678 (inf_ptrace_target::attach): Adjust.
12679 * infcall.c (run_inferior_call): Adjust.
12680 * infcmd.c (run_command_1): Pass target to
12681 scoped_finish_thread_state.
12682 (proceed_thread_callback): Skip inferiors with no execution.
12683 (continue_command): Rename 'all_threads' local to avoid hiding
12684 'all_threads' function. Adjust get_last_target_status call.
12685 (prepare_one_step): Adjust set_running call.
12686 (signal_command): Use user_visible_resume_target. Compare thread
12687 pointers instead of inferior_ptid.
12688 (info_program_command): Adjust to pass down target.
12689 (attach_command): Mark target's 'thread_executing' flag.
12690 (stop_current_target_threads_ns): New, factored out from ...
12691 (interrupt_target_1): ... this. Switch inferior before making
12692 target calls.
12693 * inferior-iter.h
12694 (struct all_inferiors_iterator, struct all_inferiors_range)
12695 (struct all_inferiors_safe_range)
12696 (struct all_non_exited_inferiors_range): Filter on
12697 process_stratum_target too. Remove explicit.
12698 * inferior.c (inferior::inferior): Push dummy target on target
12699 stack.
12700 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12701 Add process_stratum_target parameter, and pass it down.
12702 (have_live_inferiors): Adjust.
12703 (switch_to_inferior_and_push_target): New.
12704 (add_inferior_command, clone_inferior_command): Handle
12705 "-no-connection" parameter. Use
12706 switch_to_inferior_and_push_target.
12707 (_initialize_inferior): Mention "-no-connection" option in
12708 the help of "add-inferior" and "clone-inferior" commands.
12709 * inferior.h: Include "process-stratum-target.h".
12710 (interrupt_target_1): Use bool.
12711 (struct inferior) <push_target, unpush_target, target_is_pushed,
12712 find_target_beneath, top_target, process_target, target_at,
12713 m_stack>: New.
12714 (discard_all_inferiors): Delete.
12715 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12716 (all_inferiors, all_non_exited_inferiors): Add
12717 process_stratum_target parameter.
12718 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12719 (target_last_proc_target): New global.
12720 (follow_fork_inferior): Push target on new inferior. Pass target
12721 to add_thread_silent. Call exec_on_vfork. Handle target's
12722 reference count.
12723 (follow_fork): Adjust get_last_target_status call. Also consider
12724 target.
12725 (follow_exec): Push target on new inferior.
12726 (struct execution_control_state) <target>: New field.
12727 (user_visible_resume_target): New.
12728 (do_target_resume): Call target_async.
12729 (resume_1): Set target's threads_executing flag. Consider resume
12730 target.
12731 (commit_resume_all_targets): New.
12732 (proceed): Also consider resume target. Skip threads of inferiors
12733 with no execution. Commit resumtion in all targets.
12734 (start_remote): Pass current inferior to wait_for_inferior.
12735 (infrun_thread_stop_requested): Consider target as well. Pass
12736 thread_info pointer to clear_inline_frame_state instead of ptid.
12737 (infrun_thread_thread_exit): Consider target as well.
12738 (random_pending_event_thread): New inferior parameter. Use it.
12739 (do_target_wait): Rename to ...
12740 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12741 down.
12742 (threads_are_resumed_pending_p, do_target_wait): New.
12743 (prepare_for_detach): Adjust calls.
12744 (wait_for_inferior): New inferior parameter. Handle it. Use
12745 do_target_wait_1 instead of do_target_wait.
12746 (fetch_inferior_event): Adjust. Switch to representative
12747 inferior. Pass target down.
12748 (set_last_target_status): Add process_stratum_target parameter.
12749 Save target in global.
12750 (get_last_target_status): Add process_stratum_target parameter and
12751 handle it.
12752 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12753 (context_switch): Check inferior_ptid == null_ptid before calling
12754 inferior_thread().
12755 (get_inferior_stop_soon): Pass down target.
12756 (wait_one): Rename to ...
12757 (poll_one_curr_target): ... this.
12758 (struct wait_one_event): New.
12759 (wait_one): New.
12760 (stop_all_threads): Adjust.
12761 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12762 event's target.
12763 (switch_back_to_stepped_thread): Also consider target.
12764 (print_stop_event): Update.
12765 (normal_stop): Update. Also consider the resume target.
12766 * infrun.h (wait_for_inferior): Remove declaration.
12767 (user_visible_resume_target): New declaration.
12768 (get_last_target_status, set_last_target_status): New
12769 process_stratum_target parameter.
12770 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12771 process_stratum_target parameter, and use it.
12772 (clear_inline_frame_state (thread_info*)): New.
12773 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12774 process_stratum_target parameter.
12775 (clear_inline_frame_state (thread_info*)): Declare.
12776 * linux-fork.c (delete_checkpoint_command): Pass target down to
12777 find_thread_ptid.
12778 (checkpoint_command): Adjust.
12779 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12780 instead of just tweaking inferior_ptid.
12781 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12782 (exit_lwp): Pass target down to find_thread_ptid.
12783 (attach_proc_task_lwp_callback): Pass target down to
12784 add_thread/set_running/set_executing.
12785 (linux_nat_target::attach): Pass target down to
12786 thread_change_ptid.
12787 (get_detach_signal): Pass target down to find_thread_ptid.
12788 Consider last target status's target.
12789 (linux_resume_one_lwp_throw, resume_lwp)
12790 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12791 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12792 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12793 (linux_nat_target::async_wait_fd): New.
12794 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12795 target down.
12796 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12797 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12798 * linux-thread-db.c (struct thread_db_info::process_target): New
12799 field.
12800 (add_thread_db_info): Save target.
12801 (get_thread_db_info): New process_stratum_target parameter. Also
12802 match target.
12803 (delete_thread_db_info): New process_stratum_target parameter.
12804 Also match target.
12805 (thread_from_lwp): Adjust to pass down target.
12806 (thread_db_notice_clone): Pass down target.
12807 (check_thread_db_callback): Pass down target.
12808 (try_thread_db_load_1): Always push the thread_db target.
12809 (try_thread_db_load, record_thread): Pass target down.
12810 (thread_db_target::detach): Pass target down. Always unpush the
12811 thread_db target.
12812 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12813 target down. Always unpush the thread_db target.
12814 (find_new_threads_callback, thread_db_find_new_threads_2)
12815 (thread_db_target::update_thread_list): Pass target down.
12816 (thread_db_target::pid_to_str): Pass current inferior down.
12817 (thread_db_target::get_thread_local_address): Pass target down.
12818 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12819 target down.
12820 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12821 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12822 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12823 (procfs_init_inferior): Rename to ...
12824 (procfs_target::procfs_init_inferior): ... this and adjust.
12825 (procfs_target::create_inferior, procfs_notice_thread)
12826 (procfs_do_thread_registers): Adjust.
12827 * ppc-fbsd-tdep.c: Include "inferior.h".
12828 (ppcfbsd_get_thread_local_address): Pass down target.
12829 * proc-service.c (ps_xfer_memory): Switch current inferior and
12830 program space as well.
12831 (get_ps_regcache): Pass target down.
12832 * process-stratum-target.c
12833 (process_stratum_target::thread_address_space)
12834 (process_stratum_target::thread_architecture): Pass target down.
12835 * process-stratum-target.h
12836 (process_stratum_target::threads_executing): New field.
12837 (as_process_stratum_target): New.
12838 * ravenscar-thread.c
12839 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12840 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12841 down.
12842 * record-btrace.c (record_btrace_target::info_record): Adjust.
12843 (record_btrace_target::record_method)
12844 (record_btrace_target::record_is_replaying)
12845 (record_btrace_target::fetch_registers)
12846 (get_thread_current_frame_id, record_btrace_target::resume)
12847 (record_btrace_target::wait, record_btrace_target::stop): Pass
12848 target down.
12849 * record-full.c (record_full_wait_1): Switch to event thread.
12850 Pass target down.
12851 * regcache.c (regcache::regcache)
12852 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12853 process_stratum_target parameter and handle it.
12854 (current_thread_target): New global.
12855 (get_thread_regcache): Add process_stratum_target parameter and
12856 handle it. Switch inferior before calling target method.
12857 (get_thread_regcache): Pass target down.
12858 (get_thread_regcache_for_ptid): Pass target down.
12859 (registers_changed_ptid): Add process_stratum_target parameter and
12860 handle it.
12861 (registers_changed_thread, registers_changed): Pass target down.
12862 (test_get_thread_arch_aspace_regcache): New.
12863 (current_regcache_test): Define a couple local test_target_ops
12864 instances and use them for testing.
12865 (readwrite_regcache): Pass process_stratum_target parameter.
12866 (cooked_read_test, cooked_write_test): Pass mock_target down.
12867 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12868 (get_thread_arch_aspace_regcache): Add process_stratum_target
12869 parameter.
12870 (regcache::target): New method.
12871 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12872 (regcache::registers_changed_ptid): Add process_stratum_target
12873 parameter.
12874 (regcache::m_target): New field.
12875 (registers_changed_ptid): Add process_stratum_target parameter.
12876 * remote.c (remote_state::supports_vCont_probed): New field.
12877 (remote_target::async_wait_fd): New method.
12878 (remote_unpush_and_throw): Add remote_target parameter.
12879 (get_current_remote_target): Adjust.
12880 (remote_target::remote_add_inferior): Push target.
12881 (remote_target::remote_add_thread)
12882 (remote_target::remote_notice_new_inferior)
12883 (get_remote_thread_info): Pass target down.
12884 (remote_target::update_thread_list): Skip threads of inferiors
12885 bound to other targets. (remote_target::close): Don't discard
12886 inferiors. (remote_target::add_current_inferior_and_thread)
12887 (remote_target::process_initial_stop_replies)
12888 (remote_target::start_remote)
12889 (remote_target::remote_serial_quit_handler): Pass down target.
12890 (remote_target::remote_unpush_target): New remote_target
12891 parameter. Unpush the target from all inferiors.
12892 (remote_target::remote_unpush_and_throw): New remote_target
12893 parameter. Pass it down.
12894 (remote_target::open_1): Check whether the current inferior has
12895 execution instead of checking whether any inferior is live. Pass
12896 target down.
12897 (remote_target::remote_detach_1): Pass down target. Use
12898 remote_unpush_target.
12899 (extended_remote_target::attach): Pass down target.
12900 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12901 (remote_target::append_resumption): Pass down target.
12902 (remote_target::append_pending_thread_resumptions)
12903 (remote_target::remote_resume_with_hc, remote_target::resume)
12904 (remote_target::commit_resume): Pass down target.
12905 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12906 (remote_target::interrupt_query)
12907 (remote_target::remove_new_fork_children)
12908 (remote_target::check_pending_events_prevent_wildcard_vcont)
12909 (remote_target::remote_parse_stop_reply)
12910 (remote_target::process_stop_reply): Pass down target.
12911 (first_remote_resumed_thread): New remote_target parameter. Pass
12912 it down.
12913 (remote_target::wait_as): Pass down target.
12914 (unpush_and_perror): New remote_target parameter. Pass it down.
12915 (remote_target::readchar, remote_target::remote_serial_write)
12916 (remote_target::getpkt_or_notif_sane_1)
12917 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12918 down target.
12919 (remote_target::mourn_inferior): Pass down target. Use
12920 remote_unpush_target.
12921 (remote_target::core_of_thread)
12922 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12923 (remote_target::pid_to_exec_file)
12924 (remote_target::thread_handle_to_thread_info): Pass down target.
12925 (remote_target::async_wait_fd): New.
12926 * riscv-fbsd-tdep.c: Include "inferior.h".
12927 (riscv_fbsd_get_thread_local_address): Pass down target.
12928 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12929 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12930 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12931 Adjust.
12932 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12933 * solib-svr4.c (enable_break): Pass down target.
12934 * spu-multiarch.c (parse_spufs_run): Pass down target.
12935 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12936 * target-delegates.c: Regenerate.
12937 * target.c (g_target_stack): Delete.
12938 (current_top_target): Return the current inferior's top target.
12939 (target_has_execution_1): Refer to the passed-in inferior's top
12940 target.
12941 (target_supports_terminal_ours): Check whether the initial
12942 inferior was already created.
12943 (decref_target): New.
12944 (target_stack::push): Incref/decref the target.
12945 (push_target, push_target, unpush_target): Adjust.
12946 (target_stack::unpush): Defref target.
12947 (target_is_pushed): Return bool. Adjust to refer to the current
12948 inferior's target stack.
12949 (dispose_inferior): Delete, and inline parts ...
12950 (target_preopen): ... here. Only dispose of the current inferior.
12951 (target_detach): Hold strong target reference while detaching.
12952 Pass target down.
12953 (target_thread_name): Add assertion.
12954 (target_resume): Pass down target.
12955 (target_ops::beneath, find_target_at): Adjust to refer to the
12956 current inferior's target stack.
12957 (get_dummy_target): New.
12958 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12959 has a thread running.
12960 (initialize_targets): Rename to ...
12961 (_initialize_target): ... this.
12962 * target.h: Include "gdbsupport/refcounted-object.h".
12963 (struct target_ops): Inherit refcounted_object.
12964 (target_ops::shortname, target_ops::longname): Make const.
12965 (target_ops::async_wait_fd): New method.
12966 (decref_target): Declare.
12967 (struct target_ops_ref_policy): New.
12968 (target_ops_ref): New typedef.
12969 (get_dummy_target): Declare function.
12970 (target_is_pushed): Return bool.
12971 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12972 (all_matching_threads_iterator::all_matching_threads_iterator):
12973 Handle filter target.
12974 * thread-iter.h (struct all_matching_threads_iterator, struct
12975 all_matching_threads_range, class all_non_exited_threads_range):
12976 Filter by target too. Remove explicit.
12977 * thread.c (threads_executing): Delete.
12978 (inferior_thread): Pass down current inferior.
12979 (clear_thread_inferior_resources): Pass down thread pointer
12980 instead of ptid_t.
12981 (add_thread_silent, add_thread_with_info, add_thread): Add
12982 process_stratum_target parameter. Use it for thread and inferior
12983 searches.
12984 (is_current_thread): New.
12985 (thread_info::deletable): Use it.
12986 (find_thread_ptid, thread_count, in_thread_list)
12987 (thread_change_ptid, set_resumed, set_running): New
12988 process_stratum_target parameter. Pass it down.
12989 (set_executing): New process_stratum_target parameter. Pass it
12990 down. Adjust reference to 'threads_executing'.
12991 (threads_are_executing): New process_stratum_target parameter.
12992 Adjust reference to 'threads_executing'.
12993 (set_stop_requested, finish_thread_state): New
12994 process_stratum_target parameter. Pass it down.
12995 (switch_to_thread): Also match inferior.
12996 (switch_to_thread): New process_stratum_target parameter. Pass it
12997 down.
12998 (update_threads_executing): Reimplement.
12999 * top.c (quit_force): Pop targets from all inferior.
13000 (gdb_init): Don't call initialize_targets.
13001 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13002 Declare.
13003 (windows_add_thread, windows_delete_thread): Adjust.
13004 (get_windows_debug_event): Rename to ...
13005 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13006 * tracefile-tfile.c (tfile_target_open): Pass down target.
13007 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13008 Forward declare.
13009 (switch_to_thread): Add process_stratum_target parameter.
13010 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13011 parameter. Use it.
13012 (mi_on_resume): Pass target down.
13013 * nat/fork-inferior.c (startup_inferior): Add
13014 process_stratum_target parameter. Pass it down.
13015 * nat/fork-inferior.h (startup_inferior): Add
13016 process_stratum_target parameter.
13017 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13018
13019 2020-01-10 Pedro Alves <palves@redhat.com>
13020
13021 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13022 directly. Instead find the first thread in the thread list and
13023 use switch_to_thread.
13024
13025 2020-01-10 Pedro Alves <palves@redhat.com>
13026
13027 * remote.c (remote_target::remote_add_inferior): Don't bind a
13028 process to the current inferior if the current inferior is already
13029 bound to a process.
13030
13031 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13032 Pedro Alves <palves@redhat.com>
13033
13034 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13035 If no process is specified, return null_ptid instead of
13036 inferior_ptid.
13037 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13038 TARGET_WAITKIND_SIGNALLED with no pid.
13039
13040 2020-01-10 Pedro Alves <palves@redhat.com>
13041
13042 * remote.c (first_remote_resumed_thread): New.
13043 (remote_target::wait_as): Use it as default event_ptid instead of
13044 inferior_ptid.
13045
13046 2020-01-10 Pedro Alves <palves@redhat.com>
13047
13048 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13049
13050 2020-01-10 Pedro Alves <palves@redhat.com>
13051
13052 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13053 not -1.
13054
13055 2020-01-10 Pedro Alves <palves@redhat.com>
13056
13057 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13058 ptid to get_last_target_status.
13059 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13060 ptid to get_last_target_status.
13061 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13062 get_last_target_status.
13063 (info_program_command): Don't pass a target_waitstatus to
13064 get_last_target_status.
13065 * infrun.c (init_wait_for_inferior): Use
13066 nullify_last_target_wait_ptid.
13067 (get_last_target_status): Handle nullptr arguments.
13068 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13069 (print_stop_event): Don't pass a ptid to get_last_target_status.
13070 (normal_stop): Don't pass a ptid to get_last_target_status.
13071 * infrun.h (get_last_target_status, set_last_target_status): Move
13072 comments here and update.
13073 (nullify_last_target_wait_ptid): Declare.
13074 * linux-fork.c (fork_load_infrun_state): Remove local extern
13075 declaration of nullify_last_target_wait_ptid.
13076 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13077 to get_last_target_status.
13078
13079 2020-01-10 Pedro Alves <palves@redhat.com>
13080
13081 * gdbthread.h (scoped_restore_current_thread)
13082 <dont_restore, restore, m_dont_restore>: Declare.
13083 * thread.c (thread_alive): Add assertion. Return bool.
13084 (switch_to_thread_if_alive): New.
13085 (prune_threads): Switch inferior/thread.
13086 (print_thread_info_1): Switch thread before calling target methods.
13087 (scoped_restore_current_thread::restore): New, factored out from
13088 ...
13089 (scoped_restore_current_thread::~scoped_restore_current_thread):
13090 ... this.
13091 (scoped_restore_current_thread::scoped_restore_current_thread):
13092 Add assertion.
13093 (thread_apply_all_command, thread_select): Use
13094 switch_to_thread_if_alive.
13095 * infrun.c (proceed, restart_threads, handle_signal_stop)
13096 (switch_back_to_stepped_thread): Switch current thread before
13097 calling target methods.
13098
13099 2020-01-10 Pedro Alves <palves@redhat.com>
13100
13101 * inferior.c (switch_to_inferior_no_thread): New function,
13102 factored out from ...
13103 (inferior_command): ... here.
13104 * inferior.h (switch_to_inferior_no_thread): Declare.
13105 * mi/mi-main.c (run_one_inferior): Use
13106 switch_to_inferior_no_thread.
13107
13108 2020-01-10 Pedro Alves <palves@redhat.com>
13109
13110 * infcmd.c (kill_command): Remove dead code.
13111
13112 2020-01-10 Pedro Alves <palves@redhat.com>
13113
13114 * remote.c (remote_target::mourn_inferior): No longer check
13115 whether the target is running.
13116
13117 2020-01-10 Pedro Alves <palves@redhat.com>
13118
13119 * corelow.c (core_target::has_execution): Change parameter type to
13120 inferior pointer.
13121 * inferior.c (number_of_live_inferiors): Use
13122 inferior::has_execution instead of target_has_execution_1.
13123 * inferior.h (inferior::has_execution): New.
13124 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13125 inferior::has_execution instead of target_has_execution_1.
13126 * process-stratum-target.c
13127 (process_stratum_target::has_execution): Change parameter type to
13128 inferior pointer. Check the inferior's PID instead of
13129 inferior_ptid.
13130 * process-stratum-target.h
13131 (process_stratum_target::has_execution): Change parameter type to
13132 inferior pointer.
13133 * record-full.c (record_full_core_target::has_execution): Change
13134 parameter type to inferior pointer.
13135 * target.c (target_has_execution_1): Change parameter type to
13136 inferior pointer.
13137 (target_has_execution_current): Adjust.
13138 * target.h (target_ops::has_execution): Change parameter type to
13139 inferior pointer.
13140 (target_has_execution_1): Change parameter type to inferior
13141 pointer. Change return type to bool.
13142 * tracefile.h (tracefile_target::has_execution): Change parameter
13143 type to inferior pointer.
13144
13145 2020-01-10 Pedro Alves <palves@redhat.com>
13146
13147 * exceptions.c (print_flush): Remove current_top_target() check.
13148
13149 2020-01-10 Pedro Alves <palves@redhat.com>
13150
13151 * remote.c (show_remote_exec_file): Show the current inferior's
13152 exec-file instead of the command variable's value.
13153
13154 2020-01-10 Pedro Alves <palves@redhat.com>
13155
13156 * record-full.c (record_full_resume_ptid): New global.
13157 (record_full_target::resume): Set it.
13158 (record_full_wait_1): Use record_full_resume_ptid instead of
13159 inferior_ptid.
13160
13161 2020-01-10 Pedro Alves <palves@redhat.com>
13162
13163 * gdbthread.h (scoped_restore_current_thread)
13164 <dont_restore, restore, m_dont_restore>: Declare.
13165 * thread.c (thread_alive): Add assertion. Return bool.
13166 (switch_to_thread_if_alive): New.
13167 (prune_threads): Switch inferior/thread.
13168 (print_thread_info_1): Switch thread before calling target methods.
13169 (scoped_restore_current_thread::restore): New, factored out from
13170 ...
13171 (scoped_restore_current_thread::~scoped_restore_current_thread):
13172 ... this.
13173 (scoped_restore_current_thread::scoped_restore_current_thread):
13174 Add assertion.
13175 (thread_apply_all_command, thread_select): Use
13176 switch_to_thread_if_alive.
13177
13178 2020-01-10 George Barrett <bob@bob131.so>
13179
13180 * stap-probe.c (stap_modify_semaphore): Don't check for null
13181 semaphores.
13182 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13183 for null semaphores.
13184
13185 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13186
13187 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13188 all source windows, and maintain horizontal scroll status while
13189 doing so.
13190
13191 2020-01-09 Tom Tromey <tom@tromey.com>
13192
13193 PR tui/18932:
13194 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13195 update_source_window, not print_source_lines.
13196
13197 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13198
13199 * tui/tui.c (tui_enable): Register tui hooks after calling
13200 tui_display_main.
13201
13202 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13203
13204 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13205
13206 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13207
13208 * thread.c (print_thread_info_1): Fix indentation.
13209
13210 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13211
13212 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13213 unique_xmalloc_ptr outside the if to always free the demangled name.
13214
13215 2020-01-08 Tom Tromey <tromey@adacore.com>
13216
13217 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13218 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13219 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13220 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13221 Remove.
13222 (section_offsets): New typedef.
13223 * symtab.c (fixup_section, get_msymbol_address): Update.
13224 * symmisc.c (dump_msymbols): Update.
13225 * symfile.h (relative_addr_info_to_section_offsets)
13226 (symfile_map_offsets_to_segments): Update.
13227 * symfile.c (build_section_addr_info_from_objfile)
13228 (init_objfile_sect_indices): Update.
13229 (struct place_section_arg): Change type of "offsets".
13230 (place_section): Update.
13231 (relative_addr_info_to_section_offsets): Change type of
13232 "section_offsets". Remove "num_sections" parameter.
13233 (default_symfile_offsets, syms_from_objfile_1)
13234 (set_objfile_default_section_offset): Update.
13235 (reread_symbols): No need to preserve section offsets by hand.
13236 (symfile_map_offsets_to_segments): Change type of "offsets".
13237 * stap-probe.c (relocate_address): Update.
13238 * stabsread.h (process_one_symbol): Update.
13239 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13240 (solib_target_relocate_section_addresses): Update.
13241 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13242 Update.
13243 * solib-frv.c (frv_relocate_main_executable): Update.
13244 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13245 * solib-aix.c (solib_aix_get_section_offsets): Change return
13246 type.
13247 (solib_aix_solib_create_inferior_hook): Update.
13248 * remote.c (remote_target::get_offsets): Update.
13249 * psymtab.c (find_pc_sect_psymtab): Update.
13250 * psympriv.h (struct partial_symbol) <address, text_low,
13251 text_high>: Update.
13252 * objfiles.h (obj_section_offset): Update.
13253 (struct objfile) <section_offsets>: Change type.
13254 <num_sections>: Remove.
13255 (objfile_relocate): Update.
13256 * objfiles.c (entry_point_address_query): Update
13257 (relocate_one_symbol): Change type of "section_offsets".
13258 (objfile_relocate1, objfile_relocate1): Change type of
13259 "new_offsets".
13260 (objfile_rebase1): Update.
13261 * mipsread.c (mipscoff_symfile_read): Update.
13262 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13263 parameter.
13264 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13265 (parse_external, psymtab_to_symtab_1): Update.
13266 * machoread.c (macho_symfile_offsets): Update.
13267 * ia64-tdep.c (ia64_find_unwind_table): Update.
13268 * hppa-tdep.c (read_unwind_info): Update.
13269 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13270 * dwarf2read.c (create_addrmap_from_index)
13271 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13272 (process_psymtab_comp_unit_reader, add_partial_symbol)
13273 (add_partial_subprogram, process_full_comp_unit)
13274 (read_file_scope, read_func_scope, read_lexical_block_scope)
13275 (read_call_site_scope, dwarf2_rnglists_process)
13276 (dwarf2_ranges_process, dwarf2_ranges_read)
13277 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13278 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13279 Update.
13280 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13281 Update.
13282 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13283 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13284 (process_one_symbol): Change type of "section_offsets".
13285 * ctfread.c (get_objfile_text_range): Update.
13286 * coffread.c (coff_symtab_read, enter_linenos)
13287 (process_coff_symbol): Update.
13288 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13289 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13290
13291 2020-01-08 Tom Tromey <tromey@adacore.com>
13292
13293 * dwarf2read.c (parse_macro_definition): Use std::string.
13294 (parse_macro_definition): Likewise.
13295
13296 2020-01-08 Tom Tromey <tromey@adacore.com>
13297
13298 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13299 (ATTR_ALLOC_CHUNK): Remove.
13300
13301 2020-01-08 Tom Tromey <tromey@adacore.com>
13302
13303 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13304
13305 2020-01-08 Tom Tromey <tromey@adacore.com>
13306
13307 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13308 (dwarf2_compute_name, open_dwo_file): Likewise.
13309 (process_enumeration_scope): Use std::vector.
13310 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13311 (partial_die_info::fixup, dwarf2_start_subfile)
13312 (guess_full_die_structure_name, dwarf2_name): Likewise.
13313 (determine_prefix): Update.
13314 (guess_full_die_structure_name): Make return type const.
13315 (partial_die_full_name): Return unique_xmalloc_ptr.
13316 (DW_FIELD_ALLOC_CHUNK): Remove.
13317
13318 2020-01-07 Tom Tromey <tromey@adacore.com>
13319
13320 PR build/24937:
13321 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13322
13323 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13324
13325 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13326
13327 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13328
13329 * stack.c (print_frame_info): Move disassemble_next_line code
13330 inside source_print block.
13331
13332 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13333
13334 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13335 gdb/signals.h, as we are now using native signal symbols.
13336
13337 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13338
13339 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13340 overflow by an early check of content vs threshold.
13341 * tui/tui-source.c (tui_source_window::line_is_displayed):
13342 Likewise.
13343
13344 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13345
13346 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13347
13348 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13349
13350 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13351 export table if no section contains it's RVA.
13352
13353 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13354
13355 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13356
13357 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13358
13359 * source.c (print_source_lines_base): Set last_line_listed.
13360
13361 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13362
13363 * tui/tui-disasm.c: Remove trailing spaces.
13364
13365 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13366 Pedro Alves <palves@redhat.com>
13367
13368 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13369 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13370 (windows_gdb_signal_to_target): New function, uses the above
13371 enumeration to convert GDB internal signal codes to equivalent
13372 Windows codes.
13373 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13374 * windows-nat.c: Include "gdb_wait.h".
13375 (get_windows_debug_event): Extract the fatal exception from the
13376 exit status and convert to the equivalent Posix signal number.
13377 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13378 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13379 * gdbsupport/gdb_wait.c: New file, implements
13380 windows_status_to_termsig.
13381 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13382 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13383
13384 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13385
13386 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13387 show_layout.
13388
13389 2020-01-05 Luis Machado <luis.machado@linaro.org>
13390
13391 * aarch64-linux-nat.c
13392 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13393 and bfd_mach_aarch64.
13394
13395 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13396
13397 * ui-file.c (stdio_file::can_emit_style_escape)
13398 (tee_file::can_emit_style_escape): Ensure style is used also on
13399 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13400 to gdb_stdout.
13401 * main.c (set_gdb_data_directory): Use file style to output the
13402 warning that the given pathname is not a directory.
13403 * top.c (show_history_filename, gdb_safe_append_history)
13404 (show_gdb_datadir): Use file style.
13405
13406 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13407
13408 * solib-target.c (struct lm_info_target):
13409 Change offsets to be a unique_xmalloc_ptr.
13410 (solib_target_relocate_section_addresses): Update.
13411
13412 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13413
13414 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13415
13416 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13417
13418 * MAINTAINERS (Write After Approval): Add myself.
13419
13420 2020-01-02 Luis Machado <luis.machado@linaro.org>
13421
13422 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13423 Cell BE architecture.
13424 * target.h (struct target_ops) <thread_architecture>: Likewise.
13425
13426 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13427
13428 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13429
13430 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13431
13432 * MAINTAINERS (Write After Approval): Add myself.
13433
13434 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13435
13436 * gdbarch.sh: Update copyright year range of generated files.
13437
13438 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13439
13440 Update copyright year range in all GDB files.
13441
13442 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13443
13444 * copyright.py: Convert to Python 3.
13445
13446 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13447
13448 * copyright.py: Adapt after move of gnulib directory from gdb
13449 directory to toplevel directory.
13450
13451 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13452
13453 * copyright.py (main): Exit if run from the wrong directory.
13454
13455 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13456
13457 * top.c (print_gdb_version): Change copyright year to 2020.
13458
13459 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13460
13461 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13462
13463 For older changes see ChangeLog-2019.
13464 \f
13465 Local Variables:
13466 mode: change-log
13467 left-margin: 8
13468 fill-column: 74
13469 version-control: never
13470 coding: utf-8
13471 End: