gdb: Override store_sym_names_in_linkage_form_p for Go language
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * dwarf2/read.c (dwarf2_physname): Remove special case for
4 language_go.
5 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
6 member function.
7
8 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
9
10 * ada-lang.c (ada_language_data): Remove
11 la_store_sym_names_in_linkage_form_p initializer.
12 (ada_language::store_sym_names_in_linkage_form_p): New member
13 function.
14 * c-lang.c (c_language_data): Remove
15 la_store_sym_names_in_linkage_form_p initializer.
16 (c_language::store_sym_names_in_linkage_form_p): New member
17 function.
18 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
19 initializer.
20 (asm_language_data): Likewise.
21 (asm_language::store_sym_names_in_linkage_form_p): New member
22 function.
23 (minimal_language_data): Remove
24 la_store_sym_names_in_linkage_form_p initializer.
25 (minimal_language::store_sym_names_in_linkage_form_p): New member
26 function.
27 * d-lang.c (d_language_data): Remove
28 la_store_sym_names_in_linkage_form_p initializer.
29 * dwarf2/read.c (dwarf2_physname): Update call to
30 store_sym_names_in_linkage_form_p.
31 * f-lang.c (f_language_data): Remove
32 la_store_sym_names_in_linkage_form_p initializer.
33 * go-lang.c (go_language_data): Remove
34 la_store_sym_names_in_linkage_form_p initializer.
35 * language.c (unknown_language_data): Remove
36 la_store_sym_names_in_linkage_form_p initializer.
37 (unknown_language::store_sym_names_in_linkage_form_p): New member
38 function.
39 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
40 initializer.
41 (auto_language::store_sym_names_in_linkage_form_p): New member
42 function.
43 * language.h (language_data): Remove
44 la_store_sym_names_in_linkage_form_p member variable.
45 (language_defn::store_sym_names_in_linkage_form_p): New member
46 function.
47 * m2-lang.c (m2_language_data): Remove
48 la_store_sym_names_in_linkage_form_p initializer.
49 * objc-lang.c (objc_language_data): Likewise.
50 * opencl-lang.c (opencl_language_data): Likewise.
51 * p-lang.c (pascal_language_data): Likewise.
52 * rust-lang.c (rust_language_data): Likewise.
53
54 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
55
56 * ada-lang.c (ada_language_data): Remove string_lower_bound
57 initializer.
58 * c-lang.c (c_language_data): Likewise.
59 (cplus_language_data): Likewise.
60 (asm_language_data): Likewise.
61 (minimal_language_data): Likewise.
62 * d-lang.c (d_language_data): Likewise.
63 * f-lang.c (f_language_data): Likewise.
64 * go-lang.c (go_language_data): Likewise.
65 * language.c (unknown_language_data): Likewise.
66 (auto_language_data): Likewise.
67 * language.h (language_data): Remove string_lower_bound field.
68 (language_defn::string_lower_bound): New member function.
69 * m2-lang.c (m2_language_data): Remove string_lower_bound
70 initializer.
71 (m2_language::string_lower_bound): New member function.
72 * objc-lang.c (objc_language_data): Remove string_lower_bound
73 initializer.
74 * opencl-lang.c (opencl_language_data): Likewise.
75 * p-lang.c (pascal_language_data): Likewise.
76 * rust-lang.c (rust_language_data): Likewise.
77 * valops.c (value_cstring): Update call to string_lower_bound.
78 (value_string): Likewise.
79 * value.c (allocate_repeated_value): Likewise.
80
81 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
82
83 * valops.c (value_repeat): Fix incorrect argument name in comment.
84
85 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
86
87 * ada-lang.c (ada_language_data): Remove c_style_arrays
88 initializer.
89 (ada_language::c_style_arrays_p): New member fuction.
90 * c-lang.c (c_language_data): Remove c_style_arrays
91 initializer.
92 (cplus_language_data): Likewise.
93 (asm_language_data): Likewise.
94 (minimal_language_data): Likewise.
95 * d-lang.c (d_language_data): Likewise.
96 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
97 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
98 (f_language::c_style_arrays_p): New member function.
99 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
100 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
101 * language.c (unknown_language_data): Remove c_style_arrays
102 initializer.
103 (auto_language_data): Likewise.
104 * language.h (language_data): Remove c_style_arrays field.
105 (language_defn::c_style_arrays_p): New member function.
106 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
107 (m2_language::c_style_arrays_p): New member function.
108 * objc-lang.c (objc_language_data): Remove c_style_arrays
109 initializer.
110 * opencl-lang.c (opencl_language_data): Likewise.
111 * p-lang.c (pascal_language_data): Likewise.
112 * rust-lang.c (rust_language_data): Likewise.
113 * valarith.c (value_subscript): Update call to c_style_arrays_p,
114 and update local variable to a bool.
115 * valops.c (value_cast): Update call to c_style_arrays_p.
116 (value_array): Likewise.
117 * value.c (coerce_array): Likewise.
118
119 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
120
121 * ada-lang.c (ada_language_data): Remove la_language initializer.
122 * c-lang.c (c_language_data): Likewise.
123 (cplus_language_data): Likewise.
124 (asm_language_data): Likewise.
125 (minimal_language_data): Likewise.
126 * d-lang.c (d_language_data): Likewise.
127 * f-lang.c (f_language_data): Likewise.
128 * go-lang.c (go_language_data): Likewise.
129 * language.c (unknown_language_data): Likewise.
130 (auto_language_data): Likewise.
131 * language.h (language_data): Remove la_language field.
132 (language_defn::language_defn): Initialise la_language field.
133 (language_defn::la_language): New member variable.
134 * m2-lang.c (m2_language_data): Remove la_language field.
135 * objc-lang.c (objc_language_data): Likewise.
136 * opencl-lang.c (opencl_language_data): Likewise.
137 * p-lang.c (pascal_language_data): Likewise.
138 * rust-lang.c (rust_language_data): Likewise.
139
140 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * ada-lang.c (ada_extensions): Delete, moved into
143 ada_language::filename_extensions.
144 (ada_language_data): Remove la_filename_extensions initializer.
145 (ada_language::filename_extensions): New member function.
146 * c-lang.c (c_extensions): Delete, moved into
147 c_language::filename_extensions.
148 (c_language_data): Remove la_filename_extensions initializer.
149 (c_language::filename_extensions): New member function.
150 (cplus_extensions): Delete, moved into
151 cplus_language::filename_extensions.
152 (cplus_language_data): Remove la_filename_extensions initializer.
153 (cplus_language::filename_extensions): New member function.
154 (asm_extensions): Delete, moved into
155 asm_language::filename_extensions.
156 (asm_language_data): Remove la_filename_extensions initializer.
157 (asm_language::filename_extensions): New member function.
158 (minimal_language_data): Remove la_filename_extensions
159 initializer.
160 * d-lang.c (d_extensions): Delete, moved into
161 d_language::filename_extensions.
162 (d_language_data): Remove la_filename_extensions initializer.
163 (d_language::filename_extensions): New member function.
164 * f-lang.c (f_extensions): Delete, moved into
165 f_language::filename_extensions.
166 (f_language_data): Remove la_filename_extensions initializer.
167 (f_language::filename_extensions): New member function.
168 * go-lang.c (go_language_data): Remove la_filename_extensions
169 initializer.
170 * language.c (add_set_language_command): Update now that
171 filename_extensions returns a vector.
172 (unknown_language_data): Remove la_filename_extensions
173 initializer.
174 (auto_language_data): Likewise.
175 * language.h (language_data): Remove la_filename_extensions field.
176 (language_defn::filename_extensions): New member function.
177 * m2-lang.c (m2_language_data): Remove la_filename_extensions
178 initializer.
179 * objc-lang.c (objc_extensions): Delete, moved into
180 objc_language::filename_extensions.
181 (objc_language_data): Remove la_filename_extensions initializer.
182 (objc_language::filename_extensions): New member function.
183 * opencl-lang.c (opencl_language_data): Remove
184 la_filename_extensions initializer.
185 * p-lang.c (pascal_extensions): Delete, moved into
186 pascal_language::filename_extensions.
187 (pascal_language_data): Remove la_filename_extensions initializer.
188 (pascal_language::filename_extensions): New member function.
189 * rust-lang.c (rust_extensions): Delete, moved into
190 rust_language::filename_extensions.
191 (rust_language_data): Remove la_filename_extensions initializer.
192 (rust_language::filename_extensions): New member function.
193 * symfile.c (add_filename_language): Add new assert.
194
195 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * ada-lang.c (ada_language_data): Remove la_name and
198 la_natural_name initializers.
199 (ada_language::name): New member function.
200 (ada_language::natural_name): New member function.
201 * c-lang.c (c_language_data): Remove la_name and
202 la_natural_name initializers.
203 (c_language::name): New member function.
204 (c_language::natural_name): New member function.
205 (cplus_language_data): Remove la_name and
206 la_natural_name initializers.
207 (cplus_language::name): New member function.
208 (cplus_language::natural_name): New member function.
209 (asm_language_data): Remove la_name and
210 la_natural_name initializers.
211 (asm_language::name): New member function.
212 (asm_language::natural_name): New member function.
213 (minimal_language_data): Remove la_name and
214 la_natural_name initializers.
215 (minimal_language::name): New member function.
216 (minimal_language::natural_name): New member function.
217 * compile/compile.c (compile_to_object): Update call to
218 lanugage_defn::name.
219 * d-lang.c (d_language_data): Remove la_name and
220 la_natural_name initializers.
221 (d_language::name): New member function.
222 (d_language::natural_name): New member function.
223 * expprint.c (print_subexp_standard): Update call to
224 language_defn::name.
225 (dump_raw_expression): Likewise
226 (dump_prefix_expression): Likewise.
227 * f-lang.c (f_language_data): Remove la_name and
228 la_natural_name initializers.
229 (f_language::name): New member function.
230 (f_language::natural_name): New member function.
231 * go-lang.c (go_language_data): Remove la_name and
232 la_natural_name initializers.
233 (go_language::name): New member function.
234 (go_language::natural_name): New member function.
235 * language.c (show_language_command): Update call to
236 language_defn::name.
237 (set_language_command): Likewise.
238 (language_enum): Likewise.
239 (language_str): Likewise.
240 (add_set_language_command): Likewise, use
241 language_defn::natural_name in the doc string.
242 (unknown_language_data): Remove la_name and
243 la_natural_name initializers.
244 (unknown_language::name): New member function.
245 (unknown_language::natural_name): New member function.
246 (auto_language_data): Remove la_name and
247 la_natural_name initializers.
248 (auto_language::name): New member function.
249 (auto_language::natural_name): New member function.
250 (language_lookup_primitive_type_as_symbol): Update call to
251 language_defn::name.
252 * language.h (language_data): Remove la_name and la_natural_name
253 member variables.
254 (language_defn::name): New member function.
255 (language_defn::natural_name): New member function.
256 * m2-lang.c (m2_language_data): Remove la_name and
257 la_natural_name initializers.
258 (m2_language::name): New member function.
259 (m2_language::natural_name): New member function.
260 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
261 language_defn::natural_name.
262 * objc-lang.c (objc_language_data): Remove la_name and
263 la_natural_name initializers.
264 (objc_language::name): New member function.
265 (objc_language::natural_name): New member function.
266 * opencl-lang.c (opencl_language_data): Remove la_name and
267 la_natural_name initializers.
268 (opencl_language::name): New member function.
269 (opencl_language::natural_name): New member function.
270 * p-lang.c (pascal_language_data): Remove la_name and
271 la_natural_name initializers.
272 (pascal_language::name): New member function.
273 (pascal_language::natural_name): New member function.
274 * rust-lang.c (rust_language_data): Remove la_name and
275 la_natural_name initializers.
276 (rust_language::name): New member function.
277 (rust_language::natural_name): New member function.
278 * symtab.c (lookup_language_this): Update call to
279 language_defn::name.
280
281 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * ada-lang.c (ada_language_data): Remove la_name_of_this
284 initializer.
285 * ax-gdb.c (gen_expr): Update call to name_of_this.
286 * c-exp.y (classify_name): Likewise.
287 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
288 (cplus_language_data): Likewise.
289 (cplus_language::name_of_this): New member function.
290 (asm_language_data): Remove la_name_of_this initializer.
291 (minimal_language_data): Likewise.
292 * d-lang.c (d_language_data): Likewise.
293 (d_language::name_of_this): New member function.
294 * expprint.c (print_subexp_standard): Update call to name_of_this.
295 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
296 * go-lang.c (go_language_data): Likewise.
297 * language.c (unknown_language_data): Likewise.
298 (unknown_language::name_of_this): New member function.
299 (auto_language_data): Remove la_name_of_this initializer.
300 (auto_language::name_of_this): New member function.
301 * language.h (language_data): Delete la_name_of_this member
302 variable.
303 (language_defn::name_of_this): New member function.
304 * m2-lang.c (m2_language_data): Remove la_name_of_this
305 initializer.
306 * objc-lang.c (objc_language_data): Likewise.
307 (objc_language::name_of_this): New member function.
308 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
309 initializer.
310 * p-lang.c (pascal_language_data): Likewise.
311 (pascal_language::name_of_this): New member function.
312 * rust-lang.c (rust_language_data): Remove la_name_of_this
313 initializer.
314 * symtab.c (lookup_language_this): Update call to name_of_this.
315 (lookup_symbol_aux): Likewise.
316 * valops.c (value_of_this): Likewise.
317
318 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * ada-lang.c (ada_language_data): Remove
321 la_struct_too_deep_ellipsis initializer.
322 (ada_language::struct_too_deep_ellipsis): New member function.
323 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
324 initializer.
325 (cplus_language_data): Likewise.
326 (asm_language_data): Likewise.
327 (minimal_language_data): Likewise.
328 * cp-valprint.c (cp_print_value): Update call to
329 struct_too_deep_ellipsis.
330 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
331 initializer.
332 * f-lang.c (f_language_data): Likewise.
333 (f_language::struct_too_deep_ellipsis): New member function.
334 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
335 initializer.
336 * language.c (unknown_language_data): Likewise.
337 (auto_language_data): Likewise.
338 * language.h (language_data): Delete la_struct_too_deep_ellipsis
339 member variable.
340 (language_defn::struct_too_deep_ellipsis): New member function.
341 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
342 initializer.Q
343 * objc-lang.c (objc_language_data): Likewise.
344 * opencl-lang.c (opencl_language_data): Likewise.
345 * p-lang.c (pascal_language_data): Likewise.
346 * rust-lang.c (rust_language_data): Likewise.
347 * valprint.c (val_print_check_max_depth): Update call to
348 struct_too_deep_ellipsis.
349
350 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
351
352 * MAINTAINERS (Write After Approval): Add myself.
353
354 2020-09-15 Tom Tromey <tom@tromey.com>
355
356 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
357 Remove.
358
359 2020-09-15 Tom Tromey <tom@tromey.com>
360
361 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
362 and TYPE_CODE_METHODPTR cases.
363 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
364 (c_value_print_inner): Update.
365 * valprint.c (generic_value_print_memberptr): New function, from
366 c_value_print_memberptr.
367 (generic_value_print): Use it. Call cplus_print_method_ptr.
368
369 2020-09-15 Tom Tromey <tromey@adacore.com>
370
371 * python/python-internal.h (PyInt_FromLong): Remove define.
372 * python/py-value.c (convert_value_from_python): Use
373 gdb_py_object_from_longest.
374 * python/py-type.c (typy_get_code): Use
375 gdb_py_object_from_longest.
376 * python/py-symtab.c (salpy_get_line): Use
377 gdb_py_object_from_longest.
378 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
379 gdb_py_object_from_longest.
380 * python/py-record.c (recpy_gap_reason_code): Use
381 gdb_py_object_from_longest.
382 * python/py-record-btrace.c (recpy_bt_insn_size)
383 (recpy_bt_func_level, btpy_list_count): Use
384 gdb_py_object_from_longest.
385 * python/py-infthread.c (gdbpy_create_ptid_object): Use
386 gdb_py_object_from_longest. Fix error handling.
387 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
388 gdb_py_object_from_longest.
389 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
390 gdb_py_object_from_longest.
391 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
392 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
393 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
394
395 2020-09-15 Tom Tromey <tromey@adacore.com>
396
397 * python/python.c (gdbpy_parameter_value): Use
398 gdb_py_object_from_ulongest.
399
400 2020-09-15 Tom Tromey <tromey@adacore.com>
401
402 * python/py-infevents.c (create_register_changed_event_object):
403 Use gdb_py_object_from_longest.
404 * python/py-exitedevent.c (create_exited_event_object): Use
405 gdb_py_object_from_longest.
406
407 2020-09-15 Tom Tromey <tromey@adacore.com>
408
409 * python/python.c (gdbpy_parameter_value): Use
410 gdb_py_object_from_longest.
411 * python/py-type.c (convert_field, typy_range): Use
412 gdb_py_object_from_longest.
413 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
414 gdb_py_object_from_longest.
415 * python/py-lazy-string.c (stpy_get_length): Use
416 gdb_py_object_from_longest.
417 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
418 gdb_py_object_from_longest.
419 * python/py-infevents.c (create_memory_changed_event_object): Use
420 gdb_py_object_from_longest.
421 * python/py-inferior.c (infpy_get_num): Use
422 gdb_py_object_from_longest.
423 (infpy_get_pid): Likewise.
424
425 2020-09-15 Tom Tromey <tromey@adacore.com>
426
427 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
428 defines.
429 * python/py-value.c (valpy_long): Use
430 gdb_py_object_from_ulongest.
431 * python/py-symtab.c (salpy_get_pc): Use
432 gdb_py_object_from_ulongest.
433 (salpy_get_last): Likewise.
434 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
435 gdb_py_object_from_ulongest.
436 * python/py-lazy-string.c (stpy_get_address): Use
437 gdb_py_object_from_ulongest.
438 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
439 * python/py-arch.c (archpy_disassemble): Use
440 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
441 error handling.
442
443 2020-09-15 Tom Tromey <tromey@adacore.com>
444
445 * python/python-internal.h (gdb_py_long_from_longest): Remove
446 defines.
447 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
448 * python/py-type.c (convert_field, typy_get_sizeof): Use
449 gdb_py_object_from_longest.
450 * python/py-record-btrace.c (btpy_list_index): Use
451 gdb_py_object_from_longest.
452
453 2020-09-15 Tom Tromey <tromey@adacore.com>
454
455 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
456 * python/py-record.c (recpy_element_number): Use
457 gdb_py_object_from_longest.
458 (recpy_gap_number): Likewise.
459
460 2020-09-15 Tom Tromey <tromey@adacore.com>
461
462 * top.c (ui::ui): Update.
463 (highest_ui_num): Remove.
464 * top.h (struct ui) <num>: Remove.
465
466 2020-09-15 Tom Tromey <tromey@adacore.com>
467
468 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
469 * ui-style.c (ansi_regex_text): Now array.
470 * rust-exp.y (number_regex_text): Now array.
471 * linespec.c (linespec_quote_characters): Now array.
472 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
473 Now arrays.
474
475 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
476
477 * debuginfod-support.c (debuginfod_client_deleter): New.
478 (debuginfod_client_up): New.
479 (debuginfod_init): Return debuginfod_client_up.
480 (debuginfod_source_query): Adjust.
481 (debuginfod_debuginfo_query): Adjust.
482
483 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * debuginfod-support.c (debuginfod_source_query): Use
486 make_unique_xstrdup.
487
488 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
489
490 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
491 with `type::instance_flags`.
492
493 2020-09-14 Michael Mullin <masmullin@gmail.com>
494
495 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
496 Remove baton parameter.
497
498 2020-09-14 Pedro Alves <pedro@palves.net>
499
500 * Makefile.in (SELFTESTS_SRCS): Add
501 unittests/enum-flags-selftests.c.
502 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
503 btrace_function_flags instead of enum btrace_function_flag.
504 * compile/compile-c-types.c (convert_qualified): Use
505 enum_flags::raw.
506 * compile/compile-cplus-symbols.c (convert_one_symbol)
507 (convert_symbol_bmsym):
508 * compile/compile-cplus-types.c (compile_cplus_convert_method)
509 (compile_cplus_convert_struct_or_union_methods)
510 (compile_cplus_instance::convert_qualified_base):
511 * go-exp.y (parse_string_or_char): Add cast to int.
512 * unittests/enum-flags-selftests.c: New file.
513 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
514 type to btrace_thread_flags from btrace_thread_flag.
515 (record_btrace_cancel_resume, record_btrace_step_thread): Change
516 local's type to btrace_thread_flags from btrace_thread_flag. Add
517 cast in DEBUG call.
518
519 2020-09-14 Pedro Alves <pedro@palves.net>
520
521 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
522 * gdbtypes.c (address_space_name_to_int): Rename to ...
523 (address_space_name_to_type_instance_flags): ... this.
524 (address_space_int_to_name): Rename to ...
525 (address_space_type_instance_flags_to_name): ... this.
526 * gdbtypes.h (address_space_name_to_int): Rename to ...
527 (address_space_name_to_type_instance_flags): ... this.
528 (address_space_int_to_name): Rename to ...
529 (address_space_type_instance_flags_to_name): ... this.
530 * type-stack.c (type_stack::insert): Adjust to rename.
531 * type-stack.h (type_stack::insert): Likewise.
532
533 2020-09-14 Pedro Alves <pedro@palves.net>
534 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * avr-tdep.c (avr_address_class_type_flags): Return
537 type_instance_flags.
538 (avr_address_class_type_flags_to_name): Take a
539 type_instance_flags.
540 (avr_address_class_name_to_type_flags): Return bool and take a
541 type_instance_flags.
542 * d-lang.c (build_d_types): Use type::set_instance_flags.
543 * ft32-tdep.c (ft32_address_class_type_flags): Return
544 type_instance_flags.
545 (ft32_address_class_type_flags_to_name): Take a
546 type_instance_flags.
547 (ft32_address_class_name_to_type_flags): Return bool and take a
548 type_instance_flags.
549 (ft32_gdbarch_init): Use type::set_instance_flags.
550 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
551 * gdbarch.h, gdbarch.c: Regenerate.
552 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
553 (address_class_name_to_type_flags): Use type_instance_flags and
554 bool.
555 * gdbtypes.c (address_space_name_to_int)
556 (address_space_int_to_name, make_qualified_type): Use
557 type_instance_flags.
558 (make_qualified_type): Use type_instance_flags and
559 type::set_instance_flags.
560 (make_type_with_address_space, make_cv_type, make_vector_type)
561 (check_typedef): Use type_instance_flags.
562 (recursive_dump_type): Cast type_instance_flags to unsigned for
563 printing.
564 (copy_type_recursive): Use type::set_instance_flags.
565 (gdbtypes_post_init): Use type::set_instance_flags.
566 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
567 <m_instance_flags>: ... this.
568 <instance_flags, set_instance_flags>: New methods.
569 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
570 (SET_TYPE_INSTANCE_FLAGS): New.
571 (address_space_name_to_int, address_space_int_to_name)
572 (make_type_with_address_space): Pass flags using
573 type_instance_flags instead of int.
574 * stabsread.c (cleanup_undefined_types_noname): Use
575 type::set_instance_flags.
576 * s390-tdep.c (s390_address_class_type_flags): Return
577 type_instance_flags.
578 (s390_address_class_type_flags_to_name): Take a
579 type_instance_flags.
580 (s390_address_class_name_to_type_flags): Return bool and take a
581 type_instance_flags.
582 * type-stack.c (type_stack::follow_types): Use
583 type_instance_flags.
584 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
585
586 2020-09-14 Tom Tromey <tromey@adacore.com>
587
588 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
589 * x86-tdep.c (x86_is_thunk_register_name)
590 (x86_in_indirect_branch_thunk): Update.
591 * sparc64-tdep.c (sparc64_fpu_register_names)
592 (sparc64_cp0_register_names, sparc64_register_names)
593 (sparc64_pseudo_register_names): Now const.
594 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
595 cp0_registers_num>: Now const.
596 * sparc-tdep.c (sparc_core_register_names)
597 (sparc32_fpu_register_names, sparc32_cp0_register_names)
598 (sparc32_pseudo_register_names): Now const.
599 (validate_tdesc_registers): Update.
600 * rust-lang.c (rust_extensions): Now const.
601 * p-lang.c (p_extensions): Now const.
602 * objc-lang.c (objc_extensions): Now const.
603 * nto-tdep.c (nto_thread_state_str): Now const.
604 * moxie-tdep.c (moxie_register_names): Now const.
605 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
606 Now const.
607 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
608 (mips_linux_reg_names): Now const.
609 (mips_gdbarch_init): Update.
610 * microblaze-tdep.c (microblaze_register_names): Now const.
611 * m68k-tdep.c (m68k_register_names): Now const.
612 * m32r-tdep.c (m32r_register_names): Now const.
613 * ia64-tdep.c (ia64_register_names): Now const.
614 * i386-tdep.h (struct gdbarch_tdep) <register_names,
615 ymmh_register_names, ymm16h_regnum, mpx_register_names,
616 k_register_names, zmmh_register_names, xmm_avx512_register_names,
617 ymm_avx512_register_names, pkeys_register_names>: Now const.
618 * i386-tdep.c (i386_register_names, i386_zmm_names)
619 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
620 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
621 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
622 * f-lang.c (f_extensions): Now const.
623 * d-lang.c (d_extensions): Now const.
624 * csky-tdep.c (csky_register_names): Now const.
625 * charset.c (default_charset_names, charset_enum): Now const.
626 (_initialize_charset): Update.
627 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
628 const.
629 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
630 (bsd_uthread_solib_loaded): Update.
631 (bsd_uthread_state): Now const.
632 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
633 (amd64_ymm_avx512_names, amd64_ymmh_names)
634 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
635 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
636 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
637 (amd64_dword_names): Now const.
638 * agent.c (can_use_agent_enum): Now const.
639 * ada-tasks.c (task_states, long_task_states): Now const.
640 * ada-lang.c (known_runtime_file_name_patterns)
641 (known_auxiliary_function_name_patterns, attribute_names)
642 (standard_exc, ada_extensions): Now const.
643
644 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
645
646 * bcache.h (struct bcache) <bcache>: Remove constructor.
647 <m_hash_function, m_compare_function>: Remove.
648 <~bcache>: Make virtual.
649 <compare>: Remove static method, introduce virtual method.
650 <default_hash>: Remove.
651 <hash>: New virtual method.
652 * bcache.c (bcache::expand_hash_table): Update.
653 (bcache::insert): Update.
654 (bcache::hash): New.
655 (bcache::compare): Update comment and parameter names.
656 * gdbtypes.c (types_deeply_equal): Update.
657 * psymtab.h (struct psymbol_bcache): New struct.
658 (class psymtab_storage) <psymtab_storage>: Make default.
659 <psymbol_cache>: Change type to psymbol_bcache.
660 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
661 (psymbol_hash): Change to...
662 (psymbol_bcache::hash): ... this.
663 (psymbol_compare): Change to...
664 (psymbol_bcache::compare): ... this.
665
666 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
667
668 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
669 checking for initial lwp.
670
671 2020-09-14 Tom Tromey <tromey@adacore.com>
672
673 * m68k-tdep.c (m68k_extract_return_value): Use
674 pointer_result_regnum.
675 (m68k_store_return_value): Likewise.
676 (m68k_reg_struct_return_p): Handle vectors and arrays.
677 (m68k_return_value): Handle arrays.
678 (m68k_svr4_return_value): Fix single-element aggregate handling.
679 Handle long double. Adjust for embedded ABI.
680 (m68k_svr4_init_abi): Set pointer_result_regnum.
681 (m68k_embedded_init_abi): New function.
682 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
683 (m68k_osabi_sniffer): New function.
684 (_initialize_m68k_tdep): Register osabi sniffer.
685 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
686 member.
687
688 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
689
690 * xml-support.c (xml_fetch_content_from_file): Replace xfree
691 with gdb::unique_xmalloc_ptr<char>.
692
693 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * xml-support.h (xml_fetch_another): Change type to be a
696 function_view.
697 (xml_process_xincludes): Remove baton parameter.
698 (xml_fetch_content_from_file): Change baton parameter to
699 dirname.
700 * xml-support.c (struct xinclude_parsing_data)
701 <xinclude_parsing_data>: Remove baton parameter.
702 <fetcher_baton>: Remove.
703 (xinclude_start_include): Adjust.
704 (xml_process_xincludes): Adjust.
705 (xml_fetch_content_from_file): Replace baton parameter with
706 dirname.
707 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
708 (xml_init_syscalls_info): Use a lambda.
709 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
710 (file_read_description_xml): Use a lambda.
711 (fetch_available_features_from_target): Change baton parameter
712 to target_ops.
713 (target_read_description_xml): Use a lambda.
714 (target_fetch_description_xml): Use a lambda.
715 (string_read_description_xml): Update.
716
717 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
718
719 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
720 uses with type::endianity_is_not_default.
721
722 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
723
724 * gdbtypes.h (struct type) <endianity_is_not_default,
725 set_endianity_is_not_default>: New methods.
726 (TYPE_ENDIANITY_NOT_DEFAULT): Use
727 type::endianity_is_not_default, change all write call sites to
728 use type::set_endianity_is_not_default.
729
730 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
731
732 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
733 uses with type::is_fixed_instance.
734
735 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
736
737 * gdbtypes.h (struct type) <is_fixed_instance,
738 set_is_fixed_instance>: New methods.
739 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
740 write call sites to use type::set_is_fixed_instance.
741
742 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
743
744 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
745 uses with type::is_gnu_ifunc.
746
747 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
748
749 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
750 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
751 use type::set_is_gnu_ifunc.
752
753 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
754
755 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
756 uses with type::stub_is_supported.
757
758 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
759
760 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
761 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
762 use type::set_stub_is_supported.
763
764 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
765
766 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
767 uses with type::is_vector.
768
769 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
770
771 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
772 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
773 use type::set_is_vector.
774
775 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
776
777 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
778 uses with type::has_varargs.
779
780 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
781
782 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
783 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
784 use type::set_has_varargs.
785
786 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
787
788 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
789 uses with type::is_prototyped.
790
791 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
792
793 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
794 New methods.
795 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
796 call sites to use type::set_is_prototyped.
797
798 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
799
800 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
801 uses with type::target_is_stub.
802
803 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
804
805 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
806 New methods.
807 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
808 sites to use type::set_target_is_stub.
809
810 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
811
812 * gdbtypes.h (TYPE_STUB): Remove, replace all
813 uses with type::is_stub.
814
815 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
816
817 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
818 (TYPE_STUB): Use type::is_stub, change all write call sites to
819 use type::set_is_stub.
820
821 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
822
823 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
824 type::has_no_signedness.
825
826 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
827
828 * gdbtypes.h (struct type) <has_no_signedness,
829 set_has_no_signedness>: New methods.
830 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
831 call sites to use type::set_has_no_signedness.
832
833 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
834
835 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
836 type::is_unsigned.
837
838 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
839
840 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
841 methods.
842 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
843 sites to use type::set_is_unsigned.
844
845 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
846 Adam Renquinha <arenquinha@cimeq.qc.ca>
847
848 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
849 pointer and stack frame offset when unwinding.
850
851 2020-09-13 Pedro Alves <pedro@palves.net>
852
853 * NEWS: Document "-break-insert --qualified".
854 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
855
856 2020-09-13 Pedro Alves <pedro@palves.net>
857
858 * linespec.c (classify_mtype, compare_msyms): Delete.
859 (search_minsyms_for_name): Remove classification logic. Instead
860 filter out trampoline symbols if we also found an external
861 function of the same name.
862
863 2020-09-13 Joel Brobecker <brobecker@adacore.com>
864
865 * NEWS: Create a new section for the next release branch.
866 Rename the section of the current branch, now that it has
867 been cut.
868
869 2020-09-13 Joel Brobecker <brobecker@adacore.com>
870
871 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
872 * version.in: Bump version to 11.0.50.DATE-git.
873
874 2020-09-12 Joel Brobecker <brobecker@adacore.com>
875
876 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
877
878 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
879 Felix Willgerodt <Felix.Willgerodt@intel.com>
880
881 * gdbarch.sh: Added bfloat16 type.
882 * gdbarch.c: Regenerated.
883 * gdbarch.h: Regenerated.
884 * gdbtypes.c (floatformats_bfloat16): New struct.
885 (gdbtypes_post_init): Add builtin_bfloat16.
886 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
887 (floatformats_bfloat16): New struct.
888 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
889 (i386_ymm_type): Add field "v16_bfloat16"
890 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
891 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
892 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
893 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
894 * features/i386/64bit-avx512.xml: Add bfloat16 type.
895 * features/i386/64bit-avx512.c: Regenerated.
896 * features/i386/64bit-sse.xml: Add bfloat16 type.
897 * features/i386/64bit-sse.c: Regenerated.
898
899 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
900
901 * i386-tdep.c (i386_zmm_type): Fix field names.
902 (i386_ymm_type): Fix field names.
903
904 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
905
906 * breakpoint.c: Fix typo in the help message of the
907 "set breakpoint condition-evaluation" command.
908
909 2020-09-10 Kamil Rytarowski <n54@gmx.com>
910
911 * nbsd-nat.c: Include "nat/netbsd-nat.h".
912 * (nbsd_nat_target::pid_to_exec_file)
913 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
914 (nbsd_nat_target::post_startup_inferior)
915 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
916 (nbsd_add_threads): Switch local code to common gdb/nat functions.
917 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
918 * (nbsd_thread_lister): Remove.
919
920 2020-09-10 Kamil Rytarowski <n54@gmx.com>
921
922 * fork-inferior.c (startup_inferior): Avoid double free.
923
924 2020-09-10 Kamil Rytarowski <n54@gmx.com>
925
926 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
927 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
928
929 2020-09-10 Kamil Rytarowski <n54@gmx.com>
930
931 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
932 * netbsd-nat.c: Include <sys/ptrace.h>.
933 * (netbsd_nat::enable_proc_events): Add.
934
935 2020-09-10 Kamil Rytarowski <n54@gmx.com>
936
937 * netbsd-nat.h: Include "gdbsupport/function-view.h".
938 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
939 (netbsd_nat::for_each_thread): Add.
940 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
941 "gdbsupport/common-debug.h".
942 * (netbsd_nat::netbsd_thread_lister)
943 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
944 (netbsd_nat::for_each_thread): Add.
945
946 2020-09-10 Kamil Rytarowski <n54@gmx.com>
947
948 * netbsd-nat.h: Include <unistd.h>.
949 * (netbsd_nat::pid_to_exec_file): Add.
950 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
951 * (netbsd_nat::pid_to_exec_file) Add.
952
953 2020-09-10 Kamil Rytarowski <n54@gmx.com>
954
955 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
956
957 2020-09-10 Kamil Rytarowski <n54@gmx.com>
958
959 * netbsd-nat.h: New file.
960 * netbsd-nat.c: Likewise.
961
962 2020-09-09 Tom Tromey <tromey@adacore.com>
963
964 * ada-lang.c (remove_extra_symbols): Do not increment when
965 removing an element
966
967 2020-09-08 Tom Tromey <tromey@adacore.com>
968
969 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
970
971 2020-09-08 Tom Tromey <tromey@adacore.com>
972
973 PR win32/25302:
974 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
975 (gdb_bfd_init_data): New function.
976 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
977
978 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
979
980 * infrun.c (fetch_inferior_event): Use
981 `switch_to_target_no_thread` to switch the target.
982
983 2020-09-06 Tom Tromey <tom@tromey.com>
984
985 * symfile.h (dwarf2_free_objfile): Don't declare.
986
987 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
988
989 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
990 to match 16 byte real/complex type generated by Flang compiler.
991
992 2020-09-03 Tom de Vries <tdevries@suse.de>
993
994 PR breakpoint/26546
995 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
996 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
997
998 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
999
1000 * maint.c (index_digits): New function.
1001 (struct maint_print_section_data): Remove.
1002 (print_bfd_section_info): Remove print_data parameter, add arg
1003 and index_digits.
1004 (print_objfile_section_info): Likewise.
1005 (print_bfd_section_info_maybe_relocated): Likewise (plus
1006 objfile).
1007 (maintenance_info_sections): Adjust calls.
1008
1009 2020-09-02 Tom Tromey <tromey@adacore.com>
1010
1011 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1012 for null pointers.
1013 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1014
1015 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * bcache.h (struct bcache) <insert>: Change type of `added` to
1018 pointer to bool.
1019 * bcache.c (bcache::insert): Likewise.
1020 * gdbtypes.c (check_types_worklist): Adjust.
1021 * psymtab.c (add_psymbol_to_bcache): Adjust.
1022
1023 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1024
1025 * corelow.c (unordered_set): Include.
1026 (class core_target): Add field 'm_core_unavailable_mappings'.
1027 (core_target::build_file_mappings): Print only one warning
1028 per inaccessible file. Add unavailable/broken mappings
1029 to m_core_unavailable_mappings.
1030 (core_target::xfer_partial): Call...
1031 (core_target::xfer_memory_via_mappings): New method.
1032
1033 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1034
1035 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1036 type to bool.
1037
1038 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1039
1040 * dwarf2/read.c (struct field_info): Fix indentation.
1041
1042 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1045 ordering in comment.
1046 * frame.c (frame_id_eq): Fix indentation.
1047
1048 2020-08-31 Scott Linder <scott@scottlinder.com>
1049 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1052 inline frame ids in outer frame.
1053
1054 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1055
1056 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1057 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1058 (outer_frame_id): Use FID_STACK_OUTER instead of
1059 FID_STACK_INVALID.
1060 (frame_id_p): Don't check for outer_frame_id.
1061
1062 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1063
1064 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1065 regnum/frame in value. Call allocate_value_lazy.
1066 * frame.c (frame_unwind_register_value): Use
1067 val_print_not_saved.
1068
1069 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1072
1073 2020-08-29 Pedro Alves <pedro@palves.net>
1074
1075 * progspace.c (print_program_space): Use all_inferiors. Switch to
1076 the inferior before calling target_pid_to_str.
1077
1078 2020-08-28 Tom Tromey <tom@tromey.com>
1079
1080 * xcoffread.c (xcoff_end_psymtab): Update comment.
1081 * dbxread.c (dbx_end_psymtab): Update comment.
1082
1083 2020-08-28 Tom de Vries <tdevries@suse.de>
1084
1085 PR breakpoint/26544
1086 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1087 event_location.
1088 (create_breakpoint): Same.
1089 (base_breakpoint_decode_location): Same.
1090 (bkpt_create_sals_from_location): Same.
1091 (bkpt_decode_location): Same.
1092 (bkpt_probe_create_sals_from_location): Same.
1093 (bkpt_probe_decode_location): Same.
1094 (tracepoint_create_sals_from_location): Same.
1095 (tracepoint_decode_location): Same.
1096 (tracepoint_probe_decode_location): Same.
1097 (strace_marker_create_sals_from_location): Same.
1098 (strace_marker_decode_location): Same.
1099 (create_sals_from_location_default): Same.
1100 (decode_location_default): Same.
1101 * breakpoint.h (struct breakpoint_ops): Same.
1102 (create_breakpoint): Same.
1103 * linespec.h (decode_line_full): Same.
1104 * linespec.c (decode_line_full): Same. Throw error if
1105 result.size () == 0.
1106
1107 2020-08-27 Pedro Alves <pedro@palves.net>
1108
1109 PR gdb/26524
1110 * breakpoint.c (until_break_fsm) <location_breakpoint,
1111 caller_breakpoint>: Delete fields.
1112 <breakpoints>: New field.
1113 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1114 two individual breakpoints.
1115 (until_break_fsm::should_stop): Loop over breakpoints in the
1116 breakpoint vector.
1117 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1118 vector.
1119 (until_break_command): Handle location expanding into multiple
1120 sals.
1121
1122 2020-08-27 Pedro Alves <pedro@palves.net>
1123
1124 PR gdb/26523
1125 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1126 bp_until breakpoints user-specified locations. Update intro
1127 comment.
1128
1129 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1132 gdb_bfd_sections): New.
1133 * maint.c (print_bfd_section_info): Change param type to
1134 maint_print_section_data.
1135 (print_objfile_section_info): Likewise.
1136 (print_bfd_section_info_maybe_relocated): Likewise.
1137 (maintenance_info_sections): Use gdb_bfd_sections.
1138
1139 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1140
1141 * MAINTAINERS: Add ARC target and maintainer.
1142
1143 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1144
1145 * configure.tgt: ARC support for GNU/Linux.
1146 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1147 * arc-linux-tdep.c: New file.
1148 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1149 * arc-tdep.c (arc_write_pc): Use it.
1150
1151 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1152
1153 * arc-tdep.c (arc_check_for_hardware_loop): New.
1154 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1155
1156 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1157
1158 * arc-tdep.h: Include "gdbarch.h".
1159
1160 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1161
1162 * arch/arc.h
1163 (arc_gdbarch_features): New class to stir the selection of target XML.
1164 (arc_create_target_description): Use FEATURES to choose XML target.
1165 (arc_lookup_target_description): Use arc_create_target_description
1166 to create _new_ target descriptions or return the already created
1167 ones if the FEATURES is the same.
1168 * arch/arc.c: Implementation of prototypes described above.
1169 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1170 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1171 * arc-tdep.c (*_feature_name): Make feature names consistent.
1172 (arc_register_feature): A new struct to hold information about
1173 registers of a particular target/feature.
1174 (arc_check_tdesc_feature): Check if XML provides registers in
1175 compliance with ARC_REGISTER_FEATURE structs.
1176 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1177 (determine_*_reg_feature_set): Which feature name to look for.
1178 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1179 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1180 to expected ISA enums to be used in arc_gdbarch_features structs.
1181 * features/Makefile (FEATURE_XMLFILES): Add new files.
1182 * gdb/features/arc/v1-aux.c: New file.
1183 * gdb/features/arc/v1-aux.xml: Likewise.
1184 * gdb/features/arc/v1-core.c: Likewise.
1185 * gdb/features/arc/v1-core.xml: Likewise.
1186 * gdb/features/arc/v2-aux.c: Likewise.
1187 * gdb/features/arc/v2-aux.xml: Likewise.
1188 * gdb/features/arc/v2-core.c: Likewise.
1189 * gdb/features/arc/v2-core.xml: Likewise.
1190 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1191
1192 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1193 Andrew Burgess <andrew.burgess@embecosm.com>
1194
1195 PR m2/26372
1196 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1197 an assert. Remove single element array indexing pattern as the
1198 MULTI_SUBSCRIPT support will handle this case too.
1199
1200 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * value.h (valprint_check_validity): Move declaration from
1203 here...
1204 * valprint.h (valprint_check_validity): ... to here.
1205
1206 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1207
1208 * debug.h: New file.
1209 * debug.c (debug_prefixed_vprintf): New function.
1210 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1211 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1212
1213 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1214
1215 * infrun.h (infrun_debug_printf_1): New function declaration.
1216 (infrun_debug_printf): New macro.
1217 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1218 throughout.
1219 (infrun_debug_printf): New function.
1220 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1221 (handle_jit_event): Likewise.
1222
1223 2020-08-21 Mark Wielaard <mark@klomp.org>
1224
1225 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1226
1227 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1228
1229 * frame.c (enum class frame_id_status): New.
1230 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1231 (fprintf_frame): Update.
1232 (compute_frame_id): Set frame id status to "computing" on entry.
1233 Set it back to "not_computed" on failure and to "computed" on
1234 success.
1235 (get_frame_id): Assert the frame id is not being computed.
1236 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1237 (create_new_frame): Likewise.
1238 (frame_cleanup_after_sniffer): Update assert.
1239
1240 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * regcache.c (pid_ptid_regcache_map): New type.
1243 (target_ptid_regcache_map): Remove.
1244 (target_pid_ptid_regcache_map): New type.
1245 (regcaches): Change type to target_pid_ptid_regcache_map.
1246 (get_thread_arch_aspace_regcache): Update.
1247 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1248 case.
1249 (regcaches_size): Update.
1250 (regcache_count): Update.
1251 (registers_changed_ptid_target_pid_test): New.
1252 (_initialize_regcache): Register new test.
1253
1254 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * regcache.c (regcache_count): New.
1257 (struct regcache_test_data): New.
1258 (regcache_test_data_up): New.
1259 (populate_regcaches_for_test): New.
1260 (regcaches_test): Remove.
1261 (get_thread_arch_aspace_regcache_test): New.
1262 (registers_changed_ptid_all_test): New.
1263 (registers_changed_ptid_target_test): New.
1264 (registers_changed_ptid_target_ptid_test): New.
1265 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1266 (_initialize_regcache): Register new tests.
1267
1268 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1269
1270 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1271 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1272 gdbarch and aspace parameter. Use current inferior's aspace.
1273 Validate regcache's arch value.
1274 (regcaches_test): Update.
1275
1276 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1277
1278 * regcache.c (regcaches_test): Call registers_changed.
1279
1280 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1281
1282 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1283
1284 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1285
1286 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1287 to find the end of prologue for flang compiled binaries.
1288 * arm-tdep.c (arm_skip_prologue): Likewise.
1289 * i386-tdep.c (i386_skip_prologue): Likewise.
1290 * producer.c (producer_is_llvm): New function.
1291 (producer_parsing_tests): Added new tests for clang/flang.
1292 * producer.h (producer_is_llvm): New declaration.
1293
1294 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1295
1296 * linux-nat.c (linux_nat_debug_printf): New function.
1297 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1298
1299 2020-08-18 Aaron Merey <amerey@redhat.com>
1300
1301 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1302 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1303 (CLIBS): Add DEBUGINFOD_LIBS.
1304
1305 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1306
1307 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1308 'gdbarch_num_regs'.
1309
1310 2020-08-17 Tom Tromey <tromey@adacore.com>
1311
1312 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1313 ada_get_decoded_value returns NULL.
1314
1315 2020-08-17 Tom Tromey <tromey@adacore.com>
1316
1317 * python/py-inferior.c (infpy_search_memory): Use
1318 gdb_py_object_from_ulongest.
1319 * python/py-infevents.c (create_inferior_call_event_object)
1320 (create_memory_changed_event_object): Use
1321 gdb_py_object_from_ulongest.
1322 * python/py-linetable.c (ltpy_entry_get_pc): Use
1323 gdb_py_object_from_ulongest.
1324
1325 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * loc.c (class symbol_needs_eval_context): Fix indentation.
1328
1329 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1332 bool.
1333
1334 2020-08-17 Tom de Vries <tdevries@suse.de>
1335
1336 PR gdb/26393
1337 * gdbtypes.c (dump_dynamic_prop): New function.
1338 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1339
1340 2020-08-15 Tom de Vries <tdevries@suse.de>
1341
1342 PR backtrace/26390
1343 * stack.c (print_frame_args): Temporarily set the selected
1344 frame to FRAME while printing the frame's arguments.
1345
1346 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1347
1348 PR breakpoints/26385
1349 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1350 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1351
1352 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1353
1354 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1355 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1356 and >= to check return value instead of == -1 and != -1.
1357
1358 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * utils.h (class gdb_argv) <as_array_view>: New method.
1361 * utils.c (gdb_argv_as_array_view_test): New.
1362 (_initialize_utils): Register selftest.
1363 * maint.c (maintenance_selftest): Use the new method.
1364
1365 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1366
1367 * target.h (supports_dumpcore, dumpcore): New
1368 function declarations.
1369 * target.c (supports_dumpcore, dumpcore): New
1370 functions.
1371 * target-delegates.c: Rebuild.
1372 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1373 and target_dumpcore ().
1374
1375 2020-08-13 Aaron Merey <amerey@redhat.com>
1376
1377 * debuginfod-support.c: Replace global variables with user_data.
1378
1379 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1380
1381 * maint.c (maintenance_selftest): Split args and pass array_view
1382 to run_tests.
1383
1384 2020-08-12 Luis Machado <luis.machado@linaro.org>
1385
1386 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1387 type's length.
1388 Use %s and pulongest to print the length.
1389
1390 2020-08-12 Pedro Alves <palves@redhat.com>
1391
1392 * NEWS: Move "Multi-target debugging support" item to the
1393 "Changes since GDB 9" section.
1394
1395 2020-08-12 Pedro Alves <palves@redhat.com>
1396
1397 PR gdb/26336
1398 * progspace.c (program_space::remove_objfile): Invalidate the
1399 frame cache.
1400
1401 2020-08-11 Tom de Vries <tdevries@suse.de>
1402
1403 * MAINTAINERS: Mark ms1 as deleted.
1404
1405 2020-08-10 Luis Machado <luis.machado@linaro.org>
1406
1407 PR gdb/26310
1408
1409 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1410 act accordingly.
1411 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1412 movz/str/stur/stp skipping behavior.
1413
1414 2020-08-10 Luis Machado <luis.machado@linaro.org>
1415
1416 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1417 struct user_sve_header instead of struct sve_context.
1418
1419 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1420
1421 * read.h (dwarf2_fetch_die_loc_sect_off,
1422 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1423 `void *` parameter with function_view.
1424 * read.c (dwarf2_fetch_die_loc_sect_off,
1425 dwarf2_fetch_die_loc_cu_off): Likewise.
1426 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1427 (per_cu_dwarf_call): Adjust.
1428 (get_frame_address_in_block_wrapper): Remove.
1429 (indirect_synthetic_pointer): Adjust.
1430 (get_ax_pc): Remove.
1431 (dwarf2_compile_expr_to_ax): Adjust.
1432
1433 2020-08-08 Tom de Vries <tdevries@suse.de>
1434
1435 PR build/26344
1436 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1437 constructor.
1438 * regcache.c (get_thread_arch_aspace_regcache): Same.
1439
1440 2020-08-07 Tom Tromey <tromey@adacore.com>
1441
1442 * ravenscar-thread.c
1443 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1444 New method.
1445 (ravenscar_thread_target::wait): Check
1446 runtime_initialized.
1447 (ravenscar_thread_target::prepare_to_store)
1448 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1449 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1450 (ravenscar_thread_target::stopped_by_watchpoint)
1451 (ravenscar_thread_target::stopped_data_address)
1452 (ravenscar_thread_target::core_of_thread): Use
1453 scoped_restore_current_thread and
1454 set_base_thread_from_ravenscar_task.
1455
1456 2020-08-07 Tom Tromey <tromey@adacore.com>
1457
1458 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1459
1460 2020-08-07 Tom Tromey <tromey@adacore.com>
1461
1462 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1463 update_inferior_ptid before update_thread_list.
1464 (temporarily_change_regcache_ptid): New class.
1465 (ravenscar_thread_target::fetch_registers)
1466 (ravenscar_thread_target::store_registers)
1467 (ravenscar_thread_target::prepare_to_store): Use base thread when
1468 forwarding operation.
1469
1470 2020-08-07 Tom Tromey <tromey@adacore.com>
1471
1472 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1473 "is_pid" case.
1474
1475 2020-08-07 Tom Tromey <tromey@adacore.com>
1476
1477 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1478 New methods.
1479 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1480 first.
1481 (ravenscar_thread_target::add_thread): Rename from
1482 ravenscar_add_thread.
1483 (ravenscar_thread_target::update_thread_list): Use a lambda.
1484 (ravenscar_thread_target::xfer_partial): New method.
1485
1486 2020-08-07 Tom Tromey <tromey@adacore.com>
1487
1488 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1489 gdb::function_view.
1490 (iterate_over_live_ada_tasks): Change type of argument.
1491 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1492 of argument.
1493
1494 2020-08-07 Tom Tromey <tromey@adacore.com>
1495
1496 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1497 Remove.
1498 (ravenscar_thread_target::extra_thread_info): Remove.
1499 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1500 defer to target beneath for non-Ravenscar threads.
1501
1502 2020-08-07 Tom Tromey <tromey@adacore.com>
1503
1504 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1505 get_base_thread_from_ravenscar_task>: Now methods.
1506 <m_cpu_map>: New member.
1507 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1508 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1509 (ravenscar_thread_target::task_is_currently_active): Update.
1510 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1511 Now a method.
1512 (ravenscar_thread_target::add_active_thread): Put initial thread
1513 into the m_cpu_map.
1514
1515 2020-08-07 Tom Tromey <tromey@adacore.com>
1516
1517 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1518 event_ptid.
1519
1520 2020-08-07 Tom Tromey <tromey@adacore.com>
1521
1522 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1523 runtime_initialized.
1524
1525 2020-08-07 Tom Tromey <tromey@adacore.com>
1526
1527 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1528 add_active_thread.
1529 (ravenscar_thread_target::add_active_thread): Now public.
1530 (ravenscar_inferior_created): Call add_active_thread after pushing
1531 the target.
1532
1533 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * regcache.c (ptid_regcache_map): New type.
1536 (target_ptid_regcache_map): New type.
1537 (regcaches): Change type to target_ptid_regcache_map.
1538 (get_thread_arch_aspace_regcache): Update to regcaches' new
1539 type.
1540 (regcache_thread_ptid_changed): Likewise.
1541 (registers_changed_ptid): Likewise.
1542 (regcaches_size): Likewise.
1543 (regcaches_test): Update.
1544 (regcache_thread_ptid_changed): Update.
1545 * regcache.h (regcache_up): New type.
1546 * gdbsupport/ptid.h (hash_ptid): New struct.
1547
1548 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1549
1550 * observable.h (thread_ptid_changed): Add parameter
1551 `process_stratum_target *`.
1552 * infrun.c (infrun_thread_ptid_changed): Add parameter
1553 `process_stratum_target *` and use it.
1554 (selftests): New namespace.
1555 (infrun_thread_ptid_changed): New function.
1556 (_initialize_infrun): Register selftest.
1557 * regcache.c (regcache_thread_ptid_changed): Add parameter
1558 `process_stratum_target *` and use it.
1559 (regcache_thread_ptid_changed): New function.
1560 (_initialize_regcache): Register selftest.
1561 * thread.c (thread_change_ptid): Pass target to
1562 thread_ptid_changed observable.
1563
1564 2020-08-06 Caroline Tice <cmtice@google.com>
1565
1566 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1567 (struct dwp_sections): Update field comments. Add loclists and
1568 rnglists fields.
1569 (struct virtual_v2_dwo_sections): Rename struct to
1570 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1571 size & offset fields for loclists and rnglists.
1572 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1573 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1574 skipping dummy type units.
1575 (create_dwp_hash_table): Update the large comment above the function to
1576 discuss Version 5 DWP files as well, with references. Update all the
1577 version checks in the function to check for version 5 as well. Add new
1578 section at the end to create dwp hash table for version 5.
1579 (create_dwp_v2_section): Rename function to
1580 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1581 Add V5 to error message text.
1582 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1583 into calls to create_dwp_v2_or_v5_section.
1584 (create_dwo_unit_in_dwp_v5): New function.
1585 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1586 check for version2; add else clause to handle version 5.
1587 (open_and_init_dwo_file): Add code to check dwarf version & only call
1588 create_debug_types_hash_table (with sections.types) if version is not 5;
1589 else call create_debug_type_hash_table, with sections.info.
1590 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1591 version 5.
1592 (dwarf2_locate_v5_dwp_sections): New function.
1593 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1594 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1595
1596 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * regcache.h (class regcache): Remove friend
1599 registers_changed_ptid.
1600 <regcache_thread_ptid_changed>: Remove.
1601 <regcaches>: Remove.
1602 * regcache.c (regcache::regcaches): Rename to...
1603 (regcaches): ... this. Make static.
1604 (get_thread_arch_aspace_regcache): Update.
1605 (regcache::regcache_thread_ptid_changed): Rename to...
1606 (regcache_thread_ptid_changed): ... this. Update.
1607 (class regcache_access): Remove.
1608 (regcaches_test): Update.
1609 (_initialize_regcache): Update.
1610 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1611 <forward_list>.
1612
1613 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1614
1615 * regcache.h (class regcache) <current_regcache>: Rename to...
1616 <regcaches>: ... this. Move doc here.
1617 * regcache.c (regcache::current_regcache) Rename to...
1618 (regcache::regcaches): ... this. Move doc to header.
1619 (get_thread_arch_aspace_regcache): Update.
1620 (regcache::regcache_thread_ptid_changed): Update.
1621 (registers_changed_ptid): Update.
1622 (class regcache_access) <current_regcache_size>: Rename to...
1623 <regcaches_size>: ... this.
1624 (current_regcache_test): Rename to...
1625 (regcaches_test): ... this.
1626 (_initialize_regcache): Update.
1627
1628 2020-08-06 Victor Collod <vcollod@nvidia.com>
1629
1630 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1631
1632 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1633
1634 * corelow.c (core_target::build_file_mappings): Don't output
1635 null pathname in warning.
1636
1637 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1638
1639 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1640 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1641 gdb.dwarf2/dw2-single-line-discriminators.exp,
1642 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1643
1644 2020-08-05 Tom Tromey <tromey@adacore.com>
1645
1646 PR rust/26197:
1647 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1648 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1649 Fix off-by-one and type size errors in ordinary case.
1650
1651 2020-08-05 Tom de Vries <tdevries@suse.de>
1652
1653 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1654 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1655
1656 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1657
1658 * frame.h (frame_id_p): Return bool.
1659 (frame_id_artificial_p): Return bool.
1660 (frame_id_eq): Return bool.
1661 (has_stack_frames): Return bool.
1662 (get_selected_frame): Fix typo in comment.
1663 (get_frame_pc_if_available): Return bool.
1664 (get_frame_address_in_block_if_available): Return bool.
1665 (get_frame_func_if_available): Return bool.
1666 (read_frame_register_unsigned): Return bool.
1667 (get_frame_register_bytes): Return bool.
1668 (safe_frame_unwind_memory): Return bool.
1669 (deprecated_frame_register_read): Return bool.
1670 (frame_unwinder_is): Return bool.
1671 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1672 bool.
1673 <this_id::p>: Likewise.
1674 <prev_p>: Likewise.
1675 (frame_stash_add): Return bool.
1676 (get_frame_id): Use bool.
1677 (frame_id_build_special) Use bool.
1678 (frame_id_build_unavailable_stack): Use bool.
1679 (frame_id_build): Use bool.
1680 (frame_id_p): Return bool, use true/false instead of 1/0.
1681 (frame_id_artificial_p): Likewise.
1682 (frame_id_eq): Likewise.
1683 (frame_id_inner): Likewise.
1684 (get_frame_func_if_available): Likewise.
1685 (read_frame_register_unsigned): Likewise.
1686 (deprecated_frame_register_read): Likewise.
1687 (get_frame_register_bytes): Likewise.
1688 (has_stack_frames): Likewise.
1689 (inside_main_func): Likewise.
1690 (inside_entry_func): Likewise.
1691 (get_frame_pc_if_available): Likewise.
1692 (get_frame_address_in_block_if_available): Likewise.
1693 (frame_unwinder_is): Likewise.
1694 (safe_frame_unwind_memory): Likewise.
1695 (frame_unwind_arch): Likewise.
1696
1697 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1700 type to cached_copy_status.
1701 (fprintf_frame): Adjust.
1702 (get_frame_func_if_available): Adjust.
1703 (frame_cleanup_after_sniffer): Adjust.
1704
1705 2020-08-04 Mark Wielaard <mark@klomp.org>
1706
1707 * MAINTAINERS (Write After Approval): Update email address.
1708
1709 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1710
1711 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1712 dynamic_prop::const_val.
1713
1714 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1715
1716 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1717 dynamic_prop::kind.
1718
1719 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1722
1723 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1724
1725 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1726
1727 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1728 Jose E. Marchesi <jose.marchesi@oracle.com>
1729
1730 * configure.tgt: Add entry for bpf-*-*.
1731 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1732 (ALLDEPFILES): Add bpf-tdep.c.
1733 * bpf-tdep.c: New file.
1734 * MAINTAINERS: Add bpf target and maintainer.
1735 * NEWS: Mention the support for the new target.
1736
1737 2020-08-04 Tom de Vries <tdevries@suse.de>
1738
1739 PR symtab/23270
1740 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1741 Error.
1742
1743 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1744
1745 * syscalls/freebsd.xml: Regenerate.
1746
1747 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1748
1749 * syscalls/update-freebsd.sh: Fix usage and year range.
1750
1751 2020-08-03 Tom de Vries <tdevries@suse.de>
1752
1753 PR symtab/26333
1754 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1755 DW_LNE_lo_user/DW_LNE_hi_user range.
1756
1757 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 PR ada/26318
1760 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1761 kind.
1762
1763 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1764
1765 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1766
1767 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1768
1769 * breakpoint.c (set_breakpoint_condition): Update the condition
1770 expressions after checking that the input condition string parses
1771 successfully and does not contain junk at the end.
1772
1773 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1774
1775 * breakpoint.c (set_breakpoint_condition): Update the
1776 condition string after parsing the new condition successfully.
1777
1778 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1779
1780 * proc-api.c (_STRUCTURED_PROC): Don't define.
1781 * proc-events.c: Likewise.
1782 * proc-flags.c: Likewise.
1783 * proc-why.c: Likewise.
1784 * procfs.c: Likewise.
1785
1786 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1787 * configure, config.in: Regenerate.
1788
1789 2020-07-30 Tom de Vries <tdevries@suse.de>
1790
1791 PR build/26320
1792 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1793 m_red/m_green/m_blue in a union.
1794
1795 2020-07-29 Tom de Vries <tdevries@suse.de>
1796
1797 PR tdep/26280
1798 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1799
1800 2020-07-28 Tom Tromey <tromey@adacore.com>
1801
1802 PR symtab/26270:
1803 * symtab.h (find_pc_partial_function_sym): Declare.
1804 * cli/cli-cmds.c (disassemble_command): Use
1805 find_pc_partial_function_sym. Check asm_demangle.
1806 * blockframe.c (cache_pc_function_sym): New global.
1807 (cache_pc_function_name): Remove.
1808 (clear_pc_function_cache): Update.
1809 (find_pc_partial_function_sym): New function, from
1810 find_pc_partial_function.
1811 (find_pc_partial_function): Rewrite using
1812 find_pc_partial_function_sym.
1813
1814 2020-07-28 Tom Tromey <tromey@adacore.com>
1815
1816 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1817 help. Add usage.
1818
1819 2020-07-28 Tom Tromey <tromey@adacore.com>
1820
1821 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1822 <DW_OP_GNU_variable_value>: Cast to address type.
1823
1824 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1825
1826 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1827 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1828 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1829 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1830 (nbsd_get_siginfo_type): New.
1831 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1832 (_initialize_nbsd_tdep): New.
1833
1834 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1835
1836 PR binutils/26301
1837 * configure: Regenerated.
1838
1839 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1840
1841 PR binutils/26301
1842 * configure: Regenerated.
1843
1844 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1845
1846 * python/py-frame.c: Remove 'user-regs.h' include.
1847 (frapy_read_register): Rewrite to make use of
1848 gdbpy_parse_register_id.
1849 * python/py-registers.c (gdbpy_parse_register_id): New function,
1850 moved here from python/py-unwind.c. Updated the return type, and
1851 also accepts register descriptor objects.
1852 * python/py-unwind.c: Remove 'user-regs.h' include.
1853 (pyuw_parse_register_id): Moved to python/py-registers.c.
1854 (unwind_infopy_add_saved_register): Update to use
1855 gdbpy_parse_register_id.
1856 (pending_framepy_read_register): Likewise.
1857 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1858
1859 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * python/py-registers.c: Add 'user-regs.h' include.
1862 (register_descriptor_iter_find): New function.
1863 (register_descriptor_iterator_object_methods): New static global
1864 methods array.
1865 (register_descriptor_iterator_object_type): Add pointer to methods
1866 array.
1867
1868 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1869
1870 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1871 for all architectures on FreeBSD 11.3 and later.
1872
1873 2020-07-27 Tom Tromey <tromey@adacore.com>
1874
1875 * gcore.h (load_corefile): Don't declare.
1876
1877 2020-07-27 Tom de Vries <tdevries@suse.de>
1878
1879 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1880 * config.in: Regenerate.
1881 * configure: Regenerate.
1882
1883 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1884
1885 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1886 ws2tcpip.h. When checking whether socklen_t type is defined, use
1887 ws2tcpip.h if it is available and sys/socket.h isn't.
1888 * configure: Regenerate.
1889 * config.in: Regenerate.
1890
1891 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 PR fortran/23051
1894 PR fortran/26139
1895 * valops.c (value_ind): Pass address to
1896 readjust_indirect_value_type.
1897 * value.c (readjust_indirect_value_type): Make parameter
1898 non-const, and add extra address parameter. Resolve original type
1899 before using it.
1900 * value.h (readjust_indirect_value_type): Update function
1901 signature and comment.
1902
1903 2020-07-25 Tom de Vries <tdevries@suse.de>
1904
1905 PR symtab/26243
1906 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1907 entries.
1908
1909 2020-07-24 Aaron Merey <amerey@redhat.com>
1910
1911 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1912 * configure: Rebuild.
1913
1914 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1915
1916 PR corefiles/26294
1917 * corelow.c (_initialize_corelow): Add period to help text
1918 for "maintenance print core-file-backed-mappings".
1919
1920 2020-07-23 Pedro Alves <pedro@palves.net>
1921
1922 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1923 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1924 meanwhile.
1925 * frame.c (frame_cache_generation, get_frame_cache_generation):
1926 New.
1927 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1928 (get_prev_frame_if_no_cycle): On exception, don't touch
1929 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1930 * frame.h (get_frame_cache_generation): Declare.
1931
1932 2020-07-23 Tom de Vries <tdevries@suse.de>
1933
1934 PR tui/26282
1935 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1936 New default constructor.
1937
1938 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1941 exclude non-statement entries.
1942
1943 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1944
1945 * NEWS (New commands): Mention new command
1946 "maintenance print core-file-backed-mappings".
1947
1948 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1949
1950 * corelow.c (gdbcmd.h): Include.
1951 (core_target::info_proc_mappings): New method.
1952 (get_current_core_target): New function.
1953 (maintenance_print_core_file_backed_mappings): New function.
1954 (_initialize_corelow): Add core-file-backed-mappings to
1955 "maint print" commands.
1956
1957 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1958
1959 * linux-tdep.c (dump_note_entry_p): New function.
1960 (linux_dump_mapping_p_ftype): New typedef.
1961 (linux_find_memory_regions_full): Add new parameter,
1962 should_dump_mapping_p.
1963 (linux_find_memory_regions): Adjust call to
1964 linux_find_memory_regions_full.
1965 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1966 call to linux_find_memory_regions_full.
1967
1968 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1969
1970 * corelow.c (solist.h, unordered_map): Include.
1971 (class core_target): Add field m_core_file_mappings and
1972 method build_file_mappings.
1973 (core_target::core_target): Call build_file_mappings.
1974 (core_target::~core_target): Free memory associated with
1975 m_core_file_mappings.
1976 (core_target::build_file_mappings): New method.
1977 (core_target::xfer_partial): Use m_core_file_mappings
1978 for memory transfers.
1979 * linux-tdep.c (linux_read_core_file_mappings): New
1980 function.
1981 (linux_core_info_proc_mappings): Rewrite to use
1982 linux_read_core_file_mappings.
1983 (linux_init_abi): Register linux_read_core_file_mappings.
1984
1985 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1986
1987 * arch-utils.c (default_read_core_file_mappings): New function.
1988 * arch-utils.c (default_read_core_file_mappings): Declare.
1989 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1990 * gdbarch.h, gdbarch.c: Regenerate.
1991
1992 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1993
1994 PR corefiles/25631
1995 * corelow.c (core_target:xfer_partial): Revise
1996 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1997 case after first checking the stratum beneath the core
1998 target.
1999 (has_all_memory): Return true.
2000 * target.c (raw_memory_xfer_partial): Revise comment
2001 regarding use of has_all_memory.
2002
2003 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2004
2005 * exec.h (section_table_xfer_memory): Revise declaration,
2006 replacing section name parameter with an optional callback
2007 predicate.
2008 * exec.c (section_table_xfer_memory): Likewise.
2009 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2010 of section_table_xfer_memory.
2011
2012 2020-07-22 Tom Tromey <tromey@adacore.com>
2013
2014 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2015 lookup_symbol_search_name.
2016
2017 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2018
2019 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2020 redundant local variable.
2021 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2022 reference, not pointer, update code accordingly.
2023
2024 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2025 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2026
2027 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2028 * jit.c (jit_breakpoint_re_set_internal): Use the
2029 `skip_jit_symbol_lookup` field.
2030
2031 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2032 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2033
2034 * jit.c (jit_read_descriptor): Define the descriptor address once,
2035 use twice.
2036 (jit_breakpoint_deleted): Move the declaration of the loop variable
2037 `iter` into the loop header.
2038 (jit_breakpoint_re_set_internal): Move the declaration of the local
2039 variable `objf_data` to the first point of definition.
2040 (jit_event_handler): Move the declaration of local variables
2041 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2042 Rename `objf` to `jited`.
2043
2044 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2047 Remove.
2048 * jit.c (get_jiter_objfile_data): Update.
2049
2050 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2051 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * jit.c (struct jit_program_space_data): Remove.
2054 (jit_program_space_key): Remove.
2055 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2056 stuff.
2057 (get_jit_program_space_data): Remove.
2058 (jit_breakpoint_deleted): Iterate on all of the program space's
2059 objfiles.
2060 (jit_inferior_init): Likewise.
2061 (jit_breakpoint_re_set_internal): Likewise. Also change return
2062 type to void.
2063 (jit_breakpoint_re_set): Pass current_program_space to
2064 jit_breakpoint_re_set_internal.
2065
2066 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * jit.h (struct jiter_objfile_data) <cached_code_address,
2069 jit_breakpoint>: Move to here from ...
2070 * jit.c (jit_program_space_data): ... here.
2071 (jiter_objfile_data::~jiter_objfile_data): Update.
2072 (jit_breakpoint_deleted): Update.
2073 (jit_breakpoint_re_set_internal): Update.
2074
2075 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2078 checks.
2079 (jit_read_descriptor): Remove NULL check.
2080 (jit_event_handler): Add an assertion.
2081
2082 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 * jit.h (struct jit_objfile_data): Split into...
2085 (struct jiter_objfile_data): ... this ...
2086 (struct jited_objfile_data): ... and this.
2087 * objfiles.h (struct objfile) <jit_data>: Remove.
2088 <jiter_data, jited_data>: New fields.
2089 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2090 (jiter_objfile_data::~jiter_objfile_data): ... this.
2091 (get_jit_objfile_data): Rename to ...
2092 (get_jiter_objfile_data): ... this.
2093 (add_objfile_entry): Update.
2094 (jit_read_descriptor): Use get_jiter_objfile_data.
2095 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2096 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2097 (jit_inferior_exit_hook): Use objfile's jited_data field.
2098
2099 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * jit.h: Forward-declare `struct minimal_symbol`.
2102 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2103 constructor, destructor, and an objfile* field.
2104 * jit.c (jit_objfile_data): Remove.
2105 (struct jit_objfile_data): Migrate from here to jit.h.
2106 (jit_objfile_data::~jit_objfile_data): New destructor
2107 implementation with code moved from free_objfile_data.
2108 (free_objfile_data): Delete.
2109 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2110 (jit_find_objf_with_entry_addr): Ditto.
2111 (jit_inferior_exit_hook): Ditto.
2112 (_initialize_jit): Remove the call to
2113 register_objfile_data_with_cleanup.
2114 * objfiles.h (struct objfile) <jit_data>: New field.
2115
2116 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * jit.h: Forward-declare `struct objfile`.
2119 (jit_event_handler): Add a second parameter, the JITer objfile.
2120 * jit.c (jit_read_descriptor): Change the signature to take the
2121 JITer objfile as an argument instead of the jit_program_space_data.
2122 (jit_inferior_init): Update the call to jit_read_descriptor.
2123 (jit_event_handler): Use the new JITer objfile argument when calling
2124 jit_read_descriptor.
2125 * breakpoint.c (handle_jit_event): Update the call to
2126 jit_event_handler to pass the JITer objfile.
2127
2128 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2129
2130 * gdbarch.c: Regenerate.
2131 * gdbarch.h: Regenerate.
2132 * gdbarch.sh (handle_segmentation_fault): Remove method.
2133 * infrun.c (handle_segmentation_fault): Remove.
2134 (print_signal_received_reason): Remove call to
2135 handle_segmentation_fault.
2136
2137 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2138
2139 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2140 Rename to sparc64_linux_report_signal_info and add siggnal
2141 argument.
2142 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2143 instead of sparc64_linux_handle_segmentation_fault.
2144
2145 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2146
2147 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2148 i386_linux_report_signal_info instead of
2149 i386_linux_handle_segmentation_fault.
2150 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2151 to i386_linux_report_signal_info and add siggnal argument.
2152 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2153 of i386_linux_handle_segmentation_fault.
2154 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2155 to i386_linux_report_signal_info and add siggnal argument.
2156
2157 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2158
2159 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2160 hook if present.
2161
2162 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2163
2164 * gdbarch.c: Regenerate.
2165 * gdbarch.h: Regenerate.
2166 * gdbarch.sh (report_signal_info): New method.
2167 * infrun.c (print_signal_received_reason): Invoke gdbarch
2168 report_signal_info hook if present.
2169
2170 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * python/py-registers.c : Add 'unordered_map' include.
2173 (gdbpy_new_reggroup): Renamed to...
2174 (gdbpy_get_reggroup): ...this. Update to only create register
2175 group descriptors when needed.
2176 (gdbpy_reggroup_iter_next): Update.
2177
2178 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * python/py-registers.c (gdbpy_register_object_data): New static
2181 global.
2182 (gdbpy_register_object_data_init): New function.
2183 (gdbpy_new_register_descriptor): Renamed to...
2184 (gdbpy_get_register_descriptor): ...this, and update to reuse
2185 existing register descriptors where possible.
2186 (gdbpy_register_descriptor_iter_next): Update.
2187 (gdbpy_initialize_registers): Register new gdbarch data.
2188
2189 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2190
2191 * linux-nat.c (stopped_pids): Make static.
2192
2193 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 PR ada/26235
2196 * gdbtypes.c (ada_discrete_type_low_bound,
2197 ada_discrete_type_high_bound): Handle undefined bounds.
2198
2199 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2200
2201 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2202 declaration.
2203 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2204 function.
2205
2206 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2207
2208 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2209 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2210 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2211 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2212 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2213 method.
2214
2215 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2216
2217 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2218 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2219 which are deprecated in Guile 3.0.
2220 * configure.ac (try_guile_versions): Add "guile-3.0".
2221 * configure (try_guile_versions): Regenerate.
2222 * NEWS: Update entry.
2223
2224 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2225 Doug Evans <dje@google.com>
2226
2227 PR gdb/21104
2228 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2229 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2230 USING_GUILE_BEFORE_2_2.
2231 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2232 Change type to 'scm_t_port_type *'.
2233 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2234 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2235 parameter and honor it. Update callers.
2236 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2237 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2238 functions.
2239 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2240 USING_GUILE_BEFORE_2_2.
2241 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2242 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2243 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2244 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2245 and 'SCM_PORT_TYPE'.
2246 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2247 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2248 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2249 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2250 [!USING_GUILE_BEFORE_2_2]: New functions.
2251 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2252 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2253 'gdbscm_memory_port_read'.
2254 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2255 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2256 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2257 function.
2258 (ioscm_init_memory_port): Remove.
2259 (ioscm_init_memory_port_stream): New function
2260 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2261 function.
2262 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2263 Return scm_from_uint (0).
2264 (gdbscm_set_memory_port_read_buffer_size_x)
2265 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2266 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2267 Return scm_from_uint (0).
2268 (gdbscm_set_memory_port_write_buffer_size_x)
2269 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2270 * configure.ac (try_guile_versions): Add "guile-2.2".
2271 * configure: Regenerate.
2272 * NEWS: Add entry.
2273
2274 2020-07-18 Tom Tromey <tom@tromey.com>
2275
2276 * linux-nat.c (linux_multi_process): Remove.
2277 (linux_nat_target::supports_multi_process): Return true.
2278
2279 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2282 (riscv_lookup_target_description): Return pointer out of
2283 unique_ptr.
2284 * target-descriptions.c (allocate_target_description): Add
2285 comment.
2286 (target_desc_deleter::operator()): Likewise.
2287 * target-descriptions.h (struct target_desc_deleter): Moved to
2288 gdbsupport/tdesc.h.
2289 (target_desc_up): Likewise.
2290
2291 2020-07-17 Tom Tromey <tromey@adacore.com>
2292
2293 * linux-nat.c (linux_nat_target::supports_non_stop)
2294 (linux_nat_target::always_non_stop_p): Use "true".
2295 (linux_nat_target::supports_disable_randomization): Use "true" and
2296 "false".
2297
2298 2020-07-16 Caroline Tice <cmtice@google.com>
2299
2300 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2301 (RNGLIST_HEADER_SIZE64): New constant definition.
2302 (struct dwop_section_names): Add rnglists_dwo.
2303 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2304 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2305 (struct dwo_sections): Add rnglists field.
2306 (read_attribut_reprocess): Add tag parameter.
2307 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2308 (cu_debug_rnglists_section): New function (decl & definition).
2309 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2310 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2311 die whose range is being checked; get rnglist section from
2312 cu_debug_rnglists_section, to get from either objfile or dwo file as
2313 appropriate. Add cases for DW_RLE_base_addressx,
2314 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2315 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2316 test inside if-condition and updating complaint message.
2317 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2318 dwarf2_rnglists_process.
2319 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2320 dwarf2_ranges_process.
2321 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2322 need_ranges_base and update comment appropriately. Also pass die tag
2323 to dwarf2_ranges_read.
2324 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2325 need_ranges_base and update comment appropriately. Also pass die tag
2326 to dwarf2_ranges_process.
2327 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2328 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2329 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2330 need_ranges_base and update comment appropriately. Also pass die tag
2331 to read_attribute_reprocess and dwarf2_ranges_read.
2332 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2333 and update function comment appropriately.
2334 (read_loclist_index): Call read_loclists_rnglists_header instead of
2335 read_loclist_header.
2336 (read_rnglist_index): New function.
2337 (read_attribute_reprocess): Add tag parameter. Add code for
2338 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2339 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2340
2341 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2344 being resolved.
2345
2346 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * arch-utils.c (show_architecture): Update formatting of messages.
2349
2350 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2351
2352 * gdbtypes.h (struct type) <bounds>: Handle array and string
2353 types.
2354 * ada-lang.c (assign_aggregate): Use type::bounds on
2355 array/string type.
2356 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2357 * c-varobj.c (c_number_of_children): Likewise.
2358 (c_describe_child): Likewise.
2359 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2360 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2361 (f_type_print_base): Likewise.
2362 * f-valprint.c (f77_array_offset_tbl): Likewise.
2363 (f77_get_upperbound): Likewise.
2364 (f77_print_array_1): Likewise.
2365 * guile/scm-type.c (gdbscm_type_range): Likewise.
2366 * m2-typeprint.c (m2_array): Likewise.
2367 (m2_is_long_set_of_type): Likewise.
2368 * m2-valprint.c (get_long_set_bounds): Likewise.
2369 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2370 * python/py-type.c (typy_range): Likewise.
2371 * rust-lang.c (rust_internal_print_type): Likewise.
2372 * type-stack.c (type_stack::follow_types): Likewise.
2373 * valarith.c (value_subscripted_rvalue): Likewise.
2374 * valops.c (value_cast): Likewise.
2375
2376 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2379 callers to use the equivalent accessor methods.
2380
2381 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2382
2383 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2384 (struct type) <bit_stride>: New method.
2385 (TYPE_BIT_STRIDE): Remove.
2386 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2387
2388 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2391 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2392 callers to use the equivalent accessor methods instead.
2393
2394 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2395
2396 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2397 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2398 callers to use the equivalent accessor methods instead.
2399
2400 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2401
2402 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2403 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2404 to use dynamic_prop::kind.
2405
2406 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2409 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2410 to get the bound property's kind and check against
2411 PROP_UNDEFINED.
2412
2413 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2416 all callers to use type::range_bounds followed by
2417 dynamic_prop::{low,high}.
2418
2419 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2422 const_val, set_const_val, baton, set_locexpr, set_loclist,
2423 set_addr_offset, variant_parts, set_variant_parts,
2424 original_type, set_original_type>: New methods.
2425 <kind>: Rename to...
2426 <m_kind>: ... this. Update all users to use the new methods
2427 instead.
2428 <data>: Rename to...
2429 <m_data>: ... this. Update all users to use the new methods
2430 instead.
2431
2432 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2433
2434 * gdbtypes.c (get_discrete_bounds): Return failure if
2435 the range type's bounds are not both defined and constant
2436 values.
2437 (get_array_bounds): Update comment. Remove undefined bound check.
2438
2439 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2440
2441 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2442 the type::bounds method directly.
2443
2444 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2447 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2448 are used to set the range type's bounds to use set_bounds.
2449
2450 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2451
2452 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2453
2454 2020-07-10 Pedro Alves <pedro@palves.net>
2455
2456 * gdbthread.h (inferior_ref): Define.
2457 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2458 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2459 * thread.c
2460 (scoped_restore_current_thread::restore):
2461 Adjust to gdb::ref_ptr.
2462 (scoped_restore_current_thread::~scoped_restore_current_thread):
2463 Remove manual decref handling.
2464 (scoped_restore_current_thread::scoped_restore_current_thread):
2465 Adjust to use
2466 inferior_ref::new_reference/thread_info_ref::new_reference.
2467 Incref the thread before calling get_frame_id instead of after.
2468 Let TARGET_CLOSE_ERROR propagate.
2469
2470 2020-07-10 Pedro Alves <pedro@palves.net>
2471
2472 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2473 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2474 NOT_AVAILABLE_ERROR.
2475 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2476 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2477
2478 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2479 Pedro Alves <pedro@palves.net>
2480
2481 PR gdb/26199
2482 * infrun.c (threads_are_resumed_pending_p): Delete.
2483 (do_target_wait): Remove threads_are_executing and
2484 threads_are_resumed_pending_p checks from the inferior_matches
2485 lambda. Update comments.
2486
2487 2020-07-10 Pedro Alves <pedro@palves.net>
2488
2489 PR gdb/26199
2490 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2491 executing threads.
2492
2493 2020-07-10 Pedro Alves <pedro@palves.net>
2494
2495 PR gdb/26199
2496 * infrun.c (handle_no_resumed): Handle multiple targets.
2497
2498 2020-07-10 Pedro Alves <pedro@palves.net>
2499
2500 PR gdb/26199
2501 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2502 target_is_async_p.
2503
2504 2020-07-10 Pedro Alves <pedro@palves.net>
2505
2506 PR gdb/26199
2507 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2508 threads, not all threads.
2509
2510 2020-07-10 Pedro Alves <pedro@palves.net>
2511
2512 PR gdb/26199
2513 * remote.c (remote_target::open_1): Pass remote target pointer as
2514 data to create_async_event_handler.
2515 (remote_async_inferior_event_handler): Mark async event handler
2516 before returning if the remote target still has either pending
2517 events or unacknowledged notifications.
2518
2519 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2520
2521 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2522 declaration.
2523 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2524 function.
2525
2526 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2527
2528 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2529 inferior_ptid.
2530
2531 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2532
2533 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2534 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2535 AT_FREEBSD_PS_STRINGS.
2536
2537 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2538
2539 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2540 of debugfile path on Windows.
2541
2542 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2543
2544 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2545 argument to 'data'.
2546
2547 2020-07-08 Tom Tromey <tromey@adacore.com>
2548
2549 * ada-lang.c (ada_exception_message_1): Use read_memory.
2550
2551 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2552
2553 PR python/22748
2554 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2555 special handling for inline frames.
2556 * findvar.c (value_of_register_lazy): Skip inline frames when
2557 creating lazy register values.
2558 * frame.c (frame_id_computed_p): Delete definition.
2559 * frame.h (frame_id_computed_p): Delete declaration.
2560
2561 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2562
2563 * NEWS: Mention additions to Python API.
2564 * python/py-arch.c (archpy_register_groups): New function.
2565 (arch_object_methods): Add 'register_groups' method.
2566 * python/py-registers.c (reggroup_iterator_object): New struct.
2567 (reggroup_object): New struct.
2568 (gdbpy_new_reggroup): New function.
2569 (gdbpy_reggroup_to_string): New function.
2570 (gdbpy_reggroup_name): New function.
2571 (gdbpy_reggroup_iter): New function.
2572 (gdbpy_reggroup_iter_next): New function.
2573 (gdbpy_new_reggroup_iterator): New function
2574 (gdbpy_initialize_registers): Register new types.
2575 (reggroup_iterator_object_type): Define new Python type.
2576 (gdbpy_reggroup_getset): New static global.
2577 (reggroup_object_type): Define new Python type.
2578 * python/python-internal.h
2579
2580 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2581
2582 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2583 * python/py-arch.c (archpy_registers): New function.
2584 (arch_object_methods): Add 'registers' method.
2585 * python/py-registers.c: New file.
2586 * python/python-internal.h
2587 (gdbpy_new_register_descriptor_iterator): Declare.
2588 (gdbpy_initialize_registers): Declare.
2589 * python/python.c (do_start_initialization): Call
2590 gdbpy_initialize_registers.
2591 * NEWS: Mention additions to the Python API.
2592
2593 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * NEWS: Mention new Python API method.
2596 * python/py-unwind.c (pending_framepy_architecture): New function.
2597 (pending_frame_object_methods): Add architecture method.
2598
2599 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * gdbarch.c: Regenerate.
2602 * gdbarch.h: Regenerate.
2603 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2604 (gdbarch_data): Use internal_error for the case where
2605 deprecated_set_gdbarch_data was originally needed.
2606 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2607 and use passed in obstack.
2608 (libunwind_frame_set_descr): Should no longer get back NULL from
2609 gdbarch_data.
2610 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2611 type.
2612 * user-regs.c (user_regs_init): Update parameters, and use passed
2613 in obstack.
2614 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2615 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2616
2617 2020-07-06 Tom de Vries <tdevries@suse.de>
2618
2619 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2620 End-Of-Sequence in lte_is_less_than.
2621 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2622 "gdb: Don't reorder line table entries too much when sorting".
2623
2624 2020-07-06 Tom de Vries <tdevries@suse.de>
2625
2626 PR tui/26205
2627 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2628
2629 2020-07-05 Tom de Vries <tdevries@suse.de>
2630
2631 PR build/26187
2632 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2633 std::uncaught_exceptions instead of deprecated
2634 std::uncaught_exception.
2635
2636 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * macroexp.h (macro_stringify): Return
2639 gdb::unique_xmalloc_ptr<char>.
2640 * macroexp.c (macro_stringify): Likewise.
2641 * macrotab.c (fixup_definition): Update.
2642
2643 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2644
2645 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2646 (lex_one_token): Update.
2647 * macroexp.c (struct macro_buffer) <release>: Return
2648 gdb::unique_xmalloc_ptr<char>.
2649 (macro_stringify): Update.
2650 (macro_expand): Update.
2651 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2652 * macroexp.h (macro_expand_next): Likewise.
2653
2654 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2655
2656 * macroexp.h (macro_lookup_ftype): Remove.
2657 (macro_expand, macro_expand_once, macro_expand_next): Remove
2658 lookup function parameters, add scope parameter.
2659 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2660 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2661 * macroscope.h (standard_macro_lookup): Change parameter type
2662 to macro_scope.
2663 * macroscope.c (standard_macro_lookup): Likewise.
2664 * c-exp.y (lex_one_token): Update.
2665 * macrocmd.c (macro_expand_command): Likewise.
2666 (macro_expand_once_command): Likewise.
2667
2668 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2669
2670 * inf-loop.c (inferior_event_handler): Remove client_data param.
2671 * inf-loop.h (inferior_event_handler): Likewise.
2672 * infcmd.c (step_1): Adjust.
2673 * infrun.c (proceed): Adjust.
2674 (fetch_inferior_event): Remove client_data param.
2675 (infrun_async_inferior_event_handler): Adjust.
2676 * infrun.h (fetch_inferior_event): Remove `void *` param.
2677 * linux-nat.c (handle_target_event): Adjust.
2678 * record-btrace.c (record_btrace_handle_async_inferior_event):
2679 Adjust.
2680 * record-full.c (record_full_async_inferior_event_handler):
2681 Adjust.
2682 * remote.c (remote_async_inferior_event_handler): Adjust.
2683
2684 2020-07-01 Tom Tromey <tom@tromey.com>
2685
2686 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2687 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2688
2689 2020-07-01 Tom Tromey <tom@tromey.com>
2690
2691 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2692 tui_gen_win_info.
2693 (tui_win_info::make_window): Merge with
2694 tui_gen_win_info::make_window.
2695 (tui_win_info::make_visible): Move from tui_gen_win_info.
2696 * tui/tui-win.c (tui_win_info::max_width): Move from
2697 tui_gen_win_info.
2698 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2699 type.
2700 <window_factory>: Likewise.
2701 * tui/tui-layout.c (tui_win_info::resize): Move from
2702 tui_gen_win_info.
2703 (make_standard_window): Change return type.
2704 (get_locator_window, tui_get_window_by_name): Likewise.
2705 (tui_layout_window::apply): Remove a cast.
2706 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2707 (struct tui_win_info): Merge with tui_gen_win_info.
2708 (struct tui_gen_win_info): Remove.
2709
2710 2020-07-01 Tom Tromey <tom@tromey.com>
2711
2712 * tui/tui-stack.h (struct tui_locator_window): Derive from
2713 tui_win_info.
2714 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2715 <can_box>: New method.
2716
2717 2020-07-01 Tom Tromey <tom@tromey.com>
2718
2719 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2720
2721 2020-07-01 Tom Tromey <tom@tromey.com>
2722
2723 * tui/tui-regs.c (tui_data_window::display_registers_from)
2724 (tui_data_window::display_registers_from)
2725 (tui_data_window::first_data_item_displayed)
2726 (tui_data_window::delete_data_content_windows): Update.
2727 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2728 Remove.
2729 (tui_data_window::check_register_values): Update.
2730 (tui_data_item_window::rerender): Add parameters. Update.
2731 (tui_data_item_window::refresh_window): Remove.
2732 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2733 virtual.
2734 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2735 tui_gen_win_info.
2736 <refresh_window, max_height, min_height>: Remove.
2737 <rerender>: Add parameters.
2738 <x, y, visible>: New members.
2739 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2740 <m_item_width>: New member.
2741
2742 2020-07-01 Tom Tromey <tom@tromey.com>
2743
2744 * tui/tui-regs.c (tui_data_window::show_register_group)
2745 (tui_data_window::check_register_values): Update.
2746 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2747 from item_no.
2748
2749 2020-07-01 Tom Tromey <tom@tromey.com>
2750
2751 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2752 useless "if".
2753
2754 2020-07-01 Tom Tromey <tom@tromey.com>
2755
2756 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2757 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2758
2759 2020-07-01 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2762 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2763 (struct tui_line_or_address): Move from tui-data.h.
2764 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2765 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2766 (tui_cmd_window, tui_source_window_base, tui_source_window)
2767 (tui_disasm_window): Don't declare.
2768 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2769 to tui-winsource.h.
2770 (SINGLE_KEY): Move to tui-stack.c.
2771
2772 2020-07-01 Tom Tromey <tom@tromey.com>
2773
2774 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2775 std::string.
2776 * tui/tui-regs.c (class tab_expansion_file): New.
2777 (tab_expansion_file::write): New method.
2778 (tui_register_format): Change return type. Use
2779 tab_expansion_file.
2780 (tui_get_register, tui_data_window::display_registers_from)
2781 (tui_data_item_window::rerender): Update.
2782 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2783 * tui/tui-io.c (tui_expand_tabs): Remove.
2784
2785 2020-07-01 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2788
2789 2020-07-01 Fangrui Song <maskray@google.com>
2790
2791 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2792
2793 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2794
2795 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2796 forms for DW_AT_associated and DW_AT_allocated attributes,
2797 which is already checked in function attr_to_dynamic_prop.
2798
2799 2020-06-30 Tom Tromey <tromey@adacore.com>
2800
2801 * dwarf2/read.c (quirk_rust_enum): Correctly call
2802 alloc_rust_variant for default-less enum.
2803
2804 2020-06-30 Tom Tromey <tromey@adacore.com>
2805
2806 PR build/26183:
2807 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2808 gdb::to_string.
2809
2810 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2813 * gdbarch.h: Re-generate.
2814
2815 2020-06-28 Tom Tromey <tom@tromey.com>
2816
2817 * command.h (cmd_types): Remove.
2818 (cmd_type): Don't declare.
2819 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2820 typedef.
2821 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2822 * cli/cli-decode.c (cmd_type): Remove.
2823
2824 2020-06-27 Pedro Alves <palves@redhat.com>
2825
2826 * fork-child.c (prefork_hook): Adjust.
2827 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2828 Delete.
2829 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2830 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2831 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2832 Remove declarations.
2833 (struct inferior) <set_tty, tty>: New methods.
2834 (struct inferior) <terminal>: Rename to ...
2835 (struct inferior) <m_terminal>: ... this and make private.
2836 * main.c (captured_main_1): Adjust.
2837 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2838 (mi_cmd_inferior_tty_show): Adjust.
2839 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2840 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2841
2842 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2843
2844 * configure.ac: Add --enable-libctf: handle --disable-static
2845 properly.
2846 * acinclude.m4: sinclude ../config/enable.m4.
2847 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2848 (LIBCTF): Substitute in.
2849 (CTF_DEPS): New, likewise.
2850 (CLIBS): libctf needs symbols from libbfd: move earlier.
2851 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2852 flags.
2853 * ctfread.c: Surround in ENABLE_LIBCTF.
2854 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2855 * configure: Regenerate.
2856 * config.in: Likewise.
2857
2858 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2859
2860 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2861
2862 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * inferior.h (struct inferior) <terminal>: Change type to
2865 gdb::unique_xmalloc_ptr<char>.
2866 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2867 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2868 field, adjust to unique pointer.
2869 (get_inferior_io_terminal): Adjust to unique pointer.
2870
2871 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2874 registers, not just the known core set of registers.
2875
2876 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2877
2878 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2879 fflags, frm, and fcsr registers.
2880 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2881 restore groups.
2882 (riscv_tdesc_unknown_reg): New function.
2883 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2884 tdesc_use_registers.
2885 * riscv-tdep.h (struct gdbarch_tdep): Add
2886 unknown_csrs_first_regnum, unknown_csrs_count,
2887 duplicate_fflags_regnum, duplicate_frm_regnum, and
2888 duplicate_fcsr_regnum fields.
2889
2890 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2893 callback, use the callback (when not null) to help number unknown
2894 registers.
2895 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2896 (tdesc_use_registers): Add extra parameter to declaration.
2897
2898 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2899
2900 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2901 in the file.
2902 (class riscv_pending_register_alias): Likewise.
2903 (riscv_register_feature::register_info): Change 'required_p' field
2904 to 'required', and change its type. Add 'check' member function.
2905 (riscv_register_feature::register_info::check): Define new member
2906 function.
2907 (riscv_xreg_feature): Change initialisation of 'required' field.
2908 (riscv_freg_feature): Likewise.
2909 (riscv_virtual_feature): Likewise.
2910 (riscv_csr_feature): Likewise.
2911 (riscv_check_tdesc_feature): Take extra parameter, the csr
2912 tdesc_feature, rewrite the function to use the new
2913 riscv_register_feature::register_info::check function.
2914 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2915
2916 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2917
2918 * features/Makefile: Remove all references to the deleted files
2919 below.
2920 * features/riscv/32bit-csr.c: Deleted.
2921 * features/riscv/32bit-csr.xml: Deleted.
2922 * features/riscv/64bit-csr.c: Deleted.
2923 * features/riscv/64bit-csr.xml: Deleted.
2924 * features/riscv/rebuild-csr-xml.sh: Deleted.
2925
2926 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2929 whitespace error for declaration of names member variable.
2930 (struct riscv_register_feature): Add new prefer_first_name member
2931 variable, and fix whitespace error in declaration of registers.
2932 (riscv_xreg_feature): Initialize prefer_first_name field.
2933 (riscv_freg_feature): Likewise.
2934 (riscv_virtual_feature): Likewise.
2935 (riscv_csr_feature): Likewise.
2936 (riscv_register_name): Expand on comments. Remove register name
2937 modifications for CSR and virtual registers.
2938
2939 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2942 errors.
2943
2944 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2947 riscv-opc.h.
2948 (class riscv_pending_register_alias): New class.
2949 (riscv_check_tdesc_feature): Take vector of pending aliases and
2950 populate it as appropriate.
2951 (riscv_setup_register_aliases): Delete.
2952 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2953 to riscv_check_tdesc_feature in all cases. Use the vector to
2954 create the register aliases.
2955
2956 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2957
2958 * sol2-tdep.c (sol2_static_transform_name): Remove.
2959 (sol2_init_abi): Don't register it.
2960 * gdbarch.sh (static_transform_name): Remove.
2961 * gdbarch.c, gdbarch.h: Regenerate.
2962
2963 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2964 gdbarch_static_transform_name.
2965 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2966 * stabsread.c (define_symbol) <'X'>: Remove.
2967 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2968 handling.
2969 <'V'>: Likewise.
2970 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2971 <'S'>: Remove call to gdbarch_static_transform_name.
2972
2973 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2974
2975 * procfs.c (procfs_pre_trace): New function.
2976 (procfs_target::create_inferior): Pass it to fork_inferior.
2977
2978 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2979
2980 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2981 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2982 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2983 sol2-tdep.o, sparc-sol2-tdep.o.
2984 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2985 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2986 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2987 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2988
2989 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2990
2991 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2992 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2993 Call sol2_init_abi.
2994 Remove calls to set_gdbarch_skip_solib_resolver,
2995 set_gdbarch_core_pid_to_str.
2996 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2997 (i386_sol2_static_transform_name): Remove.
2998 (i386_sol2_init_abi): Call sol2_init_abi.
2999 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3000 set_gdbarch_static_transform_name,
3001 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3002 Use sol2_sigtramp_p.
3003 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3004 (sol2_sigtramp_p): New function.
3005 (sol2_static_transform_name): New function.
3006 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3007 (sol2_init_abi): New function.
3008 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3009 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3010 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3011 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3012 (sparc_sol2_static_transform_name): Remove.
3013 (sparc32_sol2_init_abi): Call sol2_init_abi.
3014 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3015 set_gdbarch_static_transform_name,
3016 set_gdbarch_skip_solib_resolver,
3017 set_gdbarch_core_pid_to_str.
3018 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3019 (sparc_sol2_static_transform_name): Remove
3020 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3021 call sol2_sigtramp_p.
3022 (sparc64_sol2_init_abi): Call sol2_init_abi.
3023 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3024 set_gdbarch_static_transform_name,
3025 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3026
3027 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3028
3029 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3030 * exec.c (validate_exec_file): If from_tty, set both
3031 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3032 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3033 and from_tty, unconditionally ask a confirmation.
3034
3035 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * target-descriptions.c (tdesc_architecture_name): Protect against
3038 NULL pointer dereference.
3039 (maint_print_xml_tdesc_cmd): New function.
3040 (_initialize_target_descriptions): Register new 'maint print
3041 xml-tdesc' command and give it the filename completer.
3042 * NEWS: Mention new 'maint print xml-tdesc' command.
3043
3044 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * target-descriptions.c (class tdesc_compatible_info): New class.
3047 (struct target_desc): Change type of compatible vector.
3048 (tdesc_compatible_p): Update for change in type of
3049 target_desc::compatible.
3050 (tdesc_compatible_info_list): New function.
3051 (tdesc_compatible_info_arch_name): New function.
3052 (tdesc_add_compatible): Update for change in type of
3053 target_desc::compatible.
3054 (print_c_tdesc::visit_pre): Likewise.
3055
3056 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3057
3058 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3059 whitespace to underscore.
3060 (maint_print_c_tdesc_cmd): Use fake filename for target
3061 descriptions that came from the target.
3062 (_initialize_target_descriptions): Add filename command completion
3063 for 'maint print c-tdesc'.
3064
3065 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3068 lines.
3069
3070 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3073 lines.
3074 (dwarf2_find_location_expression): Likewise.
3075 (call_site_parameter_matches): Likewise.
3076 (dwarf2_compile_expr_to_ax): Likewise.
3077 (disassemble_dwarf_expression): Likewise.
3078 (loclist_describe_location): Likewise.
3079
3080 2020-06-23 Pedro Alves <palves@redhat.com>
3081
3082 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3083 progspace-and-thread.h. Include scoped-mock-context.h instead.
3084 (register_to_value_test): Use scoped_mock_context.
3085 * regcache.c: Include "scoped-mock-context.h".
3086 (cooked_read_test): Don't error out if a target is already pushed.
3087 Use scoped_mock_context. Adjust.
3088 * scoped-mock-context.h: New file.
3089
3090 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3093 initializer.
3094 (ada_language::is_string_type_p): New member function.
3095 * c-lang.c (c_language_data): Delete la_is_string_type_p
3096 initializer.
3097 (cplus_language_data): Likewise.
3098 (asm_language_data): Likewise.
3099 (minimal_language_data): Likewise.
3100 * d-lang.c (d_language_data): Likewise.
3101 * f-lang.c (f_is_string_type_p): Delete function, implementation
3102 moved to f_language::is_string_type_p.
3103 (f_language_data): Delete la_is_string_type_p initializer.
3104 (f_language::is_string_type_p): New member function,
3105 implementation from f_is_string_type_p.
3106 * go-lang.c (go_is_string_type_p): Delete function, implementation
3107 moved to go_language::is_string_type_p.
3108 (go_language_data): Delete la_is_string_type_p initializer.
3109 (go_language::is_string_type_p): New member function,
3110 implementation from go_is_string_type_p.
3111 * language.c (language_defn::is_string_type_p): Define new member
3112 function.
3113 (default_is_string_type_p): Make static, add comment copied from
3114 header file.
3115 (unknown_language_data): Delete la_is_string_type_p initializer.
3116 (unknown_language::is_string_type_p): New member function.
3117 (auto_language_data): Delete la_is_string_type_p initializer.
3118 (auto_language::is_string_type_p): New member function.
3119 * language.h (language_data): Delete la_is_string_type_p field.
3120 (language_defn::is_string_type_p): Declare new function.
3121 (default_is_string_type_p): Delete desclaration, move comment to
3122 definition.
3123 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3124 moved to m2_language::is_string_type_p.
3125 (m2_language_data): Delete la_is_string_type_p initializer.
3126 (m2_language::is_string_type_p): New member function,
3127 implementation from m2_is_string_type_p.
3128 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3129 initializer.
3130 * opencl-lang.c (opencl_language_data): Likewise.
3131 * p-lang.c (pascal_is_string_type_p): Delete function,
3132 implementation moved to pascal_language::is_string_type_p.
3133 (pascal_language_data): Delete la_is_string_type_p initializer.
3134 (pascal_language::is_string_type_p): New member function,
3135 implementation from pascal_is_string_type_p.
3136 * rust-lang.c (rust_is_string_type_p): Delete function,
3137 implementation moved to rust_language::is_string_type_p.
3138 (rust_language_data): Delete la_is_string_type_p initializer.
3139 (rust_language::is_string_type_p): New member function,
3140 implementation from rust_is_string_type_p.
3141 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3142 is_string_type_p.
3143
3144 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete la_print_typedef
3147 initializer.
3148 (ada_language::print_typedef): New member function.
3149 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3150 (cplus_language_data): Likewise.
3151 (asm_language_data): Likewise.
3152 (minimal_language_data): Likewise.
3153 * d-lang.c (d_language_data): Likewise.
3154 * f-lang.c (f_language_data): Likewise.
3155 (f_language::print_typedef): New member function.
3156 * go-lang.c (go_language_data): Delete la_print_typedef
3157 initializer.
3158 * language.c (language_defn::print_typedef): Define member
3159 function.
3160 (unknown_language_data): Delete la_print_typedef initializer.
3161 (unknown_language::print_typedef): New member function.
3162 (auto_language_data): Delete la_print_typedef initializer.
3163 (auto_language::print_typedef): New member function.
3164 * language.h (language_data): Delete la_print_typedef field.
3165 (language_defn::print_typedef): Declare new member function.
3166 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3167 (default_print_typedef): Delete declaration.
3168 * m2-lang.c (m2_language_data): Delete la_print_typedef
3169 initializer.
3170 (m2_language::print_typedef): New member function.
3171 * objc-lang.c (objc_language_data): Delete la_print_typedef
3172 initializer.
3173 * opencl-lang.c (opencl_language_data): Likewise.
3174 * p-lang.c (pascal_language_data): Likewise.
3175 (pascal_language::print_typedef): New member function.
3176 * rust-lang.c (rust_print_typedef): Delete function,
3177 implementation moved to rust_language::print_typedef.
3178 (rust_language): Delete la_print_typedef initializer.
3179 (rust_language::print_typedef): New member function,
3180 implementation from rust_print_typedef.
3181 * typeprint.c (default_print_typedef): Delete.
3182
3183 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3184
3185 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3186 (ada_language::printstr): New member function.
3187 * c-lang.c (c_language_data): Delete la_printstr initializer.
3188 (cplus_language_data): Likewise.
3189 (asm_language_data): Likewise.
3190 (minimal_language_data): Likewise.
3191 * d-lang.c (d_language_data): Likewise.
3192 * f-lang.c (f_printstr): Rename to f_language::printstr.
3193 (f_language_data): Delete la_printstr initializer.
3194 (f_language::printstr): New member function, implementation from
3195 f_printstr.
3196 * go-lang.c (go_language_data): Delete la_printstr initializer.
3197 * language.c (language_defn::printstr): Define new member
3198 function.
3199 (unk_lang_printstr): Delete.
3200 (unknown_language_data): Delete la_printstr initializer.
3201 (unknown_language::printstr): New member function.
3202 (auto_language_data): Delete la_printstr initializer.
3203 (auto_language::printstr): New member function.
3204 * language.h (language_data): Delete la_printstr field.
3205 (language_defn::printstr): Declare new member function.
3206 (LA_PRINT_STRING): Update call to printstr.
3207 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3208 (m2_language_data): Delete la_printstr initializer.
3209 (m2_language::printstr): New member function, implementation from
3210 m2_printstr.
3211 * objc-lang.c (objc_language_data): Delete la_printstr
3212 initializer.
3213 * opencl-lang.c (opencl_language_data): Likewise.
3214 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3215 (pascal_language_data): Delete la_printstr initializer.
3216 (pascal_language::printstr): New member function, implementation
3217 from pascal_printstr.
3218 * p-lang.h (pascal_printstr): Delete declaration.
3219 * rust-lang.c (rust_printstr): Update header comment.
3220 (rust_language_data): Delete la_printstr initializer.
3221 (rust_language::printstr): New member function.
3222
3223 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3224
3225 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3226 (ada_language::printchar): New member function.
3227 * c-lang.c (c_language_data): Delete la_printchar initializer.
3228 (cplus_language_data): Likewise.
3229 (asm_language_data): Likewise.
3230 (minimal_language_data): Likewise.
3231 * d-lang.c (d_language_data): Likewise.
3232 * f-lang.c (f_printchar): Rename to f_language::printchar.
3233 (f_language_data): Delete la_printchar initializer.
3234 (f_language::printchar): New member function, implementation from
3235 f_printchar.
3236 * go-lang.c (go_language_data): Delete la_printchar initializer.
3237 * language.c (unk_lang_printchar): Delete.
3238 (language_defn::printchar): Define new member function.
3239 (unknown_language_data): Delete la_printchar initializer.
3240 (unknown_language::printchar): New member function.
3241 (auto_language_data): Delete la_printchar initializer.
3242 (auto_language::printchar): New member function.
3243 * language.h (language_data): Delete la_printchar field.
3244 (language_defn::printchar): Declare new member function.
3245 (LA_PRINT_CHAR): Update call to printchar.
3246 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3247 (m2_language::printchar): New member function.
3248 * objc-lang.c (objc_language_data): Delete la_printchar
3249 initializer.
3250 * opencl-lang.c (opencl_language_data): Likewise.
3251 * p-lang.c (pascal_language_data): Delete la_printchar
3252 initializer.
3253 (pascal_language::printchar): New member function.
3254 * rust-lang.c (rust_printchar): Rename to
3255 rust_language::printchar.
3256 (rust_language_data): Delete la_printchar initializer.
3257 (rust_language::printchar): New member function, implementation
3258 from rust_printchar.
3259
3260 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3261
3262 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3263 (ada_language_data): Delete la_emitchar initializer.
3264 (ada_language::emitchar): New member function, implementation from
3265 emit_char.
3266 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3267 (cplus_language_data): Likewise.
3268 (asm_language_data): Likewise.
3269 (minimal_language_data): Likewise.
3270 * d-lang.c (d_language_data): Likewise.
3271 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3272 (f_language_data): Delete la_emitchar initializer.
3273 (f_language::emitchar): New member function, implementation from
3274 f_emit_char.
3275 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3276 * language.c (unk_lang_emit_char): Delete.
3277 (language_defn::emitchar): New member function definition.
3278 (unknown_language_data): Delete la_emitchar initializer.
3279 (unknown_language::emitchar): New member function.
3280 (auto_language_data): Delete la_emitchar initializer.
3281 (auto_language::emitchar): New member function.
3282 * language.h (language_data): Delete la_emitchar field.
3283 (language_defn::emitchar): New member field declaration.
3284 (LA_EMIT_CHAR): Update call to emitchar.
3285 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3286 (m2_language_data): Delete la_emitchar initializer.
3287 (m2_language::emitchar): New member function, implementation from
3288 m2_emit_char.
3289 * objc-lang.c (objc_language_data): Delete la_emitchar
3290 initializer.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3293 (pascal_language_data): Delete la_emitchar initializer.
3294 (pascal_language::emitchar): New member function, implementation
3295 from pascal_emit_char.
3296 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3297 (rust_language_data): Delete la_emitchar initializer.
3298 (rust_language::emitchar): New member function, implementation
3299 from rust_emitchar.
3300
3301 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3304 (ada_language_data): Delete la_post_parser initializer.
3305 (ada_language::post_parser): New member function.
3306 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3307 (cplus_language_data): Likewise.
3308 (asm_language_data): Likewise.
3309 (minimal_language_data): Likewise.
3310 * d-lang.c (d_language_data): Likewise.
3311 * f-lang.c (f_language_data): Likewise.
3312 * go-lang.c (go_language_data): Likewise.
3313 * language.c (unknown_language_data): Likewise.
3314 (auto_language_data): Likewise.
3315 * language.h (language_data): Delete la_post_parser field.
3316 (language_defn::post_parser): New member function.
3317 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3318 * objc-lang.c (objc_language_data): Likewise.
3319 * opencl-lang.c (opencl_language_data): Likewise.
3320 * p-lang.c (pascal_language_data): Likewise.
3321 * parse.c (parse_exp_in_context): Update call to post_parser.
3322 (null_post_parser): Delete definition.
3323 * parser-defs.h (null_post_parser): Delete declaration.
3324 * rust-lang.c (rust_language_data): Delete la_post_parser
3325 initializer.
3326
3327 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * ada-lang.c (parse): Rename to ada_language::parser.
3330 (ada_language_data): Delete la_parser initializer.
3331 (ada_language::parser): New member function, implementation from
3332 parse.
3333 * c-lang.c (c_language_data): Delete la_parser initializer.
3334 (cplus_language_data): Likewise.
3335 (asm_language_data): Likewise.
3336 (minimal_language_data): Likewise.
3337 * d-lang.c (d_language_data): Likewise.
3338 (d_language::parser): New member function.
3339 * f-lang.c (f_language_data): Delete la_parser initializer.
3340 (f_language::parser): New member function.
3341 * go-lang.c (go_language_data): Delete la_parser initializer.
3342 (go_language::parser): New member function.
3343 * language.c (unk_lang_parser): Delete.
3344 (language_defn::parser): Define new member function.
3345 (unknown_language_data): Delete la_parser initializer.
3346 (unknown_language::parser): New member function.
3347 (auto_language_data): Delete la_parser initializer.
3348 (auto_language::parser): New member function.
3349 * language.h (language_data): Delete la_parser field.
3350 (language_defn::parser): Declare new member function.
3351 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3352 (m2_language::parser): New member function.
3353 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3354 * opencl-lang.c (opencl_language_data): Likewise.
3355 * p-lang.c (pascal_language_data): Likewise.
3356 (pascal_language::parser): New member function.
3357 * parse.c (parse_exp_in_context): Update call to parser.
3358 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3359 (rust_language::parser): New member function.
3360
3361 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3362
3363 * top.c (print_gdb_configuration): Print --with-python-libdir
3364 configuration value.
3365
3366 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3367
3368 * NEWS: Mention change to the alias command.
3369
3370 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3371
3372 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3373 (alias_command_completer)
3374 (make_alias_options_def_group): New functions.
3375 (alias_opts, alias_option_defs): New struct and array.
3376 (alias_usage_error): Update usage.
3377 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3378 Use option framework.
3379 (_initialize_cli_cmds): Update alias command help.
3380 Update aliases command help.
3381 (show_user):
3382 Add NULL for new default_args lookup_cmd argument.
3383 (valid_command_p): Rename to validate_aliased_command.
3384 Add NULL for new default_args lookup_cmd argument. Verify that the
3385 aliased_command has no default args.
3386 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3387 (lookup_cmd_1, lookup_cmd): New argument default_args.
3388 (add_alias_cmd):
3389 Add NULL for new default_args lookup_cmd argument.
3390 (print_help_for_command): Show default args under the layout
3391 alias some_alias = some_aliased_cmd some_alias_default_arg.
3392 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3393 xfree default_args in destructor.
3394 * cli/cli-script.c (process_next_line, do_define_command):
3395 Add NULL for new default_args lookup_cmd argument.
3396 * command.h: Declare new default_args argument in lookup_cmd
3397 and lookup_cmd_1.
3398 * completer.c (complete_line_internal_1):
3399 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3400 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3401 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3402 Likewise.
3403 * infcmd.c (_initialize_infcmd): Likewise.
3404 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3405 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3406 * python/py-param.c (add_setshow_generic): Likewise.
3407 * remote.c (_initialize_remote): Likewise.
3408 * top.c (execute_command): Prepend default_args if command has some.
3409 (set_verbose):
3410 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3411 * tracepoint.c (validate_actionline, encode_actions_1):
3412 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3413
3414 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3415
3416 * jit.c (jit_read_descriptor): Use bool as the return type.
3417 (jit_breakpoint_re_set_internal): Use bool as the return type.
3418 Invert the return value logic; return true if the jit breakpoint
3419 has been successfully initialized.
3420 (jit_inferior_init): Update the call to
3421 jit_breakpoint_re_set_internal.
3422
3423 2020-06-22 Pedro Alves <palves@redhat.com>
3424
3425 PR gdb/25939
3426 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3427 Use the current inferior instead. Don't return
3428 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3429 wait again.
3430 * sol-thread.c (sol_thread_target::wait): Don't reference
3431 inferior_ptid.
3432 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3433 (sol_update_thread_list_callback): Use the current inferior's pid
3434 instead of inferior_ptid.
3435
3436 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3437
3438 * procfs.c: Cleanup many comments.
3439
3440 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3441 (AFTER_WATCHFLAG): Replace by value.
3442
3443 (MAIN_PROC_NAME_FORMAT): Inline ...
3444 (create_procinfo): ... here.
3445
3446 (procfs_debug_inferior): Remove SYS_exec handling.
3447 (syscall_is_exec): Likewise.
3448 (procfs_set_exec_trap): Likewise.
3449
3450 (syscall_is_lwp_exit): Inline in callers.
3451 (syscall_is_exit): Likewise.
3452 (syscall_is_exec): Likewise.
3453 (syscall_is_lwp_create): Likewise.
3454
3455 (invalidate_cache): Remove #if 0 code.
3456
3457 (make_signal_thread_runnable): Remove.
3458 (procfs_target::resume): Remove #if 0 code.
3459
3460 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3461
3462 PR gdb/25939
3463 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3464 call ...
3465 (procfs_target::create_inferior): ... here.
3466
3467 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3468
3469 * exec.c (validate_exec_file): Ensure the build-id is up to
3470 date by calling reopen_exec_file (that checks file timestamp
3471 to decide to re-read the file).
3472
3473 2020-06-18 Pedro Alves <palves@redhat.com>
3474
3475 PR gdb/25412
3476 * gdbthread.h (delete_thread, delete_thread_silent)
3477 (find_thread_ptid): Update comments.
3478 * thread.c (current_thread_): New global.
3479 (is_current_thread): Move higher, and reimplement.
3480 (inferior_thread): Reimplement.
3481 (set_thread_exited): Use bool. Add assertions.
3482 (add_thread_silent): Simplify thread-reuse handling by always
3483 calling delete_thread.
3484 (delete_thread): Remove intro comment.
3485 (find_thread_ptid): Skip exited threads.
3486 (switch_to_thread_no_regs): Write to current_thread_.
3487 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3488 INFERIOR_PTID. Clear current_thread_.
3489
3490 2020-06-18 Pedro Alves <palves@redhat.com>
3491
3492 * aix-thread.c (pd_update): Use switch_to_thread.
3493
3494 2020-06-18 Pedro Alves <palves@redhat.com>
3495
3496 * ravenscar-thread.c (ravenscar_thread_target): Update.
3497 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3498 (ravenscar_thread_target::add_active_thread): ... this. Don't
3499 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3500 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3501
3502 2020-06-18 Pedro Alves <palves@redhat.com>
3503
3504 * nat/windows-nat.c (current_windows_thread): Remove.
3505 * nat/windows-nat.h (current_windows_thread): Remove.
3506 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3507 Adjust.
3508 (display_selectors): Adjust to fetch the current
3509 windows_thread_info based on inferior_ptid.
3510 (fake_create_process): No longer write to current_windows_thread.
3511 (windows_nat_target::get_windows_debug_event):
3512 Don't set inferior_ptid or current_windows_thread.
3513 (windows_nat_target::wait): Adjust to not rely on
3514 current_windows_thread.
3515 (do_initial_windows_stuff): Now a method of windows_nat_target.
3516 Switch to the last_ptid thread.
3517 (windows_nat_target::attach): Adjust.
3518 (windows_nat_target::detach): Use switch_to_no_thread instead of
3519 writing to inferior_ptid directly.
3520 (windows_nat_target::create_inferior): Adjust.
3521
3522 2020-06-18 Pedro Alves <palves@redhat.com>
3523
3524 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3525
3526 2020-06-18 Pedro Alves <palves@redhat.com>
3527
3528 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3529 after creating it, instead of writing to inferior_ptid. Don't
3530 write to inferior_ptid.
3531
3532 2020-06-18 Pedro Alves <palves@redhat.com>
3533
3534 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3535
3536 2020-06-18 Pedro Alves <palves@redhat.com>
3537
3538 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3539 it, instead of writing to inferior_ptid.
3540
3541 2020-06-18 Pedro Alves <palves@redhat.com>
3542
3543 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3544 to inferior_ptid.
3545
3546 2020-06-18 Pedro Alves <palves@redhat.com>
3547
3548 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3549 instead of writing to inferior_ptid directly.
3550
3551 2020-06-18 Pedro Alves <palves@redhat.com>
3552
3553 * corelow.c (core_target::close): Use switch_to_no_thread instead
3554 of writing to inferior_ptid directly.
3555 (add_to_thread_list, core_target_open): Use switch_to_thread
3556 instead of writing to inferior_ptid directly.
3557
3558 2020-06-18 Pedro Alves <palves@redhat.com>
3559
3560 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3561 inferior_ptid.
3562 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3563 inferior_ptid.
3564 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3565 inferior_ptid directly.
3566 (darwin_nat_target::init_thread_list): Switch to thread, instead
3567 of writing to inferior_ptid.
3568 (darwin_nat_target::attach): Don't write to inferior_ptid.
3569 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3570
3571 2020-06-18 Pedro Alves <palves@redhat.com>
3572
3573 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3574 thread.
3575 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3576 Instead use switch_to_thread.
3577 (gnu_nat_target::detach): Use switch_to_no_thread
3578 instead of writing to inferior_ptid directly. Used passed-in
3579 inferior instead of looking up the inferior by pid.
3580
3581 2020-06-18 Pedro Alves <palves@redhat.com>
3582
3583 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3584 inferior_ptid.
3585
3586 2020-06-18 Pedro Alves <palves@redhat.com>
3587
3588 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3589 inferior_ptid.
3590 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3591 thread.
3592 (nto_procfs_target::detach): Avoid referencing
3593 inferior_ptid. Use switch_to_no_thread instead of writing to
3594 inferior_ptid directly.
3595 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3596 instead of writing to inferior_ptid directly.
3597 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3598 to thread.
3599
3600 2020-06-18 Pedro Alves <palves@redhat.com>
3601
3602 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3603 after creating it, instead of writing to inferior_ptid.
3604 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3605 to inferior_ptid directly.
3606 (gdbsim_target::wait): Don't write to inferior_ptid.
3607
3608 2020-06-18 Pedro Alves <palves@redhat.com>
3609
3610 * remote.c (remote_target::remote_notice_new_inferior): Use
3611 switch_to_thread instead of writing to inferior_ptid directly.
3612 (remote_target::add_current_inferior_and_thread): Use
3613 switch_to_no_thread instead of writing to inferior_ptid directly.
3614 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3615 and switch_to_thread instead of using set_current_inferior or
3616 writing to inferior_ptid directly.
3617
3618 2020-06-18 Pedro Alves <palves@redhat.com>
3619
3620 * tracectf.c (ctf_target_open): Switch to added thread instead of
3621 writing to inferior_ptid directly.
3622 (ctf_target::close): Use switch_to_no_thread instead of writing to
3623 inferior_ptid directly.
3624
3625 2020-06-18 Pedro Alves <palves@redhat.com>
3626
3627 * tracefile-tfile.c (tfile_target_open): Don't write to
3628 inferior_ptid directly, instead switch to added thread.
3629 (tfile_target::close): Use switch_to_no_thread instead of writing
3630 to inferior_ptid directly.
3631
3632 2020-06-18 Pedro Alves <palves@redhat.com>
3633
3634 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3635 (procfs_target::detach): Use switch_to_no_thread
3636 instead of writing to inferior_ptid directly.
3637 (do_attach): Change return type to void. Switch to the added
3638 thread.
3639 (procfs_target::create_inferior): Switch to the added thread.
3640 (procfs_do_thread_registers): Don't write to inferior_ptid.
3641
3642 2020-06-18 Pedro Alves <palves@redhat.com>
3643
3644 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3645 of writing to inferior_ptid.
3646 (scoped_restore_exited_inferior): Delete.
3647 (handle_vfork_child_exec_or_exit): Simplify using
3648 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3649 instead of writing to inferior_ptid.
3650 (THREAD_STOPPED_BY): Delete.
3651 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3652 (thread_stopped_by_hw_breakpoint): Delete.
3653 (save_waitstatus): Use
3654 scoped_restore_current_thread+switch_to_thread, and call
3655 target_stopped_by_watchpoint instead of
3656 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3657 instead of thread_stopped_by_sw_breakpoint, and
3658 target_stopped_by_hw_breakpoint instead of
3659 thread_stopped_by_hw_breakpoint.
3660 (handle_inferior_event)
3661 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3662 inferior_ptid directly, nor
3663 set_current_inferior/set_current_program_space. Use
3664 switch_to_thread / switch_to_inferior_no_thread instead.
3665
3666 2020-06-18 Pedro Alves <palves@redhat.com>
3667
3668 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3669 instead of writing to inferior_ptid.
3670
3671 2020-06-18 Pedro Alves <palves@redhat.com>
3672
3673 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3674 added thread.
3675 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3676 to the added thread.
3677 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3678 instead of writing to inferior_ptid.
3679
3680 2020-06-18 Pedro Alves <palves@redhat.com>
3681
3682 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3683 (register_to_value_test): Mock a program_space too. Heap-allocate
3684 the address space. Don't write to inferior_ptid. Use
3685 switch_to_thread instead.
3686
3687 2020-06-18 Pedro Alves <palves@redhat.com>
3688
3689 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3690 Delete.
3691 (find_signalled_thread()): New, factored out from
3692 linux_make_corefile_notes and adjusted to handle exited threads.
3693 (linux_make_corefile_notes): Adjust to use the new
3694 find_signalled_thread.
3695
3696 2020-06-18 Pedro Alves <palves@redhat.com>
3697
3698 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3699 of saving/restoring inferior_ptid.
3700
3701 2020-06-17 Tom Tromey <tom@tromey.com>
3702
3703 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3704 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3705 declare.
3706 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3707
3708 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3711 of partial symtabs.
3712
3713 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * regformats/reg-arm.dat: Remove.
3716 * regformats/reg-bfin.dat: Remove.
3717 * regformats/reg-cris.dat: Remove.
3718 * regformats/reg-crisv32.dat: Remove.
3719 * regformats/reg-m32r.dat: Remove.
3720 * regformats/reg-tilegx.dat: Remove.
3721 * regformats/reg-tilegx32.dat: Remove.
3722
3723 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * features/Makefile (WHICH): Remove arm files.
3726 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3727 * regformats/arm/arm-with-neon.dat: Remove.
3728 * regformats/arm/arm-with-vfpv2.dat: Remove.
3729 * regformats/arm/arm-with-vfpv3.dat: Remove.
3730
3731 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * features/Makefile (XMLTOC): Remove rx.xml.
3734
3735 2020-06-17 Pedro Alves <palves@redhat.com>
3736
3737 * gdbthread.h (thread_control_state) <trap_expected> Update
3738 comments.
3739
3740 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3743 ada_language::lookup_symbol_nonlocal.
3744 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3745 (ada_language::lookup_symbol_nonlocal): New member function,
3746 implementation from ada_lookup_symbol_nonlocal.
3747 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3748 initializer.
3749 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3750 initializer.
3751 (cplus_language::lookup_symbol_nonlocal): New member function.
3752 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3753 (minimal_language_data) Likewise.
3754 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3755 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3756 initializer.
3757 (d_language::lookup_symbol_nonlocal): New member function.
3758 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3759 initializer.
3760 (f_language::lookup_symbol_nonlocal): New member function.
3761 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3762 initializer.
3763 * language.c (unknown_language_data): Likewise.
3764 (auto_language_data): Likewise.
3765 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3766 field.
3767 (language_defn::lookup_symbol_nonlocal): New member function.
3768 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3769 initializer.
3770 * objc-lang.c (objc_language_data): Likewise.
3771 * opencl-lang.c (opencl_language_data): Likewise.
3772 * p-lang.c (pascal_language_data): Likewise.
3773 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3774 rust_language::lookup_symbol_nonlocal.
3775 (rust_language_data): Delete la_lookup_symbol_nonlocal
3776 initializer.
3777 (rust_language::lookup_symbol_nonlocal): New member function,
3778 implementation from rust_lookup_symbol_nonlocal.
3779 * symtab.c (lookup_symbol_aux): Update call to
3780 lookup_symbol_nonlocal.
3781 (basic_lookup_symbol_nonlocal): Rename to...
3782 (language_defn::lookup_symbol_nonlocal): ...this, and update
3783 header comment. Remove language_defn parameter, and replace with
3784 uses of `this'.
3785 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3786
3787 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3790 initializer.
3791 (ada_language::value_print_inner): New member function.
3792 * c-lang.c (c_language_data): Delete la_value_print_inner
3793 initializer.
3794 (cplus_language_data): Likewise.
3795 (asm_language_data): Likewise.
3796 (minimal_language_data): Likewise.
3797 * d-lang.c (d_language_data): Likewise.
3798 (d_language::value_print_inner): New member function.
3799 * f-lang.c (f_language_data): Delete la_value_print_inner
3800 initializer.
3801 (f_language::value_print_inner): New member function.
3802 * f-lang.h (f_value_print_innner): Rename to...
3803 (f_value_print_inner): ...this (note spelling of 'inner').
3804 * f-valprint.c (f_value_print_innner): Rename to...
3805 (f_value_print_inner): ...this (note spelling of 'inner').
3806 * go-lang.c (go_language_data): Delete la_value_print_inner
3807 initializer.
3808 (go_language::value_print_inner): New member function.
3809 * language.c (language_defn::value_print_inner): Define new member
3810 function.
3811 (unk_lang_value_print_inner): Delete.
3812 (unknown_language_data): Delete la_value_print_inner initializer.
3813 (unknown_language::value_print_inner): New member function.
3814 (auto_language_data): Delete la_value_print_inner initializer.
3815 (auto_language::value_print_inner): New member function.
3816 * language.h (language_data): Delete la_value_print_inner field.
3817 (language_defn::value_print_inner): Delcare new member function.
3818 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3819 initializer.
3820 (m2_language::value_print_inner): New member function.
3821 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3822 initializer.
3823 * opencl-lang.c (opencl_language_data): Likewise.
3824 * p-lang.c (pascal_language_data): Likewise.
3825 (pascal_language::value_print_inner): New member function.
3826 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3827 initializer.
3828 (rust_language::value_print_inner): New member function.
3829 * valprint.c (do_val_print): Update call to value_print_inner.
3830
3831 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * ada-lang.c (ada_language_data): Delete la_value_print
3834 initializer.
3835 (ada_language::value_print): New member function.
3836 * c-lang.c (c_language_data): Delete la_value_print initializer.
3837 (cplus_language_data): Likewise.
3838 (asm_language_data): Likewise.
3839 (minimal_language_data): Likewise.
3840 * d-lang.c (d_language_data): Likewise.
3841 * f-lang.c (f_language_data): Likewise.
3842 * go-lang.c (go_language_data): Likewise.
3843 * language.c (unk_lang_value_print): Delete.
3844 (language_defn::value_print): Define new member function.
3845 (unknown_language_data): Delete la_value_print initializer.
3846 (unknown_language::value_print): New member function.
3847 (auto_language_data): Delete la_value_print initializer.
3848 (auto_language::value_print): New member function.
3849 * language.h (language_data): Delete la_value_print field.
3850 (language_defn::value_print): Declare new member function.
3851 (LA_VALUE_PRINT): Update call to value_print.
3852 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3853 * objc-lang.c (objc_language_data): Likewise.
3854 * opencl-lang.c (opencl_language_data): Likewise.
3855 * p-lang.c (pascal_language_data): Likewise.
3856 (pascal_language::value_print): New member function.
3857 * rust-lang.c (rust_language_data): Delete la_value_print
3858 initializer.
3859
3860 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * ada-lang.c (ada_watch_location_expression): Rename to
3863 ada_language::watch_location_expression.
3864 (ada_language_data): Delete la_watch_location_expression
3865 initializer.
3866 (ada_language::watch_location_expression): New member function,
3867 implementation from ada_watch_location_expression.
3868 * breakpoint.c (watch_command_1): Update call to
3869 watch_location_expression.
3870 * c-lang.c (c_watch_location_expression): Rename to
3871 language_defn::watch_location_expression.
3872 (c_language_data): Delete la_watch_location_expression
3873 initializer.
3874 (cplus_language_data): Likewise.
3875 (asm_language_data): Likewise.
3876 (minimal_language_data): Likewise.
3877 * c-lang.h (c_watch_location_expression): Delete declaration.
3878 * d-lang.c (d_language_data): Delete la_watch_location_expression
3879 initializer.
3880 * f-lang.c (f_language_data): Likewise.
3881 * go-lang.c (go_language_data): Likewise.
3882 * language.c (language_defn::watch_location_expression): Member
3883 function implementation from c_watch_location_expression.
3884 (unknown_language_data): Delete la_watch_location_expression
3885 initializer.
3886 (auto_language_data): Likewise.
3887 * language.h (language_data): Delete la_watch_location_expression
3888 field.
3889 (language_defn::watch_location_expression): Declare new member
3890 function.
3891 * m2-lang.c (m2_language_data): Delete
3892 la_watch_location_expression initializer.
3893 * objc-lang.c (objc_language_data): Likewise.
3894 * opencl-lang.c (opencl_language_data): Likewise.
3895 * p-lang.c (pascal_language_data): Likewise.
3896 * rust-lang.c (rust_watch_location_expression): Rename to
3897 rust_language::watch_location_expression.
3898 (rust_language_data): Delete la_watch_location_expression
3899 initializer.
3900 (rust_language::watch_location_expression): New member function,
3901 implementation from rust_watch_location_expression.
3902
3903 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3906 ada_language::collect_symbol_completion_matches.
3907 (ada_language_data): Delete la_collect_symbol_completion_matches
3908 initializer.
3909 (ada_language::collect_symbol_completion_matches): New member
3910 function, implementation from
3911 ada_collect_symbol_completion_matches.
3912 * c-lang.c (c_language_data): Delete
3913 la_collect_symbol_completion_matches initializer.
3914 (cplus_language_data): Likewise.
3915 (asm_language_data): Likewise.
3916 (minimal_language_data): Likewise.
3917 * d-lang.c (d_language_data): Likewise.
3918 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3919 f_language::collect_symbol_completion_matches.
3920 (f_language_data): Delete la_collect_symbol_completion_matches
3921 initializer.
3922 (f_language::collect_symbol_completion_matches) New member
3923 function, implementation from f_collect_symbol_completion_matches.
3924 * go-lang.c (go_language_data): Delete
3925 la_collect_symbol_completion_matches initializer.
3926 * language.c (unknown_language_data): Likewise.
3927 (auto_language_data): Likewise.
3928 * language.h (language_data): Delete
3929 la_collect_symbol_completion_matches field.
3930 (language_defn::collect_symbol_completion_matches): New member
3931 function.
3932 * m2-lang.c (m2_language_data): Delete
3933 la_collect_symbol_completion_matches initializer.
3934 * objc-lang.c (objc_language_data): Likewise.
3935 * opencl-lang.c (opencl_language_data): Likewise.
3936 * p-lang.c (pascal_language_data): Likewise.
3937 * rust-lang.c (rust_language_data): Likewise.
3938 * symtab.c (default_collect_symbol_completion_matches): Delete.
3939 (collect_symbol_completion_matches): Update call to
3940 collect_symbol_completion_matches.
3941 (collect_symbol_completion_matches_type): Likewise.
3942 * symtab.h (default_collect_symbol_completion_matches): Delete
3943 declaration.
3944
3945 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3948 (ada_language_data): Delete la_word_break_characters initializer.
3949 (ada_language::word_break_characters): New member function.
3950 * c-lang.c (c_language_data): Delete la_word_break_characters
3951 initializer.
3952 (cplus_language_data): Likewise.
3953 (asm_language_data): Likewise.
3954 (minimal_language_data): Likewise.
3955 * completer.c: Update global comment.
3956 (advance_to_expression_complete_word_point): Update call to
3957 word_break_characters.
3958 (complete_files_symbols): Likewise.
3959 (complete_line_internal_1): Likewise.
3960 (default_completer_handle_brkchars): Likewise.
3961 (skip_quoted_chars): Likewise.
3962 * d-lang.c (d_language_data): Delete la_word_break_characters
3963 initializer.
3964 * f-lang.c (f_word_break_characters): Delete.
3965 (f_language_data): Delete la_word_break_characters initializer.
3966 (f_language::word_break_characters): New member function.
3967 * go-lang.c (go_language_data): Delete la_word_break_characters
3968 initializer.
3969 * language.c (unknown_language_data): Likewise.
3970 (auto_language_data): Likewise.
3971 * language.h (default_word_break_characters): Move declaration to
3972 earlier in the file.
3973 (language_data): Delete la_word_break_characters field.
3974 (language_defn::word_break_characters): New member function.
3975 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3976 initializer.
3977 * objc-lang.c (objc_language_data): Likewise.
3978 * opencl-lang.c (opencl_language_data): Likewise.
3979 * p-lang.c (pascal_language_data): Likewise.
3980 * rust-lang.c (rust_language_data): Likewise.
3981
3982 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3985 (ada_language_data): Delete la_get_symbol_name_matcher
3986 initializer.
3987 (language_defn::get_symbol_name_matcher_inner): New member
3988 function.
3989 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3990 initializer.
3991 (cplus_language_data): Likewise.
3992 (cplus_language::get_symbol_name_matcher_inner): New member
3993 function.
3994 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3995 (minimal_language_data): Likewise.
3996 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3997 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3998 initializer.
3999 * dictionary.c (iter_match_first_hashed): Update call to
4000 get_symbol_name_matcher.
4001 (iter_match_next_hashed): Likewise.
4002 (iter_match_next_linear): Likewise.
4003 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4004 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4005 initializer.
4006 (f_language::get_symbol_name_matcher_inner): New member function.
4007 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4008 initializer.
4009 * language.c (default_symbol_name_matcher): Update header comment,
4010 make static.
4011 (language_defn::get_symbol_name_matcher): New definition.
4012 (language_defn::get_symbol_name_matcher_inner): Likewise.
4013 (get_symbol_name_matcher): Delete.
4014 (unknown_language_data): Delete la_get_symbol_name_matcher
4015 initializer.
4016 (auto_language_data): Likewise.
4017 * language.h (language_data): Delete la_get_symbol_name_matcher
4018 field.
4019 (language_defn::get_symbol_name_matcher): New member function.
4020 (language_defn::get_symbol_name_matcher_inner): Likewise.
4021 (default_symbol_name_matcher): Delete declaration.
4022 * linespec.c (find_methods): Update call to
4023 get_symbol_name_matcher.
4024 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4025 initializer.
4026 * minsyms.c (lookup_minimal_symbol): Update call to
4027 get_symbol_name_matcher.
4028 (iterate_over_minimal_symbols): Likewise.
4029 * objc-lang.c (objc_language_data): Delete
4030 la_get_symbol_name_matcher initializer.
4031 * opencl-lang.c (opencl_language_data): Likewise.
4032 * p-lang.c (pascal_language_data): Likewise.
4033 * psymtab.c (psymbol_name_matches): Update call to
4034 get_symbol_name_matcher.
4035 * rust-lang.c (rust_language_data): Delete
4036 la_get_symbol_name_matcher initializer.
4037 * symtab.c (symbol_matches_search_name): Update call to
4038 get_symbol_name_matcher.
4039 (compare_symbol_name): Likewise.
4040
4041 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * ada-lang.c (ada_language_data): Delete la_compute_program
4044 initializer.
4045 * c-lang.c (c_language_data): Likewise.
4046 (c_language::compute_program): New member function.
4047 (cplus_language_data): Delete la_compute_program initializer.
4048 (cplus_language::compute_program): New member function.
4049 (asm_language_data): Delete la_compute_program initializer.
4050 (minimal_language_data): Likewise.
4051 * c-lang.h (c_compute_program): Update comment.
4052 (cplus_compute_program): Likewise.
4053 * compile/compile-c-support.c (c_compute_program): Likewise.
4054 (cplus_compute_program): Likewise.
4055 * compile/compile.c (compile_to_object): Update call to
4056 la_compute_program.
4057 * d-lang.c (d_language_data): Delete la_compute_program
4058 initializer.
4059 * f-lang.c (f_language_data): Likewise.
4060 * go-lang.c (go_language_data): Likewise.
4061 * language.c (unknown_language_data): Likewise.
4062 (auto_language_data): Likewise.
4063 * language.h (language_data): Delete la_compute_program field.
4064 (language_defn::compute_program): New member function.
4065 * m2-lang.c (m2_language_data): Delete la_compute_program
4066 initializer.
4067 * objc-lang.c (objc_language_data): Likewise.
4068 * opencl-lang.c (opencl_language_data): Likewise.
4069 * p-lang.c (pascal_language_data): Likewise.
4070 * rust-lang.c (rust_language_data): Likewise.
4071
4072 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4073
4074 * ada-lang.c (ada_language_data) Delete
4075 la_class_name_from_physname initializer.
4076 * c-lang.c (c_language_data): Likewise.
4077 (cplus_language_data): Likewise.
4078 (cplus_language::class_name_from_physname): New member function.
4079 (asm_language_data): Delete la_class_name_from_physname
4080 initializer.
4081 (minimal_language_data): Likewise.
4082 * d-lang.c (d_language_data): Likewise.
4083 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4084 method on language_defn class.
4085 (guess_full_die_structure_name): Likewise.
4086 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4087 initializer.
4088 * go-lang.c (go_language_data): Likewise.
4089 * language.c (language_class_name_from_physname): Delete.
4090 (unk_lang_class_name): Delete.
4091 (unknown_language_data): Delete la_class_name_from_physname
4092 initializer.
4093 (auto_language_data): Likewise.
4094 * language.h (language_data): Delete la_class_name_from_physname
4095 field.
4096 (language_defn::class_name_from_physname): New function.
4097 (language_class_name_from_physname): Delete declaration.
4098 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4099 initializer.
4100 * objc-lang.c (objc_language_data): Likewise.
4101 * opencl-lang.c (opencl_language_data): Likewise.
4102 * p-lang.c (pascal_language_data): Likewise.
4103 * rust-lang.c (rust_language_data): Likewise.
4104
4105 2020-06-16 Tom Tromey <tom@tromey.com>
4106
4107 * tui/tui-data.h (STATUS_NAME): New macro.
4108 * tui/tui-layout.c (tui_remove_some_windows)
4109 (initialize_known_windows, tui_register_window)
4110 (tui_layout_split::remove_windows, initialize_layouts)
4111 (tui_new_layout_command): Don't use hard-coded window names.
4112
4113 2020-06-16 Tom Tromey <tom@tromey.com>
4114
4115 PR tui/25348:
4116 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4117 tui_initialize_readline. Only run once. Call rl_initialize.
4118 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4119 tui_initialize_readline.
4120 * tui/tui-io.c (tui_setup_io): Call
4121 tui_ensure_readline_initialized.
4122 * tui/tui-interp.c (tui_interp::init): Update.
4123
4124 2020-06-16 Tom Tromey <tom@tromey.com>
4125
4126 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4127 Also preserve the status window.
4128
4129 2020-06-16 Tom Tromey <tom@tromey.com>
4130
4131 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4132 where m_window==nullptr.
4133
4134 2020-06-15 Tom Tromey <tromey@adacore.com>
4135
4136 * windows-nat.c (windows_nat::handle_output_debug_string):
4137 Update.
4138 (windows_nat::handle_ms_vc_exception): Update.
4139 * target.h (target_read_string): Change API.
4140 * target.c (target_read_string): Change API.
4141 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4142 Update.
4143 * solib-frv.c (frv_current_sos): Update.
4144 * solib-dsbt.c (dsbt_current_sos): Update.
4145 * solib-darwin.c (darwin_current_sos): Update.
4146 * linux-thread-db.c (inferior_has_bug): Update.
4147 * expprint.c (print_subexp_standard): Update.
4148 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4149 (ada_exception_message_1): Update.
4150
4151 2020-06-15 Tom Tromey <tromey@adacore.com>
4152
4153 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4154
4155 2020-06-15 Tom Tromey <tromey@adacore.com>
4156
4157 * valprint.c (read_string): Update comment.
4158 * target.c (MIN): Remove.
4159 (target_read_string): Rewrite.
4160
4161 2020-06-15 Tom Tromey <tromey@adacore.com>
4162
4163 * corefile.c (read_memory_string): Remove.
4164 * ada-valprint.c (ada_value_print_ptr): Update.
4165 * ada-lang.h (ada_tag_name): Change return type.
4166 * ada-lang.c (type_from_tag): Update.
4167 (ada_tag_name_from_tsd): Change return type. Use
4168 target_read_string.
4169 (ada_tag_name): Likewise.
4170 * gdbcore.h (read_memory_string): Don't declare.
4171
4172 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4173
4174 * symtab.c (rbreak_command): Ignore Windows drive colon.
4175
4176 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4177
4178 * NEWS: Mention removed GDBserver host support.
4179
4180 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4181
4182 * features/riscv/rebuild-csr-xml.sh: Updated.
4183
4184 2020-06-11 Tom Tromey <tom@tromey.com>
4185
4186 PR gdb/18318:
4187 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4188
4189 2020-06-09 Jonny Grant <jg@jguk.org>
4190 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4191
4192 * main.c (captured_main_1): Don't print new line after help.
4193 (print_gdb_help): add mailing list and IRC channel information
4194 to --help. Add new lines between items in the footer. Remove
4195 quotes around bug url.
4196
4197 2020-06-11 Keith Seitz <keiths@redhat.com>
4198
4199 PR gdb/21356
4200 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4201 Resolve typedefs for type length calculations.
4202
4203 2020-06-10 Tom de Vries <tdevries@suse.de>
4204
4205 PR ada/24713
4206 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4207 (write_psymbols): Enable .gdb_index for ada.
4208 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4209 ada.
4210
4211 2020-06-10 Tom de Vries <tdevries@suse.de>
4212
4213 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4214 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4215 namei" instead of "const char *name" argument.
4216 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4217 dw2_symtab_iter_init.
4218
4219 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4222 to use type::field and field::type instead.
4223
4224 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4227 to use field::type instead.
4228
4229 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (struct field) <type, set_type>: New methods.
4232 Rename `type` field to...
4233 <m_type>: ... this. Change references throughout to use type or
4234 set_type methods.
4235 (FIELD_TYPE): Use field::type. Change call sites that modify
4236 the field's type to use field::set_type instead.
4237
4238 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4241 to use type::index_type instead.
4242
4243 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4246 methods.
4247 (TYPE_INDEX_TYPE): Use type::index_type.
4248 * gdbtypes.c (create_array_type_with_stride): Likewise.
4249
4250 2020-06-07 Tom Tromey <tom@tromey.com>
4251
4252 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4253 parameter.
4254 (generic_value_print): Update.
4255
4256 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 Revert commit 982a38f60b0.
4259 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4260
4261 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4262
4263 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4264 avoid use after free.
4265
4266 2020-06-05 Tom de Vries <tdevries@suse.de>
4267
4268 * NEWS: Fix typos.
4269
4270 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4273 the per_bfd object.
4274 (dwarf2_read_debug_names): Likewise.
4275 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4276 object when re-using a per_bfd object with an index.
4277
4278 2020-06-03 Tom de Vries <tdevries@suse.de>
4279
4280 PR symtab/26046
4281 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4282 children for C++.
4283 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4284 DW_TAG_subprogram.
4285
4286 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * ada-lang.c (ada_language_data): Delete skip_trampoline
4289 initializer.
4290 * c-lang.c (c_language_data): Likewise.
4291 (cplus_language_data): Likewise.
4292 (cplus_language::skip_trampoline): New member function.
4293 (asm_language_data): Delete skip_trampoline initializer.
4294 (minimal_language_data): Likewise.
4295 * d-lang.c (d_language_data): Likewise.
4296 * f-lang.c (f_language_data): Likewise.
4297 * go-lang.c (go_language_data): Likewise.
4298 * language.c (unk_lang_trampoline): Delete function.
4299 (skip_language_trampoline): Update.
4300 (unknown_language_data): Delete skip_trampoline initializer.
4301 (auto_language_data): Likewise.
4302 * language.h (language_data): Delete skip_trampoline field.
4303 (language_defn::skip_trampoline): New function.
4304 * m2-lang.c (m2_language_data): Delete skip_trampoline
4305 initializer.
4306 * objc-lang.c (objc_skip_trampoline): Delete function, move
4307 implementation to objc_language::skip_trampoline.
4308 (objc_language_data): Delete skip_trampoline initializer.
4309 (objc_language::skip_trampoline): New member function with
4310 implementation from objc_skip_trampoline.
4311 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4312 initializer.
4313 * p-lang.c (pascal_language_data): Likewise.
4314 * rust-lang.c (rust_language_data): Likewise.
4315
4316 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4317
4318 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4319 (ada_language::demangle): New member function.
4320 * c-lang.c (c_language_data): Delete la_demangle initializer.
4321 (cplus_language_data): Delete la_demangle initializer.
4322 (cplus_language::demangle): New member function.
4323 (asm_language_data): Delete la_demangle initializer.
4324 (minimal_language_data): Delete la_demangle initializer.
4325 * d-lang.c (d_language_data): Delete la_demangle initializer.
4326 (d_language::demangle): New member function.
4327 * f-lang.c (f_language_data): Delete la_demangle initializer.
4328 (f_language::demangle): New member function.
4329 * go-lang.c (go_language_data): Delete la_demangle initializer.
4330 (go_language::demangle): New member function.
4331 * language.c (language_demangle): Update.
4332 (unk_lang_demangle): Delete.
4333 (unknown_language_data): Delete la_demangle initializer.
4334 (unknown_language::demangle): New member function.
4335 (auto_language_data): Delete la_demangle initializer.
4336 (auto_language::demangle): New member function.
4337 * language.h (language_data): Delete la_demangle field.
4338 (language_defn::demangle): New function.
4339 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4340 * objc-lang.c (objc_language_data): Delete la_demangle
4341 initializer.
4342 (objc_language::demangle): New member function.
4343 * opencl-lang.c (opencl_language_data): Delete la_demangle
4344 initializer.
4345 * p-lang.c (pascal_language_data): Likewise.
4346 * rust-lang.c (rust_language_data): Likewise.
4347 (rust_language::demangle): New member function.
4348
4349 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4350
4351 * ada-lang.c (ada_language_data): Delete la_print_type
4352 initializer.
4353 (ada_language::print_type): New member function.
4354 * c-lang.c (c_language_data): Delete la_print_type initializer.
4355 (c_language::print_type): New member function.
4356 (cplus_language_data): Delete la_print_type initializer.
4357 (cplus_language::print_type): New member function.
4358 (asm_language_data): Delete la_print_type initializer.
4359 (asm_language::print_type): New member function.
4360 (minimal_language_data): Delete la_print_type initializer.
4361 (minimal_language::print_type): New member function.
4362 * d-lang.c (d_language_data): Delete la_print_type initializer.
4363 (d_language::print_type): New member function.
4364 * f-lang.c (f_language_data): Delete la_print_type initializer.
4365 (f_language::print_type): New member function.
4366 * go-lang.c (go_language_data): Delete la_print_type initializer.
4367 (go_language::print_type): New member function.
4368 * language.c (unk_lang_print_type): Delete.
4369 (unknown_language_data): Delete la_print_type initializer.
4370 (unknown_language::print_type): New member function.
4371 (auto_language_data): Delete la_print_type initializer.
4372 (auto_language::print_type): New member function.
4373 * language.h (language_data): Delete la_print_type field.
4374 (language_defn::print_type): New function.
4375 (LA_PRINT_TYPE): Update.
4376 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4377 (m2_language::print_type): New member function.
4378 * objc-lang.c (objc_language_data): Delete la_print_type
4379 initializer.
4380 (objc_language::print_type): New member function.
4381 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4382 to opencl_language::print_type.
4383 (opencl_language_data): Delete la_print_type initializer.
4384 (opencl_language::print_type): New member function, implementation
4385 from opencl_print_type.
4386 * p-lang.c (pascal_language_data): Delete la_print_type
4387 initializer.
4388 (pascal_language::print_type): New member function.
4389 * rust-lang.c (rust_print_type): Delete, implementation moved to
4390 rust_language::print_type.
4391 (rust_language_data): Delete la_print_type initializer.
4392 (rust_language::print_type): New member function, implementation
4393 from rust_print_type.
4394
4395 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4398 implementation moves to...
4399 (ada_language::sniff_from_mangled_name): ...here. Update return
4400 type.
4401 (ada_language_data): Delete la_sniff_from_mangled_name
4402 initializer.
4403 * c-lang.c (c_language_data): Likewise.
4404 (cplus_language_data): Likewise.
4405 (cplus_language::sniff_from_mangled_name): New member function,
4406 implementation taken from gdb_sniff_from_mangled_name.
4407 (asm_language_data): Delete la_sniff_from_mangled_name
4408 initializer.
4409 (minimal_language_data): Likewise.
4410 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4411 implementation moves to cplus_language::sniff_from_mangled_name.
4412 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4413 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4414 moves to...
4415 (d_language::sniff_from_mangled_name): ...here.
4416 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4417 * f-lang.c (f_language_data): Likewise.
4418 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4419 moves to...
4420 (go_language::sniff_from_mangled_name): ...here.
4421 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4422 * language.c (language_sniff_from_mangled_name): Delete.
4423 (unknown_language_data): Delete la_sniff_from_mangled_name
4424 initializer.
4425 (auto_language_data): Likewise.
4426 * language.h (language_data): Delete la_sniff_from_mangled_name
4427 field.
4428 (language_defn::sniff_from_mangled_name): New function.
4429 (language_sniff_from_mangled_name): Delete declaration.
4430 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4431 field.
4432 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4433 implementation moves to...
4434 (objc_language::sniff_from_mangled_name): ...here.
4435 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4436 * opencl-lang.c (opencl_language_data): Likewise.
4437 * p-lang.c (pascal_language_data): Likewise.
4438 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4439 implementation moves to...
4440 (rust_language::sniff_from_mangled_name): ...here.
4441 (rust_language_data): Delete la_sniff_from_mangled_name
4442 initializer.
4443 * symtab.c (symbol_find_demangled_name): Call
4444 sniff_from_mangled_name member function.
4445
4446 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4449 initializer.
4450 * c-lang.c (c_language_data): Likewise.
4451 (cplus_language_data): Likewise.
4452 (cplus_language::search_name_hash): New member function.
4453 (asm_language_data): Delete la_search_name_hash initializer.
4454 (minimal_language_data): Likewise.
4455 * d-lang.c (d_language_data): Likewise.
4456 * dictionary.c (default_search_name_hash): Rename to...
4457 (language_defn::search_name_hash): ...this.
4458 * f-lang.c (f_language_data): Likewise.
4459 (f_language::search_name_hash): New member function.
4460 * go-lang.c (go_language_data): Delete la_search_name_hash
4461 initializer.
4462 * language.c (unknown_language_data): Likewise.
4463 (auto_language_data): Likewise.
4464 * language.h (struct language_data): Delete la_search_name_hash
4465 field.
4466 (language_defn::search_name_hash): Declare new member function.
4467 (default_search_name_hash): Delete declaration.
4468 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4469 initializer.
4470 * objc-lang.c (objc_language_data): Likewise.
4471 * opencl-lang.c (opencl_language_data): Likewise.
4472 * p-lang.c (pascal_language_data): Likewise.
4473 * rust-lang.c (rust_language_data): Likewise.
4474 * symtab.c (search_name_hash): Update call.
4475
4476 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4479 initializer.
4480 * c-lang.c (class compile_instance): Declare.
4481 (c_language_data): Delete la_get_compile_instance initializer.
4482 (c_language::get_compile_instance): New member function.
4483 (cplus_language_data): Delete la_get_compile_instance initializer.
4484 (cplus_language::get_compile_instance): New member function.
4485 (asm_language_data): Delete la_get_compile_instance initializer.
4486 (minimal_language_data): Likewise.
4487 * c-lang.h (c_get_compile_context): Update comment.
4488 (cplus_get_compile_context): Update comment.
4489 * compile/compile.c (compile_to_object): Update calls, don't rely
4490 on function pointer being NULL.
4491 * d-lang.c (d_language_data): Delete la_get_compile_instance
4492 initializer.
4493 * f-lang.c (f_language_data): Likewise.
4494 * go-lang.c (go_language_data): Likewise.
4495 * language.c (unknown_language_data): Likewise.
4496 (auto_language_data): Likewise.
4497 * language.h (language_data): Delete la_get_compile_instance field.
4498 (language_defn::get_compile_instance): New member function.
4499 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4500 initializer.
4501 * objc-lang.c (objc_language_data): Likewise.
4502 * opencl-lang.c (opencl_language_data): Likewise.
4503 * p-lang.c (pascal_language_data): Likewise.
4504 * rust-lang.c (rust_language_data): Likewise.
4505
4506 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4507
4508 * ada-lang.c (ada_add_all_symbols): Update comment.
4509 (ada_iterate_over_symbols): Delete, move implementation to...
4510 (ada_language::iterate_over_symbols): ...here, a new member
4511 function, rewrite to use range based for loop.
4512 (ada_language_data): Delete la_iterate_over_symbols initializer.
4513 * c-lang.c (c_language_data): Likewise.
4514 (cplus_language_data): Likewise.
4515 (asm_language_data): Likewise.
4516 (minimal_language_data): Likewise.
4517 * d-lang.c (d_language_data): Likewise.
4518 * f-lang.c (f_language_data): Likewise.
4519 * go-lang.c (go_language_data): Likewise.
4520 * language.c (unknown_language_data): Likewise.
4521 (auto_language_data): Likewise.
4522 * language.h (language_data): Delete la_iterate_over_symbols field.
4523 (language_defn::iterate_over_symbols): New member function.
4524 (LA_ITERATE_OVER_SYMBOLS): Update.
4525 * linespec.c (iterate_over_all_matching_symtabs): Update.
4526 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4527 initializer.
4528 * objc-lang.c (objc_language_data): Likewise.
4529 * opencl-lang.c (opencl_language_data): Likewise.
4530 * p-lang.c (pascal_language_data): Likewise.
4531 * rust-lang.c (rust_language_data): Likewise.
4532
4533 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4534
4535 * ada-lang.c (ada_language_data): Delete
4536 la_lookup_transparent_type initializer.
4537 * c-lang.c (c_language_data): Likewise.
4538 (cplus_language_data): Likewise.
4539 (cplus_language::lookup_transparent_type): New member function.
4540 (asm_language_data): Delete la_lookup_transparent_type
4541 initializer.
4542 (minimal_language_data): Likewise.
4543 * d-lang.c (d_language_data): Likewise.
4544 * f-lang.c (f_language_data): Likewise.
4545 * go-lang.c (go_language_data): Likewise.
4546 * language.c (unknown_language_data): Likewise.
4547 (auto_language_data): Likewise.
4548 * language.h (struct language_data): Delete
4549 la_lookup_transparent_type field.
4550 (language_defn::lookup_transparent_type): New member function.
4551 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4552 initializer.
4553 * objc-lang.c (objc_language_data): Likewise.
4554 * opencl-lang.c (opencl_language_data): Likewise.
4555 * p-lang.c (pascal_language_data): Likewise.
4556 * rust-lang.c (rust_language_data): Likewise.
4557 * symtab.c (symbol_matches_domain): Update call.
4558
4559 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4560
4561 * ada-lang.c (ada_language_arch_info): Delete function, move
4562 implementation to...
4563 (ada_language::language_arch_info): ...here, a new member
4564 function.
4565 (ada_language_data): Delete la_language_arch_info.
4566 * c-lang.c (c_language_data): Likewise.
4567 (c_language::language_arch_info): New member function.
4568 (cplus_language_arch_info): Delete function, move
4569 implementation to...
4570 (cplus_language::language_arch_info): ...here, a new member
4571 function.
4572 (cplus_language_data): Delete la_language_arch_info.
4573 (asm_language_data): Likewise.
4574 (asm_language::language_arch_info): New member function.
4575 (minimal_language_data): Delete la_language_arch_info.
4576 (minimal_language::language_arch_info): New member function.
4577 * d-lang.c (d_language_arch_info): Delete function, move
4578 implementation to...
4579 (d_language::language_arch_info): ...here, a new member
4580 function.
4581 (d_language_data): Delete la_language_arch_info.
4582 * f-lang.c (f_language_arch_info): Delete function, move
4583 implementation to...
4584 (f_language::language_arch_info): ...here, a new member
4585 function.
4586 (f_language_data): Delete la_language_arch_info.
4587 * go-lang.c (go_language_arch_info): Delete function, move
4588 implementation to...
4589 (go_language::language_arch_info): ...here, a new member
4590 function.
4591 (go_language_data): Delete la_language_arch_info.
4592 * language.c (unknown_language_data): Likewise.
4593 (unknown_language::language_arch_info): New member function.
4594 (auto_language_data): Delete la_language_arch_info.
4595 (auto_language::language_arch_info): New member function.
4596 (language_gdbarch_post_init): Update call to
4597 la_language_arch_info.
4598 * language.h (language_data): Delete la_language_arch_info
4599 function pointer.
4600 (language_defn::language_arch_info): New function.
4601 * m2-lang.c (m2_language_arch_info): Delete function, move
4602 implementation to...
4603 (m2_language::language_arch_info): ...here, a new member
4604 function.
4605 (m2_language_data): Delete la_language_arch_info.
4606 * objc-lang.c (objc_language_arch_info): Delete function, move
4607 implementation to...
4608 (objc_language::language_arch_info): ...here, a new member
4609 function.
4610 (objc_language_data): Delete la_language_arch_info.
4611 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4612 implementation to...
4613 (opencl_language::language_arch_info): ...here, a new member
4614 function.
4615 (opencl_language_data): Delete la_language_arch_info.
4616 * p-lang.c (pascal_language_arch_info): Delete function, move
4617 implementation to...
4618 (pascal_language::language_arch_info): ...here, a new member
4619 function.
4620 (pascal_language_data): Delete la_language_arch_info.
4621 * rust-lang.c (rust_language_arch_info): Delete function, move
4622 implementation to...
4623 (rust_language::language_arch_info): ...here, a new member
4624 function.
4625 (rust_language_data): Delete la_language_arch_info.
4626
4627 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4630 initializer.
4631 * c-lang.c (c_language_data): Likewise.
4632 (cplus_language_data): Likewise.
4633 (cplus_language::pass_by_reference_info): New method.
4634 (asm_language_data): Delete la_pass_by_reference initializer.
4635 (minimal_language_data): Likewise.
4636 * cp-abi.c (cp_pass_by_reference): Remove use of
4637 default_pass_by_reference.
4638 * d-lang.c (d_language_data): Likewise.
4639 * f-lang.c (f_language_data): Likewise.
4640 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4641 default_pass_by_reference.
4642 * go-lang.c (go_language_data): Likewise.
4643 * language.c (language_pass_by_reference): Update.
4644 (default_pass_by_reference): Delete.
4645 (unknown_language_data): Delete la_pass_by_reference
4646 initializer.
4647 (auto_language_data): Likewise.
4648 * language.h (struct language_data): Delete la_pass_by_reference
4649 field.
4650 (language_defn::pass_by_reference_info): New member function.
4651 (default_pass_by_reference): Delete declaration.
4652 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4653 initializer.
4654 * objc-lang.c (objc_language_data): Likewise.
4655 * opencl-lang.c (opencl_language_data): Likewise.
4656 * p-lang.c (pascal_language_data): Likewise.
4657 * rust-lang.c (rust_language_data): Likewise.
4658
4659 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * ada-lang.c (ada_read_var_value): Delete function, move
4662 implementation to...
4663 (ada_language::read_var_value): ...here.
4664 (ada_language_data): Delete la_read_var_value initializer.
4665 * c-lang.c (c_language_data): Likewise.
4666 (cplus_language_data): Likewise.
4667 (minimal_language_data): Likewise.
4668 * d-lang.c (d_language_data): Likewise.
4669 * f-lang.c (f_language_data): Likewise.
4670 * findvar.c (default_read_var_value): Rename to...
4671 (language_defn::read_var_value): ...this.
4672 * findvar.c (read_var_value): Update header comment, and change to
4673 call member function instead of function pointer.
4674 * go-lang.c (go_language_data): Likewise.
4675 * language.c (unknown_language_data): Delete la_read_var_value
4676 initializer.
4677 (auto_language_data): Likewise.
4678 * language.h (struct language_data): Delete la_read_var_value
4679 field.
4680 (language_defn::read_var_value): New member function.
4681 (default_read_var_value): Delete declaration.
4682 * m2-lang.c (m2_language_data): Delete la_read_var_value
4683 initializer.
4684 * objc-lang.c (objc_language_data): Likewise.
4685 * opencl-lang.c (opencl_language_data): Likewise.
4686 * p-lang.c (pascal_language_data): Likewise.
4687 * rust-lang.c (rust_language_data): Likewise.
4688 * value.h (default_read_var_value): Delete declaration.
4689
4690 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * ada-lang.c (ada_print_array_index): Delete function, move
4693 implementation to...
4694 (ada_language::print_array_index): ...here.
4695 (ada_language_data): Delete la_print_array_index initializer.
4696 * c-lang.c (c_language_data): Likewise.
4697 (cplus_language_data): Likewise.
4698 (minimal_language_data): Likewise.
4699 * d-lang.c (d_language_data): Likewise.
4700 * f-lang.c (f_language_data): Likewise.
4701 * go-lang.c (go_language_data): Likewise.
4702 * language.c (default_print_array_index): Delete function, move
4703 implementation to...
4704 (language_defn::print_array_index): ...here.
4705 (unknown_language_data): Delete la_print_array_index initializer.
4706 (auto_language_data): Likewise.
4707 * language.h (struct language_data): Delete la_print_array_index
4708 field.
4709 (language_defn::print_array_index): New member function.
4710 (LA_PRINT_ARRAY_INDEX): Update.
4711 (default_print_array_index): Delete declaration.
4712 * m2-lang.c (m2_language_data): Delete la_print_array_index
4713 initializer.
4714 * objc-lang.c (objc_language_data): Likewise.
4715 * opencl-lang.c (opencl_language_data): Likewise.
4716 * p-lang.c (pascal_language_data): Likewise.
4717 * rust-lang.c (rust_language_data): Likewise.
4718
4719 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * gdb/ada-lang.c (ada_language_defn): Convert to...
4722 (ada_language_data): ...this.
4723 (class ada_language): New class.
4724 (ada_language_defn): New static global.
4725 * gdb/c-lang.c (c_language_defn): Convert to...
4726 (c_language_data): ...this.
4727 (class c_language): New class.
4728 (c_language_defn): New static global.
4729 (cplus_language_defn): Convert to...
4730 (cplus_language_data): ...this.
4731 (class cplus_language): New class.
4732 (cplus_language_defn): New static global.
4733 (asm_language_defn): Convert to...
4734 (asm_language_data): ...this.
4735 (class asm_language): New class.
4736 (asm_language_defn): New static global.
4737 (minimal_language_defn): Convert to...
4738 (minimal_language_data): ...this.
4739 (class minimal_language): New class.
4740 (minimal_language_defn): New static global.
4741 * gdb/d-lang.c (d_language_defn): Convert to...
4742 (d_language_data): ...this.
4743 (class d_language): New class.
4744 (d_language_defn): New static global.
4745 * gdb/f-lang.c (f_language_defn): Convert to...
4746 (f_language_data): ...this.
4747 (class f_language): New class.
4748 (f_language_defn): New static global.
4749 * gdb/go-lang.c (go_language_defn): Convert to...
4750 (go_language_data): ...this.
4751 (class go_language): New class.
4752 (go_language_defn): New static global.
4753 * gdb/language.c (unknown_language_defn): Remove declaration.
4754 (current_language): Initialize to nullptr, real initialization is
4755 moved to _initialize_language.
4756 (languages): Delete global.
4757 (language_defn::languages): Define.
4758 (set_language_command): Use language_defn::languages.
4759 (set_language): Likewise.
4760 (range_error): Likewise.
4761 (language_enum): Likewise.
4762 (language_def): Likewise.
4763 (add_set_language_command): Use language_def::languages for the
4764 language list, and language_def to lookup language pointers.
4765 (skip_language_trampoline): Use language_defn::languages.
4766 (unknown_language_defn): Convert to...
4767 (unknown_language_data): ...this.
4768 (class unknown_language): New class.
4769 (unknown_language_defn): New static global.
4770 (auto_language_defn): Convert to...
4771 (auto_language_data): ...this.
4772 (class auto_language): New class.
4773 (auto_language_defn): New static global.
4774 (language_gdbarch_post_init): Use language_defn::languages.
4775 (_initialize_language): Initialize current_language.
4776 * gdb/language.h (struct language_defn): Rename to...
4777 (struct language_data): ...this.
4778 (struct language_defn): New.
4779 (auto_language_defn): Delete.
4780 (unknown_language_defn): Delete.
4781 (minimal_language_defn): Delete.
4782 (ada_language_defn): Delete.
4783 (asm_language_defn): Delete.
4784 (c_language_defn): Delete.
4785 (cplus_language_defn): Delete.
4786 (d_language_defn): Delete.
4787 (f_language_defn): Delete.
4788 (go_language_defn): Delete.
4789 (m2_language_defn): Delete.
4790 (objc_language_defn): Delete.
4791 (opencl_language_defn): Delete.
4792 (pascal_language_defn): Delete.
4793 (rust_language_defn): Delete.
4794 * gdb/m2-lang.c (m2_language_defn): Convert to...
4795 (m2_language_data): ...this.
4796 (class m2_language): New class.
4797 (m2_language_defn): New static global.
4798 * gdb/objc-lang.c (objc_language_defn): Convert to...
4799 (objc_language_data): ...this.
4800 (class objc_language): New class.
4801 (objc_language_defn): New static global.
4802 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4803 (opencl_language_data): ...this.
4804 (class opencl_language): New class.
4805 (opencl_language_defn): New static global.
4806 * gdb/p-lang.c (pascal_language_defn): Convert to...
4807 (pascal_language_data): ...this.
4808 (class pascal_language): New class.
4809 (pascal_language_defn): New static global.
4810 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4811 language pointer, update comment format.
4812 * gdb/rust-lang.c (rust_language_defn): Convert to...
4813 (rust_language_data): ...this.
4814 (class rust_language): New class.
4815 (rust_language_defn): New static global.
4816
4817 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4818
4819 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4820 member variable.
4821 <m_stmt_at_address>: New member variable.
4822 (lnp_state_machine::record_line): Don't record some lines, update
4823 tracking of is_stmt at the same address.
4824 (lnp_state_machine::lnp_state_machine): Initialise new member
4825 variables.
4826
4827 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4828
4829 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4830 "-include gnu-nat-mig.h".
4831 * gnu-nat-mig.h: New file.
4832 * gnu-nat.c: Include "gnu-nat-mig.h".
4833 (exc_server, msg_reply_server, notify_server,
4834 process_reply_server): Remove declarations.
4835
4836 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4837
4838 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4839 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4840 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4841 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4842 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4843 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4844 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4845 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4846 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4847 to gnu_nat_target class.
4848 * gnu-nat.c: Likewise.
4849 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4850 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4851 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4852 object.
4853 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4854 instead of `gnu_target'.
4855
4856 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4857
4858 * i386-gnu-tdep.c: Include "gdbcore.h"
4859 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4860 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4861 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4862 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4863 i386_gnu_sigcontext_addr): New functions
4864 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4865 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4866 tdep.
4867
4868 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4869
4870 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4871 before fork_inferior call. Avoid calling it if target_is_pushed returns
4872 true.
4873
4874 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4875
4876 * gnu-nat.h (gnu_target): New variable declaration.
4877 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4878 gnu_target.
4879 * gnu-nat.c (gnu_target): New variable.
4880 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4881 add_thread_silent, and add_thread calls.
4882 (gnu_nat_target::create_inferior): Pass gnu_target to
4883 add_thread_silent, thread_change_ptid call.
4884 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4885 call.
4886
4887 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4888
4889 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4890 (gnu_nat_target::find_memory_regions): Remove unused
4891 `old_address' variable.
4892
4893 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4894
4895 * gnu-nat.c: Include "gdbarch.h".
4896
4897 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4898
4899 * reply_mig_hack.awk (Error return): Cast function through
4900 void *, to bypass compiler function call check.
4901
4902 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4903
4904 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4905 $(srcdir)/reply_mig_hack.awk.
4906
4907 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4908
4909 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4910
4911 2020-05-30 Jonny Grant <jg@jguk.org>
4912
4913 * configure.ac (ACX_BUGURL): change bug URL to https.
4914
4915 2020-05-30 Pedro Alves <palves@redhat.com>
4916
4917 * cp-support.c (replace_typedefs_template): New.
4918 (replace_typedefs_qualified_name): Handle
4919 DEMANGLE_COMPONENT_TEMPLATE.
4920
4921 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4924 dwarf2/index-cache.h, dwarf2/index-write.c,
4925 dwarf2/index-write.h, dwarf2/line-header.c,
4926 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4927 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4928 variables and fields from `dwarf2_per_objfile` to just
4929 `per_objfile` throughout.
4930
4931 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4932
4933 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4934 <push_dwarf_reg_entry_value>: Add comment.
4935
4936 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4937 Keith Seitz <keiths@redhat.com>
4938
4939 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4940 instead of PyEval_ReleaseLock.
4941 (class gdbpy_gil): Move to earlier in file.
4942 (finalize_python): Set gdb_python_initialized.
4943 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4944 when not initialized.
4945
4946 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4949 <push_dwarf_reg_entry_value>: Remove assert. Override
4950 per_objfile with caller_per_objfile.
4951
4952 2020-05-28 Tom de Vries <tdevries@suse.de>
4953
4954 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4955 PR gold/15646 workaround to symbol kind "type".
4956
4957 2020-05-27 Tom Tromey <tromey@adacore.com>
4958
4959 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4960
4961 2020-05-27 Tom Tromey <tromey@adacore.com>
4962
4963 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4964 Use htab_find_with_hash.
4965 <add_abbrev>: Remove "abbrev_number" parameter.
4966 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4967 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4968 (hash_abbrev): Add comment.
4969 (abbrev_table::lookup_abbrev): Move to header file.
4970 (abbrev_table::read): Update.
4971
4972 2020-05-27 Tom Tromey <tromey@adacore.com>
4973
4974 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4975 method.
4976 <canonical_name>: New member.
4977 <raw_name>: Rename from "name".
4978 (partial_die_info): Initialize canonical_name.
4979 (scan_partial_symbols): Check raw_name.
4980 (partial_die_parent_scope, partial_die_full_name)
4981 (add_partial_symbol, add_partial_subprogram)
4982 (add_partial_enumeration, load_partial_dies): Use "name" method.
4983 (partial_die_info::name): New method.
4984 (partial_die_info::read, guess_partial_die_structure_name)
4985 (partial_die_info::fixup): Update.
4986
4987 2020-05-27 Tom Tromey <tromey@adacore.com>
4988
4989 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4990 <get_ref_die_offset>: Inline.
4991 <get_ref_die_offset_complaint>: New method.
4992 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4993 (attribute::get_ref_die_offset_complaint): Rename from
4994 get_ref_die_offset. Just issue complaint.
4995
4996 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4997
4998 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4999
5000 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5001
5002 * exec.c (exec_file_attach): Use errno value of first openp failure.
5003
5004 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5005
5006 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5007 Don't close thread handle.
5008
5009 2020-05-27 Tom Tromey <tom@tromey.com>
5010 Simon Marchi <simon.marchi@efficios.com>
5011
5012 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5013 shared_ptr.
5014 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5015 member.
5016 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5017 dwarf2_per_bfd_objfile_data_key>: New globals.
5018 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5019 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5020 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5021 shared.
5022 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5023 short-circuit when sharing.
5024 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5025 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5026
5027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5030 to...
5031 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5032 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5033
5034 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5037 build_name_components, find_name_components_bounds>:
5038 Add per_objfile parameter.
5039 (struct mapped_index) <symbol_name_at>: Likewise.
5040 (struct mapped_debug_names): Remove constructor.
5041 <dwarf2_per_objfile>: Remove field.
5042 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5043 (mapped_index_base::find_name_components_bounds,
5044 mapped_index_base::build_name_components,
5045 dw2_expand_symtabs_matching_symbol): Likewise.
5046 (class mock_mapped_index) <symbol_name_at>: Likewise.
5047 (check_match): Likewise.
5048 (check_find_bounds_finds): Likewise.
5049 (test_mapped_index_find_name_component_bounds): Update.
5050 (CHECK_MATCH): Update.
5051 (dw2_expand_symtabs_matching): Update.
5052 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5053 per_objfile parameter.
5054 <find_vec_in_debug_names>: Likewise.
5055 <m_per_objfile>: New field.
5056 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5057 parameter.
5058 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5059 (dw2_debug_names_iterator::next): Update.
5060 (dw2_debug_names_lookup_symbol): Update.
5061 (dw2_debug_names_expand_symtabs_for_function): Update.
5062 (dw2_debug_names_map_matching_symbols): Update.
5063 (dw2_debug_names_expand_symtabs_matching): Update.
5064 (dwarf2_read_debug_names): Update.
5065
5066 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5069 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5070 move to dwarf2_per_objfile.
5071 <read_in_chain>: Remove.
5072 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5073 remove_all_cus, age_comp_units>: New methods.
5074 <m_dwarf2_cus>: New member.
5075 (struct dwarf2_per_cu_data) <cu>: Remove.
5076 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5077 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5078 moved to methods of dwarf2_per_objfile.
5079 (dwarf2_clear_marks): Remove.
5080 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5081 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5082 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5083 (dwarf2_per_objfile::remove_all_cus): New.
5084 (class free_cached_comp_units) <~free_cached_comp_units>:
5085 Update.
5086 (load_cu): Update.
5087 (dw2_do_instantiate_symtab): Adjust.
5088 (fill_in_sig_entry_from_dwo_entry): Adjust.
5089 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5090 (cutu_reader::cutu_reader): Likewise.
5091 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5092 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5093 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5094 and dwarf2_per_objfile::age_comp_units.
5095 (load_partial_comp_unit): Update.
5096 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5097 (process_queue): Likewise.
5098 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5099 backlink.
5100 (dwarf2_read_addr_index): Likewise.
5101 (follow_die_offset): Likewise.
5102 (dwarf2_fetch_die_loc_sect_off): Likewise.
5103 (dwarf2_fetch_constant_bytes): Likewise.
5104 (dwarf2_fetch_die_type_sect_off): Likewise.
5105 (follow_die_sig_1): Likewise.
5106 (load_full_type_unit): Likewise.
5107 (read_signatured_type): Likewise.
5108 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5109 (dwarf2_cu::~dwarf2_cu): Remove.
5110 (dwarf2_per_objfile::get_cu): New.
5111 (dwarf2_per_objfile::set_cu): New.
5112 (age_cached_comp_units): Rename to...
5113 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5114 to std::unordered_map.
5115 (free_one_cached_comp_unit): Rename to...
5116 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5117 to std::unordered_map.
5118 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5119 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5120 a dwarf2_per_objfile in data.
5121 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5122 (dwarf2_clear_marks): Remove.
5123
5124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5127 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5128 (init_tu_and_read_dwo_dies): Likewise.
5129 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5130 (cutu_reader::cutu_reader): Likewise.
5131 (load_partial_comp_unit): Likewise.
5132 (process_psymtab_comp_unit): Update.
5133 (build_type_psymtabs_1): Update.
5134 (process_skeletonless_type_unit): Update.
5135 (load_full_comp_unit): Update.
5136 (find_partial_die): Update.
5137 (dwarf2_read_addr_index): Update.
5138 (read_signatured_type): Update.
5139
5140 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5141
5142 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5143 m_header_read_in>: New fields.
5144 <get_header>: New method.
5145 * dwarf2/read.c (per_cu_header_read_in): Remove.
5146 (dwarf2_per_cu_data::get_header): New.
5147 (dwarf2_per_cu_data::addr_size): Update.
5148 (dwarf2_per_cu_data::offset_size): Update.
5149 (dwarf2_per_cu_data::ref_addr_size): Update.
5150
5151 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5152
5153 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5154 (dw2_do_instantiate_symtab): Update.
5155 (queue_and_load_all_dwo_tus): Change parameter from
5156 dwarf2_per_cu_data to dwarf2_cu.
5157 (dwarf2_fetch_die_loc_sect_off): Update.
5158 (dwarf2_fetch_constant_bytes): Update.
5159 (dwarf2_fetch_die_type_sect_off): Update.
5160
5161 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5162
5163 * dwarf2/read.c (process_full_comp_unit,
5164 process_full_type_unit): Remove per_cu, per_objfile paramters.
5165 Add dwarf2_cu parameter.
5166 (process_queue): Update.
5167
5168 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5169
5170 * dwarf2/read.c (create_cu_from_index_list): Replace
5171 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5172 (create_cus_from_index_list): Likewise.
5173 (create_cus_from_index): Likewise.
5174 (create_signatured_type_table_from_index): Likewise.
5175 (create_cus_from_debug_names_list): Likewise.
5176 (create_cus_from_debug_names): Likewise.
5177 (dwarf2_read_gdb_index): Update.
5178 (dwarf2_read_debug_names): Update.
5179
5180 2020-05-27 Tom Tromey <tom@tromey.com>
5181 Simon Marchi <simon.marchi@efficios.com>
5182
5183 * dwarf2/read.h (struct dwarf2_per_objfile)
5184 <get_type_for_signatured_type, set_type_for_signatured_type>:
5185 New methods.
5186 <m_type_map>: New member.
5187 (struct signatured_type) <type>: Remove.
5188 * dwarf2/read.c
5189 (dwarf2_per_objfile::get_type_for_signatured_type,
5190 dwarf2_per_objfile::set_type_for_signatured_type): New.
5191 (get_signatured_type): Use new methods.
5192
5193 2020-05-27 Tom Tromey <tom@tromey.com>
5194 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5197 (struct dwarf2_per_objfile) <type_units>: New member.
5198 <get_type_unit_group_unshareable>: New method.
5199 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5200 num_symtabs, symtabs>: Remove; move to
5201 type_unit_group_unshareable.
5202 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5203 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5204 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5205
5206 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * dwarf2/read.h (struct dwarf2_per_cu_data):
5209 <dwarf2_per_objfile>: Remove.
5210 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5211 dwarf2_per_objfile.
5212 (create_signatured_type_table_from_index): Likewise.
5213 (create_signatured_type_table_from_debug_names): Likewise.
5214 (create_debug_type_hash_table): Likewise.
5215 (fill_in_sig_entry_from_dwo_entry): Likewise.
5216 (create_type_unit_group): Likewise.
5217 (read_comp_units_from_section): Likewise.
5218 (create_cus_hash_table): Likewise.
5219
5220 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5223 dwarf2_per_cu_data::dwarf2_per_objfile.
5224 (compute_compunit_symtab_includes): Likewise.
5225 (dwarf2_cu::start_symtab): Likewise.
5226
5227 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5228
5229 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5230 parameter.
5231 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5232 (read_namespace_alias): Update.
5233 (lookup_die_type): Update.
5234 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5235 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5236 Update.
5237 (disassemble_dwarf_expression): Update.
5238
5239 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * dwarf2/read.h (struct dwarf2_queue_item): Add
5242 dwarf2_per_objfile parameter, assign new parameter.
5243 <per_objfile>: New field.
5244 * dwarf2/read.c (free_one_cached_comp_unit): Add
5245 dwarf2_per_objfile parameter.
5246 (queue_comp_unit): Likewise.
5247 (dw2_do_instantiate_symtab): Update.
5248 (process_psymtab_comp_unit): Update.
5249 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5250 (process_imported_unit_die): Update.
5251 (queue_and_load_dwo_tu): Update.
5252 (follow_die_offset): Update.
5253 (follow_die_sig_1): Update.
5254
5255 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5258 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5259 (read_call_site_scope): Assign per_objfile.
5260 (dwarf2_per_cu_data::objfile): Remove.
5261 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5262 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5263 dwarf2_per_objfile parameter.
5264 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5265 dwarf2_per_objfile parameter.
5266 (dwarf_expr_reg_to_entry_parameter): Add output
5267 dwarf2_per_objfile parameter.
5268 (locexpr_get_frame_base): Update.
5269 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5270 <push_dwarf_reg_entry_value>: Update.
5271 <call_site_to_target_addr>: Update.
5272 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5273 parameter.
5274 (value_of_dwarf_reg_entry): Update.
5275 (rw_pieced_value): Update.
5276 (indirect_synthetic_pointer): Update.
5277 (dwarf2_evaluate_property): Update.
5278 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5279 parameter.
5280 (locexpr_read_variable): Update.
5281 (locexpr_get_symbol_read_needs): Update.
5282 (loclist_read_variable): Update.
5283
5284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5285
5286 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5287 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5288 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5289 parameter.
5290 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5291 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5292 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5293 parameter.
5294 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5295 sect_variable_value): Add dwarf2_per_objfile parameter.
5296 (class dwarf_evaluate_loc_desc) <dwarf_call,
5297 dwarf_variable_value>: Update.
5298 (fetch_const_value_from_synthetic_pointer): Add
5299 dwarf2_per_objfile parameter.
5300 (fetch_const_value_from_synthetic_pointer): Update.
5301 (coerced_pieced_ref): Update.
5302 (class symbol_needs_eval_context) <dwarf_call,
5303 dwarf_variable_value>: Update.
5304 (dwarf2_compile_expr_to_ax): Update.
5305
5306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5309 parameter.
5310 (dwarf2_evaluate_loc_desc_full): Update.
5311
5312 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5315 parameter.
5316 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5317 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5318 dwarf2_per_objfile parameter.
5319 (decode_debug_loc_dwo_addresses): Likewise.
5320 (dwarf2_find_location_expression): Update.
5321 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5322 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5323 parameter.
5324 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5325 parameter.
5326 (locexpr_describe_location_1): Likewise.
5327 (locexpr_describe_location): Update.
5328
5329 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5330
5331 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5332 Remove.
5333 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5334 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5335 (dwarf2_compile_property_to_c): Update.
5336 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5337 use text offset from objfile.
5338 (locexpr_tracepoint_var_ref): Update.
5339 (locexpr_generate_c_location): Update.
5340 (loclist_describe_location): Update.
5341 (loclist_tracepoint_var_ref): Update.
5342 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5343 dwarf2_per_objfile parameter.
5344 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5345 use text offset from objfile.
5346 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5347
5348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * dwarf2/expr.h (struct dwarf_expr_context)
5351 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5352 <offset>: Remove.
5353 <per_objfile>: New member.
5354 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5355 dwarf2_per_objfile parameter. Don't set offset, set
5356 per_objfile.
5357 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5358 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5359 a dwarf2_per_objfile object instead of an offset.
5360 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5361 constructor.
5362 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5363 to dwarf2_expr_executor constructor. Don't set offset.
5364 (dwarf2_fetch_cfa_info): Update.
5365 (struct dwarf2_frame_cache) <text_offset>: Remove.
5366 <per_objfile>: New field.
5367 (dwarf2_frame_cache): Update.
5368 (dwarf2_frame_prev_register): Update.
5369 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5370 <dwarf_evaluate_loc_desc>: Add constructor.
5371 (dwarf2_evaluate_loc_desc_full): Update.
5372 (dwarf2_locexpr_baton_eval): Update.
5373 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5374 Add constructor.
5375 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5376
5377 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5380 addr_sized_int_type>: Move to dwarf2_cu.
5381 <int_type>: Move to dwarf2_per_objfile.
5382 (struct dwarf2_per_objfile) <int_type>: Move here.
5383 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5384 addr_sized_int_type>: Move here.
5385 (read_func_scope): Update.
5386 (read_array_type): Update.
5387 (read_tag_string_type): Update.
5388 (attr_to_dynamic_prop): Update.
5389 (dwarf2_per_cu_data::int_type): Rename to...
5390 (dwarf2_per_objfile::int_type): ... this.
5391 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5392 (dwarf2_cu::addr_sized_int_type): ... this.
5393 (read_subrange_type): Update.
5394 (dwarf2_per_cu_data::addr_type): Rename to...
5395 (dwarf2_cu::addr_type): ... this.
5396 (set_die_type): Update.
5397
5398 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5401 data through per_cu->cu.
5402
5403 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5404
5405 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5406 dwarf2_per_cu_data parameter fo dwarf2_cu.
5407 (lookup_dwo_type_unit): Likewise.
5408 (read_cutu_die_from_dwo): Likewise.
5409 (lookup_dwo_unit): Likewise.
5410 (open_and_init_dwo_file): Likewise.
5411 (lookup_dwo_cutu): Likewise.
5412 (lookup_dwo_comp_unit): Likewise.
5413 (lookup_dwo_type_unit): Likewise.
5414 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5415 (cutu_reader::cutu_reader): Update.
5416
5417 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5420 parameter.
5421 (process_full_type_unit): Likewise.
5422 (process_queue): Update.
5423
5424 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * dwarf2/read.c (recursively_compute_inclusions): Add
5427 dwarf2_per_objfile parameter.
5428 (compute_compunit_symtab_includes): Likewise.
5429 (process_cu_includes): Update.
5430
5431 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5432
5433 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5434 parameter.
5435 (create_type_unit_group): Update.
5436 (process_psymtab_comp_unit_reader): Update.
5437 (build_type_psymtabs_reader): Update.
5438
5439 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5442 object through m_this_cu->cu.
5443
5444 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5447 the info parameter.
5448 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5449
5450 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5451
5452 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5453 per_objfile parameter.
5454 (load_full_type_unit): Add per_objfile parameter.
5455 (read_signatured_type): Likewise.
5456 (load_full_comp_unit): Likewise.
5457 (load_cu): Likewise.
5458 (dw2_do_instantiate_symtab): Likewise.
5459 (dw2_get_file_names): Likewise.
5460 (dw2_map_symtabs_matching_filename): Update.
5461 (dw_expand_symtabs_matching_file_matcher): Update.
5462 (dw2_map_symbol_filenames): Update.
5463 (process_psymtab_comp_unit): Add per_objfile parameter.
5464 (build_type_psymtabs_1): Update.
5465 (process_skeletonless_type_unit): Update.
5466 (dwarf2_build_psymtabs_hard): Update.
5467 (load_partial_comp_unit): Add per_objfile parameter.
5468 (scan_partial_symbols): Update.
5469 (load_full_comp_unit): Add per_objfile parameter.
5470 (process_imported_unit_die): Update.
5471 (create_cus_hash_table): Update.
5472 (find_partial_die): Update.
5473 (dwarf2_read_addr_index): Update.
5474 (follow_die_offset): Update.
5475 (dwarf2_fetch_die_loc_sect_off): Update.
5476 (dwarf2_fetch_constant_bytes): Update.
5477 (dwarf2_fetch_die_type_sect_off): Update.
5478 (follow_die_sig_1): Update.
5479 (load_full_type_unit): Add per_objfile parameter.
5480 (read_signatured_type): Likewise.
5481
5482 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5483
5484 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5485 of objfile_name.
5486
5487 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5488
5489 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5490 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5491 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5492 field.
5493 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5494 (create_cus_from_index): Update.
5495 (dwarf2_read_gdb_index): Update.
5496 (create_cus_from_debug_names): Update.
5497 (dwarf2_read_debug_names): Update.
5498 (get_abbrev_section_for_cu): Update.
5499 (create_all_comp_units): Update.
5500 (read_attribute_value): Update.
5501 (get_debug_line_section): Update.
5502 * dwarf2/index-cache.c (index_cache::store): Update.
5503 * dwarf2/index-write.c (save_gdb_index_command): Update.
5504 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5505
5506 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5507
5508 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5509 member.
5510 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5511 dwarf2_per_cu_data::per_bfd.
5512 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5513 (create_type_unit_group): Likewise.
5514 (queue_comp_unit): Remove reference to
5515 per_cu->dwarf2_per_objfile.
5516 (maybe_queue_comp_unit): Likewise.
5517 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5518 (create_cus_hash_table): Assign new field.
5519
5520 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * dwarf2/read.c: Replace
5523 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5524 dwarf2_cu->per_objfile throughout.
5525
5526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5527
5528 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5529 parameter, don't use per_cu->dwarf2_per_objfile.
5530 (dw2_instantiate_symtab): Likewise.
5531 (dw2_find_last_source_symtab): Update.
5532 (dw2_map_expand_apply): Update.
5533 (dw2_lookup_symbol): Update.
5534 (dw2_expand_symtabs_for_function): Update.
5535 (dw2_expand_all_symtabs): Update.
5536 (dw2_expand_symtabs_with_fullname): Update.
5537 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5538 don't use per_cu->dwarf2_per_objfile.
5539 (dw2_expand_marked_cus): Update.
5540 (dw2_find_pc_sect_compunit_symtab): Update.
5541 (dw2_debug_names_lookup_symbol): Update.
5542 (dw2_debug_names_expand_symtabs_for_function): Update.
5543 (dw2_debug_names_map_matching_symbols): Update.
5544 (dwarf2_psymtab::expand_psymtab): Update.
5545
5546 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5549 <per_objfile>: New member.
5550 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5551 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5552 call to dwarf2_cu.
5553 (cutu_reader::cutu_reader): Update.
5554 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5555
5556 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5559 struct dwarf2_per_objfile.
5560 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5561 dwarf2_per_bfd.
5562 * dwarf2/read.c (set_die_type): Update.
5563 (get_die_type_at_offset): Update.
5564
5565 2020-05-27 Tom Tromey <tom@tromey.com>
5566 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5569 method.
5570 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5571 get_symtab, set_symtab>: New methods.
5572 <m_symtabs>: New field.
5573 (struct dwarf2_psymtab): Derive from partial_symtab.
5574 <readin_p, get_compunit_symtab>: Declare methods.
5575 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5576 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5577 New methods.
5578 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5579 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5580 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5581 (dw2_symtab_iter_next, dw2_print_stats)
5582 (dw2_expand_symtabs_with_fullname)
5583 (dw2_expand_symtabs_matching_one)
5584 (dw_expand_symtabs_matching_file_matcher)
5585 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5586 (dw2_debug_names_iterator::next)
5587 (dw2_debug_names_map_matching_symbols)
5588 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5589 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5590 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5591 New methods.
5592 (get_compunit_symtab, process_full_comp_unit)
5593 (process_full_type_unit): Update.
5594 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5595
5596 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5597
5598 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5599 then introduce a new dwarf2_per_objfile type.
5600 <read_line_string>: Move to the new dwarf2_per_objfile type.
5601 <objfile>: Likewise.
5602 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5603 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5604 dwarf2_per_objfile->per_bfd.
5605 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5606 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5607 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5608 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5609 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5610 (dwarf2_per_objfile::locate_sections): Rename to...
5611 (dwarf2_per_bfd::locate_sections): ... this.
5612 (dwarf2_per_objfile::get_cutu): Rename to...
5613 (dwarf2_per_bfd::get_cutu): ... this.
5614 (dwarf2_per_objfile::get_cu): Rename to...
5615 (dwarf2_per_bfd::get_cu): ... this.
5616 (dwarf2_per_objfile::get_tu): Rename to...
5617 (dwarf2_per_bfd::get_tu): ... this.
5618 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5619 (dwarf2_per_bfd::allocate_per_cu): ... this.
5620 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5621 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5622 (get_gdb_index_contents_ftype): Change parameter from
5623 dwarf2_per_objfile to dwarf2_per_bfd.
5624 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5625 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5626
5627 2020-05-27 Tom Tromey <tom@tromey.com>
5628 Simon Marchi <simon.marchi@efficios.com>
5629
5630 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5631 (allocate_piece_closure): Set "per_objfile" member.
5632 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5633 (locexpr_describe_location, loclist_describe_location): Use new
5634 member.
5635 * dwarf2/read.c (read_call_site_scope)
5636 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5637 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5638 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5639 handle_data_member_location): Set per_objfile member.
5640 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5641 member.
5642 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5643
5644 2020-05-27 Tom Tromey <tom@tromey.com>
5645
5646 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5647 allocate_signatured_type>: Declare new methods.
5648 <m_num_psymtabs>: New member.
5649 (struct dwarf2_per_cu_data) <index>: New member.
5650 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5651 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5652 (create_cu_from_index_list): Use allocate_per_cu.
5653 (create_signatured_type_table_from_index)
5654 (create_signatured_type_table_from_debug_names)
5655 (create_debug_type_hash_table, add_type_unit)
5656 (read_comp_units_from_section): Use allocate_signatured_type.
5657
5658 2020-05-27 Tom Tromey <tom@tromey.com>
5659
5660 * psymtab.c (partial_map_expand_apply)
5661 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5662 (psym_lookup_global_symbol_language)
5663 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5664 (psym_print_stats, psym_expand_symtabs_for_function)
5665 (psym_map_symbol_filenames, psym_map_matching_symbols)
5666 (psym_expand_symtabs_matching)
5667 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5668 (maintenance_check_psymtabs): Update.
5669 * psympriv.h (struct partial_symtab) <readin_p,
5670 get_compunit_symtab>: Add objfile parameter.
5671 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5672 Likewise.
5673 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5674 get_compunit_symtab>: Likewise.
5675 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5676
5677 2020-05-27 Tom Tromey <tom@tromey.com>
5678
5679 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5680 member.
5681 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5682 (create_cu_from_index_list)
5683 (create_signatured_type_table_from_index)
5684 (create_signatured_type_table_from_debug_names)
5685 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5686 (dwarf2_create_include_psymtab)
5687 (create_debug_type_hash_table, add_type_unit)
5688 (create_type_unit_group, read_comp_units_from_section)
5689 (dwarf2_compute_name, create_cus_hash_table)
5690 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5691 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5692 obstack.
5693 (dw2_get_real_path): Likewise. Change argument to
5694 dwarf2_per_objfile.
5695
5696 2020-05-27 Luis Machado <luis.machado@linaro.org>
5697
5698 PR tdep/26000
5699 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5700 for ldrd (immediate).
5701
5702 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5703
5704 * command.h: Add comment giving the name of class_tui.
5705 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5706 create the fake command for the help for class_tui.
5707
5708 2020-05-26 Tom Tromey <tromey@adacore.com>
5709
5710 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5711 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5712 (val_atr): New function.
5713 (value_val_atr): Use it.
5714 * ada-valprint.c (print_optional_low_bound): Change low bound
5715 handling for enums.
5716 (val_print_packed_array_elements): Don't call discrete_position.
5717 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5718 discrete_position for enum types.
5719 * language.c (default_print_array_index): Change type.
5720 * language.h (struct language_defn) <la_print_array_index>: Add
5721 index_type parameter, change type of index_value.
5722 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5723 (default_print_array_index): Update.
5724 * valprint.c (maybe_print_array_index): Don't call
5725 value_from_longest. Update.
5726 (value_print_array_elements): Don't call discrete_position.
5727
5728 2020-05-26 Tom Tromey <tromey@adacore.com>
5729
5730 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5731 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5732
5733 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5734
5735 PR gdb/13519
5736 * avr-tdep.c (avr_integer_to_address): Return data or code
5737 address accordingly to the second 'type' argument of the
5738 function.
5739
5740 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5741
5742 * infcmd.c, inferior.h: (construct_inferior_arguments):
5743 Moved function from here to gdbsupport/common-inferior.{h,cc}
5744
5745 2020-05-23 Tom Tromey <tom@tromey.com>
5746
5747 Revert commit eca1f90c:
5748 * NEWS: Remove entry for completion styling.
5749 * completer.c (_rl_completion_prefix_display_length): Move
5750 declaration later.
5751 (gdb_fnprint): Revert.
5752 (gdb_display_match_list_1): Likewise.
5753 * cli/cli-style.c (completion_prefix_style)
5754 (completion_difference_style, completion_suffix_style): Remove.
5755 (_initialize_cli_style): Revert.
5756 * cli/cli-style.h (completion_prefix_style)
5757 (completion_difference_style, completion_suffix_style): Don't
5758 declare.
5759
5760 2020-05-24 Pedro Alves <palves@redhat.com>
5761
5762 * symtab.c (completion_list_add_name): Return boolean indication
5763 of whether the symbol matched.
5764 (completion_list_add_symbol): Don't try to remove C++ aliases if
5765 the symbol didn't match in the first place.
5766 * symtab.h (completion_list_add_name): Return bool.
5767
5768 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5771 type::field.
5772
5773 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5774
5775 GDB 9.2 released.
5776
5777 2020-05-23 Tom Tromey <tom@tromey.com>
5778
5779 * NEWS: Add entry for completion styling.
5780 * completer.c (_rl_completion_prefix_display_length): Move
5781 declaration earlier.
5782 (gdb_fnprint): Use completion_style.
5783 (gdb_display_match_list_1): Likewise.
5784 * cli/cli-style.c (completion_prefix_style)
5785 (completion_difference_style, completion_suffix_style): New
5786 globals.
5787 (_initialize_cli_style): Register new globals.
5788 * cli/cli-style.h (completion_prefix_style)
5789 (completion_difference_style, completion_suffix_style): Declare.
5790
5791 2020-05-23 Pedro Alves <palves@redhat.com>
5792
5793 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5794 (parse_escape): Use ISDIGIT instead of isdigit.
5795 (puts_debug): Use gdb_isprint instead of isprint.
5796 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5797 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5798 ISSPACE instead of isspace.
5799 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5800 instead of isspace.
5801 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5802 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5803 instead of isxdigit and ISDIGIT instead of isdigit.
5804
5805 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5806
5807 * gdbtypes.h (struct type) <field>: New method.
5808 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5809 or type::field.
5810
5811 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5812
5813 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5814 (TYPE_FIELDS): Use type::fields. Change all call sites that
5815 modify the propery to use type::set_fields instead.
5816
5817 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5818
5819 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5820 type::num_fields instead.
5821
5822 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5825 methods.
5826 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5827 that modify the number of fields to use type::set_num_fields
5828 instead.
5829
5830 2020-05-22 Tom Tromey <tromey@adacore.com>
5831
5832 * compile/compile-object-load.h (munmap_list_free): Don't
5833 declare.
5834
5835 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * annotate.c (annotate_source_line): Update return type, add call
5838 to update current symtab and line.
5839 * annotate.h (annotate_source_line): Update return type, and
5840 extend header comment.
5841 * source.c (info_line_command): Check annotation_level before
5842 calling annotate_source_line.
5843 * stack.c (print_frame_info): If calling annotate_source_line
5844 returns true, then don't print any other source line information.
5845
5846 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5847
5848 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5849
5850 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5851
5852 * coffread.c (patch_type): Remove NULL check before xfree.
5853 * corefile.c (set_gnutarget): Likewise.
5854 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5855 * exec.c (build_section_table): Likewise.
5856 * remote.c (remote_target::pass_signals): Likewise.
5857 * utils.c (n_spaces): Likewise.
5858 * cli/cli-script.c (document_command): Likewise.
5859 * i386-windows-tdep.c (core_process_module_section): Likewise.
5860 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5861
5862 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * symfile.c (reread_symbols): Clear objfile's section_offsets
5865 vector and section indices, re-compute them by calling
5866 sym_offsets.
5867
5868 2020-05-20 Tom Tromey <tromey@adacore.com>
5869
5870 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5871 (desc_one_bound, desc_index_type): Compute field name.
5872
5873 2020-05-20 Tom de Vries <tdevries@suse.de>
5874
5875 PR symtab/25833
5876 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5877
5878 2020-05-20 Alan Modra <amodra@gmail.com>
5879
5880 PR 25993
5881 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5882 bfd_set_filename.
5883 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5884 passed to bfd_set_filename.
5885 * symfile-mem.c (add_vsyscall_page): Likewise for string
5886 passed to symbol_file_add_from_memory.
5887 (symbol_file_add_from_memory): Make name param a const char* and
5888 don't strdup.
5889
5890 2020-05-20 Alan Modra <amodra@gmail.com>
5891
5892 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5893 rather than accessing bfd->filename directly.
5894 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5895 and use bfd_section_name.
5896 * dwarf2/frame.c (decode_frame_entry): Likewise.
5897 * exec.c (exec_set_section_address): Likewise.
5898 * solib-aix.c (solib_aix_bfd_open): Likewise.
5899 * stap-probe.c (get_stap_base_address): Likewise.
5900 * symfile.c (reread_symbols): Likewise.
5901
5902 2020-05-19 Tom Tromey <tromey@adacore.com>
5903
5904 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5905
5906 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5907
5908 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5909
5910 2020-05-19 Pedro Alves <palves@redhat.com>
5911
5912 * NEWS (set exec-file-mismatch): Adjust entry.
5913 * exec.c: Include "build-id.h".
5914 (validate_exec_file): Try to match build IDs instead of filenames.
5915 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5916 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5917 and pass down 'warn_if_slow'.
5918 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5919 gdb_bfd_open_closure to pass it down.
5920 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5921
5922 2020-05-19 Pedro Alves <palves@redhat.com>
5923
5924 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5925 * target.c (target_fileio_open_1): Rename to target_fileio_open
5926 and make extern. Use bool.
5927 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5928 (target_fileio_read_alloc_1): Adjust.
5929 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5930 (target_fileio_open_warn_if_slow): Delete declaration.
5931
5932 2020-05-19 Pedro Alves <palves@redhat.com>
5933
5934 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5935 Adjust all callers.
5936
5937 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5938
5939 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5940 whether disp is negative.
5941
5942 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * symfile.h (struct symfile_segment_data)
5945 <~symfile_segment_data>: Remove.
5946 <segment_info>: Change to std::vector.
5947 * symfile.c (default_symfile_segments): Update.
5948 * elfread.c (elf_symfile_segments): Update.
5949
5950 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5951
5952 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5953 <segments>: New.
5954 <segment_bases, segment_sizes>: Remove.
5955 * symfile.c (default_symfile_segments): Update.
5956 * elfread.c (elf_symfile_segments): Update.
5957 * remote.c (remote_target::get_offsets): Update.
5958 * solib-target.c (solib_target_relocate_section_addresses):
5959 Update.
5960
5961 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5962
5963 * symfile.h (struct symfile_segment_data): Initialize fields.
5964 <~symfile_segment_data>: Add.
5965 (symfile_segment_data_up): New.
5966 (struct sym_fns) <sym_segments>: Return a
5967 symfile_segment_data_up.
5968 (default_symfile_segments): Return a symfile_segment_data_up.
5969 (free_symfile_segment_data): Remove.
5970 (get_symfile_segment_data): Return a symfile_segment_data_up.
5971 * symfile.c (default_symfile_segments): Likewise.
5972 (get_symfile_segment_data): Likewise.
5973 (free_symfile_segment_data): Remove.
5974 (symfile_find_segment_sections): Update.
5975 * elfread.c (elf_symfile_segments): Return a
5976 symfile_segment_data_up.
5977 * remote.c (remote_target::get_offsets): Update.
5978 * solib-target.c (solib_target_relocate_section_addresses):
5979 Update.
5980 * symfile-debug.c (debug_sym_segments): Return a
5981 symfile_segment_data_up.
5982
5983 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5984
5985 PR build/25981
5986 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5987 Hardcode register numbers.
5988
5989 PR build/25981
5990 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5991 procfs_find_LDT_entry): Remove.
5992 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5993 procfs_find_LDT_entry): Remove.
5994 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5995 Remove.
5996
5997 2020-05-17 Pedro Alves <palves@redhat.com>
5998 Andrew Burgess <andrew.burgess@embecosm.com>
5999 Keno Fischer <keno@juliacomputing.com>
6000
6001 PR gdb/25741
6002 * breakpoint.c (build_target_condition_list): Update comments.
6003 (build_target_command_list): Update comments and skip matching
6004 locations.
6005 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6006 a separate function. Simplify "set breakpoint auto-hw off"
6007 handling.
6008 (insert_breakpoints): Update comment.
6009 (tracepoint_locations_match): New parameter. For breakpoints,
6010 compare location types too, if the caller wants to.
6011 (handle_automatic_hardware_breakpoints): New functions.
6012 (bp_location_is_less_than): Also sort by location type and
6013 hardware breakpoint length.
6014 (update_global_location_list): Handle "set breakpoint auto-hw on"
6015 here.
6016 (update_breakpoint_locations): Ask breakpoint_locations_match to
6017 ignore location types.
6018
6019 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6022 type::name instead.
6023
6024 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * gdbtypes.h (struct type) <name, set_name>: New methods.
6027 (TYPE_CODE): Use type::name. Change all call sites used to set
6028 the name to use type::set_name instead.
6029
6030 2020-05-16 Tom Tromey <tom@tromey.com>
6031
6032 * top.c (quit_force): Update.
6033 * infrun.c (handle_no_resumed): Update.
6034 * top.h (all_uis): New function.
6035 (ALL_UIS): Remove.
6036
6037 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6038
6039 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6040
6041 2020-05-16 Pedro Alves <palves@redhat.com>
6042
6043 * ia64-linux-nat.c
6044 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6045 Declare method.
6046 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6047
6048 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6051 (sparc64_adi_info): Likewise.
6052
6053 2020-05-15 Tom Tromey <tom@tromey.com>
6054
6055 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6056 block_objfile.
6057 (lookup_objfile_from_block): Remove.
6058 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6059 (lookup_global_symbol): Use block_objfile.
6060 * symtab.h (lookup_objfile_from_block): Don't declare.
6061 * printcmd.c (clear_dangling_display_expressions): Use
6062 block_objfile.
6063 * parse.c (operator_check_standard): Use block_objfile.
6064
6065 2020-05-15 Tom Tromey <tom@tromey.com>
6066
6067 * language.c (language_alloc_type_symbol): Set
6068 SYMBOL_SECTION.
6069 * symtab.c (initialize_objfile_symbol): Remove.
6070 (allocate_symbol): Remove.
6071 (allocate_template_symbol): Remove.
6072 * dwarf2/read.c (fixup_go_packaging): Use "new".
6073 (new_symbol): Use "new".
6074 (read_variable): Don't call initialize_objfile_symbol. Use
6075 "new".
6076 (read_func_scope): Use "new".
6077 * xcoffread.c (process_xcoff_symbol): Don't call
6078 initialize_objfile_symbol.
6079 (SYMBOL_DUP): Remove.
6080 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6081 "new".
6082 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6083 (allocate_template_symbol): Don't declare.
6084 (struct symbol): Add copy constructor. Change defaults.
6085 * jit.c (finalize_symtab): Use "new".
6086 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6087 Use "new".
6088 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6089 (common_block_end): Use "new".
6090 * mdebugread.c (parse_symbol): Use "new".
6091 (new_symbol): Likewise.
6092
6093 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6094
6095 * NEWS: Mention changes to help and apropos.
6096
6097 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6098
6099 * command.h (enum command_class): Improve comments, document
6100 that class_alias is for user-defined aliases, give the class
6101 name for each class, remove unused class_xdb.
6102 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6103 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6104 by a precise class.
6105 * infcmd.c (_initialize_infcmd): Likewise.
6106 * reverse.c (_initialize_reverse): Likewise.
6107 * stack.c (_initialize_stack): Likewise.
6108 * symfile.c (_initialize_symfile): Likewise.
6109 * tracepoint.c (_initialize_tracepoint): Likewise.
6110
6111 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6112
6113 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6114 when their aliased command is traversed.
6115 (help_cmd): Add fput_command_names_styled call to
6116 output command name and aliases when command has an alias.
6117
6118 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6119
6120 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6121 * cli/cli-decode.c (help_cmd_list): Declare as static,
6122 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6123 a command together with the command.
6124 (fput_command_name_styled, fput_command_names_styled): New functions.
6125 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6126 fput_command_name_styled.
6127 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6128 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6129
6130 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6131
6132 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6133 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6134 * command.h (cmd_show_list): Likewise.
6135 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6136 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6137
6138 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6139
6140 * unittests/command-def-selftests.c (traverse_command_structure):
6141 Verify all commands of a list have the same prefix command and
6142 that only the top cmdlist commands have a null prefix.
6143
6144 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6145
6146 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6147 as prefix, not one of its aliases.
6148 (set_cmd_prefix): Remove.
6149 (do_add_cmd): Centralize the setting of the prefix of a command, when
6150 command is defined after its full chain of prefix commands.
6151 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6152 (add_setshow_cmd_full): Likewise.
6153 (update_prefix_field_of_prefixed_commands): New function.
6154 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6155 update_prefix_field_of_prefixed_commands.
6156 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6157 addresses of remote_set_cmdlist and remote_show_cmdlist given
6158 as argument, not the address of an argument.
6159 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6160 * gdb/remote.c (_initialize_remote): Likewise.
6161
6162 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6163
6164 * cli/cli-cmds.c (alias_command): Check for an existing alias
6165 using lookup_cmd_composition, as valid_command_p is too strict
6166 and forbids aliases that are the prefix of an existing alias
6167 or command.
6168 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6169 command is properly recognised as a valid command.
6170
6171 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6172
6173 * unittests/help-doc-selftests.c: Rename to
6174 unittests/command-def-selftests.c
6175 * unittests/command-def-selftests.c (help_doc_tests): Update some
6176 comments.
6177 (command_structure_tests, traverse_command_structure): New namespace
6178 and function.
6179 (command_structure_invariants_tests): New function.
6180 (_initialize_command_def_selftests) Renamed from
6181 _initialize_help_doc_selftests, register command_structure_invariants
6182 selftest.
6183
6184 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6185
6186 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6187 an alias of 'show'.
6188
6189 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6190
6191 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6192 ada_is_fixed_point_type. Update all callers.
6193 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6194 all callers.
6195 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6196 Update all callers.
6197 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6198 print_fixed_point_type. Update all callers.
6199 * ada-valprint.c (ada_value_print_num): Replace call to
6200 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6201
6202 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6203
6204 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6205 processors.
6206 (cpu_supports_bts): Add CV_AMD case.
6207
6208 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6209 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * infrun.c (stop_all_threads): Collect multiple wait events at
6212 each pass.
6213
6214 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6217 type::code instead.
6218
6219 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * gdbtypes.h (struct type) <code, set_code>: New methods.
6222 (TYPE_CODE): Use type::code. Change all call sites used to set
6223 the code to use type::set_code instead.
6224
6225 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6226 Tom de Vries <tdevries@suse.de>
6227 Pedro Alves <palves@redhat.com>
6228
6229 PR threads/25478
6230 * infrun.c (stop_all_threads): Do NOT ignore
6231 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6232 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6233 received.
6234 (handle_no_resumed): Remove code handling a live inferior with no
6235 threads.
6236 * remote.c (has_single_non_exited_thread): New.
6237 (remote_target::update_thread_list): Do not delete a thread if is
6238 the last thread of the process.
6239 * thread.c (thread_select): Call delete_exited_threads instead of
6240 prune_threads.
6241
6242 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6243
6244 * infrun.c (stop_all_threads): Enable/disable thread events of all
6245 targets. Move a debug message denoting the end of the function
6246 into the SCOPED_EXIT block.
6247
6248 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6249
6250 * process-stratum-target.h: Include <set>.
6251 (all_non_exited_process_targets, switch_to_target_no_thread): New
6252 function declarations.
6253 * process-stratum-target.c (all_non_exited_process_targets)
6254 (switch_to_target_no_thread): New function implementations.
6255
6256 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6257
6258 * infrun.c (handle_inferior_event): Extract out a piece of code
6259 into...
6260 (mark_non_executing_threads): ...this new function.
6261
6262 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6263
6264 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6265 use.
6266
6267 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6268
6269 * regcache.c (regcache_read_pc_protected): New function
6270 implementation that returns 0 if the PC cannot read via
6271 'regcache_read_pc'.
6272 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6273 instead of 'regcache_read_pc'.
6274 (keep_going_pass_signal): Ditto.
6275
6276 2020-05-13 Tom Tromey <tromey@adacore.com>
6277
6278 * ada-lang.c (align_value): Remove.
6279 (ada_template_to_fixed_record_type_1): Use align_up.
6280
6281 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6282
6283 * async-event.c: Update the copyright year.
6284 * async-event.h: Update the copyright year.
6285
6286 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * objfiles.h (is_addr_in_objfile,
6289 shared_objfile_contains_address_p): Return bool.
6290 * objfile.c (is_addr_in_objfile,
6291 shared_objfile_contains_address_p): Return bool.
6292
6293 2020-05-11 Tom Tromey <tromey@adacore.com>
6294
6295 * cli/cli-cmds.c (info_command): Restore.
6296 (_initialize_cli_cmds): Use add_prefix_command for "info".
6297 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6298
6299 2020-05-11 Tom Tromey <tromey@adacore.com>
6300
6301 * ada-lang.c (ada_value_primitive_field): Now public.
6302 * ada-lang.h (ada_value_primitive_field): Declare.
6303 * ada-valprint.c (print_field_values): Use
6304 ada_value_primitive_field for wrapper fields.
6305
6306 2020-05-11 Tom de Vries <tdevries@suse.de>
6307
6308 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6309 MODULE_DOMAIN.
6310
6311 2020-05-11 Tom de Vries <tdevries@suse.de>
6312
6313 PR symtab/25941
6314 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6315 with length 0, if not gdb-produced.
6316 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6317
6318 2020-05-09 Tom de Vries <tdevries@suse.de>
6319
6320 PR gdb/25955
6321 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6322 calculation.
6323
6324 2020-05-09 Tom Tromey <tom@tromey.com>
6325
6326 * top.c (server_command): Now bool.
6327 * top.h (server_command): Now bool.
6328
6329 2020-05-08 Tom Tromey <tromey@adacore.com>
6330
6331 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6332 already being processed.
6333
6334 2020-05-08 Tom Tromey <tom@tromey.com>
6335
6336 * printcmd.c (struct display) <next>: Remove.
6337 <display>: New constructor.
6338 <exp_string>: Now a std::string.
6339 <enabled_p>: Now a bool.
6340 (display_number): Move definition earlier.
6341 (displays): Rename from display_chain. Now a std::vector.
6342 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6343 (display_command): Update.
6344 (do_one_display, disable_display)
6345 (enable_disable_display_command, do_enable_disable_display):
6346 Update.
6347 (free_display): Remove.
6348 (clear_displays): Rewrite.
6349 (delete_display): Update.
6350 (map_display_numbers): Use function_view. Remove "data"
6351 parameter. Update.
6352 (do_delete_display): Remove.
6353 (undisplay_command): Update.
6354 (do_one_display, do_displays, disable_display)
6355 (info_display_command): Update.
6356 (do_enable_disable_display): Remove.
6357 (enable_disable_display_command)
6358 (clear_dangling_display_expressions): Update.
6359
6360 2020-05-08 Tom Tromey <tom@tromey.com>
6361
6362 * symtab.c (set_symbol_cache_size)
6363 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6364 (maintenance_print_symbol_cache_statistics): Update.
6365 * symmisc.c (print_symbol_bcache_statistics)
6366 (print_objfile_statistics, maintenance_print_objfiles)
6367 (maintenance_info_symtabs, maintenance_check_symtabs)
6368 (maintenance_expand_symtabs, maintenance_info_line_tables):
6369 Update.
6370 * symfile-debug.c (set_debug_symfile): Update.
6371 * source.c (forget_cached_source_info): Update.
6372 * python/python.c (gdbpy_progspaces): Update.
6373 * psymtab.c (maintenance_info_psymtabs): Update.
6374 * probe.c (parse_probes): Update.
6375 * linespec.c (iterate_over_all_matching_symtabs)
6376 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6377 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6378 * exec.c (exec_target::close): Update.
6379 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6380 * breakpoint.c (print_one_breakpoint_location)
6381 (create_longjmp_master_breakpoint)
6382 (create_std_terminate_master_breakpoint): Update.
6383 * progspace.c (program_spaces): Now a std::vector.
6384 (maybe_new_address_space): Update.
6385 (add_program_space): Remove.
6386 (program_space::program_space): Update.
6387 (remove_program_space): Update.
6388 (number_of_program_spaces): Remove.
6389 (print_program_space, update_address_spaces): Update.
6390 * progspace.h (program_spaces): Change type.
6391 (ALL_PSPACES): Remove.
6392 (number_of_program_spaces): Don't declare.
6393 (struct program_space) <next>: Remove.
6394
6395 2020-05-08 Tom Tromey <tom@tromey.com>
6396
6397 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6398 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6399 (enable_break): Update.
6400 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6401 (frv_fdpic_find_canonical_descriptor): Update.
6402 (frv_fetch_objfile_link_map): Update.
6403 * progspace.c (program_space::free_all_objfiles): Update.
6404 (program_space::solibs): New method.
6405 * progspace.h (struct program_space) <solibs>: New method.
6406 * solist.h (master_so_list): Don't declare.
6407 (ALL_SO_LIBS): Remove.
6408 * solib.h (so_list_head): Remove.
6409 (update_solib_list): Update comment.
6410 * solib.c (master_so_list): Remove.
6411 (solib_used, update_solib_list, solib_add)
6412 (info_sharedlibrary_command, clear_solib)
6413 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6414
6415 2020-05-08 Tom Tromey <tom@tromey.com>
6416
6417 * extension.c (extension_languages): Now a std::array.
6418 (ALL_EXTENSION_LANGUAGES): Remove.
6419 (get_ext_lang_defn, get_ext_lang_of_file)
6420 (eval_ext_lang_from_control_command): Update.
6421 (finish_ext_lang_initialization)
6422 (auto_load_ext_lang_scripts_for_objfile)
6423 (ext_lang_type_printers::ext_lang_type_printers)
6424 (apply_ext_lang_type_printers)
6425 (ext_lang_type_printers::~ext_lang_type_printers)
6426 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6427 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6428 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6429 (get_matching_xmethod_workers, ext_lang_colorize)
6430 (ext_lang_before_prompt): Update.
6431 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6432
6433 2020-05-08 Tom Tromey <tom@tromey.com>
6434
6435 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6436 overload.
6437 <swap_string, m_string>: Remove.
6438 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6439 Update.
6440 * stabsread.c (define_symbol, read_type): Update.
6441 * linespec.c (find_linespec_symbols): Update.
6442 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6443 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6444 * dbxread.c (read_dbx_symtab): Update.
6445 * cp-support.h (cp_canonicalize_string_full)
6446 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6447 Return unique_xmalloc_ptr.
6448 * cp-support.c (inspect_type): Update.
6449 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6450 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6451 Likewise.
6452 * c-typeprint.c (print_name_maybe_canonical): Update.
6453 * break-catch-throw.c (check_status_exception_catchpoint):
6454 Update.
6455
6456 2020-05-08 Tom de Vries <tdevries@suse.de>
6457
6458 * infrun.c (follow_fork): Copy current_line and current_symtab to
6459 child thread.
6460
6461 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6462
6463 * async-event.c (struct async_signal_handler, struct
6464 async_event_handler): Reformat, remove typedef.
6465
6466 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6467
6468 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6469 access thistype->main_type->dyn_prop_list directly.
6470
6471 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6474 (remove_dyn_prop): Remove. Update all users to use
6475 type::remove_dyn_prop.
6476 * gdbtypes.c (remove_dyn_prop): Rename to...
6477 (type::remove_dyn_prop): ... this.
6478
6479 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6480
6481 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6482 (add_dyn_prop): Remove. Update all users to use
6483 type::add_dyn_prop.
6484 * gdbtypes.c (add_dyn_prop): Rename to...
6485 (type::add_dyn_prop): ... this.
6486
6487 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6490 (get_dyn_prop): Remove. Update all users to use
6491 type::dyn_prop.
6492 * gdbtypes.c (get_dyn_prop): Rename to...
6493 (type::dyn_prop): ... this.
6494
6495 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6498
6499 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6502 instruction, skip it if it's there.
6503
6504 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6507
6508 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6509
6510 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6511 * gdbtypes.c (recursive_dump_type): Remove use of
6512 TYPE_INCOMPLETE.
6513
6514 2020-05-03 Tom Tromey <tom@tromey.com>
6515
6516 * breakpoint.c (catch_command, tcatch_command): Remove.
6517 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6518 add_show_prefix_cmd.
6519 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6520 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6521 Remove.
6522 (add_internal_problem_command): Use add_basic_prefix_cmd,
6523 add_show_prefix_cmd.
6524 * mips-tdep.c (set_mipsfpu_command): Remove.
6525 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6526 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6527 (_initialize_index_cache): Use add_basic_prefix_cmd.
6528 * memattr.c (dummy_cmd): Remove.
6529 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6530 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6531 (_initialize_tui_win): Use add_basic_prefix_cmd,
6532 add_show_prefix_cmd.
6533 * cli/cli-logging.c (set_logging_command): Remove.
6534 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6535 add_show_prefix_cmd.
6536 (show_logging_command): Remove.
6537 * target.c (target_command): Remove.
6538 (add_target): Use add_basic_prefix_cmd.
6539
6540 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6541
6542 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6543
6544 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6545
6546 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6547 info_command.
6548
6549 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6550
6551 * nbsd-nat.c (nbsd_enable_proc_events)
6552 (nbsd_nat_target::post_startup_inferior): Add.
6553 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6554 (nbsd_nat_target::update_thread_list): Rewrite.
6555 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6556 "PTRACE_LWP_CREATE".
6557 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6558
6559 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6560
6561 * stack.c (_initialize_stack): Remove duplicated creation
6562 of "frame" command and "f" alias.
6563
6564 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6565
6566 PR gdb/18706
6567 * gdbtypes.c (check_typedef): Calculate size of array of
6568 stubbed type.
6569
6570 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6571
6572 PR gdb/15559
6573 * i386-tdep.c (i386_push_dummy_call): Call
6574 i386_thiscall_push_dummy_call.
6575 (i386_thiscall_push_dummy_call): New function.
6576 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6577 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6578 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6579
6580 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * gdbarch.sh (do_read): Add shellcheck disable directive for
6583 warning SC2162.
6584
6585 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6588 "referenced but not assigned" warning.
6589
6590 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6591
6592 * gdbarch.sh: Remove code that sets fallbackdefault.
6593
6594 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * gdbarch.sh: Use shell operators && and || instead of
6597 -a and -o.
6598
6599 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * gdbarch.sh: Use $(...) instead of `...`.
6602
6603 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * gdbarch.sh: Use double quotes around variables.
6606
6607 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6608
6609 * gdbarch.sh: Use %s with printf, instead of variables in the
6610 format string.
6611
6612 2020-04-29 Tom Tromey <tromey@adacore.com>
6613
6614 PR ada/25875:
6615 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6616 type fields here.
6617 (read_enumeration_type): Call
6618 update_enumeration_type_from_children later. Update comments.
6619 (process_enumeration_scope): Don't create type fields.
6620
6621 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6622
6623 * nbsd-tdep.c: Include "xml-syscall.h".
6624 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6625
6626 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6627
6628 * nbsd-nat.c: Include "sys/wait.h".
6629 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6630 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6631 (nbsd_nat_target::remove_exec_catchpoint)
6632 (nbsd_nat_target::set_syscall_catchpoint): Add.
6633 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6634 (nbsd_nat_target::insert_exec_catchpoint)
6635 (nbsd_nat_target::remove_exec_catchpoint)
6636 (nbsd_nat_target::set_syscall_catchpoint): Add.
6637 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6638 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6639 `nbsd_get_syscall_number'.
6640
6641 2020-04-29 Tom Tromey <tom@tromey.com>
6642
6643 * stack.c (print_block_frame_labels): Remove.
6644
6645 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6646
6647 PR gdb/17320
6648 * ada-valprint.c (val_print_packed_array_elements): Move array
6649 end bracket to new line.
6650 (ada_val_print_string): Remove extra spaces before first array
6651 element.
6652 * c-valprint.c (c_value_print_array): Likewise.
6653 * m2-valprint.c (m2_print_array_contents): Likewise.
6654 (m2_value_print_inner): Likewise.
6655 * p-valprint.c (pascal_value_print_inner): Likewise.
6656 * valprint.c (generic_val_print_array): Likewise.
6657 (value_print_array_elements): Move first array element and array
6658 end bracket to new line.
6659
6660 2020-04-29 Tom de Vries <tdevries@suse.de>
6661
6662 PR symtab/25889
6663 * linespec.c (find_method): Fix ix calculation.
6664
6665 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6666
6667 * syscalls/update-netbsd.sh: New file.
6668 * syscalls/netbsd.xml: Regenerate.
6669 * data-directory/Makefile.in: Register `netbsd.xml' in
6670 `SYSCALLS_FILES'.
6671
6672 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6673
6674 * syscalls/update-freebsd.sh: Add double quotes.
6675
6676 2020-04-28 Tom Tromey <tom@tromey.com>
6677
6678 * NEWS: Update.
6679 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6680 (cmdpy_init): Allow class_tui.
6681
6682 2020-04-28 Mark Williams <mark@myosotissp.com>
6683
6684 PR gdb/24480
6685 * dwarf2read.c: Add missing assingments to list_in_scope when
6686 start_symtab was already called.
6687
6688 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6689
6690 PR gdb/25881
6691 * dwarf2/read.c (offset_map_type): Use
6692 gdb:hash_enum<sect_offset> as hash function.
6693
6694 2020-04-28 Tom de Vries <tdevries@suse.de>
6695
6696 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6697 with DW_AT_signature.
6698
6699 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6700
6701 * configure.ac: Remove check for fs_base/gs_base in
6702 user_regs_struct.
6703 * configure: Re-generate.
6704 * config.in: Re-generate.
6705 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6706 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6707 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6708
6709 2020-04-27 Luis Machado <luis.machado@linaro.org>
6710
6711 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6712 problematic inline frame unwinding situation.
6713 * frame.c (frame_id_computed_p): New function.
6714 * frame.h (frame_id_computed_p): New prototype.
6715
6716 2020-04-26 Tom Tromey <tom@tromey.com>
6717
6718 * command.h (enum command_class) <class_pseudo>: Remove.
6719
6720 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6721
6722 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6723 and whitespace.
6724
6725 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6726
6727 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6728 `PT_GET_PROCESS_STATE' block.
6729
6730 2020-04-24 Tom Tromey <tom@tromey.com>
6731
6732 * symtab.h (symbol_get_demangled_name): Don't declare.
6733 * symtab.c (symbol_get_demangled_name): Remove.
6734 (general_symbol_info::natural_name)
6735 (general_symbol_info::demangled_name): Update.
6736
6737 2020-04-24 Tom Tromey <tom@tromey.com>
6738
6739 PR rust/25025:
6740 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6741
6742 2020-04-24 Tom Tromey <tom@tromey.com>
6743
6744 PR symtab/12707:
6745 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6746 exists.
6747 (new_symbol): Likewise.
6748 * compile/compile-object-load.c (get_out_value_type): Use
6749 symbol_matches_search_name.
6750
6751 2020-04-24 Tom Tromey <tom@tromey.com>
6752
6753 * dwarf2/read.c (add_partial_symbol): Do not call
6754 compute_and_set_names.
6755
6756 2020-04-24 Tom Tromey <tom@tromey.com>
6757
6758 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6759 overload.
6760
6761 2020-04-24 Tom Tromey <tom@tromey.com>
6762
6763 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6764 (add_psymbol_to_list): New overload. Make old overload call new
6765 one.
6766 * psympriv.h (add_psymbol_to_list): New overload.
6767
6768 2020-04-24 Tom Tromey <tom@tromey.com>
6769
6770 * dwarf2/read.c (partial_die_info::read) <case
6771 DW_AT_linkage_name>: Use value_as_string.
6772 (dwarf2_string_attr): Use value_as_string.
6773 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6774 method.
6775 * dwarf2/attribute.c (attribute::value_as_string): New method.
6776
6777 2020-04-24 Tom Tromey <tom@tromey.com>
6778
6779 * symtab.c (general_symbol_info::natural_name)
6780 (general_symbol_info::demangled_name): Check for language_rust.
6781
6782 2020-04-24 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6785 (dwarf2_physname): ... from here.
6786 (partial_die_info::read): Add Rust "{" hack.
6787
6788 2020-04-24 Tom Tromey <tom@tromey.com>
6789
6790 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6791 method.
6792 (symbol_set_demangled_name): Don't declare.
6793 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6794 symbol_set_demangled_name.
6795 (general_symbol_info::set_language)
6796 (general_symbol_info::compute_and_set_names): Update.
6797 * minsyms.c (minimal_symbol_reader::install): Update.
6798 * dwarf2/read.c (new_symbol): Update.
6799
6800 2020-04-24 Tom Tromey <tromey@adacore.com>
6801
6802 PR python/23662:
6803 * python/py-type.c (convert_field): Handle
6804 FIELD_LOC_KIND_DWARF_BLOCK.
6805 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6806 (typy_get_dynamic): Nw function.
6807 (type_object_getset): Add "dynamic".
6808 * NEWS: Add entry.
6809
6810 2020-04-24 Tom Tromey <tromey@adacore.com>
6811
6812 * ada-typeprint.c (print_choices, print_variant_part)
6813 (print_record_field_types_dynamic): New functions.
6814 (print_record_field_types): Use print_record_field_types_dynamic.
6815
6816 2020-04-24 Tom Tromey <tromey@adacore.com>
6817
6818 * dwarf2/read.c (handle_data_member_location): New overload.
6819 (dwarf2_add_field): Use it.
6820 (decode_locdesc): Add "computed" parameter. Update comment.
6821 * gdbtypes.c (is_dynamic_type_internal): Also look for
6822 FIELD_LOC_KIND_DWARF_BLOCK.
6823 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6824 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6825 virtual base classes.
6826 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6827 FIELD_LOC_KIND_DWARF_BLOCK.
6828
6829 2020-04-24 Tom Tromey <tromey@adacore.com>
6830
6831 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6832 * gdbtypes.c (is_dynamic_type_internal): Check
6833 TYPE_HAS_DYNAMIC_LENGTH.
6834 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6835 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6836 New macros.
6837 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6838 constant.
6839
6840 2020-04-24 Tom Tromey <tromey@adacore.com>
6841
6842 * dwarf2/read.c (struct variant_field): Rewrite.
6843 (struct variant_part_builder): New.
6844 (struct nextfield): Remove "variant" field. Add "offset".
6845 (struct field_info): Add "current_variant_part" and
6846 "variant_parts".
6847 (alloc_discriminant_info): Remove.
6848 (alloc_rust_variant): New function.
6849 (quirk_rust_enum): Update.
6850 (dwarf2_add_field): Set "offset" member. Don't handle
6851 DW_TAG_variant_part.
6852 (offset_map_type): New typedef.
6853 (convert_variant_range, create_one_variant)
6854 (create_one_variant_part, create_variant_parts)
6855 (add_variant_property): New functions.
6856 (dwarf2_attach_fields_to_type): Call add_variant_property.
6857 (read_structure_type): Don't handle DW_TAG_variant_part.
6858 (handle_variant_part, handle_variant): New functions.
6859 (handle_struct_member_die): Use them.
6860 (process_structure_scope): Don't handle variant parts.
6861 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6862 (struct discriminant_info): Remove.
6863 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6864 (struct main_type) <flag_discriminated_union>: Remove.
6865 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6866 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6867 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6868 Update.
6869 * valops.c (value_union_variant): Remove.
6870 * value.h (value_union_variant): Don't declare.
6871
6872 2020-04-24 Tom Tromey <tromey@adacore.com>
6873
6874 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6875 (ada_value_primitive_packed_val): Update.
6876 * ada-valprint.c (ada_value_print_1): Update.
6877 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6878 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6879 just an address. Use evaluate_for_locexpr_baton.
6880 (dwarf2_evaluate_property): Update.
6881 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6882 array_view.
6883 * findvar.c (default_read_var_value): Update.
6884 * gdbtypes.c (compute_variant_fields_inner)
6885 (resolve_dynamic_type_internal): Update.
6886 (resolve_dynamic_type): Change type of valaddr parameter.
6887 * gdbtypes.h (resolve_dynamic_type): Update.
6888 * valarith.c (value_subscripted_rvalue): Update.
6889 * value.c (value_from_contents_and_address): Update.
6890
6891 2020-04-24 Tom Tromey <tromey@adacore.com>
6892
6893 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6894 "push_initial_value" parameter.
6895 (dwarf2_evaluate_property): Likewise.
6896 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6897
6898 2020-04-24 Tom Tromey <tromey@adacore.com>
6899
6900 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6901 (variant::matches, compute_variant_fields_recurse)
6902 (compute_variant_fields_inner, compute_variant_fields): New
6903 functions.
6904 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6905 Use resolved_type after type is made.
6906 (operator==): Add new cases.
6907 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6908 (struct discriminant_range, struct variant, struct variant_part):
6909 New.
6910 (union dynamic_prop_data) <variant_parts, original_type>: New
6911 members.
6912 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6913 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6914 constants.
6915 * value.c (unpack_bits_as_long): Now public.
6916 * value.h (unpack_bits_as_long): Declare.
6917
6918 2020-04-24 Tom Tromey <tromey@adacore.com>
6919
6920 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6921 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6922
6923 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6924
6925 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6926
6927 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6928
6929 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6930 (remove_fork_catchpoint, post_startup_inferior)
6931 (post_attach): Move...
6932 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6933 (remove_fork_catchpoint, post_startup_inferior)
6934 (post_attach): ...here.
6935 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6936 (remove_fork_catchpoint, post_startup_inferior)
6937 (post_attach): Move...
6938 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6939 (remove_fork_catchpoint, post_startup_inferior)
6940 (post_attach): ...here.
6941
6942 2020-04-24 Tom Tromey <tromey@adacore.com>
6943
6944 * nat/windows-nat.h (struct windows_thread_info)
6945 <pc_adjusted>: New member.
6946 * windows-nat.c (windows_fetch_one_register): Check
6947 pc_adjusted.
6948 (windows_nat_target::get_windows_debug_event)
6949 (windows_nat_target::wait): Set pc_adjusted.
6950
6951 2020-04-24 Tom de Vries <tdevries@suse.de>
6952
6953 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6954 Run gdb-add-index inside temp dir.
6955
6956 2020-04-23 Tom Tromey <tromey@adacore.com>
6957
6958 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6959 in loop.
6960
6961 2020-04-23 Luis Machado <luis.machado@linaro.org>
6962
6963 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6964 get_frame_register instead of gdbarch_unwind_pc.
6965
6966 2020-04-23 Tom de Vries <tdevries@suse.de>
6967
6968 * symtab.c (lookup_global_symbol): Prefer def over decl.
6969
6970 2020-04-23 Tom de Vries <tdevries@suse.de>
6971
6972 PR symtab/25807
6973 * block.c (best_symbol, better_symbol): Promote to external.
6974 * block.h (best_symbol, better_symbol): Declare.
6975 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6976 decl.
6977
6978 2020-04-23 Tom Tromey <tromey@adacore.com>
6979
6980 PR ada/25837:
6981 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6982 "const char *", not a "const std::string &".
6983 <name_and_matcher::operator==>: Update.
6984 * unittests/lookup_name_info-selftests.c: Change type of
6985 "result".
6986
6987 2020-04-23 Tom Tromey <tom@tromey.com>
6988
6989 * inferior.h (iterate_over_inferiors): Don't declare.
6990 * inferior.c (iterate_over_inferiors): Remove.
6991 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6992 Remove.
6993 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6994 use iterate_over_inferiors.
6995 (darwin_resume_inferior_it)
6996 (struct resume_inferior_threads_param)
6997 (darwin_resume_inferior_threads_it): Remove.
6998 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6999
7000 2020-04-23 Tom de Vries <tdevries@suse.de>
7001
7002 * blockframe.c (find_pc_partial_function): Use
7003 find_pc_sect_compunit_symtab rather than
7004 objfile->sf->qf->find_pc_sect_compunit_symtab.
7005
7006 2020-04-22 Tom de Vries <tdevries@suse.de>
7007
7008 PR symtab/25764
7009 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7010 in psymtabs.
7011
7012 2020-04-22 Tom de Vries <tdevries@suse.de>
7013
7014 PR symtab/25801
7015 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7016 symtabs.
7017
7018 2020-04-22 Tom de Vries <tdevries@suse.de>
7019
7020 PR symtab/25700
7021 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7022 CU if already created.
7023
7024 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7025
7026 * infrun.c (displaced_step_fixup): Switch to the event_thread
7027 before calling displaced_step_restore, not after.
7028
7029 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7030
7031 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7032 its inferior is not recorded by us.
7033 (record_btrace_target_open): Replace call to
7034 all_non_exited_threads () with call to current_inferior
7035 ()->non_exited_threads ().
7036 (record_btrace_target::stop_recording): Likewise.
7037 (record_btrace_target::close): Likewise.
7038 (record_btrace_target::wait): Likewise.
7039 (record_btrace_target::record_stop_replaying): Likewise.
7040
7041 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7042
7043 * btrace.c (btrace_enable): Throw an error on double enables and
7044 when enabling recording fails.
7045 (btrace_disable): Throw an error if the thread is not recorded.
7046
7047 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7048
7049 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7050 request if we do not have a thread_info.
7051
7052 2020-04-21 Tom de Vries <tdevries@suse.de>
7053
7054 PR gdb/25471
7055 * thread.c
7056 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7057 exception in get_frame_id.
7058
7059 2020-04-20 Tom Tromey <tromey@adacore.com>
7060
7061 * python/python.c (struct gdbpy_event): Mark move constructor as
7062 noexcept.
7063 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7064 constructor as noexcept.
7065 * completer.h (struct completion_result): Mark move constructor as
7066 noexcept.
7067 * completer.c (completion_result::completion_result): Use
7068 initialization style. Don't call reset_match_list.
7069
7070 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7071
7072 * MAINTAINERS (Write After Approval): Add myself.
7073
7074 2020-04-18 Tom Tromey <tom@tromey.com>
7075
7076 * windows-tdep.c (init_w32_command_list)
7077 (w32_prefix_command_valid): Restore.
7078 (_initialize_windows_tdep): Call init_w32_command_list.
7079
7080 2020-04-18 Tom Tromey <tom@tromey.com>
7081
7082 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7083 * value.c (value_fn_field): Update.
7084 * valops.c (find_function_in_inferior)
7085 (value_allocate_space_in_inferior): Update.
7086 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7087 Update.
7088 * tui/tui-source.c (tui_source_window::set_contents): Update.
7089 * symtab.c (lookup_global_or_static_symbol)
7090 (find_function_start_sal_1, skip_prologue_sal)
7091 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7092 * symmisc.c (dump_msymbols, dump_symtab_1)
7093 (maintenance_print_one_line_table): Update.
7094 * symfile.c (init_entry_point_info, section_is_mapped)
7095 (list_overlays_command, simple_read_overlay_table)
7096 (simple_overlay_update_1): Update.
7097 * stap-probe.c (handle_stap_probe): Update.
7098 * stabsread.c (dbx_init_float_type, define_symbol)
7099 (read_one_struct_field, read_enum_type, read_range_type): Update.
7100 * source.c (info_line_command): Update.
7101 * python/python.c (gdbpy_source_objfile_script)
7102 (gdbpy_execute_objfile_script): Update.
7103 * python/py-type.c (save_objfile_types): Update.
7104 * python/py-objfile.c (py_free_objfile): Update.
7105 * python/py-inferior.c (python_new_objfile): Update.
7106 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7107 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7108 (maintenance_check_psymtabs): Update.
7109 * printcmd.c (info_address_command): Update.
7110 * objfiles.h (struct objfile) <arch>: New method, from
7111 get_objfile_arch.
7112 (get_objfile_arch): Don't declare.
7113 * objfiles.c (get_objfile_arch): Remove.
7114 (filter_overlapping_sections): Update.
7115 * minsyms.c (msymbol_is_function): Update.
7116 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7117 (output_nondebug_symbol): Update.
7118 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7119 (mdebug_expand_psymtab): Update.
7120 * machoread.c (macho_add_oso_symfile): Update.
7121 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7122 Update.
7123 * linux-fork.c (checkpoint_command): Update.
7124 * linespec.c (convert_linespec_to_sals): Update.
7125 * jit.c (finalize_symtab): Update.
7126 * infrun.c (insert_exception_resume_from_probe): Update.
7127 * ia64-tdep.c (ia64_find_unwind_table): Update.
7128 * hppa-tdep.c (internalize_unwinds): Update.
7129 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7130 Update.
7131 * gcore.c (call_target_sbrk): Update.
7132 * elfread.c (record_minimal_symbol, elf_symtab_read)
7133 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7134 (elf_gnu_ifunc_resolve_by_got): Update.
7135 * dwarf2/read.c (create_addrmap_from_index)
7136 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7137 (read_debug_names_from_section)
7138 (process_psymtab_comp_unit_reader, add_partial_symbol)
7139 (add_partial_subprogram, process_full_comp_unit)
7140 (read_file_scope, read_func_scope, read_lexical_block_scope)
7141 (read_call_site_scope, dwarf2_ranges_read)
7142 (dwarf2_record_block_ranges, dwarf2_add_field)
7143 (mark_common_block_symbol_computed, read_tag_pointer_type)
7144 (read_tag_string_type, dwarf2_init_float_type)
7145 (dwarf2_init_complex_target_type, read_base_type)
7146 (partial_die_info::read, partial_die_info::read)
7147 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7148 (dwarf2_fetch_die_loc_sect_off): Update.
7149 * dwarf2/loc.c (dwarf2_find_location_expression)
7150 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7151 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7152 (dwarf2_loc_desc_get_symbol_read_needs)
7153 (locexpr_describe_location_piece, locexpr_describe_location_1)
7154 (loclist_describe_location): Update.
7155 * dwarf2/index-write.c (write_debug_names): Update.
7156 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7157 * dtrace-probe.c (dtrace_process_dof): Update.
7158 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7159 (process_one_symbol): Update.
7160 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7161 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7162 (coff_read_enum_type): Update.
7163 * cli/cli-cmds.c (edit_command, list_command): Update.
7164 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7165 * breakpoint.c (create_overlay_event_breakpoint)
7166 (create_longjmp_master_breakpoint)
7167 (create_std_terminate_master_breakpoint)
7168 (create_exception_master_breakpoint, get_sal_arch): Update.
7169 * block.c (block_gdbarch): Update.
7170 * annotate.c (annotate_source_line): Update.
7171
7172 2020-04-17 Tom Tromey <tromey@adacore.com>
7173
7174 * auto-load.c (show_auto_load_cmd): Remove.
7175 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7176 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7177 (maintenance_print_arc_command): Remove.
7178 * tui/tui-win.c (tui_command): Remove.
7179 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7180 * tui/tui-layout.c (tui_layout_command): Remove.
7181 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7182 * python/python.c (user_set_python, user_show_python): Remove.
7183 (_initialize_python): Use add_basic_prefix_cmd,
7184 add_show_prefix_cmd.
7185 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7186 (install_gdb_commands): Use add_basic_prefix_cmd,
7187 add_show_prefix_cmd.
7188 (info_guile_command): Remove.
7189 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7190 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7191 add_show_prefix_cmd.
7192 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7193 Remove do_set and do_show parameters.
7194 * cli/cli-style.c (set_style, show_style): Remove.
7195 (_initialize_cli_style): Use add_basic_prefix_cmd,
7196 add_show_prefix_cmd.
7197 (cli_style_option::add_setshow_commands): Remove do_set and
7198 do_show parameters.
7199 (cli_style_option::add_setshow_commands): Use
7200 add_basic_prefix_cmd, add_show_prefix_cmd.
7201 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7202 (set_style_name): Remove.
7203 * cli/cli-dump.c (dump_command, append_command): Remove.
7204 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7205 (tekhex_dump_command, binary_dump_command)
7206 (binary_append_command): Remove.
7207 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7208 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7209 (init_w32_command_list): Remove; move into ...
7210 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7211 * valprint.c (set_print, show_print, set_print_raw)
7212 (show_print_raw): Remove.
7213 (_initialize_valprint): Use add_basic_prefix_cmd,
7214 add_show_prefix_cmd.
7215 * typeprint.c (set_print_type, show_print_type): Remove.
7216 (_initialize_typeprint): Use add_basic_prefix_cmd,
7217 add_show_prefix_cmd.
7218 * record.c (set_record_command, show_record_command): Remove.
7219 (_initialize_record): Use add_basic_prefix_cmd,
7220 add_show_prefix_cmd.
7221 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7222 add_show_prefix_cmd.
7223 (info_command, show_command, set_debug, show_debug): Remove.
7224 * top.h (set_history, show_history): Don't declare.
7225 * top.c (set_history, show_history): Remove.
7226 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7227 (unset_tdesc_cmd): Remove.
7228 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7229 add_show_prefix_cmd.
7230 * symtab.c (info_module_command): Remove.
7231 (_initialize_symtab): Use add_basic_prefix_cmd.
7232 * symfile.c (overlay_command): Remove.
7233 (_initialize_symfile): Use add_basic_prefix_cmd.
7234 * sparc64-tdep.c (info_adi_command): Remove.
7235 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7236 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7237 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7238 add_show_prefix_cmd.
7239 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7240 (_initialize_serial): Use add_basic_prefix_cmd,
7241 add_show_prefix_cmd.
7242 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7243 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7244 add_show_prefix_cmd.
7245 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7246 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7247 add_show_prefix_cmd.
7248 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7249 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7250 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7251 add_show_prefix_cmd.
7252 * remote.c (remote_command, set_remote_cmd): Remove.
7253 (_initialize_remote): Use add_basic_prefix_cmd.
7254 * record-full.c (set_record_full_command)
7255 (show_record_full_command): Remove.
7256 (_initialize_record_full): Use add_basic_prefix_cmd,
7257 add_show_prefix_cmd.
7258 * record-btrace.c (cmd_set_record_btrace)
7259 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7260 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7261 (cmd_show_record_btrace_pt): Remove.
7262 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7263 add_show_prefix_cmd.
7264 * ravenscar-thread.c (set_ravenscar_command)
7265 (show_ravenscar_command): Remove.
7266 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7267 add_show_prefix_cmd.
7268 * mips-tdep.c (show_mips_command, set_mips_command)
7269 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7270 add_show_prefix_cmd.
7271 * maint.c (maintenance_command, maintenance_info_command)
7272 (maintenance_check_command, maintenance_print_command)
7273 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7274 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7275 add_show_prefix_cmd.
7276 (show_per_command_cmd): Remove.
7277 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7278 Remove.
7279 (maintenance_show_test_settings_cmd): Remove.
7280 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7281 add_show_prefix_cmd.
7282 * maint-test-options.c (maintenance_test_options_command):
7283 Remove.
7284 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7285 * macrocmd.c (macro_command): Remove
7286 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7287 * language.c (set_check, show_check): Remove.
7288 (_initialize_language): Use add_basic_prefix_cmd,
7289 add_show_prefix_cmd.
7290 * infcmd.c (unset_command): Remove.
7291 (_initialize_infcmd): Use add_basic_prefix_cmd.
7292 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7293 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7294 add_show_prefix_cmd.
7295 * go32-nat.c (go32_info_dos_command): Remove.
7296 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7297 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7298 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7299 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7300 (_initialize_frame): Use add_basic_prefix_cmd,
7301 add_show_prefix_cmd.
7302 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7303 (_initialize_dcache): Use add_basic_prefix_cmd,
7304 add_show_prefix_cmd.
7305 * cp-support.c (maint_cplus_command): Remove.
7306 (_initialize_cp_support): Use add_basic_prefix_cmd.
7307 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7308 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7309 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7310 add_basic_prefix_cmd, add_show_prefix_cmd.
7311 * breakpoint.c (save_command): Remove.
7312 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7313 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7314 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7315 add_show_prefix_cmd.
7316 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7317 (set_ada_command, show_ada_command): Remove.
7318 (_initialize_ada_language): Use add_basic_prefix_cmd,
7319 add_show_prefix_cmd.
7320 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7321
7322 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7323
7324 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7325 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7326
7327 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7328
7329 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7330 warning messages.
7331
7332 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7333
7334 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7335 import table is not at beginning of .idata section.
7336
7337 2020-04-16 Pedro Alves <palves@redhat.com>
7338
7339 * inferior.c (delete_inferior): Use delete operator directly
7340 instead of delete_program_space.
7341 * progspace.c (add_program_space): New, factored out from
7342 program_space::program_space.
7343 (remove_program_space): New, factored out from
7344 delete_program_space.
7345 (program_space::program_space): Remove intro comment. Rewrite.
7346 (program_space::~program_space): Remove intro comment. Call
7347 remove_program_space.
7348 (delete_program_space): Delete.
7349 * progspace.h (program_space::program_space): Make explicit. Move
7350 intro comment here, adjusted.
7351 (program_space::~program_space): Move intro comment here,
7352 adjusted.
7353 (delete_program_space): Remove.
7354
7355 2020-04-16 Tom Tromey <tromey@adacore.com>
7356
7357 * windows-nat.c (windows_nat::handle_access_violation): New
7358 function.
7359 * nat/windows-nat.h (handle_access_violation): Declare.
7360 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7361 windows-nat.c. Call handle_access_violation.
7362
7363 2020-04-16 Tom de Vries <tdevries@suse.de>
7364
7365 PR symtab/25791
7366 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7367 CUs without psymtab.
7368
7369 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7370
7371 * python/python.c (do_start_initialization): Don't call
7372 PyEval_InitThreads for Python 3.9 and beyond.
7373
7374 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7375
7376 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7377 thread functions.
7378 (obsd_nat_target::wait): Likewise.
7379
7380 2020-04-15 Tom Tromey <tromey@adacore.com>
7381
7382 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7383 (DEBUG_EXCEPT): Use debug_printf.
7384
7385 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7386
7387 * completer.c (class completion_tracker::completion_hash_entry)
7388 <hash_name>: New member function.
7389 (completion_tracker::discard_completions): New callback to hash a
7390 completion_hash_entry, pass this to htab_create_alloc.
7391
7392 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7393
7394 * windows-nat.c (windows_make_so): Warn rather than stopping with
7395 an error if realpath() fails.
7396
7397 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7398
7399 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7400 (nbsd_nat_target::info_proc): Add do_status.
7401
7402 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7403 Tom de Vries <tdevries@suse.de>
7404
7405 PR symtab/25718
7406 * psympriv.h (struct partial_symtab::read_symtab)
7407 (struct partial_symtab::expand_psymtab)
7408 (struct partial_symtab::read_dependencies): Update comments.
7409 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7410 read_symtab for includer.
7411 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7412 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7413 (struct dwarf2_include_psymtab::m_readin): Remove.
7414 (struct dwarf2_include_psymtab::includer): New member function.
7415 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7416
7417 2020-04-14 Tom de Vries <tdevries@suse.de>
7418
7419 PR symtab/25720
7420 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7421 with NULL symbol_matcher and lookup_name.
7422 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7423 and lookup_name.
7424 * dwarf2/read.c (dw2_expand_symtabs_matching)
7425 (dw2_debug_names_expand_symtabs_matching): Same.
7426 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7427 Make lookup_name a pointer. Update comment.
7428 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7429 lookup_name being a pointer.
7430 * symfile.c (expand_symtabs_matching): Same.
7431 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7432 * linespec.c (iterate_over_all_matching_symtabs): Same.
7433
7434 2020-04-13 Tom Tromey <tom@tromey.com>
7435
7436 * run-on-main-thread.c: Update include.
7437 * unittests/main-thread-selftests.c: Update include.
7438 * tui/tui-win.c: Update include.
7439 * tui/tui-io.c: Update include.
7440 * tui/tui-interp.c: Update include.
7441 * tui/tui-hooks.c: Update include.
7442 * top.h: Update include.
7443 * top.c: Update include.
7444 * ser-base.c: Update include.
7445 * remote.c: Update include.
7446 * remote-notif.c: Update include.
7447 * remote-fileio.c: Update include.
7448 * record-full.c: Update include.
7449 * record-btrace.c: Update include.
7450 * python/python.c: Update include.
7451 * posix-hdep.c: Update include.
7452 * mingw-hdep.c: Update include.
7453 * mi/mi-main.c: Update include.
7454 * mi/mi-interp.c: Update include.
7455 * main.c: Update include.
7456 * linux-nat.c: Update include.
7457 * interps.c: Update include.
7458 * infrun.c: Update include.
7459 * inf-loop.c: Update include.
7460 * event-top.c: Update include.
7461 * event-loop.c: Move to ../gdbsupport/.
7462 * event-loop.h: Move to ../gdbsupport/.
7463 * async-event.h: Update include.
7464 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7465
7466 2020-04-13 Tom Tromey <tom@tromey.com>
7467
7468 * tui/tui-win.c: Include async-event.h.
7469 * remote.c: Include async-event.h.
7470 * remote-notif.c: Include async-event.h.
7471 * record-full.c: Include async-event.h.
7472 * record-btrace.c: Include async-event.h.
7473 * infrun.c: Include async-event.h.
7474 * event-top.c: Include async-event.h.
7475 * event-loop.h: Move some declarations to async-event.h.
7476 * event-loop.c: Don't include ser-event.h or top.h. Move some
7477 code to async-event.c.
7478 * async-event.h: New file.
7479 * async-event.c: New file.
7480 * Makefile.in (COMMON_SFILES): Add async-event.c.
7481 (HFILES_NO_SRCDIR): Add async-event.h.
7482
7483 2020-04-13 Tom Tromey <tom@tromey.com>
7484
7485 * utils.c (flush_streams): New function.
7486 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7487
7488 2020-04-13 Tom Tromey <tom@tromey.com>
7489
7490 * event-loop.c (handle_file_event): Use warning, not
7491 printf_unfiltered.
7492
7493 2020-04-13 Tom Tromey <tom@tromey.com>
7494
7495 * event-loop.c: Include <chrono>.
7496
7497 2020-04-13 Tom Tromey <tom@tromey.com>
7498
7499 * gdb_select.h: Move to ../gdbsupport/.
7500 * event-loop.c: Update include path.
7501 * top.c: Update include path.
7502 * ser-base.c: Update include path.
7503 * ui-file.c: Update include path.
7504 * ser-tcp.c: Update include path.
7505 * guile/scm-ports.c: Update include path.
7506 * posix-hdep.c: Update include path.
7507 * ser-unix.c: Update include path.
7508 * gdb_usleep.c: Update include path.
7509 * mingw-hdep.c: Update include path.
7510 * inflow.c: Update include path.
7511 * infrun.c: Update include path.
7512 * event-top.c: Update include path.
7513
7514 2020-04-13 Tom Tromey <tom@tromey.com>
7515
7516 * configure: Rebuild.
7517 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7518
7519 2020-04-13 Tom Tromey <tom@tromey.com>
7520
7521 * event-loop.h (start_event_loop): Don't declare.
7522 * event-loop.c (start_event_loop): Move...
7523 * main.c (start_event_loop): ...here. Now static.
7524
7525 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7526
7527 * MAINTAINERS: Update my email address.
7528
7529 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7530
7531 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7532 IP_ALL.
7533
7534 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7535
7536 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7537 (nbsd_nat_target::info_proc): Add do_cmdline.
7538
7539 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7540
7541 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7542 (nbsd_nat_target::info_proc): Add do_cwd.
7543
7544 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7545
7546 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7547
7548 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7549
7550 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7551 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7552 (nbsd_nat_target::info_proc): New functions.
7553 * nbsd-nat.c (kinfo_get_vmmap): New function.
7554 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7555 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7556 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7557 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7558 functions.
7559 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7560 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7561 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7562 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7563 (KINFO_VME_FLAG_GROWS_DOWN): New.
7564
7565 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7566
7567 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7568 bit shift.
7569
7570 2020-04-10 Tom Tromey <tromey@adacore.com>
7571
7572 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7573
7574 2020-04-10 Tom Tromey <tromey@adacore.com>
7575
7576 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7577 separate debug files.
7578
7579 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7580
7581 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7582 Move to...
7583 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7584 ... here.
7585 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7586 Check for STATUS_WX86_BREAKPOINT.
7587 (windows_nat_target::wait): Same.
7588
7589 2020-04-10 Tom de Vries <tdevries@suse.de>
7590
7591 PR cli/25808
7592 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7593
7594 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7595
7596 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7597 (Write After Approval): Remove Tom de Vries.
7598
7599 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7600
7601 revert partially:
7602 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7603
7604 * buildsym.c (record_line): Fix undefined behavior and preserve
7605 lines at eof.
7606
7607 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7608
7609 * auxv.h (svr4_auxv_parse): New.
7610 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7611 and generic_auxv_parse.
7612 (svr4_auxv_parse): Add.
7613 * obsd-tdep.c: Include "auxv.h".
7614 (obsd_auxv_parse): Remove.
7615 (obsd_init_abi): Remove comment.
7616 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7617 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7618 * nbsd-tdep.c: Include "auxv.h".
7619 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7620
7621 2020-04-08 Tom Tromey <tromey@adacore.com>
7622
7623 * nat/windows-nat.h (last_wait_event): Don't declare.
7624 (wait_for_debug_event): Update comment.
7625 * nat/windows-nat.c (last_wait_event): Now static.
7626
7627 2020-04-08 Tom Tromey <tromey@adacore.com>
7628
7629 * windows-nat.c (wait_for_debug_event): Move to
7630 nat/windows-nat.c.
7631 * nat/windows-nat.h (wait_for_debug_event): Declare.
7632 * nat/windows-nat.c (wait_for_debug_event): Move from
7633 windows-nat.c. No longer static.
7634
7635 2020-04-08 Tom Tromey <tromey@adacore.com>
7636
7637 * windows-nat.c (get_windows_debug_event): Use
7638 fetch_pending_stop.
7639 * nat/windows-nat.h (fetch_pending_stop): Declare.
7640 * nat/windows-nat.c (fetch_pending_stop): New function.
7641
7642 2020-04-08 Tom Tromey <tromey@adacore.com>
7643
7644 * windows-nat.c (windows_continue): Use matching_pending_stop and
7645 continue_last_debug_event.
7646 * nat/windows-nat.h (matching_pending_stop)
7647 (continue_last_debug_event): Declare.
7648 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7649 (matching_pending_stop, continue_last_debug_event): New
7650 functions.
7651
7652 2020-04-08 Tom Tromey <tromey@adacore.com>
7653
7654 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7655 (handle_exception_result): Move to nat/windows-nat.h.
7656 (DEBUG_EXCEPTION_SIMPLE): Remove.
7657 (windows_nat::handle_ms_vc_exception): New function.
7658 (handle_exception): Move to nat/windows-nat.c.
7659 (get_windows_debug_event): Update.
7660 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7661 nat/windows-nat.c.
7662 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7663 (handle_exception_result): Move from windows-nat.c.
7664 (handle_exception): Declare.
7665 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7666 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7667 windows-nat.c.
7668
7669 2020-04-08 Tom Tromey <tromey@adacore.com>
7670
7671 * windows-nat.c (exception_count, event_count): Remove.
7672 (handle_exception, get_windows_debug_event)
7673 (do_initial_windows_stuff): Update.
7674
7675 2020-04-08 Tom Tromey <tromey@adacore.com>
7676
7677 * windows-nat.c (windows_nat::handle_load_dll)
7678 (windows_nat::handle_unload_dll): Rename. No longer static.
7679 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7680 Declare.
7681
7682 2020-04-08 Tom Tromey <tromey@adacore.com>
7683
7684 * complaints.h (stop_whining): Declare at top-level.
7685 (complaint): Don't declare stop_whining.
7686
7687 2020-04-08 Tom Tromey <tromey@adacore.com>
7688
7689 * windows-nat.c (windows_nat::handle_output_debug_string):
7690 Rename. No longer static.
7691 * nat/windows-nat.h (handle_output_debug_string): Declare.
7692
7693 2020-04-08 Tom Tromey <tromey@adacore.com>
7694
7695 * windows-nat.c (current_process_handle, current_process_id)
7696 (main_thread_id, last_sig, current_event, last_wait_event)
7697 (current_windows_thread, desired_stop_thread_id, pending_stops)
7698 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7699 (display_selectors, fake_create_process)
7700 (get_windows_debug_event): Update.
7701 * nat/windows-nat.h (current_process_handle, current_process_id)
7702 (main_thread_id, last_sig, current_event, last_wait_event)
7703 (current_windows_thread, desired_stop_thread_id, pending_stops)
7704 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7705 * nat/windows-nat.c (current_process_handle, current_process_id)
7706 (main_thread_id, last_sig, current_event, last_wait_event)
7707 (current_windows_thread, desired_stop_thread_id, pending_stops)
7708 (siginfo_er): New globals. Move from windows-nat.c.
7709
7710 2020-04-08 Tom Tromey <tromey@adacore.com>
7711
7712 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7713 (handle_load_dll): Update.
7714 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7715
7716 2020-04-08 Tom Tromey <tromey@adacore.com>
7717
7718 * windows-nat.c (enum thread_disposition_type): Move to
7719 nat/windows-nat.h.
7720 (windows_nat::thread_rec): Rename from thread_rec. No longer
7721 static.
7722 (windows_add_thread, windows_nat_target::fetch_registers)
7723 (windows_nat_target::store_registers, handle_exception)
7724 (windows_nat_target::resume, get_windows_debug_event)
7725 (windows_nat_target::get_tib_address)
7726 (windows_nat_target::thread_name)
7727 (windows_nat_target::thread_alive): Update.
7728 * nat/windows-nat.h (enum thread_disposition_type): Move from
7729 windows-nat.c.
7730 (thread_rec): Declare.
7731
7732 2020-04-08 Tom Tromey <tromey@adacore.com>
7733
7734 * windows-nat.c: Add "using namespace".
7735 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7736 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7737
7738 2020-04-08 Tom Tromey <tromey@adacore.com>
7739
7740 * nat/windows-nat.h (struct windows_thread_info): Declare
7741 destructor.
7742 * nat/windows-nat.c (~windows_thread_info): New.
7743
7744 2020-04-08 Tom Tromey <tromey@adacore.com>
7745
7746 PR gdb/22992
7747 * windows-nat.c (current_event): Update comment.
7748 (last_wait_event, desired_stop_thread_id): New globals.
7749 (struct pending_stop): New.
7750 (pending_stops): New global.
7751 (windows_nat_target) <stopped_by_sw_breakpoint>
7752 <supports_stopped_by_sw_breakpoint>: New methods.
7753 (windows_fetch_one_register): Add assertions. Adjust PC.
7754 (windows_continue): Handle pending stops. Suspend other threads
7755 when stepping. Use last_wait_event
7756 (wait_for_debug_event): New function.
7757 (get_windows_debug_event): Use wait_for_debug_event. Handle
7758 pending stops. Queue spurious stops.
7759 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7760 (windows_nat_target::kill): Use wait_for_debug_event.
7761 * nat/windows-nat.h (struct windows_thread_info)
7762 <stopped_at_software_breakpoint>: New field.
7763 * nat/windows-nat.c (windows_thread_info::resume): Clear
7764 stopped_at_software_breakpoint.
7765
7766 2020-04-08 Tom Tromey <tromey@adacore.com>
7767
7768 * windows-nat.c (enum thread_disposition_type): New.
7769 (thread_rec): Replace "get_context" parameter with "disposition";
7770 change type.
7771 (windows_add_thread, windows_nat_target::fetch_registers)
7772 (windows_nat_target::store_registers, handle_exception)
7773 (windows_nat_target::resume, get_windows_debug_event)
7774 (windows_nat_target::get_tib_address)
7775 (windows_nat_target::thread_name)
7776 (windows_nat_target::thread_alive): Update.
7777
7778 2020-04-08 Tom Tromey <tromey@adacore.com>
7779
7780 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7781 (windows_continue): Use windows_continue::resume.
7782 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7783 resume>: Declare new methods.
7784 * nat/windows-nat.c: New file.
7785 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7786
7787 2020-04-08 Tom Tromey <tromey@adacore.com>
7788
7789 * windows-nat.c (windows_add_thread, windows_delete_thread)
7790 (windows_nat_target::fetch_registers)
7791 (windows_nat_target::store_registers, fake_create_process)
7792 (windows_nat_target::resume, windows_nat_target::resume)
7793 (get_windows_debug_event, windows_nat_target::wait)
7794 (windows_nat_target::pid_to_str)
7795 (windows_nat_target::get_tib_address)
7796 (windows_nat_target::get_ada_task_ptid)
7797 (windows_nat_target::thread_name)
7798 (windows_nat_target::thread_alive): Use lwp, not tid.
7799
7800 2020-04-08 Tom Tromey <tromey@adacore.com>
7801
7802 * windows-nat.c (handle_exception)
7803 (windows_nat_target::thread_name): Update.
7804 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7805 <name>: Now unique_xmalloc_ptr.
7806
7807 2020-04-08 Tom Tromey <tromey@adacore.com>
7808
7809 * windows-nat.c (thread_rec)
7810 (windows_nat_target::fetch_registers): Update.
7811 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7812 Update comment.
7813 <debug_registers_changed, reload_context>: Now bool.
7814
7815 2020-04-08 Tom Tromey <tromey@adacore.com>
7816
7817 * windows-nat.c (windows_add_thread): Use new.
7818 (windows_init_thread_list, windows_delete_thread): Use delete.
7819 (get_windows_debug_event): Update.
7820 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7821 destructor, and initializers.
7822
7823 2020-04-08 Tom Tromey <tromey@adacore.com>
7824
7825 * windows-nat.c (struct windows_thread_info): Remove.
7826 * nat/windows-nat.h: New file.
7827
7828 2020-04-08 Tom Tromey <tromey@adacore.com>
7829
7830 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7831 (thread_rec, windows_add_thread, windows_delete_thread)
7832 (windows_continue): Update.
7833
7834 2020-04-08 Tom Tromey <tromey@adacore.com>
7835
7836 * windows-nat.c (struct windows_thread_info): Remove typedef.
7837 (thread_head): Remove.
7838 (thread_list): New global.
7839 (thread_rec, windows_add_thread, windows_init_thread_list)
7840 (windows_delete_thread, windows_continue): Update.
7841
7842 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7843
7844 * windows-tdep.h (windows_init_abi): Add comment.
7845 (cygwin_init_abi): New declaration.
7846 * windows-tdep.c: Split signal enumeration in two, one for
7847 Windows and one for Cygwin.
7848 (windows_gdb_signal_to_target): Only deal with signal of the
7849 Windows OS ABI.
7850 (cygwin_gdb_signal_to_target): New function.
7851 (windows_init_abi): Rename to windows_init_abi_common, don't set
7852 gdb_signal_to_target gdbarch method. Add new new function with
7853 this name.
7854 (cygwin_init_abi): New function.
7855 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7856 comment. Don't call windows_init_abi.
7857 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7858 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7859 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7860 i386_windows_init_abi_common, don't call windows_init_abi. Add
7861 a new function of this name.
7862 (i386_cygwin_init_abi): New function.
7863 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7864 OS ABI Cygwin.
7865
7866 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7867
7868 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7869 parameter.c.
7870 (dwarf2_read_gdb_index): Update.
7871
7872 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7873
7874 * nbsd-tdep.c: Include "objfiles.h".
7875 (nbsd_skip_solib_resolver): New.
7876 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7877
7878 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7879
7880 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7881 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7882 with DW_LLE_base_addressx are being emitted in DWARFv5.
7883 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7884 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7885 unsigned integer.
7886
7887 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7888
7889 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7890 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7891 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7892 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7893 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7894 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7895 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7896
7897
7898 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7899
7900 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7901 (read_loclist_index): New function definition.
7902 (lookup_loclist_base): New function definition.
7903 (read_loclist_header): New function definition.
7904 (dwarf2_cu): Add loclist_base and loclist_header field.
7905 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7906 (read_full_die_1): Read the value of DW_AT_loclists_base.
7907 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7908 (read_attribute_value): Handle DW_FORM_loclistx.
7909 (skip_one_die): Handle DW_FORM_loclistx.
7910 (loclist_header): New structure declaration.
7911 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7912
7913 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7914
7915 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7916 constructor. Remove `addr` parameter from other constructor and
7917 add `per_cu` parameter.
7918 * dwarf2/read.c (create_partial_symtab): Update.
7919
7920 2020-04-07 Tom de Vries <tdevries@suse.de>
7921
7922 PR symtab/25796
7923 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7924 (partial_die_info::fixup): Inherit has_const_value.
7925
7926 2020-04-07 Tom de Vries <tdevries@suse.de>
7927
7928 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7929 symbols without address.
7930
7931 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7932
7933 * nbsd-nat.h (struct thread_info): Add forward declaration.
7934 (nbsd_nat_target::thread_alive): Add.
7935 (nbsd_nat_target::thread_name): Likewise.
7936 (nbsd_nat_target::update_thread_list): Likewise.
7937 (update_thread_list::post_attach): Likewise.
7938 (post_attach::pid_to_str): Likewise.
7939 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7940 (nbsd_thread_lister): Add.
7941 (nbsd_nat_target::thread_alive): Likewise.
7942 (nbsd_nat_target::thread_name): Likewise.
7943 (nbsd_add_threads): Likewise.
7944 (update_thread_list::post_attach): Likewise.
7945 (nbsd_nat_target::update_thread_list): Likewise.
7946 (post_attach::pid_to_str): Likewise.
7947
7948 2020-04-06 Tom Tromey <tromey@adacore.com>
7949
7950 * ada-valprint.c (print_variant_part): Extract the variant field.
7951 (print_field_values): Use the field as the outer value when
7952 recursing.
7953
7954 2020-04-06 Tom Tromey <tromey@adacore.com>
7955
7956 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7957 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7958 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7959 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7960 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7961
7962 2020-04-06 Tom Tromey <tromey@adacore.com>
7963
7964 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7965 TYPE_CODE_ERROR.
7966
7967 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7968
7969 * nbsd-tdep.c: Include "gdbarch.h".
7970 Define enum with NetBSD signal numbers.
7971 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7972 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7973 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7974 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7975 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7976 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7977 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7978 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7979 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7980 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7981 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7982 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7983
7984 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7985
7986 PR gdb/25325
7987 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7988
7989 2020-04-03 Tom Tromey <tromey@adacore.com>
7990
7991 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7992 Read constant block.
7993
7994 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7995
7996 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7997 (gdb_bfd_get_full_section_contents): New declaration.
7998 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7999 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8000 gdb_bfd_get_full_section_contents.
8001
8002 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8003
8004 * exec.c (build_section_table): Replace internal_error with
8005 gdb_assert.
8006 (section_table_xfer_memory_partial): Likewise.
8007 * mdebugread.c (parse_partial_symbols): Likewise.
8008 * psymtab.c (lookup_partial_symbol): Likewise.
8009 * utils.c (wrap_here): Likewise.
8010
8011 2020-04-02 Tom Tromey <tromey@adacore.com>
8012
8013 * f-lang.c (build_fortran_types): Use arch_type to initialize
8014 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8015
8016 2020-04-02 Tom Tromey <tromey@adacore.com>
8017
8018 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8019 of attributes.
8020
8021 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8022 Bernd Edlinger <bernd.edlinger@hotmail.de>
8023 Tom Tromey <tromey@adacore.com>
8024
8025 * buildsym.c (buildsym_compunit::record_line): Remove
8026 deduplication code.
8027
8028 2020-04-02 Tom de Vries <tdevries@suse.de>
8029
8030 PR ada/24671
8031 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8032
8033 2020-04-02 Tom de Vries <tdevries@suse.de>
8034
8035 * dwarf2/read.c (dwarf2_gdb_index_functions,
8036 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8037 NULL.
8038 * psymtab.c (psym_lookup_global_symbol_language): New function.
8039 (psym_functions): Init psym_lookup_global_symbol_language with
8040 psym_lookup_global_symbol_language.
8041 * symfile-debug.c (debug_sym_quick_functions): Init
8042 lookup_global_symbol_language with NULL.
8043 * symfile.c (set_initial_language): Remove fixme comment.
8044 * symfile.h (struct quick_symbol_functions): Add
8045 lookup_global_symbol_language.
8046 * symtab.c (find_quick_global_symbol_language): New function.
8047 (find_main_name): Use find_quick_global_symbol_language.
8048
8049 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8050
8051 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8052
8053 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8054
8055 * buildsym.c (record_line): Fix undefined behavior and preserve
8056 lines at eof.
8057
8058 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8059
8060 * buildsym.c (record_line): Fix the resizing condition.
8061
8062 2020-04-01 Tom Tromey <tom@tromey.com>
8063
8064 * value.h (value_literal_complex): Add comment.
8065 * valops.c (value_literal_complex): Refer to value.h.
8066
8067 2020-04-01 Tom Tromey <tom@tromey.com>
8068
8069 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8070 (scalar_type): New rule, from typebase.
8071 (typebase): Use scalar_type. Recognize complex types.
8072 (field_name): Handle FLOAT_KEYWORD.
8073 (ident_tokens): Add _Complex and __complex__.
8074
8075 2020-04-01 Tom Tromey <tom@tromey.com>
8076
8077 PR exp/25299:
8078 * valarith.c (promotion_type, complex_binop): New functions.
8079 (scalar_binop): Handle complex numbers. Use promotion_type.
8080 (value_pos, value_neg, value_complement): Handle complex numbers.
8081
8082 2020-04-01 Tom Tromey <tom@tromey.com>
8083
8084 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8085 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8086 (parse_number): Handle complex numbers.
8087
8088 2020-04-01 Tom Tromey <tom@tromey.com>
8089
8090 * c-valprint.c (c_decorations): Change complex suffix to "i".
8091
8092 2020-04-01 Tom Tromey <tom@tromey.com>
8093
8094 * valprint.c (generic_value_print_complex): Use accessors.
8095 * value.h (value_real_part, value_imaginary_part): Declare.
8096 * valops.c (value_real_part, value_imaginary_part): New
8097 functions.
8098 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8099
8100 2020-04-01 Tom Tromey <tom@tromey.com>
8101
8102 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8103 (read_range_type): Update.
8104 * mdebugread.c (basic_type): Update.
8105 * go-lang.c (build_go_types): Use init_complex_type.
8106 * gdbtypes.h (struct main_type) <complex_type>: New member.
8107 (init_complex_type): Update.
8108 (arch_complex_type): Don't declare.
8109 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8110 Make name if none given. Use alloc_type_copy. Look for cached
8111 complex type.
8112 (arch_complex_type): Remove.
8113 (gdbtypes_post_init): Use init_complex_type.
8114 * f-lang.c (build_fortran_types): Use init_complex_type.
8115 * dwarf2/read.c (read_base_type): Update.
8116 * d-lang.c (build_d_types): Use init_complex_type.
8117 * ctfread.c (read_base_type): Update.
8118
8119 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8120
8121 * infrun.c (stop_all_threads): Update assertion, plus when
8122 stopping threads, take into account that we might be trying
8123 to stop an all-stop target.
8124 (stop_waiting): Call 'stop_all_threads' if there exists a
8125 non-stop target.
8126
8127 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8128
8129 * target.h (exists_non_stop_target): New function declaration.
8130 * target.c (exists_non_stop_target): New function.
8131
8132 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8133
8134 PR gdb/24789
8135 * eval.c (is_integral_or_integral_reference): New function.
8136 (evaluate_subexp_standard): Allow integer references in
8137 pointer arithmetic.
8138
8139 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8140
8141 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8142 check for no ptid in the stop reply when the target is non-stop.
8143
8144 2020-04-01 Tom Tromey <tromey@adacore.com>
8145
8146 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8147 "name" parameter to rvalue reference. Initialize m_name_holder.
8148 <lookup_name_info>: New overloads.
8149 <name>: Return gdb::string_view.
8150 <c_str>: New method.
8151 <make_ignore_params>: Update.
8152 <search_name_hash>: Update.
8153 <language_lookup_name>: Return const char *.
8154 <m_name>: Change type.
8155 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8156 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8157 (lookup_name_info::match_any): Update.
8158 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8159 Update.
8160 * minsyms.c (linkage_name_str): Update.
8161 * language.c (default_symbol_name_matcher): Update.
8162 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8163 Update.
8164 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8165 (ada_lookup_name_info::ada_lookup_name_info): Update.
8166 (literal_symbol_name_matcher): Update.
8167
8168 2020-04-01 Tom Tromey <tromey@adacore.com>
8169
8170 * psymtab.c (psymtab_search_name): Remove function.
8171 (psym_lookup_symbol): Create search name and lookup name here.
8172 (lookup_partial_symbol): Remove "name" parameter; add
8173 lookup_name.
8174 (psym_expand_symtabs_for_function): Update.
8175
8176 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8177
8178 PR tui/25597:
8179 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8180
8181 2020-03-31 Tom Tromey <tromey@adacore.com>
8182
8183 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8184 memcpy.
8185
8186 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8187
8188 * features/riscv/32bit-csr.xml: Regenerated.
8189 * features/riscv/64bit-csr.xml: Regenerated.
8190
8191 2020-03-30 Tom Tromey <tromey@adacore.com>
8192
8193 * ada-valprint.c (print_variant_part): Update.
8194 * ada-lang.h (ada_which_variant_applies): Update.
8195 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8196 outer_valaddr parameters; replace with "outer" value parameter.
8197 (to_fixed_variant_branch_type): Update.
8198
8199 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8200
8201 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8202 <list>. Remove inclusion of observable.h.
8203 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8204 (struct arch_lwp_info): New struct.
8205 (class ppc_linux_dreg_interface): New class.
8206 (struct ppc_linux_process_info): New struct.
8207 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8208 <low_new_clone, low_forget_process, low_prepare_to_resume>
8209 <copy_thread_dreg_state, mark_thread_stale>
8210 <mark_debug_registers_changed, register_hw_breakpoint>
8211 <clear_hw_breakpoint, register_wp, clear_wp>
8212 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8213 <num_memory_accesses, get_trigger_type>
8214 <create_watchpoint_request, hwdebug_point_cmp>
8215 <init_arch_lwp_info, get_arch_lwp_info>
8216 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8217 methods.
8218 <struct ptid_hash>: New inner struct.
8219 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8220 members.
8221 (saved_dabr_value, hwdebug_info, max_slots_number)
8222 (struct hw_break_tuple, struct thread_points, ppc_threads)
8223 (have_ptrace_hwdebug_interface)
8224 (hwdebug_find_thread_points_by_tid)
8225 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8226 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8227 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8228 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8229 use m_dreg_interface.
8230 (hwdebug_point_cmp): Change to...
8231 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8232 reference arguments instead of pointers.
8233 (ppc_linux_nat_target::ranged_break_num_registers): Use
8234 m_dreg_interface.
8235 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8236 m_dreg_interface. Call register_hw_breakpoint.
8237 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8238 m_dreg_interface. Call clear_hw_breakpoint.
8239 (get_trigger_type): Change to...
8240 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8241 comment.
8242 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8243 use m_dreg_interface. Call register_hw_breakpoint.
8244 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8245 use m_dreg_interface. Call clear_hw_breakpoint.
8246 (can_use_watchpoint_cond_accel): Change to...
8247 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8248 method. Update comment, use m_dreg_interface and
8249 m_process_info.
8250 (calculate_dvc): Change to...
8251 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8252 m_dreg_interface.
8253 (num_memory_accesses): Change to...
8254 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8255 (check_condition): Change to...
8256 (ppc_linux_nat_target::check_condition): ...this method.
8257 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8258 comment, use m_dreg_interface.
8259 (create_watchpoint_request): Change to...
8260 (ppc_linux_nat_target::create_watchpoint_request): ...this
8261 method. Use m_dreg_interface.
8262 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8263 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8264 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8265 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8266 (ppc_linux_nat_target::low_forget_process)
8267 (ppc_linux_nat_target::low_new_fork)
8268 (ppc_linux_nat_target::low_new_clone)
8269 (ppc_linux_nat_target::low_delete_thread)
8270 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8271 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8272 only call mark_thread_stale.
8273 (ppc_linux_thread_exit): Remove.
8274 (ppc_linux_nat_target::stopped_data_address): Change to...
8275 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8276 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8277 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8278 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8279 comment. Call low_stopped_data_address.
8280 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8281 m_dreg_interface.
8282 (ppc_linux_nat_target::masked_watch_num_registers): Use
8283 m_dreg_interface.
8284 (ppc_linux_nat_target::copy_thread_dreg_state)
8285 (ppc_linux_nat_target::mark_thread_stale)
8286 (ppc_linux_nat_target::mark_debug_registers_changed)
8287 (ppc_linux_nat_target::register_hw_breakpoint)
8288 (ppc_linux_nat_target::clear_hw_breakpoint)
8289 (ppc_linux_nat_target::register_wp)
8290 (ppc_linux_nat_target::clear_wp)
8291 (ppc_linux_nat_target::init_arch_lwp_info)
8292 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8293 (_initialize_ppc_linux_nat): Remove observer callback.
8294
8295 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8296
8297 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8298 (ppc_linux_nat_target::auxv_parse)
8299 (ppc_linux_nat_target::read_description)
8300 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8301 Move up.
8302
8303 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8304
8305 * linux-nat.h (low_new_clone): New method.
8306 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8307
8308 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8309
8310 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8311 (dbx_expand_psymtab): ... this.
8312 (start_psymtab): Update.
8313 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8314 (mdebug_expand_psymtab): ... this.
8315 (parse_partial_symbols): Update.
8316 (new_psymtab): Update.
8317 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8318 (xcoff_expand_psymtab): ... this.
8319 (xcoff_start_psymtab): Update.
8320
8321 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8322
8323 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8324 <expand_dependencies>: ... this.
8325 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8326 (partial_symtab::expand_dependencies): ... this.
8327 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8328 Update.
8329 (dwarf2_psymtab::expand_psymtab): Update.
8330 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8331 * mdebugread.c (psymtab_to_symtab_1): Update.
8332 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8333
8334 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8335
8336 * psympriv.h (discard_psymtab): Remove.
8337 * dbxread.c (dbx_end_psymtab): Update.
8338 * xcoffread.c (xcoff_end_psymtab): Update.
8339
8340 2020-03-28 Tom Tromey <tom@tromey.com>
8341
8342 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8343 comment.
8344
8345 2020-03-28 Tom Tromey <tom@tromey.com>
8346
8347 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8348
8349 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8350
8351 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8352
8353 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8354
8355 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8356
8357 2020-03-26 Tom Tromey <tom@tromey.com>
8358
8359 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8360 (mark_common_block_symbol_computed, read_tag_string_type)
8361 (attr_to_dynamic_prop, read_subrange_type): Update.
8362 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8363 to be methods on struct attribute.
8364 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8365 (read_call_site_scope, partial_die_info::read)
8366 (partial_die_info::read, lookup_die_type, follow_die_ref):
8367 Update.
8368 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8369 from dwarf2_get_ref_die_offset.
8370 (attribute::constant_value): New method, from
8371 dwarf2_get_attr_constant_value.
8372 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8373 Declare method.
8374 <constant_value>: New method.
8375
8376 2020-03-26 Tom Tromey <tom@tromey.com>
8377
8378 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8379 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8380 (dwarf_type_encoding_name): Move to stringify.c.
8381 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8382 * dwarf2/stringify.c: New file.
8383 * dwarf2/stringify.h: New file.
8384
8385 2020-03-26 Tom Tromey <tom@tromey.com>
8386
8387 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8388 Rewrite.
8389
8390 2020-03-26 Tom Tromey <tom@tromey.com>
8391
8392 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8393 methods.
8394 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8395 (lookup_ranges_base): Likewise.
8396 (read_cutu_die_from_dwo, read_full_die_1): Update.
8397
8398 2020-03-26 Tom Tromey <tom@tromey.com>
8399
8400 * dwarf2/read.c (read_import_statement, read_file_scope)
8401 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8402 (read_lexical_block_scope, read_call_site_scope)
8403 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8404 (handle_struct_member_die, process_structure_scope)
8405 (update_enumeration_type_from_children)
8406 (process_enumeration_scope, read_array_type, read_common_block)
8407 (read_namespace, read_module, read_subroutine_type): Update.
8408 (sibling_die): Remove.
8409
8410 2020-03-26 Tom Tromey <tom@tromey.com>
8411
8412 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8413 (build_type_psymtabs_reader, read_structure_type)
8414 (read_enumeration_type, read_full_die_1): Update.
8415 (dwarf2_attr_no_follow): Move to die.h.
8416 * dwarf2/die.h (struct die_info) <attr>: New method.
8417
8418 2020-03-26 Tom Tromey <tom@tromey.com>
8419
8420 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8421 <base_address>: Now an optional.
8422 (dwarf2_find_base_address, dwarf2_rnglists_process)
8423 (dwarf2_ranges_process, fill_in_loclist_baton)
8424 (dwarf2_symbol_mark_computed): Update.
8425
8426 2020-03-26 Tom Tromey <tom@tromey.com>
8427
8428 * dwarf2/read.c (struct die_info): Move to die.h.
8429 * dwarf2/die.h: New file.
8430
8431 2020-03-26 Tom Tromey <tom@tromey.com>
8432
8433 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8434 * dwarf2/read.c
8435 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8436 Move to line-header.c.
8437 (read_checked_initial_length_and_offset, read_formatted_entries):
8438 Likewise.
8439 (dwarf_decode_line_header): Split into two.
8440 * dwarf2/line-header.c
8441 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8442 Move from read.c.
8443 (read_checked_initial_length_and_offset, read_formatted_entries):
8444 Likewise.
8445 (dwarf_decode_line_header): New function, split from read.c.
8446
8447 2020-03-26 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8450 Declare method.
8451 * dwarf2/read.c (read_attribute_value): Update.
8452 (dwarf2_per_objfile::read_line_string): Rename from
8453 read_indirect_line_string.
8454 (read_formatted_entries): Update.
8455
8456 2020-03-26 Tom Tromey <tom@tromey.com>
8457
8458 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8459 variable.
8460
8461 2020-03-26 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8464 const.
8465 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8466 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8467 parameter const.
8468
8469 2020-03-26 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8472 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8473 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8474 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8475
8476 2020-03-26 Tom Tromey <tom@tromey.com>
8477
8478 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8479 file_names_size, file_full_name, file_file_name>: Use const.
8480 <file_name_at, file_names>: Add const overload.
8481 * dwarf2/line-header.c (line_header::file_file_name)
8482 (line_header::file_full_name): Update.
8483
8484 2020-03-26 Tom Tromey <tom@tromey.com>
8485
8486 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8487 (macro_start_file, consume_improper_spaces)
8488 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8489 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8490 (dwarf_decode_macros): Move to macro.c.
8491 * dwarf2/macro.c: New file.
8492 * dwarf2/macro.h: New file.
8493 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8494
8495 2020-03-26 Tom Tromey <tom@tromey.com>
8496
8497 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8498 method.
8499 * dwarf2/section.c: New method. From
8500 read_indirect_string_at_offset_from.
8501 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8502 (read_indirect_string_at_offset_from): Move to section.c.
8503 (read_indirect_string_at_offset): Rewrite.
8504 (read_indirect_line_string_at_offset): Remove.
8505 (read_indirect_string, read_indirect_line_string)
8506 (dwarf_decode_macro_bytes): Update.
8507
8508 2020-03-26 Tom Tromey <tom@tromey.com>
8509
8510 * dwarf2/section.h (struct dwarf2_section_info)
8511 <overload_complaint>: Declare.
8512 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8513 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8514 Rename from dwarf2_section_buffer_overflow_complaint.
8515 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8516 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8517
8518 2020-03-26 Tom Tromey <tom@tromey.com>
8519
8520 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8521 Declare.
8522 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8523 Move from read.c.
8524 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8525 to section.c.
8526
8527 2020-03-26 Tom Tromey <tom@tromey.com>
8528
8529 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8530
8531 2020-03-26 Tom Tromey <tom@tromey.com>
8532
8533 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8534 "builder".
8535 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8536 parameter.
8537 (dwarf_decode_macros): Update.
8538
8539 2020-03-26 Tom Tromey <tom@tromey.com>
8540
8541 * dwarf2/read.c (read_attribute_value): Update.
8542 (read_indirect_string_from_dwz): Move to dwz.c; change into
8543 method.
8544 (dwarf_decode_macro_bytes): Update.
8545 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8546 * dwarf2/dwz.c: New file.
8547 * Makefile.in (COMMON_SFILES): Add dwz.c.
8548
8549 2020-03-26 Tom Tromey <tom@tromey.com>
8550
8551 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8552 * dwarf2/read.c: Add include.
8553 * dwarf2/index-write.c: Add include.
8554 * dwarf2/index-cache.c: Add include.
8555 * dwarf2/dwz.h: New file.
8556
8557 2020-03-25 Tom Tromey <tom@tromey.com>
8558
8559 * compile/compile-object-load.c (get_out_value_type): Mention
8560 correct symbol name in error message.
8561
8562 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8563
8564 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8565
8566 2020-03-25 Tom de Vries <tdevries@suse.de>
8567
8568 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8569 * symmisc.c (dump_symtab_1): Print user and includes fields.
8570 (maintenance_info_symtabs): Same.
8571
8572 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8573
8574 PR gdb/25534
8575 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8576 (riscv_regcache_cooked_write): New function.
8577 (riscv_push_dummy_call): Use new function.
8578 (riscv_return_value): Likewise.
8579
8580 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8581
8582 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8583 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8584 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8585 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8586 * infrun.c (follow_fork): Likewise.
8587 (follow_fork_inferior): Likewise.
8588 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8589 * linux-nat.h (class linux_nat_target): Likewise.
8590 * remote.c (class remote_target) <follow_fork>: Likewise.
8591 (remote_target::follow_fork): Likewise.
8592 * target-delegates.c: Re-generate.
8593 * target.c (default_follow_fork): Likewise.
8594 (target_follow_fork): Likewise.
8595 * target.h (struct target_ops) <follow_fork>: Likewise.
8596 (target_follow_fork): Likewise.
8597
8598 2020-03-24 Tom de Vries <tdevries@suse.de>
8599
8600 * psymtab.c (maintenance_info_psymtabs): Print user field.
8601
8602 2020-03-20 Tom Tromey <tromey@adacore.com>
8603
8604 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8605 const.
8606 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8607 const.
8608
8609 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8610
8611 * ptrace.m4: Don't check for ptrace declaration.
8612 * config.in: Re-generate.
8613 * configure: Re-generate.
8614 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8615 not defined.
8616
8617 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8618
8619 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8620 `PTRACE_TYPE_RET'.
8621 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8622 * sparc-nat.c (gdb_ptrace): Likewise.
8623 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8624
8625 2020-03-20 Tom Tromey <tromey@adacore.com>
8626
8627 * c-exp.y (lex_one_token): Fix assert.
8628
8629 2020-03-20 Tom Tromey <tromey@adacore.com>
8630
8631 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8632 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8633 strncpy call.
8634
8635 2020-03-20 Tom Tromey <tromey@adacore.com>
8636
8637 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8638
8639 2020-03-20 Tom Tromey <tromey@adacore.com>
8640
8641 * ada-valprint.c (print_variant_part): Remove parameters; switch
8642 to value-based API.
8643 (print_field_values): Likewise.
8644 (ada_val_print_struct_union): Likewise.
8645 (ada_value_print_1): Update.
8646
8647 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8648
8649 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8650 nbsd_nat_target instead of inf_ptrace_target.
8651 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8652 nbsd_nat_target.
8653
8654 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8655
8656 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8657 it to the ptrace call.
8658 * (store_registers): Likewise.
8659
8660 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8661
8662 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8663 it to the ptrace call.
8664 * (store_registers): Likewise.
8665
8666 2020-03-19 Luis Machado <luis.machado@linaro.org>
8667
8668 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8669 valid, fetch vg value from ptrace.
8670
8671 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8672 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8673 * inf-ptrace.c: Likewise.
8674 * (gdb_ptrace): Add.
8675 * (inf_ptrace_target::resume): Update.
8676 * (inf_ptrace_target::xfer_partial): Likewise.
8677 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8678 * (inf_ptrace_peek_poke): Update.
8679
8680 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8681
8682 * x86-bsd-nat.c (gdb_ptrace): New.
8683 * (x86bsd_dr_set): Add new argument `ptid'.
8684 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8685 x86bsd_dr_set_addr): Update.
8686
8687 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8688
8689 * remote.c (remote_target::process_stop_reply): Handle events for
8690 all threads differently.
8691
8692 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * completer.c (completion_tracker::remove_completion): Define new
8695 function.
8696 * completer.h (completion_tracker::remove_completion): Declare new
8697 function.
8698 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8699 when adding a C++ function symbol.
8700
8701 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8702
8703 * completer.c (completion_tracker::completion_hash_entry): Define
8704 new class.
8705 (advance_to_filename_complete_word_point): Call
8706 recompute_lowest_common_denominator.
8707 (completion_tracker::completion_tracker): Call discard_completions
8708 to setup the hash table.
8709 (completion_tracker::discard_completions): Allow for being called
8710 from the constructor, pass new equal function, and element deleter
8711 when constructing the hash table. Initialise new class member
8712 variables.
8713 (completion_tracker::maybe_add_completion): Remove use of
8714 m_entries_vec, and store more information into m_entries_hash.
8715 (completion_tracker::recompute_lcd_visitor): New function, most
8716 content taken from...
8717 (completion_tracker::recompute_lowest_common_denominator):
8718 ...here, this now just visits each item in the hash calling the
8719 above visitor.
8720 (completion_tracker::build_completion_result): Remove use of
8721 m_entries_vec, call recompute_lowest_common_denominator.
8722 * completer.h (completion_tracker::have_completions): Remove use
8723 of m_entries_vec.
8724 (completion_tracker::completion_hash_entry): Declare new class.
8725 (completion_tracker::recompute_lowest_common_denominator): Change
8726 function signature.
8727 (completion_tracker::recompute_lcd_visitor): Declare new function.
8728 (completion_tracker::m_entries_vec): Delete.
8729 (completion_tracker::m_entries_hash): Initialize to NULL.
8730 (completion_tracker::m_lowest_common_denominator_valid): New
8731 member variable.
8732 (completion_tracker::m_lowest_common_denominator_max_length): New
8733 member variable.
8734
8735 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8736
8737 * regformats/regdef.h: Put reg in gdb namespace.
8738
8739 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8740
8741 * i386-bsd-nat.c (gdb_ptrace): New.
8742 * (i386bsd_fetch_inferior_registers,
8743 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8744 * (i386bsd_fetch_inferior_registers,
8745 i386bsd_store_inferior_registers) Use gdb_ptrace.
8746
8747 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8748
8749 * amd64-bsd-nat.c (gdb_ptrace): New.
8750 * (amd64bsd_fetch_inferior_registers,
8751 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8752 * (amd64bsd_fetch_inferior_registers,
8753 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8754
8755 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8756
8757 * user-regs.c (user_reg::read): Rename to...
8758 (user_reg::xread): ...this.
8759 * (append_user_reg): Rename argument `read' to `xread'.
8760 * (user_reg_add_builtin): Likewise.
8761 * (user_reg_add): Likewise.
8762 * (value_of_user_reg): Likewise.
8763
8764 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8765
8766 * sparc-nat.c (gdb_ptrace): New.
8767 * sparc-nat.c (sparc_fetch_inferior_registers)
8768 (sparc_store_inferior_registers) Remove obsolete comment.
8769 * sparc-nat.c (sparc_fetch_inferior_registers)
8770 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8771 * sparc-nat.c (sparc_fetch_inferior_registers)
8772 (sparc_store_inferior_registers) Use gdb_ptrace.
8773
8774 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8775
8776 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8777 it to the ptrace call.
8778 * sh-nbsd-nat.c (store_registers): Likewise.
8779
8780 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8781
8782 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8783 nbsd_nat_target instead of inf_ptrace_target.
8784 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8785 nbsd_nat_target.
8786
8787 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8788
8789 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8790
8791 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8792
8793 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8794 <sys/sysctl.h>.
8795 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8796
8797 2020-03-17 Tom de Vries <tdevries@suse.de>
8798
8799 PR gdb/23710
8800 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8801 fields.
8802 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8803 fields.
8804 (process_imported_unit_die): Skip import of c++ CUs.
8805
8806 2020-03-16 Tom Tromey <tom@tromey.com>
8807
8808 * p-valprint.c (pascal_object_print_value): Initialize
8809 base_value.
8810
8811 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8812 Shahab Vahedi <shahab@synopsys.com>
8813
8814 * Makefile.in: Add arch/arc.o
8815 * configure.tgt: Likewise.
8816 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8817 (_initialize_arc_tdep): Don't initialize old target descriptions.
8818 (arc_read_description): New function to cache target descriptions.
8819 * arc-tdep.h (arc_read_description): Add proto type.
8820 * arch/arc.c: New file.
8821 * arch/arc.h: Likewise.
8822 * features/Makefile: Replace old target descriptions with new.
8823 * features/arc-arcompact.c: Remove.
8824 * features/arc-arcompact.xml: Likewise.
8825 * features/arc-v2.c: Likewise
8826 * features/arc-v2.xml: Likewise
8827 * features/arc/aux-arcompact.xml: New file.
8828 * features/arc/aux-v2.xml: Likewise.
8829 * features/arc/core-arcompact.xml: Likewise.
8830 * features/arc/core-v2.xml: Likewise.
8831 * features/arc/aux-arcompact.c: Generate.
8832 * features/arc/aux-v2.c: Likewise.
8833 * features/arc/core-arcompact.c: Likewise.
8834 * features/arc/core-v2.c: Likewise.
8835 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8836
8837 2020-03-16 Tom Tromey <tromey@adacore.com>
8838
8839 PR gdb/25663:
8840 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8841 putting value into bcache.
8842
8843 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8844
8845 PR gdb/21500
8846 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8847 to...
8848 (amd64_windows_init_abi_common): ... this. Don't set size of
8849 long type.
8850 (amd64_windows_init_abi): New function.
8851 (amd64_cygwin_init_abi): New function.
8852 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8853 the Cygwin OS ABI.
8854 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8855 comment.
8856
8857 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8860 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8861 (pe_import_directory_entry): New struct type.
8862 (is_linked_with_cygwin_dll): New function.
8863 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8864 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8865 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8866
8867 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8870 i386_cygwin_core_osabi_sniffer.
8871
8872 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8873
8874 * i386-cygwin-tdep.c: Rename to...
8875 * i386-windows-tdep.c: ... this.
8876 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8877 i386-windows-tdep.c.
8878 * configure.tgt: Likewise.
8879
8880 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8881
8882 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8883 * osabi.c (gdb_osabi_names): Add "Windows".
8884 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8885 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8886 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8887 i386_cygwin_osabi_sniffer.
8888 (_initialize_i386_cygwin_tdep): Register OS ABI
8889 GDB_OSABI_WINDOWS for i386.
8890 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8891 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8892 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8893 for x86-64.
8894 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8895 when the target matches '*-*-mingw*'.
8896
8897 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * defs.h (enum gdb_osabi): Move to...
8900 * osabi.h (enum gdb_osabi): ... here.
8901 * gdbarch.sh: Include osabi.h in gdbarch.h.
8902 * gdbarch.h: Re-generate.
8903
8904 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8907 function.
8908 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8909
8910 2020-03-14 Tom Tromey <tom@tromey.com>
8911
8912 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8913 for C++.
8914 (c_type_print_modifier): Likewise. Add "language" parameter.
8915 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8916 (c_type_print_base_1): Update.
8917 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8918 constants.
8919 * type-stack.c (type_stack::insert): Handle tp_atomic and
8920 tp_restrict.
8921 (type_stack::follow_type_instance_flags): Likewise.
8922 (type_stack::follow_types): Likewise. Merge type-following code.
8923 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8924 (space_identifier, cv_with_space_id)
8925 (const_or_volatile_or_space_identifier_noopt)
8926 (const_or_volatile_or_space_identifier): Remove.
8927 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8928 rules.
8929 (ptr_operator, typebase): Update.
8930 (enum token_flag) <FLAG_C>: New constant.
8931 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8932 "_Atomic".
8933 (lex_one_token): Handle FLAG_C.
8934
8935 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8936
8937 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8938 it to the ptrace call.
8939 * m68k-bsd-nat.c (store_registers): Likewise.
8940
8941 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8942
8943 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8944 gdb_byte *.
8945 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8946 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8947 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8948
8949 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8950
8951 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8952 nbsd_nat_target instead of inf_ptrace_target.
8953 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8954 nbsd_nat_target.
8955
8956 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8957
8958 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8959 register_t.
8960
8961 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8962
8963 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8964 it to the ptrace call.
8965 * alpha-bsd-nat.c (store_registers): Likewise.
8966
8967 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8968
8969 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8970 includes.
8971 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8972 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8973 fill_fpregset): Likewise.
8974
8975 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8976
8977 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8978 nbsd_nat_target instead of inf_ptrace_target.
8979 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8980 nbsd_nat_target.
8981
8982 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8983
8984 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8985 register_t.
8986
8987 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8988
8989 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8990 it to the ptrace call.
8991 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8992 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8993 * arm-nbsd-nat.c (store_register): Likewise.
8994 * arm-nbsd-nat.c (store_regs): Likewise.
8995 * arm-nbsd-nat.c (store_fp_register): Likewise.
8996 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8997
8998 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8999
9000 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9001 nbsd_nat_target instead of inf_ptrace_target.
9002 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9003 nbsd_nat_target.
9004
9005 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9006
9007 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9008 it to the ptrace call.
9009 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9010
9011 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9012
9013 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9014 it to the ptrace call.
9015 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9016
9017 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9018
9019 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9020 gdb_byte *.
9021 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9022
9023 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9024
9025 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9026 instead of inf_ptrace_target.
9027 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9028 nbsd_nat_target.
9029
9030 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9031
9032 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9033 register_t.
9034
9035 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9036
9037 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9038 register_t.
9039
9040 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9041
9042 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9043 register_t.
9044
9045 2020-03-13 Tom Tromey <tom@tromey.com>
9046
9047 * value.h (val_print): Don't declare.
9048 * valprint.h (val_print_array_elements)
9049 (val_print_scalar_formatted, generic_val_print): Don't declare.
9050 * valprint.c (generic_val_print_array): Take a struct value.
9051 (generic_val_print_ptr, generic_val_print_memberptr)
9052 (generic_val_print_bool, generic_val_print_int)
9053 (generic_val_print_char, generic_val_print_complex)
9054 (generic_val_print): Remove.
9055 (generic_value_print): Update.
9056 (do_val_print): Remove unused parameters. Don't call
9057 la_val_print.
9058 (val_print): Remove.
9059 (common_val_print): Update. Don't call value_check_printable.
9060 (val_print_scalar_formatted, val_print_array_elements): Remove.
9061 * rust-lang.c (rust_val_print): Remove.
9062 (rust_language_defn): Update.
9063 * p-valprint.c (pascal_val_print): Remove.
9064 (pascal_value_print_inner): Update.
9065 (pascal_object_print_val_fields, pascal_object_print_val):
9066 Remove.
9067 (pascal_object_print_static_field): Update.
9068 * p-lang.h (pascal_val_print): Don't declare.
9069 * p-lang.c (pascal_language_defn): Update.
9070 * opencl-lang.c (opencl_language_defn): Update.
9071 * objc-lang.c (objc_language_defn): Update.
9072 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9073 * m2-lang.h (m2_val_print): Don't declare.
9074 * m2-lang.c (m2_language_defn): Update.
9075 * language.h (struct language_defn) <la_val_print>: Remove.
9076 * language.c (unk_lang_value_print_inner): Rename. Change
9077 argument types.
9078 (unknown_language_defn, auto_language_defn): Update.
9079 * go-valprint.c (go_val_print): Remove.
9080 * go-lang.h (go_val_print): Don't declare.
9081 * go-lang.c (go_language_defn): Update.
9082 * f-valprint.c (f_val_print): Remove.
9083 * f-lang.h (f_value_print): Don't declare.
9084 * f-lang.c (f_language_defn): Update.
9085 * d-valprint.c (d_val_print): Remove.
9086 * d-lang.h (d_value_print): Don't declare.
9087 * d-lang.c (d_language_defn): Update.
9088 * cp-valprint.c (cp_print_value_fields)
9089 (cp_print_value_fields_rtti, cp_print_value): Remove.
9090 (cp_print_static_field): Update.
9091 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9092 (c_val_print_struct, c_val_print_union, c_val_print_int)
9093 (c_val_print_memberptr, c_val_print): Remove.
9094 * c-lang.h (c_val_print_array, cp_print_value_fields)
9095 (cp_print_value_fields_rtti): Don't declare.
9096 * c-lang.c (c_language_defn, cplus_language_defn)
9097 (asm_language_defn, minimal_language_defn): Update.
9098 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9099 (ada_val_print_enum): Take a struct value.
9100 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9101 (ada_val_print): Remove.
9102 (ada_value_print_1): Update.
9103 (printable_val_type): Remove.
9104 * ada-lang.h (ada_val_print): Don't declare.
9105 * ada-lang.c (ada_language_defn): Update.
9106
9107 2020-03-13 Tom Tromey <tom@tromey.com>
9108
9109 * valprint.c (do_val_print): Update.
9110 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9111 a struct value.
9112 (value_to_value_object_no_release): Declare.
9113 * python/py-value.c (value_to_value_object_no_release): New
9114 function.
9115 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9116 struct value.
9117 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9118 function.
9119 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9120 a struct value.
9121 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9122 Declare.
9123 (gdbscm_apply_val_pretty_printer): Take a struct value.
9124 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9125 value.
9126 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9127 value.
9128 * extension-priv.h (struct extension_language_ops)
9129 <apply_val_pretty_printer>: Take a struct value.
9130 * cp-valprint.c (cp_print_value): Create a struct value.
9131 (cp_print_value): Update.
9132
9133 2020-03-13 Tom Tromey <tom@tromey.com>
9134
9135 * ada-valprint.c (print_field_values): Call common_val_print.
9136
9137 2020-03-13 Tom Tromey <tom@tromey.com>
9138
9139 * ada-valprint.c (val_print_packed_array_elements): Remove
9140 bitoffset and val parameters. Call common_val_print.
9141 (ada_val_print_string): Remove offset, address, and original_value
9142 parameters.
9143 (ada_val_print_array): Update.
9144 (ada_value_print_array): New function.
9145 (ada_value_print_1): Call it.
9146
9147 2020-03-13 Tom Tromey <tom@tromey.com>
9148
9149 * ada-valprint.c (ada_value_print): Use common_val_print.
9150
9151 2020-03-13 Tom Tromey <tom@tromey.com>
9152
9153 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9154
9155 2020-03-13 Tom Tromey <tom@tromey.com>
9156
9157 * ada-valprint.c (ada_value_print_num): New function.
9158 (ada_value_print_1): Use it.
9159
9160 2020-03-13 Tom Tromey <tom@tromey.com>
9161
9162 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9163
9164 2020-03-13 Tom Tromey <tom@tromey.com>
9165
9166 * ada-valprint.c (ada_value_print_ptr): New function.
9167 (ada_value_print_1): Use it.
9168
9169 2020-03-13 Tom Tromey <tom@tromey.com>
9170
9171 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9172 call common_val_print.
9173 (ada_val_print_1): Update.
9174 (ada_value_print_1): New function.
9175 (ada_value_print_inner): Rewrite.
9176
9177 2020-03-13 Tom Tromey <tom@tromey.com>
9178
9179 * cp-valprint.c (cp_print_value_fields): Update.
9180 (cp_print_value): New function.
9181
9182 2020-03-13 Tom Tromey <tom@tromey.com>
9183
9184 * m2-valprint.c (m2_value_print_inner): Use
9185 cp_print_value_fields.
9186 * cp-valprint.c (cp_print_value_fields): New function.
9187 * c-valprint.c (c_value_print_struct): New function.
9188 (c_value_print_inner): Use c_value_print_struct.
9189 * c-lang.h (cp_print_value_fields): Declare.
9190
9191 2020-03-13 Tom Tromey <tom@tromey.com>
9192
9193 * c-valprint.c (c_value_print_array): New function.
9194 (c_value_print_inner): Use it.
9195
9196 2020-03-13 Tom Tromey <tom@tromey.com>
9197
9198 * c-valprint.c (c_value_print_memberptr): New function.
9199 (c_value_print_inner): Use it.
9200
9201 2020-03-13 Tom Tromey <tom@tromey.com>
9202
9203 * c-valprint.c (c_value_print_int): New function.
9204 (c_value_print_inner): Use it.
9205
9206 2020-03-13 Tom Tromey <tom@tromey.com>
9207
9208 * c-valprint.c (c_value_print_ptr): New function.
9209 (c_value_print_inner): Use it.
9210
9211 2020-03-13 Tom Tromey <tom@tromey.com>
9212
9213 * c-valprint.c (c_value_print_inner): Rewrite.
9214
9215 2020-03-13 Tom Tromey <tom@tromey.com>
9216
9217 * valprint.c (generic_value_print_complex): New function.
9218 (generic_value_print): Use it.
9219
9220 2020-03-13 Tom Tromey <tom@tromey.com>
9221
9222 * valprint.c (generic_val_print_float): Don't call
9223 val_print_scalar_formatted.
9224 (generic_val_print, generic_value_print): Update.
9225
9226 2020-03-13 Tom Tromey <tom@tromey.com>
9227
9228 * valprint.c (generic_value_print_char): New function
9229 (generic_value_print): Use it.
9230
9231 2020-03-13 Tom Tromey <tom@tromey.com>
9232
9233 * valprint.c (generic_value_print_int): New function.
9234 (generic_value_print): Use it.
9235
9236 2020-03-13 Tom Tromey <tom@tromey.com>
9237
9238 * valprint.c (generic_value_print_bool): New function.
9239 (generic_value_print): Use it.
9240
9241 2020-03-13 Tom Tromey <tom@tromey.com>
9242
9243 * valprint.c (generic_val_print_func): Simplify.
9244 (generic_val_print, generic_value_print): Update.
9245
9246 2020-03-13 Tom Tromey <tom@tromey.com>
9247
9248 * valprint.c (generic_val_print_flags): Remove.
9249 (generic_val_print, generic_value_print): Update.
9250 (val_print_type_code_flags): Add original_value parameter.
9251
9252 2020-03-13 Tom Tromey <tom@tromey.com>
9253
9254 * valprint.c (generic_val_print): Update.
9255 (generic_value_print): Update.
9256 * valprint.c (generic_val_print_enum): Don't call
9257 val_print_scalar_formatted.
9258
9259 2020-03-13 Tom Tromey <tom@tromey.com>
9260
9261 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9262 * valprint.c (generic_value_print_ptr): New function.
9263
9264 2020-03-13 Tom Tromey <tom@tromey.com>
9265
9266 * valprint.c (generic_value_print): Rewrite.
9267
9268 2020-03-13 Tom Tromey <tom@tromey.com>
9269
9270 * p-valprint.c (pascal_object_print_value_fields)
9271 (pascal_object_print_value): New functions.
9272
9273 2020-03-13 Tom Tromey <tom@tromey.com>
9274
9275 * p-valprint.c (pascal_value_print_inner): Rewrite.
9276
9277 2020-03-13 Tom Tromey <tom@tromey.com>
9278
9279 * f-valprint.c (f_value_print_innner): Rewrite.
9280
9281 2020-03-13 Tom Tromey <tom@tromey.com>
9282
9283 * m2-valprint.c (m2_print_unbounded_array): New overload.
9284 (m2_print_unbounded_array): Update.
9285 (m2_print_array_contents): Take a struct value.
9286 (m2_value_print_inner): Rewrite.
9287
9288 2020-03-13 Tom Tromey <tom@tromey.com>
9289
9290 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9291 (d_value_print_inner): New function.
9292 * d-lang.h (d_value_print_inner): Declare.
9293 * d-lang.c (d_language_defn): Use d_value_print_inner.
9294
9295 2020-03-13 Tom Tromey <tom@tromey.com>
9296
9297 * go-valprint.c (go_value_print_inner): New function.
9298 * go-lang.h (go_value_print_inner): Declare.
9299 * go-lang.c (go_language_defn): Use go_value_print_inner.
9300
9301 2020-03-13 Tom Tromey <tom@tromey.com>
9302
9303 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9304 API.
9305 (rust_val_print): Rewrite.
9306 (rust_value_print_inner): New function, from rust_val_print.
9307 (rust_language_defn): Use rust_value_print_inner.
9308
9309 2020-03-13 Tom Tromey <tom@tromey.com>
9310
9311 * ada-valprint.c (ada_value_print_inner): New function.
9312 * ada-lang.h (ada_value_print_inner): Declare.
9313 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9314
9315 2020-03-13 Tom Tromey <tom@tromey.com>
9316
9317 * f-valprint.c (f_value_print_innner): New function.
9318 * f-lang.h (f_value_print_innner): Declare.
9319 * f-lang.c (f_language_defn): Use f_value_print_innner.
9320
9321 2020-03-13 Tom Tromey <tom@tromey.com>
9322
9323 * p-valprint.c (pascal_value_print_inner): New function.
9324 * p-lang.h (pascal_value_print_inner): Declare.
9325 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9326
9327 2020-03-13 Tom Tromey <tom@tromey.com>
9328
9329 * m2-valprint.c (m2_value_print_inner): New function.
9330 * m2-lang.h (m2_value_print_inner): Declare.
9331 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9332
9333 2020-03-13 Tom Tromey <tom@tromey.com>
9334
9335 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9336 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9337 * c-valprint.c (c_value_print_inner): New function.
9338 * c-lang.h (c_value_print_inner): Declare.
9339 * c-lang.c (c_language_defn, cplus_language_defn)
9340 (asm_language_defn, minimal_language_defn): Use
9341 c_value_print_inner.
9342
9343 2020-03-13 Tom Tromey <tom@tromey.com>
9344
9345 * p-valprint.c (pascal_object_print_value_fields): Now static.
9346 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9347
9348 2020-03-13 Tom Tromey <tom@tromey.com>
9349
9350 * c-valprint.c (c_val_print_array): Simplify.
9351
9352 2020-03-13 Tom Tromey <tom@tromey.com>
9353
9354 * valprint.c (value_print_array_elements): New function.
9355 * valprint.h (value_print_array_elements): Declare.
9356
9357 2020-03-13 Tom Tromey <tom@tromey.com>
9358
9359 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9360 * mips-tdep.c (mips_print_register): Use
9361 value_print_scalar_formatted.
9362
9363 2020-03-13 Tom Tromey <tom@tromey.com>
9364
9365 * valprint.h (value_print_scalar_formatted): Declare.
9366 * valprint.c (value_print_scalar_formatted): New function.
9367
9368 2020-03-13 Tom Tromey <tom@tromey.com>
9369
9370 * valprint.h (generic_value_print): Declare.
9371 * valprint.c (generic_value_print): New function.
9372
9373 2020-03-13 Tom Tromey <tom@tromey.com>
9374
9375 * valprint.c (do_val_print): Call la_value_print_inner, if
9376 available.
9377 * rust-lang.c (rust_language_defn): Update.
9378 * p-lang.c (pascal_language_defn): Update.
9379 * opencl-lang.c (opencl_language_defn): Update.
9380 * objc-lang.c (objc_language_defn): Update.
9381 * m2-lang.c (m2_language_defn): Update.
9382 * language.h (struct language_defn) <la_value_print_inner>: New
9383 member.
9384 * language.c (unknown_language_defn, auto_language_defn): Update.
9385 * go-lang.c (go_language_defn): Update.
9386 * f-lang.c (f_language_defn): Update.
9387 * d-lang.c (d_language_defn): Update.
9388 * c-lang.c (c_language_defn, cplus_language_defn)
9389 (asm_language_defn, minimal_language_defn): Update.
9390 * ada-lang.c (ada_language_defn): Update.
9391
9392 2020-03-13 Tom Tromey <tom@tromey.com>
9393
9394 * c-valprint.c (c_value_print): Use common_val_print.
9395
9396 2020-03-13 Tom Tromey <tom@tromey.com>
9397
9398 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9399
9400 2020-03-13 Tom Tromey <tom@tromey.com>
9401
9402 * f-valprint.c (f77_print_array_1, f_val_print): Use
9403 common_val_print.
9404
9405 2020-03-13 Tom Tromey <tom@tromey.com>
9406
9407 * riscv-tdep.c (riscv_print_one_register_info): Use
9408 common_val_print.
9409
9410 2020-03-13 Tom Tromey <tom@tromey.com>
9411
9412 * mi/mi-main.c (output_register): Use common_val_print.
9413
9414 2020-03-13 Tom Tromey <tom@tromey.com>
9415
9416 * infcmd.c (default_print_one_register_info): Use
9417 common_val_print.
9418
9419 2020-03-13 Tom Tromey <tom@tromey.com>
9420
9421 * valprint.h (common_val_print_checked): Declare.
9422 * valprint.c (common_val_print_checked): New function.
9423 * stack.c (print_frame_arg): Use common_val_print_checked.
9424
9425 2020-03-13 Tom Tromey <tom@tromey.com>
9426
9427 * valprint.c (do_val_print): New function, from val_print.
9428 (val_print): Use do_val_print.
9429 (common_val_print): Use do_val_print.
9430
9431 2020-03-13 Tom Tromey <tom@tromey.com>
9432
9433 * valprint.c (value_print): Use scoped_value_mark.
9434
9435 2020-03-13 Tom de Vries <tdevries@suse.de>
9436
9437 PR symtab/25646
9438 * psymtab.c (partial_symtab::partial_symtab): Don't set
9439 globals_offset and statics_offset. Push element onto
9440 current_global_psymbols and current_static_psymbols stacks.
9441 (concat): New function.
9442 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9443 element from current_global_psymbols and current_static_psymbols
9444 stacks. Concat popped elements to global_psymbols and
9445 static_symbols.
9446 (add_psymbol_to_list): Use current_global_psymbols and
9447 current_static_psymbols stacks.
9448 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9449 current_static_psymbols fields.
9450
9451 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9452
9453 * corelow.c (sniff_core_bfd): Remove.
9454 (class core_target) <m_core_vec>: Remove.
9455 (core_target::core_target): Update.
9456 (core_file_fns): Remove.
9457 (deprecated_add_core_fns): Remove.
9458 (default_core_sniffer): Remove.
9459 (sniff_core_bfd): Remove.
9460 (default_check_format): Remove.
9461 (gdb_check_format): Remove.
9462 (core_target_open): Update.
9463 (core_target::get_core_register_section): Update.
9464 (get_core_registers_cb): Update.
9465 (core_target::fetch_registers): Update.
9466 * gdbcore.h (struct core_fns): Remove.
9467 (deprecated_add_core_fns): Remove.
9468 (default_core_sniffer): Remove.
9469 (default_check_format): Remove.
9470
9471 2020-03-12 Tom Tromey <tom@tromey.com>
9472
9473 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9474 CORE_ADDR.
9475 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9476
9477 2020-03-12 Tom Tromey <tom@tromey.com>
9478
9479 * remote.c (remote_target::download_tracepoint)
9480 (remote_target::enable_tracepoint)
9481 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9482 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9483 sprintf_vma.
9484
9485 2020-03-12 Tom Tromey <tom@tromey.com>
9486
9487 * symfile-mem.c: Update CORE_ADDR size assert.
9488
9489 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9490
9491 * selftest.m4: Move to gdbsupport/.
9492 * acinclude.m4: Update path to selftest.m4.
9493
9494 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9495
9496 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9497 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9498 gdbarch-selfselftests.c and selftest-arch.c.
9499 (SUBDIR_UNITTESTS_OBS): Rename to...
9500 (SELFTESTS_OBS): ... this.
9501 (COMMON_SFILES): Remove disasm-selftests.c and
9502 gdbarch-selftests.c.
9503 * configure.ac: Don't add selftest-arch.{c,o} to
9504 CONFIG_{SRCS,OBS}.
9505 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9506 preprocessor conditions.
9507
9508 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * configure.ac: Don't source bfd/development.sh.
9511 * selftest.m4: Modify comment.
9512 * configure: Re-generate.
9513
9514 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9515
9516 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9517 not "true" or "false".
9518 * configure: Re-generate.
9519
9520 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9521
9522 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9523 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9524 renamed to arm_nbsd_supply_gregset.
9525 (fetch_register): Update to call arm_nbsd_supply_gregset.
9526 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9527 (arm_netbsd_nat_target::fetch_registers): Update.
9528 (fetch_elfcore_registers): Removed.
9529 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9530 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9531 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9532 not require NetBSD system headers.
9533 (arm_nbsd_regset): New struct.
9534 (arm_nbsd_iterate_over_regset_sections): New function.
9535 (arm_netbsd_init_abi_common): Updated to call
9536 set_gdbarch_iterate_over_regset_sections.
9537 * arm-nbsd-tdep.h: New file.
9538
9539 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9540
9541 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9542 recursion.
9543
9544 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9545
9546 * configure: Re-generate.
9547
9548 2020-03-11 Tom Tromey <tromey@adacore.com>
9549
9550 * ada-typeprint.c (print_choices): Fix comment.
9551
9552 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9553
9554 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9555 previous item in the list, when the list has no items.
9556
9557 2020-03-11 Tom de Vries <tdevries@suse.de>
9558
9559 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9560 PROP_LOCLIST handling code.
9561
9562 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 * buildsym-legacy.c (record_line): Pass extra parameter to
9565 record_line.
9566 * buildsym.c (buildsym_compunit::record_line): Take an extra
9567 parameter, reduce duplication in the line table, and record the
9568 is_stmt flag in the line table.
9569 * buildsym.h (buildsym_compunit::record_line): Add extra
9570 parameter.
9571 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9572 non-statement lines.
9573 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9574 this to the symtab builder.
9575 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9576 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9577 through to dwarf_record_line_1.
9578 * infrun.c (process_event_stop_test): When stepping, don't stop at
9579 a non-statement instruction, and only refresh the step info when
9580 we land in the middle of a line's range. Also add an extra
9581 comment.
9582 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9583 field.
9584 * record-btrace.c (btrace_find_line_range): Only record lines
9585 marked as is-statement.
9586 * stack.c (frame_show_address): Show the frame address if we are
9587 in a non-statement sal.
9588 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9589 (maintenance_print_one_line_table): Print a header for the is_stmt
9590 column, and include is_stmt information in the output.
9591 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9592 preference to non-statements.
9593 (find_pcs_for_symtab_line): Prefer is-statement entries.
9594 (find_line_common): Likewise.
9595 * symtab.h (struct linetable_entry): Add is_stmt field.
9596 (struct symtab_and_line): Likewise.
9597 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9598 arranging the line table.
9599
9600 2020-03-07 Tom de Vries <tdevries@suse.de>
9601
9602 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9603 DIE.
9604
9605 2020-03-07 Tom Tromey <tom@tromey.com>
9606
9607 * valops.c (value_literal_complex): Remove obsolete comment.
9608 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9609 comment.
9610
9611 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9612
9613 * infrun.h: Forward-declare thread_info.
9614 (set_step_info): Add thread_info parameter, add doc.
9615 * infrun.c (set_step_info): Add thread_info parameter, move doc
9616 to header.
9617 * infrun.c (process_event_stop_test): Pass thread to
9618 set_step_info call.
9619 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9620 set_step_info.
9621 (prepare_one_step): Add thread_info parameter, pass it to
9622 set_step_frame and prepare_one_step (recursive) call.
9623 (step_1): Pass thread to prepare_one_step call.
9624 (step_command_fsm::should_stop): Pass thread to
9625 prepare_one_step.
9626 (until_next_fsm): Pass thread to set_step_frame call.
9627 (finish_command): Pass thread to set_step_info call.
9628
9629 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9630
9631 * windows-tdep.c (windows_solib_create_inferior_hook):
9632 Check if inferior is running.
9633
9634 2020-03-06 Tom de Vries <tdevries@suse.de>
9635
9636 * NEWS: Fix "the the".
9637 * ctfread.c: Same.
9638
9639 2020-03-06 Tom de Vries <tdevries@suse.de>
9640
9641 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9642
9643 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9644
9645 * .dir-locals.el: Add a comment referencing the other copies of
9646 this file.
9647
9648 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9649
9650 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9651 psargs.
9652
9653 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9654
9655 * .gitattributes: New file.
9656
9657 2020-03-04 Tom Tromey <tom@tromey.com>
9658
9659 * symmisc.c (print_symbol_bcache_statistics)
9660 (print_objfile_statistics): Update.
9661 * symfile.c (allocate_symtab): Use intern.
9662 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9663 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9664 macro_cache>: Remove.
9665 <string_cache>: New member.
9666 (struct objfile) <intern>: New methods.
9667 * elfread.c (elf_symtab_read): Use intern.
9668 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9669 (dwarf2_compute_name, dwarf2_physname)
9670 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9671 names.
9672 (guess_partial_die_structure_name): Update.
9673 (partial_die_info::fixup): Intern name.
9674 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9675 name.
9676 (dwarf2_name): Intern name. Update.
9677 * buildsym.c (buildsym_compunit::get_macro_table): Use
9678 string_cache.
9679
9680 2020-03-04 Tom Tromey <tom@tromey.com>
9681
9682 * jit.c (bfd_open_from_target_memory): Make "target" const.
9683 * corefile.c (gnutarget): Now const.
9684 * gdbcore.h (gnutarget): Now const.
9685
9686 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9687
9688 * NEWS: Mention support for WOW64 processes.
9689 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9690 (amd64_windows_segment_register_p): Remove static.
9691 (_initialize_amd64_windows_nat): Update.
9692 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9693 * i386-windows-nat.c (context_offset): Update.
9694 (i386_mappings): Rename and remove static.
9695 (i386_windows_segment_register_p): Remove static.
9696 (_initialize_i386_windows_nat): Update.
9697 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9698 (STATUS_WX86_SINGLE_STEP): New macro.
9699 (EnumProcessModulesEx): New macro.
9700 (Wow64SuspendThread): New macro.
9701 (Wow64GetThreadContext): New macro.
9702 (Wow64SetThreadContext): New macro.
9703 (Wow64GetThreadSelectorEntry): New macro.
9704 (windows_set_context_register_offsets): Add static.
9705 (windows_set_segment_register_p): Likewise.
9706 (windows_add_thread): Adapt for WOW64 processes.
9707 (windows_fetch_one_register): Likewise.
9708 (windows_nat_target::fetch_registers): Likewise.
9709 (windows_store_one_register): Likewise.
9710 (display_selector): Likewise.
9711 (display_selectors): Likewise.
9712 (handle_exception): Likewise.
9713 (windows_continue): Likewise.
9714 (windows_nat_target::resume): Likewise.
9715 (windows_add_all_dlls): Likewise.
9716 (do_initial_windows_stuff): Likewise.
9717 (windows_nat_target::attach): Likewise.
9718 (windows_get_exec_module_filename): Likewise.
9719 (windows_nat_target::create_inferior): Likewise.
9720 (windows_xfer_siginfo): Likewise.
9721 (_initialize_loadable): Initialize Wow64SuspendThread,
9722 Wow64GetThreadContext, Wow64SetThreadContext,
9723 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9724 * windows-nat.h (windows_set_context_register_offsets):
9725 Remove declaration.
9726 (windows_set_segment_register_p): Likewise.
9727 (i386_windows_segment_register_p): Add declaration.
9728 (amd64_windows_segment_register_p): Likewise.
9729
9730 2020-03-04 Luis Machado <luis.machado@linaro.org>
9731
9732 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9733 in "info registers" for AArch64/ARM.
9734
9735 The change caused "info registers" to not print GPR's.
9736
9737 gdb/ChangeLog:
9738
9739 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9740
9741 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9742 when reg->group is empty and reggroup is not.
9743
9744 2020-03-03 Tom Tromey <tromey@adacore.com>
9745
9746 * dwarf2/frame.c (struct dwarf2_frame_cache)
9747 <checked_tailcall_bottom, entry_cfa_sp_offset,
9748 entry_cfa_sp_offset_p>: Remove members.
9749 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9750 (dwarf2_frame_prev_register): Don't call
9751 dwarf2_tailcall_sniffer_first.
9752 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9753 * frame-unwind.c (add_unwinder): New fuction.
9754 (frame_unwind_init): Use it. Add tailcall unwinder.
9755
9756 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9757 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9758
9759 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9760 value should be printed as true.
9761
9762 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9763
9764 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9765 (windows_init_abi): Set and use windows_so_ops.
9766
9767 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9768
9769 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9770 when verifying if dealing with a convenience variable.
9771
9772 2020-03-03 Luis Machado <luis.machado@linaro.org>
9773
9774 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9775
9776 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9777
9778 * infrun.c (gdbarch_supports_displaced_stepping): New.
9779 (use_displaced_stepping): Break up conditions in smaller pieces.
9780 Use gdbarch_supports_displaced_stepping.
9781 (displaced_step_prepare_throw): Use
9782 gdbarch_supports_displaced_stepping.
9783
9784 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9785
9786 * NEWS: Mention new behaviour of the history filename.
9787 * top.c (write_history_p): Add comment.
9788 (show_write_history_p): Add header comment, give a different
9789 message when history writing is on, but the history filename is
9790 empty.
9791 (history_filename): Add comment.
9792 (history_filename_empty): New function.
9793 (show_history_filename): Add header comment, give a different
9794 message when the filename is empty.
9795 (init_history): Compare history_filename against nullptr, and only
9796 read history if the filename is not empty.
9797 (set_history_filename): Add header comment, and only make
9798 non-empty filenames absolute.
9799 (init_main): Make the filename argument to 'set history filename'
9800 optional.
9801
9802 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9803
9804 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9805 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9806 (fetch_fp_register): Update.
9807 (fetch_fp_regs): Update.
9808 (store_fp_register): Update.
9809 (store_fp_regs): Update.
9810 (arm_netbsd_nat_target::read_description): New function.
9811 (fetch_elfcore_registers): Update.
9812
9813 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9814
9815 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9816 general_thread if the stop reply is missing a thread-id.
9817 (remote_target::process_stop_reply): Use the first non-exited
9818 thread if the target didn't pass a thread-id.
9819 * infrun.c (do_target_wait): Move call to
9820 switch_to_inferior_no_thread to ....
9821 (do_target_wait_1): ... here.
9822
9823 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9824
9825 * debuginfod-support.c: Include defs.h first.
9826
9827 2020-02-28 Tom de Vries <tdevries@suse.de>
9828
9829 * symfile.c (set_initial_language): Use default language for lookup.
9830
9831 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9832
9833 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9834 reader variable, pass `this` to read_cutu_die_from_dwo.
9835
9836 2020-02-27 Aaron Merey <amerey@redhat.com>
9837
9838 * source.c (open_source_file): Check for nullptr when computing
9839 srcpath.
9840
9841 2020-02-27 Tom Tromey <tromey@adacore.com>
9842
9843 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9844 member.
9845 (dwarf2_add_field): Don't update nfields.
9846 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9847
9848 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9849
9850 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9851 abs.
9852
9853 2020-02-26 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9856 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9857 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9858 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9859 per_cu_data.
9860
9861 2020-02-26 Tom Tromey <tom@tromey.com>
9862
9863 * dwarf2/index-write.c (psym_index_map): Change type.
9864 (add_address_entry_worker, write_one_signatured_type)
9865 (recursively_count_psymbols, recursively_write_psymbols)
9866 (class debug_names, psyms_seen_size, write_gdbindex)
9867 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9868
9869 2020-02-26 Aaron Merey <amerey@redhat.com>
9870
9871 * Makefile.in: Handle optional debuginfod support.
9872 * NEWS: Update.
9873 * README: Add --with-debuginfod summary.
9874 * config.in: Regenerate.
9875 * configure: Regenerate.
9876 * configure.ac: Handle optional debuginfod support.
9877 * debuginfod-support.c: debuginfod helper functions.
9878 * debuginfod-support.h: Ditto.
9879 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9880 summary.
9881 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9882 when a dwz file cannot be found.
9883 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9884 debuginfo file cannot be found.
9885 * source.c (open_source_file): Query debuginfod servers when a
9886 source file cannot be found.
9887 * top.c (print_gdb_configuration): Include
9888 --{with,without}-debuginfod in the output.
9889
9890 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9891
9892 * thread.c (thr_try_catch_cmd): Print thread name.
9893
9894 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9897 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9898 dwarf2_fetch_die_type_sect_off): Move to...
9899 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9900 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9901 dwarf2_fetch_die_type_sect_off): ... here.
9902 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9903 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9904 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9905
9906 2020-02-26 Tom de Vries <tdevries@suse.de>
9907
9908 PR gdb/25603
9909 * symfile.c (set_initial_language): Exit-early if
9910 language_mode == language_mode_manual.
9911
9912 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9913
9914 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9915 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9916 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9917
9918 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9919
9920 * gdbtypes.c (create_array_type_with_stride): Handle negative
9921 array strides.
9922 * valarith.c (value_subscripted_rvalue): Likewise.
9923
9924 2020-02-25 Luis Machado <luis.machado@linaro.org>
9925
9926 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9927
9928 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9929
9930 * loc.h (dwarf2_get_die_type): Move to...
9931 * read.h (dwarf2_get_die_type): ... here.
9932 * read.c (dwarf2_get_die_type): Move doc to header.
9933
9934 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9935
9936 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9937 'gnulib/Makefile.in' to the list.
9938
9939 2020-02-24 Tom Tromey <tom@tromey.com>
9940
9941 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9942 Remove.
9943 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9944 XOBNEWVEC.
9945
9946 2020-02-24 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9949 New method.
9950 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9951 (dw2_do_instantiate_symtab, dw2_get_file_names)
9952 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9953
9954 2020-02-24 Tom Tromey <tom@tromey.com>
9955
9956 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9957 make_scoped_restore.
9958 (dwarf2_psymtab::read_symtab): Don't clear
9959 reading_partial_symbols.
9960
9961 2020-02-24 Tom de Vries <tdevries@suse.de>
9962
9963 PR gdb/25592
9964 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9965
9966 2020-02-24 Tom de Vries <tdevries@suse.de>
9967
9968 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9969 commands layout next/prev/regs.
9970
9971 2020-02-22 Tom Tromey <tom@tromey.com>
9972
9973 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9974 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9975
9976 2020-02-22 Tom Tromey <tom@tromey.com>
9977
9978 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9979
9980 2020-02-22 Tom Tromey <tom@tromey.com>
9981
9982 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9983 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9984 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9985 * tui/tui.c (_initialize_tui): Add usage text.
9986
9987 2020-02-22 Tom Tromey <tom@tromey.com>
9988
9989 * tui/tui-win.c (tui_set_focus_command)
9990 (tui_set_win_height_command): Use error_no_arg.
9991 (_initialize_tui_win): Update help text.
9992 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9993
9994 2020-02-22 Tom Tromey <tom@tromey.com>
9995
9996 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9997 * tui/tui-disasm.h (struct tui_disasm_window)
9998 <display_start_addr>: Declare.
9999 * tui/tui-source.h (struct tui_source_window)
10000 <display_start_addr>: Declare.
10001 * tui/tui-winsource.h (struct tui_source_window_base)
10002 <show_source_line, display_start_addr>: New methods.
10003 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10004 Rename and move to protected section.
10005 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10006 (tui_source_window_base::do_erase_source_content): Update.
10007 (tui_source_window_base::show_source_line): Now a method.
10008 (tui_source_window_base::show_source_content)
10009 (tui_source_window_base::tui_source_window_base)
10010 (tui_source_window_base::rerender)
10011 (tui_source_window_base::refill)
10012 (tui_source_window_base::do_scroll_horizontal)
10013 (tui_source_window_base::set_is_exec_point_at)
10014 (tui_source_window_base::update_breakpoint_info)
10015 (tui_source_window_base::update_exec_info): Update.
10016 * tui/tui-source.c (tui_source_window::set_contents)
10017 (tui_source_window::showing_source_p)
10018 (tui_source_window::do_scroll_vertical)
10019 (tui_source_window::location_matches_p)
10020 (tui_source_window::line_is_displayed): Update.
10021 (tui_source_window::display_start_addr): New method.
10022 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10023 (tui_disasm_window::do_scroll_vertical)
10024 (tui_disasm_window::location_matches_p): Update.
10025 (tui_disasm_window::display_start_addr): New method.
10026
10027 2020-02-22 Tom Tromey <tom@tromey.com>
10028
10029 * NEWS: Add entry for gdb.register_window_type.
10030 * tui/tui-layout.h (window_factory): New typedef.
10031 (tui_register_window): Declare.
10032 * tui/tui-layout.c (saved_tui_windows): New global.
10033 (tui_apply_current_layout): Use it.
10034 (tui_register_window): New function.
10035 * python/python.c (do_start_initialization): Call
10036 gdbpy_initialize_tui.
10037 (python_GdbMethods): Add "register_window_type" function.
10038 * python/python-internal.h (gdbpy_register_tui_window)
10039 (gdbpy_initialize_tui): Declare.
10040 * python/py-tui.c: New file.
10041 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10042
10043 2020-02-22 Tom Tromey <tom@tromey.com>
10044
10045 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10046
10047 2020-02-22 Tom Tromey <tom@tromey.com>
10048
10049 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10050 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10051 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10052 (tui_set_win_focus_to): Move from tui-win.c.
10053
10054 2020-02-22 Tom Tromey <tom@tromey.com>
10055
10056 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10057 functions.
10058 (known_window_types): New global.
10059 (tui_get_window_by_name): Reimplement.
10060 (initialize_known_windows): New function.
10061 (validate_window_name): Rewrite.
10062 (_initialize_tui_layout): Call initialize_known_windows.
10063
10064 2020-02-22 Tom Tromey <tom@tromey.com>
10065
10066 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10067 Remove constants.
10068 * tui/tui-winsource.h (struct tui_source_window_base)
10069 <tui_source_window_base>: Remove parameter.
10070 * tui/tui-winsource.c
10071 (tui_source_window_base::tui_source_window_base): Remove
10072 parameter.
10073 (tui_source_window_base::refill): Update.
10074 * tui/tui-stack.h (struct tui_locator_window)
10075 <tui_locator_window>: Update.
10076 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10077 Default the constructor.
10078 * tui/tui-regs.h (struct tui_data_item_window)
10079 <tui_data_item_window>: Default the constructor.
10080 (struct tui_data_window) <tui_data_window>: Likewise.
10081 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10082 Default the constructor.
10083 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10084 Default the constructor.
10085 <type>: Remove.
10086 (struct tui_win_info) <tui_win_info>: Default the constructor.
10087 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10088 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10089 Default the constructor.
10090
10091 2020-02-22 Tom Tromey <tom@tromey.com>
10092
10093 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10094 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10095 * tui/tui-win.c (tui_resize_all): Don't call
10096 tui_delete_invisible_windows.
10097 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10098 done.
10099 (tui_set_layout): Update.
10100 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10101 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10102 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10103
10104 2020-02-22 Tom Tromey <tom@tromey.com>
10105
10106 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10107 correctly.
10108
10109 2020-02-22 Tom Tromey <tom@tromey.com>
10110
10111 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10112
10113 2020-02-22 Tom Tromey <tom@tromey.com>
10114
10115 * tui/tui-winsource.h (struct tui_source_window_iterator)
10116 <inner_iterator>: New etytypedef.
10117 <tui_source_window_iterator>: Take "end" parameter.
10118 <tui_source_window_iterator>: Take iterator.
10119 <operator*, advance>: Update.
10120 <m_iter>: Change type.
10121 <m_end>: New field.
10122 (struct tui_source_windows) <begin, end>: Update.
10123 * tui/tui-layout.c (tui_windows): New global.
10124 (tui_apply_current_layout): Clear tui_windows.
10125 (tui_layout_window::apply): Update tui_windows.
10126 * tui/tui-data.h (tui_windows): Declare.
10127 (all_tui_windows): Now inline function.
10128 (class tui_window_iterator, struct all_tui_windows): Remove.
10129
10130 2020-02-22 Tom Tromey <tom@tromey.com>
10131
10132 PR tui/17850:
10133 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10134 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10135 "height" argument.
10136 (class tui_layout_window) <get_sizes>: Likewise.
10137 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10138 argument.
10139 <get_sizes>: Add "height" argument.
10140 <m_vertical>: New field.
10141 * tui/tui-layout.c (tui_layout_split::clone): Update.
10142 (tui_layout_split::get_sizes): Add "height" argument.
10143 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10144 (tui_new_layout_command): Parse "-horizontal".
10145 (_initialize_tui_layout): Update help string.
10146 (tui_layout_split::specification): Add "-horizontal" when needed.
10147 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10148 argument.
10149 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10150 New methods.
10151
10152 2020-02-22 Tom Tromey <tom@tromey.com>
10153
10154 * tui/tui-layout.h (enum tui_adjust_result): New.
10155 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10156 (class tui_layout_window) <adjust_size>: Return
10157 tui_adjust_result. Rewrite.
10158 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10159 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10160
10161 2020-02-22 Tom Tromey <tom@tromey.com>
10162
10163 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10164 parameter and return types.
10165 (class tui_layout_base) <specification>: Add "depth".
10166 (class tui_layout_window) <specification>: Add "depth".
10167 (class tui_layout_split) <specification>: Add "depth".
10168 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10169 and return types.
10170 (tui_new_layout_command): Parse sub-layouts.
10171 (_initialize_tui_layout): Update help string.
10172 (tui_layout_window::specification): Add "depth".
10173 (add_layout_command): Update.
10174
10175 2020-02-22 Tom Tromey <tom@tromey.com>
10176
10177 * NEWS: Add "tui new-layout" item.
10178 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10179 Add new-layout command to help text.
10180 (validate_window_name): New function.
10181 (tui_new_layout_command): New function.
10182 (_initialize_tui_layout): Register "new-layout".
10183 (tui_layout_window::specification): New method.
10184 (tui_layout_window::specification): New method.
10185 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10186 method.
10187 (class tui_layout_window) <specification>: New method.
10188 (class tui_layout_split) <specification>: New method.
10189
10190 2020-02-22 Tom Tromey <tom@tromey.com>
10191
10192 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10193 * tui/tui-win.c (window_name_completer): Update comment.
10194 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10195 Declare method.
10196 (class tui_layout_window) <replace_window>: Likewise.
10197 (class tui_layout_split) <replace_window>: Likewise.
10198 (tui_set_layout): Don't declare.
10199 (tui_set_initial_layout): Declare function.
10200 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10201 (asm_regs_layout): New globals.
10202 (tui_current_layout, show_layout): Remove.
10203 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10204 (find_layout, tui_apply_layout): New function.
10205 (layout_completer): Remove.
10206 (tui_next_layout): Reimplement.
10207 (tui_next_layout_command): New function.
10208 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10209 (tui_regs_layout): Reimplement.
10210 (tui_regs_layout_command): New function.
10211 (extract_display_start_addr): Rewrite.
10212 (next_layout, prev_layout): Remove.
10213 (tui_layout_window::replace_window): New method.
10214 (tui_layout_split::replace_window): New method.
10215 (destroy_layout): New function.
10216 (layout_list): New global.
10217 (add_layout_command): New function.
10218 (initialize_layouts): Update.
10219 (tui_layout_command): New function.
10220 (_initialize_tui_layout): Install "layout" commands.
10221 * tui/tui-data.h (enum tui_layout_type): Remove.
10222 (tui_current_layout): Don't declare.
10223
10224 2020-02-22 Tom Tromey <tom@tromey.com>
10225
10226 * tui/tui-regs.c (tui_reg_layout): Remove.
10227 (tui_reg_command): Use tui_regs_layout.
10228 * tui/tui-layout.h (tui_reg_command): Declare.
10229 * tui/tui-layout.c (tui_reg_command): New function.
10230
10231 2020-02-22 Tom Tromey <tom@tromey.com>
10232
10233 * tui/tui.c (tui_rl_delete_other_windows): Call
10234 tui_remove_some_windows.
10235 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10236 Declare method.
10237 (class tui_layout_window) <remove_windows>: New method.
10238 (class tui_layout_split) <remove_windows>: Declare.
10239 (tui_remove_some_windows): Declare.
10240 * tui/tui-layout.c (tui_remove_some_windows): New function.
10241 (tui_layout_split::remove_windows): New method.
10242
10243 2020-02-22 Tom Tromey <tom@tromey.com>
10244
10245 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10246 * tui/tui-layout.h (tui_next_layout): Declare.
10247 * tui/tui-layout.c (tui_next_layout): New function.
10248
10249 2020-02-22 Tom Tromey <tom@tromey.com>
10250
10251 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10252 correct coordinates.
10253
10254 2020-02-22 Tom Tromey <tom@tromey.com>
10255
10256 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10257 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10258 DATA_WIN case.
10259
10260 2020-02-22 Tom Tromey <tom@tromey.com>
10261
10262 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10263 TUI_DISASM_WIN, not tui_win_list.
10264
10265 2020-02-22 Tom Tromey <tom@tromey.com>
10266
10267 * valprint.c (generic_val_print_enum_1)
10268 (val_print_type_code_flags): Style member names.
10269 * rust-lang.c (val_print_struct, rust_print_enum)
10270 (rust_print_struct_def, rust_internal_print_type): Style member
10271 names.
10272 * p-valprint.c (pascal_object_print_value_fields): Style member
10273 names. Only call fprintf_symbol_filtered for static members.
10274 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10275 * f-valprint.c (f_val_print): Style member names.
10276 * f-typeprint.c (f_type_print_base): Style member names.
10277 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10278 call fprintf_symbol_filtered for static members.
10279 (cp_print_class_member): Style member names.
10280 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10281 member names.
10282 * ada-valprint.c (ada_print_scalar): Style enum names.
10283 (ada_val_print_enum): Likewise.
10284 * ada-typeprint.c (print_enum_type): Style enum names.
10285
10286 2020-02-21 Tom Tromey <tom@tromey.com>
10287
10288 * psympriv.h (struct partial_symtab): Update comment.
10289
10290 2020-02-21 Tom Tromey <tromey@adacore.com>
10291
10292 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10293 type is CORE_ADDR.
10294
10295 2020-02-21 Tom de Vries <tdevries@suse.de>
10296
10297 PR gdb/25534
10298 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10299 if dependencies[i]->user != NULL.
10300
10301 2020-02-21 Ali Tamur <tamur@google.com>
10302
10303 * dwarf2/read.c (dwarf2_name): Add null check.
10304
10305 2020-02-20 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10308 ">=", in binary search.
10309 (dwarf2_find_containing_comp_unit): New overload.
10310 (run_test): New self-test.
10311 (_initialize_dwarf2_read): Register new test.
10312
10313 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10314
10315 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10316 * riscv-tdep.h: Likewise.
10317 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10318 rv32-only CSR.
10319 * features/riscv/64bit-csr.xml: Regenerated.
10320
10321 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10322 Tom Tromey <tom@tromey.com>
10323
10324 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10325 of 'fputc_unfiltered'.
10326 (putchar_unfiltered): Call 'fputc_unfiltered'.
10327 (fputc_unfiltered): Call 'fputs_unfiltered'.
10328
10329 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10330
10331 * config.in: Regenerate.
10332 * configure: Regenerate.
10333 * configure.ac: Add --with-python-libdir option.
10334 * main.c: Use WITH_PYTHON_LIBDIR.
10335
10336 2020-02-19 Tom Tromey <tom@tromey.com>
10337
10338 * symtab.c (general_symbol_info::compute_and_set_names): Use
10339 obstack_strndup. Simplify call to symbol_set_demangled_name.
10340
10341 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10342
10343 * dwarf2/read.c (allocate_signatured_type_table,
10344 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10345 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10346 Remove objfile parameter, update all callers.
10347
10348 2020-02-19 Doug Evans <dje@google.com>
10349
10350 PR rust/25535
10351 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10352 rust_enum_variant calculation.
10353
10354 2020-02-19 Tom Tromey <tromey@adacore.com>
10355
10356 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10357
10358 2020-02-19 Tom Tromey <tromey@adacore.com>
10359
10360 * ada-lang.c (cache_symbol): Use obstack_strdup.
10361
10362 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * configure: Regenerate.
10365
10366 2020-02-19 Tom Tromey <tromey@adacore.com>
10367
10368 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10369 NULL check.
10370
10371 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10372
10373 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10374
10375 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10376
10377 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10378 if GDBSERVER is not defined.
10379 (riscv_tdesc_cache): Likewise, also store const target_desc.
10380 (STATIC_IN_GDB): Define.
10381 (riscv_create_target_description): Update declaration with
10382 STATIC_IN_GDB.
10383 (riscv_lookup_target_description): New function, only define if
10384 GDBSERVER is not defined.
10385 * arch/riscv.h (riscv_create_target_description): Declare only
10386 when GDBSERVER is defined.
10387 (riscv_lookup_target_description): New declaration when GDBSERVER
10388 is not defined.
10389 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10390 (riscv_linux_read_features): ...this, and return
10391 riscv_gdbarch_features instead of target_desc.
10392 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10393 (riscv_linux_read_description): Rename to...
10394 (riscv_linux_read_features): ...this.
10395 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10396 Update to use riscv_gdbarch_features and
10397 riscv_lookup_target_description.
10398 * riscv-tdep.c (riscv_find_default_target_description): Use
10399 riscv_lookup_target_description instead of
10400 riscv_create_target_description.
10401
10402 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10403
10404 * valprint.c (generic_val_print_enum_1): When printing a flag
10405 enum with value 0 and there is no enumerator with value 0, print
10406 just "0" instead of "(unknown: 0x0)".
10407
10408 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10409
10410 * valprint.c (generic_val_print_enum_1): Print unknown part of
10411 flag enum in hex.
10412
10413 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10416 flag enums to contain duplicate enumerators.
10417 * valprint.c (generic_val_print_enum_1): Update comment.
10418
10419 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * dwarf2/read.c: Include "count-one-bits.h".
10422 (update_enumeration_type_from_children): If an enumerator has
10423 multiple bits set, don't treat the enumeration as a "flag enum".
10424 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10425 of flag enums have 0 or 1 bit set.
10426
10427 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10428
10429 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10430 conversion.
10431 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10432 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10433 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10434 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10435 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10436
10437 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10440
10441 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10442
10443 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10444 displaced_step_closure_up.
10445 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10446 (struct displaced_step_closure_up):
10447 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10448 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10449 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10450 Likewise.
10451 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10452 * gdbarch.c, gdbarch.h: Re-generate.
10453 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10454 displaced_step_closure_up.
10455 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10456 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10457 * infrun.h (displaced_step_closure_up): New type alias.
10458 (struct displaced_step_inferior_state) <step_closure>: Change
10459 type to displaced_step_closure_up.
10460 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10461 displaced_step_closure_up.
10462 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10463
10464 2020-02-14 Tom Tromey <tom@tromey.com>
10465
10466 * minidebug.c (gnu_debug_key): New global.
10467 (find_separate_debug_file_in_section): Use it.
10468
10469 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10472 std::unique_ptr.
10473 * gdbarch.c: Re-generate.
10474 * gdbarch.h: Re-generate.
10475 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10476 change.
10477 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10478 type to std::unique_ptr.
10479 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10480 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10481 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10482 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10483 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10484 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10485 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10486 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10487 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10488
10489 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10490
10491 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10492 std::unique_ptr.
10493 (displaced_step_clear): Rename to...
10494 (displaced_step_reset): ... this. Just call displaced->reset ().
10495 (displaced_step_clear_cleanup): Rename to...
10496 (displaced_step_reset_cleanup): ... this.
10497 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10498 (displaced_step_fixup): Likewise.
10499 (resume_1): Likewise.
10500 (handle_inferior_event): Restore child's memory before calling
10501 displaced_step_fixup on the parent.
10502 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10503 to std::unique_ptr.
10504 <step_closure>: Change type to std::unique_ptr.
10505
10506 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * arm-tdep.c: Include count-one-bits.h.
10509 (cleanup_block_store_pc): Use count_one_bits.
10510 (cleanup_block_load_pc): Use count_one_bits.
10511 (arm_copy_block_xfer): Use count_one_bits.
10512 (thumb2_copy_block_xfer): Use count_one_bits.
10513 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10514 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10515 (thumb_get_next_pcs_raw): Use count_one_bits.
10516 (arm_get_next_pcs_raw): Use count_one_bits_l.
10517 * arch/arm.c (bitcount): Remove.
10518 * arch/arm.h (bitcount): Remove.
10519
10520 2020-02-14 Tom Tromey <tromey@adacore.com>
10521
10522 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10523 Update.
10524 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10525 * dwarf2/loc.c (call_site_find_chain_1): Return
10526 unique_xmalloc_ptr.
10527 (call_site_find_chain): Likewise.
10528
10529 2020-02-14 Richard Biener <rguenther@suse.de>
10530
10531 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10532 on expression with division operators.
10533
10534 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10535
10536 * MAINTAINERS (Write After Approval): Adding myself.
10537
10538 2020-02-12 Tom Tromey <tom@tromey.com>
10539
10540 * event-loop.c (event_data, gdb_event, event_handler_func):
10541 Remove.
10542
10543 2020-02-12 Tom Tromey <tom@tromey.com>
10544
10545 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10546 (dwarf2_frame_objfile_data): Add comment.
10547 (find_comp_unit, set_comp_unit): New functions.
10548 (dwarf2_frame_find_fde): Use find_comp_unit.
10549 (dwarf2_build_frame_info): Use set_comp_unit.
10550
10551 2020-02-12 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10554 (comp_unit): Don't initialize objfile.
10555 (execute_cfa_program): Add text_offset parameter.
10556 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10557 (dwarf2_frame_cache): Update.
10558 (dwarf2_build_frame_info): Don't set "objfile" member.
10559
10560 2020-02-12 Tom Tromey <tom@tromey.com>
10561
10562 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10563 (decode_frame_entry): Likewise.
10564 (dwarf2_build_frame_info): Update.
10565
10566 2020-02-12 Tom Tromey <tom@tromey.com>
10567
10568 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10569 (decode_frame_entry_1): Use the comp_unit obstack.
10570
10571 2020-02-12 Tom Tromey <tom@tromey.com>
10572
10573 * dwarf2/frame.c (struct comp_unit): Add initializers and
10574 constructor.
10575 (dwarf2_frame_objfile_data): Store a comp_unit.
10576 (dwarf2_frame_find_fde): Update.
10577 (dwarf2_build_frame_info): Use "new".
10578
10579 2020-02-12 Tom Tromey <tom@tromey.com>
10580
10581 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10582 (dwarf2_fde_table): Typedef for std::vector.
10583 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10584 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10585 (decode_frame_entry): Update.
10586 (dwarf2_build_frame_info): Use "new".
10587
10588 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10589
10590 * arm-tdep.c (arm_gdbarch_init): Update.
10591 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10592 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10593 have_neon, is_m>: Change to bool.
10594
10595 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10596
10597 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10598
10599 2020-02-12 Tom Tromey <tom@tromey.com>
10600
10601 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10602
10603 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10604
10605 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10606 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10607
10608 2020-02-11 Tom Tromey <tom@tromey.com>
10609
10610 * psymtab.h: Update comment.
10611
10612 2020-02-11 Tom Tromey <tom@tromey.com>
10613
10614 * gdb_obstack.h (struct auto_obstack): Use
10615 DISABLE_COPY_AND_ASSIGN.
10616
10617 2020-02-11 Tom Tromey <tom@tromey.com>
10618
10619 * dwarf2/frame.h (struct objfile): Don't forward declare.
10620
10621 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10622
10623 * cris-tdep.c (cris_supply_gregset): Change signature to match
10624 what struct regset expects.
10625 (cris_regset): New struct.
10626 (fetch_core_registers): Remove.
10627 (cris_iterate_over_regset_sections): New function.
10628 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10629 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10630
10631 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10632
10633 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10634 registers.
10635
10636 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10637
10638 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10639
10640 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10641
10642 * configure: Re-generate.
10643
10644 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10645
10646 * configure: Re-generate.
10647
10648 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * acinclude: Update warning.m4 path.
10651 * warning.m4: Move to gdbsupport.
10652
10653 2020-02-11 Tom Tromey <tromey@adacore.com>
10654
10655 * remote.c (remote_console_output): Update.
10656 * printcmd.c (printf_command): Update.
10657 * event-loop.c (gdb_wait_for_event): Update.
10658 * linux-nat.c (sigchld_handler): Update.
10659 * remote-sim.c (gdb_os_write_stdout): Update.
10660 (gdb_os_flush_stdout): Update.
10661 (gdb_os_flush_stderr): Update.
10662 (gdb_os_write_stderr): Update.
10663 * exceptions.c (print_exception): Update.
10664 * remote-fileio.c (remote_fileio_func_read): Update.
10665 (remote_fileio_func_write): Update.
10666 * tui/tui.c (tui_enable): Update.
10667 * tui/tui-interp.c (tui_interp::init): Update.
10668 * utils.c (init_page_info): Update.
10669 (putchar_unfiltered, fputc_unfiltered): Update.
10670 (gdb_flush): Update.
10671 (emit_style_escape): Update.
10672 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10673 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10674 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10675 (stderr_file::write): Update.
10676 (stderr_file::puts): Update.
10677 * ui-file.h (ui_file_isatty, ui_file_write)
10678 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10679 (ui_file_puts): Don't declare.
10680
10681 2020-02-10 Tom de Vries <tdevries@suse.de>
10682
10683 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10684 sentinel to char *.
10685
10686 2020-02-09 Tom de Vries <tdevries@suse.de>
10687
10688 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10689 filename if it matches "<artificial>".
10690
10691 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10692
10693 * windows-tdep.c (struct enum_value_name): New struct.
10694 (create_enum): New function.
10695 (windows_get_siginfo_type): Create and use enum types.
10696
10697 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10698
10699 * NEWS: Mention $_siginfo support for Windows.
10700 * windows-nat.c (handle_exception): Set siginfo_er.
10701 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10702 (windows_xfer_siginfo): New function.
10703 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10704 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10705 (init_windows_gdbarch_data): New function.
10706 (get_windows_gdbarch_data): New function.
10707 (windows_get_siginfo_type): New function.
10708 (windows_init_abi): Register windows_get_siginfo_type.
10709 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10710
10711 2020-02-08 Tom Tromey <tom@tromey.com>
10712
10713 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10714 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10715 <keep>: Declare method.
10716 <m_keep>: Remove member.
10717 <~cutu_reader>: Remove.
10718 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10719 (cutu_reader::cutu_reader): Update.
10720 (cutu_reader::keep): Rename from ~cutu_reader.
10721 (process_psymtab_comp_unit, build_type_psymtabs_1)
10722 (process_skeletonless_type_unit, load_partial_comp_unit)
10723 (load_full_comp_unit, dwarf2_read_addr_index)
10724 (read_signatured_type): Update.
10725
10726 2020-02-08 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10729 "want_partial_unit" parameter.
10730 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10731 Inline check for DW_TAG_partial_unit.
10732 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10733
10734 2020-02-08 Tom Tromey <tom@tromey.com>
10735
10736 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10737 read.c.
10738 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10739 read.c.
10740
10741 2020-02-08 Tom Tromey <tom@tromey.com>
10742
10743 * dwarf2/read.c (read_address): Move to comp-unit.c.
10744 (dwarf2_rnglists_process, dwarf2_ranges_process)
10745 (read_attribute_value, dwarf_decode_lines_1)
10746 (var_decode_location, decode_locdesc): Update.
10747 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10748 read.c. Remove "cu" parameter.
10749 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10750 method.
10751
10752 2020-02-08 Tom Tromey <tom@tromey.com>
10753
10754 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10755 (read_indirect_line_string): Update.
10756 * dwarf2/comp-unit.c (read_offset): Remove.
10757 (read_comp_unit_head): Update.
10758 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10759 method.
10760 (read_offset): Don't declare.
10761
10762 2020-02-08 Tom Tromey <tom@tromey.com>
10763
10764 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10765 * dwarf2/read.c (struct comp_unit_head): Move to
10766 dwarf2/comp-unit.h.
10767 (enum class rcuh_kind): Move to comp-unit.h.
10768 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10769 (read_comp_unit_head, error_check_comp_unit_head)
10770 (read_and_check_comp_unit_head): Move to comp-unit.c.
10771 (read_offset, dwarf_unit_type_name): Likewise.
10772 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10773 (cutu_reader::cutu_reader, read_call_site_scope)
10774 (find_partial_die, follow_die_offset): Update.
10775 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10776
10777 2020-02-08 Tom Tromey <tom@tromey.com>
10778
10779 * dwarf2/read.c (read_offset_1): Move to leb.c.
10780 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10781 (dwarf_decode_macro_bytes): Update.
10782 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10783 * dwarf2/leb.h (read_offset): Declare.
10784
10785 2020-02-08 Tom Tromey <tom@tromey.com>
10786
10787 * dwarf2/read.c (dwarf2_section_size): Remove.
10788 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10789 Update.
10790 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10791
10792 2020-02-08 Tom Tromey <tom@tromey.com>
10793
10794 * dwarf2/read.c (read_initial_length): Move to leb.c.
10795 * dwarf2/leb.h (read_initial_length): Declare.
10796 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10797 handle_nonstd parameter.
10798 * dwarf2/frame.c (read_initial_length): Remove.
10799 (decode_frame_entry_1): Update.
10800
10801 2020-02-08 Tom Tromey <tom@tromey.com>
10802
10803 * dwarf2/loc.c (dwarf2_find_location_expression)
10804 (dwarf_evaluate_loc_desc::get_tls_address)
10805 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10806 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10807 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10808 (dwarf2_compile_property_to_c)
10809 (dwarf2_loc_desc_get_symbol_read_needs)
10810 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10811 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10812 (loclist_describe_location, loclist_tracepoint_var_ref)
10813 (loclist_generate_c_location): Update.
10814 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10815 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10816 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10817 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10818 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10819 (dwarf2_per_cu_data::addr_size)
10820 (dwarf2_per_cu_data::ref_addr_size)
10821 (dwarf2_per_cu_data::text_offset)
10822 (dwarf2_per_cu_data::addr_type): Now methods.
10823 (per_cu_header_read_in): Make per_cu "const".
10824 (dwarf2_version): Remove.
10825 (dwarf2_per_cu_data::int_type): Now a method.
10826 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10827 (set_die_type, read_array_type, read_subrange_index_type)
10828 (read_tag_string_type, read_subrange_type): Update.
10829 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10830 offset_size, ref_addr_size, text_offset, addr_type, version,
10831 objfile, int_type, addr_sized_int_type>: Declare methods.
10832
10833 2020-02-08 Tom Tromey <tom@tromey.com>
10834
10835 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10836 Move earlier.
10837
10838 2020-02-08 Tom Tromey <tom@tromey.com>
10839
10840 * dwarf2/read.h (dwarf_line_debug): Declare.
10841 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10842 * dwarf2/read.c: Move line_header code to new files.
10843 (dwarf_line_debug): No longer static.
10844 * dwarf2/line-header.c: New file.
10845 * dwarf2/line-header.h: New file.
10846
10847 2020-02-08 Tom Tromey <tom@tromey.com>
10848
10849 * dwarf2/read.c (struct line_header) <file_full_name,
10850 file_file_name>: Return unique_xmalloc_ptr.
10851 (line_header::file_file_name): Update.
10852 (line_header::file_full_name): Update.
10853 (dw2_get_file_names_reader): Update.
10854 (macro_start_file): Update.
10855
10856 2020-02-08 Tom Tromey <tom@tromey.com>
10857
10858 * dwarf2/read.c (struct line_header) <file_full_name,
10859 file_file_name>: Declare methods.
10860 (dw2_get_file_names_reader): Update.
10861 (file_file_name): Now a method.
10862 (file_full_name): Likewise.
10863 (macro_start_file): Update.
10864
10865 2020-02-08 Tom Tromey <tom@tromey.com>
10866
10867 * dwarf2/read.c (dwarf_always_disassemble)
10868 (show_dwarf_always_disassemble): Move to loc.c.
10869 (_initialize_dwarf2_read): Move "always-disassemble" registration
10870 to loc.c.
10871 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10872 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10873 static.
10874 (show_dwarf_always_disassemble): Move from read.c.
10875 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10876
10877 2020-02-08 Tom Tromey <tom@tromey.com>
10878
10879 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10880 (create_quick_file_names_table): Return htab_up.
10881 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10882 Update.
10883 * dwarf2/read.h (struct dwarf2_per_objfile)
10884 <quick_file_names_table>: Now htab_up.
10885
10886 2020-02-08 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10889
10890 2020-02-08 Tom Tromey <tom@tromey.com>
10891
10892 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10893 Rewrite.
10894 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10895 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10896 (abbrev_table::abbrev_table): No longer inline.
10897 (ABBREV_HASH_SIZE): Remove.
10898 (abbrev_table::m_abbrevs): Now an htab_up.
10899
10900 2020-02-08 Tom Tromey <tom@tromey.com>
10901
10902 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10903 (cutu_reader): Update.
10904 (build_type_psymtabs_1): Update.
10905 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10906 (abbrev_table::alloc_abbrev): Update.
10907 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10908 (abbrev_table::read): New static method, renamed from
10909 abbrev_table_read_table.
10910 (abbrev_table::alloc_abbrev)
10911 (abbrev_table::add_abbrev): Now private.
10912 (abbrev_table::abbrev_table): Now private.
10913 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10914
10915 2020-02-08 Tom Tromey <tom@tromey.com>
10916
10917 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10918 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10919 htab_up.
10920
10921 2020-02-08 Tom Tromey <tom@tromey.com>
10922
10923 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10924 htab_up.
10925 (lookup_dwo_unit_in_dwp): Update.
10926 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10927 on obstack.
10928
10929 2020-02-08 Tom Tromey <tom@tromey.com>
10930
10931 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10932 obstack.
10933
10934 2020-02-08 Tom Tromey <tom@tromey.com>
10935
10936 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10937 line_header_hash.
10938 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10939 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10940 Change type to htab_up.
10941
10942 2020-02-08 Tom Tromey <tom@tromey.com>
10943
10944 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10945 htab_up. Don't allocate on obstack.
10946 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10947 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10948 Change type to htab_up.
10949
10950 2020-02-08 Tom Tromey <tom@tromey.com>
10951
10952 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10953 Change type to htab_up.
10954 * dwarf2/read.c (create_signatured_type_table_from_index)
10955 (create_signatured_type_table_from_debug_names)
10956 (create_all_type_units, add_type_unit)
10957 (lookup_dwo_signatured_type, lookup_signatured_type)
10958 (process_skeletonless_type_unit): Update.
10959 (create_debug_type_hash_table, create_debug_types_hash_table):
10960 Change type of types_htab.
10961 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10962 htab_up. Don't allocate on obstack.
10963 (create_cus_hash_table): Change type of cus_htab parameter.
10964 (struct dwo_file) <cus, tus>: Now htab_up.
10965 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10966 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10967 (queue_and_load_all_dwo_tus): Update.
10968 * dwarf2/index-write.c (write_gdbindex): Update.
10969 (write_debug_names): Update.
10970
10971 2020-02-08 Tom Tromey <tom@tromey.com>
10972
10973 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10974 dwarf2/read.c. Remove "next" member. Add constructor ntad
10975 destructor.
10976 (struct dwarf2_per_objfile) <queue>: New member.
10977 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10978 dwarf2/read.h.
10979 (dwarf2_queue, dwarf2_queue_tail): Remove.
10980 (class dwarf2_queue_guard): Add parameter to constructor. Use
10981 DISABLE_COPY_AND_ASSIGN.
10982 <m_per_objfile>: New member.
10983 <~dwarf2_queue_guard>: Rewrite.
10984 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10985 Update.
10986 (~dwarf2_queue_item): New.
10987
10988 2020-02-08 Tom Tromey <tom@tromey.com>
10989
10990 * dwarf2/read.c (struct die_info) <has_children>: New member.
10991 (dw2_get_file_names_reader): Remove has_children.
10992 (dw2_get_file_names): Update.
10993 (read_cutu_die_from_dwo): Remove has_children.
10994 (cutu_reader::init_tu_and_read_dwo_dies)
10995 (cutu_reader::cutu_reader): Update.
10996 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10997 Remove has_children.
10998 (build_type_psymtabs_1, process_skeletonless_type_unit)
10999 (load_partial_comp_unit, load_full_comp_unit): Update.
11000 (create_dwo_cu_reader): Remove has_children.
11001 (create_cus_hash_table, read_die_and_children): Update.
11002 (read_full_die_1,read_full_die): Remove has_children.
11003 (read_signatured_type): Update.
11004 (class cutu_reader) <has_children>: Remove.
11005
11006 2020-02-08 Tom Tromey <tom@tromey.com>
11007
11008 * dwarf2/expr.c: Rename from dwarf2expr.c.
11009 * dwarf2/expr.h: Rename from dwarf2expr.h.
11010 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11011 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11012 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11013 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11014 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11015 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11016 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11017 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11018 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11019 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11020 * dwarf2/loc.c: Rename from dwarf2loc.c.
11021 * dwarf2/loc.h: Rename from dwarf2loc.h.
11022 * dwarf2/read.c: Rename from dwarf2read.c.
11023 * dwarf2/read.h: Rename from dwarf2read.h.
11024 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11025 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11026 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11027 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11028 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11029 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11030 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11031 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11032 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11033 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11034 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11035 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11036 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11037 Update.
11038 * Makefile.in (COMMON_SFILES): Update.
11039 (HFILES_NO_SRCDIR): Update.
11040
11041 2020-02-08 Tom Tromey <tom@tromey.com>
11042
11043 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11044 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11045
11046 2020-02-08 Tom Tromey <tom@tromey.com>
11047
11048 * dwarf2read.h (struct die_info): Don't declare.
11049
11050 2020-02-08 Tom Tromey <tom@tromey.com>
11051
11052 * dwarf2read.h (die_info_ptr): Remove typedef.
11053
11054 2020-02-08 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2read.c (read_call_site_scope)
11057 (handle_data_member_location, dwarf2_add_member_fn)
11058 (mark_common_block_symbol_computed, read_common_block)
11059 (attr_to_dynamic_prop, partial_die_info::read)
11060 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11061 (dwarf2_symbol_mark_computed, set_die_type): Update.
11062 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11063 method.
11064 (attr_form_is_block): Don't declare.
11065 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11066
11067 2020-02-08 Tom Tromey <tom@tromey.com>
11068
11069 * dwarf2read.c (dwarf2_find_base_address, )
11070 (read_call_site_scope, rust_containing_type)
11071 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11072 (handle_data_member_location, dwarf2_add_member_fn)
11073 (get_alignment, read_structure_type, process_structure_scope)
11074 (mark_common_block_symbol_computed, read_common_block)
11075 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11076 (partial_die_info::read, read_attribute_value, new_symbol)
11077 (lookup_die_type, dwarf2_get_ref_die_offset)
11078 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11079 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11080 (dwarf2_symbol_mark_computed): Update.
11081 * dwarf2/attribute.h (struct attribute) <value_as_address,
11082 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11083 methods.
11084 (value_as_address, attr_form_is_section_offset)
11085 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11086 * dwarf2/attribute.c (attribute::value_as_address)
11087 (attribute::form_is_section_offset, attribute::form_is_constant)
11088 (attribute::form_is_ref): Now methods.
11089
11090 2020-02-08 Tom Tromey <tom@tromey.com>
11091
11092 * dwarf2read.c (struct attribute, DW_STRING)
11093 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11094 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11095 (attr_form_is_block, attr_form_is_section_offset)
11096 (attr_form_is_constant, attr_form_is_ref): Move.
11097 * dwarf2/attribute.h: New file.
11098 * dwarf2/attribute.c: New file, from dwarf2read.c.
11099 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11100
11101 2020-02-08 Tom Tromey <tom@tromey.com>
11102
11103 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11104 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11105 Move.
11106 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11107 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11108 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11109 abbrev.c.
11110 * dwarf2/abbrev.h: New file.
11111 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11112 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11113
11114 2020-02-08 Tom Tromey <tom@tromey.com>
11115
11116 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11117 (dwarf2_section_size, dwarf2_get_section_info)
11118 (create_signatured_type_table_from_debug_names)
11119 (create_addrmap_from_aranges, read_debug_names_from_section)
11120 (get_gdb_index_contents_from_section, read_comp_unit_head)
11121 (error_check_comp_unit_head, read_abbrev_offset)
11122 (create_debug_type_hash_table, init_cu_die_reader)
11123 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11124 (read_comp_units_from_section, create_cus_hash_table)
11125 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11126 (create_dwp_v2_section, dwarf2_rnglists_process)
11127 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11128 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11129 (read_indirect_string_from_dwz, read_addr_index_1)
11130 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11131 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11132 (fill_in_loclist_baton): Update.
11133 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11134 get_containing_section, get_bfd_owner, get_bfd_section,
11135 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11136 (dwarf2_read_section, get_section_name, get_section_file_name)
11137 (get_containing_section, get_section_bfd_owner)
11138 (get_section_bfd_section, get_section_name, get_section_file_name)
11139 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11140 declare.
11141 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11142 (dwarf2_section_info::get_bfd_owner)
11143 (dwarf2_section_info::get_bfd_section)
11144 (dwarf2_section_info::get_name)
11145 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11146 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11147 (dwarf2_section_info::read): Now methods.
11148 * dwarf-index-write.c (class debug_names): Update.
11149
11150 2020-02-08 Tom Tromey <tom@tromey.com>
11151
11152 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11153 Move to dwarf2/section.h.
11154 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11155 (get_section_bfd_section, get_section_name)
11156 (get_section_file_name, get_section_id, get_section_flags)
11157 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11158 dwarf2/section.c.
11159 * dwarf2/section.h: New file.
11160 * dwarf2/section.c: New file, from dwarf2read.c.
11161 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11162
11163 2020-02-08 Tom Tromey <tom@tromey.com>
11164
11165 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11166 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11167 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11168 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11169 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11170 * dwarf2/leb.h: New file, from dwarf2read.c.
11171 * dwarf2/leb.c: New file, from dwarf2read.c.
11172 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11173 Remove.
11174 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11175 (COMMON_SFILES): Add dwarf2/leb.c.
11176
11177 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11178
11179 GDB 9.1 released.
11180
11181 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11182
11183 PR gdb/25190:
11184 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11185 * gdb/remote.c (remote_console_output): Update.
11186 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11187 (ui_file_puts): ...this.
11188 * gdb/ui-file.h (ui_file_puts): Add declaration.
11189 * gdb/utils.c (emit_style_escape): Update.
11190 (flush_wrap_buffer): Update.
11191 (fputs_maybe_filtered): Update.
11192 (fputs_unfiltered): Add function.
11193
11194 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11195
11196 * gdb/event-loop.c (gdb_wait_for_event): Update.
11197 * gdb/printcmd.c (printf_command): Update.
11198 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11199 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11200 (gdb_os_flush_stderr): Update.
11201 * gdb/remote.c (remote_console_output): Update.
11202 * gdb/ui-file.c (gdb_flush): Rename to...
11203 (ui_file_flush): ...this.
11204 (stderr_file::write): Update.
11205 (stderr_file::puts): Update.
11206 * gdb/ui-file.h (gdb_flush): Rename to...
11207 (ui_file_flush): ...this.
11208 * gdb/utils.c (gdb_flush): Add function.
11209 * gdb/utils.h (gdb_flush): Add declaration.
11210
11211 2020-02-07 Tom Tromey <tromey@adacore.com>
11212
11213 PR breakpoints/24915:
11214 * source.c (find_and_open_source): Do not check basenames_may_differ.
11215
11216 2020-02-07 Tom Tromey <tom@tromey.com>
11217
11218 * README: Update gdbserver documentation.
11219 * gdbserver: Move to top level.
11220 * configure.tgt (build_gdbserver): Remove.
11221 * configure.ac: Remove --enable-gdbserver.
11222 * configure: Rebuild.
11223 * Makefile.in (distclean): Don't mention gdbserver.
11224
11225 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11226
11227 * source-cache.c (source_cache::ensure): Surround
11228 get_plain_source_lines with a try/catch.
11229 (source_cache::get_line_charpos): Get rid of try/catch
11230 and only check for the return value of "ensure".
11231 * tui/tui-source.c (tui_source_window::set_contents):
11232 Simplify "nlines" calculation.
11233
11234 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11235
11236 * MAINTAINERS (Write After Approval): Add myself.
11237
11238 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11239
11240 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11241 function call.
11242
11243 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11244
11245 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11246
11247 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11248
11249 * nat/riscv-linux-tdesc.h: New file.
11250 * nat/riscv-linux-tdesc.c: New file, taking code from...
11251 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11252 ... here.
11253 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11254 NATDEPFILES.
11255
11256 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11257
11258 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11259 we don't set the fake simulator ptid to the null_ptid.
11260
11261 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11262
11263 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11264 * gdbthread.h (class thread_info) <resumed>: Likewise.
11265 * infrun.c (resume_1): Likewise.
11266 (proceed): Likewise.
11267 (infrun_thread_stop_requested): Likewise.
11268 (stop_all_threads): Likewise.
11269 (handle_inferior_event): Likewise.
11270 (restart_threads): Likewise.
11271 (finish_step_over): Likewise.
11272 (keep_going_stepped_thread): Likewise.
11273 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11274 (linux_handle_extended_wait): Likewise.
11275 * record-btrace.c (get_thread_current_frame_id): Likewise.
11276 * record-full.c (record_full_wait_1): Likewise.
11277 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11278 * target.c (target_resume): Likewise.
11279 * thread.c (set_running_thread): Likewise.
11280
11281 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11282
11283 * f-valprint.c (f77_print_array_1): Changed datatype of index
11284 variable to LONGEST from int to enable it to contain bound
11285 values correctly.
11286
11287 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11288
11289 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11290 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11291 offsets according to FLEN determined.
11292 (riscv_linux_nat_target::read_description): Determine FLEN
11293 dynamically.
11294 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11295 according to FLEN determined.
11296 (riscv_linux_nat_target::store_registers): Likewise.
11297
11298 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11299
11300 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11301 when reg->group is empty and reggroup is not.
11302
11303 2020-01-31 Tom Tromey <tromey@adacore.com>
11304
11305 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11306 Call beneath target's mourn_inferior after unpushing.
11307
11308 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11309
11310 PR tui/9765
11311 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11312 have enough lines to fill the screen, still return the lowest
11313 address we found.
11314
11315 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11316
11317 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11318 '-', '<', and '>' commands.
11319
11320 2020-01-29 Pedro Alves <palves@redhat.com>
11321 Sergio Durigan Junior <sergiodj@redhat.com>
11322
11323 * infcmd.c (construct_inferior_arguments): Assert that
11324 'argc' is greater than 0.
11325
11326 2020-01-29 Luis Machado <luis.machado@linaro.org>
11327
11328 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11329 (BRK_INSN_MASK): Define to 0xd4200000.
11330 (aarch64_program_breakpoint_here_p): New function.
11331 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11332 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11333 breakpoint.c.
11334 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11335 breakpoint.h
11336 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11337 call gdbarch_program_breakpoint_here_p.
11338 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11339 default_program_breakpoint_here_p, changed return type to bool and
11340 simplified.
11341 * breakpoint.h (program_breakpoint_here): Moved prototype to
11342 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11343 return type to bool.
11344 * gdbarch.c: Regenerate.
11345 * gdbarch.h: Regenerate.
11346 * gdbarch.sh (program_breakpoint_here_p): New method.
11347 * infrun.c (handle_signal_stop): Call
11348 gdbarch_program_breakpoint_here_p.
11349
11350 2020-01-26 Tom Tromey <tom@tromey.com>
11351
11352 * ctfread.c (struct ctf_fp_info): Reindent.
11353 (_initialize_ctfread): Remove.
11354
11355 2020-01-26 Tom Tromey <tom@tromey.com>
11356
11357 * psymtab.c (partial_map_expand_apply)
11358 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11359 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11360 (psym_print_stats, psym_expand_symtabs_for_function)
11361 (psym_map_symbol_filenames, psym_map_matching_symbols)
11362 (psym_expand_symtabs_matching)
11363 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11364 (maintenance_check_psymtabs): Use new methods.
11365 * psympriv.h (struct partial_symtab) <readin_p,
11366 get_compunit_symtab>: New methods.
11367 <readin, compunit_symtab>: Remove members.
11368 (struct standard_psymtab): New.
11369 (struct legacy_psymtab): Derive from standard_psymtab.
11370 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11371 standard_psymtab.
11372 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11373
11374 2020-01-26 Tom Tromey <tom@tromey.com>
11375
11376 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11377 read_dependencies. Add assert.
11378 * psymtab.c (partial_symtab::read_dependencies): New method.
11379 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11380 method.
11381 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11382 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11383 read_dependencies.
11384 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11385 Add assert.
11386
11387 2020-01-26 Tom Tromey <tom@tromey.com>
11388
11389 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11390 Call expand_psymtab.
11391 (xcoff_read_symtab): Call expand_psymtab.
11392 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11393 legacy_expand_psymtab.
11394 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11395 method.
11396 (struct legacy_psymtab) <expand_psymtab>: Implement.
11397 <legacy_expand_psymtab>: New member.
11398 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11399 (parse_partial_symbols): Set legacy_expand_psymtab.
11400 (psymtab_to_symtab_1): Change argument order. Call
11401 expand_psymtab.
11402 (new_psymtab): Set legacy_expand_psymtab.
11403 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11404 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11405 expand_psymtab.
11406 (dwarf2_psymtab::expand_psymtab): Rename from
11407 psymtab_to_symtab_1. Call expand_psymtab.
11408 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11409 (dbx_end_psymtab): Likewise.
11410 (dbx_psymtab_to_symtab_1): Change argument order. Call
11411 expand_psymtab.
11412 (dbx_read_symtab): Call expand_psymtab.
11413 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11414 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11415 (ctf_psymtab::read_symtab): Call expand_psymtab.
11416
11417 2020-01-26 Tom Tromey <tom@tromey.com>
11418
11419 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11420 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11421 messages.
11422 * mdebugread.c (mdebug_read_symtab): Remove prints.
11423 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11424 assert.
11425 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11426
11427 2020-01-26 Tom Tromey <tom@tromey.com>
11428
11429 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11430 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11431 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11432 legacy_symtab.
11433 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11434 * psymtab.c (psymtab_to_symtab): Call method.
11435 (dump_psymtab): Update.
11436 * psympriv.h (struct partial_symtab): Add virtual destructor.
11437 <read_symtab>: New method.
11438 (struct legacy_symtab): New.
11439 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11440 (struct pst_map) <pst>: Now a legacy_psymtab.
11441 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11442 (new_psymtab): Use legacy_psymtab.
11443 * dwarf2read.h (struct dwarf2_psymtab): New.
11444 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11445 * dwarf2read.c (dwarf2_create_include_psymtab)
11446 (dwarf2_build_include_psymtabs, create_type_unit_group)
11447 (create_partial_symtab, process_psymtab_comp_unit_reader)
11448 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11449 (set_partial_user): Use dwarf2_psymtab.
11450 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11451 (psymtab_to_symtab_1, process_full_comp_unit)
11452 (process_full_type_unit, dwarf2_ranges_read)
11453 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11454 (dwarf_decode_lines): Use dwarf2_psymtab.
11455 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11456 (add_address_entry_worker, write_one_signatured_type)
11457 (recursively_count_psymbols, recursively_write_psymbols)
11458 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11459 (write_debug_names): Likewise.
11460 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11461 <pst>: Now a legacy_psymtab.
11462 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11463 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11464 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11465 * ctfread.c (struct ctf_psymtab): New.
11466 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11467 ctf_psymtab.
11468 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11469 (create_partial_symtab): Return a ctf_psymtab.
11470 (scan_partial_symbols): Update.
11471
11472 2020-01-26 Tom Tromey <tom@tromey.com>
11473
11474 * xcoffread.c (xcoff_start_psymtab): Use new.
11475 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11476 renamed from start_psymtab_common.
11477 * psympriv.h (struct partial_symtab): Add new constructor.
11478 (start_psymtab_common): Don't declare.
11479 * mdebugread.c (parse_partial_symbols): Use new.
11480 * dwarf2read.c (create_partial_symtab): Use new.
11481 * dbxread.c (start_psymtab): Use new.
11482 * ctfread.c (create_partial_symtab): Use new.
11483
11484 2020-01-26 Tom Tromey <tom@tromey.com>
11485
11486 * xcoffread.c (xcoff_end_psymtab): Use new.
11487 * psymtab.c (start_psymtab_common): Use new.
11488 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11489 Update.
11490 * psympriv.h (struct partial_symtab): Add parameters to
11491 constructor. Don't inline.
11492 (allocate_psymtab): Don't declare.
11493 * mdebugread.c (new_psymtab): Use new.
11494 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11495 * dbxread.c (dbx_end_psymtab): Use new.
11496
11497 2020-01-26 Tom Tromey <tom@tromey.com>
11498
11499 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11500 allocate_psymtab. Update documentation.
11501 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11502 allocate_psymtab. Do not use new.
11503 (allocate_psymtab): Use new. Update.
11504
11505 2020-01-26 Tom Tromey <tom@tromey.com>
11506
11507 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11508 * psymtab.c (psym_print_stats): Update.
11509 * psympriv.h (struct partial_symtab) <readin,
11510 psymtabs_addrmap_supported, anonymous>: Now bool.
11511 * mdebugread.c (psymtab_to_symtab_1): Update.
11512 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11513 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11514 (process_full_comp_unit, process_full_type_unit): Update.
11515 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11516 * ctfread.c (psymtab_to_symtab): Update.
11517
11518 2020-01-26 Tom Tromey <tom@tromey.com>
11519
11520 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11521 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11522 * psymtab.c (psymtab_storage): Delete psymtabs.
11523 (psymtab_storage::allocate_psymtab): Use new.
11524 (psymtab_storage::discard_psymtab): Use delete.
11525 * psympriv.h (struct partial_symtab): Add constructor and
11526 initializers.
11527
11528 2020-01-26 Tom Tromey <tom@tromey.com>
11529
11530 * machoread.c: Do not include psympriv.h.
11531
11532 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11533
11534 * NEWS: Mention the new option and the set/show commands.
11535
11536 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11537
11538 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11539 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11540 (validate_exec_file): New variables, enums, functions.
11541 (exec_file_locate_attach, print_section_info): Style the filenames.
11542 (_initialize_exec): Install show_exec_file_mismatch_command and
11543 set_exec_file_mismatch_command.
11544 * gdbcore.h (validate_exec_file): Declare.
11545 * infcmd.c (attach_command): Call validate_exec_file.
11546 * remote.c ( remote_target::remote_add_inferior): Likewise.
11547
11548 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11549
11550 * frame.c (find_frame_sal): Move call to get_next_frame into more
11551 inner scope.
11552 * inline-frame.c (inilne_state) <inline_state>: Update argument
11553 types.
11554 (inilne_state) <skipped_symbol>: Rename to...
11555 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11556 (skip_inline_frames): Build vector of skipped symbols and use this
11557 to reate the inline_state.
11558 (inline_skipped_symbol): Add a comment and some assertions, fetch
11559 skipped symbol from the list.
11560
11561 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11562
11563 * buildsym.c (lte_is_less_than): Delete.
11564 (buildsym_compunit::end_symtab_with_blockvector): Create local
11565 lambda function to sort line table entries, and use
11566 std::stable_sort instead of std::sort.
11567 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11568 markers when looking for a previous line.
11569
11570 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11571
11572 * dwarf2read.c (lnp_state_machine::record_line): Include
11573 end_sequence parameter in debug print out. Record the line if we
11574 are at an end_sequence marker even if it's not the start of a
11575 statement.
11576 * symmisc.c (maintenance_print_one_line_table): Print end of
11577 sequence markers with 'END' not '0'.
11578
11579 2020-01-24 Pedro Alves <palves@redhat.com>
11580
11581 PR gdb/25410
11582 * thread.c (scoped_restore_current_thread::restore): Use
11583 switch_to_inferior_no_thread.
11584 * exec.c: Include "progspace-and-thread.h".
11585 (add_target_sections, remove_target_sections):
11586 scoped_restore_current_pspace_and_thread instead of
11587 scoped_restore_current_thread.
11588 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11589 and aspace to the inferior before calling clone_program_space.
11590 Remove stale comment.
11591
11592 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11593
11594 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11595 (arm_netbsd_nat_target::fetch_registers): ...this.
11596 (arm_nbsd_nat_target::store_registers): Rename to...
11597 (arm_netbsd_nat_target::store_registers): ...this.
11598
11599 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11600
11601 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11602 register_t.
11603
11604 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11605
11606 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11607 Update comment.
11608 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11609 Likewise.
11610 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11611 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11612 the correct replacement (iterate_over_regset_sections).
11613 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11614 Update comment.
11615
11616 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11617
11618 PR gdb/23718
11619 * gdb/python/python.c (execute_gdb_command): Call
11620 async_enable_stdin in catch block.
11621
11622 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11625 SWITCH_THRU_ALL_UIS.
11626
11627 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11628
11629 PR tui/9765
11630 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11631 comment, add extra parameter, and update to store previous symbol
11632 when appropriate.
11633 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11634 add extra parameter.
11635 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11636 remove unneeded parameter, add try/catch around gdb_print_insn,
11637 rewrite to add items to asm_lines vector.
11638 (tui_find_backward_disassembly_start_address): New function.
11639 (tui_find_disassembly_address): Updated throughout.
11640 (tui_disasm_window::set_contents): Update for changes to
11641 tui_disassemble.
11642 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11643 number of lines to scroll.
11644
11645 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11646
11647 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11648 (SECT_OFF_DATA): Likewise.
11649 (SECT_OFF_RODATA): Likewise.
11650 (SECT_OFF_TEXT): Likewise.
11651 (SECT_OFF_BSS): Likewise.
11652 (struct objfile) <text_section_offset, data_section_offset>: New
11653 methods.
11654 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11655 objfile::text_section_offset.
11656 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11657 * coffread.c (coff_symtab_read): Likewise.
11658 (enter_linenos): Likewise.
11659 (process_coff_symbol): Likewise.
11660 * ctfread.c (get_objfile_text_range): Likewise.
11661 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11662 Use objfile::data_section_offset.
11663 * dwarf2-frame.c (execute_cfa_program): Use
11664 objfile::text_section_offset.
11665 (dwarf2_frame_find_fde): Likewise.
11666 * dwarf2read.c (create_addrmap_from_index): Likewise.
11667 (create_addrmap_from_aranges): Likewise.
11668 (dw2_find_pc_sect_compunit_symtab): Likewise.
11669 (process_psymtab_comp_unit_reader): Likewise.
11670 (add_partial_symbol): Likewise.
11671 (add_partial_subprogram): Likewise.
11672 (process_full_comp_unit): Likewise.
11673 (read_file_scope): Likewise.
11674 (read_func_scope): Likewise.
11675 (read_lexical_block_scope): Likewise.
11676 (read_call_site_scope): Likewise.
11677 (dwarf2_rnglists_process): Likewise.
11678 (dwarf2_ranges_process): Likewise.
11679 (dwarf2_ranges_read): Likewise.
11680 (dwarf_decode_lines_1): Likewise.
11681 (new_symbol): Likewise.
11682 (dwarf2_fetch_die_loc_sect_off): Likewise.
11683 (dwarf2_per_cu_text_offset): Likewise.
11684 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11685 * hppa-tdep.c (read_unwind_info): Likewise.
11686 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11687 * psympriv.h (struct partial_symtab): Likewise.
11688 * psymtab.c (find_pc_sect_psymtab): Likewise.
11689 * solib-svr4.c (enable_break): Likewise.
11690 * stap-probe.c (relocate_address): Use
11691 objfile::data_section_offset.
11692 * xcoffread.c (enter_line_range): Use
11693 objfile::text_section_offset.
11694 (read_xcoff_symtab): Likewise.
11695
11696 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11697
11698 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11699 declaration to narrower scopes.
11700
11701 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11702
11703 * darwin-nat.h (struct darwin_exception_msg, enum
11704 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11705 Move up.
11706 (class darwin_nat_target) <wait_1, check_new_threads,
11707 decode_exception_message, decode_message, stop_inferior,
11708 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11709 * darwin-nat.c (darwin_check_new_threads): Rename to...
11710 (darwin_nat_target::check_new_threads): ... this.
11711 (darwin_suspend_inferior_it): Remove.
11712 (darwin_decode_exception_message): Rename to...
11713 (darwin_nat_target::decode_exception_message): ... this.
11714 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11715 (darwin_decode_message): Rename to...
11716 (darwin_nat_target::decode_message): ... this.
11717 (cancel_breakpoint): Rename to...
11718 (darwin_nat_target::cancel_breakpoint): ... this.
11719 (darwin_wait): Rename to...
11720 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11721 instead of iterate_over_inferiors.
11722 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11723 (darwin_stop_inferior): Rename to...
11724 (darwin_nat_target::stop_inferior): ... this.
11725 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11726 (darwin_init_thread_list): Rename to...
11727 (darwin_nat_target::init_thread_list): ... this.
11728 (darwin_ptrace_him): Rename to...
11729 (darwin_nat_target::ptrace_him): ... this.
11730 (darwin_nat_target::create_inferior): Pass lambda function to
11731 fork_inferior.
11732 (darwin_nat_target::detach): Call stop_inferior instead of
11733 darwin_stop_inferior.
11734 * fork-inferior.h (fork_inferior): Change init_trace_fun
11735 parameter to gdb::function_view.
11736 * fork-inferior.c (fork_inferior): Likewise.
11737
11738 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11739
11740 * i386-cygwin-tdep.c (core_process_module_section): Update.
11741 * windows-nat.c (struct lm_info_windows): Add text_offset.
11742 (windows_xfer_shared_libraries): Update.
11743 * windows-tdep.c (windows_xfer_shared_library):
11744 Add text_offset_cached argument.
11745 * windows-tdep.h (windows_xfer_shared_library): Update.
11746
11747 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11748
11749 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11750
11751 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11752
11753 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11754 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11755 replace with range-based for.
11756 (gdbsim_interrupt_inferior): Remove.
11757 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11758 with a range-based for. Inline code from
11759 gdbsim_interrupt_inferior.
11760
11761 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11762
11763 * infrun.c (proceed): Fix indentation.
11764
11765 2020-01-21 Tom Tromey <tromey@adacore.com>
11766
11767 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11768 * python/python.c (python_extension_ops): Update.
11769 (gdbpy_colorize): New function.
11770 * python/lib/gdb/__init__.py (colorize): New function.
11771 * extension.h (ext_lang_colorize): Declare.
11772 * extension.c (ext_lang_colorize): New function.
11773 * extension-priv.h (struct extension_language_ops) <colorize>: New
11774 member.
11775 * cli/cli-style.c (_initialize_cli_style): Update help text.
11776
11777 2020-01-21 Luis Machado <luis.machado@linaro.org>
11778
11779 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11780 <cond>: Change type to bool.
11781 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11782 (aarch64_displaced_step_cb): Likewise.
11783 (aarch64_displaced_step_tb): Likewise.
11784
11785 2020-01-21 Luis Machado <luis.machado@linaro.org>
11786
11787 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11788 output.
11789
11790 2020-01-21 Luis Machado <luis.machado@linaro.org>
11791
11792 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11793 <pc_adjust>: Adjust the documentation.
11794 (aarch64_displaced_step_fixup): Check if PC really moved before
11795 adjusting it.
11796
11797 2020-01-19 Tom Tromey <tom@tromey.com>
11798
11799 * disasm.c (~gdb_disassembler): New destructor.
11800 (gdb_buffered_insn_length): Call disassemble_free_target.
11801 * disasm.h (class gdb_disassembler): Declare destructor. Use
11802 DISABLE_COPY_AND_ASSIGN.
11803
11804 2020-01-19 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11807 (die_reader_func_ftype): Remove.
11808 (cutu_reader): New class.
11809 (dw2_get_file_names_reader): Remove "data" parameter.
11810 (dw2_get_file_names): Use cutu_reader.
11811 (create_debug_type_hash_table): Update.
11812 (read_cutu_die_from_dwo): Update comment.
11813 (lookup_dwo_unit): Add dwo_name parameter.
11814 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11815 die_reader_func_ftype and data parameters.
11816 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11817 Remove die_reader_func_ftype and data parameters.
11818 (~cutu_reader): New; from init_cutu_and_read_dies.
11819 (cutu_reader::cutu_reader): Rename from
11820 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11821 and data parameters.
11822 (init_cutu_and_read_dies_simple): Remove.
11823 (struct process_psymtab_comp_unit_data): Remove.
11824 (process_psymtab_comp_unit_reader): Remove data parameter; add
11825 want_partial_unit and pretend_language parameters.
11826 (process_psymtab_comp_unit): Use cutu_reader.
11827 (build_type_psymtabs_reader): Remove data parameter.
11828 (build_type_psymtabs_1): Use cutu_reader.
11829 (process_skeletonless_type_unit): Likewise.
11830 (load_partial_comp_unit_reader): Remove.
11831 (load_partial_comp_unit): Use cutu_reader.
11832 (load_full_comp_unit_reader): Remove.
11833 (load_full_comp_unit): Use cutu_reader.
11834 (struct create_dwo_cu_data): Remove.
11835 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11836 dwo_unit parameters.
11837 (create_cus_hash_table): Use cutu_reader.
11838 (struct dwarf2_read_addr_index_data): Remove.
11839 (dwarf2_read_addr_index_reader): Remove.
11840 (dwarf2_read_addr_index): Use cutu_reader.
11841 (read_signatured_type_reader): Remove.
11842 (read_signatured_type): Use cutu_reader.
11843
11844 2020-01-19 Tom Tromey <tom@tromey.com>
11845
11846 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11847 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11848 (tui_wrefresh): Declare.
11849 * tui/tui-wingeneral.c (suppress_output): New global.
11850 (tui_suppress_output, ~tui_suppress_output): New constructor and
11851 destructor.
11852 (tui_wrefresh): New function.
11853 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11854 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11855 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11856 method.
11857 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11858 tui_wrefresh.
11859 (tui_data_window::no_refresh): New method.
11860 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11861 (tui_reg_command): Use tui_suppress_output
11862 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11863 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11864 method.
11865 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11866
11867 2020-01-19 Tom Tromey <tom@tromey.com>
11868
11869 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11870 Handle case where symtab is null.
11871
11872 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11873
11874 * linux-fork.c (one_fork_p): Simplify.
11875
11876 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11877
11878 * top.c (struct qt_args): Remove.
11879 (kill_or_detach): Change return type to void, replace `void *`
11880 parameter with a proper one.
11881 (print_inferior_quit_action): Likewise.
11882 (quit_confirm): Use range-based for loop to iterate over inferiors.
11883 (quit_force): Likewise.
11884
11885 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11886
11887 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11888 `void *` parameter with proper parameters.
11889 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11890 (print_one_inferior): Change return type to void, replace `void *`
11891 parameter with proper parameters.
11892 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11893 inferiors.
11894 (get_other_inferior): Remove.
11895 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11896 inferiors.
11897
11898 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11899
11900 * mi/mi-interp.c (report_initial_inferior): Remove.
11901 (mi_interp::init): Use range-based for to iterate over inferiors.
11902
11903 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11904
11905 * python/py-inferior.c (build_inferior_list): Remove.
11906 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11907
11908 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11909
11910 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11911 (btrace_stitch_trace): Likewise.
11912 * charset.c (intermediate_encoding): Likewise (vaild).
11913 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11914 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11915 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11916
11917 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11918
11919 * windows-tdep.c (windows_get_tlb_type):
11920 Add rtl_user_process_parameters type.
11921
11922 2020-01-16 Pedro Alves <palves@redhat.com>
11923 Norbert Lange <nolange79@gmail.com>
11924
11925 PR build/24805
11926 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11927 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11928 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11929 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11930 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11931 (ps_plog): Redeclare exported functions with default visibility.
11932
11933 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11934
11935 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11936 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11937
11938 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11939
11940 * infcmd.c (post_create_inferior): Use get_thread_regcache
11941 instead of get_current_regcache.
11942
11943 2020-01-14 Tom Tromey <tom@tromey.com>
11944
11945 PR symtab/12535:
11946 * python/python.c (gdbpy_decode_line): Treat empty string the same
11947 as no argument.
11948
11949 2020-01-14 Tom Tromey <tom@tromey.com>
11950
11951 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11952
11953 2020-01-14 Tom Tromey <tom@tromey.com>
11954
11955 * nat/linux-btrace.c: Don't include <config.h>.
11956 * nat/linux-ptrace.c: Don't include <config.h>.
11957 * nat/x86-linux-dregs.c: Don't include <config.h>.
11958
11959 2020-01-14 Tom Tromey <tom@tromey.com>
11960
11961 * configure: Rebuild.
11962 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11963
11964 2020-01-14 Tom Tromey <tom@tromey.com>
11965
11966 * nat/x86-linux-dregs.c: Include configh.h.
11967 * nat/linux-ptrace.c: Include configh.h.
11968 * nat/linux-btrace.c: Include configh.h.
11969 * defs.h: Include config.h, bfd.h.
11970 * configure.ac: Don't source common.host.
11971 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11972 * configure: Rebuild.
11973 * acinclude.m4: Update path.
11974 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11975 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11976 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11977 (CLIBS): Add LIBSUPPORT.
11978 (CDEPS): Likewise.
11979 (COMMON_SFILES): Remove gdbsupport files.
11980 (HFILES_NO_SRCDIR): Likewise.
11981 (stamp-version): Update path to create-version.sh.
11982 (ALLDEPFILES): Remove gdbsupport files.
11983
11984 2020-01-14 Tom Tromey <tom@tromey.com>
11985
11986 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11987 USE_WIN32API when needed.
11988 * configure.ac (USE_WIN32API): Don't define.
11989 (WIN32LIBS): Use WIN32APILIBS.
11990 * configure: Rebuild.
11991
11992 2020-01-14 Tom Tromey <tom@tromey.com>
11993
11994 * configure: Rebuild.
11995 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11996
11997 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11998
11999 * skip.c (skip_function_command): Make skip w/o arguments use the
12000 name of the inlined function if pc is inside any inlined function.
12001
12002 2020-01-14 Luis Machado <luis.machado@linaro.org>
12003
12004 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12005 * infrun.c (resume_1): Likewise.
12006 (handle_inferior_event): Remove stale comment.
12007 * linux-nat.c (linux_nat_target::resume): Update comments.
12008 (save_stop_reason): Likewise.
12009 (linux_nat_filter_event): Likewise.
12010 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12011
12012 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12013
12014 * elfread.c (record_minimal_symbol): Set section index to 0 for
12015 non-allocatable sections.
12016
12017
12018 2020-01-13 Ali Tamur <tamur@google.com>
12019
12020 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12021 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12022 to gdb::optional. Update comments.
12023 (dwo_file): Update comments.
12024 (read_attribute): Update API to take an additional out parameter,
12025 need_reprocess. This is used to mark attributes that need other
12026 attributes (e.g. str_offsets_base) for correct computation which may not
12027 have been read yet.
12028 (read_attribute_reprocess): New function declaration.
12029 (read_addr_index): Likewise.
12030 (read_dwo_str_index): Likewise.
12031 (read_stub_str_index): Likewise.
12032 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12033 (lookup_addr_base): New function definition.
12034 (lookup_ranges_base): Likewise.
12035 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12036 lookup_ranges_base.
12037 (init_cutu_and_read_dies): Update comments.
12038 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12039 unit. This is used to inherit parent's str_offsets_base and addr_base.
12040 Update comments.
12041 (init_cutu_and_read_dies_simple): Reflect API changes.
12042 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12043 (create_cus_hash_table): Change API to take parent compile unit.
12044 Reflect API changes.
12045 (open_and_init_dwo_file): Reflect API changes.
12046 (dwarf2_get_pc_bounds): Update comments.
12047 (dwarf2_record_block_ranges): Likewise.
12048 (read_full_die_1): Change implementation to reprocess attributes that
12049 need str_offsets_base and addr_base.
12050 (partial_die_info::read): Likewise.
12051 (read_attribute_reprocess): New function definition.
12052 (read_attribute_value): Change API to take an additional out parameter,
12053 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12054 when a non-dwo compile unit has index based attributes.
12055 (read_attribute): Reflect API changes.
12056 (read_addr_index_1): Reflect API changes. Update comments.
12057 (dwarf2_read_addr_index_data): Reflect API changes.
12058 (dwarf2_read_addr_index): Likewise.
12059 (read_str_index): Change API and implementation. This becomes a helper
12060 to be used by the new string index related methods. Update error
12061 message and comments.
12062 (read_dwo_str_index): New function definition.
12063 (read_stub_str_index): Likewise.
12064 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12065 * symfile.h (dwarf2_debug_sections): Likewise.
12066 * xcoffread.c (dwarf2_debug_sections): Likewise.
12067
12068 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12069
12070 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12071 core_reg_sect type to gdb_byte *.
12072 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12073 * cris-tdep.c (fetch_core_registers): Likewise.
12074 * corelow.c (core_target::get_core_register_section): Change
12075 type of `contents` to gdb::byte_vector.
12076
12077 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12078
12079 * tui/tui-wingeneral.c (box_win): Position the title in the center
12080 of the border.
12081
12082 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12083
12084 * corelow.c (core_target::get_core_register_section): Use
12085 std::vector instead of alloca.
12086
12087 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12088
12089 * warning.m4: Add -Wmissing-declarations to build_warnings.
12090 * configure: Re-generate.
12091
12092 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12093
12094 * python/python.c (init__gdb_module): Add declaration.
12095
12096 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12097
12098 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12099 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12100 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12101 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12102 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12103 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12104 * ada-exp.y (_initialize_ada_exp): Add declaration.
12105 * ada-lang.c (_initialize_ada_language): Add declaration.
12106 * ada-tasks.c (_initialize_tasks): Add declaration.
12107 * agent.c (_initialize_agent): Add declaration.
12108 * aix-thread.c (_initialize_aix_thread): Add declaration.
12109 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12110 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12111 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12112 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12113 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12114 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12115 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12116 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12117 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12118 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12119 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12120 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12121 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12122 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12123 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12124 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12125 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12126 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12127 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12128 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12129 * annotate.c (_initialize_annotate): Add declaration.
12130 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12131 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12132 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12133 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12134 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12135 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12136 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12137 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12138 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12139 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12140 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12141 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12142 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12143 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12144 * auto-load.c (_initialize_auto_load): Add declaration.
12145 * auxv.c (_initialize_auxv): Add declaration.
12146 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12147 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12148 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12149 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12150 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12151 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12152 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12153 * breakpoint.c (_initialize_breakpoint): Add declaration.
12154 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12155 * btrace.c (_initialize_btrace): Add declaration.
12156 * charset.c (_initialize_charset): Add declaration.
12157 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12158 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12159 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12160 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12161 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12162 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12163 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12164 * coffread.c (_initialize_coffread): Add declaration.
12165 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12166 * compile/compile.c (_initialize_compile): Add declaration.
12167 * complaints.c (_initialize_complaints): Add declaration.
12168 * completer.c (_initialize_completer): Add declaration.
12169 * copying.c (_initialize_copying): Add declaration.
12170 * corefile.c (_initialize_core): Add declaration.
12171 * corelow.c (_initialize_corelow): Add declaration.
12172 * cp-abi.c (_initialize_cp_abi): Add declaration.
12173 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12174 * cp-support.c (_initialize_cp_support): Add declaration.
12175 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12176 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12177 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12178 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12179 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12180 * ctfread.c (_initialize_ctfread): Add declaration.
12181 * d-lang.c (_initialize_d_language): Add declaration.
12182 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12183 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12184 * dbxread.c (_initialize_dbxread): Add declaration.
12185 * dcache.c (_initialize_dcache): Add declaration.
12186 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12187 * disasm.c (_initialize_disasm): Add declaration.
12188 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12189 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12190 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12191 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12192 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12193 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12194 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12195 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12196 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12197 * elfread.c (_initialize_elfread): Add declaration.
12198 * exec.c (_initialize_exec): Add declaration.
12199 * extension.c (_initialize_extension): Add declaration.
12200 * f-lang.c (_initialize_f_language): Add declaration.
12201 * f-valprint.c (_initialize_f_valprint): Add declaration.
12202 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12203 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12204 * filesystem.c (_initialize_filesystem): Add declaration.
12205 * findcmd.c (_initialize_mem_search): Add declaration.
12206 * findvar.c (_initialize_findvar): Add declaration.
12207 * fork-child.c (_initialize_fork_child): Add declaration.
12208 * frame-base.c (_initialize_frame_base): Add declaration.
12209 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12210 * frame.c (_initialize_frame): Add declaration.
12211 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12212 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12213 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12214 * gcore.c (_initialize_gcore): Add declaration.
12215 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12216 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12217 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12218 * gdbarch.c (_initialize_gdbarch): Add declaration.
12219 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12220 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12221 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12222 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12223 * go-lang.c (_initialize_go_language): Add declaration.
12224 * go32-nat.c (_initialize_go32_nat): Add declaration.
12225 * guile/guile.c (_initialize_guile): Add declaration.
12226 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12227 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12228 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12229 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12230 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12231 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12232 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12233 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12234 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12235 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12236 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12237 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12238 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12239 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12240 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12241 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12242 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12243 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12244 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12245 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12246 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12247 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12248 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12249 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12250 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12251 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12252 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12253 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12254 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12255 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12256 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12257 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12258 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12259 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12260 * infcall.c (_initialize_infcall): Add declaration.
12261 * infcmd.c (_initialize_infcmd): Add declaration.
12262 * inflow.c (_initialize_inflow): Add declaration.
12263 * infrun.c (_initialize_infrun): Add declaration.
12264 * interps.c (_initialize_interpreter): Add declaration.
12265 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12266 * jit.c (_initialize_jit): Add declaration.
12267 * language.c (_initialize_language): Add declaration.
12268 * linux-fork.c (_initialize_linux_fork): Add declaration.
12269 * linux-nat.c (_initialize_linux_nat): Add declaration.
12270 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12271 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12272 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12273 * m2-lang.c (_initialize_m2_language): Add declaration.
12274 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12275 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12276 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12277 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12278 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12279 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12280 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12281 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12282 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12283 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12284 * machoread.c (_initialize_machoread): Add declaration.
12285 * macrocmd.c (_initialize_macrocmd): Add declaration.
12286 * macroscope.c (_initialize_macroscope): Add declaration.
12287 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12288 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12289 * maint.c (_initialize_maint_cmds): Add declaration.
12290 * mdebugread.c (_initialize_mdebugread): Add declaration.
12291 * memattr.c (_initialize_mem): Add declaration.
12292 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12293 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12294 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12295 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12296 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12297 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12298 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12299 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12300 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12301 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12302 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12303 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12304 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12305 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12306 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12307 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12308 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12309 * mipsread.c (_initialize_mipsread): Add declaration.
12310 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12311 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12312 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12313 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12314 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12315 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12316 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12317 * nto-procfs.c (_initialize_procfs): Add declaration.
12318 * objc-lang.c (_initialize_objc_language): Add declaration.
12319 * observable.c (_initialize_observer): Add declaration.
12320 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12321 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12322 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12323 * osabi.c (_initialize_gdb_osabi): Add declaration.
12324 * osdata.c (_initialize_osdata): Add declaration.
12325 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12326 * parse.c (_initialize_parse): Add declaration.
12327 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12328 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12329 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12330 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12331 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12332 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12333 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12334 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12335 * printcmd.c (_initialize_printcmd): Add declaration.
12336 * probe.c (_initialize_probe): Add declaration.
12337 * proc-api.c (_initialize_proc_api): Add declaration.
12338 * proc-events.c (_initialize_proc_events): Add declaration.
12339 * proc-service.c (_initialize_proc_service): Add declaration.
12340 * procfs.c (_initialize_procfs): Add declaration.
12341 * producer.c (_initialize_producer): Add declaration.
12342 * psymtab.c (_initialize_psymtab): Add declaration.
12343 * python/python.c (_initialize_python): Add declaration.
12344 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12345 * record-btrace.c (_initialize_record_btrace): Add declaration.
12346 * record-full.c (_initialize_record_full): Add declaration.
12347 * record.c (_initialize_record): Add declaration.
12348 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12349 * regcache.c (_initialize_regcache): Add declaration.
12350 * reggroups.c (_initialize_reggroup): Add declaration.
12351 * remote-notif.c (_initialize_notif): Add declaration.
12352 * remote-sim.c (_initialize_remote_sim): Add declaration.
12353 * remote.c (_initialize_remote): Add declaration.
12354 * reverse.c (_initialize_reverse): Add declaration.
12355 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12356 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12357 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12358 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12359 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12360 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12361 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12362 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12363 Add declaration.
12364 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12365 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12366 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12367 * rust-exp.y (_initialize_rust_exp): Add declaration.
12368 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12369 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12370 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12371 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12372 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12373 * score-tdep.c (_initialize_score_tdep): Add declaration.
12374 * ser-go32.c (_initialize_ser_dos): Add declaration.
12375 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12376 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12377 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12378 * ser-uds.c (_initialize_ser_socket): Add declaration.
12379 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12380 * serial.c (_initialize_serial): Add declaration.
12381 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12382 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12383 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12384 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12385 * skip.c (_initialize_step_skip): Add declaration.
12386 * sol-thread.c (_initialize_sol_thread): Add declaration.
12387 * solib-aix.c (_initialize_solib_aix): Add declaration.
12388 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12389 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12390 * solib-frv.c (_initialize_frv_solib): Add declaration.
12391 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12392 * solib-target.c (_initialize_solib_target): Add declaration.
12393 * solib.c (_initialize_solib): Add declaration.
12394 * source-cache.c (_initialize_source_cache): Add declaration.
12395 * source.c (_initialize_source): Add declaration.
12396 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12397 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12398 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12399 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12400 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12401 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12402 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12403 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12404 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12405 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12406 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12407 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12408 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12409 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12410 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12411 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12412 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12413 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12414 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12415 * stabsread.c (_initialize_stabsread): Add declaration.
12416 * stack.c (_initialize_stack): Add declaration.
12417 * stap-probe.c (_initialize_stap_probe): Add declaration.
12418 * std-regs.c (_initialize_frame_reg): Add declaration.
12419 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12420 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12421 * symfile.c (_initialize_symfile): Add declaration.
12422 * symmisc.c (_initialize_symmisc): Add declaration.
12423 * symtab.c (_initialize_symtab): Add declaration.
12424 * target.c (_initialize_target): Add declaration.
12425 * target-connection.c (_initialize_target_connection): Add
12426 declaration.
12427 * target-dcache.c (_initialize_target_dcache): Add declaration.
12428 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12429 * thread.c (_initialize_thread): Add declaration.
12430 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12431 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12432 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12433 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12434 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12435 * tracectf.c (_initialize_ctf): Add declaration.
12436 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12437 * tracefile.c (_initialize_tracefile): Add declaration.
12438 * tracepoint.c (_initialize_tracepoint): Add declaration.
12439 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12440 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12441 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12442 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12443 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12444 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12445 * tui/tui.c (_initialize_tui): Add declaration.
12446 * typeprint.c (_initialize_typeprint): Add declaration.
12447 * ui-style.c (_initialize_ui_style): Add declaration.
12448 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12449 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12450 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12451 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12452 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12453 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12454 * unittests/filtered_iterator-selftests.c
12455 (_initialize_filtered_iterator_selftests): Add declaration.
12456 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12457 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12458 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12459 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12460 * unittests/main-thread-selftests.c
12461 (_initialize_main_thread_selftests): Add declaration.
12462 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12463 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12464 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12465 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12466 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12467 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12468 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12469 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12470 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12471 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12472 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12473 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12474 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12475 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12476 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12477 declaration.
12478 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12479 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12480 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12481 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12482 * user-regs.c (_initialize_user_regs): Add declaration.
12483 * utils.c (_initialize_utils): Add declaration.
12484 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12485 * valops.c (_initialize_valops): Add declaration.
12486 * valprint.c (_initialize_valprint): Add declaration.
12487 * value.c (_initialize_values): Add declaration.
12488 * varobj.c (_initialize_varobj): Add declaration.
12489 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12490 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12491 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12492 * windows-nat.c (_initialize_windows_nat): Add declaration.
12493 (_initialize_check_for_gdb_ini): Add declaration.
12494 (_initialize_loadable): Add declaration.
12495 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12496 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12497 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12498 * xcoffread.c (_initialize_xcoffread): Add declaration.
12499 * xml-support.c (_initialize_xml_support): Add declaration.
12500 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12501 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12502 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12503 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12504
12505 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12506
12507 * regformats/regdat.sh: Generate declaration for init function.
12508
12509 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12512 up.
12513 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12514 close_one_inferior>: New methods.
12515 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12516 pass down target to find_inferior_pid.
12517 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12518 Pass down target to find_inferior_ptid.
12519 (gdbsim_target::create_inferior): Pass down target to
12520 add_thread_silent.
12521 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12522 target down to find_inferior_ptid and switch_to_thread.
12523 (gdbsim_target::close): Update to call close_one_inferior.
12524 (struct resume_data): Remove.
12525 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12526 directly, rather than through a void pointer.
12527 (gdbsim_target::resume): Update to call resume_one_inferior.
12528
12529 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12530
12531 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12532
12533 2020-01-12 Pedro Alves <palves@redhat.com>
12534
12535 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12536 directly for the current inferior instead of
12537 discard_all_inferiors.
12538 (discard_all_inferiors): Delete.
12539
12540 2020-01-11 Tom Tromey <tom@tromey.com>
12541
12542 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12543 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12544 deprecated_safe_get_selected_frame.
12545
12546 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12547
12548 * inferior.c (print_inferior): Switch inferior before printing it.
12549
12550 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12551 Pedro Alves <palves@redhat.com>
12552
12553 * progspace-and-thread.c (switch_to_program_space_and_thread):
12554 Assert there's an inferior for PSPACE. Use
12555 switch_to_inferior_no_thread to switch the inferior too.
12556 * progspace.c (program_space::~program_space): Call
12557 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12558 (program_space::free_all_objfiles): Don't call clear_symtab_users
12559 here.
12560 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12561
12562 2020-01-10 Pedro Alves <palves@redhat.com>
12563
12564 * NEWS: Mention multi-target debugging, "info connections", and
12565 "add-inferior -no-connection".
12566
12567 2020-01-10 Pedro Alves <palves@redhat.com>
12568
12569 * infrun.c: Include "target-connection.h".
12570 (check_multi_target_resumption): New.
12571 (proceed): Call it.
12572 * target-connection.c (make_target_connection_string): Make
12573 extern.
12574 * target-connection.h (make_target_connection_string): Declare.
12575
12576 2020-01-10 Pedro Alves <palves@redhat.com>
12577
12578 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12579 * inferior.c (uiout_field_connection): New function.
12580 (print_inferior): Add new "connection-id" column.
12581 (add_inferior_command): Show connection number/string of added
12582 inferior.
12583 * process-stratum-target.h
12584 (process_stratum_target::connection_string): New virtual method.
12585 (process_stratum_target::connection_number): New field.
12586 * remote.c (remote_target::connection_string): New override.
12587 * target-connection.c: New file.
12588 * target-connection.h: New file.
12589 * target.c (decref_target): Remove process_stratum targets from
12590 the connection list.
12591 (target_stack::push): Add process_stratum targets to the
12592 connection list.
12593
12594 2020-01-10 Pedro Alves <palves@redhat.com>
12595
12596 Revert:
12597 2016-04-12 Pedro Alves <palves@redhat.com>
12598 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12599 Remove references to name.
12600 * serial.h (struct serial) <name>: Delete.
12601
12602 2020-01-10 Pedro Alves <palves@redhat.com>
12603
12604 * gdbarch-selftests.c (register_to_value_test): Remove "target
12605 already pushed" check.
12606
12607 2020-01-10 Pedro Alves <palves@redhat.com>
12608 John Baldwin <jhb@FreeBSD.org>
12609
12610 * aarch64-linux-nat.c
12611 (aarch64_linux_nat_target::thread_architecture): Adjust.
12612 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12613 (task_command_1): Likewise.
12614 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12615 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12616 (aix_thread_target::store_registers)
12617 (aix_thread_target::thread_alive): Adjust.
12618 * amd64-fbsd-tdep.c: Include "inferior.h".
12619 (amd64fbsd_get_thread_local_address): Pass down target.
12620 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12621 thread's gdbarch instead of target_gdbarch.
12622 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12623 get_last_target_status.
12624 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12625 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12626 inferiors.
12627 (update_inserted_breakpoint_locations): Skip if inferiors with no
12628 execution.
12629 (update_global_location_list): When handling moribund locations,
12630 find representative inferior for location's pspace, and use thread
12631 count of its process_stratum target.
12632 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12633 * bsd-uthread.c (bsd_uthread_target::wait): Use
12634 as_process_stratum_target and adjust thread_change_ptid and
12635 add_thread calls.
12636 (bsd_uthread_target::update_thread_list): Use
12637 as_process_stratum_target and adjust find_thread_ptid,
12638 thread_change_ptid and add_thread calls.
12639 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12640 find_thread_ptid call.
12641 * corelow.c (add_to_thread_list): Adjust add_thread call.
12642 (core_target_open): Adjust add_thread_silent and thread_count
12643 calls.
12644 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12645 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12646 * event-top.c (async_disconnect): Pop targets from all inferiors.
12647 * exec.c (add_target_sections): Push exec target on all inferiors
12648 sharing the program space.
12649 (remove_target_sections): Remove the exec target from all
12650 inferiors sharing the program space.
12651 (exec_on_vfork): New.
12652 * exec.h (exec_on_vfork): Declare.
12653 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12654 Pass it down.
12655 (fbsd_nat_target::update_thread_list): Adjust.
12656 (fbsd_nat_target::resume): Adjust.
12657 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12658 down.
12659 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12660 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12661 get_thread_arch_regcache call.
12662 * fork-child.c (gdb_startup_inferior): Pass target down to
12663 startup_inferior and set_executing.
12664 * gdbthread.h (struct process_stratum_target): Forward declare.
12665 (add_thread, add_thread_silent, add_thread_with_info)
12666 (in_thread_list): Add process_stratum_target parameter.
12667 (find_thread_ptid(inferior*, ptid_t)): New overload.
12668 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12669 parameter.
12670 (all_threads()): Delete overload.
12671 (all_threads, all_non_exited_threads): Add process_stratum_target
12672 parameter.
12673 (all_threads_safe): Use brace initialization.
12674 (thread_count): Add process_stratum_target parameter.
12675 (set_resumed, set_running, set_stop_requested, set_executing)
12676 (threads_are_executing, finish_thread_state): Add
12677 process_stratum_target parameter.
12678 (switch_to_thread): Use is_current_thread.
12679 * i386-fbsd-tdep.c: Include "inferior.h".
12680 (i386fbsd_get_thread_local_address): Pass down target.
12681 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12682 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12683 have_inferiors check.
12684 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12685 (inf_ptrace_target::attach): Adjust.
12686 * infcall.c (run_inferior_call): Adjust.
12687 * infcmd.c (run_command_1): Pass target to
12688 scoped_finish_thread_state.
12689 (proceed_thread_callback): Skip inferiors with no execution.
12690 (continue_command): Rename 'all_threads' local to avoid hiding
12691 'all_threads' function. Adjust get_last_target_status call.
12692 (prepare_one_step): Adjust set_running call.
12693 (signal_command): Use user_visible_resume_target. Compare thread
12694 pointers instead of inferior_ptid.
12695 (info_program_command): Adjust to pass down target.
12696 (attach_command): Mark target's 'thread_executing' flag.
12697 (stop_current_target_threads_ns): New, factored out from ...
12698 (interrupt_target_1): ... this. Switch inferior before making
12699 target calls.
12700 * inferior-iter.h
12701 (struct all_inferiors_iterator, struct all_inferiors_range)
12702 (struct all_inferiors_safe_range)
12703 (struct all_non_exited_inferiors_range): Filter on
12704 process_stratum_target too. Remove explicit.
12705 * inferior.c (inferior::inferior): Push dummy target on target
12706 stack.
12707 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12708 Add process_stratum_target parameter, and pass it down.
12709 (have_live_inferiors): Adjust.
12710 (switch_to_inferior_and_push_target): New.
12711 (add_inferior_command, clone_inferior_command): Handle
12712 "-no-connection" parameter. Use
12713 switch_to_inferior_and_push_target.
12714 (_initialize_inferior): Mention "-no-connection" option in
12715 the help of "add-inferior" and "clone-inferior" commands.
12716 * inferior.h: Include "process-stratum-target.h".
12717 (interrupt_target_1): Use bool.
12718 (struct inferior) <push_target, unpush_target, target_is_pushed,
12719 find_target_beneath, top_target, process_target, target_at,
12720 m_stack>: New.
12721 (discard_all_inferiors): Delete.
12722 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12723 (all_inferiors, all_non_exited_inferiors): Add
12724 process_stratum_target parameter.
12725 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12726 (target_last_proc_target): New global.
12727 (follow_fork_inferior): Push target on new inferior. Pass target
12728 to add_thread_silent. Call exec_on_vfork. Handle target's
12729 reference count.
12730 (follow_fork): Adjust get_last_target_status call. Also consider
12731 target.
12732 (follow_exec): Push target on new inferior.
12733 (struct execution_control_state) <target>: New field.
12734 (user_visible_resume_target): New.
12735 (do_target_resume): Call target_async.
12736 (resume_1): Set target's threads_executing flag. Consider resume
12737 target.
12738 (commit_resume_all_targets): New.
12739 (proceed): Also consider resume target. Skip threads of inferiors
12740 with no execution. Commit resumtion in all targets.
12741 (start_remote): Pass current inferior to wait_for_inferior.
12742 (infrun_thread_stop_requested): Consider target as well. Pass
12743 thread_info pointer to clear_inline_frame_state instead of ptid.
12744 (infrun_thread_thread_exit): Consider target as well.
12745 (random_pending_event_thread): New inferior parameter. Use it.
12746 (do_target_wait): Rename to ...
12747 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12748 down.
12749 (threads_are_resumed_pending_p, do_target_wait): New.
12750 (prepare_for_detach): Adjust calls.
12751 (wait_for_inferior): New inferior parameter. Handle it. Use
12752 do_target_wait_1 instead of do_target_wait.
12753 (fetch_inferior_event): Adjust. Switch to representative
12754 inferior. Pass target down.
12755 (set_last_target_status): Add process_stratum_target parameter.
12756 Save target in global.
12757 (get_last_target_status): Add process_stratum_target parameter and
12758 handle it.
12759 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12760 (context_switch): Check inferior_ptid == null_ptid before calling
12761 inferior_thread().
12762 (get_inferior_stop_soon): Pass down target.
12763 (wait_one): Rename to ...
12764 (poll_one_curr_target): ... this.
12765 (struct wait_one_event): New.
12766 (wait_one): New.
12767 (stop_all_threads): Adjust.
12768 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12769 event's target.
12770 (switch_back_to_stepped_thread): Also consider target.
12771 (print_stop_event): Update.
12772 (normal_stop): Update. Also consider the resume target.
12773 * infrun.h (wait_for_inferior): Remove declaration.
12774 (user_visible_resume_target): New declaration.
12775 (get_last_target_status, set_last_target_status): New
12776 process_stratum_target parameter.
12777 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12778 process_stratum_target parameter, and use it.
12779 (clear_inline_frame_state (thread_info*)): New.
12780 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12781 process_stratum_target parameter.
12782 (clear_inline_frame_state (thread_info*)): Declare.
12783 * linux-fork.c (delete_checkpoint_command): Pass target down to
12784 find_thread_ptid.
12785 (checkpoint_command): Adjust.
12786 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12787 instead of just tweaking inferior_ptid.
12788 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12789 (exit_lwp): Pass target down to find_thread_ptid.
12790 (attach_proc_task_lwp_callback): Pass target down to
12791 add_thread/set_running/set_executing.
12792 (linux_nat_target::attach): Pass target down to
12793 thread_change_ptid.
12794 (get_detach_signal): Pass target down to find_thread_ptid.
12795 Consider last target status's target.
12796 (linux_resume_one_lwp_throw, resume_lwp)
12797 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12798 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12799 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12800 (linux_nat_target::async_wait_fd): New.
12801 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12802 target down.
12803 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12804 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12805 * linux-thread-db.c (struct thread_db_info::process_target): New
12806 field.
12807 (add_thread_db_info): Save target.
12808 (get_thread_db_info): New process_stratum_target parameter. Also
12809 match target.
12810 (delete_thread_db_info): New process_stratum_target parameter.
12811 Also match target.
12812 (thread_from_lwp): Adjust to pass down target.
12813 (thread_db_notice_clone): Pass down target.
12814 (check_thread_db_callback): Pass down target.
12815 (try_thread_db_load_1): Always push the thread_db target.
12816 (try_thread_db_load, record_thread): Pass target down.
12817 (thread_db_target::detach): Pass target down. Always unpush the
12818 thread_db target.
12819 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12820 target down. Always unpush the thread_db target.
12821 (find_new_threads_callback, thread_db_find_new_threads_2)
12822 (thread_db_target::update_thread_list): Pass target down.
12823 (thread_db_target::pid_to_str): Pass current inferior down.
12824 (thread_db_target::get_thread_local_address): Pass target down.
12825 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12826 target down.
12827 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12828 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12829 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12830 (procfs_init_inferior): Rename to ...
12831 (procfs_target::procfs_init_inferior): ... this and adjust.
12832 (procfs_target::create_inferior, procfs_notice_thread)
12833 (procfs_do_thread_registers): Adjust.
12834 * ppc-fbsd-tdep.c: Include "inferior.h".
12835 (ppcfbsd_get_thread_local_address): Pass down target.
12836 * proc-service.c (ps_xfer_memory): Switch current inferior and
12837 program space as well.
12838 (get_ps_regcache): Pass target down.
12839 * process-stratum-target.c
12840 (process_stratum_target::thread_address_space)
12841 (process_stratum_target::thread_architecture): Pass target down.
12842 * process-stratum-target.h
12843 (process_stratum_target::threads_executing): New field.
12844 (as_process_stratum_target): New.
12845 * ravenscar-thread.c
12846 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12847 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12848 down.
12849 * record-btrace.c (record_btrace_target::info_record): Adjust.
12850 (record_btrace_target::record_method)
12851 (record_btrace_target::record_is_replaying)
12852 (record_btrace_target::fetch_registers)
12853 (get_thread_current_frame_id, record_btrace_target::resume)
12854 (record_btrace_target::wait, record_btrace_target::stop): Pass
12855 target down.
12856 * record-full.c (record_full_wait_1): Switch to event thread.
12857 Pass target down.
12858 * regcache.c (regcache::regcache)
12859 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12860 process_stratum_target parameter and handle it.
12861 (current_thread_target): New global.
12862 (get_thread_regcache): Add process_stratum_target parameter and
12863 handle it. Switch inferior before calling target method.
12864 (get_thread_regcache): Pass target down.
12865 (get_thread_regcache_for_ptid): Pass target down.
12866 (registers_changed_ptid): Add process_stratum_target parameter and
12867 handle it.
12868 (registers_changed_thread, registers_changed): Pass target down.
12869 (test_get_thread_arch_aspace_regcache): New.
12870 (current_regcache_test): Define a couple local test_target_ops
12871 instances and use them for testing.
12872 (readwrite_regcache): Pass process_stratum_target parameter.
12873 (cooked_read_test, cooked_write_test): Pass mock_target down.
12874 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12875 (get_thread_arch_aspace_regcache): Add process_stratum_target
12876 parameter.
12877 (regcache::target): New method.
12878 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12879 (regcache::registers_changed_ptid): Add process_stratum_target
12880 parameter.
12881 (regcache::m_target): New field.
12882 (registers_changed_ptid): Add process_stratum_target parameter.
12883 * remote.c (remote_state::supports_vCont_probed): New field.
12884 (remote_target::async_wait_fd): New method.
12885 (remote_unpush_and_throw): Add remote_target parameter.
12886 (get_current_remote_target): Adjust.
12887 (remote_target::remote_add_inferior): Push target.
12888 (remote_target::remote_add_thread)
12889 (remote_target::remote_notice_new_inferior)
12890 (get_remote_thread_info): Pass target down.
12891 (remote_target::update_thread_list): Skip threads of inferiors
12892 bound to other targets. (remote_target::close): Don't discard
12893 inferiors. (remote_target::add_current_inferior_and_thread)
12894 (remote_target::process_initial_stop_replies)
12895 (remote_target::start_remote)
12896 (remote_target::remote_serial_quit_handler): Pass down target.
12897 (remote_target::remote_unpush_target): New remote_target
12898 parameter. Unpush the target from all inferiors.
12899 (remote_target::remote_unpush_and_throw): New remote_target
12900 parameter. Pass it down.
12901 (remote_target::open_1): Check whether the current inferior has
12902 execution instead of checking whether any inferior is live. Pass
12903 target down.
12904 (remote_target::remote_detach_1): Pass down target. Use
12905 remote_unpush_target.
12906 (extended_remote_target::attach): Pass down target.
12907 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12908 (remote_target::append_resumption): Pass down target.
12909 (remote_target::append_pending_thread_resumptions)
12910 (remote_target::remote_resume_with_hc, remote_target::resume)
12911 (remote_target::commit_resume): Pass down target.
12912 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12913 (remote_target::interrupt_query)
12914 (remote_target::remove_new_fork_children)
12915 (remote_target::check_pending_events_prevent_wildcard_vcont)
12916 (remote_target::remote_parse_stop_reply)
12917 (remote_target::process_stop_reply): Pass down target.
12918 (first_remote_resumed_thread): New remote_target parameter. Pass
12919 it down.
12920 (remote_target::wait_as): Pass down target.
12921 (unpush_and_perror): New remote_target parameter. Pass it down.
12922 (remote_target::readchar, remote_target::remote_serial_write)
12923 (remote_target::getpkt_or_notif_sane_1)
12924 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12925 down target.
12926 (remote_target::mourn_inferior): Pass down target. Use
12927 remote_unpush_target.
12928 (remote_target::core_of_thread)
12929 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12930 (remote_target::pid_to_exec_file)
12931 (remote_target::thread_handle_to_thread_info): Pass down target.
12932 (remote_target::async_wait_fd): New.
12933 * riscv-fbsd-tdep.c: Include "inferior.h".
12934 (riscv_fbsd_get_thread_local_address): Pass down target.
12935 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12936 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12937 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12938 Adjust.
12939 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12940 * solib-svr4.c (enable_break): Pass down target.
12941 * spu-multiarch.c (parse_spufs_run): Pass down target.
12942 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12943 * target-delegates.c: Regenerate.
12944 * target.c (g_target_stack): Delete.
12945 (current_top_target): Return the current inferior's top target.
12946 (target_has_execution_1): Refer to the passed-in inferior's top
12947 target.
12948 (target_supports_terminal_ours): Check whether the initial
12949 inferior was already created.
12950 (decref_target): New.
12951 (target_stack::push): Incref/decref the target.
12952 (push_target, push_target, unpush_target): Adjust.
12953 (target_stack::unpush): Defref target.
12954 (target_is_pushed): Return bool. Adjust to refer to the current
12955 inferior's target stack.
12956 (dispose_inferior): Delete, and inline parts ...
12957 (target_preopen): ... here. Only dispose of the current inferior.
12958 (target_detach): Hold strong target reference while detaching.
12959 Pass target down.
12960 (target_thread_name): Add assertion.
12961 (target_resume): Pass down target.
12962 (target_ops::beneath, find_target_at): Adjust to refer to the
12963 current inferior's target stack.
12964 (get_dummy_target): New.
12965 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12966 has a thread running.
12967 (initialize_targets): Rename to ...
12968 (_initialize_target): ... this.
12969 * target.h: Include "gdbsupport/refcounted-object.h".
12970 (struct target_ops): Inherit refcounted_object.
12971 (target_ops::shortname, target_ops::longname): Make const.
12972 (target_ops::async_wait_fd): New method.
12973 (decref_target): Declare.
12974 (struct target_ops_ref_policy): New.
12975 (target_ops_ref): New typedef.
12976 (get_dummy_target): Declare function.
12977 (target_is_pushed): Return bool.
12978 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12979 (all_matching_threads_iterator::all_matching_threads_iterator):
12980 Handle filter target.
12981 * thread-iter.h (struct all_matching_threads_iterator, struct
12982 all_matching_threads_range, class all_non_exited_threads_range):
12983 Filter by target too. Remove explicit.
12984 * thread.c (threads_executing): Delete.
12985 (inferior_thread): Pass down current inferior.
12986 (clear_thread_inferior_resources): Pass down thread pointer
12987 instead of ptid_t.
12988 (add_thread_silent, add_thread_with_info, add_thread): Add
12989 process_stratum_target parameter. Use it for thread and inferior
12990 searches.
12991 (is_current_thread): New.
12992 (thread_info::deletable): Use it.
12993 (find_thread_ptid, thread_count, in_thread_list)
12994 (thread_change_ptid, set_resumed, set_running): New
12995 process_stratum_target parameter. Pass it down.
12996 (set_executing): New process_stratum_target parameter. Pass it
12997 down. Adjust reference to 'threads_executing'.
12998 (threads_are_executing): New process_stratum_target parameter.
12999 Adjust reference to 'threads_executing'.
13000 (set_stop_requested, finish_thread_state): New
13001 process_stratum_target parameter. Pass it down.
13002 (switch_to_thread): Also match inferior.
13003 (switch_to_thread): New process_stratum_target parameter. Pass it
13004 down.
13005 (update_threads_executing): Reimplement.
13006 * top.c (quit_force): Pop targets from all inferior.
13007 (gdb_init): Don't call initialize_targets.
13008 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13009 Declare.
13010 (windows_add_thread, windows_delete_thread): Adjust.
13011 (get_windows_debug_event): Rename to ...
13012 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13013 * tracefile-tfile.c (tfile_target_open): Pass down target.
13014 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13015 Forward declare.
13016 (switch_to_thread): Add process_stratum_target parameter.
13017 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13018 parameter. Use it.
13019 (mi_on_resume): Pass target down.
13020 * nat/fork-inferior.c (startup_inferior): Add
13021 process_stratum_target parameter. Pass it down.
13022 * nat/fork-inferior.h (startup_inferior): Add
13023 process_stratum_target parameter.
13024 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13025
13026 2020-01-10 Pedro Alves <palves@redhat.com>
13027
13028 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13029 directly. Instead find the first thread in the thread list and
13030 use switch_to_thread.
13031
13032 2020-01-10 Pedro Alves <palves@redhat.com>
13033
13034 * remote.c (remote_target::remote_add_inferior): Don't bind a
13035 process to the current inferior if the current inferior is already
13036 bound to a process.
13037
13038 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13039 Pedro Alves <palves@redhat.com>
13040
13041 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13042 If no process is specified, return null_ptid instead of
13043 inferior_ptid.
13044 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13045 TARGET_WAITKIND_SIGNALLED with no pid.
13046
13047 2020-01-10 Pedro Alves <palves@redhat.com>
13048
13049 * remote.c (first_remote_resumed_thread): New.
13050 (remote_target::wait_as): Use it as default event_ptid instead of
13051 inferior_ptid.
13052
13053 2020-01-10 Pedro Alves <palves@redhat.com>
13054
13055 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13056
13057 2020-01-10 Pedro Alves <palves@redhat.com>
13058
13059 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13060 not -1.
13061
13062 2020-01-10 Pedro Alves <palves@redhat.com>
13063
13064 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13065 ptid to get_last_target_status.
13066 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13067 ptid to get_last_target_status.
13068 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13069 get_last_target_status.
13070 (info_program_command): Don't pass a target_waitstatus to
13071 get_last_target_status.
13072 * infrun.c (init_wait_for_inferior): Use
13073 nullify_last_target_wait_ptid.
13074 (get_last_target_status): Handle nullptr arguments.
13075 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13076 (print_stop_event): Don't pass a ptid to get_last_target_status.
13077 (normal_stop): Don't pass a ptid to get_last_target_status.
13078 * infrun.h (get_last_target_status, set_last_target_status): Move
13079 comments here and update.
13080 (nullify_last_target_wait_ptid): Declare.
13081 * linux-fork.c (fork_load_infrun_state): Remove local extern
13082 declaration of nullify_last_target_wait_ptid.
13083 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13084 to get_last_target_status.
13085
13086 2020-01-10 Pedro Alves <palves@redhat.com>
13087
13088 * gdbthread.h (scoped_restore_current_thread)
13089 <dont_restore, restore, m_dont_restore>: Declare.
13090 * thread.c (thread_alive): Add assertion. Return bool.
13091 (switch_to_thread_if_alive): New.
13092 (prune_threads): Switch inferior/thread.
13093 (print_thread_info_1): Switch thread before calling target methods.
13094 (scoped_restore_current_thread::restore): New, factored out from
13095 ...
13096 (scoped_restore_current_thread::~scoped_restore_current_thread):
13097 ... this.
13098 (scoped_restore_current_thread::scoped_restore_current_thread):
13099 Add assertion.
13100 (thread_apply_all_command, thread_select): Use
13101 switch_to_thread_if_alive.
13102 * infrun.c (proceed, restart_threads, handle_signal_stop)
13103 (switch_back_to_stepped_thread): Switch current thread before
13104 calling target methods.
13105
13106 2020-01-10 Pedro Alves <palves@redhat.com>
13107
13108 * inferior.c (switch_to_inferior_no_thread): New function,
13109 factored out from ...
13110 (inferior_command): ... here.
13111 * inferior.h (switch_to_inferior_no_thread): Declare.
13112 * mi/mi-main.c (run_one_inferior): Use
13113 switch_to_inferior_no_thread.
13114
13115 2020-01-10 Pedro Alves <palves@redhat.com>
13116
13117 * infcmd.c (kill_command): Remove dead code.
13118
13119 2020-01-10 Pedro Alves <palves@redhat.com>
13120
13121 * remote.c (remote_target::mourn_inferior): No longer check
13122 whether the target is running.
13123
13124 2020-01-10 Pedro Alves <palves@redhat.com>
13125
13126 * corelow.c (core_target::has_execution): Change parameter type to
13127 inferior pointer.
13128 * inferior.c (number_of_live_inferiors): Use
13129 inferior::has_execution instead of target_has_execution_1.
13130 * inferior.h (inferior::has_execution): New.
13131 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13132 inferior::has_execution instead of target_has_execution_1.
13133 * process-stratum-target.c
13134 (process_stratum_target::has_execution): Change parameter type to
13135 inferior pointer. Check the inferior's PID instead of
13136 inferior_ptid.
13137 * process-stratum-target.h
13138 (process_stratum_target::has_execution): Change parameter type to
13139 inferior pointer.
13140 * record-full.c (record_full_core_target::has_execution): Change
13141 parameter type to inferior pointer.
13142 * target.c (target_has_execution_1): Change parameter type to
13143 inferior pointer.
13144 (target_has_execution_current): Adjust.
13145 * target.h (target_ops::has_execution): Change parameter type to
13146 inferior pointer.
13147 (target_has_execution_1): Change parameter type to inferior
13148 pointer. Change return type to bool.
13149 * tracefile.h (tracefile_target::has_execution): Change parameter
13150 type to inferior pointer.
13151
13152 2020-01-10 Pedro Alves <palves@redhat.com>
13153
13154 * exceptions.c (print_flush): Remove current_top_target() check.
13155
13156 2020-01-10 Pedro Alves <palves@redhat.com>
13157
13158 * remote.c (show_remote_exec_file): Show the current inferior's
13159 exec-file instead of the command variable's value.
13160
13161 2020-01-10 Pedro Alves <palves@redhat.com>
13162
13163 * record-full.c (record_full_resume_ptid): New global.
13164 (record_full_target::resume): Set it.
13165 (record_full_wait_1): Use record_full_resume_ptid instead of
13166 inferior_ptid.
13167
13168 2020-01-10 Pedro Alves <palves@redhat.com>
13169
13170 * gdbthread.h (scoped_restore_current_thread)
13171 <dont_restore, restore, m_dont_restore>: Declare.
13172 * thread.c (thread_alive): Add assertion. Return bool.
13173 (switch_to_thread_if_alive): New.
13174 (prune_threads): Switch inferior/thread.
13175 (print_thread_info_1): Switch thread before calling target methods.
13176 (scoped_restore_current_thread::restore): New, factored out from
13177 ...
13178 (scoped_restore_current_thread::~scoped_restore_current_thread):
13179 ... this.
13180 (scoped_restore_current_thread::scoped_restore_current_thread):
13181 Add assertion.
13182 (thread_apply_all_command, thread_select): Use
13183 switch_to_thread_if_alive.
13184
13185 2020-01-10 George Barrett <bob@bob131.so>
13186
13187 * stap-probe.c (stap_modify_semaphore): Don't check for null
13188 semaphores.
13189 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13190 for null semaphores.
13191
13192 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13193
13194 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13195 all source windows, and maintain horizontal scroll status while
13196 doing so.
13197
13198 2020-01-09 Tom Tromey <tom@tromey.com>
13199
13200 PR tui/18932:
13201 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13202 update_source_window, not print_source_lines.
13203
13204 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13205
13206 * tui/tui.c (tui_enable): Register tui hooks after calling
13207 tui_display_main.
13208
13209 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13210
13211 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13212
13213 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13214
13215 * thread.c (print_thread_info_1): Fix indentation.
13216
13217 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13218
13219 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13220 unique_xmalloc_ptr outside the if to always free the demangled name.
13221
13222 2020-01-08 Tom Tromey <tromey@adacore.com>
13223
13224 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13225 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13226 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13227 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13228 Remove.
13229 (section_offsets): New typedef.
13230 * symtab.c (fixup_section, get_msymbol_address): Update.
13231 * symmisc.c (dump_msymbols): Update.
13232 * symfile.h (relative_addr_info_to_section_offsets)
13233 (symfile_map_offsets_to_segments): Update.
13234 * symfile.c (build_section_addr_info_from_objfile)
13235 (init_objfile_sect_indices): Update.
13236 (struct place_section_arg): Change type of "offsets".
13237 (place_section): Update.
13238 (relative_addr_info_to_section_offsets): Change type of
13239 "section_offsets". Remove "num_sections" parameter.
13240 (default_symfile_offsets, syms_from_objfile_1)
13241 (set_objfile_default_section_offset): Update.
13242 (reread_symbols): No need to preserve section offsets by hand.
13243 (symfile_map_offsets_to_segments): Change type of "offsets".
13244 * stap-probe.c (relocate_address): Update.
13245 * stabsread.h (process_one_symbol): Update.
13246 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13247 (solib_target_relocate_section_addresses): Update.
13248 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13249 Update.
13250 * solib-frv.c (frv_relocate_main_executable): Update.
13251 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13252 * solib-aix.c (solib_aix_get_section_offsets): Change return
13253 type.
13254 (solib_aix_solib_create_inferior_hook): Update.
13255 * remote.c (remote_target::get_offsets): Update.
13256 * psymtab.c (find_pc_sect_psymtab): Update.
13257 * psympriv.h (struct partial_symbol) <address, text_low,
13258 text_high>: Update.
13259 * objfiles.h (obj_section_offset): Update.
13260 (struct objfile) <section_offsets>: Change type.
13261 <num_sections>: Remove.
13262 (objfile_relocate): Update.
13263 * objfiles.c (entry_point_address_query): Update
13264 (relocate_one_symbol): Change type of "section_offsets".
13265 (objfile_relocate1, objfile_relocate1): Change type of
13266 "new_offsets".
13267 (objfile_rebase1): Update.
13268 * mipsread.c (mipscoff_symfile_read): Update.
13269 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13270 parameter.
13271 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13272 (parse_external, psymtab_to_symtab_1): Update.
13273 * machoread.c (macho_symfile_offsets): Update.
13274 * ia64-tdep.c (ia64_find_unwind_table): Update.
13275 * hppa-tdep.c (read_unwind_info): Update.
13276 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13277 * dwarf2read.c (create_addrmap_from_index)
13278 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13279 (process_psymtab_comp_unit_reader, add_partial_symbol)
13280 (add_partial_subprogram, process_full_comp_unit)
13281 (read_file_scope, read_func_scope, read_lexical_block_scope)
13282 (read_call_site_scope, dwarf2_rnglists_process)
13283 (dwarf2_ranges_process, dwarf2_ranges_read)
13284 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13285 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13286 Update.
13287 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13288 Update.
13289 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13290 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13291 (process_one_symbol): Change type of "section_offsets".
13292 * ctfread.c (get_objfile_text_range): Update.
13293 * coffread.c (coff_symtab_read, enter_linenos)
13294 (process_coff_symbol): Update.
13295 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13296 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13297
13298 2020-01-08 Tom Tromey <tromey@adacore.com>
13299
13300 * dwarf2read.c (parse_macro_definition): Use std::string.
13301 (parse_macro_definition): Likewise.
13302
13303 2020-01-08 Tom Tromey <tromey@adacore.com>
13304
13305 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13306 (ATTR_ALLOC_CHUNK): Remove.
13307
13308 2020-01-08 Tom Tromey <tromey@adacore.com>
13309
13310 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13311
13312 2020-01-08 Tom Tromey <tromey@adacore.com>
13313
13314 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13315 (dwarf2_compute_name, open_dwo_file): Likewise.
13316 (process_enumeration_scope): Use std::vector.
13317 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13318 (partial_die_info::fixup, dwarf2_start_subfile)
13319 (guess_full_die_structure_name, dwarf2_name): Likewise.
13320 (determine_prefix): Update.
13321 (guess_full_die_structure_name): Make return type const.
13322 (partial_die_full_name): Return unique_xmalloc_ptr.
13323 (DW_FIELD_ALLOC_CHUNK): Remove.
13324
13325 2020-01-07 Tom Tromey <tromey@adacore.com>
13326
13327 PR build/24937:
13328 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13329
13330 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13331
13332 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13333
13334 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13335
13336 * stack.c (print_frame_info): Move disassemble_next_line code
13337 inside source_print block.
13338
13339 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13340
13341 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13342 gdb/signals.h, as we are now using native signal symbols.
13343
13344 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13345
13346 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13347 overflow by an early check of content vs threshold.
13348 * tui/tui-source.c (tui_source_window::line_is_displayed):
13349 Likewise.
13350
13351 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13352
13353 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13354
13355 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13356
13357 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13358 export table if no section contains it's RVA.
13359
13360 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13361
13362 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13363
13364 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13365
13366 * source.c (print_source_lines_base): Set last_line_listed.
13367
13368 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13369
13370 * tui/tui-disasm.c: Remove trailing spaces.
13371
13372 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13373 Pedro Alves <palves@redhat.com>
13374
13375 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13376 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13377 (windows_gdb_signal_to_target): New function, uses the above
13378 enumeration to convert GDB internal signal codes to equivalent
13379 Windows codes.
13380 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13381 * windows-nat.c: Include "gdb_wait.h".
13382 (get_windows_debug_event): Extract the fatal exception from the
13383 exit status and convert to the equivalent Posix signal number.
13384 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13385 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13386 * gdbsupport/gdb_wait.c: New file, implements
13387 windows_status_to_termsig.
13388 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13389 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13390
13391 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13392
13393 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13394 show_layout.
13395
13396 2020-01-05 Luis Machado <luis.machado@linaro.org>
13397
13398 * aarch64-linux-nat.c
13399 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13400 and bfd_mach_aarch64.
13401
13402 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13403
13404 * ui-file.c (stdio_file::can_emit_style_escape)
13405 (tee_file::can_emit_style_escape): Ensure style is used also on
13406 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13407 to gdb_stdout.
13408 * main.c (set_gdb_data_directory): Use file style to output the
13409 warning that the given pathname is not a directory.
13410 * top.c (show_history_filename, gdb_safe_append_history)
13411 (show_gdb_datadir): Use file style.
13412
13413 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13414
13415 * solib-target.c (struct lm_info_target):
13416 Change offsets to be a unique_xmalloc_ptr.
13417 (solib_target_relocate_section_addresses): Update.
13418
13419 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13420
13421 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13422
13423 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13424
13425 * MAINTAINERS (Write After Approval): Add myself.
13426
13427 2020-01-02 Luis Machado <luis.machado@linaro.org>
13428
13429 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13430 Cell BE architecture.
13431 * target.h (struct target_ops) <thread_architecture>: Likewise.
13432
13433 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13434
13435 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13436
13437 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13438
13439 * MAINTAINERS (Write After Approval): Add myself.
13440
13441 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13442
13443 * gdbarch.sh: Update copyright year range of generated files.
13444
13445 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13446
13447 Update copyright year range in all GDB files.
13448
13449 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13450
13451 * copyright.py: Convert to Python 3.
13452
13453 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13454
13455 * copyright.py: Adapt after move of gnulib directory from gdb
13456 directory to toplevel directory.
13457
13458 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13459
13460 * copyright.py (main): Exit if run from the wrong directory.
13461
13462 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13463
13464 * top.c (print_gdb_version): Change copyright year to 2020.
13465
13466 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13467
13468 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13469
13470 For older changes see ChangeLog-2019.
13471 \f
13472 Local Variables:
13473 mode: change-log
13474 left-margin: 8
13475 fill-column: 74
13476 version-control: never
13477 coding: utf-8
13478 End: