gdb: use bool in the solib catchpoint area
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
2
3 * breakpoint.h (init_catchpoint): Change int parameter to bool.
4 (add_solib_catchpoint): Likewise.
5 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
6 to bool.
7 (add_solib_catchpoint): Change int parameter/variable to bool.
8 (catch_load_or_unload): Likewise.
9 (init_catchpoint): Likewise.
10 (create_fork_vfork_event_catchpoint): Likewise.
11 (catch_fork_command_1): Likewise.
12 (catch_exec_command_1): Likewise.
13
14 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
15
16 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
17 Change instance_flags to m_instance_flags.
18
19 2020-09-16 Tom Tromey <tromey@adacore.com>
20
21 PR gdb/26598:
22 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
23
24 2020-09-16 John Baldwin <jhb@FreeBSD.org>
25
26 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
27 PL_FLAG_EXEC.
28 (fbsd_nat_target::insert_exec_catchpoint)
29 (fbsd_nat_target::remove_exec_catchpoint): Always define.
30 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
31 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
32
33 2020-09-16 John Baldwin <jhb@FreeBSD.org>
34
35 * configure.ac: Remove check for kinfo_getvmmap().
36 * configure, config.in: Regenerate.
37 * fbsd-nat.c (fbsd_read_mapping): Remove
38 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
39 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
40 kinfo_get_vmmap() are always present.
41
42 2020-09-16 John Baldwin <jhb@FreeBSD.org>
43
44 * fbsd-nat.c: Always include support for
45 TARGET_OBJECT_SIGNAL_INFO.
46
47 2020-09-16 John Baldwin <jhb@FreeBSD.org>
48
49 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
50 sysctl and remove procfs fallback.
51
52 2020-09-16 John Baldwin <jhb@FreeBSD.org>
53
54 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
55 * fbsd-nat.h: Likewise.
56
57 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
58
59 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
60 argument.
61
62 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
63
64 * ada-lang.c (ada_language_data): Delete.
65 (ada_language): Remove references to ada_language_data.
66 * c-lang.c (c_language_data): Delete.
67 (c_language): Remove references to c_language_data.
68 (cplus_language_data): Delete.
69 (cplus_language): Remove references to cplus_language_data.
70 (asm_language_data): Delete.
71 (asm_language): Remove references to asm_language_data.
72 (minimal_language_data): Delete.
73 (minimal_language): Remove references to minimal_language_data.
74 * d-lang.c (d_language_data): Delete.
75 (d_language): Remove references to d_language_data.
76 * f-lang.c (f_language_data): Delete.
77 (f_language): Remove references to f_language_data.
78 * go-lang.c (go_language_data): Delete.
79 (go_language): Remove references to go_language_data.
80 * language.c (unknown_language_data): Delete.
81 (unknown_language): Remove references to unknown_language_data.
82 (auto_language_data): Delete.
83 (auto_language): Remove references to auto_language_data.
84 * language.h (language_data): Delete struct.
85 (language_defn): No longer inherit from language_data.
86 * m2-lang.c (m2_language_data): Delete.
87 (m2_language): Remove references to m2_language_data.
88 * objc-lang.c (objc_language_data): Delete.
89 (objc_language): Remove references to objc_language_data.
90 * opencl-lang.c (opencl_language_data): Delete.
91 (opencl_language): Remove references to opencl_language_data.
92 * p-lang.c (pascal_language_data): Delete.
93 (pascal_language): Remove references to pascal_language_data.
94 * rust-lang.c (rust_language_data): Delete.
95 (rust_language): Remove references to rust_language_data.
96
97 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * ada-lang.c (ada_language_data): Remove la_op_print_tab
100 initializer.
101 (ada_language::opcode_print_table): New member function.
102 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
103 (c_language::opcode_print_table): New member function.
104 (cplus_language_data): Remove la_op_print_tab initializer.
105 (cplus_language::opcode_print_table): New member function.
106 (asm_language_data): Remove la_op_print_tab initializer.
107 (asm_language::opcode_print_table): New member function.
108 (minimal_language_data): Remove la_op_print_tab initializer.
109 (minimal_language::opcode_print_table): New member function.
110 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
111 (d_language::opcode_print_table): New member function.
112 * expprint.c (print_subexp_standard): Update call to
113 opcode_print_table.
114 (op_string): Likewise.
115 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
116 (f_language::opcode_print_table): New member function.
117 * go-lang.c (go_language_data): Remove la_op_print_tab
118 initializer.
119 (go_language::opcode_print_table): New member function.
120 * language.c (unknown_language_data): Remove la_op_print_tab
121 initializer.
122 (unknown_language::opcode_print_table): New member function.
123 (auto_language_data): Remove la_op_print_tab initializer.
124 (auto_language::opcode_print_table): New member function.
125 * language.h (language_data): Remove la_op_print_tab field.
126 (language_defn::opcode_print_table): Declare new member function.
127 * m2-lang.c (m2_language_data): Remove la_op_print_tab
128 initializer.
129 (m2_language::opcode_print_table): New member function.
130 * objc-lang.c (objc_language_data): Remove la_op_print_tab
131 initializer.
132 (objc_language::opcode_print_table): New member function.
133 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
134 initializer.
135 (opencl_language::opcode_print_table): New member function.
136 * p-lang.c (pascal_language_data): Remove la_op_print_tab
137 initializer.
138 (pascal_language::opcode_print_table): New member function.
139 * rust-lang.c (rust_language_data): Remove la_op_print_tab
140 initializer.
141 (rust_language::opcode_print_table): New member function.
142
143 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
146 (ada_language::expression_ops): New member function.
147 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
148 (c_language::expression_ops): New member function.
149 (cplus_language_data): Remove la_exp_desc initializer.
150 (cplus_language::expression_ops): New member function.
151 (asm_language_data): Remove la_exp_desc initializer.
152 (asm_language::expression_ops): New member function.
153 (minimal_language_data): Remove la_exp_desc initializer.
154 (minimal_language::expression_ops): New member function.
155 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
156 (d_language::expression_ops): New member function.
157 * eval.c (evaluate_subexp): Update call to expression_ops.
158 * expprint.c (print_subexp): Likewise.
159 (op_name): Likewise.
160 (dump_subexp_body): Likewise.
161 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
162 (f_language::expression_ops): New member function.
163 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
164 (go_language::expression_ops): New member function.
165 * language.c (language_defn::expression_ops): New function.
166 (unknown_language_data): Remove la_exp_desc initializer.
167 (auto_language_data): Likewise.
168 * language.h (language_data): Remove la_exp_desc field.
169 (language_defn::expression_ops): Declare new member function.
170 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
171 (m2_language::expression_ops): New member function.
172 * objc-lang.c (objc_language_data): Remove la_exp_desc
173 initializer.
174 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
175 initializer.
176 (opencl_language::expression_ops): New member function.
177 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
178 * parse.c (operator_length): Update call to expression_ops.
179 (exp_iterate): Likewise.
180 * rust-lang.c (rust_language_data): Remove la_exp_desc
181 initializer.
182 (ruse_language::expression_ops): New member function.
183
184 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * ada-lang.c (ada_language_data): Remove la_varobj_ops
187 initializer.
188 (ada_language::varobj_ops): New member function.
189 * c-lang.c (c_language_data): Remove la_varobj_ops
190 initializer.
191 (cplus_language_data): Likewise.
192 (cplus_language::varobj_ops): New member function.
193 (asm_language_data): Remove la_varobj_ops initializer.
194 (minimal_language_data): Likewise.
195 * d-lang.c (d_language_data): Likewise.
196 * f-lang.c (f_language_data): Likewise.
197 * go-lang.c (go_language_data): Likewise.
198 * language.c (language_defn::varobj_ops): New function.
199 (unknown_language_data): Remove la_varobj_ops
200 initializer.
201 (auto_language_data): Likewise.
202 * language.h (language_data): Remove la_varobj_ops field.
203 (language_defn::varobj_ops): Declare new member function.
204 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
205 * objc-lang.c (objc_language_data): Likewise.
206 * opencl-lang.c (opencl_language_data): Likewise.
207 * p-lang.c (pascal_language_data): Likewise.
208 * rust-lang.c (rust_language_data): Likewise.
209 * varobj.c (varobj_create): Update call to varobj_ops.
210 * varobj.h (default_varobj_ops): Delete define.
211
212 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * ada-lang.c (ada_language_data): Remove la_macro_expansion
215 initializer.
216 * c-lang.c (c_language_data): Likewise.
217 (c_language::macro_expansion): New member function.
218 (cplus_language_data): Likewise.
219 (cplus_language::macro_expansion): New member function.
220 (asm_language_data): Likewise.
221 (asm_language::macro_expansion): New member function.
222 (minimal_language_data): Likewise.
223 (minimal_language::macro_expansion): New member function.
224 * d-lang.c (d_language_data): Remove la_macro_expansion
225 initializer.
226 * f-lang.c (f_language_data): Likewise.
227 * go-lang.c (go_language_data): Likewise.
228 * language.c (unknown_language_data): Likewise.
229 (auto_language_data): Likewise.
230 * language.h (language_data): Remove la_macro_expansion field.
231 (language_defn::macro_expansion): New member function.
232 * m2-lang.c (m2_language_data): Remove la_macro_expansion
233 initializer.
234 * objc-lang.c (objc_language_data): Likewise.
235 (objc_language::macro_expansion): New member function.
236 * opencl-lang.c (opencl_language_data): Likewise.
237 (opencl_language::macro_expansion): New member function.
238 * p-lang.c (pascal_language_data): Remove la_macro_expansion
239 initializer.
240 * rust-lang.c (rust_language_data): Likewise.
241 * symtab.c (default_collect_symbol_completion_matches_break_on):
242 Update call to macro_expansion.
243
244 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 * ada-lang.c (ada_language_data): Remove la_array_ordering
247 initializer.
248 * c-lang.c (c_language_data): Likewise.
249 (cplus_language_data): Likewise.
250 (asm_language_data): Likewise.
251 (minimal_language_data): Likewise.
252 * d-lang.c (d_language_data): Likewise.
253 * dwarf2/read.c (read_array_order): Update for call to
254 array_ordering.
255 * f-lang.c (f_language_data): Remove la_array_ordering
256 initializer.
257 (f_language::array_ordering): New member function.
258 * go-lang.c (go_language_data): Remove la_array_ordering
259 initializer.
260 * language.c (unknown_language_data): Likewise.
261 (auto_language_data): Likewise.
262 * language.h (language_data): Delete la_array_ordering field.
263 (language_defn::array_ordering): New member function.
264 * m2-lang.c (m2_language_data): Remove la_array_ordering
265 initializer.
266 * objc-lang.c (objc_language_data): Likewise.
267 * opencl-lang.c (opencl_language_data): Likewise.
268 * p-lang.c (pascal_language_data): Likewise.
269 * rust-lang.c (rust_language_data): Likewise.
270
271 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
274 initializer.
275 * c-lang.c (c_language_data): Likewise.
276 (cplus_language_data): Likewise.
277 (asm_language_data): Likewise.
278 (minimal_language_data): Likewise.
279 * d-lang.c (d_language_data): Likewise.
280 * f-lang.c (f_language_data): Likewise.
281 (f_language::case_sensitivity): New member function.
282 * go-lang.c (go_language_data): Remove la_case_sensitivity
283 initializer.
284 * language.c (enum case_mode): Moved here from language.h.
285 (case_mode): Make static.
286 (show_case_command): Update for case_sensitivity being a method.
287 (set_case_command): Likewise.
288 (set_range_case): Likewise.
289 (unknown_language_data): Remove la_case_sensitivity initializer.
290 (auto_language_data): Likewise.
291 * language.h (case_mode): Delete, move enum declaration to
292 language.c.
293 (language_data): Delete la_case_sensitivity field.
294 (language_defn::case_sensitivity): New member function.
295 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
296 initializer.
297 * objc-lang.c (objc_language_data): Likewise.
298 * opencl-lang.c (opencl_language_data): Likewise.
299 * p-lang.c (pascal_language_data): Likewise.
300 * rust-lang.c (rust_language_data): Likewise.
301
302 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * ada-lang.c (ada_language_data): Remove la_range_check
305 initializer.
306 * c-lang.c (c_language_data): Likewise.
307 (cplus_language_data): Likewise.
308 (asm_language_data): Likewise.
309 (minimal_language_data): Likewise.
310 * d-lang.c (d_language_data): Likewise.
311 * f-lang.c (f_language_data): Likewise.
312 (f_language::range_checking_on_by_default): New member function.
313 * go-lang.c (go_language_data): Remove la_range_check initializer.
314 * language.c (enum range_mode): Moved here from language.h.
315 (range_mode): Made static.
316 (show_range_command): Update to use
317 range_checking_on_by_default.
318 (set_range_command): Likewise.
319 (set_range_case): Likewise.
320 (unknown_language_data): Remove la_range_check initializer.
321 (auto_language_data): Likewise.
322 * language.h (range_mode): Delete. Enum definition moved to
323 language.c.
324 (language_data): Remove la_range_check field.
325 (language_defn::range_checking_on_by_default): New member
326 function.
327 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
328 (m2_language::range_checking_on_by_default): New member function.
329 * objc-lang.c (objc_language_data): Remove la_range_check
330 initializer.
331 * opencl-lang.c (opencl_language_data): Likewise.
332 * p-lang.c (pascal_language_data): Likewise.
333 (pascal_language::range_checking_on_by_default): New member
334 function.
335 * rust-lang.c (rust_language_data): Remove la_range_check
336 initializer.
337 (rust_language::range_checking_on_by_default): New member
338 function.
339
340 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
341
342 * dwarf2/read.c (dwarf2_physname): Remove special case for
343 language_go.
344 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
345 member function.
346
347 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * ada-lang.c (ada_language_data): Remove
350 la_store_sym_names_in_linkage_form_p initializer.
351 (ada_language::store_sym_names_in_linkage_form_p): New member
352 function.
353 * c-lang.c (c_language_data): Remove
354 la_store_sym_names_in_linkage_form_p initializer.
355 (c_language::store_sym_names_in_linkage_form_p): New member
356 function.
357 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
358 initializer.
359 (asm_language_data): Likewise.
360 (asm_language::store_sym_names_in_linkage_form_p): New member
361 function.
362 (minimal_language_data): Remove
363 la_store_sym_names_in_linkage_form_p initializer.
364 (minimal_language::store_sym_names_in_linkage_form_p): New member
365 function.
366 * d-lang.c (d_language_data): Remove
367 la_store_sym_names_in_linkage_form_p initializer.
368 * dwarf2/read.c (dwarf2_physname): Update call to
369 store_sym_names_in_linkage_form_p.
370 * f-lang.c (f_language_data): Remove
371 la_store_sym_names_in_linkage_form_p initializer.
372 * go-lang.c (go_language_data): Remove
373 la_store_sym_names_in_linkage_form_p initializer.
374 * language.c (unknown_language_data): Remove
375 la_store_sym_names_in_linkage_form_p initializer.
376 (unknown_language::store_sym_names_in_linkage_form_p): New member
377 function.
378 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
379 initializer.
380 (auto_language::store_sym_names_in_linkage_form_p): New member
381 function.
382 * language.h (language_data): Remove
383 la_store_sym_names_in_linkage_form_p member variable.
384 (language_defn::store_sym_names_in_linkage_form_p): New member
385 function.
386 * m2-lang.c (m2_language_data): Remove
387 la_store_sym_names_in_linkage_form_p initializer.
388 * objc-lang.c (objc_language_data): Likewise.
389 * opencl-lang.c (opencl_language_data): Likewise.
390 * p-lang.c (pascal_language_data): Likewise.
391 * rust-lang.c (rust_language_data): Likewise.
392
393 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * ada-lang.c (ada_language_data): Remove string_lower_bound
396 initializer.
397 * c-lang.c (c_language_data): Likewise.
398 (cplus_language_data): Likewise.
399 (asm_language_data): Likewise.
400 (minimal_language_data): Likewise.
401 * d-lang.c (d_language_data): Likewise.
402 * f-lang.c (f_language_data): Likewise.
403 * go-lang.c (go_language_data): Likewise.
404 * language.c (unknown_language_data): Likewise.
405 (auto_language_data): Likewise.
406 * language.h (language_data): Remove string_lower_bound field.
407 (language_defn::string_lower_bound): New member function.
408 * m2-lang.c (m2_language_data): Remove string_lower_bound
409 initializer.
410 (m2_language::string_lower_bound): New member function.
411 * objc-lang.c (objc_language_data): Remove string_lower_bound
412 initializer.
413 * opencl-lang.c (opencl_language_data): Likewise.
414 * p-lang.c (pascal_language_data): Likewise.
415 * rust-lang.c (rust_language_data): Likewise.
416 * valops.c (value_cstring): Update call to string_lower_bound.
417 (value_string): Likewise.
418 * value.c (allocate_repeated_value): Likewise.
419
420 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * valops.c (value_repeat): Fix incorrect argument name in comment.
423
424 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * ada-lang.c (ada_language_data): Remove c_style_arrays
427 initializer.
428 (ada_language::c_style_arrays_p): New member fuction.
429 * c-lang.c (c_language_data): Remove c_style_arrays
430 initializer.
431 (cplus_language_data): Likewise.
432 (asm_language_data): Likewise.
433 (minimal_language_data): Likewise.
434 * d-lang.c (d_language_data): Likewise.
435 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
436 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
437 (f_language::c_style_arrays_p): New member function.
438 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
439 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
440 * language.c (unknown_language_data): Remove c_style_arrays
441 initializer.
442 (auto_language_data): Likewise.
443 * language.h (language_data): Remove c_style_arrays field.
444 (language_defn::c_style_arrays_p): New member function.
445 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
446 (m2_language::c_style_arrays_p): New member function.
447 * objc-lang.c (objc_language_data): Remove c_style_arrays
448 initializer.
449 * opencl-lang.c (opencl_language_data): Likewise.
450 * p-lang.c (pascal_language_data): Likewise.
451 * rust-lang.c (rust_language_data): Likewise.
452 * valarith.c (value_subscript): Update call to c_style_arrays_p,
453 and update local variable to a bool.
454 * valops.c (value_cast): Update call to c_style_arrays_p.
455 (value_array): Likewise.
456 * value.c (coerce_array): Likewise.
457
458 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * ada-lang.c (ada_language_data): Remove la_language initializer.
461 * c-lang.c (c_language_data): Likewise.
462 (cplus_language_data): Likewise.
463 (asm_language_data): Likewise.
464 (minimal_language_data): Likewise.
465 * d-lang.c (d_language_data): Likewise.
466 * f-lang.c (f_language_data): Likewise.
467 * go-lang.c (go_language_data): Likewise.
468 * language.c (unknown_language_data): Likewise.
469 (auto_language_data): Likewise.
470 * language.h (language_data): Remove la_language field.
471 (language_defn::language_defn): Initialise la_language field.
472 (language_defn::la_language): New member variable.
473 * m2-lang.c (m2_language_data): Remove la_language field.
474 * objc-lang.c (objc_language_data): Likewise.
475 * opencl-lang.c (opencl_language_data): Likewise.
476 * p-lang.c (pascal_language_data): Likewise.
477 * rust-lang.c (rust_language_data): Likewise.
478
479 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * ada-lang.c (ada_extensions): Delete, moved into
482 ada_language::filename_extensions.
483 (ada_language_data): Remove la_filename_extensions initializer.
484 (ada_language::filename_extensions): New member function.
485 * c-lang.c (c_extensions): Delete, moved into
486 c_language::filename_extensions.
487 (c_language_data): Remove la_filename_extensions initializer.
488 (c_language::filename_extensions): New member function.
489 (cplus_extensions): Delete, moved into
490 cplus_language::filename_extensions.
491 (cplus_language_data): Remove la_filename_extensions initializer.
492 (cplus_language::filename_extensions): New member function.
493 (asm_extensions): Delete, moved into
494 asm_language::filename_extensions.
495 (asm_language_data): Remove la_filename_extensions initializer.
496 (asm_language::filename_extensions): New member function.
497 (minimal_language_data): Remove la_filename_extensions
498 initializer.
499 * d-lang.c (d_extensions): Delete, moved into
500 d_language::filename_extensions.
501 (d_language_data): Remove la_filename_extensions initializer.
502 (d_language::filename_extensions): New member function.
503 * f-lang.c (f_extensions): Delete, moved into
504 f_language::filename_extensions.
505 (f_language_data): Remove la_filename_extensions initializer.
506 (f_language::filename_extensions): New member function.
507 * go-lang.c (go_language_data): Remove la_filename_extensions
508 initializer.
509 * language.c (add_set_language_command): Update now that
510 filename_extensions returns a vector.
511 (unknown_language_data): Remove la_filename_extensions
512 initializer.
513 (auto_language_data): Likewise.
514 * language.h (language_data): Remove la_filename_extensions field.
515 (language_defn::filename_extensions): New member function.
516 * m2-lang.c (m2_language_data): Remove la_filename_extensions
517 initializer.
518 * objc-lang.c (objc_extensions): Delete, moved into
519 objc_language::filename_extensions.
520 (objc_language_data): Remove la_filename_extensions initializer.
521 (objc_language::filename_extensions): New member function.
522 * opencl-lang.c (opencl_language_data): Remove
523 la_filename_extensions initializer.
524 * p-lang.c (pascal_extensions): Delete, moved into
525 pascal_language::filename_extensions.
526 (pascal_language_data): Remove la_filename_extensions initializer.
527 (pascal_language::filename_extensions): New member function.
528 * rust-lang.c (rust_extensions): Delete, moved into
529 rust_language::filename_extensions.
530 (rust_language_data): Remove la_filename_extensions initializer.
531 (rust_language::filename_extensions): New member function.
532 * symfile.c (add_filename_language): Add new assert.
533
534 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * ada-lang.c (ada_language_data): Remove la_name and
537 la_natural_name initializers.
538 (ada_language::name): New member function.
539 (ada_language::natural_name): New member function.
540 * c-lang.c (c_language_data): Remove la_name and
541 la_natural_name initializers.
542 (c_language::name): New member function.
543 (c_language::natural_name): New member function.
544 (cplus_language_data): Remove la_name and
545 la_natural_name initializers.
546 (cplus_language::name): New member function.
547 (cplus_language::natural_name): New member function.
548 (asm_language_data): Remove la_name and
549 la_natural_name initializers.
550 (asm_language::name): New member function.
551 (asm_language::natural_name): New member function.
552 (minimal_language_data): Remove la_name and
553 la_natural_name initializers.
554 (minimal_language::name): New member function.
555 (minimal_language::natural_name): New member function.
556 * compile/compile.c (compile_to_object): Update call to
557 lanugage_defn::name.
558 * d-lang.c (d_language_data): Remove la_name and
559 la_natural_name initializers.
560 (d_language::name): New member function.
561 (d_language::natural_name): New member function.
562 * expprint.c (print_subexp_standard): Update call to
563 language_defn::name.
564 (dump_raw_expression): Likewise
565 (dump_prefix_expression): Likewise.
566 * f-lang.c (f_language_data): Remove la_name and
567 la_natural_name initializers.
568 (f_language::name): New member function.
569 (f_language::natural_name): New member function.
570 * go-lang.c (go_language_data): Remove la_name and
571 la_natural_name initializers.
572 (go_language::name): New member function.
573 (go_language::natural_name): New member function.
574 * language.c (show_language_command): Update call to
575 language_defn::name.
576 (set_language_command): Likewise.
577 (language_enum): Likewise.
578 (language_str): Likewise.
579 (add_set_language_command): Likewise, use
580 language_defn::natural_name in the doc string.
581 (unknown_language_data): Remove la_name and
582 la_natural_name initializers.
583 (unknown_language::name): New member function.
584 (unknown_language::natural_name): New member function.
585 (auto_language_data): Remove la_name and
586 la_natural_name initializers.
587 (auto_language::name): New member function.
588 (auto_language::natural_name): New member function.
589 (language_lookup_primitive_type_as_symbol): Update call to
590 language_defn::name.
591 * language.h (language_data): Remove la_name and la_natural_name
592 member variables.
593 (language_defn::name): New member function.
594 (language_defn::natural_name): New member function.
595 * m2-lang.c (m2_language_data): Remove la_name and
596 la_natural_name initializers.
597 (m2_language::name): New member function.
598 (m2_language::natural_name): New member function.
599 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
600 language_defn::natural_name.
601 * objc-lang.c (objc_language_data): Remove la_name and
602 la_natural_name initializers.
603 (objc_language::name): New member function.
604 (objc_language::natural_name): New member function.
605 * opencl-lang.c (opencl_language_data): Remove la_name and
606 la_natural_name initializers.
607 (opencl_language::name): New member function.
608 (opencl_language::natural_name): New member function.
609 * p-lang.c (pascal_language_data): Remove la_name and
610 la_natural_name initializers.
611 (pascal_language::name): New member function.
612 (pascal_language::natural_name): New member function.
613 * rust-lang.c (rust_language_data): Remove la_name and
614 la_natural_name initializers.
615 (rust_language::name): New member function.
616 (rust_language::natural_name): New member function.
617 * symtab.c (lookup_language_this): Update call to
618 language_defn::name.
619
620 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 * ada-lang.c (ada_language_data): Remove la_name_of_this
623 initializer.
624 * ax-gdb.c (gen_expr): Update call to name_of_this.
625 * c-exp.y (classify_name): Likewise.
626 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
627 (cplus_language_data): Likewise.
628 (cplus_language::name_of_this): New member function.
629 (asm_language_data): Remove la_name_of_this initializer.
630 (minimal_language_data): Likewise.
631 * d-lang.c (d_language_data): Likewise.
632 (d_language::name_of_this): New member function.
633 * expprint.c (print_subexp_standard): Update call to name_of_this.
634 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
635 * go-lang.c (go_language_data): Likewise.
636 * language.c (unknown_language_data): Likewise.
637 (unknown_language::name_of_this): New member function.
638 (auto_language_data): Remove la_name_of_this initializer.
639 (auto_language::name_of_this): New member function.
640 * language.h (language_data): Delete la_name_of_this member
641 variable.
642 (language_defn::name_of_this): New member function.
643 * m2-lang.c (m2_language_data): Remove la_name_of_this
644 initializer.
645 * objc-lang.c (objc_language_data): Likewise.
646 (objc_language::name_of_this): New member function.
647 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
648 initializer.
649 * p-lang.c (pascal_language_data): Likewise.
650 (pascal_language::name_of_this): New member function.
651 * rust-lang.c (rust_language_data): Remove la_name_of_this
652 initializer.
653 * symtab.c (lookup_language_this): Update call to name_of_this.
654 (lookup_symbol_aux): Likewise.
655 * valops.c (value_of_this): Likewise.
656
657 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * ada-lang.c (ada_language_data): Remove
660 la_struct_too_deep_ellipsis initializer.
661 (ada_language::struct_too_deep_ellipsis): New member function.
662 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
663 initializer.
664 (cplus_language_data): Likewise.
665 (asm_language_data): Likewise.
666 (minimal_language_data): Likewise.
667 * cp-valprint.c (cp_print_value): Update call to
668 struct_too_deep_ellipsis.
669 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
670 initializer.
671 * f-lang.c (f_language_data): Likewise.
672 (f_language::struct_too_deep_ellipsis): New member function.
673 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
674 initializer.
675 * language.c (unknown_language_data): Likewise.
676 (auto_language_data): Likewise.
677 * language.h (language_data): Delete la_struct_too_deep_ellipsis
678 member variable.
679 (language_defn::struct_too_deep_ellipsis): New member function.
680 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
681 initializer.Q
682 * objc-lang.c (objc_language_data): Likewise.
683 * opencl-lang.c (opencl_language_data): Likewise.
684 * p-lang.c (pascal_language_data): Likewise.
685 * rust-lang.c (rust_language_data): Likewise.
686 * valprint.c (val_print_check_max_depth): Update call to
687 struct_too_deep_ellipsis.
688
689 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
690
691 * MAINTAINERS (Write After Approval): Add myself.
692
693 2020-09-15 Tom Tromey <tom@tromey.com>
694
695 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
696 Remove.
697
698 2020-09-15 Tom Tromey <tom@tromey.com>
699
700 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
701 and TYPE_CODE_METHODPTR cases.
702 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
703 (c_value_print_inner): Update.
704 * valprint.c (generic_value_print_memberptr): New function, from
705 c_value_print_memberptr.
706 (generic_value_print): Use it. Call cplus_print_method_ptr.
707
708 2020-09-15 Tom Tromey <tromey@adacore.com>
709
710 * python/python-internal.h (PyInt_FromLong): Remove define.
711 * python/py-value.c (convert_value_from_python): Use
712 gdb_py_object_from_longest.
713 * python/py-type.c (typy_get_code): Use
714 gdb_py_object_from_longest.
715 * python/py-symtab.c (salpy_get_line): Use
716 gdb_py_object_from_longest.
717 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
718 gdb_py_object_from_longest.
719 * python/py-record.c (recpy_gap_reason_code): Use
720 gdb_py_object_from_longest.
721 * python/py-record-btrace.c (recpy_bt_insn_size)
722 (recpy_bt_func_level, btpy_list_count): Use
723 gdb_py_object_from_longest.
724 * python/py-infthread.c (gdbpy_create_ptid_object): Use
725 gdb_py_object_from_longest. Fix error handling.
726 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
727 gdb_py_object_from_longest.
728 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
729 gdb_py_object_from_longest.
730 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
731 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
732 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
733
734 2020-09-15 Tom Tromey <tromey@adacore.com>
735
736 * python/python.c (gdbpy_parameter_value): Use
737 gdb_py_object_from_ulongest.
738
739 2020-09-15 Tom Tromey <tromey@adacore.com>
740
741 * python/py-infevents.c (create_register_changed_event_object):
742 Use gdb_py_object_from_longest.
743 * python/py-exitedevent.c (create_exited_event_object): Use
744 gdb_py_object_from_longest.
745
746 2020-09-15 Tom Tromey <tromey@adacore.com>
747
748 * python/python.c (gdbpy_parameter_value): Use
749 gdb_py_object_from_longest.
750 * python/py-type.c (convert_field, typy_range): Use
751 gdb_py_object_from_longest.
752 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
753 gdb_py_object_from_longest.
754 * python/py-lazy-string.c (stpy_get_length): Use
755 gdb_py_object_from_longest.
756 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
757 gdb_py_object_from_longest.
758 * python/py-infevents.c (create_memory_changed_event_object): Use
759 gdb_py_object_from_longest.
760 * python/py-inferior.c (infpy_get_num): Use
761 gdb_py_object_from_longest.
762 (infpy_get_pid): Likewise.
763
764 2020-09-15 Tom Tromey <tromey@adacore.com>
765
766 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
767 defines.
768 * python/py-value.c (valpy_long): Use
769 gdb_py_object_from_ulongest.
770 * python/py-symtab.c (salpy_get_pc): Use
771 gdb_py_object_from_ulongest.
772 (salpy_get_last): Likewise.
773 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
774 gdb_py_object_from_ulongest.
775 * python/py-lazy-string.c (stpy_get_address): Use
776 gdb_py_object_from_ulongest.
777 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
778 * python/py-arch.c (archpy_disassemble): Use
779 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
780 error handling.
781
782 2020-09-15 Tom Tromey <tromey@adacore.com>
783
784 * python/python-internal.h (gdb_py_long_from_longest): Remove
785 defines.
786 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
787 * python/py-type.c (convert_field, typy_get_sizeof): Use
788 gdb_py_object_from_longest.
789 * python/py-record-btrace.c (btpy_list_index): Use
790 gdb_py_object_from_longest.
791
792 2020-09-15 Tom Tromey <tromey@adacore.com>
793
794 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
795 * python/py-record.c (recpy_element_number): Use
796 gdb_py_object_from_longest.
797 (recpy_gap_number): Likewise.
798
799 2020-09-15 Tom Tromey <tromey@adacore.com>
800
801 * top.c (ui::ui): Update.
802 (highest_ui_num): Remove.
803 * top.h (struct ui) <num>: Remove.
804
805 2020-09-15 Tom Tromey <tromey@adacore.com>
806
807 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
808 * ui-style.c (ansi_regex_text): Now array.
809 * rust-exp.y (number_regex_text): Now array.
810 * linespec.c (linespec_quote_characters): Now array.
811 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
812 Now arrays.
813
814 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
815
816 * debuginfod-support.c (debuginfod_client_deleter): New.
817 (debuginfod_client_up): New.
818 (debuginfod_init): Return debuginfod_client_up.
819 (debuginfod_source_query): Adjust.
820 (debuginfod_debuginfo_query): Adjust.
821
822 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
823
824 * debuginfod-support.c (debuginfod_source_query): Use
825 make_unique_xstrdup.
826
827 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
828
829 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
830 with `type::instance_flags`.
831
832 2020-09-14 Michael Mullin <masmullin@gmail.com>
833
834 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
835 Remove baton parameter.
836
837 2020-09-14 Pedro Alves <pedro@palves.net>
838
839 * Makefile.in (SELFTESTS_SRCS): Add
840 unittests/enum-flags-selftests.c.
841 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
842 btrace_function_flags instead of enum btrace_function_flag.
843 * compile/compile-c-types.c (convert_qualified): Use
844 enum_flags::raw.
845 * compile/compile-cplus-symbols.c (convert_one_symbol)
846 (convert_symbol_bmsym):
847 * compile/compile-cplus-types.c (compile_cplus_convert_method)
848 (compile_cplus_convert_struct_or_union_methods)
849 (compile_cplus_instance::convert_qualified_base):
850 * go-exp.y (parse_string_or_char): Add cast to int.
851 * unittests/enum-flags-selftests.c: New file.
852 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
853 type to btrace_thread_flags from btrace_thread_flag.
854 (record_btrace_cancel_resume, record_btrace_step_thread): Change
855 local's type to btrace_thread_flags from btrace_thread_flag. Add
856 cast in DEBUG call.
857
858 2020-09-14 Pedro Alves <pedro@palves.net>
859
860 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
861 * gdbtypes.c (address_space_name_to_int): Rename to ...
862 (address_space_name_to_type_instance_flags): ... this.
863 (address_space_int_to_name): Rename to ...
864 (address_space_type_instance_flags_to_name): ... this.
865 * gdbtypes.h (address_space_name_to_int): Rename to ...
866 (address_space_name_to_type_instance_flags): ... this.
867 (address_space_int_to_name): Rename to ...
868 (address_space_type_instance_flags_to_name): ... this.
869 * type-stack.c (type_stack::insert): Adjust to rename.
870 * type-stack.h (type_stack::insert): Likewise.
871
872 2020-09-14 Pedro Alves <pedro@palves.net>
873 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * avr-tdep.c (avr_address_class_type_flags): Return
876 type_instance_flags.
877 (avr_address_class_type_flags_to_name): Take a
878 type_instance_flags.
879 (avr_address_class_name_to_type_flags): Return bool and take a
880 type_instance_flags.
881 * d-lang.c (build_d_types): Use type::set_instance_flags.
882 * ft32-tdep.c (ft32_address_class_type_flags): Return
883 type_instance_flags.
884 (ft32_address_class_type_flags_to_name): Take a
885 type_instance_flags.
886 (ft32_address_class_name_to_type_flags): Return bool and take a
887 type_instance_flags.
888 (ft32_gdbarch_init): Use type::set_instance_flags.
889 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
890 * gdbarch.h, gdbarch.c: Regenerate.
891 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
892 (address_class_name_to_type_flags): Use type_instance_flags and
893 bool.
894 * gdbtypes.c (address_space_name_to_int)
895 (address_space_int_to_name, make_qualified_type): Use
896 type_instance_flags.
897 (make_qualified_type): Use type_instance_flags and
898 type::set_instance_flags.
899 (make_type_with_address_space, make_cv_type, make_vector_type)
900 (check_typedef): Use type_instance_flags.
901 (recursive_dump_type): Cast type_instance_flags to unsigned for
902 printing.
903 (copy_type_recursive): Use type::set_instance_flags.
904 (gdbtypes_post_init): Use type::set_instance_flags.
905 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
906 <m_instance_flags>: ... this.
907 <instance_flags, set_instance_flags>: New methods.
908 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
909 (SET_TYPE_INSTANCE_FLAGS): New.
910 (address_space_name_to_int, address_space_int_to_name)
911 (make_type_with_address_space): Pass flags using
912 type_instance_flags instead of int.
913 * stabsread.c (cleanup_undefined_types_noname): Use
914 type::set_instance_flags.
915 * s390-tdep.c (s390_address_class_type_flags): Return
916 type_instance_flags.
917 (s390_address_class_type_flags_to_name): Take a
918 type_instance_flags.
919 (s390_address_class_name_to_type_flags): Return bool and take a
920 type_instance_flags.
921 * type-stack.c (type_stack::follow_types): Use
922 type_instance_flags.
923 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
924
925 2020-09-14 Tom Tromey <tromey@adacore.com>
926
927 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
928 * x86-tdep.c (x86_is_thunk_register_name)
929 (x86_in_indirect_branch_thunk): Update.
930 * sparc64-tdep.c (sparc64_fpu_register_names)
931 (sparc64_cp0_register_names, sparc64_register_names)
932 (sparc64_pseudo_register_names): Now const.
933 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
934 cp0_registers_num>: Now const.
935 * sparc-tdep.c (sparc_core_register_names)
936 (sparc32_fpu_register_names, sparc32_cp0_register_names)
937 (sparc32_pseudo_register_names): Now const.
938 (validate_tdesc_registers): Update.
939 * rust-lang.c (rust_extensions): Now const.
940 * p-lang.c (p_extensions): Now const.
941 * objc-lang.c (objc_extensions): Now const.
942 * nto-tdep.c (nto_thread_state_str): Now const.
943 * moxie-tdep.c (moxie_register_names): Now const.
944 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
945 Now const.
946 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
947 (mips_linux_reg_names): Now const.
948 (mips_gdbarch_init): Update.
949 * microblaze-tdep.c (microblaze_register_names): Now const.
950 * m68k-tdep.c (m68k_register_names): Now const.
951 * m32r-tdep.c (m32r_register_names): Now const.
952 * ia64-tdep.c (ia64_register_names): Now const.
953 * i386-tdep.h (struct gdbarch_tdep) <register_names,
954 ymmh_register_names, ymm16h_regnum, mpx_register_names,
955 k_register_names, zmmh_register_names, xmm_avx512_register_names,
956 ymm_avx512_register_names, pkeys_register_names>: Now const.
957 * i386-tdep.c (i386_register_names, i386_zmm_names)
958 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
959 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
960 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
961 * f-lang.c (f_extensions): Now const.
962 * d-lang.c (d_extensions): Now const.
963 * csky-tdep.c (csky_register_names): Now const.
964 * charset.c (default_charset_names, charset_enum): Now const.
965 (_initialize_charset): Update.
966 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
967 const.
968 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
969 (bsd_uthread_solib_loaded): Update.
970 (bsd_uthread_state): Now const.
971 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
972 (amd64_ymm_avx512_names, amd64_ymmh_names)
973 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
974 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
975 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
976 (amd64_dword_names): Now const.
977 * agent.c (can_use_agent_enum): Now const.
978 * ada-tasks.c (task_states, long_task_states): Now const.
979 * ada-lang.c (known_runtime_file_name_patterns)
980 (known_auxiliary_function_name_patterns, attribute_names)
981 (standard_exc, ada_extensions): Now const.
982
983 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
984
985 * bcache.h (struct bcache) <bcache>: Remove constructor.
986 <m_hash_function, m_compare_function>: Remove.
987 <~bcache>: Make virtual.
988 <compare>: Remove static method, introduce virtual method.
989 <default_hash>: Remove.
990 <hash>: New virtual method.
991 * bcache.c (bcache::expand_hash_table): Update.
992 (bcache::insert): Update.
993 (bcache::hash): New.
994 (bcache::compare): Update comment and parameter names.
995 * gdbtypes.c (types_deeply_equal): Update.
996 * psymtab.h (struct psymbol_bcache): New struct.
997 (class psymtab_storage) <psymtab_storage>: Make default.
998 <psymbol_cache>: Change type to psymbol_bcache.
999 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1000 (psymbol_hash): Change to...
1001 (psymbol_bcache::hash): ... this.
1002 (psymbol_compare): Change to...
1003 (psymbol_bcache::compare): ... this.
1004
1005 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1008 checking for initial lwp.
1009
1010 2020-09-14 Tom Tromey <tromey@adacore.com>
1011
1012 * m68k-tdep.c (m68k_extract_return_value): Use
1013 pointer_result_regnum.
1014 (m68k_store_return_value): Likewise.
1015 (m68k_reg_struct_return_p): Handle vectors and arrays.
1016 (m68k_return_value): Handle arrays.
1017 (m68k_svr4_return_value): Fix single-element aggregate handling.
1018 Handle long double. Adjust for embedded ABI.
1019 (m68k_svr4_init_abi): Set pointer_result_regnum.
1020 (m68k_embedded_init_abi): New function.
1021 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1022 (m68k_osabi_sniffer): New function.
1023 (_initialize_m68k_tdep): Register osabi sniffer.
1024 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1025 member.
1026
1027 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1030 with gdb::unique_xmalloc_ptr<char>.
1031
1032 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * xml-support.h (xml_fetch_another): Change type to be a
1035 function_view.
1036 (xml_process_xincludes): Remove baton parameter.
1037 (xml_fetch_content_from_file): Change baton parameter to
1038 dirname.
1039 * xml-support.c (struct xinclude_parsing_data)
1040 <xinclude_parsing_data>: Remove baton parameter.
1041 <fetcher_baton>: Remove.
1042 (xinclude_start_include): Adjust.
1043 (xml_process_xincludes): Adjust.
1044 (xml_fetch_content_from_file): Replace baton parameter with
1045 dirname.
1046 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1047 (xml_init_syscalls_info): Use a lambda.
1048 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1049 (file_read_description_xml): Use a lambda.
1050 (fetch_available_features_from_target): Change baton parameter
1051 to target_ops.
1052 (target_read_description_xml): Use a lambda.
1053 (target_fetch_description_xml): Use a lambda.
1054 (string_read_description_xml): Update.
1055
1056 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1057
1058 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1059 uses with type::endianity_is_not_default.
1060
1061 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * gdbtypes.h (struct type) <endianity_is_not_default,
1064 set_endianity_is_not_default>: New methods.
1065 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1066 type::endianity_is_not_default, change all write call sites to
1067 use type::set_endianity_is_not_default.
1068
1069 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1070
1071 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1072 uses with type::is_fixed_instance.
1073
1074 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1075
1076 * gdbtypes.h (struct type) <is_fixed_instance,
1077 set_is_fixed_instance>: New methods.
1078 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1079 write call sites to use type::set_is_fixed_instance.
1080
1081 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1084 uses with type::is_gnu_ifunc.
1085
1086 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1089 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1090 use type::set_is_gnu_ifunc.
1091
1092 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1095 uses with type::stub_is_supported.
1096
1097 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1100 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1101 use type::set_stub_is_supported.
1102
1103 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1106 uses with type::is_vector.
1107
1108 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1111 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1112 use type::set_is_vector.
1113
1114 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1117 uses with type::has_varargs.
1118
1119 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1120
1121 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1122 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1123 use type::set_has_varargs.
1124
1125 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1126
1127 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1128 uses with type::is_prototyped.
1129
1130 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1131
1132 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1133 New methods.
1134 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1135 call sites to use type::set_is_prototyped.
1136
1137 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1140 uses with type::target_is_stub.
1141
1142 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1145 New methods.
1146 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1147 sites to use type::set_target_is_stub.
1148
1149 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1150
1151 * gdbtypes.h (TYPE_STUB): Remove, replace all
1152 uses with type::is_stub.
1153
1154 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1157 (TYPE_STUB): Use type::is_stub, change all write call sites to
1158 use type::set_is_stub.
1159
1160 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1163 type::has_no_signedness.
1164
1165 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * gdbtypes.h (struct type) <has_no_signedness,
1168 set_has_no_signedness>: New methods.
1169 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1170 call sites to use type::set_has_no_signedness.
1171
1172 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1173
1174 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1175 type::is_unsigned.
1176
1177 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1180 methods.
1181 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1182 sites to use type::set_is_unsigned.
1183
1184 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1185 Adam Renquinha <arenquinha@cimeq.qc.ca>
1186
1187 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1188 pointer and stack frame offset when unwinding.
1189
1190 2020-09-13 Pedro Alves <pedro@palves.net>
1191
1192 * NEWS: Document "-break-insert --qualified".
1193 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1194
1195 2020-09-13 Pedro Alves <pedro@palves.net>
1196
1197 * linespec.c (classify_mtype, compare_msyms): Delete.
1198 (search_minsyms_for_name): Remove classification logic. Instead
1199 filter out trampoline symbols if we also found an external
1200 function of the same name.
1201
1202 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1203
1204 * NEWS: Create a new section for the next release branch.
1205 Rename the section of the current branch, now that it has
1206 been cut.
1207
1208 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1209
1210 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1211 * version.in: Bump version to 11.0.50.DATE-git.
1212
1213 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1214
1215 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1216
1217 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1218 Felix Willgerodt <Felix.Willgerodt@intel.com>
1219
1220 * gdbarch.sh: Added bfloat16 type.
1221 * gdbarch.c: Regenerated.
1222 * gdbarch.h: Regenerated.
1223 * gdbtypes.c (floatformats_bfloat16): New struct.
1224 (gdbtypes_post_init): Add builtin_bfloat16.
1225 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1226 (floatformats_bfloat16): New struct.
1227 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1228 (i386_ymm_type): Add field "v16_bfloat16"
1229 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1230 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1231 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1232 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1233 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1234 * features/i386/64bit-avx512.c: Regenerated.
1235 * features/i386/64bit-sse.xml: Add bfloat16 type.
1236 * features/i386/64bit-sse.c: Regenerated.
1237
1238 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1239
1240 * i386-tdep.c (i386_zmm_type): Fix field names.
1241 (i386_ymm_type): Fix field names.
1242
1243 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1244
1245 * breakpoint.c: Fix typo in the help message of the
1246 "set breakpoint condition-evaluation" command.
1247
1248 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1249
1250 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1251 * (nbsd_nat_target::pid_to_exec_file)
1252 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1253 (nbsd_nat_target::post_startup_inferior)
1254 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1255 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1256 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1257 * (nbsd_thread_lister): Remove.
1258
1259 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1260
1261 * fork-inferior.c (startup_inferior): Avoid double free.
1262
1263 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1264
1265 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1266 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1267
1268 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1269
1270 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1271 * netbsd-nat.c: Include <sys/ptrace.h>.
1272 * (netbsd_nat::enable_proc_events): Add.
1273
1274 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1275
1276 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1277 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1278 (netbsd_nat::for_each_thread): Add.
1279 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1280 "gdbsupport/common-debug.h".
1281 * (netbsd_nat::netbsd_thread_lister)
1282 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1283 (netbsd_nat::for_each_thread): Add.
1284
1285 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1286
1287 * netbsd-nat.h: Include <unistd.h>.
1288 * (netbsd_nat::pid_to_exec_file): Add.
1289 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1290 * (netbsd_nat::pid_to_exec_file) Add.
1291
1292 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1293
1294 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1295
1296 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1297
1298 * netbsd-nat.h: New file.
1299 * netbsd-nat.c: Likewise.
1300
1301 2020-09-09 Tom Tromey <tromey@adacore.com>
1302
1303 * ada-lang.c (remove_extra_symbols): Do not increment when
1304 removing an element
1305
1306 2020-09-08 Tom Tromey <tromey@adacore.com>
1307
1308 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1309
1310 2020-09-08 Tom Tromey <tromey@adacore.com>
1311
1312 PR win32/25302:
1313 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1314 (gdb_bfd_init_data): New function.
1315 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1316
1317 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1318
1319 * infrun.c (fetch_inferior_event): Use
1320 `switch_to_target_no_thread` to switch the target.
1321
1322 2020-09-06 Tom Tromey <tom@tromey.com>
1323
1324 * symfile.h (dwarf2_free_objfile): Don't declare.
1325
1326 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1327
1328 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1329 to match 16 byte real/complex type generated by Flang compiler.
1330
1331 2020-09-03 Tom de Vries <tdevries@suse.de>
1332
1333 PR breakpoint/26546
1334 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1335 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1336
1337 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1338
1339 * maint.c (index_digits): New function.
1340 (struct maint_print_section_data): Remove.
1341 (print_bfd_section_info): Remove print_data parameter, add arg
1342 and index_digits.
1343 (print_objfile_section_info): Likewise.
1344 (print_bfd_section_info_maybe_relocated): Likewise (plus
1345 objfile).
1346 (maintenance_info_sections): Adjust calls.
1347
1348 2020-09-02 Tom Tromey <tromey@adacore.com>
1349
1350 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1351 for null pointers.
1352 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1353
1354 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1355
1356 * bcache.h (struct bcache) <insert>: Change type of `added` to
1357 pointer to bool.
1358 * bcache.c (bcache::insert): Likewise.
1359 * gdbtypes.c (check_types_worklist): Adjust.
1360 * psymtab.c (add_psymbol_to_bcache): Adjust.
1361
1362 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1363
1364 * corelow.c (unordered_set): Include.
1365 (class core_target): Add field 'm_core_unavailable_mappings'.
1366 (core_target::build_file_mappings): Print only one warning
1367 per inaccessible file. Add unavailable/broken mappings
1368 to m_core_unavailable_mappings.
1369 (core_target::xfer_partial): Call...
1370 (core_target::xfer_memory_via_mappings): New method.
1371
1372 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1375 type to bool.
1376
1377 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * dwarf2/read.c (struct field_info): Fix indentation.
1380
1381 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1382
1383 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1384 ordering in comment.
1385 * frame.c (frame_id_eq): Fix indentation.
1386
1387 2020-08-31 Scott Linder <scott@scottlinder.com>
1388 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1391 inline frame ids in outer frame.
1392
1393 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1394
1395 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1396 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1397 (outer_frame_id): Use FID_STACK_OUTER instead of
1398 FID_STACK_INVALID.
1399 (frame_id_p): Don't check for outer_frame_id.
1400
1401 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1402
1403 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1404 regnum/frame in value. Call allocate_value_lazy.
1405 * frame.c (frame_unwind_register_value): Use
1406 val_print_not_saved.
1407
1408 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1409
1410 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1411
1412 2020-08-29 Pedro Alves <pedro@palves.net>
1413
1414 * progspace.c (print_program_space): Use all_inferiors. Switch to
1415 the inferior before calling target_pid_to_str.
1416
1417 2020-08-28 Tom Tromey <tom@tromey.com>
1418
1419 * xcoffread.c (xcoff_end_psymtab): Update comment.
1420 * dbxread.c (dbx_end_psymtab): Update comment.
1421
1422 2020-08-28 Tom de Vries <tdevries@suse.de>
1423
1424 PR breakpoint/26544
1425 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1426 event_location.
1427 (create_breakpoint): Same.
1428 (base_breakpoint_decode_location): Same.
1429 (bkpt_create_sals_from_location): Same.
1430 (bkpt_decode_location): Same.
1431 (bkpt_probe_create_sals_from_location): Same.
1432 (bkpt_probe_decode_location): Same.
1433 (tracepoint_create_sals_from_location): Same.
1434 (tracepoint_decode_location): Same.
1435 (tracepoint_probe_decode_location): Same.
1436 (strace_marker_create_sals_from_location): Same.
1437 (strace_marker_decode_location): Same.
1438 (create_sals_from_location_default): Same.
1439 (decode_location_default): Same.
1440 * breakpoint.h (struct breakpoint_ops): Same.
1441 (create_breakpoint): Same.
1442 * linespec.h (decode_line_full): Same.
1443 * linespec.c (decode_line_full): Same. Throw error if
1444 result.size () == 0.
1445
1446 2020-08-27 Pedro Alves <pedro@palves.net>
1447
1448 PR gdb/26524
1449 * breakpoint.c (until_break_fsm) <location_breakpoint,
1450 caller_breakpoint>: Delete fields.
1451 <breakpoints>: New field.
1452 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1453 two individual breakpoints.
1454 (until_break_fsm::should_stop): Loop over breakpoints in the
1455 breakpoint vector.
1456 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1457 vector.
1458 (until_break_command): Handle location expanding into multiple
1459 sals.
1460
1461 2020-08-27 Pedro Alves <pedro@palves.net>
1462
1463 PR gdb/26523
1464 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1465 bp_until breakpoints user-specified locations. Update intro
1466 comment.
1467
1468 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1469
1470 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1471 gdb_bfd_sections): New.
1472 * maint.c (print_bfd_section_info): Change param type to
1473 maint_print_section_data.
1474 (print_objfile_section_info): Likewise.
1475 (print_bfd_section_info_maybe_relocated): Likewise.
1476 (maintenance_info_sections): Use gdb_bfd_sections.
1477
1478 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1479
1480 * MAINTAINERS: Add ARC target and maintainer.
1481
1482 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1483
1484 * configure.tgt: ARC support for GNU/Linux.
1485 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1486 * arc-linux-tdep.c: New file.
1487 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1488 * arc-tdep.c (arc_write_pc): Use it.
1489
1490 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1491
1492 * arc-tdep.c (arc_check_for_hardware_loop): New.
1493 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1494
1495 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1496
1497 * arc-tdep.h: Include "gdbarch.h".
1498
1499 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1500
1501 * arch/arc.h
1502 (arc_gdbarch_features): New class to stir the selection of target XML.
1503 (arc_create_target_description): Use FEATURES to choose XML target.
1504 (arc_lookup_target_description): Use arc_create_target_description
1505 to create _new_ target descriptions or return the already created
1506 ones if the FEATURES is the same.
1507 * arch/arc.c: Implementation of prototypes described above.
1508 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1509 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1510 * arc-tdep.c (*_feature_name): Make feature names consistent.
1511 (arc_register_feature): A new struct to hold information about
1512 registers of a particular target/feature.
1513 (arc_check_tdesc_feature): Check if XML provides registers in
1514 compliance with ARC_REGISTER_FEATURE structs.
1515 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1516 (determine_*_reg_feature_set): Which feature name to look for.
1517 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1518 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1519 to expected ISA enums to be used in arc_gdbarch_features structs.
1520 * features/Makefile (FEATURE_XMLFILES): Add new files.
1521 * gdb/features/arc/v1-aux.c: New file.
1522 * gdb/features/arc/v1-aux.xml: Likewise.
1523 * gdb/features/arc/v1-core.c: Likewise.
1524 * gdb/features/arc/v1-core.xml: Likewise.
1525 * gdb/features/arc/v2-aux.c: Likewise.
1526 * gdb/features/arc/v2-aux.xml: Likewise.
1527 * gdb/features/arc/v2-core.c: Likewise.
1528 * gdb/features/arc/v2-core.xml: Likewise.
1529 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1530
1531 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1532 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 PR m2/26372
1535 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1536 an assert. Remove single element array indexing pattern as the
1537 MULTI_SUBSCRIPT support will handle this case too.
1538
1539 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1540
1541 * value.h (valprint_check_validity): Move declaration from
1542 here...
1543 * valprint.h (valprint_check_validity): ... to here.
1544
1545 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1546
1547 * debug.h: New file.
1548 * debug.c (debug_prefixed_vprintf): New function.
1549 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1550 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1551
1552 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1553
1554 * infrun.h (infrun_debug_printf_1): New function declaration.
1555 (infrun_debug_printf): New macro.
1556 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1557 throughout.
1558 (infrun_debug_printf): New function.
1559 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1560 (handle_jit_event): Likewise.
1561
1562 2020-08-21 Mark Wielaard <mark@klomp.org>
1563
1564 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1565
1566 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * frame.c (enum class frame_id_status): New.
1569 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1570 (fprintf_frame): Update.
1571 (compute_frame_id): Set frame id status to "computing" on entry.
1572 Set it back to "not_computed" on failure and to "computed" on
1573 success.
1574 (get_frame_id): Assert the frame id is not being computed.
1575 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1576 (create_new_frame): Likewise.
1577 (frame_cleanup_after_sniffer): Update assert.
1578
1579 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * regcache.c (pid_ptid_regcache_map): New type.
1582 (target_ptid_regcache_map): Remove.
1583 (target_pid_ptid_regcache_map): New type.
1584 (regcaches): Change type to target_pid_ptid_regcache_map.
1585 (get_thread_arch_aspace_regcache): Update.
1586 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1587 case.
1588 (regcaches_size): Update.
1589 (regcache_count): Update.
1590 (registers_changed_ptid_target_pid_test): New.
1591 (_initialize_regcache): Register new test.
1592
1593 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1594
1595 * regcache.c (regcache_count): New.
1596 (struct regcache_test_data): New.
1597 (regcache_test_data_up): New.
1598 (populate_regcaches_for_test): New.
1599 (regcaches_test): Remove.
1600 (get_thread_arch_aspace_regcache_test): New.
1601 (registers_changed_ptid_all_test): New.
1602 (registers_changed_ptid_target_test): New.
1603 (registers_changed_ptid_target_ptid_test): New.
1604 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1605 (_initialize_regcache): Register new tests.
1606
1607 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1610 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1611 gdbarch and aspace parameter. Use current inferior's aspace.
1612 Validate regcache's arch value.
1613 (regcaches_test): Update.
1614
1615 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1616
1617 * regcache.c (regcaches_test): Call registers_changed.
1618
1619 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1622
1623 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1624
1625 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1626 to find the end of prologue for flang compiled binaries.
1627 * arm-tdep.c (arm_skip_prologue): Likewise.
1628 * i386-tdep.c (i386_skip_prologue): Likewise.
1629 * producer.c (producer_is_llvm): New function.
1630 (producer_parsing_tests): Added new tests for clang/flang.
1631 * producer.h (producer_is_llvm): New declaration.
1632
1633 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * linux-nat.c (linux_nat_debug_printf): New function.
1636 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1637
1638 2020-08-18 Aaron Merey <amerey@redhat.com>
1639
1640 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1641 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1642 (CLIBS): Add DEBUGINFOD_LIBS.
1643
1644 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1645
1646 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1647 'gdbarch_num_regs'.
1648
1649 2020-08-17 Tom Tromey <tromey@adacore.com>
1650
1651 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1652 ada_get_decoded_value returns NULL.
1653
1654 2020-08-17 Tom Tromey <tromey@adacore.com>
1655
1656 * python/py-inferior.c (infpy_search_memory): Use
1657 gdb_py_object_from_ulongest.
1658 * python/py-infevents.c (create_inferior_call_event_object)
1659 (create_memory_changed_event_object): Use
1660 gdb_py_object_from_ulongest.
1661 * python/py-linetable.c (ltpy_entry_get_pc): Use
1662 gdb_py_object_from_ulongest.
1663
1664 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * loc.c (class symbol_needs_eval_context): Fix indentation.
1667
1668 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1669
1670 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1671 bool.
1672
1673 2020-08-17 Tom de Vries <tdevries@suse.de>
1674
1675 PR gdb/26393
1676 * gdbtypes.c (dump_dynamic_prop): New function.
1677 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1678
1679 2020-08-15 Tom de Vries <tdevries@suse.de>
1680
1681 PR backtrace/26390
1682 * stack.c (print_frame_args): Temporarily set the selected
1683 frame to FRAME while printing the frame's arguments.
1684
1685 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1686
1687 PR breakpoints/26385
1688 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1689 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1690
1691 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1692
1693 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1694 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1695 and >= to check return value instead of == -1 and != -1.
1696
1697 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1698
1699 * utils.h (class gdb_argv) <as_array_view>: New method.
1700 * utils.c (gdb_argv_as_array_view_test): New.
1701 (_initialize_utils): Register selftest.
1702 * maint.c (maintenance_selftest): Use the new method.
1703
1704 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1705
1706 * target.h (supports_dumpcore, dumpcore): New
1707 function declarations.
1708 * target.c (supports_dumpcore, dumpcore): New
1709 functions.
1710 * target-delegates.c: Rebuild.
1711 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1712 and target_dumpcore ().
1713
1714 2020-08-13 Aaron Merey <amerey@redhat.com>
1715
1716 * debuginfod-support.c: Replace global variables with user_data.
1717
1718 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1719
1720 * maint.c (maintenance_selftest): Split args and pass array_view
1721 to run_tests.
1722
1723 2020-08-12 Luis Machado <luis.machado@linaro.org>
1724
1725 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1726 type's length.
1727 Use %s and pulongest to print the length.
1728
1729 2020-08-12 Pedro Alves <palves@redhat.com>
1730
1731 * NEWS: Move "Multi-target debugging support" item to the
1732 "Changes since GDB 9" section.
1733
1734 2020-08-12 Pedro Alves <palves@redhat.com>
1735
1736 PR gdb/26336
1737 * progspace.c (program_space::remove_objfile): Invalidate the
1738 frame cache.
1739
1740 2020-08-11 Tom de Vries <tdevries@suse.de>
1741
1742 * MAINTAINERS: Mark ms1 as deleted.
1743
1744 2020-08-10 Luis Machado <luis.machado@linaro.org>
1745
1746 PR gdb/26310
1747
1748 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1749 act accordingly.
1750 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1751 movz/str/stur/stp skipping behavior.
1752
1753 2020-08-10 Luis Machado <luis.machado@linaro.org>
1754
1755 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1756 struct user_sve_header instead of struct sve_context.
1757
1758 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1759
1760 * read.h (dwarf2_fetch_die_loc_sect_off,
1761 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1762 `void *` parameter with function_view.
1763 * read.c (dwarf2_fetch_die_loc_sect_off,
1764 dwarf2_fetch_die_loc_cu_off): Likewise.
1765 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1766 (per_cu_dwarf_call): Adjust.
1767 (get_frame_address_in_block_wrapper): Remove.
1768 (indirect_synthetic_pointer): Adjust.
1769 (get_ax_pc): Remove.
1770 (dwarf2_compile_expr_to_ax): Adjust.
1771
1772 2020-08-08 Tom de Vries <tdevries@suse.de>
1773
1774 PR build/26344
1775 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1776 constructor.
1777 * regcache.c (get_thread_arch_aspace_regcache): Same.
1778
1779 2020-08-07 Tom Tromey <tromey@adacore.com>
1780
1781 * ravenscar-thread.c
1782 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1783 New method.
1784 (ravenscar_thread_target::wait): Check
1785 runtime_initialized.
1786 (ravenscar_thread_target::prepare_to_store)
1787 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1788 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1789 (ravenscar_thread_target::stopped_by_watchpoint)
1790 (ravenscar_thread_target::stopped_data_address)
1791 (ravenscar_thread_target::core_of_thread): Use
1792 scoped_restore_current_thread and
1793 set_base_thread_from_ravenscar_task.
1794
1795 2020-08-07 Tom Tromey <tromey@adacore.com>
1796
1797 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1798
1799 2020-08-07 Tom Tromey <tromey@adacore.com>
1800
1801 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1802 update_inferior_ptid before update_thread_list.
1803 (temporarily_change_regcache_ptid): New class.
1804 (ravenscar_thread_target::fetch_registers)
1805 (ravenscar_thread_target::store_registers)
1806 (ravenscar_thread_target::prepare_to_store): Use base thread when
1807 forwarding operation.
1808
1809 2020-08-07 Tom Tromey <tromey@adacore.com>
1810
1811 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1812 "is_pid" case.
1813
1814 2020-08-07 Tom Tromey <tromey@adacore.com>
1815
1816 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1817 New methods.
1818 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1819 first.
1820 (ravenscar_thread_target::add_thread): Rename from
1821 ravenscar_add_thread.
1822 (ravenscar_thread_target::update_thread_list): Use a lambda.
1823 (ravenscar_thread_target::xfer_partial): New method.
1824
1825 2020-08-07 Tom Tromey <tromey@adacore.com>
1826
1827 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1828 gdb::function_view.
1829 (iterate_over_live_ada_tasks): Change type of argument.
1830 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1831 of argument.
1832
1833 2020-08-07 Tom Tromey <tromey@adacore.com>
1834
1835 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1836 Remove.
1837 (ravenscar_thread_target::extra_thread_info): Remove.
1838 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1839 defer to target beneath for non-Ravenscar threads.
1840
1841 2020-08-07 Tom Tromey <tromey@adacore.com>
1842
1843 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1844 get_base_thread_from_ravenscar_task>: Now methods.
1845 <m_cpu_map>: New member.
1846 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1847 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1848 (ravenscar_thread_target::task_is_currently_active): Update.
1849 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1850 Now a method.
1851 (ravenscar_thread_target::add_active_thread): Put initial thread
1852 into the m_cpu_map.
1853
1854 2020-08-07 Tom Tromey <tromey@adacore.com>
1855
1856 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1857 event_ptid.
1858
1859 2020-08-07 Tom Tromey <tromey@adacore.com>
1860
1861 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1862 runtime_initialized.
1863
1864 2020-08-07 Tom Tromey <tromey@adacore.com>
1865
1866 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1867 add_active_thread.
1868 (ravenscar_thread_target::add_active_thread): Now public.
1869 (ravenscar_inferior_created): Call add_active_thread after pushing
1870 the target.
1871
1872 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1873
1874 * regcache.c (ptid_regcache_map): New type.
1875 (target_ptid_regcache_map): New type.
1876 (regcaches): Change type to target_ptid_regcache_map.
1877 (get_thread_arch_aspace_regcache): Update to regcaches' new
1878 type.
1879 (regcache_thread_ptid_changed): Likewise.
1880 (registers_changed_ptid): Likewise.
1881 (regcaches_size): Likewise.
1882 (regcaches_test): Update.
1883 (regcache_thread_ptid_changed): Update.
1884 * regcache.h (regcache_up): New type.
1885 * gdbsupport/ptid.h (hash_ptid): New struct.
1886
1887 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * observable.h (thread_ptid_changed): Add parameter
1890 `process_stratum_target *`.
1891 * infrun.c (infrun_thread_ptid_changed): Add parameter
1892 `process_stratum_target *` and use it.
1893 (selftests): New namespace.
1894 (infrun_thread_ptid_changed): New function.
1895 (_initialize_infrun): Register selftest.
1896 * regcache.c (regcache_thread_ptid_changed): Add parameter
1897 `process_stratum_target *` and use it.
1898 (regcache_thread_ptid_changed): New function.
1899 (_initialize_regcache): Register selftest.
1900 * thread.c (thread_change_ptid): Pass target to
1901 thread_ptid_changed observable.
1902
1903 2020-08-06 Caroline Tice <cmtice@google.com>
1904
1905 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1906 (struct dwp_sections): Update field comments. Add loclists and
1907 rnglists fields.
1908 (struct virtual_v2_dwo_sections): Rename struct to
1909 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1910 size & offset fields for loclists and rnglists.
1911 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1912 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1913 skipping dummy type units.
1914 (create_dwp_hash_table): Update the large comment above the function to
1915 discuss Version 5 DWP files as well, with references. Update all the
1916 version checks in the function to check for version 5 as well. Add new
1917 section at the end to create dwp hash table for version 5.
1918 (create_dwp_v2_section): Rename function to
1919 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1920 Add V5 to error message text.
1921 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1922 into calls to create_dwp_v2_or_v5_section.
1923 (create_dwo_unit_in_dwp_v5): New function.
1924 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1925 check for version2; add else clause to handle version 5.
1926 (open_and_init_dwo_file): Add code to check dwarf version & only call
1927 create_debug_types_hash_table (with sections.types) if version is not 5;
1928 else call create_debug_type_hash_table, with sections.info.
1929 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1930 version 5.
1931 (dwarf2_locate_v5_dwp_sections): New function.
1932 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1933 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1934
1935 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * regcache.h (class regcache): Remove friend
1938 registers_changed_ptid.
1939 <regcache_thread_ptid_changed>: Remove.
1940 <regcaches>: Remove.
1941 * regcache.c (regcache::regcaches): Rename to...
1942 (regcaches): ... this. Make static.
1943 (get_thread_arch_aspace_regcache): Update.
1944 (regcache::regcache_thread_ptid_changed): Rename to...
1945 (regcache_thread_ptid_changed): ... this. Update.
1946 (class regcache_access): Remove.
1947 (regcaches_test): Update.
1948 (_initialize_regcache): Update.
1949 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1950 <forward_list>.
1951
1952 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * regcache.h (class regcache) <current_regcache>: Rename to...
1955 <regcaches>: ... this. Move doc here.
1956 * regcache.c (regcache::current_regcache) Rename to...
1957 (regcache::regcaches): ... this. Move doc to header.
1958 (get_thread_arch_aspace_regcache): Update.
1959 (regcache::regcache_thread_ptid_changed): Update.
1960 (registers_changed_ptid): Update.
1961 (class regcache_access) <current_regcache_size>: Rename to...
1962 <regcaches_size>: ... this.
1963 (current_regcache_test): Rename to...
1964 (regcaches_test): ... this.
1965 (_initialize_regcache): Update.
1966
1967 2020-08-06 Victor Collod <vcollod@nvidia.com>
1968
1969 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1970
1971 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1972
1973 * corelow.c (core_target::build_file_mappings): Don't output
1974 null pathname in warning.
1975
1976 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1977
1978 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1979 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1980 gdb.dwarf2/dw2-single-line-discriminators.exp,
1981 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1982
1983 2020-08-05 Tom Tromey <tromey@adacore.com>
1984
1985 PR rust/26197:
1986 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1987 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1988 Fix off-by-one and type size errors in ordinary case.
1989
1990 2020-08-05 Tom de Vries <tdevries@suse.de>
1991
1992 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1993 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1994
1995 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * frame.h (frame_id_p): Return bool.
1998 (frame_id_artificial_p): Return bool.
1999 (frame_id_eq): Return bool.
2000 (has_stack_frames): Return bool.
2001 (get_selected_frame): Fix typo in comment.
2002 (get_frame_pc_if_available): Return bool.
2003 (get_frame_address_in_block_if_available): Return bool.
2004 (get_frame_func_if_available): Return bool.
2005 (read_frame_register_unsigned): Return bool.
2006 (get_frame_register_bytes): Return bool.
2007 (safe_frame_unwind_memory): Return bool.
2008 (deprecated_frame_register_read): Return bool.
2009 (frame_unwinder_is): Return bool.
2010 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2011 bool.
2012 <this_id::p>: Likewise.
2013 <prev_p>: Likewise.
2014 (frame_stash_add): Return bool.
2015 (get_frame_id): Use bool.
2016 (frame_id_build_special) Use bool.
2017 (frame_id_build_unavailable_stack): Use bool.
2018 (frame_id_build): Use bool.
2019 (frame_id_p): Return bool, use true/false instead of 1/0.
2020 (frame_id_artificial_p): Likewise.
2021 (frame_id_eq): Likewise.
2022 (frame_id_inner): Likewise.
2023 (get_frame_func_if_available): Likewise.
2024 (read_frame_register_unsigned): Likewise.
2025 (deprecated_frame_register_read): Likewise.
2026 (get_frame_register_bytes): Likewise.
2027 (has_stack_frames): Likewise.
2028 (inside_main_func): Likewise.
2029 (inside_entry_func): Likewise.
2030 (get_frame_pc_if_available): Likewise.
2031 (get_frame_address_in_block_if_available): Likewise.
2032 (frame_unwinder_is): Likewise.
2033 (safe_frame_unwind_memory): Likewise.
2034 (frame_unwind_arch): Likewise.
2035
2036 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2037
2038 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2039 type to cached_copy_status.
2040 (fprintf_frame): Adjust.
2041 (get_frame_func_if_available): Adjust.
2042 (frame_cleanup_after_sniffer): Adjust.
2043
2044 2020-08-04 Mark Wielaard <mark@klomp.org>
2045
2046 * MAINTAINERS (Write After Approval): Update email address.
2047
2048 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2051 dynamic_prop::const_val.
2052
2053 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2056 dynamic_prop::kind.
2057
2058 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2059
2060 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2061
2062 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2063
2064 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2065
2066 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2067 Jose E. Marchesi <jose.marchesi@oracle.com>
2068
2069 * configure.tgt: Add entry for bpf-*-*.
2070 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2071 (ALLDEPFILES): Add bpf-tdep.c.
2072 * bpf-tdep.c: New file.
2073 * MAINTAINERS: Add bpf target and maintainer.
2074 * NEWS: Mention the support for the new target.
2075
2076 2020-08-04 Tom de Vries <tdevries@suse.de>
2077
2078 PR symtab/23270
2079 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2080 Error.
2081
2082 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2083
2084 * syscalls/freebsd.xml: Regenerate.
2085
2086 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2087
2088 * syscalls/update-freebsd.sh: Fix usage and year range.
2089
2090 2020-08-03 Tom de Vries <tdevries@suse.de>
2091
2092 PR symtab/26333
2093 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2094 DW_LNE_lo_user/DW_LNE_hi_user range.
2095
2096 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2097
2098 PR ada/26318
2099 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2100 kind.
2101
2102 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2103
2104 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2105
2106 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2107
2108 * breakpoint.c (set_breakpoint_condition): Update the condition
2109 expressions after checking that the input condition string parses
2110 successfully and does not contain junk at the end.
2111
2112 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2113
2114 * breakpoint.c (set_breakpoint_condition): Update the
2115 condition string after parsing the new condition successfully.
2116
2117 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2118
2119 * proc-api.c (_STRUCTURED_PROC): Don't define.
2120 * proc-events.c: Likewise.
2121 * proc-flags.c: Likewise.
2122 * proc-why.c: Likewise.
2123 * procfs.c: Likewise.
2124
2125 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2126 * configure, config.in: Regenerate.
2127
2128 2020-07-30 Tom de Vries <tdevries@suse.de>
2129
2130 PR build/26320
2131 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2132 m_red/m_green/m_blue in a union.
2133
2134 2020-07-29 Tom de Vries <tdevries@suse.de>
2135
2136 PR tdep/26280
2137 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2138
2139 2020-07-28 Tom Tromey <tromey@adacore.com>
2140
2141 PR symtab/26270:
2142 * symtab.h (find_pc_partial_function_sym): Declare.
2143 * cli/cli-cmds.c (disassemble_command): Use
2144 find_pc_partial_function_sym. Check asm_demangle.
2145 * blockframe.c (cache_pc_function_sym): New global.
2146 (cache_pc_function_name): Remove.
2147 (clear_pc_function_cache): Update.
2148 (find_pc_partial_function_sym): New function, from
2149 find_pc_partial_function.
2150 (find_pc_partial_function): Rewrite using
2151 find_pc_partial_function_sym.
2152
2153 2020-07-28 Tom Tromey <tromey@adacore.com>
2154
2155 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2156 help. Add usage.
2157
2158 2020-07-28 Tom Tromey <tromey@adacore.com>
2159
2160 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2161 <DW_OP_GNU_variable_value>: Cast to address type.
2162
2163 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2164
2165 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2166 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2167 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2168 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2169 (nbsd_get_siginfo_type): New.
2170 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2171 (_initialize_nbsd_tdep): New.
2172
2173 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 PR binutils/26301
2176 * configure: Regenerated.
2177
2178 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2179
2180 PR binutils/26301
2181 * configure: Regenerated.
2182
2183 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * python/py-frame.c: Remove 'user-regs.h' include.
2186 (frapy_read_register): Rewrite to make use of
2187 gdbpy_parse_register_id.
2188 * python/py-registers.c (gdbpy_parse_register_id): New function,
2189 moved here from python/py-unwind.c. Updated the return type, and
2190 also accepts register descriptor objects.
2191 * python/py-unwind.c: Remove 'user-regs.h' include.
2192 (pyuw_parse_register_id): Moved to python/py-registers.c.
2193 (unwind_infopy_add_saved_register): Update to use
2194 gdbpy_parse_register_id.
2195 (pending_framepy_read_register): Likewise.
2196 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2197
2198 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * python/py-registers.c: Add 'user-regs.h' include.
2201 (register_descriptor_iter_find): New function.
2202 (register_descriptor_iterator_object_methods): New static global
2203 methods array.
2204 (register_descriptor_iterator_object_type): Add pointer to methods
2205 array.
2206
2207 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2208
2209 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2210 for all architectures on FreeBSD 11.3 and later.
2211
2212 2020-07-27 Tom Tromey <tromey@adacore.com>
2213
2214 * gcore.h (load_corefile): Don't declare.
2215
2216 2020-07-27 Tom de Vries <tdevries@suse.de>
2217
2218 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2219 * config.in: Regenerate.
2220 * configure: Regenerate.
2221
2222 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2223
2224 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2225 ws2tcpip.h. When checking whether socklen_t type is defined, use
2226 ws2tcpip.h if it is available and sys/socket.h isn't.
2227 * configure: Regenerate.
2228 * config.in: Regenerate.
2229
2230 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2231
2232 PR fortran/23051
2233 PR fortran/26139
2234 * valops.c (value_ind): Pass address to
2235 readjust_indirect_value_type.
2236 * value.c (readjust_indirect_value_type): Make parameter
2237 non-const, and add extra address parameter. Resolve original type
2238 before using it.
2239 * value.h (readjust_indirect_value_type): Update function
2240 signature and comment.
2241
2242 2020-07-25 Tom de Vries <tdevries@suse.de>
2243
2244 PR symtab/26243
2245 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2246 entries.
2247
2248 2020-07-24 Aaron Merey <amerey@redhat.com>
2249
2250 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2251 * configure: Rebuild.
2252
2253 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2254
2255 PR corefiles/26294
2256 * corelow.c (_initialize_corelow): Add period to help text
2257 for "maintenance print core-file-backed-mappings".
2258
2259 2020-07-23 Pedro Alves <pedro@palves.net>
2260
2261 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2262 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2263 meanwhile.
2264 * frame.c (frame_cache_generation, get_frame_cache_generation):
2265 New.
2266 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2267 (get_prev_frame_if_no_cycle): On exception, don't touch
2268 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2269 * frame.h (get_frame_cache_generation): Declare.
2270
2271 2020-07-23 Tom de Vries <tdevries@suse.de>
2272
2273 PR tui/26282
2274 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2275 New default constructor.
2276
2277 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2280 exclude non-statement entries.
2281
2282 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2283
2284 * NEWS (New commands): Mention new command
2285 "maintenance print core-file-backed-mappings".
2286
2287 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2288
2289 * corelow.c (gdbcmd.h): Include.
2290 (core_target::info_proc_mappings): New method.
2291 (get_current_core_target): New function.
2292 (maintenance_print_core_file_backed_mappings): New function.
2293 (_initialize_corelow): Add core-file-backed-mappings to
2294 "maint print" commands.
2295
2296 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2297
2298 * linux-tdep.c (dump_note_entry_p): New function.
2299 (linux_dump_mapping_p_ftype): New typedef.
2300 (linux_find_memory_regions_full): Add new parameter,
2301 should_dump_mapping_p.
2302 (linux_find_memory_regions): Adjust call to
2303 linux_find_memory_regions_full.
2304 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2305 call to linux_find_memory_regions_full.
2306
2307 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2308
2309 * corelow.c (solist.h, unordered_map): Include.
2310 (class core_target): Add field m_core_file_mappings and
2311 method build_file_mappings.
2312 (core_target::core_target): Call build_file_mappings.
2313 (core_target::~core_target): Free memory associated with
2314 m_core_file_mappings.
2315 (core_target::build_file_mappings): New method.
2316 (core_target::xfer_partial): Use m_core_file_mappings
2317 for memory transfers.
2318 * linux-tdep.c (linux_read_core_file_mappings): New
2319 function.
2320 (linux_core_info_proc_mappings): Rewrite to use
2321 linux_read_core_file_mappings.
2322 (linux_init_abi): Register linux_read_core_file_mappings.
2323
2324 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2325
2326 * arch-utils.c (default_read_core_file_mappings): New function.
2327 * arch-utils.c (default_read_core_file_mappings): Declare.
2328 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2329 * gdbarch.h, gdbarch.c: Regenerate.
2330
2331 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2332
2333 PR corefiles/25631
2334 * corelow.c (core_target:xfer_partial): Revise
2335 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2336 case after first checking the stratum beneath the core
2337 target.
2338 (has_all_memory): Return true.
2339 * target.c (raw_memory_xfer_partial): Revise comment
2340 regarding use of has_all_memory.
2341
2342 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2343
2344 * exec.h (section_table_xfer_memory): Revise declaration,
2345 replacing section name parameter with an optional callback
2346 predicate.
2347 * exec.c (section_table_xfer_memory): Likewise.
2348 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2349 of section_table_xfer_memory.
2350
2351 2020-07-22 Tom Tromey <tromey@adacore.com>
2352
2353 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2354 lookup_symbol_search_name.
2355
2356 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2359 redundant local variable.
2360 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2361 reference, not pointer, update code accordingly.
2362
2363 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2364 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2365
2366 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2367 * jit.c (jit_breakpoint_re_set_internal): Use the
2368 `skip_jit_symbol_lookup` field.
2369
2370 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2371 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2372
2373 * jit.c (jit_read_descriptor): Define the descriptor address once,
2374 use twice.
2375 (jit_breakpoint_deleted): Move the declaration of the loop variable
2376 `iter` into the loop header.
2377 (jit_breakpoint_re_set_internal): Move the declaration of the local
2378 variable `objf_data` to the first point of definition.
2379 (jit_event_handler): Move the declaration of local variables
2380 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2381 Rename `objf` to `jited`.
2382
2383 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2384
2385 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2386 Remove.
2387 * jit.c (get_jiter_objfile_data): Update.
2388
2389 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2390 Simon Marchi <simon.marchi@polymtl.ca>
2391
2392 * jit.c (struct jit_program_space_data): Remove.
2393 (jit_program_space_key): Remove.
2394 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2395 stuff.
2396 (get_jit_program_space_data): Remove.
2397 (jit_breakpoint_deleted): Iterate on all of the program space's
2398 objfiles.
2399 (jit_inferior_init): Likewise.
2400 (jit_breakpoint_re_set_internal): Likewise. Also change return
2401 type to void.
2402 (jit_breakpoint_re_set): Pass current_program_space to
2403 jit_breakpoint_re_set_internal.
2404
2405 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * jit.h (struct jiter_objfile_data) <cached_code_address,
2408 jit_breakpoint>: Move to here from ...
2409 * jit.c (jit_program_space_data): ... here.
2410 (jiter_objfile_data::~jiter_objfile_data): Update.
2411 (jit_breakpoint_deleted): Update.
2412 (jit_breakpoint_re_set_internal): Update.
2413
2414 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2417 checks.
2418 (jit_read_descriptor): Remove NULL check.
2419 (jit_event_handler): Add an assertion.
2420
2421 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2422
2423 * jit.h (struct jit_objfile_data): Split into...
2424 (struct jiter_objfile_data): ... this ...
2425 (struct jited_objfile_data): ... and this.
2426 * objfiles.h (struct objfile) <jit_data>: Remove.
2427 <jiter_data, jited_data>: New fields.
2428 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2429 (jiter_objfile_data::~jiter_objfile_data): ... this.
2430 (get_jit_objfile_data): Rename to ...
2431 (get_jiter_objfile_data): ... this.
2432 (add_objfile_entry): Update.
2433 (jit_read_descriptor): Use get_jiter_objfile_data.
2434 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2435 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2436 (jit_inferior_exit_hook): Use objfile's jited_data field.
2437
2438 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * jit.h: Forward-declare `struct minimal_symbol`.
2441 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2442 constructor, destructor, and an objfile* field.
2443 * jit.c (jit_objfile_data): Remove.
2444 (struct jit_objfile_data): Migrate from here to jit.h.
2445 (jit_objfile_data::~jit_objfile_data): New destructor
2446 implementation with code moved from free_objfile_data.
2447 (free_objfile_data): Delete.
2448 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2449 (jit_find_objf_with_entry_addr): Ditto.
2450 (jit_inferior_exit_hook): Ditto.
2451 (_initialize_jit): Remove the call to
2452 register_objfile_data_with_cleanup.
2453 * objfiles.h (struct objfile) <jit_data>: New field.
2454
2455 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2456
2457 * jit.h: Forward-declare `struct objfile`.
2458 (jit_event_handler): Add a second parameter, the JITer objfile.
2459 * jit.c (jit_read_descriptor): Change the signature to take the
2460 JITer objfile as an argument instead of the jit_program_space_data.
2461 (jit_inferior_init): Update the call to jit_read_descriptor.
2462 (jit_event_handler): Use the new JITer objfile argument when calling
2463 jit_read_descriptor.
2464 * breakpoint.c (handle_jit_event): Update the call to
2465 jit_event_handler to pass the JITer objfile.
2466
2467 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2468
2469 * gdbarch.c: Regenerate.
2470 * gdbarch.h: Regenerate.
2471 * gdbarch.sh (handle_segmentation_fault): Remove method.
2472 * infrun.c (handle_segmentation_fault): Remove.
2473 (print_signal_received_reason): Remove call to
2474 handle_segmentation_fault.
2475
2476 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2477
2478 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2479 Rename to sparc64_linux_report_signal_info and add siggnal
2480 argument.
2481 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2482 instead of sparc64_linux_handle_segmentation_fault.
2483
2484 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2485
2486 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2487 i386_linux_report_signal_info instead of
2488 i386_linux_handle_segmentation_fault.
2489 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2490 to i386_linux_report_signal_info and add siggnal argument.
2491 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2492 of i386_linux_handle_segmentation_fault.
2493 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2494 to i386_linux_report_signal_info and add siggnal argument.
2495
2496 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2497
2498 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2499 hook if present.
2500
2501 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2502
2503 * gdbarch.c: Regenerate.
2504 * gdbarch.h: Regenerate.
2505 * gdbarch.sh (report_signal_info): New method.
2506 * infrun.c (print_signal_received_reason): Invoke gdbarch
2507 report_signal_info hook if present.
2508
2509 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * python/py-registers.c : Add 'unordered_map' include.
2512 (gdbpy_new_reggroup): Renamed to...
2513 (gdbpy_get_reggroup): ...this. Update to only create register
2514 group descriptors when needed.
2515 (gdbpy_reggroup_iter_next): Update.
2516
2517 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * python/py-registers.c (gdbpy_register_object_data): New static
2520 global.
2521 (gdbpy_register_object_data_init): New function.
2522 (gdbpy_new_register_descriptor): Renamed to...
2523 (gdbpy_get_register_descriptor): ...this, and update to reuse
2524 existing register descriptors where possible.
2525 (gdbpy_register_descriptor_iter_next): Update.
2526 (gdbpy_initialize_registers): Register new gdbarch data.
2527
2528 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * linux-nat.c (stopped_pids): Make static.
2531
2532 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 PR ada/26235
2535 * gdbtypes.c (ada_discrete_type_low_bound,
2536 ada_discrete_type_high_bound): Handle undefined bounds.
2537
2538 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2539
2540 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2541 declaration.
2542 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2543 function.
2544
2545 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2546
2547 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2548 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2549 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2550 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2551 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2552 method.
2553
2554 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2555
2556 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2557 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2558 which are deprecated in Guile 3.0.
2559 * configure.ac (try_guile_versions): Add "guile-3.0".
2560 * configure (try_guile_versions): Regenerate.
2561 * NEWS: Update entry.
2562
2563 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2564 Doug Evans <dje@google.com>
2565
2566 PR gdb/21104
2567 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2568 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2569 USING_GUILE_BEFORE_2_2.
2570 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2571 Change type to 'scm_t_port_type *'.
2572 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2573 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2574 parameter and honor it. Update callers.
2575 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2576 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2577 functions.
2578 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2579 USING_GUILE_BEFORE_2_2.
2580 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2581 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2582 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2583 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2584 and 'SCM_PORT_TYPE'.
2585 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2586 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2587 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2588 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2589 [!USING_GUILE_BEFORE_2_2]: New functions.
2590 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2591 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2592 'gdbscm_memory_port_read'.
2593 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2594 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2595 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2596 function.
2597 (ioscm_init_memory_port): Remove.
2598 (ioscm_init_memory_port_stream): New function
2599 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2600 function.
2601 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2602 Return scm_from_uint (0).
2603 (gdbscm_set_memory_port_read_buffer_size_x)
2604 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2605 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2606 Return scm_from_uint (0).
2607 (gdbscm_set_memory_port_write_buffer_size_x)
2608 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2609 * configure.ac (try_guile_versions): Add "guile-2.2".
2610 * configure: Regenerate.
2611 * NEWS: Add entry.
2612
2613 2020-07-18 Tom Tromey <tom@tromey.com>
2614
2615 * linux-nat.c (linux_multi_process): Remove.
2616 (linux_nat_target::supports_multi_process): Return true.
2617
2618 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2621 (riscv_lookup_target_description): Return pointer out of
2622 unique_ptr.
2623 * target-descriptions.c (allocate_target_description): Add
2624 comment.
2625 (target_desc_deleter::operator()): Likewise.
2626 * target-descriptions.h (struct target_desc_deleter): Moved to
2627 gdbsupport/tdesc.h.
2628 (target_desc_up): Likewise.
2629
2630 2020-07-17 Tom Tromey <tromey@adacore.com>
2631
2632 * linux-nat.c (linux_nat_target::supports_non_stop)
2633 (linux_nat_target::always_non_stop_p): Use "true".
2634 (linux_nat_target::supports_disable_randomization): Use "true" and
2635 "false".
2636
2637 2020-07-16 Caroline Tice <cmtice@google.com>
2638
2639 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2640 (RNGLIST_HEADER_SIZE64): New constant definition.
2641 (struct dwop_section_names): Add rnglists_dwo.
2642 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2643 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2644 (struct dwo_sections): Add rnglists field.
2645 (read_attribut_reprocess): Add tag parameter.
2646 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2647 (cu_debug_rnglists_section): New function (decl & definition).
2648 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2649 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2650 die whose range is being checked; get rnglist section from
2651 cu_debug_rnglists_section, to get from either objfile or dwo file as
2652 appropriate. Add cases for DW_RLE_base_addressx,
2653 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2654 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2655 test inside if-condition and updating complaint message.
2656 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2657 dwarf2_rnglists_process.
2658 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2659 dwarf2_ranges_process.
2660 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2661 need_ranges_base and update comment appropriately. Also pass die tag
2662 to dwarf2_ranges_read.
2663 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2664 need_ranges_base and update comment appropriately. Also pass die tag
2665 to dwarf2_ranges_process.
2666 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2667 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2668 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2669 need_ranges_base and update comment appropriately. Also pass die tag
2670 to read_attribute_reprocess and dwarf2_ranges_read.
2671 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2672 and update function comment appropriately.
2673 (read_loclist_index): Call read_loclists_rnglists_header instead of
2674 read_loclist_header.
2675 (read_rnglist_index): New function.
2676 (read_attribute_reprocess): Add tag parameter. Add code for
2677 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2678 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2679
2680 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2681
2682 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2683 being resolved.
2684
2685 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2686
2687 * arch-utils.c (show_architecture): Update formatting of messages.
2688
2689 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * gdbtypes.h (struct type) <bounds>: Handle array and string
2692 types.
2693 * ada-lang.c (assign_aggregate): Use type::bounds on
2694 array/string type.
2695 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2696 * c-varobj.c (c_number_of_children): Likewise.
2697 (c_describe_child): Likewise.
2698 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2699 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2700 (f_type_print_base): Likewise.
2701 * f-valprint.c (f77_array_offset_tbl): Likewise.
2702 (f77_get_upperbound): Likewise.
2703 (f77_print_array_1): Likewise.
2704 * guile/scm-type.c (gdbscm_type_range): Likewise.
2705 * m2-typeprint.c (m2_array): Likewise.
2706 (m2_is_long_set_of_type): Likewise.
2707 * m2-valprint.c (get_long_set_bounds): Likewise.
2708 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2709 * python/py-type.c (typy_range): Likewise.
2710 * rust-lang.c (rust_internal_print_type): Likewise.
2711 * type-stack.c (type_stack::follow_types): Likewise.
2712 * valarith.c (value_subscripted_rvalue): Likewise.
2713 * valops.c (value_cast): Likewise.
2714
2715 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2718 callers to use the equivalent accessor methods.
2719
2720 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2723 (struct type) <bit_stride>: New method.
2724 (TYPE_BIT_STRIDE): Remove.
2725 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2726
2727 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2730 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2731 callers to use the equivalent accessor methods instead.
2732
2733 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2736 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2737 callers to use the equivalent accessor methods instead.
2738
2739 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2742 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2743 to use dynamic_prop::kind.
2744
2745 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2748 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2749 to get the bound property's kind and check against
2750 PROP_UNDEFINED.
2751
2752 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2753
2754 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2755 all callers to use type::range_bounds followed by
2756 dynamic_prop::{low,high}.
2757
2758 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2761 const_val, set_const_val, baton, set_locexpr, set_loclist,
2762 set_addr_offset, variant_parts, set_variant_parts,
2763 original_type, set_original_type>: New methods.
2764 <kind>: Rename to...
2765 <m_kind>: ... this. Update all users to use the new methods
2766 instead.
2767 <data>: Rename to...
2768 <m_data>: ... this. Update all users to use the new methods
2769 instead.
2770
2771 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2772
2773 * gdbtypes.c (get_discrete_bounds): Return failure if
2774 the range type's bounds are not both defined and constant
2775 values.
2776 (get_array_bounds): Update comment. Remove undefined bound check.
2777
2778 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2781 the type::bounds method directly.
2782
2783 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2786 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2787 are used to set the range type's bounds to use set_bounds.
2788
2789 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2790
2791 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2792
2793 2020-07-10 Pedro Alves <pedro@palves.net>
2794
2795 * gdbthread.h (inferior_ref): Define.
2796 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2797 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2798 * thread.c
2799 (scoped_restore_current_thread::restore):
2800 Adjust to gdb::ref_ptr.
2801 (scoped_restore_current_thread::~scoped_restore_current_thread):
2802 Remove manual decref handling.
2803 (scoped_restore_current_thread::scoped_restore_current_thread):
2804 Adjust to use
2805 inferior_ref::new_reference/thread_info_ref::new_reference.
2806 Incref the thread before calling get_frame_id instead of after.
2807 Let TARGET_CLOSE_ERROR propagate.
2808
2809 2020-07-10 Pedro Alves <pedro@palves.net>
2810
2811 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2812 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2813 NOT_AVAILABLE_ERROR.
2814 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2815 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2816
2817 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2818 Pedro Alves <pedro@palves.net>
2819
2820 PR gdb/26199
2821 * infrun.c (threads_are_resumed_pending_p): Delete.
2822 (do_target_wait): Remove threads_are_executing and
2823 threads_are_resumed_pending_p checks from the inferior_matches
2824 lambda. Update comments.
2825
2826 2020-07-10 Pedro Alves <pedro@palves.net>
2827
2828 PR gdb/26199
2829 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2830 executing threads.
2831
2832 2020-07-10 Pedro Alves <pedro@palves.net>
2833
2834 PR gdb/26199
2835 * infrun.c (handle_no_resumed): Handle multiple targets.
2836
2837 2020-07-10 Pedro Alves <pedro@palves.net>
2838
2839 PR gdb/26199
2840 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2841 target_is_async_p.
2842
2843 2020-07-10 Pedro Alves <pedro@palves.net>
2844
2845 PR gdb/26199
2846 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2847 threads, not all threads.
2848
2849 2020-07-10 Pedro Alves <pedro@palves.net>
2850
2851 PR gdb/26199
2852 * remote.c (remote_target::open_1): Pass remote target pointer as
2853 data to create_async_event_handler.
2854 (remote_async_inferior_event_handler): Mark async event handler
2855 before returning if the remote target still has either pending
2856 events or unacknowledged notifications.
2857
2858 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2859
2860 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2861 declaration.
2862 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2863 function.
2864
2865 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2866
2867 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2868 inferior_ptid.
2869
2870 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2871
2872 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2873 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2874 AT_FREEBSD_PS_STRINGS.
2875
2876 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2877
2878 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2879 of debugfile path on Windows.
2880
2881 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2882
2883 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2884 argument to 'data'.
2885
2886 2020-07-08 Tom Tromey <tromey@adacore.com>
2887
2888 * ada-lang.c (ada_exception_message_1): Use read_memory.
2889
2890 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2891
2892 PR python/22748
2893 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2894 special handling for inline frames.
2895 * findvar.c (value_of_register_lazy): Skip inline frames when
2896 creating lazy register values.
2897 * frame.c (frame_id_computed_p): Delete definition.
2898 * frame.h (frame_id_computed_p): Delete declaration.
2899
2900 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * NEWS: Mention additions to Python API.
2903 * python/py-arch.c (archpy_register_groups): New function.
2904 (arch_object_methods): Add 'register_groups' method.
2905 * python/py-registers.c (reggroup_iterator_object): New struct.
2906 (reggroup_object): New struct.
2907 (gdbpy_new_reggroup): New function.
2908 (gdbpy_reggroup_to_string): New function.
2909 (gdbpy_reggroup_name): New function.
2910 (gdbpy_reggroup_iter): New function.
2911 (gdbpy_reggroup_iter_next): New function.
2912 (gdbpy_new_reggroup_iterator): New function
2913 (gdbpy_initialize_registers): Register new types.
2914 (reggroup_iterator_object_type): Define new Python type.
2915 (gdbpy_reggroup_getset): New static global.
2916 (reggroup_object_type): Define new Python type.
2917 * python/python-internal.h
2918
2919 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2922 * python/py-arch.c (archpy_registers): New function.
2923 (arch_object_methods): Add 'registers' method.
2924 * python/py-registers.c: New file.
2925 * python/python-internal.h
2926 (gdbpy_new_register_descriptor_iterator): Declare.
2927 (gdbpy_initialize_registers): Declare.
2928 * python/python.c (do_start_initialization): Call
2929 gdbpy_initialize_registers.
2930 * NEWS: Mention additions to the Python API.
2931
2932 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * NEWS: Mention new Python API method.
2935 * python/py-unwind.c (pending_framepy_architecture): New function.
2936 (pending_frame_object_methods): Add architecture method.
2937
2938 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * gdbarch.c: Regenerate.
2941 * gdbarch.h: Regenerate.
2942 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2943 (gdbarch_data): Use internal_error for the case where
2944 deprecated_set_gdbarch_data was originally needed.
2945 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2946 and use passed in obstack.
2947 (libunwind_frame_set_descr): Should no longer get back NULL from
2948 gdbarch_data.
2949 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2950 type.
2951 * user-regs.c (user_regs_init): Update parameters, and use passed
2952 in obstack.
2953 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2954 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2955
2956 2020-07-06 Tom de Vries <tdevries@suse.de>
2957
2958 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2959 End-Of-Sequence in lte_is_less_than.
2960 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2961 "gdb: Don't reorder line table entries too much when sorting".
2962
2963 2020-07-06 Tom de Vries <tdevries@suse.de>
2964
2965 PR tui/26205
2966 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2967
2968 2020-07-05 Tom de Vries <tdevries@suse.de>
2969
2970 PR build/26187
2971 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2972 std::uncaught_exceptions instead of deprecated
2973 std::uncaught_exception.
2974
2975 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2976
2977 * macroexp.h (macro_stringify): Return
2978 gdb::unique_xmalloc_ptr<char>.
2979 * macroexp.c (macro_stringify): Likewise.
2980 * macrotab.c (fixup_definition): Update.
2981
2982 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2985 (lex_one_token): Update.
2986 * macroexp.c (struct macro_buffer) <release>: Return
2987 gdb::unique_xmalloc_ptr<char>.
2988 (macro_stringify): Update.
2989 (macro_expand): Update.
2990 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2991 * macroexp.h (macro_expand_next): Likewise.
2992
2993 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2994
2995 * macroexp.h (macro_lookup_ftype): Remove.
2996 (macro_expand, macro_expand_once, macro_expand_next): Remove
2997 lookup function parameters, add scope parameter.
2998 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2999 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3000 * macroscope.h (standard_macro_lookup): Change parameter type
3001 to macro_scope.
3002 * macroscope.c (standard_macro_lookup): Likewise.
3003 * c-exp.y (lex_one_token): Update.
3004 * macrocmd.c (macro_expand_command): Likewise.
3005 (macro_expand_once_command): Likewise.
3006
3007 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 * inf-loop.c (inferior_event_handler): Remove client_data param.
3010 * inf-loop.h (inferior_event_handler): Likewise.
3011 * infcmd.c (step_1): Adjust.
3012 * infrun.c (proceed): Adjust.
3013 (fetch_inferior_event): Remove client_data param.
3014 (infrun_async_inferior_event_handler): Adjust.
3015 * infrun.h (fetch_inferior_event): Remove `void *` param.
3016 * linux-nat.c (handle_target_event): Adjust.
3017 * record-btrace.c (record_btrace_handle_async_inferior_event):
3018 Adjust.
3019 * record-full.c (record_full_async_inferior_event_handler):
3020 Adjust.
3021 * remote.c (remote_async_inferior_event_handler): Adjust.
3022
3023 2020-07-01 Tom Tromey <tom@tromey.com>
3024
3025 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3026 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3027
3028 2020-07-01 Tom Tromey <tom@tromey.com>
3029
3030 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3031 tui_gen_win_info.
3032 (tui_win_info::make_window): Merge with
3033 tui_gen_win_info::make_window.
3034 (tui_win_info::make_visible): Move from tui_gen_win_info.
3035 * tui/tui-win.c (tui_win_info::max_width): Move from
3036 tui_gen_win_info.
3037 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3038 type.
3039 <window_factory>: Likewise.
3040 * tui/tui-layout.c (tui_win_info::resize): Move from
3041 tui_gen_win_info.
3042 (make_standard_window): Change return type.
3043 (get_locator_window, tui_get_window_by_name): Likewise.
3044 (tui_layout_window::apply): Remove a cast.
3045 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3046 (struct tui_win_info): Merge with tui_gen_win_info.
3047 (struct tui_gen_win_info): Remove.
3048
3049 2020-07-01 Tom Tromey <tom@tromey.com>
3050
3051 * tui/tui-stack.h (struct tui_locator_window): Derive from
3052 tui_win_info.
3053 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3054 <can_box>: New method.
3055
3056 2020-07-01 Tom Tromey <tom@tromey.com>
3057
3058 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3059
3060 2020-07-01 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-regs.c (tui_data_window::display_registers_from)
3063 (tui_data_window::display_registers_from)
3064 (tui_data_window::first_data_item_displayed)
3065 (tui_data_window::delete_data_content_windows): Update.
3066 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3067 Remove.
3068 (tui_data_window::check_register_values): Update.
3069 (tui_data_item_window::rerender): Add parameters. Update.
3070 (tui_data_item_window::refresh_window): Remove.
3071 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3072 virtual.
3073 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3074 tui_gen_win_info.
3075 <refresh_window, max_height, min_height>: Remove.
3076 <rerender>: Add parameters.
3077 <x, y, visible>: New members.
3078 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3079 <m_item_width>: New member.
3080
3081 2020-07-01 Tom Tromey <tom@tromey.com>
3082
3083 * tui/tui-regs.c (tui_data_window::show_register_group)
3084 (tui_data_window::check_register_values): Update.
3085 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3086 from item_no.
3087
3088 2020-07-01 Tom Tromey <tom@tromey.com>
3089
3090 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3091 useless "if".
3092
3093 2020-07-01 Tom Tromey <tom@tromey.com>
3094
3095 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3096 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3097
3098 2020-07-01 Tom Tromey <tom@tromey.com>
3099
3100 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3101 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3102 (struct tui_line_or_address): Move from tui-data.h.
3103 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3104 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3105 (tui_cmd_window, tui_source_window_base, tui_source_window)
3106 (tui_disasm_window): Don't declare.
3107 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3108 to tui-winsource.h.
3109 (SINGLE_KEY): Move to tui-stack.c.
3110
3111 2020-07-01 Tom Tromey <tom@tromey.com>
3112
3113 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3114 std::string.
3115 * tui/tui-regs.c (class tab_expansion_file): New.
3116 (tab_expansion_file::write): New method.
3117 (tui_register_format): Change return type. Use
3118 tab_expansion_file.
3119 (tui_get_register, tui_data_window::display_registers_from)
3120 (tui_data_item_window::rerender): Update.
3121 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3122 * tui/tui-io.c (tui_expand_tabs): Remove.
3123
3124 2020-07-01 Tom Tromey <tom@tromey.com>
3125
3126 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3127
3128 2020-07-01 Fangrui Song <maskray@google.com>
3129
3130 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3131
3132 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3133
3134 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3135 forms for DW_AT_associated and DW_AT_allocated attributes,
3136 which is already checked in function attr_to_dynamic_prop.
3137
3138 2020-06-30 Tom Tromey <tromey@adacore.com>
3139
3140 * dwarf2/read.c (quirk_rust_enum): Correctly call
3141 alloc_rust_variant for default-less enum.
3142
3143 2020-06-30 Tom Tromey <tromey@adacore.com>
3144
3145 PR build/26183:
3146 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3147 gdb::to_string.
3148
3149 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3150
3151 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3152 * gdbarch.h: Re-generate.
3153
3154 2020-06-28 Tom Tromey <tom@tromey.com>
3155
3156 * command.h (cmd_types): Remove.
3157 (cmd_type): Don't declare.
3158 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3159 typedef.
3160 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3161 * cli/cli-decode.c (cmd_type): Remove.
3162
3163 2020-06-27 Pedro Alves <palves@redhat.com>
3164
3165 * fork-child.c (prefork_hook): Adjust.
3166 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3167 Delete.
3168 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3169 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3170 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3171 Remove declarations.
3172 (struct inferior) <set_tty, tty>: New methods.
3173 (struct inferior) <terminal>: Rename to ...
3174 (struct inferior) <m_terminal>: ... this and make private.
3175 * main.c (captured_main_1): Adjust.
3176 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3177 (mi_cmd_inferior_tty_show): Adjust.
3178 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3179 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3180
3181 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3182
3183 * configure.ac: Add --enable-libctf: handle --disable-static
3184 properly.
3185 * acinclude.m4: sinclude ../config/enable.m4.
3186 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3187 (LIBCTF): Substitute in.
3188 (CTF_DEPS): New, likewise.
3189 (CLIBS): libctf needs symbols from libbfd: move earlier.
3190 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3191 flags.
3192 * ctfread.c: Surround in ENABLE_LIBCTF.
3193 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3194 * configure: Regenerate.
3195 * config.in: Likewise.
3196
3197 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3200
3201 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * inferior.h (struct inferior) <terminal>: Change type to
3204 gdb::unique_xmalloc_ptr<char>.
3205 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3206 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3207 field, adjust to unique pointer.
3208 (get_inferior_io_terminal): Adjust to unique pointer.
3209
3210 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3211
3212 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3213 registers, not just the known core set of registers.
3214
3215 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3216
3217 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3218 fflags, frm, and fcsr registers.
3219 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3220 restore groups.
3221 (riscv_tdesc_unknown_reg): New function.
3222 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3223 tdesc_use_registers.
3224 * riscv-tdep.h (struct gdbarch_tdep): Add
3225 unknown_csrs_first_regnum, unknown_csrs_count,
3226 duplicate_fflags_regnum, duplicate_frm_regnum, and
3227 duplicate_fcsr_regnum fields.
3228
3229 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3232 callback, use the callback (when not null) to help number unknown
3233 registers.
3234 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3235 (tdesc_use_registers): Add extra parameter to declaration.
3236
3237 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3240 in the file.
3241 (class riscv_pending_register_alias): Likewise.
3242 (riscv_register_feature::register_info): Change 'required_p' field
3243 to 'required', and change its type. Add 'check' member function.
3244 (riscv_register_feature::register_info::check): Define new member
3245 function.
3246 (riscv_xreg_feature): Change initialisation of 'required' field.
3247 (riscv_freg_feature): Likewise.
3248 (riscv_virtual_feature): Likewise.
3249 (riscv_csr_feature): Likewise.
3250 (riscv_check_tdesc_feature): Take extra parameter, the csr
3251 tdesc_feature, rewrite the function to use the new
3252 riscv_register_feature::register_info::check function.
3253 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3254
3255 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * features/Makefile: Remove all references to the deleted files
3258 below.
3259 * features/riscv/32bit-csr.c: Deleted.
3260 * features/riscv/32bit-csr.xml: Deleted.
3261 * features/riscv/64bit-csr.c: Deleted.
3262 * features/riscv/64bit-csr.xml: Deleted.
3263 * features/riscv/rebuild-csr-xml.sh: Deleted.
3264
3265 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3266
3267 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3268 whitespace error for declaration of names member variable.
3269 (struct riscv_register_feature): Add new prefer_first_name member
3270 variable, and fix whitespace error in declaration of registers.
3271 (riscv_xreg_feature): Initialize prefer_first_name field.
3272 (riscv_freg_feature): Likewise.
3273 (riscv_virtual_feature): Likewise.
3274 (riscv_csr_feature): Likewise.
3275 (riscv_register_name): Expand on comments. Remove register name
3276 modifications for CSR and virtual registers.
3277
3278 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3281 errors.
3282
3283 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3286 riscv-opc.h.
3287 (class riscv_pending_register_alias): New class.
3288 (riscv_check_tdesc_feature): Take vector of pending aliases and
3289 populate it as appropriate.
3290 (riscv_setup_register_aliases): Delete.
3291 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3292 to riscv_check_tdesc_feature in all cases. Use the vector to
3293 create the register aliases.
3294
3295 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3296
3297 * sol2-tdep.c (sol2_static_transform_name): Remove.
3298 (sol2_init_abi): Don't register it.
3299 * gdbarch.sh (static_transform_name): Remove.
3300 * gdbarch.c, gdbarch.h: Regenerate.
3301
3302 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3303 gdbarch_static_transform_name.
3304 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3305 * stabsread.c (define_symbol) <'X'>: Remove.
3306 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3307 handling.
3308 <'V'>: Likewise.
3309 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3310 <'S'>: Remove call to gdbarch_static_transform_name.
3311
3312 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3313
3314 * procfs.c (procfs_pre_trace): New function.
3315 (procfs_target::create_inferior): Pass it to fork_inferior.
3316
3317 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3318
3319 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3320 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3321 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3322 sol2-tdep.o, sparc-sol2-tdep.o.
3323 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3324 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3325 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3326 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3327
3328 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3329
3330 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3331 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3332 Call sol2_init_abi.
3333 Remove calls to set_gdbarch_skip_solib_resolver,
3334 set_gdbarch_core_pid_to_str.
3335 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3336 (i386_sol2_static_transform_name): Remove.
3337 (i386_sol2_init_abi): Call sol2_init_abi.
3338 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3339 set_gdbarch_static_transform_name,
3340 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3341 Use sol2_sigtramp_p.
3342 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3343 (sol2_sigtramp_p): New function.
3344 (sol2_static_transform_name): New function.
3345 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3346 (sol2_init_abi): New function.
3347 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3348 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3349 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3350 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3351 (sparc_sol2_static_transform_name): Remove.
3352 (sparc32_sol2_init_abi): Call sol2_init_abi.
3353 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3354 set_gdbarch_static_transform_name,
3355 set_gdbarch_skip_solib_resolver,
3356 set_gdbarch_core_pid_to_str.
3357 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3358 (sparc_sol2_static_transform_name): Remove
3359 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3360 call sol2_sigtramp_p.
3361 (sparc64_sol2_init_abi): Call sol2_init_abi.
3362 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3363 set_gdbarch_static_transform_name,
3364 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3365
3366 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3367
3368 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3369 * exec.c (validate_exec_file): If from_tty, set both
3370 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3371 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3372 and from_tty, unconditionally ask a confirmation.
3373
3374 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3375
3376 * target-descriptions.c (tdesc_architecture_name): Protect against
3377 NULL pointer dereference.
3378 (maint_print_xml_tdesc_cmd): New function.
3379 (_initialize_target_descriptions): Register new 'maint print
3380 xml-tdesc' command and give it the filename completer.
3381 * NEWS: Mention new 'maint print xml-tdesc' command.
3382
3383 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * target-descriptions.c (class tdesc_compatible_info): New class.
3386 (struct target_desc): Change type of compatible vector.
3387 (tdesc_compatible_p): Update for change in type of
3388 target_desc::compatible.
3389 (tdesc_compatible_info_list): New function.
3390 (tdesc_compatible_info_arch_name): New function.
3391 (tdesc_add_compatible): Update for change in type of
3392 target_desc::compatible.
3393 (print_c_tdesc::visit_pre): Likewise.
3394
3395 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3398 whitespace to underscore.
3399 (maint_print_c_tdesc_cmd): Use fake filename for target
3400 descriptions that came from the target.
3401 (_initialize_target_descriptions): Add filename command completion
3402 for 'maint print c-tdesc'.
3403
3404 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3407 lines.
3408
3409 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3410
3411 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3412 lines.
3413 (dwarf2_find_location_expression): Likewise.
3414 (call_site_parameter_matches): Likewise.
3415 (dwarf2_compile_expr_to_ax): Likewise.
3416 (disassemble_dwarf_expression): Likewise.
3417 (loclist_describe_location): Likewise.
3418
3419 2020-06-23 Pedro Alves <palves@redhat.com>
3420
3421 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3422 progspace-and-thread.h. Include scoped-mock-context.h instead.
3423 (register_to_value_test): Use scoped_mock_context.
3424 * regcache.c: Include "scoped-mock-context.h".
3425 (cooked_read_test): Don't error out if a target is already pushed.
3426 Use scoped_mock_context. Adjust.
3427 * scoped-mock-context.h: New file.
3428
3429 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3432 initializer.
3433 (ada_language::is_string_type_p): New member function.
3434 * c-lang.c (c_language_data): Delete la_is_string_type_p
3435 initializer.
3436 (cplus_language_data): Likewise.
3437 (asm_language_data): Likewise.
3438 (minimal_language_data): Likewise.
3439 * d-lang.c (d_language_data): Likewise.
3440 * f-lang.c (f_is_string_type_p): Delete function, implementation
3441 moved to f_language::is_string_type_p.
3442 (f_language_data): Delete la_is_string_type_p initializer.
3443 (f_language::is_string_type_p): New member function,
3444 implementation from f_is_string_type_p.
3445 * go-lang.c (go_is_string_type_p): Delete function, implementation
3446 moved to go_language::is_string_type_p.
3447 (go_language_data): Delete la_is_string_type_p initializer.
3448 (go_language::is_string_type_p): New member function,
3449 implementation from go_is_string_type_p.
3450 * language.c (language_defn::is_string_type_p): Define new member
3451 function.
3452 (default_is_string_type_p): Make static, add comment copied from
3453 header file.
3454 (unknown_language_data): Delete la_is_string_type_p initializer.
3455 (unknown_language::is_string_type_p): New member function.
3456 (auto_language_data): Delete la_is_string_type_p initializer.
3457 (auto_language::is_string_type_p): New member function.
3458 * language.h (language_data): Delete la_is_string_type_p field.
3459 (language_defn::is_string_type_p): Declare new function.
3460 (default_is_string_type_p): Delete desclaration, move comment to
3461 definition.
3462 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3463 moved to m2_language::is_string_type_p.
3464 (m2_language_data): Delete la_is_string_type_p initializer.
3465 (m2_language::is_string_type_p): New member function,
3466 implementation from m2_is_string_type_p.
3467 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3468 initializer.
3469 * opencl-lang.c (opencl_language_data): Likewise.
3470 * p-lang.c (pascal_is_string_type_p): Delete function,
3471 implementation moved to pascal_language::is_string_type_p.
3472 (pascal_language_data): Delete la_is_string_type_p initializer.
3473 (pascal_language::is_string_type_p): New member function,
3474 implementation from pascal_is_string_type_p.
3475 * rust-lang.c (rust_is_string_type_p): Delete function,
3476 implementation moved to rust_language::is_string_type_p.
3477 (rust_language_data): Delete la_is_string_type_p initializer.
3478 (rust_language::is_string_type_p): New member function,
3479 implementation from rust_is_string_type_p.
3480 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3481 is_string_type_p.
3482
3483 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3484
3485 * ada-lang.c (ada_language_data): Delete la_print_typedef
3486 initializer.
3487 (ada_language::print_typedef): New member function.
3488 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3489 (cplus_language_data): Likewise.
3490 (asm_language_data): Likewise.
3491 (minimal_language_data): Likewise.
3492 * d-lang.c (d_language_data): Likewise.
3493 * f-lang.c (f_language_data): Likewise.
3494 (f_language::print_typedef): New member function.
3495 * go-lang.c (go_language_data): Delete la_print_typedef
3496 initializer.
3497 * language.c (language_defn::print_typedef): Define member
3498 function.
3499 (unknown_language_data): Delete la_print_typedef initializer.
3500 (unknown_language::print_typedef): New member function.
3501 (auto_language_data): Delete la_print_typedef initializer.
3502 (auto_language::print_typedef): New member function.
3503 * language.h (language_data): Delete la_print_typedef field.
3504 (language_defn::print_typedef): Declare new member function.
3505 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3506 (default_print_typedef): Delete declaration.
3507 * m2-lang.c (m2_language_data): Delete la_print_typedef
3508 initializer.
3509 (m2_language::print_typedef): New member function.
3510 * objc-lang.c (objc_language_data): Delete la_print_typedef
3511 initializer.
3512 * opencl-lang.c (opencl_language_data): Likewise.
3513 * p-lang.c (pascal_language_data): Likewise.
3514 (pascal_language::print_typedef): New member function.
3515 * rust-lang.c (rust_print_typedef): Delete function,
3516 implementation moved to rust_language::print_typedef.
3517 (rust_language): Delete la_print_typedef initializer.
3518 (rust_language::print_typedef): New member function,
3519 implementation from rust_print_typedef.
3520 * typeprint.c (default_print_typedef): Delete.
3521
3522 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3525 (ada_language::printstr): New member function.
3526 * c-lang.c (c_language_data): Delete la_printstr initializer.
3527 (cplus_language_data): Likewise.
3528 (asm_language_data): Likewise.
3529 (minimal_language_data): Likewise.
3530 * d-lang.c (d_language_data): Likewise.
3531 * f-lang.c (f_printstr): Rename to f_language::printstr.
3532 (f_language_data): Delete la_printstr initializer.
3533 (f_language::printstr): New member function, implementation from
3534 f_printstr.
3535 * go-lang.c (go_language_data): Delete la_printstr initializer.
3536 * language.c (language_defn::printstr): Define new member
3537 function.
3538 (unk_lang_printstr): Delete.
3539 (unknown_language_data): Delete la_printstr initializer.
3540 (unknown_language::printstr): New member function.
3541 (auto_language_data): Delete la_printstr initializer.
3542 (auto_language::printstr): New member function.
3543 * language.h (language_data): Delete la_printstr field.
3544 (language_defn::printstr): Declare new member function.
3545 (LA_PRINT_STRING): Update call to printstr.
3546 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3547 (m2_language_data): Delete la_printstr initializer.
3548 (m2_language::printstr): New member function, implementation from
3549 m2_printstr.
3550 * objc-lang.c (objc_language_data): Delete la_printstr
3551 initializer.
3552 * opencl-lang.c (opencl_language_data): Likewise.
3553 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3554 (pascal_language_data): Delete la_printstr initializer.
3555 (pascal_language::printstr): New member function, implementation
3556 from pascal_printstr.
3557 * p-lang.h (pascal_printstr): Delete declaration.
3558 * rust-lang.c (rust_printstr): Update header comment.
3559 (rust_language_data): Delete la_printstr initializer.
3560 (rust_language::printstr): New member function.
3561
3562 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3565 (ada_language::printchar): New member function.
3566 * c-lang.c (c_language_data): Delete la_printchar initializer.
3567 (cplus_language_data): Likewise.
3568 (asm_language_data): Likewise.
3569 (minimal_language_data): Likewise.
3570 * d-lang.c (d_language_data): Likewise.
3571 * f-lang.c (f_printchar): Rename to f_language::printchar.
3572 (f_language_data): Delete la_printchar initializer.
3573 (f_language::printchar): New member function, implementation from
3574 f_printchar.
3575 * go-lang.c (go_language_data): Delete la_printchar initializer.
3576 * language.c (unk_lang_printchar): Delete.
3577 (language_defn::printchar): Define new member function.
3578 (unknown_language_data): Delete la_printchar initializer.
3579 (unknown_language::printchar): New member function.
3580 (auto_language_data): Delete la_printchar initializer.
3581 (auto_language::printchar): New member function.
3582 * language.h (language_data): Delete la_printchar field.
3583 (language_defn::printchar): Declare new member function.
3584 (LA_PRINT_CHAR): Update call to printchar.
3585 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3586 (m2_language::printchar): New member function.
3587 * objc-lang.c (objc_language_data): Delete la_printchar
3588 initializer.
3589 * opencl-lang.c (opencl_language_data): Likewise.
3590 * p-lang.c (pascal_language_data): Delete la_printchar
3591 initializer.
3592 (pascal_language::printchar): New member function.
3593 * rust-lang.c (rust_printchar): Rename to
3594 rust_language::printchar.
3595 (rust_language_data): Delete la_printchar initializer.
3596 (rust_language::printchar): New member function, implementation
3597 from rust_printchar.
3598
3599 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3602 (ada_language_data): Delete la_emitchar initializer.
3603 (ada_language::emitchar): New member function, implementation from
3604 emit_char.
3605 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3606 (cplus_language_data): Likewise.
3607 (asm_language_data): Likewise.
3608 (minimal_language_data): Likewise.
3609 * d-lang.c (d_language_data): Likewise.
3610 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3611 (f_language_data): Delete la_emitchar initializer.
3612 (f_language::emitchar): New member function, implementation from
3613 f_emit_char.
3614 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3615 * language.c (unk_lang_emit_char): Delete.
3616 (language_defn::emitchar): New member function definition.
3617 (unknown_language_data): Delete la_emitchar initializer.
3618 (unknown_language::emitchar): New member function.
3619 (auto_language_data): Delete la_emitchar initializer.
3620 (auto_language::emitchar): New member function.
3621 * language.h (language_data): Delete la_emitchar field.
3622 (language_defn::emitchar): New member field declaration.
3623 (LA_EMIT_CHAR): Update call to emitchar.
3624 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3625 (m2_language_data): Delete la_emitchar initializer.
3626 (m2_language::emitchar): New member function, implementation from
3627 m2_emit_char.
3628 * objc-lang.c (objc_language_data): Delete la_emitchar
3629 initializer.
3630 * opencl-lang.c (opencl_language_data): Likewise.
3631 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3632 (pascal_language_data): Delete la_emitchar initializer.
3633 (pascal_language::emitchar): New member function, implementation
3634 from pascal_emit_char.
3635 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3636 (rust_language_data): Delete la_emitchar initializer.
3637 (rust_language::emitchar): New member function, implementation
3638 from rust_emitchar.
3639
3640 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3641
3642 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3643 (ada_language_data): Delete la_post_parser initializer.
3644 (ada_language::post_parser): New member function.
3645 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3646 (cplus_language_data): Likewise.
3647 (asm_language_data): Likewise.
3648 (minimal_language_data): Likewise.
3649 * d-lang.c (d_language_data): Likewise.
3650 * f-lang.c (f_language_data): Likewise.
3651 * go-lang.c (go_language_data): Likewise.
3652 * language.c (unknown_language_data): Likewise.
3653 (auto_language_data): Likewise.
3654 * language.h (language_data): Delete la_post_parser field.
3655 (language_defn::post_parser): New member function.
3656 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3657 * objc-lang.c (objc_language_data): Likewise.
3658 * opencl-lang.c (opencl_language_data): Likewise.
3659 * p-lang.c (pascal_language_data): Likewise.
3660 * parse.c (parse_exp_in_context): Update call to post_parser.
3661 (null_post_parser): Delete definition.
3662 * parser-defs.h (null_post_parser): Delete declaration.
3663 * rust-lang.c (rust_language_data): Delete la_post_parser
3664 initializer.
3665
3666 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * ada-lang.c (parse): Rename to ada_language::parser.
3669 (ada_language_data): Delete la_parser initializer.
3670 (ada_language::parser): New member function, implementation from
3671 parse.
3672 * c-lang.c (c_language_data): Delete la_parser initializer.
3673 (cplus_language_data): Likewise.
3674 (asm_language_data): Likewise.
3675 (minimal_language_data): Likewise.
3676 * d-lang.c (d_language_data): Likewise.
3677 (d_language::parser): New member function.
3678 * f-lang.c (f_language_data): Delete la_parser initializer.
3679 (f_language::parser): New member function.
3680 * go-lang.c (go_language_data): Delete la_parser initializer.
3681 (go_language::parser): New member function.
3682 * language.c (unk_lang_parser): Delete.
3683 (language_defn::parser): Define new member function.
3684 (unknown_language_data): Delete la_parser initializer.
3685 (unknown_language::parser): New member function.
3686 (auto_language_data): Delete la_parser initializer.
3687 (auto_language::parser): New member function.
3688 * language.h (language_data): Delete la_parser field.
3689 (language_defn::parser): Declare new member function.
3690 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3691 (m2_language::parser): New member function.
3692 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3693 * opencl-lang.c (opencl_language_data): Likewise.
3694 * p-lang.c (pascal_language_data): Likewise.
3695 (pascal_language::parser): New member function.
3696 * parse.c (parse_exp_in_context): Update call to parser.
3697 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3698 (rust_language::parser): New member function.
3699
3700 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * top.c (print_gdb_configuration): Print --with-python-libdir
3703 configuration value.
3704
3705 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3706
3707 * NEWS: Mention change to the alias command.
3708
3709 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3710
3711 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3712 (alias_command_completer)
3713 (make_alias_options_def_group): New functions.
3714 (alias_opts, alias_option_defs): New struct and array.
3715 (alias_usage_error): Update usage.
3716 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3717 Use option framework.
3718 (_initialize_cli_cmds): Update alias command help.
3719 Update aliases command help.
3720 (show_user):
3721 Add NULL for new default_args lookup_cmd argument.
3722 (valid_command_p): Rename to validate_aliased_command.
3723 Add NULL for new default_args lookup_cmd argument. Verify that the
3724 aliased_command has no default args.
3725 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3726 (lookup_cmd_1, lookup_cmd): New argument default_args.
3727 (add_alias_cmd):
3728 Add NULL for new default_args lookup_cmd argument.
3729 (print_help_for_command): Show default args under the layout
3730 alias some_alias = some_aliased_cmd some_alias_default_arg.
3731 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3732 xfree default_args in destructor.
3733 * cli/cli-script.c (process_next_line, do_define_command):
3734 Add NULL for new default_args lookup_cmd argument.
3735 * command.h: Declare new default_args argument in lookup_cmd
3736 and lookup_cmd_1.
3737 * completer.c (complete_line_internal_1):
3738 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3739 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3740 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3741 Likewise.
3742 * infcmd.c (_initialize_infcmd): Likewise.
3743 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3744 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3745 * python/py-param.c (add_setshow_generic): Likewise.
3746 * remote.c (_initialize_remote): Likewise.
3747 * top.c (execute_command): Prepend default_args if command has some.
3748 (set_verbose):
3749 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3750 * tracepoint.c (validate_actionline, encode_actions_1):
3751 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3752
3753 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754
3755 * jit.c (jit_read_descriptor): Use bool as the return type.
3756 (jit_breakpoint_re_set_internal): Use bool as the return type.
3757 Invert the return value logic; return true if the jit breakpoint
3758 has been successfully initialized.
3759 (jit_inferior_init): Update the call to
3760 jit_breakpoint_re_set_internal.
3761
3762 2020-06-22 Pedro Alves <palves@redhat.com>
3763
3764 PR gdb/25939
3765 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3766 Use the current inferior instead. Don't return
3767 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3768 wait again.
3769 * sol-thread.c (sol_thread_target::wait): Don't reference
3770 inferior_ptid.
3771 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3772 (sol_update_thread_list_callback): Use the current inferior's pid
3773 instead of inferior_ptid.
3774
3775 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3776
3777 * procfs.c: Cleanup many comments.
3778
3779 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3780 (AFTER_WATCHFLAG): Replace by value.
3781
3782 (MAIN_PROC_NAME_FORMAT): Inline ...
3783 (create_procinfo): ... here.
3784
3785 (procfs_debug_inferior): Remove SYS_exec handling.
3786 (syscall_is_exec): Likewise.
3787 (procfs_set_exec_trap): Likewise.
3788
3789 (syscall_is_lwp_exit): Inline in callers.
3790 (syscall_is_exit): Likewise.
3791 (syscall_is_exec): Likewise.
3792 (syscall_is_lwp_create): Likewise.
3793
3794 (invalidate_cache): Remove #if 0 code.
3795
3796 (make_signal_thread_runnable): Remove.
3797 (procfs_target::resume): Remove #if 0 code.
3798
3799 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3800
3801 PR gdb/25939
3802 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3803 call ...
3804 (procfs_target::create_inferior): ... here.
3805
3806 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3807
3808 * exec.c (validate_exec_file): Ensure the build-id is up to
3809 date by calling reopen_exec_file (that checks file timestamp
3810 to decide to re-read the file).
3811
3812 2020-06-18 Pedro Alves <palves@redhat.com>
3813
3814 PR gdb/25412
3815 * gdbthread.h (delete_thread, delete_thread_silent)
3816 (find_thread_ptid): Update comments.
3817 * thread.c (current_thread_): New global.
3818 (is_current_thread): Move higher, and reimplement.
3819 (inferior_thread): Reimplement.
3820 (set_thread_exited): Use bool. Add assertions.
3821 (add_thread_silent): Simplify thread-reuse handling by always
3822 calling delete_thread.
3823 (delete_thread): Remove intro comment.
3824 (find_thread_ptid): Skip exited threads.
3825 (switch_to_thread_no_regs): Write to current_thread_.
3826 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3827 INFERIOR_PTID. Clear current_thread_.
3828
3829 2020-06-18 Pedro Alves <palves@redhat.com>
3830
3831 * aix-thread.c (pd_update): Use switch_to_thread.
3832
3833 2020-06-18 Pedro Alves <palves@redhat.com>
3834
3835 * ravenscar-thread.c (ravenscar_thread_target): Update.
3836 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3837 (ravenscar_thread_target::add_active_thread): ... this. Don't
3838 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3839 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3840
3841 2020-06-18 Pedro Alves <palves@redhat.com>
3842
3843 * nat/windows-nat.c (current_windows_thread): Remove.
3844 * nat/windows-nat.h (current_windows_thread): Remove.
3845 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3846 Adjust.
3847 (display_selectors): Adjust to fetch the current
3848 windows_thread_info based on inferior_ptid.
3849 (fake_create_process): No longer write to current_windows_thread.
3850 (windows_nat_target::get_windows_debug_event):
3851 Don't set inferior_ptid or current_windows_thread.
3852 (windows_nat_target::wait): Adjust to not rely on
3853 current_windows_thread.
3854 (do_initial_windows_stuff): Now a method of windows_nat_target.
3855 Switch to the last_ptid thread.
3856 (windows_nat_target::attach): Adjust.
3857 (windows_nat_target::detach): Use switch_to_no_thread instead of
3858 writing to inferior_ptid directly.
3859 (windows_nat_target::create_inferior): Adjust.
3860
3861 2020-06-18 Pedro Alves <palves@redhat.com>
3862
3863 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3864
3865 2020-06-18 Pedro Alves <palves@redhat.com>
3866
3867 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3868 after creating it, instead of writing to inferior_ptid. Don't
3869 write to inferior_ptid.
3870
3871 2020-06-18 Pedro Alves <palves@redhat.com>
3872
3873 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3874
3875 2020-06-18 Pedro Alves <palves@redhat.com>
3876
3877 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3878 it, instead of writing to inferior_ptid.
3879
3880 2020-06-18 Pedro Alves <palves@redhat.com>
3881
3882 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3883 to inferior_ptid.
3884
3885 2020-06-18 Pedro Alves <palves@redhat.com>
3886
3887 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3888 instead of writing to inferior_ptid directly.
3889
3890 2020-06-18 Pedro Alves <palves@redhat.com>
3891
3892 * corelow.c (core_target::close): Use switch_to_no_thread instead
3893 of writing to inferior_ptid directly.
3894 (add_to_thread_list, core_target_open): Use switch_to_thread
3895 instead of writing to inferior_ptid directly.
3896
3897 2020-06-18 Pedro Alves <palves@redhat.com>
3898
3899 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3900 inferior_ptid.
3901 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3902 inferior_ptid.
3903 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3904 inferior_ptid directly.
3905 (darwin_nat_target::init_thread_list): Switch to thread, instead
3906 of writing to inferior_ptid.
3907 (darwin_nat_target::attach): Don't write to inferior_ptid.
3908 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3909
3910 2020-06-18 Pedro Alves <palves@redhat.com>
3911
3912 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3913 thread.
3914 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3915 Instead use switch_to_thread.
3916 (gnu_nat_target::detach): Use switch_to_no_thread
3917 instead of writing to inferior_ptid directly. Used passed-in
3918 inferior instead of looking up the inferior by pid.
3919
3920 2020-06-18 Pedro Alves <palves@redhat.com>
3921
3922 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3923 inferior_ptid.
3924
3925 2020-06-18 Pedro Alves <palves@redhat.com>
3926
3927 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3928 inferior_ptid.
3929 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3930 thread.
3931 (nto_procfs_target::detach): Avoid referencing
3932 inferior_ptid. Use switch_to_no_thread instead of writing to
3933 inferior_ptid directly.
3934 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3935 instead of writing to inferior_ptid directly.
3936 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3937 to thread.
3938
3939 2020-06-18 Pedro Alves <palves@redhat.com>
3940
3941 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3942 after creating it, instead of writing to inferior_ptid.
3943 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3944 to inferior_ptid directly.
3945 (gdbsim_target::wait): Don't write to inferior_ptid.
3946
3947 2020-06-18 Pedro Alves <palves@redhat.com>
3948
3949 * remote.c (remote_target::remote_notice_new_inferior): Use
3950 switch_to_thread instead of writing to inferior_ptid directly.
3951 (remote_target::add_current_inferior_and_thread): Use
3952 switch_to_no_thread instead of writing to inferior_ptid directly.
3953 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3954 and switch_to_thread instead of using set_current_inferior or
3955 writing to inferior_ptid directly.
3956
3957 2020-06-18 Pedro Alves <palves@redhat.com>
3958
3959 * tracectf.c (ctf_target_open): Switch to added thread instead of
3960 writing to inferior_ptid directly.
3961 (ctf_target::close): Use switch_to_no_thread instead of writing to
3962 inferior_ptid directly.
3963
3964 2020-06-18 Pedro Alves <palves@redhat.com>
3965
3966 * tracefile-tfile.c (tfile_target_open): Don't write to
3967 inferior_ptid directly, instead switch to added thread.
3968 (tfile_target::close): Use switch_to_no_thread instead of writing
3969 to inferior_ptid directly.
3970
3971 2020-06-18 Pedro Alves <palves@redhat.com>
3972
3973 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3974 (procfs_target::detach): Use switch_to_no_thread
3975 instead of writing to inferior_ptid directly.
3976 (do_attach): Change return type to void. Switch to the added
3977 thread.
3978 (procfs_target::create_inferior): Switch to the added thread.
3979 (procfs_do_thread_registers): Don't write to inferior_ptid.
3980
3981 2020-06-18 Pedro Alves <palves@redhat.com>
3982
3983 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3984 of writing to inferior_ptid.
3985 (scoped_restore_exited_inferior): Delete.
3986 (handle_vfork_child_exec_or_exit): Simplify using
3987 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3988 instead of writing to inferior_ptid.
3989 (THREAD_STOPPED_BY): Delete.
3990 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3991 (thread_stopped_by_hw_breakpoint): Delete.
3992 (save_waitstatus): Use
3993 scoped_restore_current_thread+switch_to_thread, and call
3994 target_stopped_by_watchpoint instead of
3995 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3996 instead of thread_stopped_by_sw_breakpoint, and
3997 target_stopped_by_hw_breakpoint instead of
3998 thread_stopped_by_hw_breakpoint.
3999 (handle_inferior_event)
4000 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4001 inferior_ptid directly, nor
4002 set_current_inferior/set_current_program_space. Use
4003 switch_to_thread / switch_to_inferior_no_thread instead.
4004
4005 2020-06-18 Pedro Alves <palves@redhat.com>
4006
4007 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4008 instead of writing to inferior_ptid.
4009
4010 2020-06-18 Pedro Alves <palves@redhat.com>
4011
4012 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4013 added thread.
4014 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4015 to the added thread.
4016 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4017 instead of writing to inferior_ptid.
4018
4019 2020-06-18 Pedro Alves <palves@redhat.com>
4020
4021 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4022 (register_to_value_test): Mock a program_space too. Heap-allocate
4023 the address space. Don't write to inferior_ptid. Use
4024 switch_to_thread instead.
4025
4026 2020-06-18 Pedro Alves <palves@redhat.com>
4027
4028 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4029 Delete.
4030 (find_signalled_thread()): New, factored out from
4031 linux_make_corefile_notes and adjusted to handle exited threads.
4032 (linux_make_corefile_notes): Adjust to use the new
4033 find_signalled_thread.
4034
4035 2020-06-18 Pedro Alves <palves@redhat.com>
4036
4037 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4038 of saving/restoring inferior_ptid.
4039
4040 2020-06-17 Tom Tromey <tom@tromey.com>
4041
4042 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4043 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4044 declare.
4045 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4046
4047 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4048
4049 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4050 of partial symtabs.
4051
4052 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * regformats/reg-arm.dat: Remove.
4055 * regformats/reg-bfin.dat: Remove.
4056 * regformats/reg-cris.dat: Remove.
4057 * regformats/reg-crisv32.dat: Remove.
4058 * regformats/reg-m32r.dat: Remove.
4059 * regformats/reg-tilegx.dat: Remove.
4060 * regformats/reg-tilegx32.dat: Remove.
4061
4062 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * features/Makefile (WHICH): Remove arm files.
4065 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4066 * regformats/arm/arm-with-neon.dat: Remove.
4067 * regformats/arm/arm-with-vfpv2.dat: Remove.
4068 * regformats/arm/arm-with-vfpv3.dat: Remove.
4069
4070 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4071
4072 * features/Makefile (XMLTOC): Remove rx.xml.
4073
4074 2020-06-17 Pedro Alves <palves@redhat.com>
4075
4076 * gdbthread.h (thread_control_state) <trap_expected> Update
4077 comments.
4078
4079 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4080
4081 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4082 ada_language::lookup_symbol_nonlocal.
4083 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4084 (ada_language::lookup_symbol_nonlocal): New member function,
4085 implementation from ada_lookup_symbol_nonlocal.
4086 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4087 initializer.
4088 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4089 initializer.
4090 (cplus_language::lookup_symbol_nonlocal): New member function.
4091 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4092 (minimal_language_data) Likewise.
4093 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4094 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4095 initializer.
4096 (d_language::lookup_symbol_nonlocal): New member function.
4097 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4098 initializer.
4099 (f_language::lookup_symbol_nonlocal): New member function.
4100 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4101 initializer.
4102 * language.c (unknown_language_data): Likewise.
4103 (auto_language_data): Likewise.
4104 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4105 field.
4106 (language_defn::lookup_symbol_nonlocal): New member function.
4107 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4108 initializer.
4109 * objc-lang.c (objc_language_data): Likewise.
4110 * opencl-lang.c (opencl_language_data): Likewise.
4111 * p-lang.c (pascal_language_data): Likewise.
4112 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4113 rust_language::lookup_symbol_nonlocal.
4114 (rust_language_data): Delete la_lookup_symbol_nonlocal
4115 initializer.
4116 (rust_language::lookup_symbol_nonlocal): New member function,
4117 implementation from rust_lookup_symbol_nonlocal.
4118 * symtab.c (lookup_symbol_aux): Update call to
4119 lookup_symbol_nonlocal.
4120 (basic_lookup_symbol_nonlocal): Rename to...
4121 (language_defn::lookup_symbol_nonlocal): ...this, and update
4122 header comment. Remove language_defn parameter, and replace with
4123 uses of `this'.
4124 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4125
4126 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4129 initializer.
4130 (ada_language::value_print_inner): New member function.
4131 * c-lang.c (c_language_data): Delete la_value_print_inner
4132 initializer.
4133 (cplus_language_data): Likewise.
4134 (asm_language_data): Likewise.
4135 (minimal_language_data): Likewise.
4136 * d-lang.c (d_language_data): Likewise.
4137 (d_language::value_print_inner): New member function.
4138 * f-lang.c (f_language_data): Delete la_value_print_inner
4139 initializer.
4140 (f_language::value_print_inner): New member function.
4141 * f-lang.h (f_value_print_innner): Rename to...
4142 (f_value_print_inner): ...this (note spelling of 'inner').
4143 * f-valprint.c (f_value_print_innner): Rename to...
4144 (f_value_print_inner): ...this (note spelling of 'inner').
4145 * go-lang.c (go_language_data): Delete la_value_print_inner
4146 initializer.
4147 (go_language::value_print_inner): New member function.
4148 * language.c (language_defn::value_print_inner): Define new member
4149 function.
4150 (unk_lang_value_print_inner): Delete.
4151 (unknown_language_data): Delete la_value_print_inner initializer.
4152 (unknown_language::value_print_inner): New member function.
4153 (auto_language_data): Delete la_value_print_inner initializer.
4154 (auto_language::value_print_inner): New member function.
4155 * language.h (language_data): Delete la_value_print_inner field.
4156 (language_defn::value_print_inner): Delcare new member function.
4157 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4158 initializer.
4159 (m2_language::value_print_inner): New member function.
4160 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4161 initializer.
4162 * opencl-lang.c (opencl_language_data): Likewise.
4163 * p-lang.c (pascal_language_data): Likewise.
4164 (pascal_language::value_print_inner): New member function.
4165 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4166 initializer.
4167 (rust_language::value_print_inner): New member function.
4168 * valprint.c (do_val_print): Update call to value_print_inner.
4169
4170 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * ada-lang.c (ada_language_data): Delete la_value_print
4173 initializer.
4174 (ada_language::value_print): New member function.
4175 * c-lang.c (c_language_data): Delete la_value_print initializer.
4176 (cplus_language_data): Likewise.
4177 (asm_language_data): Likewise.
4178 (minimal_language_data): Likewise.
4179 * d-lang.c (d_language_data): Likewise.
4180 * f-lang.c (f_language_data): Likewise.
4181 * go-lang.c (go_language_data): Likewise.
4182 * language.c (unk_lang_value_print): Delete.
4183 (language_defn::value_print): Define new member function.
4184 (unknown_language_data): Delete la_value_print initializer.
4185 (unknown_language::value_print): New member function.
4186 (auto_language_data): Delete la_value_print initializer.
4187 (auto_language::value_print): New member function.
4188 * language.h (language_data): Delete la_value_print field.
4189 (language_defn::value_print): Declare new member function.
4190 (LA_VALUE_PRINT): Update call to value_print.
4191 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4192 * objc-lang.c (objc_language_data): Likewise.
4193 * opencl-lang.c (opencl_language_data): Likewise.
4194 * p-lang.c (pascal_language_data): Likewise.
4195 (pascal_language::value_print): New member function.
4196 * rust-lang.c (rust_language_data): Delete la_value_print
4197 initializer.
4198
4199 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * ada-lang.c (ada_watch_location_expression): Rename to
4202 ada_language::watch_location_expression.
4203 (ada_language_data): Delete la_watch_location_expression
4204 initializer.
4205 (ada_language::watch_location_expression): New member function,
4206 implementation from ada_watch_location_expression.
4207 * breakpoint.c (watch_command_1): Update call to
4208 watch_location_expression.
4209 * c-lang.c (c_watch_location_expression): Rename to
4210 language_defn::watch_location_expression.
4211 (c_language_data): Delete la_watch_location_expression
4212 initializer.
4213 (cplus_language_data): Likewise.
4214 (asm_language_data): Likewise.
4215 (minimal_language_data): Likewise.
4216 * c-lang.h (c_watch_location_expression): Delete declaration.
4217 * d-lang.c (d_language_data): Delete la_watch_location_expression
4218 initializer.
4219 * f-lang.c (f_language_data): Likewise.
4220 * go-lang.c (go_language_data): Likewise.
4221 * language.c (language_defn::watch_location_expression): Member
4222 function implementation from c_watch_location_expression.
4223 (unknown_language_data): Delete la_watch_location_expression
4224 initializer.
4225 (auto_language_data): Likewise.
4226 * language.h (language_data): Delete la_watch_location_expression
4227 field.
4228 (language_defn::watch_location_expression): Declare new member
4229 function.
4230 * m2-lang.c (m2_language_data): Delete
4231 la_watch_location_expression initializer.
4232 * objc-lang.c (objc_language_data): Likewise.
4233 * opencl-lang.c (opencl_language_data): Likewise.
4234 * p-lang.c (pascal_language_data): Likewise.
4235 * rust-lang.c (rust_watch_location_expression): Rename to
4236 rust_language::watch_location_expression.
4237 (rust_language_data): Delete la_watch_location_expression
4238 initializer.
4239 (rust_language::watch_location_expression): New member function,
4240 implementation from rust_watch_location_expression.
4241
4242 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4245 ada_language::collect_symbol_completion_matches.
4246 (ada_language_data): Delete la_collect_symbol_completion_matches
4247 initializer.
4248 (ada_language::collect_symbol_completion_matches): New member
4249 function, implementation from
4250 ada_collect_symbol_completion_matches.
4251 * c-lang.c (c_language_data): Delete
4252 la_collect_symbol_completion_matches initializer.
4253 (cplus_language_data): Likewise.
4254 (asm_language_data): Likewise.
4255 (minimal_language_data): Likewise.
4256 * d-lang.c (d_language_data): Likewise.
4257 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4258 f_language::collect_symbol_completion_matches.
4259 (f_language_data): Delete la_collect_symbol_completion_matches
4260 initializer.
4261 (f_language::collect_symbol_completion_matches) New member
4262 function, implementation from f_collect_symbol_completion_matches.
4263 * go-lang.c (go_language_data): Delete
4264 la_collect_symbol_completion_matches initializer.
4265 * language.c (unknown_language_data): Likewise.
4266 (auto_language_data): Likewise.
4267 * language.h (language_data): Delete
4268 la_collect_symbol_completion_matches field.
4269 (language_defn::collect_symbol_completion_matches): New member
4270 function.
4271 * m2-lang.c (m2_language_data): Delete
4272 la_collect_symbol_completion_matches initializer.
4273 * objc-lang.c (objc_language_data): Likewise.
4274 * opencl-lang.c (opencl_language_data): Likewise.
4275 * p-lang.c (pascal_language_data): Likewise.
4276 * rust-lang.c (rust_language_data): Likewise.
4277 * symtab.c (default_collect_symbol_completion_matches): Delete.
4278 (collect_symbol_completion_matches): Update call to
4279 collect_symbol_completion_matches.
4280 (collect_symbol_completion_matches_type): Likewise.
4281 * symtab.h (default_collect_symbol_completion_matches): Delete
4282 declaration.
4283
4284 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4287 (ada_language_data): Delete la_word_break_characters initializer.
4288 (ada_language::word_break_characters): New member function.
4289 * c-lang.c (c_language_data): Delete la_word_break_characters
4290 initializer.
4291 (cplus_language_data): Likewise.
4292 (asm_language_data): Likewise.
4293 (minimal_language_data): Likewise.
4294 * completer.c: Update global comment.
4295 (advance_to_expression_complete_word_point): Update call to
4296 word_break_characters.
4297 (complete_files_symbols): Likewise.
4298 (complete_line_internal_1): Likewise.
4299 (default_completer_handle_brkchars): Likewise.
4300 (skip_quoted_chars): Likewise.
4301 * d-lang.c (d_language_data): Delete la_word_break_characters
4302 initializer.
4303 * f-lang.c (f_word_break_characters): Delete.
4304 (f_language_data): Delete la_word_break_characters initializer.
4305 (f_language::word_break_characters): New member function.
4306 * go-lang.c (go_language_data): Delete la_word_break_characters
4307 initializer.
4308 * language.c (unknown_language_data): Likewise.
4309 (auto_language_data): Likewise.
4310 * language.h (default_word_break_characters): Move declaration to
4311 earlier in the file.
4312 (language_data): Delete la_word_break_characters field.
4313 (language_defn::word_break_characters): New member function.
4314 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4315 initializer.
4316 * objc-lang.c (objc_language_data): Likewise.
4317 * opencl-lang.c (opencl_language_data): Likewise.
4318 * p-lang.c (pascal_language_data): Likewise.
4319 * rust-lang.c (rust_language_data): Likewise.
4320
4321 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4322
4323 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4324 (ada_language_data): Delete la_get_symbol_name_matcher
4325 initializer.
4326 (language_defn::get_symbol_name_matcher_inner): New member
4327 function.
4328 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4329 initializer.
4330 (cplus_language_data): Likewise.
4331 (cplus_language::get_symbol_name_matcher_inner): New member
4332 function.
4333 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4334 (minimal_language_data): Likewise.
4335 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4336 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4337 initializer.
4338 * dictionary.c (iter_match_first_hashed): Update call to
4339 get_symbol_name_matcher.
4340 (iter_match_next_hashed): Likewise.
4341 (iter_match_next_linear): Likewise.
4342 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4343 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4344 initializer.
4345 (f_language::get_symbol_name_matcher_inner): New member function.
4346 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4347 initializer.
4348 * language.c (default_symbol_name_matcher): Update header comment,
4349 make static.
4350 (language_defn::get_symbol_name_matcher): New definition.
4351 (language_defn::get_symbol_name_matcher_inner): Likewise.
4352 (get_symbol_name_matcher): Delete.
4353 (unknown_language_data): Delete la_get_symbol_name_matcher
4354 initializer.
4355 (auto_language_data): Likewise.
4356 * language.h (language_data): Delete la_get_symbol_name_matcher
4357 field.
4358 (language_defn::get_symbol_name_matcher): New member function.
4359 (language_defn::get_symbol_name_matcher_inner): Likewise.
4360 (default_symbol_name_matcher): Delete declaration.
4361 * linespec.c (find_methods): Update call to
4362 get_symbol_name_matcher.
4363 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4364 initializer.
4365 * minsyms.c (lookup_minimal_symbol): Update call to
4366 get_symbol_name_matcher.
4367 (iterate_over_minimal_symbols): Likewise.
4368 * objc-lang.c (objc_language_data): Delete
4369 la_get_symbol_name_matcher initializer.
4370 * opencl-lang.c (opencl_language_data): Likewise.
4371 * p-lang.c (pascal_language_data): Likewise.
4372 * psymtab.c (psymbol_name_matches): Update call to
4373 get_symbol_name_matcher.
4374 * rust-lang.c (rust_language_data): Delete
4375 la_get_symbol_name_matcher initializer.
4376 * symtab.c (symbol_matches_search_name): Update call to
4377 get_symbol_name_matcher.
4378 (compare_symbol_name): Likewise.
4379
4380 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * ada-lang.c (ada_language_data): Delete la_compute_program
4383 initializer.
4384 * c-lang.c (c_language_data): Likewise.
4385 (c_language::compute_program): New member function.
4386 (cplus_language_data): Delete la_compute_program initializer.
4387 (cplus_language::compute_program): New member function.
4388 (asm_language_data): Delete la_compute_program initializer.
4389 (minimal_language_data): Likewise.
4390 * c-lang.h (c_compute_program): Update comment.
4391 (cplus_compute_program): Likewise.
4392 * compile/compile-c-support.c (c_compute_program): Likewise.
4393 (cplus_compute_program): Likewise.
4394 * compile/compile.c (compile_to_object): Update call to
4395 la_compute_program.
4396 * d-lang.c (d_language_data): Delete la_compute_program
4397 initializer.
4398 * f-lang.c (f_language_data): Likewise.
4399 * go-lang.c (go_language_data): Likewise.
4400 * language.c (unknown_language_data): Likewise.
4401 (auto_language_data): Likewise.
4402 * language.h (language_data): Delete la_compute_program field.
4403 (language_defn::compute_program): New member function.
4404 * m2-lang.c (m2_language_data): Delete la_compute_program
4405 initializer.
4406 * objc-lang.c (objc_language_data): Likewise.
4407 * opencl-lang.c (opencl_language_data): Likewise.
4408 * p-lang.c (pascal_language_data): Likewise.
4409 * rust-lang.c (rust_language_data): Likewise.
4410
4411 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * ada-lang.c (ada_language_data) Delete
4414 la_class_name_from_physname initializer.
4415 * c-lang.c (c_language_data): Likewise.
4416 (cplus_language_data): Likewise.
4417 (cplus_language::class_name_from_physname): New member function.
4418 (asm_language_data): Delete la_class_name_from_physname
4419 initializer.
4420 (minimal_language_data): Likewise.
4421 * d-lang.c (d_language_data): Likewise.
4422 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4423 method on language_defn class.
4424 (guess_full_die_structure_name): Likewise.
4425 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4426 initializer.
4427 * go-lang.c (go_language_data): Likewise.
4428 * language.c (language_class_name_from_physname): Delete.
4429 (unk_lang_class_name): Delete.
4430 (unknown_language_data): Delete la_class_name_from_physname
4431 initializer.
4432 (auto_language_data): Likewise.
4433 * language.h (language_data): Delete la_class_name_from_physname
4434 field.
4435 (language_defn::class_name_from_physname): New function.
4436 (language_class_name_from_physname): Delete declaration.
4437 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4438 initializer.
4439 * objc-lang.c (objc_language_data): Likewise.
4440 * opencl-lang.c (opencl_language_data): Likewise.
4441 * p-lang.c (pascal_language_data): Likewise.
4442 * rust-lang.c (rust_language_data): Likewise.
4443
4444 2020-06-16 Tom Tromey <tom@tromey.com>
4445
4446 * tui/tui-data.h (STATUS_NAME): New macro.
4447 * tui/tui-layout.c (tui_remove_some_windows)
4448 (initialize_known_windows, tui_register_window)
4449 (tui_layout_split::remove_windows, initialize_layouts)
4450 (tui_new_layout_command): Don't use hard-coded window names.
4451
4452 2020-06-16 Tom Tromey <tom@tromey.com>
4453
4454 PR tui/25348:
4455 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4456 tui_initialize_readline. Only run once. Call rl_initialize.
4457 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4458 tui_initialize_readline.
4459 * tui/tui-io.c (tui_setup_io): Call
4460 tui_ensure_readline_initialized.
4461 * tui/tui-interp.c (tui_interp::init): Update.
4462
4463 2020-06-16 Tom Tromey <tom@tromey.com>
4464
4465 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4466 Also preserve the status window.
4467
4468 2020-06-16 Tom Tromey <tom@tromey.com>
4469
4470 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4471 where m_window==nullptr.
4472
4473 2020-06-15 Tom Tromey <tromey@adacore.com>
4474
4475 * windows-nat.c (windows_nat::handle_output_debug_string):
4476 Update.
4477 (windows_nat::handle_ms_vc_exception): Update.
4478 * target.h (target_read_string): Change API.
4479 * target.c (target_read_string): Change API.
4480 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4481 Update.
4482 * solib-frv.c (frv_current_sos): Update.
4483 * solib-dsbt.c (dsbt_current_sos): Update.
4484 * solib-darwin.c (darwin_current_sos): Update.
4485 * linux-thread-db.c (inferior_has_bug): Update.
4486 * expprint.c (print_subexp_standard): Update.
4487 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4488 (ada_exception_message_1): Update.
4489
4490 2020-06-15 Tom Tromey <tromey@adacore.com>
4491
4492 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4493
4494 2020-06-15 Tom Tromey <tromey@adacore.com>
4495
4496 * valprint.c (read_string): Update comment.
4497 * target.c (MIN): Remove.
4498 (target_read_string): Rewrite.
4499
4500 2020-06-15 Tom Tromey <tromey@adacore.com>
4501
4502 * corefile.c (read_memory_string): Remove.
4503 * ada-valprint.c (ada_value_print_ptr): Update.
4504 * ada-lang.h (ada_tag_name): Change return type.
4505 * ada-lang.c (type_from_tag): Update.
4506 (ada_tag_name_from_tsd): Change return type. Use
4507 target_read_string.
4508 (ada_tag_name): Likewise.
4509 * gdbcore.h (read_memory_string): Don't declare.
4510
4511 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4512
4513 * symtab.c (rbreak_command): Ignore Windows drive colon.
4514
4515 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * NEWS: Mention removed GDBserver host support.
4518
4519 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4520
4521 * features/riscv/rebuild-csr-xml.sh: Updated.
4522
4523 2020-06-11 Tom Tromey <tom@tromey.com>
4524
4525 PR gdb/18318:
4526 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4527
4528 2020-06-09 Jonny Grant <jg@jguk.org>
4529 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4530
4531 * main.c (captured_main_1): Don't print new line after help.
4532 (print_gdb_help): add mailing list and IRC channel information
4533 to --help. Add new lines between items in the footer. Remove
4534 quotes around bug url.
4535
4536 2020-06-11 Keith Seitz <keiths@redhat.com>
4537
4538 PR gdb/21356
4539 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4540 Resolve typedefs for type length calculations.
4541
4542 2020-06-10 Tom de Vries <tdevries@suse.de>
4543
4544 PR ada/24713
4545 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4546 (write_psymbols): Enable .gdb_index for ada.
4547 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4548 ada.
4549
4550 2020-06-10 Tom de Vries <tdevries@suse.de>
4551
4552 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4553 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4554 namei" instead of "const char *name" argument.
4555 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4556 dw2_symtab_iter_init.
4557
4558 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4561 to use type::field and field::type instead.
4562
4563 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4566 to use field::type instead.
4567
4568 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * gdbtypes.h (struct field) <type, set_type>: New methods.
4571 Rename `type` field to...
4572 <m_type>: ... this. Change references throughout to use type or
4573 set_type methods.
4574 (FIELD_TYPE): Use field::type. Change call sites that modify
4575 the field's type to use field::set_type instead.
4576
4577 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4580 to use type::index_type instead.
4581
4582 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4585 methods.
4586 (TYPE_INDEX_TYPE): Use type::index_type.
4587 * gdbtypes.c (create_array_type_with_stride): Likewise.
4588
4589 2020-06-07 Tom Tromey <tom@tromey.com>
4590
4591 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4592 parameter.
4593 (generic_value_print): Update.
4594
4595 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 Revert commit 982a38f60b0.
4598 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4599
4600 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4603 avoid use after free.
4604
4605 2020-06-05 Tom de Vries <tdevries@suse.de>
4606
4607 * NEWS: Fix typos.
4608
4609 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4612 the per_bfd object.
4613 (dwarf2_read_debug_names): Likewise.
4614 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4615 object when re-using a per_bfd object with an index.
4616
4617 2020-06-03 Tom de Vries <tdevries@suse.de>
4618
4619 PR symtab/26046
4620 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4621 children for C++.
4622 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4623 DW_TAG_subprogram.
4624
4625 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * ada-lang.c (ada_language_data): Delete skip_trampoline
4628 initializer.
4629 * c-lang.c (c_language_data): Likewise.
4630 (cplus_language_data): Likewise.
4631 (cplus_language::skip_trampoline): New member function.
4632 (asm_language_data): Delete skip_trampoline initializer.
4633 (minimal_language_data): Likewise.
4634 * d-lang.c (d_language_data): Likewise.
4635 * f-lang.c (f_language_data): Likewise.
4636 * go-lang.c (go_language_data): Likewise.
4637 * language.c (unk_lang_trampoline): Delete function.
4638 (skip_language_trampoline): Update.
4639 (unknown_language_data): Delete skip_trampoline initializer.
4640 (auto_language_data): Likewise.
4641 * language.h (language_data): Delete skip_trampoline field.
4642 (language_defn::skip_trampoline): New function.
4643 * m2-lang.c (m2_language_data): Delete skip_trampoline
4644 initializer.
4645 * objc-lang.c (objc_skip_trampoline): Delete function, move
4646 implementation to objc_language::skip_trampoline.
4647 (objc_language_data): Delete skip_trampoline initializer.
4648 (objc_language::skip_trampoline): New member function with
4649 implementation from objc_skip_trampoline.
4650 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4651 initializer.
4652 * p-lang.c (pascal_language_data): Likewise.
4653 * rust-lang.c (rust_language_data): Likewise.
4654
4655 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4658 (ada_language::demangle): New member function.
4659 * c-lang.c (c_language_data): Delete la_demangle initializer.
4660 (cplus_language_data): Delete la_demangle initializer.
4661 (cplus_language::demangle): New member function.
4662 (asm_language_data): Delete la_demangle initializer.
4663 (minimal_language_data): Delete la_demangle initializer.
4664 * d-lang.c (d_language_data): Delete la_demangle initializer.
4665 (d_language::demangle): New member function.
4666 * f-lang.c (f_language_data): Delete la_demangle initializer.
4667 (f_language::demangle): New member function.
4668 * go-lang.c (go_language_data): Delete la_demangle initializer.
4669 (go_language::demangle): New member function.
4670 * language.c (language_demangle): Update.
4671 (unk_lang_demangle): Delete.
4672 (unknown_language_data): Delete la_demangle initializer.
4673 (unknown_language::demangle): New member function.
4674 (auto_language_data): Delete la_demangle initializer.
4675 (auto_language::demangle): New member function.
4676 * language.h (language_data): Delete la_demangle field.
4677 (language_defn::demangle): New function.
4678 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4679 * objc-lang.c (objc_language_data): Delete la_demangle
4680 initializer.
4681 (objc_language::demangle): New member function.
4682 * opencl-lang.c (opencl_language_data): Delete la_demangle
4683 initializer.
4684 * p-lang.c (pascal_language_data): Likewise.
4685 * rust-lang.c (rust_language_data): Likewise.
4686 (rust_language::demangle): New member function.
4687
4688 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4689
4690 * ada-lang.c (ada_language_data): Delete la_print_type
4691 initializer.
4692 (ada_language::print_type): New member function.
4693 * c-lang.c (c_language_data): Delete la_print_type initializer.
4694 (c_language::print_type): New member function.
4695 (cplus_language_data): Delete la_print_type initializer.
4696 (cplus_language::print_type): New member function.
4697 (asm_language_data): Delete la_print_type initializer.
4698 (asm_language::print_type): New member function.
4699 (minimal_language_data): Delete la_print_type initializer.
4700 (minimal_language::print_type): New member function.
4701 * d-lang.c (d_language_data): Delete la_print_type initializer.
4702 (d_language::print_type): New member function.
4703 * f-lang.c (f_language_data): Delete la_print_type initializer.
4704 (f_language::print_type): New member function.
4705 * go-lang.c (go_language_data): Delete la_print_type initializer.
4706 (go_language::print_type): New member function.
4707 * language.c (unk_lang_print_type): Delete.
4708 (unknown_language_data): Delete la_print_type initializer.
4709 (unknown_language::print_type): New member function.
4710 (auto_language_data): Delete la_print_type initializer.
4711 (auto_language::print_type): New member function.
4712 * language.h (language_data): Delete la_print_type field.
4713 (language_defn::print_type): New function.
4714 (LA_PRINT_TYPE): Update.
4715 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4716 (m2_language::print_type): New member function.
4717 * objc-lang.c (objc_language_data): Delete la_print_type
4718 initializer.
4719 (objc_language::print_type): New member function.
4720 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4721 to opencl_language::print_type.
4722 (opencl_language_data): Delete la_print_type initializer.
4723 (opencl_language::print_type): New member function, implementation
4724 from opencl_print_type.
4725 * p-lang.c (pascal_language_data): Delete la_print_type
4726 initializer.
4727 (pascal_language::print_type): New member function.
4728 * rust-lang.c (rust_print_type): Delete, implementation moved to
4729 rust_language::print_type.
4730 (rust_language_data): Delete la_print_type initializer.
4731 (rust_language::print_type): New member function, implementation
4732 from rust_print_type.
4733
4734 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4735
4736 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4737 implementation moves to...
4738 (ada_language::sniff_from_mangled_name): ...here. Update return
4739 type.
4740 (ada_language_data): Delete la_sniff_from_mangled_name
4741 initializer.
4742 * c-lang.c (c_language_data): Likewise.
4743 (cplus_language_data): Likewise.
4744 (cplus_language::sniff_from_mangled_name): New member function,
4745 implementation taken from gdb_sniff_from_mangled_name.
4746 (asm_language_data): Delete la_sniff_from_mangled_name
4747 initializer.
4748 (minimal_language_data): Likewise.
4749 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4750 implementation moves to cplus_language::sniff_from_mangled_name.
4751 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4752 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4753 moves to...
4754 (d_language::sniff_from_mangled_name): ...here.
4755 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4756 * f-lang.c (f_language_data): Likewise.
4757 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4758 moves to...
4759 (go_language::sniff_from_mangled_name): ...here.
4760 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4761 * language.c (language_sniff_from_mangled_name): Delete.
4762 (unknown_language_data): Delete la_sniff_from_mangled_name
4763 initializer.
4764 (auto_language_data): Likewise.
4765 * language.h (language_data): Delete la_sniff_from_mangled_name
4766 field.
4767 (language_defn::sniff_from_mangled_name): New function.
4768 (language_sniff_from_mangled_name): Delete declaration.
4769 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4770 field.
4771 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4772 implementation moves to...
4773 (objc_language::sniff_from_mangled_name): ...here.
4774 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4775 * opencl-lang.c (opencl_language_data): Likewise.
4776 * p-lang.c (pascal_language_data): Likewise.
4777 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4778 implementation moves to...
4779 (rust_language::sniff_from_mangled_name): ...here.
4780 (rust_language_data): Delete la_sniff_from_mangled_name
4781 initializer.
4782 * symtab.c (symbol_find_demangled_name): Call
4783 sniff_from_mangled_name member function.
4784
4785 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4788 initializer.
4789 * c-lang.c (c_language_data): Likewise.
4790 (cplus_language_data): Likewise.
4791 (cplus_language::search_name_hash): New member function.
4792 (asm_language_data): Delete la_search_name_hash initializer.
4793 (minimal_language_data): Likewise.
4794 * d-lang.c (d_language_data): Likewise.
4795 * dictionary.c (default_search_name_hash): Rename to...
4796 (language_defn::search_name_hash): ...this.
4797 * f-lang.c (f_language_data): Likewise.
4798 (f_language::search_name_hash): New member function.
4799 * go-lang.c (go_language_data): Delete la_search_name_hash
4800 initializer.
4801 * language.c (unknown_language_data): Likewise.
4802 (auto_language_data): Likewise.
4803 * language.h (struct language_data): Delete la_search_name_hash
4804 field.
4805 (language_defn::search_name_hash): Declare new member function.
4806 (default_search_name_hash): Delete declaration.
4807 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4808 initializer.
4809 * objc-lang.c (objc_language_data): Likewise.
4810 * opencl-lang.c (opencl_language_data): Likewise.
4811 * p-lang.c (pascal_language_data): Likewise.
4812 * rust-lang.c (rust_language_data): Likewise.
4813 * symtab.c (search_name_hash): Update call.
4814
4815 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4816
4817 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4818 initializer.
4819 * c-lang.c (class compile_instance): Declare.
4820 (c_language_data): Delete la_get_compile_instance initializer.
4821 (c_language::get_compile_instance): New member function.
4822 (cplus_language_data): Delete la_get_compile_instance initializer.
4823 (cplus_language::get_compile_instance): New member function.
4824 (asm_language_data): Delete la_get_compile_instance initializer.
4825 (minimal_language_data): Likewise.
4826 * c-lang.h (c_get_compile_context): Update comment.
4827 (cplus_get_compile_context): Update comment.
4828 * compile/compile.c (compile_to_object): Update calls, don't rely
4829 on function pointer being NULL.
4830 * d-lang.c (d_language_data): Delete la_get_compile_instance
4831 initializer.
4832 * f-lang.c (f_language_data): Likewise.
4833 * go-lang.c (go_language_data): Likewise.
4834 * language.c (unknown_language_data): Likewise.
4835 (auto_language_data): Likewise.
4836 * language.h (language_data): Delete la_get_compile_instance field.
4837 (language_defn::get_compile_instance): New member function.
4838 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4839 initializer.
4840 * objc-lang.c (objc_language_data): Likewise.
4841 * opencl-lang.c (opencl_language_data): Likewise.
4842 * p-lang.c (pascal_language_data): Likewise.
4843 * rust-lang.c (rust_language_data): Likewise.
4844
4845 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4846
4847 * ada-lang.c (ada_add_all_symbols): Update comment.
4848 (ada_iterate_over_symbols): Delete, move implementation to...
4849 (ada_language::iterate_over_symbols): ...here, a new member
4850 function, rewrite to use range based for loop.
4851 (ada_language_data): Delete la_iterate_over_symbols initializer.
4852 * c-lang.c (c_language_data): Likewise.
4853 (cplus_language_data): Likewise.
4854 (asm_language_data): Likewise.
4855 (minimal_language_data): Likewise.
4856 * d-lang.c (d_language_data): Likewise.
4857 * f-lang.c (f_language_data): Likewise.
4858 * go-lang.c (go_language_data): Likewise.
4859 * language.c (unknown_language_data): Likewise.
4860 (auto_language_data): Likewise.
4861 * language.h (language_data): Delete la_iterate_over_symbols field.
4862 (language_defn::iterate_over_symbols): New member function.
4863 (LA_ITERATE_OVER_SYMBOLS): Update.
4864 * linespec.c (iterate_over_all_matching_symtabs): Update.
4865 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4866 initializer.
4867 * objc-lang.c (objc_language_data): Likewise.
4868 * opencl-lang.c (opencl_language_data): Likewise.
4869 * p-lang.c (pascal_language_data): Likewise.
4870 * rust-lang.c (rust_language_data): Likewise.
4871
4872 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4873
4874 * ada-lang.c (ada_language_data): Delete
4875 la_lookup_transparent_type initializer.
4876 * c-lang.c (c_language_data): Likewise.
4877 (cplus_language_data): Likewise.
4878 (cplus_language::lookup_transparent_type): New member function.
4879 (asm_language_data): Delete la_lookup_transparent_type
4880 initializer.
4881 (minimal_language_data): Likewise.
4882 * d-lang.c (d_language_data): Likewise.
4883 * f-lang.c (f_language_data): Likewise.
4884 * go-lang.c (go_language_data): Likewise.
4885 * language.c (unknown_language_data): Likewise.
4886 (auto_language_data): Likewise.
4887 * language.h (struct language_data): Delete
4888 la_lookup_transparent_type field.
4889 (language_defn::lookup_transparent_type): New member function.
4890 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4891 initializer.
4892 * objc-lang.c (objc_language_data): Likewise.
4893 * opencl-lang.c (opencl_language_data): Likewise.
4894 * p-lang.c (pascal_language_data): Likewise.
4895 * rust-lang.c (rust_language_data): Likewise.
4896 * symtab.c (symbol_matches_domain): Update call.
4897
4898 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4899
4900 * ada-lang.c (ada_language_arch_info): Delete function, move
4901 implementation to...
4902 (ada_language::language_arch_info): ...here, a new member
4903 function.
4904 (ada_language_data): Delete la_language_arch_info.
4905 * c-lang.c (c_language_data): Likewise.
4906 (c_language::language_arch_info): New member function.
4907 (cplus_language_arch_info): Delete function, move
4908 implementation to...
4909 (cplus_language::language_arch_info): ...here, a new member
4910 function.
4911 (cplus_language_data): Delete la_language_arch_info.
4912 (asm_language_data): Likewise.
4913 (asm_language::language_arch_info): New member function.
4914 (minimal_language_data): Delete la_language_arch_info.
4915 (minimal_language::language_arch_info): New member function.
4916 * d-lang.c (d_language_arch_info): Delete function, move
4917 implementation to...
4918 (d_language::language_arch_info): ...here, a new member
4919 function.
4920 (d_language_data): Delete la_language_arch_info.
4921 * f-lang.c (f_language_arch_info): Delete function, move
4922 implementation to...
4923 (f_language::language_arch_info): ...here, a new member
4924 function.
4925 (f_language_data): Delete la_language_arch_info.
4926 * go-lang.c (go_language_arch_info): Delete function, move
4927 implementation to...
4928 (go_language::language_arch_info): ...here, a new member
4929 function.
4930 (go_language_data): Delete la_language_arch_info.
4931 * language.c (unknown_language_data): Likewise.
4932 (unknown_language::language_arch_info): New member function.
4933 (auto_language_data): Delete la_language_arch_info.
4934 (auto_language::language_arch_info): New member function.
4935 (language_gdbarch_post_init): Update call to
4936 la_language_arch_info.
4937 * language.h (language_data): Delete la_language_arch_info
4938 function pointer.
4939 (language_defn::language_arch_info): New function.
4940 * m2-lang.c (m2_language_arch_info): Delete function, move
4941 implementation to...
4942 (m2_language::language_arch_info): ...here, a new member
4943 function.
4944 (m2_language_data): Delete la_language_arch_info.
4945 * objc-lang.c (objc_language_arch_info): Delete function, move
4946 implementation to...
4947 (objc_language::language_arch_info): ...here, a new member
4948 function.
4949 (objc_language_data): Delete la_language_arch_info.
4950 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4951 implementation to...
4952 (opencl_language::language_arch_info): ...here, a new member
4953 function.
4954 (opencl_language_data): Delete la_language_arch_info.
4955 * p-lang.c (pascal_language_arch_info): Delete function, move
4956 implementation to...
4957 (pascal_language::language_arch_info): ...here, a new member
4958 function.
4959 (pascal_language_data): Delete la_language_arch_info.
4960 * rust-lang.c (rust_language_arch_info): Delete function, move
4961 implementation to...
4962 (rust_language::language_arch_info): ...here, a new member
4963 function.
4964 (rust_language_data): Delete la_language_arch_info.
4965
4966 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4967
4968 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4969 initializer.
4970 * c-lang.c (c_language_data): Likewise.
4971 (cplus_language_data): Likewise.
4972 (cplus_language::pass_by_reference_info): New method.
4973 (asm_language_data): Delete la_pass_by_reference initializer.
4974 (minimal_language_data): Likewise.
4975 * cp-abi.c (cp_pass_by_reference): Remove use of
4976 default_pass_by_reference.
4977 * d-lang.c (d_language_data): Likewise.
4978 * f-lang.c (f_language_data): Likewise.
4979 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4980 default_pass_by_reference.
4981 * go-lang.c (go_language_data): Likewise.
4982 * language.c (language_pass_by_reference): Update.
4983 (default_pass_by_reference): Delete.
4984 (unknown_language_data): Delete la_pass_by_reference
4985 initializer.
4986 (auto_language_data): Likewise.
4987 * language.h (struct language_data): Delete la_pass_by_reference
4988 field.
4989 (language_defn::pass_by_reference_info): New member function.
4990 (default_pass_by_reference): Delete declaration.
4991 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4992 initializer.
4993 * objc-lang.c (objc_language_data): Likewise.
4994 * opencl-lang.c (opencl_language_data): Likewise.
4995 * p-lang.c (pascal_language_data): Likewise.
4996 * rust-lang.c (rust_language_data): Likewise.
4997
4998 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * ada-lang.c (ada_read_var_value): Delete function, move
5001 implementation to...
5002 (ada_language::read_var_value): ...here.
5003 (ada_language_data): Delete la_read_var_value initializer.
5004 * c-lang.c (c_language_data): Likewise.
5005 (cplus_language_data): Likewise.
5006 (minimal_language_data): Likewise.
5007 * d-lang.c (d_language_data): Likewise.
5008 * f-lang.c (f_language_data): Likewise.
5009 * findvar.c (default_read_var_value): Rename to...
5010 (language_defn::read_var_value): ...this.
5011 * findvar.c (read_var_value): Update header comment, and change to
5012 call member function instead of function pointer.
5013 * go-lang.c (go_language_data): Likewise.
5014 * language.c (unknown_language_data): Delete la_read_var_value
5015 initializer.
5016 (auto_language_data): Likewise.
5017 * language.h (struct language_data): Delete la_read_var_value
5018 field.
5019 (language_defn::read_var_value): New member function.
5020 (default_read_var_value): Delete declaration.
5021 * m2-lang.c (m2_language_data): Delete la_read_var_value
5022 initializer.
5023 * objc-lang.c (objc_language_data): Likewise.
5024 * opencl-lang.c (opencl_language_data): Likewise.
5025 * p-lang.c (pascal_language_data): Likewise.
5026 * rust-lang.c (rust_language_data): Likewise.
5027 * value.h (default_read_var_value): Delete declaration.
5028
5029 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5030
5031 * ada-lang.c (ada_print_array_index): Delete function, move
5032 implementation to...
5033 (ada_language::print_array_index): ...here.
5034 (ada_language_data): Delete la_print_array_index initializer.
5035 * c-lang.c (c_language_data): Likewise.
5036 (cplus_language_data): Likewise.
5037 (minimal_language_data): Likewise.
5038 * d-lang.c (d_language_data): Likewise.
5039 * f-lang.c (f_language_data): Likewise.
5040 * go-lang.c (go_language_data): Likewise.
5041 * language.c (default_print_array_index): Delete function, move
5042 implementation to...
5043 (language_defn::print_array_index): ...here.
5044 (unknown_language_data): Delete la_print_array_index initializer.
5045 (auto_language_data): Likewise.
5046 * language.h (struct language_data): Delete la_print_array_index
5047 field.
5048 (language_defn::print_array_index): New member function.
5049 (LA_PRINT_ARRAY_INDEX): Update.
5050 (default_print_array_index): Delete declaration.
5051 * m2-lang.c (m2_language_data): Delete la_print_array_index
5052 initializer.
5053 * objc-lang.c (objc_language_data): Likewise.
5054 * opencl-lang.c (opencl_language_data): Likewise.
5055 * p-lang.c (pascal_language_data): Likewise.
5056 * rust-lang.c (rust_language_data): Likewise.
5057
5058 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5059
5060 * gdb/ada-lang.c (ada_language_defn): Convert to...
5061 (ada_language_data): ...this.
5062 (class ada_language): New class.
5063 (ada_language_defn): New static global.
5064 * gdb/c-lang.c (c_language_defn): Convert to...
5065 (c_language_data): ...this.
5066 (class c_language): New class.
5067 (c_language_defn): New static global.
5068 (cplus_language_defn): Convert to...
5069 (cplus_language_data): ...this.
5070 (class cplus_language): New class.
5071 (cplus_language_defn): New static global.
5072 (asm_language_defn): Convert to...
5073 (asm_language_data): ...this.
5074 (class asm_language): New class.
5075 (asm_language_defn): New static global.
5076 (minimal_language_defn): Convert to...
5077 (minimal_language_data): ...this.
5078 (class minimal_language): New class.
5079 (minimal_language_defn): New static global.
5080 * gdb/d-lang.c (d_language_defn): Convert to...
5081 (d_language_data): ...this.
5082 (class d_language): New class.
5083 (d_language_defn): New static global.
5084 * gdb/f-lang.c (f_language_defn): Convert to...
5085 (f_language_data): ...this.
5086 (class f_language): New class.
5087 (f_language_defn): New static global.
5088 * gdb/go-lang.c (go_language_defn): Convert to...
5089 (go_language_data): ...this.
5090 (class go_language): New class.
5091 (go_language_defn): New static global.
5092 * gdb/language.c (unknown_language_defn): Remove declaration.
5093 (current_language): Initialize to nullptr, real initialization is
5094 moved to _initialize_language.
5095 (languages): Delete global.
5096 (language_defn::languages): Define.
5097 (set_language_command): Use language_defn::languages.
5098 (set_language): Likewise.
5099 (range_error): Likewise.
5100 (language_enum): Likewise.
5101 (language_def): Likewise.
5102 (add_set_language_command): Use language_def::languages for the
5103 language list, and language_def to lookup language pointers.
5104 (skip_language_trampoline): Use language_defn::languages.
5105 (unknown_language_defn): Convert to...
5106 (unknown_language_data): ...this.
5107 (class unknown_language): New class.
5108 (unknown_language_defn): New static global.
5109 (auto_language_defn): Convert to...
5110 (auto_language_data): ...this.
5111 (class auto_language): New class.
5112 (auto_language_defn): New static global.
5113 (language_gdbarch_post_init): Use language_defn::languages.
5114 (_initialize_language): Initialize current_language.
5115 * gdb/language.h (struct language_defn): Rename to...
5116 (struct language_data): ...this.
5117 (struct language_defn): New.
5118 (auto_language_defn): Delete.
5119 (unknown_language_defn): Delete.
5120 (minimal_language_defn): Delete.
5121 (ada_language_defn): Delete.
5122 (asm_language_defn): Delete.
5123 (c_language_defn): Delete.
5124 (cplus_language_defn): Delete.
5125 (d_language_defn): Delete.
5126 (f_language_defn): Delete.
5127 (go_language_defn): Delete.
5128 (m2_language_defn): Delete.
5129 (objc_language_defn): Delete.
5130 (opencl_language_defn): Delete.
5131 (pascal_language_defn): Delete.
5132 (rust_language_defn): Delete.
5133 * gdb/m2-lang.c (m2_language_defn): Convert to...
5134 (m2_language_data): ...this.
5135 (class m2_language): New class.
5136 (m2_language_defn): New static global.
5137 * gdb/objc-lang.c (objc_language_defn): Convert to...
5138 (objc_language_data): ...this.
5139 (class objc_language): New class.
5140 (objc_language_defn): New static global.
5141 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5142 (opencl_language_data): ...this.
5143 (class opencl_language): New class.
5144 (opencl_language_defn): New static global.
5145 * gdb/p-lang.c (pascal_language_defn): Convert to...
5146 (pascal_language_data): ...this.
5147 (class pascal_language): New class.
5148 (pascal_language_defn): New static global.
5149 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5150 language pointer, update comment format.
5151 * gdb/rust-lang.c (rust_language_defn): Convert to...
5152 (rust_language_data): ...this.
5153 (class rust_language): New class.
5154 (rust_language_defn): New static global.
5155
5156 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5157
5158 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5159 member variable.
5160 <m_stmt_at_address>: New member variable.
5161 (lnp_state_machine::record_line): Don't record some lines, update
5162 tracking of is_stmt at the same address.
5163 (lnp_state_machine::lnp_state_machine): Initialise new member
5164 variables.
5165
5166 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5167
5168 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5169 "-include gnu-nat-mig.h".
5170 * gnu-nat-mig.h: New file.
5171 * gnu-nat.c: Include "gnu-nat-mig.h".
5172 (exc_server, msg_reply_server, notify_server,
5173 process_reply_server): Remove declarations.
5174
5175 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5176
5177 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5178 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5179 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5180 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5181 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5182 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5183 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5184 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5185 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5186 to gnu_nat_target class.
5187 * gnu-nat.c: Likewise.
5188 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5189 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5190 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5191 object.
5192 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5193 instead of `gnu_target'.
5194
5195 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5196
5197 * i386-gnu-tdep.c: Include "gdbcore.h"
5198 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5199 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5200 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5201 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5202 i386_gnu_sigcontext_addr): New functions
5203 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5204 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5205 tdep.
5206
5207 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5208
5209 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5210 before fork_inferior call. Avoid calling it if target_is_pushed returns
5211 true.
5212
5213 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5214
5215 * gnu-nat.h (gnu_target): New variable declaration.
5216 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5217 gnu_target.
5218 * gnu-nat.c (gnu_target): New variable.
5219 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5220 add_thread_silent, and add_thread calls.
5221 (gnu_nat_target::create_inferior): Pass gnu_target to
5222 add_thread_silent, thread_change_ptid call.
5223 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5224 call.
5225
5226 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5227
5228 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5229 (gnu_nat_target::find_memory_regions): Remove unused
5230 `old_address' variable.
5231
5232 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5233
5234 * gnu-nat.c: Include "gdbarch.h".
5235
5236 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5237
5238 * reply_mig_hack.awk (Error return): Cast function through
5239 void *, to bypass compiler function call check.
5240
5241 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5242
5243 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5244 $(srcdir)/reply_mig_hack.awk.
5245
5246 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5247
5248 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5249
5250 2020-05-30 Jonny Grant <jg@jguk.org>
5251
5252 * configure.ac (ACX_BUGURL): change bug URL to https.
5253
5254 2020-05-30 Pedro Alves <palves@redhat.com>
5255
5256 * cp-support.c (replace_typedefs_template): New.
5257 (replace_typedefs_qualified_name): Handle
5258 DEMANGLE_COMPONENT_TEMPLATE.
5259
5260 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5261
5262 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5263 dwarf2/index-cache.h, dwarf2/index-write.c,
5264 dwarf2/index-write.h, dwarf2/line-header.c,
5265 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5266 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5267 variables and fields from `dwarf2_per_objfile` to just
5268 `per_objfile` throughout.
5269
5270 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5271
5272 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5273 <push_dwarf_reg_entry_value>: Add comment.
5274
5275 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5276 Keith Seitz <keiths@redhat.com>
5277
5278 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5279 instead of PyEval_ReleaseLock.
5280 (class gdbpy_gil): Move to earlier in file.
5281 (finalize_python): Set gdb_python_initialized.
5282 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5283 when not initialized.
5284
5285 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5288 <push_dwarf_reg_entry_value>: Remove assert. Override
5289 per_objfile with caller_per_objfile.
5290
5291 2020-05-28 Tom de Vries <tdevries@suse.de>
5292
5293 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5294 PR gold/15646 workaround to symbol kind "type".
5295
5296 2020-05-27 Tom Tromey <tromey@adacore.com>
5297
5298 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5299
5300 2020-05-27 Tom Tromey <tromey@adacore.com>
5301
5302 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5303 Use htab_find_with_hash.
5304 <add_abbrev>: Remove "abbrev_number" parameter.
5305 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5306 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5307 (hash_abbrev): Add comment.
5308 (abbrev_table::lookup_abbrev): Move to header file.
5309 (abbrev_table::read): Update.
5310
5311 2020-05-27 Tom Tromey <tromey@adacore.com>
5312
5313 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5314 method.
5315 <canonical_name>: New member.
5316 <raw_name>: Rename from "name".
5317 (partial_die_info): Initialize canonical_name.
5318 (scan_partial_symbols): Check raw_name.
5319 (partial_die_parent_scope, partial_die_full_name)
5320 (add_partial_symbol, add_partial_subprogram)
5321 (add_partial_enumeration, load_partial_dies): Use "name" method.
5322 (partial_die_info::name): New method.
5323 (partial_die_info::read, guess_partial_die_structure_name)
5324 (partial_die_info::fixup): Update.
5325
5326 2020-05-27 Tom Tromey <tromey@adacore.com>
5327
5328 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5329 <get_ref_die_offset>: Inline.
5330 <get_ref_die_offset_complaint>: New method.
5331 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5332 (attribute::get_ref_die_offset_complaint): Rename from
5333 get_ref_die_offset. Just issue complaint.
5334
5335 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5336
5337 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5338
5339 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5340
5341 * exec.c (exec_file_attach): Use errno value of first openp failure.
5342
5343 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5344
5345 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5346 Don't close thread handle.
5347
5348 2020-05-27 Tom Tromey <tom@tromey.com>
5349 Simon Marchi <simon.marchi@efficios.com>
5350
5351 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5352 shared_ptr.
5353 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5354 member.
5355 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5356 dwarf2_per_bfd_objfile_data_key>: New globals.
5357 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5358 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5359 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5360 shared.
5361 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5362 short-circuit when sharing.
5363 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5364 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5365
5366 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5367
5368 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5369 to...
5370 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5371 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5372
5373 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5374
5375 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5376 build_name_components, find_name_components_bounds>:
5377 Add per_objfile parameter.
5378 (struct mapped_index) <symbol_name_at>: Likewise.
5379 (struct mapped_debug_names): Remove constructor.
5380 <dwarf2_per_objfile>: Remove field.
5381 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5382 (mapped_index_base::find_name_components_bounds,
5383 mapped_index_base::build_name_components,
5384 dw2_expand_symtabs_matching_symbol): Likewise.
5385 (class mock_mapped_index) <symbol_name_at>: Likewise.
5386 (check_match): Likewise.
5387 (check_find_bounds_finds): Likewise.
5388 (test_mapped_index_find_name_component_bounds): Update.
5389 (CHECK_MATCH): Update.
5390 (dw2_expand_symtabs_matching): Update.
5391 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5392 per_objfile parameter.
5393 <find_vec_in_debug_names>: Likewise.
5394 <m_per_objfile>: New field.
5395 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5396 parameter.
5397 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5398 (dw2_debug_names_iterator::next): Update.
5399 (dw2_debug_names_lookup_symbol): Update.
5400 (dw2_debug_names_expand_symtabs_for_function): Update.
5401 (dw2_debug_names_map_matching_symbols): Update.
5402 (dw2_debug_names_expand_symtabs_matching): Update.
5403 (dwarf2_read_debug_names): Update.
5404
5405 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5408 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5409 move to dwarf2_per_objfile.
5410 <read_in_chain>: Remove.
5411 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5412 remove_all_cus, age_comp_units>: New methods.
5413 <m_dwarf2_cus>: New member.
5414 (struct dwarf2_per_cu_data) <cu>: Remove.
5415 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5416 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5417 moved to methods of dwarf2_per_objfile.
5418 (dwarf2_clear_marks): Remove.
5419 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5420 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5421 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5422 (dwarf2_per_objfile::remove_all_cus): New.
5423 (class free_cached_comp_units) <~free_cached_comp_units>:
5424 Update.
5425 (load_cu): Update.
5426 (dw2_do_instantiate_symtab): Adjust.
5427 (fill_in_sig_entry_from_dwo_entry): Adjust.
5428 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5429 (cutu_reader::cutu_reader): Likewise.
5430 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5431 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5432 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5433 and dwarf2_per_objfile::age_comp_units.
5434 (load_partial_comp_unit): Update.
5435 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5436 (process_queue): Likewise.
5437 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5438 backlink.
5439 (dwarf2_read_addr_index): Likewise.
5440 (follow_die_offset): Likewise.
5441 (dwarf2_fetch_die_loc_sect_off): Likewise.
5442 (dwarf2_fetch_constant_bytes): Likewise.
5443 (dwarf2_fetch_die_type_sect_off): Likewise.
5444 (follow_die_sig_1): Likewise.
5445 (load_full_type_unit): Likewise.
5446 (read_signatured_type): Likewise.
5447 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5448 (dwarf2_cu::~dwarf2_cu): Remove.
5449 (dwarf2_per_objfile::get_cu): New.
5450 (dwarf2_per_objfile::set_cu): New.
5451 (age_cached_comp_units): Rename to...
5452 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5453 to std::unordered_map.
5454 (free_one_cached_comp_unit): Rename to...
5455 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5456 to std::unordered_map.
5457 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5458 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5459 a dwarf2_per_objfile in data.
5460 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5461 (dwarf2_clear_marks): Remove.
5462
5463 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5466 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5467 (init_tu_and_read_dwo_dies): Likewise.
5468 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5469 (cutu_reader::cutu_reader): Likewise.
5470 (load_partial_comp_unit): Likewise.
5471 (process_psymtab_comp_unit): Update.
5472 (build_type_psymtabs_1): Update.
5473 (process_skeletonless_type_unit): Update.
5474 (load_full_comp_unit): Update.
5475 (find_partial_die): Update.
5476 (dwarf2_read_addr_index): Update.
5477 (read_signatured_type): Update.
5478
5479 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5480
5481 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5482 m_header_read_in>: New fields.
5483 <get_header>: New method.
5484 * dwarf2/read.c (per_cu_header_read_in): Remove.
5485 (dwarf2_per_cu_data::get_header): New.
5486 (dwarf2_per_cu_data::addr_size): Update.
5487 (dwarf2_per_cu_data::offset_size): Update.
5488 (dwarf2_per_cu_data::ref_addr_size): Update.
5489
5490 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5491
5492 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5493 (dw2_do_instantiate_symtab): Update.
5494 (queue_and_load_all_dwo_tus): Change parameter from
5495 dwarf2_per_cu_data to dwarf2_cu.
5496 (dwarf2_fetch_die_loc_sect_off): Update.
5497 (dwarf2_fetch_constant_bytes): Update.
5498 (dwarf2_fetch_die_type_sect_off): Update.
5499
5500 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5501
5502 * dwarf2/read.c (process_full_comp_unit,
5503 process_full_type_unit): Remove per_cu, per_objfile paramters.
5504 Add dwarf2_cu parameter.
5505 (process_queue): Update.
5506
5507 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5508
5509 * dwarf2/read.c (create_cu_from_index_list): Replace
5510 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5511 (create_cus_from_index_list): Likewise.
5512 (create_cus_from_index): Likewise.
5513 (create_signatured_type_table_from_index): Likewise.
5514 (create_cus_from_debug_names_list): Likewise.
5515 (create_cus_from_debug_names): Likewise.
5516 (dwarf2_read_gdb_index): Update.
5517 (dwarf2_read_debug_names): Update.
5518
5519 2020-05-27 Tom Tromey <tom@tromey.com>
5520 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * dwarf2/read.h (struct dwarf2_per_objfile)
5523 <get_type_for_signatured_type, set_type_for_signatured_type>:
5524 New methods.
5525 <m_type_map>: New member.
5526 (struct signatured_type) <type>: Remove.
5527 * dwarf2/read.c
5528 (dwarf2_per_objfile::get_type_for_signatured_type,
5529 dwarf2_per_objfile::set_type_for_signatured_type): New.
5530 (get_signatured_type): Use new methods.
5531
5532 2020-05-27 Tom Tromey <tom@tromey.com>
5533 Simon Marchi <simon.marchi@efficios.com>
5534
5535 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5536 (struct dwarf2_per_objfile) <type_units>: New member.
5537 <get_type_unit_group_unshareable>: New method.
5538 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5539 num_symtabs, symtabs>: Remove; move to
5540 type_unit_group_unshareable.
5541 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5542 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5543 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5544
5545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * dwarf2/read.h (struct dwarf2_per_cu_data):
5548 <dwarf2_per_objfile>: Remove.
5549 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5550 dwarf2_per_objfile.
5551 (create_signatured_type_table_from_index): Likewise.
5552 (create_signatured_type_table_from_debug_names): Likewise.
5553 (create_debug_type_hash_table): Likewise.
5554 (fill_in_sig_entry_from_dwo_entry): Likewise.
5555 (create_type_unit_group): Likewise.
5556 (read_comp_units_from_section): Likewise.
5557 (create_cus_hash_table): Likewise.
5558
5559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5562 dwarf2_per_cu_data::dwarf2_per_objfile.
5563 (compute_compunit_symtab_includes): Likewise.
5564 (dwarf2_cu::start_symtab): Likewise.
5565
5566 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5567
5568 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5569 parameter.
5570 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5571 (read_namespace_alias): Update.
5572 (lookup_die_type): Update.
5573 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5574 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5575 Update.
5576 (disassemble_dwarf_expression): Update.
5577
5578 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * dwarf2/read.h (struct dwarf2_queue_item): Add
5581 dwarf2_per_objfile parameter, assign new parameter.
5582 <per_objfile>: New field.
5583 * dwarf2/read.c (free_one_cached_comp_unit): Add
5584 dwarf2_per_objfile parameter.
5585 (queue_comp_unit): Likewise.
5586 (dw2_do_instantiate_symtab): Update.
5587 (process_psymtab_comp_unit): Update.
5588 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5589 (process_imported_unit_die): Update.
5590 (queue_and_load_dwo_tu): Update.
5591 (follow_die_offset): Update.
5592 (follow_die_sig_1): Update.
5593
5594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5597 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5598 (read_call_site_scope): Assign per_objfile.
5599 (dwarf2_per_cu_data::objfile): Remove.
5600 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5601 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5602 dwarf2_per_objfile parameter.
5603 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5604 dwarf2_per_objfile parameter.
5605 (dwarf_expr_reg_to_entry_parameter): Add output
5606 dwarf2_per_objfile parameter.
5607 (locexpr_get_frame_base): Update.
5608 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5609 <push_dwarf_reg_entry_value>: Update.
5610 <call_site_to_target_addr>: Update.
5611 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5612 parameter.
5613 (value_of_dwarf_reg_entry): Update.
5614 (rw_pieced_value): Update.
5615 (indirect_synthetic_pointer): Update.
5616 (dwarf2_evaluate_property): Update.
5617 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5618 parameter.
5619 (locexpr_read_variable): Update.
5620 (locexpr_get_symbol_read_needs): Update.
5621 (loclist_read_variable): Update.
5622
5623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5624
5625 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5626 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5627 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5628 parameter.
5629 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5630 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5631 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5632 parameter.
5633 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5634 sect_variable_value): Add dwarf2_per_objfile parameter.
5635 (class dwarf_evaluate_loc_desc) <dwarf_call,
5636 dwarf_variable_value>: Update.
5637 (fetch_const_value_from_synthetic_pointer): Add
5638 dwarf2_per_objfile parameter.
5639 (fetch_const_value_from_synthetic_pointer): Update.
5640 (coerced_pieced_ref): Update.
5641 (class symbol_needs_eval_context) <dwarf_call,
5642 dwarf_variable_value>: Update.
5643 (dwarf2_compile_expr_to_ax): Update.
5644
5645 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5646
5647 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5648 parameter.
5649 (dwarf2_evaluate_loc_desc_full): Update.
5650
5651 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5654 parameter.
5655 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5656 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5657 dwarf2_per_objfile parameter.
5658 (decode_debug_loc_dwo_addresses): Likewise.
5659 (dwarf2_find_location_expression): Update.
5660 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5661 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5662 parameter.
5663 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5664 parameter.
5665 (locexpr_describe_location_1): Likewise.
5666 (locexpr_describe_location): Update.
5667
5668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5671 Remove.
5672 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5673 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5674 (dwarf2_compile_property_to_c): Update.
5675 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5676 use text offset from objfile.
5677 (locexpr_tracepoint_var_ref): Update.
5678 (locexpr_generate_c_location): Update.
5679 (loclist_describe_location): Update.
5680 (loclist_tracepoint_var_ref): Update.
5681 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5682 dwarf2_per_objfile parameter.
5683 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5684 use text offset from objfile.
5685 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5686
5687 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * dwarf2/expr.h (struct dwarf_expr_context)
5690 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5691 <offset>: Remove.
5692 <per_objfile>: New member.
5693 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5694 dwarf2_per_objfile parameter. Don't set offset, set
5695 per_objfile.
5696 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5697 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5698 a dwarf2_per_objfile object instead of an offset.
5699 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5700 constructor.
5701 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5702 to dwarf2_expr_executor constructor. Don't set offset.
5703 (dwarf2_fetch_cfa_info): Update.
5704 (struct dwarf2_frame_cache) <text_offset>: Remove.
5705 <per_objfile>: New field.
5706 (dwarf2_frame_cache): Update.
5707 (dwarf2_frame_prev_register): Update.
5708 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5709 <dwarf_evaluate_loc_desc>: Add constructor.
5710 (dwarf2_evaluate_loc_desc_full): Update.
5711 (dwarf2_locexpr_baton_eval): Update.
5712 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5713 Add constructor.
5714 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5715
5716 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5717
5718 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5719 addr_sized_int_type>: Move to dwarf2_cu.
5720 <int_type>: Move to dwarf2_per_objfile.
5721 (struct dwarf2_per_objfile) <int_type>: Move here.
5722 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5723 addr_sized_int_type>: Move here.
5724 (read_func_scope): Update.
5725 (read_array_type): Update.
5726 (read_tag_string_type): Update.
5727 (attr_to_dynamic_prop): Update.
5728 (dwarf2_per_cu_data::int_type): Rename to...
5729 (dwarf2_per_objfile::int_type): ... this.
5730 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5731 (dwarf2_cu::addr_sized_int_type): ... this.
5732 (read_subrange_type): Update.
5733 (dwarf2_per_cu_data::addr_type): Rename to...
5734 (dwarf2_cu::addr_type): ... this.
5735 (set_die_type): Update.
5736
5737 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5738
5739 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5740 data through per_cu->cu.
5741
5742 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5743
5744 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5745 dwarf2_per_cu_data parameter fo dwarf2_cu.
5746 (lookup_dwo_type_unit): Likewise.
5747 (read_cutu_die_from_dwo): Likewise.
5748 (lookup_dwo_unit): Likewise.
5749 (open_and_init_dwo_file): Likewise.
5750 (lookup_dwo_cutu): Likewise.
5751 (lookup_dwo_comp_unit): Likewise.
5752 (lookup_dwo_type_unit): Likewise.
5753 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5754 (cutu_reader::cutu_reader): Update.
5755
5756 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5757
5758 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5759 parameter.
5760 (process_full_type_unit): Likewise.
5761 (process_queue): Update.
5762
5763 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5764
5765 * dwarf2/read.c (recursively_compute_inclusions): Add
5766 dwarf2_per_objfile parameter.
5767 (compute_compunit_symtab_includes): Likewise.
5768 (process_cu_includes): Update.
5769
5770 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5773 parameter.
5774 (create_type_unit_group): Update.
5775 (process_psymtab_comp_unit_reader): Update.
5776 (build_type_psymtabs_reader): Update.
5777
5778 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5781 object through m_this_cu->cu.
5782
5783 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5784
5785 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5786 the info parameter.
5787 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5788
5789 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5792 per_objfile parameter.
5793 (load_full_type_unit): Add per_objfile parameter.
5794 (read_signatured_type): Likewise.
5795 (load_full_comp_unit): Likewise.
5796 (load_cu): Likewise.
5797 (dw2_do_instantiate_symtab): Likewise.
5798 (dw2_get_file_names): Likewise.
5799 (dw2_map_symtabs_matching_filename): Update.
5800 (dw_expand_symtabs_matching_file_matcher): Update.
5801 (dw2_map_symbol_filenames): Update.
5802 (process_psymtab_comp_unit): Add per_objfile parameter.
5803 (build_type_psymtabs_1): Update.
5804 (process_skeletonless_type_unit): Update.
5805 (dwarf2_build_psymtabs_hard): Update.
5806 (load_partial_comp_unit): Add per_objfile parameter.
5807 (scan_partial_symbols): Update.
5808 (load_full_comp_unit): Add per_objfile parameter.
5809 (process_imported_unit_die): Update.
5810 (create_cus_hash_table): Update.
5811 (find_partial_die): Update.
5812 (dwarf2_read_addr_index): Update.
5813 (follow_die_offset): Update.
5814 (dwarf2_fetch_die_loc_sect_off): Update.
5815 (dwarf2_fetch_constant_bytes): Update.
5816 (dwarf2_fetch_die_type_sect_off): Update.
5817 (follow_die_sig_1): Update.
5818 (load_full_type_unit): Add per_objfile parameter.
5819 (read_signatured_type): Likewise.
5820
5821 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5822
5823 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5824 of objfile_name.
5825
5826 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5829 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5830 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5831 field.
5832 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5833 (create_cus_from_index): Update.
5834 (dwarf2_read_gdb_index): Update.
5835 (create_cus_from_debug_names): Update.
5836 (dwarf2_read_debug_names): Update.
5837 (get_abbrev_section_for_cu): Update.
5838 (create_all_comp_units): Update.
5839 (read_attribute_value): Update.
5840 (get_debug_line_section): Update.
5841 * dwarf2/index-cache.c (index_cache::store): Update.
5842 * dwarf2/index-write.c (save_gdb_index_command): Update.
5843 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5844
5845 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5846
5847 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5848 member.
5849 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5850 dwarf2_per_cu_data::per_bfd.
5851 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5852 (create_type_unit_group): Likewise.
5853 (queue_comp_unit): Remove reference to
5854 per_cu->dwarf2_per_objfile.
5855 (maybe_queue_comp_unit): Likewise.
5856 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5857 (create_cus_hash_table): Assign new field.
5858
5859 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5860
5861 * dwarf2/read.c: Replace
5862 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5863 dwarf2_cu->per_objfile throughout.
5864
5865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5866
5867 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5868 parameter, don't use per_cu->dwarf2_per_objfile.
5869 (dw2_instantiate_symtab): Likewise.
5870 (dw2_find_last_source_symtab): Update.
5871 (dw2_map_expand_apply): Update.
5872 (dw2_lookup_symbol): Update.
5873 (dw2_expand_symtabs_for_function): Update.
5874 (dw2_expand_all_symtabs): Update.
5875 (dw2_expand_symtabs_with_fullname): Update.
5876 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5877 don't use per_cu->dwarf2_per_objfile.
5878 (dw2_expand_marked_cus): Update.
5879 (dw2_find_pc_sect_compunit_symtab): Update.
5880 (dw2_debug_names_lookup_symbol): Update.
5881 (dw2_debug_names_expand_symtabs_for_function): Update.
5882 (dw2_debug_names_map_matching_symbols): Update.
5883 (dwarf2_psymtab::expand_psymtab): Update.
5884
5885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5886
5887 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5888 <per_objfile>: New member.
5889 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5890 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5891 call to dwarf2_cu.
5892 (cutu_reader::cutu_reader): Update.
5893 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5894
5895 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5896
5897 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5898 struct dwarf2_per_objfile.
5899 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5900 dwarf2_per_bfd.
5901 * dwarf2/read.c (set_die_type): Update.
5902 (get_die_type_at_offset): Update.
5903
5904 2020-05-27 Tom Tromey <tom@tromey.com>
5905 Simon Marchi <simon.marchi@efficios.com>
5906
5907 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5908 method.
5909 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5910 get_symtab, set_symtab>: New methods.
5911 <m_symtabs>: New field.
5912 (struct dwarf2_psymtab): Derive from partial_symtab.
5913 <readin_p, get_compunit_symtab>: Declare methods.
5914 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5915 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5916 New methods.
5917 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5918 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5919 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5920 (dw2_symtab_iter_next, dw2_print_stats)
5921 (dw2_expand_symtabs_with_fullname)
5922 (dw2_expand_symtabs_matching_one)
5923 (dw_expand_symtabs_matching_file_matcher)
5924 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5925 (dw2_debug_names_iterator::next)
5926 (dw2_debug_names_map_matching_symbols)
5927 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5928 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5929 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5930 New methods.
5931 (get_compunit_symtab, process_full_comp_unit)
5932 (process_full_type_unit): Update.
5933 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5934
5935 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5938 then introduce a new dwarf2_per_objfile type.
5939 <read_line_string>: Move to the new dwarf2_per_objfile type.
5940 <objfile>: Likewise.
5941 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5942 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5943 dwarf2_per_objfile->per_bfd.
5944 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5945 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5946 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5947 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5948 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5949 (dwarf2_per_objfile::locate_sections): Rename to...
5950 (dwarf2_per_bfd::locate_sections): ... this.
5951 (dwarf2_per_objfile::get_cutu): Rename to...
5952 (dwarf2_per_bfd::get_cutu): ... this.
5953 (dwarf2_per_objfile::get_cu): Rename to...
5954 (dwarf2_per_bfd::get_cu): ... this.
5955 (dwarf2_per_objfile::get_tu): Rename to...
5956 (dwarf2_per_bfd::get_tu): ... this.
5957 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5958 (dwarf2_per_bfd::allocate_per_cu): ... this.
5959 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5960 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5961 (get_gdb_index_contents_ftype): Change parameter from
5962 dwarf2_per_objfile to dwarf2_per_bfd.
5963 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5964 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5965
5966 2020-05-27 Tom Tromey <tom@tromey.com>
5967 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5970 (allocate_piece_closure): Set "per_objfile" member.
5971 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5972 (locexpr_describe_location, loclist_describe_location): Use new
5973 member.
5974 * dwarf2/read.c (read_call_site_scope)
5975 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5976 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5977 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5978 handle_data_member_location): Set per_objfile member.
5979 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5980 member.
5981 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5982
5983 2020-05-27 Tom Tromey <tom@tromey.com>
5984
5985 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5986 allocate_signatured_type>: Declare new methods.
5987 <m_num_psymtabs>: New member.
5988 (struct dwarf2_per_cu_data) <index>: New member.
5989 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5990 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5991 (create_cu_from_index_list): Use allocate_per_cu.
5992 (create_signatured_type_table_from_index)
5993 (create_signatured_type_table_from_debug_names)
5994 (create_debug_type_hash_table, add_type_unit)
5995 (read_comp_units_from_section): Use allocate_signatured_type.
5996
5997 2020-05-27 Tom Tromey <tom@tromey.com>
5998
5999 * psymtab.c (partial_map_expand_apply)
6000 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6001 (psym_lookup_global_symbol_language)
6002 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6003 (psym_print_stats, psym_expand_symtabs_for_function)
6004 (psym_map_symbol_filenames, psym_map_matching_symbols)
6005 (psym_expand_symtabs_matching)
6006 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6007 (maintenance_check_psymtabs): Update.
6008 * psympriv.h (struct partial_symtab) <readin_p,
6009 get_compunit_symtab>: Add objfile parameter.
6010 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6011 Likewise.
6012 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6013 get_compunit_symtab>: Likewise.
6014 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6015
6016 2020-05-27 Tom Tromey <tom@tromey.com>
6017
6018 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6019 member.
6020 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6021 (create_cu_from_index_list)
6022 (create_signatured_type_table_from_index)
6023 (create_signatured_type_table_from_debug_names)
6024 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6025 (dwarf2_create_include_psymtab)
6026 (create_debug_type_hash_table, add_type_unit)
6027 (create_type_unit_group, read_comp_units_from_section)
6028 (dwarf2_compute_name, create_cus_hash_table)
6029 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6030 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6031 obstack.
6032 (dw2_get_real_path): Likewise. Change argument to
6033 dwarf2_per_objfile.
6034
6035 2020-05-27 Luis Machado <luis.machado@linaro.org>
6036
6037 PR tdep/26000
6038 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6039 for ldrd (immediate).
6040
6041 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6042
6043 * command.h: Add comment giving the name of class_tui.
6044 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6045 create the fake command for the help for class_tui.
6046
6047 2020-05-26 Tom Tromey <tromey@adacore.com>
6048
6049 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6050 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6051 (val_atr): New function.
6052 (value_val_atr): Use it.
6053 * ada-valprint.c (print_optional_low_bound): Change low bound
6054 handling for enums.
6055 (val_print_packed_array_elements): Don't call discrete_position.
6056 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6057 discrete_position for enum types.
6058 * language.c (default_print_array_index): Change type.
6059 * language.h (struct language_defn) <la_print_array_index>: Add
6060 index_type parameter, change type of index_value.
6061 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6062 (default_print_array_index): Update.
6063 * valprint.c (maybe_print_array_index): Don't call
6064 value_from_longest. Update.
6065 (value_print_array_elements): Don't call discrete_position.
6066
6067 2020-05-26 Tom Tromey <tromey@adacore.com>
6068
6069 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6070 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6071
6072 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6073
6074 PR gdb/13519
6075 * avr-tdep.c (avr_integer_to_address): Return data or code
6076 address accordingly to the second 'type' argument of the
6077 function.
6078
6079 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6080
6081 * infcmd.c, inferior.h: (construct_inferior_arguments):
6082 Moved function from here to gdbsupport/common-inferior.{h,cc}
6083
6084 2020-05-23 Tom Tromey <tom@tromey.com>
6085
6086 Revert commit eca1f90c:
6087 * NEWS: Remove entry for completion styling.
6088 * completer.c (_rl_completion_prefix_display_length): Move
6089 declaration later.
6090 (gdb_fnprint): Revert.
6091 (gdb_display_match_list_1): Likewise.
6092 * cli/cli-style.c (completion_prefix_style)
6093 (completion_difference_style, completion_suffix_style): Remove.
6094 (_initialize_cli_style): Revert.
6095 * cli/cli-style.h (completion_prefix_style)
6096 (completion_difference_style, completion_suffix_style): Don't
6097 declare.
6098
6099 2020-05-24 Pedro Alves <palves@redhat.com>
6100
6101 * symtab.c (completion_list_add_name): Return boolean indication
6102 of whether the symbol matched.
6103 (completion_list_add_symbol): Don't try to remove C++ aliases if
6104 the symbol didn't match in the first place.
6105 * symtab.h (completion_list_add_name): Return bool.
6106
6107 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6108
6109 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6110 type::field.
6111
6112 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6113
6114 GDB 9.2 released.
6115
6116 2020-05-23 Tom Tromey <tom@tromey.com>
6117
6118 * NEWS: Add entry for completion styling.
6119 * completer.c (_rl_completion_prefix_display_length): Move
6120 declaration earlier.
6121 (gdb_fnprint): Use completion_style.
6122 (gdb_display_match_list_1): Likewise.
6123 * cli/cli-style.c (completion_prefix_style)
6124 (completion_difference_style, completion_suffix_style): New
6125 globals.
6126 (_initialize_cli_style): Register new globals.
6127 * cli/cli-style.h (completion_prefix_style)
6128 (completion_difference_style, completion_suffix_style): Declare.
6129
6130 2020-05-23 Pedro Alves <palves@redhat.com>
6131
6132 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6133 (parse_escape): Use ISDIGIT instead of isdigit.
6134 (puts_debug): Use gdb_isprint instead of isprint.
6135 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6136 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6137 ISSPACE instead of isspace.
6138 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6139 instead of isspace.
6140 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6141 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6142 instead of isxdigit and ISDIGIT instead of isdigit.
6143
6144 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * gdbtypes.h (struct type) <field>: New method.
6147 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6148 or type::field.
6149
6150 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6151
6152 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6153 (TYPE_FIELDS): Use type::fields. Change all call sites that
6154 modify the propery to use type::set_fields instead.
6155
6156 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6159 type::num_fields instead.
6160
6161 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6164 methods.
6165 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6166 that modify the number of fields to use type::set_num_fields
6167 instead.
6168
6169 2020-05-22 Tom Tromey <tromey@adacore.com>
6170
6171 * compile/compile-object-load.h (munmap_list_free): Don't
6172 declare.
6173
6174 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6175
6176 * annotate.c (annotate_source_line): Update return type, add call
6177 to update current symtab and line.
6178 * annotate.h (annotate_source_line): Update return type, and
6179 extend header comment.
6180 * source.c (info_line_command): Check annotation_level before
6181 calling annotate_source_line.
6182 * stack.c (print_frame_info): If calling annotate_source_line
6183 returns true, then don't print any other source line information.
6184
6185 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6186
6187 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6188
6189 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * coffread.c (patch_type): Remove NULL check before xfree.
6192 * corefile.c (set_gnutarget): Likewise.
6193 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6194 * exec.c (build_section_table): Likewise.
6195 * remote.c (remote_target::pass_signals): Likewise.
6196 * utils.c (n_spaces): Likewise.
6197 * cli/cli-script.c (document_command): Likewise.
6198 * i386-windows-tdep.c (core_process_module_section): Likewise.
6199 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6200
6201 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6202
6203 * symfile.c (reread_symbols): Clear objfile's section_offsets
6204 vector and section indices, re-compute them by calling
6205 sym_offsets.
6206
6207 2020-05-20 Tom Tromey <tromey@adacore.com>
6208
6209 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6210 (desc_one_bound, desc_index_type): Compute field name.
6211
6212 2020-05-20 Tom de Vries <tdevries@suse.de>
6213
6214 PR symtab/25833
6215 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6216
6217 2020-05-20 Alan Modra <amodra@gmail.com>
6218
6219 PR 25993
6220 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6221 bfd_set_filename.
6222 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6223 passed to bfd_set_filename.
6224 * symfile-mem.c (add_vsyscall_page): Likewise for string
6225 passed to symbol_file_add_from_memory.
6226 (symbol_file_add_from_memory): Make name param a const char* and
6227 don't strdup.
6228
6229 2020-05-20 Alan Modra <amodra@gmail.com>
6230
6231 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6232 rather than accessing bfd->filename directly.
6233 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6234 and use bfd_section_name.
6235 * dwarf2/frame.c (decode_frame_entry): Likewise.
6236 * exec.c (exec_set_section_address): Likewise.
6237 * solib-aix.c (solib_aix_bfd_open): Likewise.
6238 * stap-probe.c (get_stap_base_address): Likewise.
6239 * symfile.c (reread_symbols): Likewise.
6240
6241 2020-05-19 Tom Tromey <tromey@adacore.com>
6242
6243 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6244
6245 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6248
6249 2020-05-19 Pedro Alves <palves@redhat.com>
6250
6251 * NEWS (set exec-file-mismatch): Adjust entry.
6252 * exec.c: Include "build-id.h".
6253 (validate_exec_file): Try to match build IDs instead of filenames.
6254 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6255 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6256 and pass down 'warn_if_slow'.
6257 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6258 gdb_bfd_open_closure to pass it down.
6259 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6260
6261 2020-05-19 Pedro Alves <palves@redhat.com>
6262
6263 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6264 * target.c (target_fileio_open_1): Rename to target_fileio_open
6265 and make extern. Use bool.
6266 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6267 (target_fileio_read_alloc_1): Adjust.
6268 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6269 (target_fileio_open_warn_if_slow): Delete declaration.
6270
6271 2020-05-19 Pedro Alves <palves@redhat.com>
6272
6273 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6274 Adjust all callers.
6275
6276 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6277
6278 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6279 whether disp is negative.
6280
6281 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6282
6283 * symfile.h (struct symfile_segment_data)
6284 <~symfile_segment_data>: Remove.
6285 <segment_info>: Change to std::vector.
6286 * symfile.c (default_symfile_segments): Update.
6287 * elfread.c (elf_symfile_segments): Update.
6288
6289 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6290
6291 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6292 <segments>: New.
6293 <segment_bases, segment_sizes>: Remove.
6294 * symfile.c (default_symfile_segments): Update.
6295 * elfread.c (elf_symfile_segments): Update.
6296 * remote.c (remote_target::get_offsets): Update.
6297 * solib-target.c (solib_target_relocate_section_addresses):
6298 Update.
6299
6300 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * symfile.h (struct symfile_segment_data): Initialize fields.
6303 <~symfile_segment_data>: Add.
6304 (symfile_segment_data_up): New.
6305 (struct sym_fns) <sym_segments>: Return a
6306 symfile_segment_data_up.
6307 (default_symfile_segments): Return a symfile_segment_data_up.
6308 (free_symfile_segment_data): Remove.
6309 (get_symfile_segment_data): Return a symfile_segment_data_up.
6310 * symfile.c (default_symfile_segments): Likewise.
6311 (get_symfile_segment_data): Likewise.
6312 (free_symfile_segment_data): Remove.
6313 (symfile_find_segment_sections): Update.
6314 * elfread.c (elf_symfile_segments): Return a
6315 symfile_segment_data_up.
6316 * remote.c (remote_target::get_offsets): Update.
6317 * solib-target.c (solib_target_relocate_section_addresses):
6318 Update.
6319 * symfile-debug.c (debug_sym_segments): Return a
6320 symfile_segment_data_up.
6321
6322 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6323
6324 PR build/25981
6325 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6326 Hardcode register numbers.
6327
6328 PR build/25981
6329 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6330 procfs_find_LDT_entry): Remove.
6331 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6332 procfs_find_LDT_entry): Remove.
6333 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6334 Remove.
6335
6336 2020-05-17 Pedro Alves <palves@redhat.com>
6337 Andrew Burgess <andrew.burgess@embecosm.com>
6338 Keno Fischer <keno@juliacomputing.com>
6339
6340 PR gdb/25741
6341 * breakpoint.c (build_target_condition_list): Update comments.
6342 (build_target_command_list): Update comments and skip matching
6343 locations.
6344 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6345 a separate function. Simplify "set breakpoint auto-hw off"
6346 handling.
6347 (insert_breakpoints): Update comment.
6348 (tracepoint_locations_match): New parameter. For breakpoints,
6349 compare location types too, if the caller wants to.
6350 (handle_automatic_hardware_breakpoints): New functions.
6351 (bp_location_is_less_than): Also sort by location type and
6352 hardware breakpoint length.
6353 (update_global_location_list): Handle "set breakpoint auto-hw on"
6354 here.
6355 (update_breakpoint_locations): Ask breakpoint_locations_match to
6356 ignore location types.
6357
6358 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6361 type::name instead.
6362
6363 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * gdbtypes.h (struct type) <name, set_name>: New methods.
6366 (TYPE_CODE): Use type::name. Change all call sites used to set
6367 the name to use type::set_name instead.
6368
6369 2020-05-16 Tom Tromey <tom@tromey.com>
6370
6371 * top.c (quit_force): Update.
6372 * infrun.c (handle_no_resumed): Update.
6373 * top.h (all_uis): New function.
6374 (ALL_UIS): Remove.
6375
6376 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6379
6380 2020-05-16 Pedro Alves <palves@redhat.com>
6381
6382 * ia64-linux-nat.c
6383 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6384 Declare method.
6385 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6386
6387 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6390 (sparc64_adi_info): Likewise.
6391
6392 2020-05-15 Tom Tromey <tom@tromey.com>
6393
6394 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6395 block_objfile.
6396 (lookup_objfile_from_block): Remove.
6397 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6398 (lookup_global_symbol): Use block_objfile.
6399 * symtab.h (lookup_objfile_from_block): Don't declare.
6400 * printcmd.c (clear_dangling_display_expressions): Use
6401 block_objfile.
6402 * parse.c (operator_check_standard): Use block_objfile.
6403
6404 2020-05-15 Tom Tromey <tom@tromey.com>
6405
6406 * language.c (language_alloc_type_symbol): Set
6407 SYMBOL_SECTION.
6408 * symtab.c (initialize_objfile_symbol): Remove.
6409 (allocate_symbol): Remove.
6410 (allocate_template_symbol): Remove.
6411 * dwarf2/read.c (fixup_go_packaging): Use "new".
6412 (new_symbol): Use "new".
6413 (read_variable): Don't call initialize_objfile_symbol. Use
6414 "new".
6415 (read_func_scope): Use "new".
6416 * xcoffread.c (process_xcoff_symbol): Don't call
6417 initialize_objfile_symbol.
6418 (SYMBOL_DUP): Remove.
6419 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6420 "new".
6421 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6422 (allocate_template_symbol): Don't declare.
6423 (struct symbol): Add copy constructor. Change defaults.
6424 * jit.c (finalize_symtab): Use "new".
6425 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6426 Use "new".
6427 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6428 (common_block_end): Use "new".
6429 * mdebugread.c (parse_symbol): Use "new".
6430 (new_symbol): Likewise.
6431
6432 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6433
6434 * NEWS: Mention changes to help and apropos.
6435
6436 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6437
6438 * command.h (enum command_class): Improve comments, document
6439 that class_alias is for user-defined aliases, give the class
6440 name for each class, remove unused class_xdb.
6441 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6442 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6443 by a precise class.
6444 * infcmd.c (_initialize_infcmd): Likewise.
6445 * reverse.c (_initialize_reverse): Likewise.
6446 * stack.c (_initialize_stack): Likewise.
6447 * symfile.c (_initialize_symfile): Likewise.
6448 * tracepoint.c (_initialize_tracepoint): Likewise.
6449
6450 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6451
6452 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6453 when their aliased command is traversed.
6454 (help_cmd): Add fput_command_names_styled call to
6455 output command name and aliases when command has an alias.
6456
6457 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6458
6459 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6460 * cli/cli-decode.c (help_cmd_list): Declare as static,
6461 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6462 a command together with the command.
6463 (fput_command_name_styled, fput_command_names_styled): New functions.
6464 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6465 fput_command_name_styled.
6466 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6467 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6468
6469 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6470
6471 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6472 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6473 * command.h (cmd_show_list): Likewise.
6474 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6475 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6476
6477 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6478
6479 * unittests/command-def-selftests.c (traverse_command_structure):
6480 Verify all commands of a list have the same prefix command and
6481 that only the top cmdlist commands have a null prefix.
6482
6483 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6484
6485 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6486 as prefix, not one of its aliases.
6487 (set_cmd_prefix): Remove.
6488 (do_add_cmd): Centralize the setting of the prefix of a command, when
6489 command is defined after its full chain of prefix commands.
6490 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6491 (add_setshow_cmd_full): Likewise.
6492 (update_prefix_field_of_prefixed_commands): New function.
6493 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6494 update_prefix_field_of_prefixed_commands.
6495 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6496 addresses of remote_set_cmdlist and remote_show_cmdlist given
6497 as argument, not the address of an argument.
6498 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6499 * gdb/remote.c (_initialize_remote): Likewise.
6500
6501 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6502
6503 * cli/cli-cmds.c (alias_command): Check for an existing alias
6504 using lookup_cmd_composition, as valid_command_p is too strict
6505 and forbids aliases that are the prefix of an existing alias
6506 or command.
6507 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6508 command is properly recognised as a valid command.
6509
6510 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6511
6512 * unittests/help-doc-selftests.c: Rename to
6513 unittests/command-def-selftests.c
6514 * unittests/command-def-selftests.c (help_doc_tests): Update some
6515 comments.
6516 (command_structure_tests, traverse_command_structure): New namespace
6517 and function.
6518 (command_structure_invariants_tests): New function.
6519 (_initialize_command_def_selftests) Renamed from
6520 _initialize_help_doc_selftests, register command_structure_invariants
6521 selftest.
6522
6523 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6524
6525 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6526 an alias of 'show'.
6527
6528 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6529
6530 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6531 ada_is_fixed_point_type. Update all callers.
6532 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6533 all callers.
6534 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6535 Update all callers.
6536 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6537 print_fixed_point_type. Update all callers.
6538 * ada-valprint.c (ada_value_print_num): Replace call to
6539 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6540
6541 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6542
6543 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6544 processors.
6545 (cpu_supports_bts): Add CV_AMD case.
6546
6547 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6548 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * infrun.c (stop_all_threads): Collect multiple wait events at
6551 each pass.
6552
6553 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6554
6555 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6556 type::code instead.
6557
6558 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6559
6560 * gdbtypes.h (struct type) <code, set_code>: New methods.
6561 (TYPE_CODE): Use type::code. Change all call sites used to set
6562 the code to use type::set_code instead.
6563
6564 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6565 Tom de Vries <tdevries@suse.de>
6566 Pedro Alves <palves@redhat.com>
6567
6568 PR threads/25478
6569 * infrun.c (stop_all_threads): Do NOT ignore
6570 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6571 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6572 received.
6573 (handle_no_resumed): Remove code handling a live inferior with no
6574 threads.
6575 * remote.c (has_single_non_exited_thread): New.
6576 (remote_target::update_thread_list): Do not delete a thread if is
6577 the last thread of the process.
6578 * thread.c (thread_select): Call delete_exited_threads instead of
6579 prune_threads.
6580
6581 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6582
6583 * infrun.c (stop_all_threads): Enable/disable thread events of all
6584 targets. Move a debug message denoting the end of the function
6585 into the SCOPED_EXIT block.
6586
6587 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6588
6589 * process-stratum-target.h: Include <set>.
6590 (all_non_exited_process_targets, switch_to_target_no_thread): New
6591 function declarations.
6592 * process-stratum-target.c (all_non_exited_process_targets)
6593 (switch_to_target_no_thread): New function implementations.
6594
6595 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6596
6597 * infrun.c (handle_inferior_event): Extract out a piece of code
6598 into...
6599 (mark_non_executing_threads): ...this new function.
6600
6601 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6602
6603 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6604 use.
6605
6606 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6607
6608 * regcache.c (regcache_read_pc_protected): New function
6609 implementation that returns 0 if the PC cannot read via
6610 'regcache_read_pc'.
6611 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6612 instead of 'regcache_read_pc'.
6613 (keep_going_pass_signal): Ditto.
6614
6615 2020-05-13 Tom Tromey <tromey@adacore.com>
6616
6617 * ada-lang.c (align_value): Remove.
6618 (ada_template_to_fixed_record_type_1): Use align_up.
6619
6620 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6621
6622 * async-event.c: Update the copyright year.
6623 * async-event.h: Update the copyright year.
6624
6625 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * objfiles.h (is_addr_in_objfile,
6628 shared_objfile_contains_address_p): Return bool.
6629 * objfile.c (is_addr_in_objfile,
6630 shared_objfile_contains_address_p): Return bool.
6631
6632 2020-05-11 Tom Tromey <tromey@adacore.com>
6633
6634 * cli/cli-cmds.c (info_command): Restore.
6635 (_initialize_cli_cmds): Use add_prefix_command for "info".
6636 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6637
6638 2020-05-11 Tom Tromey <tromey@adacore.com>
6639
6640 * ada-lang.c (ada_value_primitive_field): Now public.
6641 * ada-lang.h (ada_value_primitive_field): Declare.
6642 * ada-valprint.c (print_field_values): Use
6643 ada_value_primitive_field for wrapper fields.
6644
6645 2020-05-11 Tom de Vries <tdevries@suse.de>
6646
6647 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6648 MODULE_DOMAIN.
6649
6650 2020-05-11 Tom de Vries <tdevries@suse.de>
6651
6652 PR symtab/25941
6653 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6654 with length 0, if not gdb-produced.
6655 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6656
6657 2020-05-09 Tom de Vries <tdevries@suse.de>
6658
6659 PR gdb/25955
6660 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6661 calculation.
6662
6663 2020-05-09 Tom Tromey <tom@tromey.com>
6664
6665 * top.c (server_command): Now bool.
6666 * top.h (server_command): Now bool.
6667
6668 2020-05-08 Tom Tromey <tromey@adacore.com>
6669
6670 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6671 already being processed.
6672
6673 2020-05-08 Tom Tromey <tom@tromey.com>
6674
6675 * printcmd.c (struct display) <next>: Remove.
6676 <display>: New constructor.
6677 <exp_string>: Now a std::string.
6678 <enabled_p>: Now a bool.
6679 (display_number): Move definition earlier.
6680 (displays): Rename from display_chain. Now a std::vector.
6681 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6682 (display_command): Update.
6683 (do_one_display, disable_display)
6684 (enable_disable_display_command, do_enable_disable_display):
6685 Update.
6686 (free_display): Remove.
6687 (clear_displays): Rewrite.
6688 (delete_display): Update.
6689 (map_display_numbers): Use function_view. Remove "data"
6690 parameter. Update.
6691 (do_delete_display): Remove.
6692 (undisplay_command): Update.
6693 (do_one_display, do_displays, disable_display)
6694 (info_display_command): Update.
6695 (do_enable_disable_display): Remove.
6696 (enable_disable_display_command)
6697 (clear_dangling_display_expressions): Update.
6698
6699 2020-05-08 Tom Tromey <tom@tromey.com>
6700
6701 * symtab.c (set_symbol_cache_size)
6702 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6703 (maintenance_print_symbol_cache_statistics): Update.
6704 * symmisc.c (print_symbol_bcache_statistics)
6705 (print_objfile_statistics, maintenance_print_objfiles)
6706 (maintenance_info_symtabs, maintenance_check_symtabs)
6707 (maintenance_expand_symtabs, maintenance_info_line_tables):
6708 Update.
6709 * symfile-debug.c (set_debug_symfile): Update.
6710 * source.c (forget_cached_source_info): Update.
6711 * python/python.c (gdbpy_progspaces): Update.
6712 * psymtab.c (maintenance_info_psymtabs): Update.
6713 * probe.c (parse_probes): Update.
6714 * linespec.c (iterate_over_all_matching_symtabs)
6715 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6716 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6717 * exec.c (exec_target::close): Update.
6718 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6719 * breakpoint.c (print_one_breakpoint_location)
6720 (create_longjmp_master_breakpoint)
6721 (create_std_terminate_master_breakpoint): Update.
6722 * progspace.c (program_spaces): Now a std::vector.
6723 (maybe_new_address_space): Update.
6724 (add_program_space): Remove.
6725 (program_space::program_space): Update.
6726 (remove_program_space): Update.
6727 (number_of_program_spaces): Remove.
6728 (print_program_space, update_address_spaces): Update.
6729 * progspace.h (program_spaces): Change type.
6730 (ALL_PSPACES): Remove.
6731 (number_of_program_spaces): Don't declare.
6732 (struct program_space) <next>: Remove.
6733
6734 2020-05-08 Tom Tromey <tom@tromey.com>
6735
6736 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6737 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6738 (enable_break): Update.
6739 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6740 (frv_fdpic_find_canonical_descriptor): Update.
6741 (frv_fetch_objfile_link_map): Update.
6742 * progspace.c (program_space::free_all_objfiles): Update.
6743 (program_space::solibs): New method.
6744 * progspace.h (struct program_space) <solibs>: New method.
6745 * solist.h (master_so_list): Don't declare.
6746 (ALL_SO_LIBS): Remove.
6747 * solib.h (so_list_head): Remove.
6748 (update_solib_list): Update comment.
6749 * solib.c (master_so_list): Remove.
6750 (solib_used, update_solib_list, solib_add)
6751 (info_sharedlibrary_command, clear_solib)
6752 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6753
6754 2020-05-08 Tom Tromey <tom@tromey.com>
6755
6756 * extension.c (extension_languages): Now a std::array.
6757 (ALL_EXTENSION_LANGUAGES): Remove.
6758 (get_ext_lang_defn, get_ext_lang_of_file)
6759 (eval_ext_lang_from_control_command): Update.
6760 (finish_ext_lang_initialization)
6761 (auto_load_ext_lang_scripts_for_objfile)
6762 (ext_lang_type_printers::ext_lang_type_printers)
6763 (apply_ext_lang_type_printers)
6764 (ext_lang_type_printers::~ext_lang_type_printers)
6765 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6766 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6767 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6768 (get_matching_xmethod_workers, ext_lang_colorize)
6769 (ext_lang_before_prompt): Update.
6770 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6771
6772 2020-05-08 Tom Tromey <tom@tromey.com>
6773
6774 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6775 overload.
6776 <swap_string, m_string>: Remove.
6777 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6778 Update.
6779 * stabsread.c (define_symbol, read_type): Update.
6780 * linespec.c (find_linespec_symbols): Update.
6781 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6782 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6783 * dbxread.c (read_dbx_symtab): Update.
6784 * cp-support.h (cp_canonicalize_string_full)
6785 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6786 Return unique_xmalloc_ptr.
6787 * cp-support.c (inspect_type): Update.
6788 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6789 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6790 Likewise.
6791 * c-typeprint.c (print_name_maybe_canonical): Update.
6792 * break-catch-throw.c (check_status_exception_catchpoint):
6793 Update.
6794
6795 2020-05-08 Tom de Vries <tdevries@suse.de>
6796
6797 * infrun.c (follow_fork): Copy current_line and current_symtab to
6798 child thread.
6799
6800 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6801
6802 * async-event.c (struct async_signal_handler, struct
6803 async_event_handler): Reformat, remove typedef.
6804
6805 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6806
6807 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6808 access thistype->main_type->dyn_prop_list directly.
6809
6810 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6811
6812 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6813 (remove_dyn_prop): Remove. Update all users to use
6814 type::remove_dyn_prop.
6815 * gdbtypes.c (remove_dyn_prop): Rename to...
6816 (type::remove_dyn_prop): ... this.
6817
6818 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6819
6820 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6821 (add_dyn_prop): Remove. Update all users to use
6822 type::add_dyn_prop.
6823 * gdbtypes.c (add_dyn_prop): Rename to...
6824 (type::add_dyn_prop): ... this.
6825
6826 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6827
6828 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6829 (get_dyn_prop): Remove. Update all users to use
6830 type::dyn_prop.
6831 * gdbtypes.c (get_dyn_prop): Rename to...
6832 (type::dyn_prop): ... this.
6833
6834 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6835
6836 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6837
6838 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6841 instruction, skip it if it's there.
6842
6843 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6844
6845 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6846
6847 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6850 * gdbtypes.c (recursive_dump_type): Remove use of
6851 TYPE_INCOMPLETE.
6852
6853 2020-05-03 Tom Tromey <tom@tromey.com>
6854
6855 * breakpoint.c (catch_command, tcatch_command): Remove.
6856 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6857 add_show_prefix_cmd.
6858 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6859 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6860 Remove.
6861 (add_internal_problem_command): Use add_basic_prefix_cmd,
6862 add_show_prefix_cmd.
6863 * mips-tdep.c (set_mipsfpu_command): Remove.
6864 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6865 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6866 (_initialize_index_cache): Use add_basic_prefix_cmd.
6867 * memattr.c (dummy_cmd): Remove.
6868 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6869 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6870 (_initialize_tui_win): Use add_basic_prefix_cmd,
6871 add_show_prefix_cmd.
6872 * cli/cli-logging.c (set_logging_command): Remove.
6873 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6874 add_show_prefix_cmd.
6875 (show_logging_command): Remove.
6876 * target.c (target_command): Remove.
6877 (add_target): Use add_basic_prefix_cmd.
6878
6879 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6880
6881 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6882
6883 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6884
6885 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6886 info_command.
6887
6888 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6889
6890 * nbsd-nat.c (nbsd_enable_proc_events)
6891 (nbsd_nat_target::post_startup_inferior): Add.
6892 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6893 (nbsd_nat_target::update_thread_list): Rewrite.
6894 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6895 "PTRACE_LWP_CREATE".
6896 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6897
6898 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6899
6900 * stack.c (_initialize_stack): Remove duplicated creation
6901 of "frame" command and "f" alias.
6902
6903 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6904
6905 PR gdb/18706
6906 * gdbtypes.c (check_typedef): Calculate size of array of
6907 stubbed type.
6908
6909 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6910
6911 PR gdb/15559
6912 * i386-tdep.c (i386_push_dummy_call): Call
6913 i386_thiscall_push_dummy_call.
6914 (i386_thiscall_push_dummy_call): New function.
6915 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6916 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6917 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6918
6919 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6920
6921 * gdbarch.sh (do_read): Add shellcheck disable directive for
6922 warning SC2162.
6923
6924 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6925
6926 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6927 "referenced but not assigned" warning.
6928
6929 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6930
6931 * gdbarch.sh: Remove code that sets fallbackdefault.
6932
6933 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbarch.sh: Use shell operators && and || instead of
6936 -a and -o.
6937
6938 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6939
6940 * gdbarch.sh: Use $(...) instead of `...`.
6941
6942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * gdbarch.sh: Use double quotes around variables.
6945
6946 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * gdbarch.sh: Use %s with printf, instead of variables in the
6949 format string.
6950
6951 2020-04-29 Tom Tromey <tromey@adacore.com>
6952
6953 PR ada/25875:
6954 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6955 type fields here.
6956 (read_enumeration_type): Call
6957 update_enumeration_type_from_children later. Update comments.
6958 (process_enumeration_scope): Don't create type fields.
6959
6960 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6961
6962 * nbsd-tdep.c: Include "xml-syscall.h".
6963 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6964
6965 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6966
6967 * nbsd-nat.c: Include "sys/wait.h".
6968 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6969 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6970 (nbsd_nat_target::remove_exec_catchpoint)
6971 (nbsd_nat_target::set_syscall_catchpoint): Add.
6972 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6973 (nbsd_nat_target::insert_exec_catchpoint)
6974 (nbsd_nat_target::remove_exec_catchpoint)
6975 (nbsd_nat_target::set_syscall_catchpoint): Add.
6976 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6977 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6978 `nbsd_get_syscall_number'.
6979
6980 2020-04-29 Tom Tromey <tom@tromey.com>
6981
6982 * stack.c (print_block_frame_labels): Remove.
6983
6984 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6985
6986 PR gdb/17320
6987 * ada-valprint.c (val_print_packed_array_elements): Move array
6988 end bracket to new line.
6989 (ada_val_print_string): Remove extra spaces before first array
6990 element.
6991 * c-valprint.c (c_value_print_array): Likewise.
6992 * m2-valprint.c (m2_print_array_contents): Likewise.
6993 (m2_value_print_inner): Likewise.
6994 * p-valprint.c (pascal_value_print_inner): Likewise.
6995 * valprint.c (generic_val_print_array): Likewise.
6996 (value_print_array_elements): Move first array element and array
6997 end bracket to new line.
6998
6999 2020-04-29 Tom de Vries <tdevries@suse.de>
7000
7001 PR symtab/25889
7002 * linespec.c (find_method): Fix ix calculation.
7003
7004 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7005
7006 * syscalls/update-netbsd.sh: New file.
7007 * syscalls/netbsd.xml: Regenerate.
7008 * data-directory/Makefile.in: Register `netbsd.xml' in
7009 `SYSCALLS_FILES'.
7010
7011 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * syscalls/update-freebsd.sh: Add double quotes.
7014
7015 2020-04-28 Tom Tromey <tom@tromey.com>
7016
7017 * NEWS: Update.
7018 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7019 (cmdpy_init): Allow class_tui.
7020
7021 2020-04-28 Mark Williams <mark@myosotissp.com>
7022
7023 PR gdb/24480
7024 * dwarf2read.c: Add missing assingments to list_in_scope when
7025 start_symtab was already called.
7026
7027 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7028
7029 PR gdb/25881
7030 * dwarf2/read.c (offset_map_type): Use
7031 gdb:hash_enum<sect_offset> as hash function.
7032
7033 2020-04-28 Tom de Vries <tdevries@suse.de>
7034
7035 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7036 with DW_AT_signature.
7037
7038 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7039
7040 * configure.ac: Remove check for fs_base/gs_base in
7041 user_regs_struct.
7042 * configure: Re-generate.
7043 * config.in: Re-generate.
7044 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7045 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7046 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7047
7048 2020-04-27 Luis Machado <luis.machado@linaro.org>
7049
7050 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7051 problematic inline frame unwinding situation.
7052 * frame.c (frame_id_computed_p): New function.
7053 * frame.h (frame_id_computed_p): New prototype.
7054
7055 2020-04-26 Tom Tromey <tom@tromey.com>
7056
7057 * command.h (enum command_class) <class_pseudo>: Remove.
7058
7059 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7060
7061 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7062 and whitespace.
7063
7064 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7065
7066 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7067 `PT_GET_PROCESS_STATE' block.
7068
7069 2020-04-24 Tom Tromey <tom@tromey.com>
7070
7071 * symtab.h (symbol_get_demangled_name): Don't declare.
7072 * symtab.c (symbol_get_demangled_name): Remove.
7073 (general_symbol_info::natural_name)
7074 (general_symbol_info::demangled_name): Update.
7075
7076 2020-04-24 Tom Tromey <tom@tromey.com>
7077
7078 PR rust/25025:
7079 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7080
7081 2020-04-24 Tom Tromey <tom@tromey.com>
7082
7083 PR symtab/12707:
7084 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7085 exists.
7086 (new_symbol): Likewise.
7087 * compile/compile-object-load.c (get_out_value_type): Use
7088 symbol_matches_search_name.
7089
7090 2020-04-24 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/read.c (add_partial_symbol): Do not call
7093 compute_and_set_names.
7094
7095 2020-04-24 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7098 overload.
7099
7100 2020-04-24 Tom Tromey <tom@tromey.com>
7101
7102 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7103 (add_psymbol_to_list): New overload. Make old overload call new
7104 one.
7105 * psympriv.h (add_psymbol_to_list): New overload.
7106
7107 2020-04-24 Tom Tromey <tom@tromey.com>
7108
7109 * dwarf2/read.c (partial_die_info::read) <case
7110 DW_AT_linkage_name>: Use value_as_string.
7111 (dwarf2_string_attr): Use value_as_string.
7112 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7113 method.
7114 * dwarf2/attribute.c (attribute::value_as_string): New method.
7115
7116 2020-04-24 Tom Tromey <tom@tromey.com>
7117
7118 * symtab.c (general_symbol_info::natural_name)
7119 (general_symbol_info::demangled_name): Check for language_rust.
7120
7121 2020-04-24 Tom Tromey <tom@tromey.com>
7122
7123 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7124 (dwarf2_physname): ... from here.
7125 (partial_die_info::read): Add Rust "{" hack.
7126
7127 2020-04-24 Tom Tromey <tom@tromey.com>
7128
7129 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7130 method.
7131 (symbol_set_demangled_name): Don't declare.
7132 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7133 symbol_set_demangled_name.
7134 (general_symbol_info::set_language)
7135 (general_symbol_info::compute_and_set_names): Update.
7136 * minsyms.c (minimal_symbol_reader::install): Update.
7137 * dwarf2/read.c (new_symbol): Update.
7138
7139 2020-04-24 Tom Tromey <tromey@adacore.com>
7140
7141 PR python/23662:
7142 * python/py-type.c (convert_field): Handle
7143 FIELD_LOC_KIND_DWARF_BLOCK.
7144 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7145 (typy_get_dynamic): Nw function.
7146 (type_object_getset): Add "dynamic".
7147 * NEWS: Add entry.
7148
7149 2020-04-24 Tom Tromey <tromey@adacore.com>
7150
7151 * ada-typeprint.c (print_choices, print_variant_part)
7152 (print_record_field_types_dynamic): New functions.
7153 (print_record_field_types): Use print_record_field_types_dynamic.
7154
7155 2020-04-24 Tom Tromey <tromey@adacore.com>
7156
7157 * dwarf2/read.c (handle_data_member_location): New overload.
7158 (dwarf2_add_field): Use it.
7159 (decode_locdesc): Add "computed" parameter. Update comment.
7160 * gdbtypes.c (is_dynamic_type_internal): Also look for
7161 FIELD_LOC_KIND_DWARF_BLOCK.
7162 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7163 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7164 virtual base classes.
7165 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7166 FIELD_LOC_KIND_DWARF_BLOCK.
7167
7168 2020-04-24 Tom Tromey <tromey@adacore.com>
7169
7170 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7171 * gdbtypes.c (is_dynamic_type_internal): Check
7172 TYPE_HAS_DYNAMIC_LENGTH.
7173 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7174 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7175 New macros.
7176 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7177 constant.
7178
7179 2020-04-24 Tom Tromey <tromey@adacore.com>
7180
7181 * dwarf2/read.c (struct variant_field): Rewrite.
7182 (struct variant_part_builder): New.
7183 (struct nextfield): Remove "variant" field. Add "offset".
7184 (struct field_info): Add "current_variant_part" and
7185 "variant_parts".
7186 (alloc_discriminant_info): Remove.
7187 (alloc_rust_variant): New function.
7188 (quirk_rust_enum): Update.
7189 (dwarf2_add_field): Set "offset" member. Don't handle
7190 DW_TAG_variant_part.
7191 (offset_map_type): New typedef.
7192 (convert_variant_range, create_one_variant)
7193 (create_one_variant_part, create_variant_parts)
7194 (add_variant_property): New functions.
7195 (dwarf2_attach_fields_to_type): Call add_variant_property.
7196 (read_structure_type): Don't handle DW_TAG_variant_part.
7197 (handle_variant_part, handle_variant): New functions.
7198 (handle_struct_member_die): Use them.
7199 (process_structure_scope): Don't handle variant parts.
7200 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7201 (struct discriminant_info): Remove.
7202 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7203 (struct main_type) <flag_discriminated_union>: Remove.
7204 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7205 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7206 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7207 Update.
7208 * valops.c (value_union_variant): Remove.
7209 * value.h (value_union_variant): Don't declare.
7210
7211 2020-04-24 Tom Tromey <tromey@adacore.com>
7212
7213 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7214 (ada_value_primitive_packed_val): Update.
7215 * ada-valprint.c (ada_value_print_1): Update.
7216 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7217 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7218 just an address. Use evaluate_for_locexpr_baton.
7219 (dwarf2_evaluate_property): Update.
7220 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7221 array_view.
7222 * findvar.c (default_read_var_value): Update.
7223 * gdbtypes.c (compute_variant_fields_inner)
7224 (resolve_dynamic_type_internal): Update.
7225 (resolve_dynamic_type): Change type of valaddr parameter.
7226 * gdbtypes.h (resolve_dynamic_type): Update.
7227 * valarith.c (value_subscripted_rvalue): Update.
7228 * value.c (value_from_contents_and_address): Update.
7229
7230 2020-04-24 Tom Tromey <tromey@adacore.com>
7231
7232 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7233 "push_initial_value" parameter.
7234 (dwarf2_evaluate_property): Likewise.
7235 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7236
7237 2020-04-24 Tom Tromey <tromey@adacore.com>
7238
7239 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7240 (variant::matches, compute_variant_fields_recurse)
7241 (compute_variant_fields_inner, compute_variant_fields): New
7242 functions.
7243 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7244 Use resolved_type after type is made.
7245 (operator==): Add new cases.
7246 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7247 (struct discriminant_range, struct variant, struct variant_part):
7248 New.
7249 (union dynamic_prop_data) <variant_parts, original_type>: New
7250 members.
7251 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7252 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7253 constants.
7254 * value.c (unpack_bits_as_long): Now public.
7255 * value.h (unpack_bits_as_long): Declare.
7256
7257 2020-04-24 Tom Tromey <tromey@adacore.com>
7258
7259 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7260 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7261
7262 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7263
7264 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7265
7266 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7267
7268 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7269 (remove_fork_catchpoint, post_startup_inferior)
7270 (post_attach): Move...
7271 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7272 (remove_fork_catchpoint, post_startup_inferior)
7273 (post_attach): ...here.
7274 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7275 (remove_fork_catchpoint, post_startup_inferior)
7276 (post_attach): Move...
7277 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7278 (remove_fork_catchpoint, post_startup_inferior)
7279 (post_attach): ...here.
7280
7281 2020-04-24 Tom Tromey <tromey@adacore.com>
7282
7283 * nat/windows-nat.h (struct windows_thread_info)
7284 <pc_adjusted>: New member.
7285 * windows-nat.c (windows_fetch_one_register): Check
7286 pc_adjusted.
7287 (windows_nat_target::get_windows_debug_event)
7288 (windows_nat_target::wait): Set pc_adjusted.
7289
7290 2020-04-24 Tom de Vries <tdevries@suse.de>
7291
7292 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7293 Run gdb-add-index inside temp dir.
7294
7295 2020-04-23 Tom Tromey <tromey@adacore.com>
7296
7297 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7298 in loop.
7299
7300 2020-04-23 Luis Machado <luis.machado@linaro.org>
7301
7302 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7303 get_frame_register instead of gdbarch_unwind_pc.
7304
7305 2020-04-23 Tom de Vries <tdevries@suse.de>
7306
7307 * symtab.c (lookup_global_symbol): Prefer def over decl.
7308
7309 2020-04-23 Tom de Vries <tdevries@suse.de>
7310
7311 PR symtab/25807
7312 * block.c (best_symbol, better_symbol): Promote to external.
7313 * block.h (best_symbol, better_symbol): Declare.
7314 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7315 decl.
7316
7317 2020-04-23 Tom Tromey <tromey@adacore.com>
7318
7319 PR ada/25837:
7320 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7321 "const char *", not a "const std::string &".
7322 <name_and_matcher::operator==>: Update.
7323 * unittests/lookup_name_info-selftests.c: Change type of
7324 "result".
7325
7326 2020-04-23 Tom Tromey <tom@tromey.com>
7327
7328 * inferior.h (iterate_over_inferiors): Don't declare.
7329 * inferior.c (iterate_over_inferiors): Remove.
7330 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7331 Remove.
7332 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7333 use iterate_over_inferiors.
7334 (darwin_resume_inferior_it)
7335 (struct resume_inferior_threads_param)
7336 (darwin_resume_inferior_threads_it): Remove.
7337 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7338
7339 2020-04-23 Tom de Vries <tdevries@suse.de>
7340
7341 * blockframe.c (find_pc_partial_function): Use
7342 find_pc_sect_compunit_symtab rather than
7343 objfile->sf->qf->find_pc_sect_compunit_symtab.
7344
7345 2020-04-22 Tom de Vries <tdevries@suse.de>
7346
7347 PR symtab/25764
7348 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7349 in psymtabs.
7350
7351 2020-04-22 Tom de Vries <tdevries@suse.de>
7352
7353 PR symtab/25801
7354 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7355 symtabs.
7356
7357 2020-04-22 Tom de Vries <tdevries@suse.de>
7358
7359 PR symtab/25700
7360 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7361 CU if already created.
7362
7363 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7364
7365 * infrun.c (displaced_step_fixup): Switch to the event_thread
7366 before calling displaced_step_restore, not after.
7367
7368 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7369
7370 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7371 its inferior is not recorded by us.
7372 (record_btrace_target_open): Replace call to
7373 all_non_exited_threads () with call to current_inferior
7374 ()->non_exited_threads ().
7375 (record_btrace_target::stop_recording): Likewise.
7376 (record_btrace_target::close): Likewise.
7377 (record_btrace_target::wait): Likewise.
7378 (record_btrace_target::record_stop_replaying): Likewise.
7379
7380 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7381
7382 * btrace.c (btrace_enable): Throw an error on double enables and
7383 when enabling recording fails.
7384 (btrace_disable): Throw an error if the thread is not recorded.
7385
7386 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7387
7388 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7389 request if we do not have a thread_info.
7390
7391 2020-04-21 Tom de Vries <tdevries@suse.de>
7392
7393 PR gdb/25471
7394 * thread.c
7395 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7396 exception in get_frame_id.
7397
7398 2020-04-20 Tom Tromey <tromey@adacore.com>
7399
7400 * python/python.c (struct gdbpy_event): Mark move constructor as
7401 noexcept.
7402 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7403 constructor as noexcept.
7404 * completer.h (struct completion_result): Mark move constructor as
7405 noexcept.
7406 * completer.c (completion_result::completion_result): Use
7407 initialization style. Don't call reset_match_list.
7408
7409 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7410
7411 * MAINTAINERS (Write After Approval): Add myself.
7412
7413 2020-04-18 Tom Tromey <tom@tromey.com>
7414
7415 * windows-tdep.c (init_w32_command_list)
7416 (w32_prefix_command_valid): Restore.
7417 (_initialize_windows_tdep): Call init_w32_command_list.
7418
7419 2020-04-18 Tom Tromey <tom@tromey.com>
7420
7421 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7422 * value.c (value_fn_field): Update.
7423 * valops.c (find_function_in_inferior)
7424 (value_allocate_space_in_inferior): Update.
7425 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7426 Update.
7427 * tui/tui-source.c (tui_source_window::set_contents): Update.
7428 * symtab.c (lookup_global_or_static_symbol)
7429 (find_function_start_sal_1, skip_prologue_sal)
7430 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7431 * symmisc.c (dump_msymbols, dump_symtab_1)
7432 (maintenance_print_one_line_table): Update.
7433 * symfile.c (init_entry_point_info, section_is_mapped)
7434 (list_overlays_command, simple_read_overlay_table)
7435 (simple_overlay_update_1): Update.
7436 * stap-probe.c (handle_stap_probe): Update.
7437 * stabsread.c (dbx_init_float_type, define_symbol)
7438 (read_one_struct_field, read_enum_type, read_range_type): Update.
7439 * source.c (info_line_command): Update.
7440 * python/python.c (gdbpy_source_objfile_script)
7441 (gdbpy_execute_objfile_script): Update.
7442 * python/py-type.c (save_objfile_types): Update.
7443 * python/py-objfile.c (py_free_objfile): Update.
7444 * python/py-inferior.c (python_new_objfile): Update.
7445 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7446 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7447 (maintenance_check_psymtabs): Update.
7448 * printcmd.c (info_address_command): Update.
7449 * objfiles.h (struct objfile) <arch>: New method, from
7450 get_objfile_arch.
7451 (get_objfile_arch): Don't declare.
7452 * objfiles.c (get_objfile_arch): Remove.
7453 (filter_overlapping_sections): Update.
7454 * minsyms.c (msymbol_is_function): Update.
7455 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7456 (output_nondebug_symbol): Update.
7457 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7458 (mdebug_expand_psymtab): Update.
7459 * machoread.c (macho_add_oso_symfile): Update.
7460 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7461 Update.
7462 * linux-fork.c (checkpoint_command): Update.
7463 * linespec.c (convert_linespec_to_sals): Update.
7464 * jit.c (finalize_symtab): Update.
7465 * infrun.c (insert_exception_resume_from_probe): Update.
7466 * ia64-tdep.c (ia64_find_unwind_table): Update.
7467 * hppa-tdep.c (internalize_unwinds): Update.
7468 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7469 Update.
7470 * gcore.c (call_target_sbrk): Update.
7471 * elfread.c (record_minimal_symbol, elf_symtab_read)
7472 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7473 (elf_gnu_ifunc_resolve_by_got): Update.
7474 * dwarf2/read.c (create_addrmap_from_index)
7475 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7476 (read_debug_names_from_section)
7477 (process_psymtab_comp_unit_reader, add_partial_symbol)
7478 (add_partial_subprogram, process_full_comp_unit)
7479 (read_file_scope, read_func_scope, read_lexical_block_scope)
7480 (read_call_site_scope, dwarf2_ranges_read)
7481 (dwarf2_record_block_ranges, dwarf2_add_field)
7482 (mark_common_block_symbol_computed, read_tag_pointer_type)
7483 (read_tag_string_type, dwarf2_init_float_type)
7484 (dwarf2_init_complex_target_type, read_base_type)
7485 (partial_die_info::read, partial_die_info::read)
7486 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7487 (dwarf2_fetch_die_loc_sect_off): Update.
7488 * dwarf2/loc.c (dwarf2_find_location_expression)
7489 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7490 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7491 (dwarf2_loc_desc_get_symbol_read_needs)
7492 (locexpr_describe_location_piece, locexpr_describe_location_1)
7493 (loclist_describe_location): Update.
7494 * dwarf2/index-write.c (write_debug_names): Update.
7495 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7496 * dtrace-probe.c (dtrace_process_dof): Update.
7497 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7498 (process_one_symbol): Update.
7499 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7500 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7501 (coff_read_enum_type): Update.
7502 * cli/cli-cmds.c (edit_command, list_command): Update.
7503 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7504 * breakpoint.c (create_overlay_event_breakpoint)
7505 (create_longjmp_master_breakpoint)
7506 (create_std_terminate_master_breakpoint)
7507 (create_exception_master_breakpoint, get_sal_arch): Update.
7508 * block.c (block_gdbarch): Update.
7509 * annotate.c (annotate_source_line): Update.
7510
7511 2020-04-17 Tom Tromey <tromey@adacore.com>
7512
7513 * auto-load.c (show_auto_load_cmd): Remove.
7514 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7515 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7516 (maintenance_print_arc_command): Remove.
7517 * tui/tui-win.c (tui_command): Remove.
7518 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7519 * tui/tui-layout.c (tui_layout_command): Remove.
7520 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7521 * python/python.c (user_set_python, user_show_python): Remove.
7522 (_initialize_python): Use add_basic_prefix_cmd,
7523 add_show_prefix_cmd.
7524 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7525 (install_gdb_commands): Use add_basic_prefix_cmd,
7526 add_show_prefix_cmd.
7527 (info_guile_command): Remove.
7528 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7529 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7530 add_show_prefix_cmd.
7531 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7532 Remove do_set and do_show parameters.
7533 * cli/cli-style.c (set_style, show_style): Remove.
7534 (_initialize_cli_style): Use add_basic_prefix_cmd,
7535 add_show_prefix_cmd.
7536 (cli_style_option::add_setshow_commands): Remove do_set and
7537 do_show parameters.
7538 (cli_style_option::add_setshow_commands): Use
7539 add_basic_prefix_cmd, add_show_prefix_cmd.
7540 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7541 (set_style_name): Remove.
7542 * cli/cli-dump.c (dump_command, append_command): Remove.
7543 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7544 (tekhex_dump_command, binary_dump_command)
7545 (binary_append_command): Remove.
7546 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7547 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7548 (init_w32_command_list): Remove; move into ...
7549 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7550 * valprint.c (set_print, show_print, set_print_raw)
7551 (show_print_raw): Remove.
7552 (_initialize_valprint): Use add_basic_prefix_cmd,
7553 add_show_prefix_cmd.
7554 * typeprint.c (set_print_type, show_print_type): Remove.
7555 (_initialize_typeprint): Use add_basic_prefix_cmd,
7556 add_show_prefix_cmd.
7557 * record.c (set_record_command, show_record_command): Remove.
7558 (_initialize_record): Use add_basic_prefix_cmd,
7559 add_show_prefix_cmd.
7560 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7561 add_show_prefix_cmd.
7562 (info_command, show_command, set_debug, show_debug): Remove.
7563 * top.h (set_history, show_history): Don't declare.
7564 * top.c (set_history, show_history): Remove.
7565 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7566 (unset_tdesc_cmd): Remove.
7567 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7568 add_show_prefix_cmd.
7569 * symtab.c (info_module_command): Remove.
7570 (_initialize_symtab): Use add_basic_prefix_cmd.
7571 * symfile.c (overlay_command): Remove.
7572 (_initialize_symfile): Use add_basic_prefix_cmd.
7573 * sparc64-tdep.c (info_adi_command): Remove.
7574 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7575 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7576 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7577 add_show_prefix_cmd.
7578 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7579 (_initialize_serial): Use add_basic_prefix_cmd,
7580 add_show_prefix_cmd.
7581 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7582 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7583 add_show_prefix_cmd.
7584 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7585 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7586 add_show_prefix_cmd.
7587 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7588 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7589 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7590 add_show_prefix_cmd.
7591 * remote.c (remote_command, set_remote_cmd): Remove.
7592 (_initialize_remote): Use add_basic_prefix_cmd.
7593 * record-full.c (set_record_full_command)
7594 (show_record_full_command): Remove.
7595 (_initialize_record_full): Use add_basic_prefix_cmd,
7596 add_show_prefix_cmd.
7597 * record-btrace.c (cmd_set_record_btrace)
7598 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7599 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7600 (cmd_show_record_btrace_pt): Remove.
7601 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7602 add_show_prefix_cmd.
7603 * ravenscar-thread.c (set_ravenscar_command)
7604 (show_ravenscar_command): Remove.
7605 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7606 add_show_prefix_cmd.
7607 * mips-tdep.c (show_mips_command, set_mips_command)
7608 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7609 add_show_prefix_cmd.
7610 * maint.c (maintenance_command, maintenance_info_command)
7611 (maintenance_check_command, maintenance_print_command)
7612 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7613 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7614 add_show_prefix_cmd.
7615 (show_per_command_cmd): Remove.
7616 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7617 Remove.
7618 (maintenance_show_test_settings_cmd): Remove.
7619 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7620 add_show_prefix_cmd.
7621 * maint-test-options.c (maintenance_test_options_command):
7622 Remove.
7623 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7624 * macrocmd.c (macro_command): Remove
7625 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7626 * language.c (set_check, show_check): Remove.
7627 (_initialize_language): Use add_basic_prefix_cmd,
7628 add_show_prefix_cmd.
7629 * infcmd.c (unset_command): Remove.
7630 (_initialize_infcmd): Use add_basic_prefix_cmd.
7631 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7632 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7633 add_show_prefix_cmd.
7634 * go32-nat.c (go32_info_dos_command): Remove.
7635 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7636 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7637 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7638 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7639 (_initialize_frame): Use add_basic_prefix_cmd,
7640 add_show_prefix_cmd.
7641 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7642 (_initialize_dcache): Use add_basic_prefix_cmd,
7643 add_show_prefix_cmd.
7644 * cp-support.c (maint_cplus_command): Remove.
7645 (_initialize_cp_support): Use add_basic_prefix_cmd.
7646 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7647 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7648 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7649 add_basic_prefix_cmd, add_show_prefix_cmd.
7650 * breakpoint.c (save_command): Remove.
7651 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7652 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7653 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7654 add_show_prefix_cmd.
7655 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7656 (set_ada_command, show_ada_command): Remove.
7657 (_initialize_ada_language): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7660
7661 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7662
7663 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7664 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7665
7666 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7667
7668 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7669 warning messages.
7670
7671 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7672
7673 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7674 import table is not at beginning of .idata section.
7675
7676 2020-04-16 Pedro Alves <palves@redhat.com>
7677
7678 * inferior.c (delete_inferior): Use delete operator directly
7679 instead of delete_program_space.
7680 * progspace.c (add_program_space): New, factored out from
7681 program_space::program_space.
7682 (remove_program_space): New, factored out from
7683 delete_program_space.
7684 (program_space::program_space): Remove intro comment. Rewrite.
7685 (program_space::~program_space): Remove intro comment. Call
7686 remove_program_space.
7687 (delete_program_space): Delete.
7688 * progspace.h (program_space::program_space): Make explicit. Move
7689 intro comment here, adjusted.
7690 (program_space::~program_space): Move intro comment here,
7691 adjusted.
7692 (delete_program_space): Remove.
7693
7694 2020-04-16 Tom Tromey <tromey@adacore.com>
7695
7696 * windows-nat.c (windows_nat::handle_access_violation): New
7697 function.
7698 * nat/windows-nat.h (handle_access_violation): Declare.
7699 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7700 windows-nat.c. Call handle_access_violation.
7701
7702 2020-04-16 Tom de Vries <tdevries@suse.de>
7703
7704 PR symtab/25791
7705 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7706 CUs without psymtab.
7707
7708 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7709
7710 * python/python.c (do_start_initialization): Don't call
7711 PyEval_InitThreads for Python 3.9 and beyond.
7712
7713 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7714
7715 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7716 thread functions.
7717 (obsd_nat_target::wait): Likewise.
7718
7719 2020-04-15 Tom Tromey <tromey@adacore.com>
7720
7721 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7722 (DEBUG_EXCEPT): Use debug_printf.
7723
7724 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7725
7726 * completer.c (class completion_tracker::completion_hash_entry)
7727 <hash_name>: New member function.
7728 (completion_tracker::discard_completions): New callback to hash a
7729 completion_hash_entry, pass this to htab_create_alloc.
7730
7731 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7732
7733 * windows-nat.c (windows_make_so): Warn rather than stopping with
7734 an error if realpath() fails.
7735
7736 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7737
7738 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7739 (nbsd_nat_target::info_proc): Add do_status.
7740
7741 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7742 Tom de Vries <tdevries@suse.de>
7743
7744 PR symtab/25718
7745 * psympriv.h (struct partial_symtab::read_symtab)
7746 (struct partial_symtab::expand_psymtab)
7747 (struct partial_symtab::read_dependencies): Update comments.
7748 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7749 read_symtab for includer.
7750 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7751 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7752 (struct dwarf2_include_psymtab::m_readin): Remove.
7753 (struct dwarf2_include_psymtab::includer): New member function.
7754 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7755
7756 2020-04-14 Tom de Vries <tdevries@suse.de>
7757
7758 PR symtab/25720
7759 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7760 with NULL symbol_matcher and lookup_name.
7761 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7762 and lookup_name.
7763 * dwarf2/read.c (dw2_expand_symtabs_matching)
7764 (dw2_debug_names_expand_symtabs_matching): Same.
7765 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7766 Make lookup_name a pointer. Update comment.
7767 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7768 lookup_name being a pointer.
7769 * symfile.c (expand_symtabs_matching): Same.
7770 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7771 * linespec.c (iterate_over_all_matching_symtabs): Same.
7772
7773 2020-04-13 Tom Tromey <tom@tromey.com>
7774
7775 * run-on-main-thread.c: Update include.
7776 * unittests/main-thread-selftests.c: Update include.
7777 * tui/tui-win.c: Update include.
7778 * tui/tui-io.c: Update include.
7779 * tui/tui-interp.c: Update include.
7780 * tui/tui-hooks.c: Update include.
7781 * top.h: Update include.
7782 * top.c: Update include.
7783 * ser-base.c: Update include.
7784 * remote.c: Update include.
7785 * remote-notif.c: Update include.
7786 * remote-fileio.c: Update include.
7787 * record-full.c: Update include.
7788 * record-btrace.c: Update include.
7789 * python/python.c: Update include.
7790 * posix-hdep.c: Update include.
7791 * mingw-hdep.c: Update include.
7792 * mi/mi-main.c: Update include.
7793 * mi/mi-interp.c: Update include.
7794 * main.c: Update include.
7795 * linux-nat.c: Update include.
7796 * interps.c: Update include.
7797 * infrun.c: Update include.
7798 * inf-loop.c: Update include.
7799 * event-top.c: Update include.
7800 * event-loop.c: Move to ../gdbsupport/.
7801 * event-loop.h: Move to ../gdbsupport/.
7802 * async-event.h: Update include.
7803 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7804
7805 2020-04-13 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-win.c: Include async-event.h.
7808 * remote.c: Include async-event.h.
7809 * remote-notif.c: Include async-event.h.
7810 * record-full.c: Include async-event.h.
7811 * record-btrace.c: Include async-event.h.
7812 * infrun.c: Include async-event.h.
7813 * event-top.c: Include async-event.h.
7814 * event-loop.h: Move some declarations to async-event.h.
7815 * event-loop.c: Don't include ser-event.h or top.h. Move some
7816 code to async-event.c.
7817 * async-event.h: New file.
7818 * async-event.c: New file.
7819 * Makefile.in (COMMON_SFILES): Add async-event.c.
7820 (HFILES_NO_SRCDIR): Add async-event.h.
7821
7822 2020-04-13 Tom Tromey <tom@tromey.com>
7823
7824 * utils.c (flush_streams): New function.
7825 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7826
7827 2020-04-13 Tom Tromey <tom@tromey.com>
7828
7829 * event-loop.c (handle_file_event): Use warning, not
7830 printf_unfiltered.
7831
7832 2020-04-13 Tom Tromey <tom@tromey.com>
7833
7834 * event-loop.c: Include <chrono>.
7835
7836 2020-04-13 Tom Tromey <tom@tromey.com>
7837
7838 * gdb_select.h: Move to ../gdbsupport/.
7839 * event-loop.c: Update include path.
7840 * top.c: Update include path.
7841 * ser-base.c: Update include path.
7842 * ui-file.c: Update include path.
7843 * ser-tcp.c: Update include path.
7844 * guile/scm-ports.c: Update include path.
7845 * posix-hdep.c: Update include path.
7846 * ser-unix.c: Update include path.
7847 * gdb_usleep.c: Update include path.
7848 * mingw-hdep.c: Update include path.
7849 * inflow.c: Update include path.
7850 * infrun.c: Update include path.
7851 * event-top.c: Update include path.
7852
7853 2020-04-13 Tom Tromey <tom@tromey.com>
7854
7855 * configure: Rebuild.
7856 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7857
7858 2020-04-13 Tom Tromey <tom@tromey.com>
7859
7860 * event-loop.h (start_event_loop): Don't declare.
7861 * event-loop.c (start_event_loop): Move...
7862 * main.c (start_event_loop): ...here. Now static.
7863
7864 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7865
7866 * MAINTAINERS: Update my email address.
7867
7868 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7869
7870 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7871 IP_ALL.
7872
7873 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7874
7875 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7876 (nbsd_nat_target::info_proc): Add do_cmdline.
7877
7878 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7879
7880 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7881 (nbsd_nat_target::info_proc): Add do_cwd.
7882
7883 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7884
7885 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7886
7887 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7888
7889 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7890 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7891 (nbsd_nat_target::info_proc): New functions.
7892 * nbsd-nat.c (kinfo_get_vmmap): New function.
7893 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7894 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7895 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7896 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7897 functions.
7898 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7899 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7900 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7901 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7902 (KINFO_VME_FLAG_GROWS_DOWN): New.
7903
7904 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7905
7906 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7907 bit shift.
7908
7909 2020-04-10 Tom Tromey <tromey@adacore.com>
7910
7911 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7912
7913 2020-04-10 Tom Tromey <tromey@adacore.com>
7914
7915 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7916 separate debug files.
7917
7918 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7919
7920 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7921 Move to...
7922 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7923 ... here.
7924 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7925 Check for STATUS_WX86_BREAKPOINT.
7926 (windows_nat_target::wait): Same.
7927
7928 2020-04-10 Tom de Vries <tdevries@suse.de>
7929
7930 PR cli/25808
7931 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7932
7933 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7934
7935 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7936 (Write After Approval): Remove Tom de Vries.
7937
7938 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7939
7940 revert partially:
7941 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7942
7943 * buildsym.c (record_line): Fix undefined behavior and preserve
7944 lines at eof.
7945
7946 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7947
7948 * auxv.h (svr4_auxv_parse): New.
7949 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7950 and generic_auxv_parse.
7951 (svr4_auxv_parse): Add.
7952 * obsd-tdep.c: Include "auxv.h".
7953 (obsd_auxv_parse): Remove.
7954 (obsd_init_abi): Remove comment.
7955 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7956 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7957 * nbsd-tdep.c: Include "auxv.h".
7958 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7959
7960 2020-04-08 Tom Tromey <tromey@adacore.com>
7961
7962 * nat/windows-nat.h (last_wait_event): Don't declare.
7963 (wait_for_debug_event): Update comment.
7964 * nat/windows-nat.c (last_wait_event): Now static.
7965
7966 2020-04-08 Tom Tromey <tromey@adacore.com>
7967
7968 * windows-nat.c (wait_for_debug_event): Move to
7969 nat/windows-nat.c.
7970 * nat/windows-nat.h (wait_for_debug_event): Declare.
7971 * nat/windows-nat.c (wait_for_debug_event): Move from
7972 windows-nat.c. No longer static.
7973
7974 2020-04-08 Tom Tromey <tromey@adacore.com>
7975
7976 * windows-nat.c (get_windows_debug_event): Use
7977 fetch_pending_stop.
7978 * nat/windows-nat.h (fetch_pending_stop): Declare.
7979 * nat/windows-nat.c (fetch_pending_stop): New function.
7980
7981 2020-04-08 Tom Tromey <tromey@adacore.com>
7982
7983 * windows-nat.c (windows_continue): Use matching_pending_stop and
7984 continue_last_debug_event.
7985 * nat/windows-nat.h (matching_pending_stop)
7986 (continue_last_debug_event): Declare.
7987 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7988 (matching_pending_stop, continue_last_debug_event): New
7989 functions.
7990
7991 2020-04-08 Tom Tromey <tromey@adacore.com>
7992
7993 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7994 (handle_exception_result): Move to nat/windows-nat.h.
7995 (DEBUG_EXCEPTION_SIMPLE): Remove.
7996 (windows_nat::handle_ms_vc_exception): New function.
7997 (handle_exception): Move to nat/windows-nat.c.
7998 (get_windows_debug_event): Update.
7999 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8000 nat/windows-nat.c.
8001 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8002 (handle_exception_result): Move from windows-nat.c.
8003 (handle_exception): Declare.
8004 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8005 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8006 windows-nat.c.
8007
8008 2020-04-08 Tom Tromey <tromey@adacore.com>
8009
8010 * windows-nat.c (exception_count, event_count): Remove.
8011 (handle_exception, get_windows_debug_event)
8012 (do_initial_windows_stuff): Update.
8013
8014 2020-04-08 Tom Tromey <tromey@adacore.com>
8015
8016 * windows-nat.c (windows_nat::handle_load_dll)
8017 (windows_nat::handle_unload_dll): Rename. No longer static.
8018 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8019 Declare.
8020
8021 2020-04-08 Tom Tromey <tromey@adacore.com>
8022
8023 * complaints.h (stop_whining): Declare at top-level.
8024 (complaint): Don't declare stop_whining.
8025
8026 2020-04-08 Tom Tromey <tromey@adacore.com>
8027
8028 * windows-nat.c (windows_nat::handle_output_debug_string):
8029 Rename. No longer static.
8030 * nat/windows-nat.h (handle_output_debug_string): Declare.
8031
8032 2020-04-08 Tom Tromey <tromey@adacore.com>
8033
8034 * windows-nat.c (current_process_handle, current_process_id)
8035 (main_thread_id, last_sig, current_event, last_wait_event)
8036 (current_windows_thread, desired_stop_thread_id, pending_stops)
8037 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8038 (display_selectors, fake_create_process)
8039 (get_windows_debug_event): Update.
8040 * nat/windows-nat.h (current_process_handle, current_process_id)
8041 (main_thread_id, last_sig, current_event, last_wait_event)
8042 (current_windows_thread, desired_stop_thread_id, pending_stops)
8043 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8044 * nat/windows-nat.c (current_process_handle, current_process_id)
8045 (main_thread_id, last_sig, current_event, last_wait_event)
8046 (current_windows_thread, desired_stop_thread_id, pending_stops)
8047 (siginfo_er): New globals. Move from windows-nat.c.
8048
8049 2020-04-08 Tom Tromey <tromey@adacore.com>
8050
8051 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8052 (handle_load_dll): Update.
8053 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8054
8055 2020-04-08 Tom Tromey <tromey@adacore.com>
8056
8057 * windows-nat.c (enum thread_disposition_type): Move to
8058 nat/windows-nat.h.
8059 (windows_nat::thread_rec): Rename from thread_rec. No longer
8060 static.
8061 (windows_add_thread, windows_nat_target::fetch_registers)
8062 (windows_nat_target::store_registers, handle_exception)
8063 (windows_nat_target::resume, get_windows_debug_event)
8064 (windows_nat_target::get_tib_address)
8065 (windows_nat_target::thread_name)
8066 (windows_nat_target::thread_alive): Update.
8067 * nat/windows-nat.h (enum thread_disposition_type): Move from
8068 windows-nat.c.
8069 (thread_rec): Declare.
8070
8071 2020-04-08 Tom Tromey <tromey@adacore.com>
8072
8073 * windows-nat.c: Add "using namespace".
8074 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8075 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8076
8077 2020-04-08 Tom Tromey <tromey@adacore.com>
8078
8079 * nat/windows-nat.h (struct windows_thread_info): Declare
8080 destructor.
8081 * nat/windows-nat.c (~windows_thread_info): New.
8082
8083 2020-04-08 Tom Tromey <tromey@adacore.com>
8084
8085 PR gdb/22992
8086 * windows-nat.c (current_event): Update comment.
8087 (last_wait_event, desired_stop_thread_id): New globals.
8088 (struct pending_stop): New.
8089 (pending_stops): New global.
8090 (windows_nat_target) <stopped_by_sw_breakpoint>
8091 <supports_stopped_by_sw_breakpoint>: New methods.
8092 (windows_fetch_one_register): Add assertions. Adjust PC.
8093 (windows_continue): Handle pending stops. Suspend other threads
8094 when stepping. Use last_wait_event
8095 (wait_for_debug_event): New function.
8096 (get_windows_debug_event): Use wait_for_debug_event. Handle
8097 pending stops. Queue spurious stops.
8098 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8099 (windows_nat_target::kill): Use wait_for_debug_event.
8100 * nat/windows-nat.h (struct windows_thread_info)
8101 <stopped_at_software_breakpoint>: New field.
8102 * nat/windows-nat.c (windows_thread_info::resume): Clear
8103 stopped_at_software_breakpoint.
8104
8105 2020-04-08 Tom Tromey <tromey@adacore.com>
8106
8107 * windows-nat.c (enum thread_disposition_type): New.
8108 (thread_rec): Replace "get_context" parameter with "disposition";
8109 change type.
8110 (windows_add_thread, windows_nat_target::fetch_registers)
8111 (windows_nat_target::store_registers, handle_exception)
8112 (windows_nat_target::resume, get_windows_debug_event)
8113 (windows_nat_target::get_tib_address)
8114 (windows_nat_target::thread_name)
8115 (windows_nat_target::thread_alive): Update.
8116
8117 2020-04-08 Tom Tromey <tromey@adacore.com>
8118
8119 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8120 (windows_continue): Use windows_continue::resume.
8121 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8122 resume>: Declare new methods.
8123 * nat/windows-nat.c: New file.
8124 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8125
8126 2020-04-08 Tom Tromey <tromey@adacore.com>
8127
8128 * windows-nat.c (windows_add_thread, windows_delete_thread)
8129 (windows_nat_target::fetch_registers)
8130 (windows_nat_target::store_registers, fake_create_process)
8131 (windows_nat_target::resume, windows_nat_target::resume)
8132 (get_windows_debug_event, windows_nat_target::wait)
8133 (windows_nat_target::pid_to_str)
8134 (windows_nat_target::get_tib_address)
8135 (windows_nat_target::get_ada_task_ptid)
8136 (windows_nat_target::thread_name)
8137 (windows_nat_target::thread_alive): Use lwp, not tid.
8138
8139 2020-04-08 Tom Tromey <tromey@adacore.com>
8140
8141 * windows-nat.c (handle_exception)
8142 (windows_nat_target::thread_name): Update.
8143 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8144 <name>: Now unique_xmalloc_ptr.
8145
8146 2020-04-08 Tom Tromey <tromey@adacore.com>
8147
8148 * windows-nat.c (thread_rec)
8149 (windows_nat_target::fetch_registers): Update.
8150 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8151 Update comment.
8152 <debug_registers_changed, reload_context>: Now bool.
8153
8154 2020-04-08 Tom Tromey <tromey@adacore.com>
8155
8156 * windows-nat.c (windows_add_thread): Use new.
8157 (windows_init_thread_list, windows_delete_thread): Use delete.
8158 (get_windows_debug_event): Update.
8159 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8160 destructor, and initializers.
8161
8162 2020-04-08 Tom Tromey <tromey@adacore.com>
8163
8164 * windows-nat.c (struct windows_thread_info): Remove.
8165 * nat/windows-nat.h: New file.
8166
8167 2020-04-08 Tom Tromey <tromey@adacore.com>
8168
8169 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8170 (thread_rec, windows_add_thread, windows_delete_thread)
8171 (windows_continue): Update.
8172
8173 2020-04-08 Tom Tromey <tromey@adacore.com>
8174
8175 * windows-nat.c (struct windows_thread_info): Remove typedef.
8176 (thread_head): Remove.
8177 (thread_list): New global.
8178 (thread_rec, windows_add_thread, windows_init_thread_list)
8179 (windows_delete_thread, windows_continue): Update.
8180
8181 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8182
8183 * windows-tdep.h (windows_init_abi): Add comment.
8184 (cygwin_init_abi): New declaration.
8185 * windows-tdep.c: Split signal enumeration in two, one for
8186 Windows and one for Cygwin.
8187 (windows_gdb_signal_to_target): Only deal with signal of the
8188 Windows OS ABI.
8189 (cygwin_gdb_signal_to_target): New function.
8190 (windows_init_abi): Rename to windows_init_abi_common, don't set
8191 gdb_signal_to_target gdbarch method. Add new new function with
8192 this name.
8193 (cygwin_init_abi): New function.
8194 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8195 comment. Don't call windows_init_abi.
8196 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8197 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8198 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8199 i386_windows_init_abi_common, don't call windows_init_abi. Add
8200 a new function of this name.
8201 (i386_cygwin_init_abi): New function.
8202 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8203 OS ABI Cygwin.
8204
8205 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8206
8207 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8208 parameter.c.
8209 (dwarf2_read_gdb_index): Update.
8210
8211 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8212
8213 * nbsd-tdep.c: Include "objfiles.h".
8214 (nbsd_skip_solib_resolver): New.
8215 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8216
8217 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8218
8219 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8220 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8221 with DW_LLE_base_addressx are being emitted in DWARFv5.
8222 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8223 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8224 unsigned integer.
8225
8226 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8227
8228 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8229 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8230 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8231 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8232 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8233 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8234 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8235
8236
8237 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8238
8239 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8240 (read_loclist_index): New function definition.
8241 (lookup_loclist_base): New function definition.
8242 (read_loclist_header): New function definition.
8243 (dwarf2_cu): Add loclist_base and loclist_header field.
8244 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8245 (read_full_die_1): Read the value of DW_AT_loclists_base.
8246 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8247 (read_attribute_value): Handle DW_FORM_loclistx.
8248 (skip_one_die): Handle DW_FORM_loclistx.
8249 (loclist_header): New structure declaration.
8250 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8251
8252 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8253
8254 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8255 constructor. Remove `addr` parameter from other constructor and
8256 add `per_cu` parameter.
8257 * dwarf2/read.c (create_partial_symtab): Update.
8258
8259 2020-04-07 Tom de Vries <tdevries@suse.de>
8260
8261 PR symtab/25796
8262 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8263 (partial_die_info::fixup): Inherit has_const_value.
8264
8265 2020-04-07 Tom de Vries <tdevries@suse.de>
8266
8267 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8268 symbols without address.
8269
8270 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8271
8272 * nbsd-nat.h (struct thread_info): Add forward declaration.
8273 (nbsd_nat_target::thread_alive): Add.
8274 (nbsd_nat_target::thread_name): Likewise.
8275 (nbsd_nat_target::update_thread_list): Likewise.
8276 (update_thread_list::post_attach): Likewise.
8277 (post_attach::pid_to_str): Likewise.
8278 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8279 (nbsd_thread_lister): Add.
8280 (nbsd_nat_target::thread_alive): Likewise.
8281 (nbsd_nat_target::thread_name): Likewise.
8282 (nbsd_add_threads): Likewise.
8283 (update_thread_list::post_attach): Likewise.
8284 (nbsd_nat_target::update_thread_list): Likewise.
8285 (post_attach::pid_to_str): Likewise.
8286
8287 2020-04-06 Tom Tromey <tromey@adacore.com>
8288
8289 * ada-valprint.c (print_variant_part): Extract the variant field.
8290 (print_field_values): Use the field as the outer value when
8291 recursing.
8292
8293 2020-04-06 Tom Tromey <tromey@adacore.com>
8294
8295 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8296 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8297 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8298 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8299 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8300
8301 2020-04-06 Tom Tromey <tromey@adacore.com>
8302
8303 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8304 TYPE_CODE_ERROR.
8305
8306 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8307
8308 * nbsd-tdep.c: Include "gdbarch.h".
8309 Define enum with NetBSD signal numbers.
8310 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8311 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8312 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8313 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8314 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8315 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8316 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8317 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8318 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8319 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8320 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8321 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8322
8323 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8324
8325 PR gdb/25325
8326 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8327
8328 2020-04-03 Tom Tromey <tromey@adacore.com>
8329
8330 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8331 Read constant block.
8332
8333 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8334
8335 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8336 (gdb_bfd_get_full_section_contents): New declaration.
8337 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8338 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8339 gdb_bfd_get_full_section_contents.
8340
8341 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8342
8343 * exec.c (build_section_table): Replace internal_error with
8344 gdb_assert.
8345 (section_table_xfer_memory_partial): Likewise.
8346 * mdebugread.c (parse_partial_symbols): Likewise.
8347 * psymtab.c (lookup_partial_symbol): Likewise.
8348 * utils.c (wrap_here): Likewise.
8349
8350 2020-04-02 Tom Tromey <tromey@adacore.com>
8351
8352 * f-lang.c (build_fortran_types): Use arch_type to initialize
8353 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8354
8355 2020-04-02 Tom Tromey <tromey@adacore.com>
8356
8357 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8358 of attributes.
8359
8360 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8361 Bernd Edlinger <bernd.edlinger@hotmail.de>
8362 Tom Tromey <tromey@adacore.com>
8363
8364 * buildsym.c (buildsym_compunit::record_line): Remove
8365 deduplication code.
8366
8367 2020-04-02 Tom de Vries <tdevries@suse.de>
8368
8369 PR ada/24671
8370 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8371
8372 2020-04-02 Tom de Vries <tdevries@suse.de>
8373
8374 * dwarf2/read.c (dwarf2_gdb_index_functions,
8375 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8376 NULL.
8377 * psymtab.c (psym_lookup_global_symbol_language): New function.
8378 (psym_functions): Init psym_lookup_global_symbol_language with
8379 psym_lookup_global_symbol_language.
8380 * symfile-debug.c (debug_sym_quick_functions): Init
8381 lookup_global_symbol_language with NULL.
8382 * symfile.c (set_initial_language): Remove fixme comment.
8383 * symfile.h (struct quick_symbol_functions): Add
8384 lookup_global_symbol_language.
8385 * symtab.c (find_quick_global_symbol_language): New function.
8386 (find_main_name): Use find_quick_global_symbol_language.
8387
8388 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8389
8390 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8391
8392 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8393
8394 * buildsym.c (record_line): Fix undefined behavior and preserve
8395 lines at eof.
8396
8397 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8398
8399 * buildsym.c (record_line): Fix the resizing condition.
8400
8401 2020-04-01 Tom Tromey <tom@tromey.com>
8402
8403 * value.h (value_literal_complex): Add comment.
8404 * valops.c (value_literal_complex): Refer to value.h.
8405
8406 2020-04-01 Tom Tromey <tom@tromey.com>
8407
8408 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8409 (scalar_type): New rule, from typebase.
8410 (typebase): Use scalar_type. Recognize complex types.
8411 (field_name): Handle FLOAT_KEYWORD.
8412 (ident_tokens): Add _Complex and __complex__.
8413
8414 2020-04-01 Tom Tromey <tom@tromey.com>
8415
8416 PR exp/25299:
8417 * valarith.c (promotion_type, complex_binop): New functions.
8418 (scalar_binop): Handle complex numbers. Use promotion_type.
8419 (value_pos, value_neg, value_complement): Handle complex numbers.
8420
8421 2020-04-01 Tom Tromey <tom@tromey.com>
8422
8423 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8424 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8425 (parse_number): Handle complex numbers.
8426
8427 2020-04-01 Tom Tromey <tom@tromey.com>
8428
8429 * c-valprint.c (c_decorations): Change complex suffix to "i".
8430
8431 2020-04-01 Tom Tromey <tom@tromey.com>
8432
8433 * valprint.c (generic_value_print_complex): Use accessors.
8434 * value.h (value_real_part, value_imaginary_part): Declare.
8435 * valops.c (value_real_part, value_imaginary_part): New
8436 functions.
8437 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8438
8439 2020-04-01 Tom Tromey <tom@tromey.com>
8440
8441 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8442 (read_range_type): Update.
8443 * mdebugread.c (basic_type): Update.
8444 * go-lang.c (build_go_types): Use init_complex_type.
8445 * gdbtypes.h (struct main_type) <complex_type>: New member.
8446 (init_complex_type): Update.
8447 (arch_complex_type): Don't declare.
8448 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8449 Make name if none given. Use alloc_type_copy. Look for cached
8450 complex type.
8451 (arch_complex_type): Remove.
8452 (gdbtypes_post_init): Use init_complex_type.
8453 * f-lang.c (build_fortran_types): Use init_complex_type.
8454 * dwarf2/read.c (read_base_type): Update.
8455 * d-lang.c (build_d_types): Use init_complex_type.
8456 * ctfread.c (read_base_type): Update.
8457
8458 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8459
8460 * infrun.c (stop_all_threads): Update assertion, plus when
8461 stopping threads, take into account that we might be trying
8462 to stop an all-stop target.
8463 (stop_waiting): Call 'stop_all_threads' if there exists a
8464 non-stop target.
8465
8466 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8467
8468 * target.h (exists_non_stop_target): New function declaration.
8469 * target.c (exists_non_stop_target): New function.
8470
8471 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8472
8473 PR gdb/24789
8474 * eval.c (is_integral_or_integral_reference): New function.
8475 (evaluate_subexp_standard): Allow integer references in
8476 pointer arithmetic.
8477
8478 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8479
8480 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8481 check for no ptid in the stop reply when the target is non-stop.
8482
8483 2020-04-01 Tom Tromey <tromey@adacore.com>
8484
8485 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8486 "name" parameter to rvalue reference. Initialize m_name_holder.
8487 <lookup_name_info>: New overloads.
8488 <name>: Return gdb::string_view.
8489 <c_str>: New method.
8490 <make_ignore_params>: Update.
8491 <search_name_hash>: Update.
8492 <language_lookup_name>: Return const char *.
8493 <m_name>: Change type.
8494 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8495 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8496 (lookup_name_info::match_any): Update.
8497 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8498 Update.
8499 * minsyms.c (linkage_name_str): Update.
8500 * language.c (default_symbol_name_matcher): Update.
8501 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8502 Update.
8503 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8504 (ada_lookup_name_info::ada_lookup_name_info): Update.
8505 (literal_symbol_name_matcher): Update.
8506
8507 2020-04-01 Tom Tromey <tromey@adacore.com>
8508
8509 * psymtab.c (psymtab_search_name): Remove function.
8510 (psym_lookup_symbol): Create search name and lookup name here.
8511 (lookup_partial_symbol): Remove "name" parameter; add
8512 lookup_name.
8513 (psym_expand_symtabs_for_function): Update.
8514
8515 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8516
8517 PR tui/25597:
8518 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8519
8520 2020-03-31 Tom Tromey <tromey@adacore.com>
8521
8522 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8523 memcpy.
8524
8525 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8526
8527 * features/riscv/32bit-csr.xml: Regenerated.
8528 * features/riscv/64bit-csr.xml: Regenerated.
8529
8530 2020-03-30 Tom Tromey <tromey@adacore.com>
8531
8532 * ada-valprint.c (print_variant_part): Update.
8533 * ada-lang.h (ada_which_variant_applies): Update.
8534 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8535 outer_valaddr parameters; replace with "outer" value parameter.
8536 (to_fixed_variant_branch_type): Update.
8537
8538 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8539
8540 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8541 <list>. Remove inclusion of observable.h.
8542 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8543 (struct arch_lwp_info): New struct.
8544 (class ppc_linux_dreg_interface): New class.
8545 (struct ppc_linux_process_info): New struct.
8546 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8547 <low_new_clone, low_forget_process, low_prepare_to_resume>
8548 <copy_thread_dreg_state, mark_thread_stale>
8549 <mark_debug_registers_changed, register_hw_breakpoint>
8550 <clear_hw_breakpoint, register_wp, clear_wp>
8551 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8552 <num_memory_accesses, get_trigger_type>
8553 <create_watchpoint_request, hwdebug_point_cmp>
8554 <init_arch_lwp_info, get_arch_lwp_info>
8555 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8556 methods.
8557 <struct ptid_hash>: New inner struct.
8558 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8559 members.
8560 (saved_dabr_value, hwdebug_info, max_slots_number)
8561 (struct hw_break_tuple, struct thread_points, ppc_threads)
8562 (have_ptrace_hwdebug_interface)
8563 (hwdebug_find_thread_points_by_tid)
8564 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8565 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8566 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8567 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8568 use m_dreg_interface.
8569 (hwdebug_point_cmp): Change to...
8570 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8571 reference arguments instead of pointers.
8572 (ppc_linux_nat_target::ranged_break_num_registers): Use
8573 m_dreg_interface.
8574 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8575 m_dreg_interface. Call register_hw_breakpoint.
8576 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8577 m_dreg_interface. Call clear_hw_breakpoint.
8578 (get_trigger_type): Change to...
8579 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8580 comment.
8581 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8582 use m_dreg_interface. Call register_hw_breakpoint.
8583 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8584 use m_dreg_interface. Call clear_hw_breakpoint.
8585 (can_use_watchpoint_cond_accel): Change to...
8586 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8587 method. Update comment, use m_dreg_interface and
8588 m_process_info.
8589 (calculate_dvc): Change to...
8590 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8591 m_dreg_interface.
8592 (num_memory_accesses): Change to...
8593 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8594 (check_condition): Change to...
8595 (ppc_linux_nat_target::check_condition): ...this method.
8596 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8597 comment, use m_dreg_interface.
8598 (create_watchpoint_request): Change to...
8599 (ppc_linux_nat_target::create_watchpoint_request): ...this
8600 method. Use m_dreg_interface.
8601 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8602 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8603 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8604 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8605 (ppc_linux_nat_target::low_forget_process)
8606 (ppc_linux_nat_target::low_new_fork)
8607 (ppc_linux_nat_target::low_new_clone)
8608 (ppc_linux_nat_target::low_delete_thread)
8609 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8610 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8611 only call mark_thread_stale.
8612 (ppc_linux_thread_exit): Remove.
8613 (ppc_linux_nat_target::stopped_data_address): Change to...
8614 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8615 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8616 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8617 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8618 comment. Call low_stopped_data_address.
8619 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8620 m_dreg_interface.
8621 (ppc_linux_nat_target::masked_watch_num_registers): Use
8622 m_dreg_interface.
8623 (ppc_linux_nat_target::copy_thread_dreg_state)
8624 (ppc_linux_nat_target::mark_thread_stale)
8625 (ppc_linux_nat_target::mark_debug_registers_changed)
8626 (ppc_linux_nat_target::register_hw_breakpoint)
8627 (ppc_linux_nat_target::clear_hw_breakpoint)
8628 (ppc_linux_nat_target::register_wp)
8629 (ppc_linux_nat_target::clear_wp)
8630 (ppc_linux_nat_target::init_arch_lwp_info)
8631 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8632 (_initialize_ppc_linux_nat): Remove observer callback.
8633
8634 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8635
8636 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8637 (ppc_linux_nat_target::auxv_parse)
8638 (ppc_linux_nat_target::read_description)
8639 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8640 Move up.
8641
8642 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8643
8644 * linux-nat.h (low_new_clone): New method.
8645 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8646
8647 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8648
8649 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8650 (dbx_expand_psymtab): ... this.
8651 (start_psymtab): Update.
8652 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8653 (mdebug_expand_psymtab): ... this.
8654 (parse_partial_symbols): Update.
8655 (new_psymtab): Update.
8656 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8657 (xcoff_expand_psymtab): ... this.
8658 (xcoff_start_psymtab): Update.
8659
8660 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8661
8662 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8663 <expand_dependencies>: ... this.
8664 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8665 (partial_symtab::expand_dependencies): ... this.
8666 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8667 Update.
8668 (dwarf2_psymtab::expand_psymtab): Update.
8669 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8670 * mdebugread.c (psymtab_to_symtab_1): Update.
8671 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8672
8673 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8674
8675 * psympriv.h (discard_psymtab): Remove.
8676 * dbxread.c (dbx_end_psymtab): Update.
8677 * xcoffread.c (xcoff_end_psymtab): Update.
8678
8679 2020-03-28 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8682 comment.
8683
8684 2020-03-28 Tom Tromey <tom@tromey.com>
8685
8686 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8687
8688 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8689
8690 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8691
8692 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8693
8694 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8695
8696 2020-03-26 Tom Tromey <tom@tromey.com>
8697
8698 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8699 (mark_common_block_symbol_computed, read_tag_string_type)
8700 (attr_to_dynamic_prop, read_subrange_type): Update.
8701 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8702 to be methods on struct attribute.
8703 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8704 (read_call_site_scope, partial_die_info::read)
8705 (partial_die_info::read, lookup_die_type, follow_die_ref):
8706 Update.
8707 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8708 from dwarf2_get_ref_die_offset.
8709 (attribute::constant_value): New method, from
8710 dwarf2_get_attr_constant_value.
8711 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8712 Declare method.
8713 <constant_value>: New method.
8714
8715 2020-03-26 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8718 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8719 (dwarf_type_encoding_name): Move to stringify.c.
8720 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8721 * dwarf2/stringify.c: New file.
8722 * dwarf2/stringify.h: New file.
8723
8724 2020-03-26 Tom Tromey <tom@tromey.com>
8725
8726 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8727 Rewrite.
8728
8729 2020-03-26 Tom Tromey <tom@tromey.com>
8730
8731 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8732 methods.
8733 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8734 (lookup_ranges_base): Likewise.
8735 (read_cutu_die_from_dwo, read_full_die_1): Update.
8736
8737 2020-03-26 Tom Tromey <tom@tromey.com>
8738
8739 * dwarf2/read.c (read_import_statement, read_file_scope)
8740 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8741 (read_lexical_block_scope, read_call_site_scope)
8742 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8743 (handle_struct_member_die, process_structure_scope)
8744 (update_enumeration_type_from_children)
8745 (process_enumeration_scope, read_array_type, read_common_block)
8746 (read_namespace, read_module, read_subroutine_type): Update.
8747 (sibling_die): Remove.
8748
8749 2020-03-26 Tom Tromey <tom@tromey.com>
8750
8751 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8752 (build_type_psymtabs_reader, read_structure_type)
8753 (read_enumeration_type, read_full_die_1): Update.
8754 (dwarf2_attr_no_follow): Move to die.h.
8755 * dwarf2/die.h (struct die_info) <attr>: New method.
8756
8757 2020-03-26 Tom Tromey <tom@tromey.com>
8758
8759 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8760 <base_address>: Now an optional.
8761 (dwarf2_find_base_address, dwarf2_rnglists_process)
8762 (dwarf2_ranges_process, fill_in_loclist_baton)
8763 (dwarf2_symbol_mark_computed): Update.
8764
8765 2020-03-26 Tom Tromey <tom@tromey.com>
8766
8767 * dwarf2/read.c (struct die_info): Move to die.h.
8768 * dwarf2/die.h: New file.
8769
8770 2020-03-26 Tom Tromey <tom@tromey.com>
8771
8772 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8773 * dwarf2/read.c
8774 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8775 Move to line-header.c.
8776 (read_checked_initial_length_and_offset, read_formatted_entries):
8777 Likewise.
8778 (dwarf_decode_line_header): Split into two.
8779 * dwarf2/line-header.c
8780 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8781 Move from read.c.
8782 (read_checked_initial_length_and_offset, read_formatted_entries):
8783 Likewise.
8784 (dwarf_decode_line_header): New function, split from read.c.
8785
8786 2020-03-26 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8789 Declare method.
8790 * dwarf2/read.c (read_attribute_value): Update.
8791 (dwarf2_per_objfile::read_line_string): Rename from
8792 read_indirect_line_string.
8793 (read_formatted_entries): Update.
8794
8795 2020-03-26 Tom Tromey <tom@tromey.com>
8796
8797 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8798 variable.
8799
8800 2020-03-26 Tom Tromey <tom@tromey.com>
8801
8802 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8803 const.
8804 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8805 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8806 parameter const.
8807
8808 2020-03-26 Tom Tromey <tom@tromey.com>
8809
8810 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8811 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8812 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8813 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8814
8815 2020-03-26 Tom Tromey <tom@tromey.com>
8816
8817 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8818 file_names_size, file_full_name, file_file_name>: Use const.
8819 <file_name_at, file_names>: Add const overload.
8820 * dwarf2/line-header.c (line_header::file_file_name)
8821 (line_header::file_full_name): Update.
8822
8823 2020-03-26 Tom Tromey <tom@tromey.com>
8824
8825 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8826 (macro_start_file, consume_improper_spaces)
8827 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8828 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8829 (dwarf_decode_macros): Move to macro.c.
8830 * dwarf2/macro.c: New file.
8831 * dwarf2/macro.h: New file.
8832 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8833
8834 2020-03-26 Tom Tromey <tom@tromey.com>
8835
8836 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8837 method.
8838 * dwarf2/section.c: New method. From
8839 read_indirect_string_at_offset_from.
8840 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8841 (read_indirect_string_at_offset_from): Move to section.c.
8842 (read_indirect_string_at_offset): Rewrite.
8843 (read_indirect_line_string_at_offset): Remove.
8844 (read_indirect_string, read_indirect_line_string)
8845 (dwarf_decode_macro_bytes): Update.
8846
8847 2020-03-26 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/section.h (struct dwarf2_section_info)
8850 <overload_complaint>: Declare.
8851 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8852 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8853 Rename from dwarf2_section_buffer_overflow_complaint.
8854 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8855 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8856
8857 2020-03-26 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8860 Declare.
8861 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8862 Move from read.c.
8863 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8864 to section.c.
8865
8866 2020-03-26 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8869
8870 2020-03-26 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8873 "builder".
8874 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8875 parameter.
8876 (dwarf_decode_macros): Update.
8877
8878 2020-03-26 Tom Tromey <tom@tromey.com>
8879
8880 * dwarf2/read.c (read_attribute_value): Update.
8881 (read_indirect_string_from_dwz): Move to dwz.c; change into
8882 method.
8883 (dwarf_decode_macro_bytes): Update.
8884 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8885 * dwarf2/dwz.c: New file.
8886 * Makefile.in (COMMON_SFILES): Add dwz.c.
8887
8888 2020-03-26 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8891 * dwarf2/read.c: Add include.
8892 * dwarf2/index-write.c: Add include.
8893 * dwarf2/index-cache.c: Add include.
8894 * dwarf2/dwz.h: New file.
8895
8896 2020-03-25 Tom Tromey <tom@tromey.com>
8897
8898 * compile/compile-object-load.c (get_out_value_type): Mention
8899 correct symbol name in error message.
8900
8901 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8902
8903 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8904
8905 2020-03-25 Tom de Vries <tdevries@suse.de>
8906
8907 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8908 * symmisc.c (dump_symtab_1): Print user and includes fields.
8909 (maintenance_info_symtabs): Same.
8910
8911 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8912
8913 PR gdb/25534
8914 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8915 (riscv_regcache_cooked_write): New function.
8916 (riscv_push_dummy_call): Use new function.
8917 (riscv_return_value): Likewise.
8918
8919 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8920
8921 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8922 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8923 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8924 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8925 * infrun.c (follow_fork): Likewise.
8926 (follow_fork_inferior): Likewise.
8927 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8928 * linux-nat.h (class linux_nat_target): Likewise.
8929 * remote.c (class remote_target) <follow_fork>: Likewise.
8930 (remote_target::follow_fork): Likewise.
8931 * target-delegates.c: Re-generate.
8932 * target.c (default_follow_fork): Likewise.
8933 (target_follow_fork): Likewise.
8934 * target.h (struct target_ops) <follow_fork>: Likewise.
8935 (target_follow_fork): Likewise.
8936
8937 2020-03-24 Tom de Vries <tdevries@suse.de>
8938
8939 * psymtab.c (maintenance_info_psymtabs): Print user field.
8940
8941 2020-03-20 Tom Tromey <tromey@adacore.com>
8942
8943 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8944 const.
8945 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8946 const.
8947
8948 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * ptrace.m4: Don't check for ptrace declaration.
8951 * config.in: Re-generate.
8952 * configure: Re-generate.
8953 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8954 not defined.
8955
8956 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8957
8958 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8959 `PTRACE_TYPE_RET'.
8960 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8961 * sparc-nat.c (gdb_ptrace): Likewise.
8962 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8963
8964 2020-03-20 Tom Tromey <tromey@adacore.com>
8965
8966 * c-exp.y (lex_one_token): Fix assert.
8967
8968 2020-03-20 Tom Tromey <tromey@adacore.com>
8969
8970 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8971 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8972 strncpy call.
8973
8974 2020-03-20 Tom Tromey <tromey@adacore.com>
8975
8976 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8977
8978 2020-03-20 Tom Tromey <tromey@adacore.com>
8979
8980 * ada-valprint.c (print_variant_part): Remove parameters; switch
8981 to value-based API.
8982 (print_field_values): Likewise.
8983 (ada_val_print_struct_union): Likewise.
8984 (ada_value_print_1): Update.
8985
8986 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8987
8988 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8989 nbsd_nat_target instead of inf_ptrace_target.
8990 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8991 nbsd_nat_target.
8992
8993 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8994
8995 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8996 it to the ptrace call.
8997 * (store_registers): Likewise.
8998
8999 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9000
9001 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9002 it to the ptrace call.
9003 * (store_registers): Likewise.
9004
9005 2020-03-19 Luis Machado <luis.machado@linaro.org>
9006
9007 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9008 valid, fetch vg value from ptrace.
9009
9010 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9011 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9012 * inf-ptrace.c: Likewise.
9013 * (gdb_ptrace): Add.
9014 * (inf_ptrace_target::resume): Update.
9015 * (inf_ptrace_target::xfer_partial): Likewise.
9016 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9017 * (inf_ptrace_peek_poke): Update.
9018
9019 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9020
9021 * x86-bsd-nat.c (gdb_ptrace): New.
9022 * (x86bsd_dr_set): Add new argument `ptid'.
9023 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9024 x86bsd_dr_set_addr): Update.
9025
9026 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9027
9028 * remote.c (remote_target::process_stop_reply): Handle events for
9029 all threads differently.
9030
9031 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9032
9033 * completer.c (completion_tracker::remove_completion): Define new
9034 function.
9035 * completer.h (completion_tracker::remove_completion): Declare new
9036 function.
9037 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9038 when adding a C++ function symbol.
9039
9040 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9041
9042 * completer.c (completion_tracker::completion_hash_entry): Define
9043 new class.
9044 (advance_to_filename_complete_word_point): Call
9045 recompute_lowest_common_denominator.
9046 (completion_tracker::completion_tracker): Call discard_completions
9047 to setup the hash table.
9048 (completion_tracker::discard_completions): Allow for being called
9049 from the constructor, pass new equal function, and element deleter
9050 when constructing the hash table. Initialise new class member
9051 variables.
9052 (completion_tracker::maybe_add_completion): Remove use of
9053 m_entries_vec, and store more information into m_entries_hash.
9054 (completion_tracker::recompute_lcd_visitor): New function, most
9055 content taken from...
9056 (completion_tracker::recompute_lowest_common_denominator):
9057 ...here, this now just visits each item in the hash calling the
9058 above visitor.
9059 (completion_tracker::build_completion_result): Remove use of
9060 m_entries_vec, call recompute_lowest_common_denominator.
9061 * completer.h (completion_tracker::have_completions): Remove use
9062 of m_entries_vec.
9063 (completion_tracker::completion_hash_entry): Declare new class.
9064 (completion_tracker::recompute_lowest_common_denominator): Change
9065 function signature.
9066 (completion_tracker::recompute_lcd_visitor): Declare new function.
9067 (completion_tracker::m_entries_vec): Delete.
9068 (completion_tracker::m_entries_hash): Initialize to NULL.
9069 (completion_tracker::m_lowest_common_denominator_valid): New
9070 member variable.
9071 (completion_tracker::m_lowest_common_denominator_max_length): New
9072 member variable.
9073
9074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9075
9076 * regformats/regdef.h: Put reg in gdb namespace.
9077
9078 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9079
9080 * i386-bsd-nat.c (gdb_ptrace): New.
9081 * (i386bsd_fetch_inferior_registers,
9082 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9083 * (i386bsd_fetch_inferior_registers,
9084 i386bsd_store_inferior_registers) Use gdb_ptrace.
9085
9086 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9087
9088 * amd64-bsd-nat.c (gdb_ptrace): New.
9089 * (amd64bsd_fetch_inferior_registers,
9090 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9091 * (amd64bsd_fetch_inferior_registers,
9092 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9093
9094 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9095
9096 * user-regs.c (user_reg::read): Rename to...
9097 (user_reg::xread): ...this.
9098 * (append_user_reg): Rename argument `read' to `xread'.
9099 * (user_reg_add_builtin): Likewise.
9100 * (user_reg_add): Likewise.
9101 * (value_of_user_reg): Likewise.
9102
9103 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9104
9105 * sparc-nat.c (gdb_ptrace): New.
9106 * sparc-nat.c (sparc_fetch_inferior_registers)
9107 (sparc_store_inferior_registers) Remove obsolete comment.
9108 * sparc-nat.c (sparc_fetch_inferior_registers)
9109 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9110 * sparc-nat.c (sparc_fetch_inferior_registers)
9111 (sparc_store_inferior_registers) Use gdb_ptrace.
9112
9113 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9114
9115 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9116 it to the ptrace call.
9117 * sh-nbsd-nat.c (store_registers): Likewise.
9118
9119 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9120
9121 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9122 nbsd_nat_target instead of inf_ptrace_target.
9123 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9124 nbsd_nat_target.
9125
9126 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9127
9128 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9129
9130 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9131
9132 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9133 <sys/sysctl.h>.
9134 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9135
9136 2020-03-17 Tom de Vries <tdevries@suse.de>
9137
9138 PR gdb/23710
9139 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9140 fields.
9141 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9142 fields.
9143 (process_imported_unit_die): Skip import of c++ CUs.
9144
9145 2020-03-16 Tom Tromey <tom@tromey.com>
9146
9147 * p-valprint.c (pascal_object_print_value): Initialize
9148 base_value.
9149
9150 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9151 Shahab Vahedi <shahab@synopsys.com>
9152
9153 * Makefile.in: Add arch/arc.o
9154 * configure.tgt: Likewise.
9155 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9156 (_initialize_arc_tdep): Don't initialize old target descriptions.
9157 (arc_read_description): New function to cache target descriptions.
9158 * arc-tdep.h (arc_read_description): Add proto type.
9159 * arch/arc.c: New file.
9160 * arch/arc.h: Likewise.
9161 * features/Makefile: Replace old target descriptions with new.
9162 * features/arc-arcompact.c: Remove.
9163 * features/arc-arcompact.xml: Likewise.
9164 * features/arc-v2.c: Likewise
9165 * features/arc-v2.xml: Likewise
9166 * features/arc/aux-arcompact.xml: New file.
9167 * features/arc/aux-v2.xml: Likewise.
9168 * features/arc/core-arcompact.xml: Likewise.
9169 * features/arc/core-v2.xml: Likewise.
9170 * features/arc/aux-arcompact.c: Generate.
9171 * features/arc/aux-v2.c: Likewise.
9172 * features/arc/core-arcompact.c: Likewise.
9173 * features/arc/core-v2.c: Likewise.
9174 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9175
9176 2020-03-16 Tom Tromey <tromey@adacore.com>
9177
9178 PR gdb/25663:
9179 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9180 putting value into bcache.
9181
9182 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9183
9184 PR gdb/21500
9185 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9186 to...
9187 (amd64_windows_init_abi_common): ... this. Don't set size of
9188 long type.
9189 (amd64_windows_init_abi): New function.
9190 (amd64_cygwin_init_abi): New function.
9191 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9192 the Cygwin OS ABI.
9193 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9194 comment.
9195
9196 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9199 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9200 (pe_import_directory_entry): New struct type.
9201 (is_linked_with_cygwin_dll): New function.
9202 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9203 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9204 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9205
9206 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9207
9208 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9209 i386_cygwin_core_osabi_sniffer.
9210
9211 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9212
9213 * i386-cygwin-tdep.c: Rename to...
9214 * i386-windows-tdep.c: ... this.
9215 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9216 i386-windows-tdep.c.
9217 * configure.tgt: Likewise.
9218
9219 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9220
9221 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9222 * osabi.c (gdb_osabi_names): Add "Windows".
9223 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9224 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9225 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9226 i386_cygwin_osabi_sniffer.
9227 (_initialize_i386_cygwin_tdep): Register OS ABI
9228 GDB_OSABI_WINDOWS for i386.
9229 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9230 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9231 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9232 for x86-64.
9233 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9234 when the target matches '*-*-mingw*'.
9235
9236 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9237
9238 * defs.h (enum gdb_osabi): Move to...
9239 * osabi.h (enum gdb_osabi): ... here.
9240 * gdbarch.sh: Include osabi.h in gdbarch.h.
9241 * gdbarch.h: Re-generate.
9242
9243 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9244
9245 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9246 function.
9247 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9248
9249 2020-03-14 Tom Tromey <tom@tromey.com>
9250
9251 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9252 for C++.
9253 (c_type_print_modifier): Likewise. Add "language" parameter.
9254 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9255 (c_type_print_base_1): Update.
9256 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9257 constants.
9258 * type-stack.c (type_stack::insert): Handle tp_atomic and
9259 tp_restrict.
9260 (type_stack::follow_type_instance_flags): Likewise.
9261 (type_stack::follow_types): Likewise. Merge type-following code.
9262 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9263 (space_identifier, cv_with_space_id)
9264 (const_or_volatile_or_space_identifier_noopt)
9265 (const_or_volatile_or_space_identifier): Remove.
9266 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9267 rules.
9268 (ptr_operator, typebase): Update.
9269 (enum token_flag) <FLAG_C>: New constant.
9270 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9271 "_Atomic".
9272 (lex_one_token): Handle FLAG_C.
9273
9274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9275
9276 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9277 it to the ptrace call.
9278 * m68k-bsd-nat.c (store_registers): Likewise.
9279
9280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9281
9282 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9283 gdb_byte *.
9284 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9285 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9286 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9287
9288 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9289
9290 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9291 nbsd_nat_target instead of inf_ptrace_target.
9292 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9293 nbsd_nat_target.
9294
9295 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9296
9297 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9298 register_t.
9299
9300 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9301
9302 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9303 it to the ptrace call.
9304 * alpha-bsd-nat.c (store_registers): Likewise.
9305
9306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9307
9308 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9309 includes.
9310 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9311 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9312 fill_fpregset): Likewise.
9313
9314 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9315
9316 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9317 nbsd_nat_target instead of inf_ptrace_target.
9318 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9319 nbsd_nat_target.
9320
9321 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9322
9323 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9324 register_t.
9325
9326 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9327
9328 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9329 it to the ptrace call.
9330 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9331 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9332 * arm-nbsd-nat.c (store_register): Likewise.
9333 * arm-nbsd-nat.c (store_regs): Likewise.
9334 * arm-nbsd-nat.c (store_fp_register): Likewise.
9335 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9336
9337 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9338
9339 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9340 nbsd_nat_target instead of inf_ptrace_target.
9341 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9342 nbsd_nat_target.
9343
9344 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9345
9346 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9347 it to the ptrace call.
9348 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9349
9350 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9351
9352 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9353 it to the ptrace call.
9354 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9355
9356 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9357
9358 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9359 gdb_byte *.
9360 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9361
9362 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9363
9364 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9365 instead of inf_ptrace_target.
9366 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9367 nbsd_nat_target.
9368
9369 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9370
9371 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9372 register_t.
9373
9374 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9375
9376 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9377 register_t.
9378
9379 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9380
9381 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9382 register_t.
9383
9384 2020-03-13 Tom Tromey <tom@tromey.com>
9385
9386 * value.h (val_print): Don't declare.
9387 * valprint.h (val_print_array_elements)
9388 (val_print_scalar_formatted, generic_val_print): Don't declare.
9389 * valprint.c (generic_val_print_array): Take a struct value.
9390 (generic_val_print_ptr, generic_val_print_memberptr)
9391 (generic_val_print_bool, generic_val_print_int)
9392 (generic_val_print_char, generic_val_print_complex)
9393 (generic_val_print): Remove.
9394 (generic_value_print): Update.
9395 (do_val_print): Remove unused parameters. Don't call
9396 la_val_print.
9397 (val_print): Remove.
9398 (common_val_print): Update. Don't call value_check_printable.
9399 (val_print_scalar_formatted, val_print_array_elements): Remove.
9400 * rust-lang.c (rust_val_print): Remove.
9401 (rust_language_defn): Update.
9402 * p-valprint.c (pascal_val_print): Remove.
9403 (pascal_value_print_inner): Update.
9404 (pascal_object_print_val_fields, pascal_object_print_val):
9405 Remove.
9406 (pascal_object_print_static_field): Update.
9407 * p-lang.h (pascal_val_print): Don't declare.
9408 * p-lang.c (pascal_language_defn): Update.
9409 * opencl-lang.c (opencl_language_defn): Update.
9410 * objc-lang.c (objc_language_defn): Update.
9411 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9412 * m2-lang.h (m2_val_print): Don't declare.
9413 * m2-lang.c (m2_language_defn): Update.
9414 * language.h (struct language_defn) <la_val_print>: Remove.
9415 * language.c (unk_lang_value_print_inner): Rename. Change
9416 argument types.
9417 (unknown_language_defn, auto_language_defn): Update.
9418 * go-valprint.c (go_val_print): Remove.
9419 * go-lang.h (go_val_print): Don't declare.
9420 * go-lang.c (go_language_defn): Update.
9421 * f-valprint.c (f_val_print): Remove.
9422 * f-lang.h (f_value_print): Don't declare.
9423 * f-lang.c (f_language_defn): Update.
9424 * d-valprint.c (d_val_print): Remove.
9425 * d-lang.h (d_value_print): Don't declare.
9426 * d-lang.c (d_language_defn): Update.
9427 * cp-valprint.c (cp_print_value_fields)
9428 (cp_print_value_fields_rtti, cp_print_value): Remove.
9429 (cp_print_static_field): Update.
9430 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9431 (c_val_print_struct, c_val_print_union, c_val_print_int)
9432 (c_val_print_memberptr, c_val_print): Remove.
9433 * c-lang.h (c_val_print_array, cp_print_value_fields)
9434 (cp_print_value_fields_rtti): Don't declare.
9435 * c-lang.c (c_language_defn, cplus_language_defn)
9436 (asm_language_defn, minimal_language_defn): Update.
9437 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9438 (ada_val_print_enum): Take a struct value.
9439 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9440 (ada_val_print): Remove.
9441 (ada_value_print_1): Update.
9442 (printable_val_type): Remove.
9443 * ada-lang.h (ada_val_print): Don't declare.
9444 * ada-lang.c (ada_language_defn): Update.
9445
9446 2020-03-13 Tom Tromey <tom@tromey.com>
9447
9448 * valprint.c (do_val_print): Update.
9449 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9450 a struct value.
9451 (value_to_value_object_no_release): Declare.
9452 * python/py-value.c (value_to_value_object_no_release): New
9453 function.
9454 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9455 struct value.
9456 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9457 function.
9458 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9459 a struct value.
9460 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9461 Declare.
9462 (gdbscm_apply_val_pretty_printer): Take a struct value.
9463 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9464 value.
9465 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9466 value.
9467 * extension-priv.h (struct extension_language_ops)
9468 <apply_val_pretty_printer>: Take a struct value.
9469 * cp-valprint.c (cp_print_value): Create a struct value.
9470 (cp_print_value): Update.
9471
9472 2020-03-13 Tom Tromey <tom@tromey.com>
9473
9474 * ada-valprint.c (print_field_values): Call common_val_print.
9475
9476 2020-03-13 Tom Tromey <tom@tromey.com>
9477
9478 * ada-valprint.c (val_print_packed_array_elements): Remove
9479 bitoffset and val parameters. Call common_val_print.
9480 (ada_val_print_string): Remove offset, address, and original_value
9481 parameters.
9482 (ada_val_print_array): Update.
9483 (ada_value_print_array): New function.
9484 (ada_value_print_1): Call it.
9485
9486 2020-03-13 Tom Tromey <tom@tromey.com>
9487
9488 * ada-valprint.c (ada_value_print): Use common_val_print.
9489
9490 2020-03-13 Tom Tromey <tom@tromey.com>
9491
9492 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9493
9494 2020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * ada-valprint.c (ada_value_print_num): New function.
9497 (ada_value_print_1): Use it.
9498
9499 2020-03-13 Tom Tromey <tom@tromey.com>
9500
9501 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9502
9503 2020-03-13 Tom Tromey <tom@tromey.com>
9504
9505 * ada-valprint.c (ada_value_print_ptr): New function.
9506 (ada_value_print_1): Use it.
9507
9508 2020-03-13 Tom Tromey <tom@tromey.com>
9509
9510 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9511 call common_val_print.
9512 (ada_val_print_1): Update.
9513 (ada_value_print_1): New function.
9514 (ada_value_print_inner): Rewrite.
9515
9516 2020-03-13 Tom Tromey <tom@tromey.com>
9517
9518 * cp-valprint.c (cp_print_value_fields): Update.
9519 (cp_print_value): New function.
9520
9521 2020-03-13 Tom Tromey <tom@tromey.com>
9522
9523 * m2-valprint.c (m2_value_print_inner): Use
9524 cp_print_value_fields.
9525 * cp-valprint.c (cp_print_value_fields): New function.
9526 * c-valprint.c (c_value_print_struct): New function.
9527 (c_value_print_inner): Use c_value_print_struct.
9528 * c-lang.h (cp_print_value_fields): Declare.
9529
9530 2020-03-13 Tom Tromey <tom@tromey.com>
9531
9532 * c-valprint.c (c_value_print_array): New function.
9533 (c_value_print_inner): Use it.
9534
9535 2020-03-13 Tom Tromey <tom@tromey.com>
9536
9537 * c-valprint.c (c_value_print_memberptr): New function.
9538 (c_value_print_inner): Use it.
9539
9540 2020-03-13 Tom Tromey <tom@tromey.com>
9541
9542 * c-valprint.c (c_value_print_int): New function.
9543 (c_value_print_inner): Use it.
9544
9545 2020-03-13 Tom Tromey <tom@tromey.com>
9546
9547 * c-valprint.c (c_value_print_ptr): New function.
9548 (c_value_print_inner): Use it.
9549
9550 2020-03-13 Tom Tromey <tom@tromey.com>
9551
9552 * c-valprint.c (c_value_print_inner): Rewrite.
9553
9554 2020-03-13 Tom Tromey <tom@tromey.com>
9555
9556 * valprint.c (generic_value_print_complex): New function.
9557 (generic_value_print): Use it.
9558
9559 2020-03-13 Tom Tromey <tom@tromey.com>
9560
9561 * valprint.c (generic_val_print_float): Don't call
9562 val_print_scalar_formatted.
9563 (generic_val_print, generic_value_print): Update.
9564
9565 2020-03-13 Tom Tromey <tom@tromey.com>
9566
9567 * valprint.c (generic_value_print_char): New function
9568 (generic_value_print): Use it.
9569
9570 2020-03-13 Tom Tromey <tom@tromey.com>
9571
9572 * valprint.c (generic_value_print_int): New function.
9573 (generic_value_print): Use it.
9574
9575 2020-03-13 Tom Tromey <tom@tromey.com>
9576
9577 * valprint.c (generic_value_print_bool): New function.
9578 (generic_value_print): Use it.
9579
9580 2020-03-13 Tom Tromey <tom@tromey.com>
9581
9582 * valprint.c (generic_val_print_func): Simplify.
9583 (generic_val_print, generic_value_print): Update.
9584
9585 2020-03-13 Tom Tromey <tom@tromey.com>
9586
9587 * valprint.c (generic_val_print_flags): Remove.
9588 (generic_val_print, generic_value_print): Update.
9589 (val_print_type_code_flags): Add original_value parameter.
9590
9591 2020-03-13 Tom Tromey <tom@tromey.com>
9592
9593 * valprint.c (generic_val_print): Update.
9594 (generic_value_print): Update.
9595 * valprint.c (generic_val_print_enum): Don't call
9596 val_print_scalar_formatted.
9597
9598 2020-03-13 Tom Tromey <tom@tromey.com>
9599
9600 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9601 * valprint.c (generic_value_print_ptr): New function.
9602
9603 2020-03-13 Tom Tromey <tom@tromey.com>
9604
9605 * valprint.c (generic_value_print): Rewrite.
9606
9607 2020-03-13 Tom Tromey <tom@tromey.com>
9608
9609 * p-valprint.c (pascal_object_print_value_fields)
9610 (pascal_object_print_value): New functions.
9611
9612 2020-03-13 Tom Tromey <tom@tromey.com>
9613
9614 * p-valprint.c (pascal_value_print_inner): Rewrite.
9615
9616 2020-03-13 Tom Tromey <tom@tromey.com>
9617
9618 * f-valprint.c (f_value_print_innner): Rewrite.
9619
9620 2020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * m2-valprint.c (m2_print_unbounded_array): New overload.
9623 (m2_print_unbounded_array): Update.
9624 (m2_print_array_contents): Take a struct value.
9625 (m2_value_print_inner): Rewrite.
9626
9627 2020-03-13 Tom Tromey <tom@tromey.com>
9628
9629 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9630 (d_value_print_inner): New function.
9631 * d-lang.h (d_value_print_inner): Declare.
9632 * d-lang.c (d_language_defn): Use d_value_print_inner.
9633
9634 2020-03-13 Tom Tromey <tom@tromey.com>
9635
9636 * go-valprint.c (go_value_print_inner): New function.
9637 * go-lang.h (go_value_print_inner): Declare.
9638 * go-lang.c (go_language_defn): Use go_value_print_inner.
9639
9640 2020-03-13 Tom Tromey <tom@tromey.com>
9641
9642 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9643 API.
9644 (rust_val_print): Rewrite.
9645 (rust_value_print_inner): New function, from rust_val_print.
9646 (rust_language_defn): Use rust_value_print_inner.
9647
9648 2020-03-13 Tom Tromey <tom@tromey.com>
9649
9650 * ada-valprint.c (ada_value_print_inner): New function.
9651 * ada-lang.h (ada_value_print_inner): Declare.
9652 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9653
9654 2020-03-13 Tom Tromey <tom@tromey.com>
9655
9656 * f-valprint.c (f_value_print_innner): New function.
9657 * f-lang.h (f_value_print_innner): Declare.
9658 * f-lang.c (f_language_defn): Use f_value_print_innner.
9659
9660 2020-03-13 Tom Tromey <tom@tromey.com>
9661
9662 * p-valprint.c (pascal_value_print_inner): New function.
9663 * p-lang.h (pascal_value_print_inner): Declare.
9664 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9665
9666 2020-03-13 Tom Tromey <tom@tromey.com>
9667
9668 * m2-valprint.c (m2_value_print_inner): New function.
9669 * m2-lang.h (m2_value_print_inner): Declare.
9670 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9671
9672 2020-03-13 Tom Tromey <tom@tromey.com>
9673
9674 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9675 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9676 * c-valprint.c (c_value_print_inner): New function.
9677 * c-lang.h (c_value_print_inner): Declare.
9678 * c-lang.c (c_language_defn, cplus_language_defn)
9679 (asm_language_defn, minimal_language_defn): Use
9680 c_value_print_inner.
9681
9682 2020-03-13 Tom Tromey <tom@tromey.com>
9683
9684 * p-valprint.c (pascal_object_print_value_fields): Now static.
9685 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9686
9687 2020-03-13 Tom Tromey <tom@tromey.com>
9688
9689 * c-valprint.c (c_val_print_array): Simplify.
9690
9691 2020-03-13 Tom Tromey <tom@tromey.com>
9692
9693 * valprint.c (value_print_array_elements): New function.
9694 * valprint.h (value_print_array_elements): Declare.
9695
9696 2020-03-13 Tom Tromey <tom@tromey.com>
9697
9698 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9699 * mips-tdep.c (mips_print_register): Use
9700 value_print_scalar_formatted.
9701
9702 2020-03-13 Tom Tromey <tom@tromey.com>
9703
9704 * valprint.h (value_print_scalar_formatted): Declare.
9705 * valprint.c (value_print_scalar_formatted): New function.
9706
9707 2020-03-13 Tom Tromey <tom@tromey.com>
9708
9709 * valprint.h (generic_value_print): Declare.
9710 * valprint.c (generic_value_print): New function.
9711
9712 2020-03-13 Tom Tromey <tom@tromey.com>
9713
9714 * valprint.c (do_val_print): Call la_value_print_inner, if
9715 available.
9716 * rust-lang.c (rust_language_defn): Update.
9717 * p-lang.c (pascal_language_defn): Update.
9718 * opencl-lang.c (opencl_language_defn): Update.
9719 * objc-lang.c (objc_language_defn): Update.
9720 * m2-lang.c (m2_language_defn): Update.
9721 * language.h (struct language_defn) <la_value_print_inner>: New
9722 member.
9723 * language.c (unknown_language_defn, auto_language_defn): Update.
9724 * go-lang.c (go_language_defn): Update.
9725 * f-lang.c (f_language_defn): Update.
9726 * d-lang.c (d_language_defn): Update.
9727 * c-lang.c (c_language_defn, cplus_language_defn)
9728 (asm_language_defn, minimal_language_defn): Update.
9729 * ada-lang.c (ada_language_defn): Update.
9730
9731 2020-03-13 Tom Tromey <tom@tromey.com>
9732
9733 * c-valprint.c (c_value_print): Use common_val_print.
9734
9735 2020-03-13 Tom Tromey <tom@tromey.com>
9736
9737 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9738
9739 2020-03-13 Tom Tromey <tom@tromey.com>
9740
9741 * f-valprint.c (f77_print_array_1, f_val_print): Use
9742 common_val_print.
9743
9744 2020-03-13 Tom Tromey <tom@tromey.com>
9745
9746 * riscv-tdep.c (riscv_print_one_register_info): Use
9747 common_val_print.
9748
9749 2020-03-13 Tom Tromey <tom@tromey.com>
9750
9751 * mi/mi-main.c (output_register): Use common_val_print.
9752
9753 2020-03-13 Tom Tromey <tom@tromey.com>
9754
9755 * infcmd.c (default_print_one_register_info): Use
9756 common_val_print.
9757
9758 2020-03-13 Tom Tromey <tom@tromey.com>
9759
9760 * valprint.h (common_val_print_checked): Declare.
9761 * valprint.c (common_val_print_checked): New function.
9762 * stack.c (print_frame_arg): Use common_val_print_checked.
9763
9764 2020-03-13 Tom Tromey <tom@tromey.com>
9765
9766 * valprint.c (do_val_print): New function, from val_print.
9767 (val_print): Use do_val_print.
9768 (common_val_print): Use do_val_print.
9769
9770 2020-03-13 Tom Tromey <tom@tromey.com>
9771
9772 * valprint.c (value_print): Use scoped_value_mark.
9773
9774 2020-03-13 Tom de Vries <tdevries@suse.de>
9775
9776 PR symtab/25646
9777 * psymtab.c (partial_symtab::partial_symtab): Don't set
9778 globals_offset and statics_offset. Push element onto
9779 current_global_psymbols and current_static_psymbols stacks.
9780 (concat): New function.
9781 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9782 element from current_global_psymbols and current_static_psymbols
9783 stacks. Concat popped elements to global_psymbols and
9784 static_symbols.
9785 (add_psymbol_to_list): Use current_global_psymbols and
9786 current_static_psymbols stacks.
9787 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9788 current_static_psymbols fields.
9789
9790 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9791
9792 * corelow.c (sniff_core_bfd): Remove.
9793 (class core_target) <m_core_vec>: Remove.
9794 (core_target::core_target): Update.
9795 (core_file_fns): Remove.
9796 (deprecated_add_core_fns): Remove.
9797 (default_core_sniffer): Remove.
9798 (sniff_core_bfd): Remove.
9799 (default_check_format): Remove.
9800 (gdb_check_format): Remove.
9801 (core_target_open): Update.
9802 (core_target::get_core_register_section): Update.
9803 (get_core_registers_cb): Update.
9804 (core_target::fetch_registers): Update.
9805 * gdbcore.h (struct core_fns): Remove.
9806 (deprecated_add_core_fns): Remove.
9807 (default_core_sniffer): Remove.
9808 (default_check_format): Remove.
9809
9810 2020-03-12 Tom Tromey <tom@tromey.com>
9811
9812 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9813 CORE_ADDR.
9814 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9815
9816 2020-03-12 Tom Tromey <tom@tromey.com>
9817
9818 * remote.c (remote_target::download_tracepoint)
9819 (remote_target::enable_tracepoint)
9820 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9821 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9822 sprintf_vma.
9823
9824 2020-03-12 Tom Tromey <tom@tromey.com>
9825
9826 * symfile-mem.c: Update CORE_ADDR size assert.
9827
9828 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * selftest.m4: Move to gdbsupport/.
9831 * acinclude.m4: Update path to selftest.m4.
9832
9833 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9834
9835 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9836 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9837 gdbarch-selfselftests.c and selftest-arch.c.
9838 (SUBDIR_UNITTESTS_OBS): Rename to...
9839 (SELFTESTS_OBS): ... this.
9840 (COMMON_SFILES): Remove disasm-selftests.c and
9841 gdbarch-selftests.c.
9842 * configure.ac: Don't add selftest-arch.{c,o} to
9843 CONFIG_{SRCS,OBS}.
9844 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9845 preprocessor conditions.
9846
9847 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9848
9849 * configure.ac: Don't source bfd/development.sh.
9850 * selftest.m4: Modify comment.
9851 * configure: Re-generate.
9852
9853 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9856 not "true" or "false".
9857 * configure: Re-generate.
9858
9859 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9860
9861 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9862 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9863 renamed to arm_nbsd_supply_gregset.
9864 (fetch_register): Update to call arm_nbsd_supply_gregset.
9865 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9866 (arm_netbsd_nat_target::fetch_registers): Update.
9867 (fetch_elfcore_registers): Removed.
9868 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9869 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9870 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9871 not require NetBSD system headers.
9872 (arm_nbsd_regset): New struct.
9873 (arm_nbsd_iterate_over_regset_sections): New function.
9874 (arm_netbsd_init_abi_common): Updated to call
9875 set_gdbarch_iterate_over_regset_sections.
9876 * arm-nbsd-tdep.h: New file.
9877
9878 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9879
9880 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9881 recursion.
9882
9883 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * configure: Re-generate.
9886
9887 2020-03-11 Tom Tromey <tromey@adacore.com>
9888
9889 * ada-typeprint.c (print_choices): Fix comment.
9890
9891 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9892
9893 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9894 previous item in the list, when the list has no items.
9895
9896 2020-03-11 Tom de Vries <tdevries@suse.de>
9897
9898 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9899 PROP_LOCLIST handling code.
9900
9901 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * buildsym-legacy.c (record_line): Pass extra parameter to
9904 record_line.
9905 * buildsym.c (buildsym_compunit::record_line): Take an extra
9906 parameter, reduce duplication in the line table, and record the
9907 is_stmt flag in the line table.
9908 * buildsym.h (buildsym_compunit::record_line): Add extra
9909 parameter.
9910 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9911 non-statement lines.
9912 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9913 this to the symtab builder.
9914 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9915 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9916 through to dwarf_record_line_1.
9917 * infrun.c (process_event_stop_test): When stepping, don't stop at
9918 a non-statement instruction, and only refresh the step info when
9919 we land in the middle of a line's range. Also add an extra
9920 comment.
9921 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9922 field.
9923 * record-btrace.c (btrace_find_line_range): Only record lines
9924 marked as is-statement.
9925 * stack.c (frame_show_address): Show the frame address if we are
9926 in a non-statement sal.
9927 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9928 (maintenance_print_one_line_table): Print a header for the is_stmt
9929 column, and include is_stmt information in the output.
9930 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9931 preference to non-statements.
9932 (find_pcs_for_symtab_line): Prefer is-statement entries.
9933 (find_line_common): Likewise.
9934 * symtab.h (struct linetable_entry): Add is_stmt field.
9935 (struct symtab_and_line): Likewise.
9936 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9937 arranging the line table.
9938
9939 2020-03-07 Tom de Vries <tdevries@suse.de>
9940
9941 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9942 DIE.
9943
9944 2020-03-07 Tom Tromey <tom@tromey.com>
9945
9946 * valops.c (value_literal_complex): Remove obsolete comment.
9947 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9948 comment.
9949
9950 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9951
9952 * infrun.h: Forward-declare thread_info.
9953 (set_step_info): Add thread_info parameter, add doc.
9954 * infrun.c (set_step_info): Add thread_info parameter, move doc
9955 to header.
9956 * infrun.c (process_event_stop_test): Pass thread to
9957 set_step_info call.
9958 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9959 set_step_info.
9960 (prepare_one_step): Add thread_info parameter, pass it to
9961 set_step_frame and prepare_one_step (recursive) call.
9962 (step_1): Pass thread to prepare_one_step call.
9963 (step_command_fsm::should_stop): Pass thread to
9964 prepare_one_step.
9965 (until_next_fsm): Pass thread to set_step_frame call.
9966 (finish_command): Pass thread to set_step_info call.
9967
9968 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9969
9970 * windows-tdep.c (windows_solib_create_inferior_hook):
9971 Check if inferior is running.
9972
9973 2020-03-06 Tom de Vries <tdevries@suse.de>
9974
9975 * NEWS: Fix "the the".
9976 * ctfread.c: Same.
9977
9978 2020-03-06 Tom de Vries <tdevries@suse.de>
9979
9980 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9981
9982 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9983
9984 * .dir-locals.el: Add a comment referencing the other copies of
9985 this file.
9986
9987 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9988
9989 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9990 psargs.
9991
9992 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9993
9994 * .gitattributes: New file.
9995
9996 2020-03-04 Tom Tromey <tom@tromey.com>
9997
9998 * symmisc.c (print_symbol_bcache_statistics)
9999 (print_objfile_statistics): Update.
10000 * symfile.c (allocate_symtab): Use intern.
10001 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10002 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10003 macro_cache>: Remove.
10004 <string_cache>: New member.
10005 (struct objfile) <intern>: New methods.
10006 * elfread.c (elf_symtab_read): Use intern.
10007 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10008 (dwarf2_compute_name, dwarf2_physname)
10009 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10010 names.
10011 (guess_partial_die_structure_name): Update.
10012 (partial_die_info::fixup): Intern name.
10013 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10014 name.
10015 (dwarf2_name): Intern name. Update.
10016 * buildsym.c (buildsym_compunit::get_macro_table): Use
10017 string_cache.
10018
10019 2020-03-04 Tom Tromey <tom@tromey.com>
10020
10021 * jit.c (bfd_open_from_target_memory): Make "target" const.
10022 * corefile.c (gnutarget): Now const.
10023 * gdbcore.h (gnutarget): Now const.
10024
10025 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10026
10027 * NEWS: Mention support for WOW64 processes.
10028 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10029 (amd64_windows_segment_register_p): Remove static.
10030 (_initialize_amd64_windows_nat): Update.
10031 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10032 * i386-windows-nat.c (context_offset): Update.
10033 (i386_mappings): Rename and remove static.
10034 (i386_windows_segment_register_p): Remove static.
10035 (_initialize_i386_windows_nat): Update.
10036 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10037 (STATUS_WX86_SINGLE_STEP): New macro.
10038 (EnumProcessModulesEx): New macro.
10039 (Wow64SuspendThread): New macro.
10040 (Wow64GetThreadContext): New macro.
10041 (Wow64SetThreadContext): New macro.
10042 (Wow64GetThreadSelectorEntry): New macro.
10043 (windows_set_context_register_offsets): Add static.
10044 (windows_set_segment_register_p): Likewise.
10045 (windows_add_thread): Adapt for WOW64 processes.
10046 (windows_fetch_one_register): Likewise.
10047 (windows_nat_target::fetch_registers): Likewise.
10048 (windows_store_one_register): Likewise.
10049 (display_selector): Likewise.
10050 (display_selectors): Likewise.
10051 (handle_exception): Likewise.
10052 (windows_continue): Likewise.
10053 (windows_nat_target::resume): Likewise.
10054 (windows_add_all_dlls): Likewise.
10055 (do_initial_windows_stuff): Likewise.
10056 (windows_nat_target::attach): Likewise.
10057 (windows_get_exec_module_filename): Likewise.
10058 (windows_nat_target::create_inferior): Likewise.
10059 (windows_xfer_siginfo): Likewise.
10060 (_initialize_loadable): Initialize Wow64SuspendThread,
10061 Wow64GetThreadContext, Wow64SetThreadContext,
10062 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10063 * windows-nat.h (windows_set_context_register_offsets):
10064 Remove declaration.
10065 (windows_set_segment_register_p): Likewise.
10066 (i386_windows_segment_register_p): Add declaration.
10067 (amd64_windows_segment_register_p): Likewise.
10068
10069 2020-03-04 Luis Machado <luis.machado@linaro.org>
10070
10071 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10072 in "info registers" for AArch64/ARM.
10073
10074 The change caused "info registers" to not print GPR's.
10075
10076 gdb/ChangeLog:
10077
10078 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10079
10080 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10081 when reg->group is empty and reggroup is not.
10082
10083 2020-03-03 Tom Tromey <tromey@adacore.com>
10084
10085 * dwarf2/frame.c (struct dwarf2_frame_cache)
10086 <checked_tailcall_bottom, entry_cfa_sp_offset,
10087 entry_cfa_sp_offset_p>: Remove members.
10088 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10089 (dwarf2_frame_prev_register): Don't call
10090 dwarf2_tailcall_sniffer_first.
10091 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10092 * frame-unwind.c (add_unwinder): New fuction.
10093 (frame_unwind_init): Use it. Add tailcall unwinder.
10094
10095 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10096 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10097
10098 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10099 value should be printed as true.
10100
10101 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10102
10103 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10104 (windows_init_abi): Set and use windows_so_ops.
10105
10106 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10107
10108 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10109 when verifying if dealing with a convenience variable.
10110
10111 2020-03-03 Luis Machado <luis.machado@linaro.org>
10112
10113 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10114
10115 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10116
10117 * infrun.c (gdbarch_supports_displaced_stepping): New.
10118 (use_displaced_stepping): Break up conditions in smaller pieces.
10119 Use gdbarch_supports_displaced_stepping.
10120 (displaced_step_prepare_throw): Use
10121 gdbarch_supports_displaced_stepping.
10122
10123 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 * NEWS: Mention new behaviour of the history filename.
10126 * top.c (write_history_p): Add comment.
10127 (show_write_history_p): Add header comment, give a different
10128 message when history writing is on, but the history filename is
10129 empty.
10130 (history_filename): Add comment.
10131 (history_filename_empty): New function.
10132 (show_history_filename): Add header comment, give a different
10133 message when the filename is empty.
10134 (init_history): Compare history_filename against nullptr, and only
10135 read history if the filename is not empty.
10136 (set_history_filename): Add header comment, and only make
10137 non-empty filenames absolute.
10138 (init_main): Make the filename argument to 'set history filename'
10139 optional.
10140
10141 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10142
10143 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10144 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10145 (fetch_fp_register): Update.
10146 (fetch_fp_regs): Update.
10147 (store_fp_register): Update.
10148 (store_fp_regs): Update.
10149 (arm_netbsd_nat_target::read_description): New function.
10150 (fetch_elfcore_registers): Update.
10151
10152 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10155 general_thread if the stop reply is missing a thread-id.
10156 (remote_target::process_stop_reply): Use the first non-exited
10157 thread if the target didn't pass a thread-id.
10158 * infrun.c (do_target_wait): Move call to
10159 switch_to_inferior_no_thread to ....
10160 (do_target_wait_1): ... here.
10161
10162 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10163
10164 * debuginfod-support.c: Include defs.h first.
10165
10166 2020-02-28 Tom de Vries <tdevries@suse.de>
10167
10168 * symfile.c (set_initial_language): Use default language for lookup.
10169
10170 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10171
10172 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10173 reader variable, pass `this` to read_cutu_die_from_dwo.
10174
10175 2020-02-27 Aaron Merey <amerey@redhat.com>
10176
10177 * source.c (open_source_file): Check for nullptr when computing
10178 srcpath.
10179
10180 2020-02-27 Tom Tromey <tromey@adacore.com>
10181
10182 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10183 member.
10184 (dwarf2_add_field): Don't update nfields.
10185 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10186
10187 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10188
10189 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10190 abs.
10191
10192 2020-02-26 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10195 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10196 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10197 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10198 per_cu_data.
10199
10200 2020-02-26 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/index-write.c (psym_index_map): Change type.
10203 (add_address_entry_worker, write_one_signatured_type)
10204 (recursively_count_psymbols, recursively_write_psymbols)
10205 (class debug_names, psyms_seen_size, write_gdbindex)
10206 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10207
10208 2020-02-26 Aaron Merey <amerey@redhat.com>
10209
10210 * Makefile.in: Handle optional debuginfod support.
10211 * NEWS: Update.
10212 * README: Add --with-debuginfod summary.
10213 * config.in: Regenerate.
10214 * configure: Regenerate.
10215 * configure.ac: Handle optional debuginfod support.
10216 * debuginfod-support.c: debuginfod helper functions.
10217 * debuginfod-support.h: Ditto.
10218 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10219 summary.
10220 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10221 when a dwz file cannot be found.
10222 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10223 debuginfo file cannot be found.
10224 * source.c (open_source_file): Query debuginfod servers when a
10225 source file cannot be found.
10226 * top.c (print_gdb_configuration): Include
10227 --{with,without}-debuginfod in the output.
10228
10229 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10230
10231 * thread.c (thr_try_catch_cmd): Print thread name.
10232
10233 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10234
10235 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10236 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10237 dwarf2_fetch_die_type_sect_off): Move to...
10238 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10239 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10240 dwarf2_fetch_die_type_sect_off): ... here.
10241 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10242 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10243 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10244
10245 2020-02-26 Tom de Vries <tdevries@suse.de>
10246
10247 PR gdb/25603
10248 * symfile.c (set_initial_language): Exit-early if
10249 language_mode == language_mode_manual.
10250
10251 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10252
10253 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10254 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10255 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10256
10257 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10258
10259 * gdbtypes.c (create_array_type_with_stride): Handle negative
10260 array strides.
10261 * valarith.c (value_subscripted_rvalue): Likewise.
10262
10263 2020-02-25 Luis Machado <luis.machado@linaro.org>
10264
10265 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10266
10267 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10268
10269 * loc.h (dwarf2_get_die_type): Move to...
10270 * read.h (dwarf2_get_die_type): ... here.
10271 * read.c (dwarf2_get_die_type): Move doc to header.
10272
10273 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10274
10275 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10276 'gnulib/Makefile.in' to the list.
10277
10278 2020-02-24 Tom Tromey <tom@tromey.com>
10279
10280 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10281 Remove.
10282 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10283 XOBNEWVEC.
10284
10285 2020-02-24 Tom Tromey <tom@tromey.com>
10286
10287 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10288 New method.
10289 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10290 (dw2_do_instantiate_symtab, dw2_get_file_names)
10291 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10292
10293 2020-02-24 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10296 make_scoped_restore.
10297 (dwarf2_psymtab::read_symtab): Don't clear
10298 reading_partial_symbols.
10299
10300 2020-02-24 Tom de Vries <tdevries@suse.de>
10301
10302 PR gdb/25592
10303 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10304
10305 2020-02-24 Tom de Vries <tdevries@suse.de>
10306
10307 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10308 commands layout next/prev/regs.
10309
10310 2020-02-22 Tom Tromey <tom@tromey.com>
10311
10312 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10313 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10314
10315 2020-02-22 Tom Tromey <tom@tromey.com>
10316
10317 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10318
10319 2020-02-22 Tom Tromey <tom@tromey.com>
10320
10321 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10322 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10323 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10324 * tui/tui.c (_initialize_tui): Add usage text.
10325
10326 2020-02-22 Tom Tromey <tom@tromey.com>
10327
10328 * tui/tui-win.c (tui_set_focus_command)
10329 (tui_set_win_height_command): Use error_no_arg.
10330 (_initialize_tui_win): Update help text.
10331 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10332
10333 2020-02-22 Tom Tromey <tom@tromey.com>
10334
10335 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10336 * tui/tui-disasm.h (struct tui_disasm_window)
10337 <display_start_addr>: Declare.
10338 * tui/tui-source.h (struct tui_source_window)
10339 <display_start_addr>: Declare.
10340 * tui/tui-winsource.h (struct tui_source_window_base)
10341 <show_source_line, display_start_addr>: New methods.
10342 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10343 Rename and move to protected section.
10344 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10345 (tui_source_window_base::do_erase_source_content): Update.
10346 (tui_source_window_base::show_source_line): Now a method.
10347 (tui_source_window_base::show_source_content)
10348 (tui_source_window_base::tui_source_window_base)
10349 (tui_source_window_base::rerender)
10350 (tui_source_window_base::refill)
10351 (tui_source_window_base::do_scroll_horizontal)
10352 (tui_source_window_base::set_is_exec_point_at)
10353 (tui_source_window_base::update_breakpoint_info)
10354 (tui_source_window_base::update_exec_info): Update.
10355 * tui/tui-source.c (tui_source_window::set_contents)
10356 (tui_source_window::showing_source_p)
10357 (tui_source_window::do_scroll_vertical)
10358 (tui_source_window::location_matches_p)
10359 (tui_source_window::line_is_displayed): Update.
10360 (tui_source_window::display_start_addr): New method.
10361 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10362 (tui_disasm_window::do_scroll_vertical)
10363 (tui_disasm_window::location_matches_p): Update.
10364 (tui_disasm_window::display_start_addr): New method.
10365
10366 2020-02-22 Tom Tromey <tom@tromey.com>
10367
10368 * NEWS: Add entry for gdb.register_window_type.
10369 * tui/tui-layout.h (window_factory): New typedef.
10370 (tui_register_window): Declare.
10371 * tui/tui-layout.c (saved_tui_windows): New global.
10372 (tui_apply_current_layout): Use it.
10373 (tui_register_window): New function.
10374 * python/python.c (do_start_initialization): Call
10375 gdbpy_initialize_tui.
10376 (python_GdbMethods): Add "register_window_type" function.
10377 * python/python-internal.h (gdbpy_register_tui_window)
10378 (gdbpy_initialize_tui): Declare.
10379 * python/py-tui.c: New file.
10380 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10381
10382 2020-02-22 Tom Tromey <tom@tromey.com>
10383
10384 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10385
10386 2020-02-22 Tom Tromey <tom@tromey.com>
10387
10388 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10389 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10390 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10391 (tui_set_win_focus_to): Move from tui-win.c.
10392
10393 2020-02-22 Tom Tromey <tom@tromey.com>
10394
10395 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10396 functions.
10397 (known_window_types): New global.
10398 (tui_get_window_by_name): Reimplement.
10399 (initialize_known_windows): New function.
10400 (validate_window_name): Rewrite.
10401 (_initialize_tui_layout): Call initialize_known_windows.
10402
10403 2020-02-22 Tom Tromey <tom@tromey.com>
10404
10405 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10406 Remove constants.
10407 * tui/tui-winsource.h (struct tui_source_window_base)
10408 <tui_source_window_base>: Remove parameter.
10409 * tui/tui-winsource.c
10410 (tui_source_window_base::tui_source_window_base): Remove
10411 parameter.
10412 (tui_source_window_base::refill): Update.
10413 * tui/tui-stack.h (struct tui_locator_window)
10414 <tui_locator_window>: Update.
10415 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10416 Default the constructor.
10417 * tui/tui-regs.h (struct tui_data_item_window)
10418 <tui_data_item_window>: Default the constructor.
10419 (struct tui_data_window) <tui_data_window>: Likewise.
10420 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10421 Default the constructor.
10422 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10423 Default the constructor.
10424 <type>: Remove.
10425 (struct tui_win_info) <tui_win_info>: Default the constructor.
10426 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10427 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10428 Default the constructor.
10429
10430 2020-02-22 Tom Tromey <tom@tromey.com>
10431
10432 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10433 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10434 * tui/tui-win.c (tui_resize_all): Don't call
10435 tui_delete_invisible_windows.
10436 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10437 done.
10438 (tui_set_layout): Update.
10439 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10440 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10441 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10442
10443 2020-02-22 Tom Tromey <tom@tromey.com>
10444
10445 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10446 correctly.
10447
10448 2020-02-22 Tom Tromey <tom@tromey.com>
10449
10450 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10451
10452 2020-02-22 Tom Tromey <tom@tromey.com>
10453
10454 * tui/tui-winsource.h (struct tui_source_window_iterator)
10455 <inner_iterator>: New etytypedef.
10456 <tui_source_window_iterator>: Take "end" parameter.
10457 <tui_source_window_iterator>: Take iterator.
10458 <operator*, advance>: Update.
10459 <m_iter>: Change type.
10460 <m_end>: New field.
10461 (struct tui_source_windows) <begin, end>: Update.
10462 * tui/tui-layout.c (tui_windows): New global.
10463 (tui_apply_current_layout): Clear tui_windows.
10464 (tui_layout_window::apply): Update tui_windows.
10465 * tui/tui-data.h (tui_windows): Declare.
10466 (all_tui_windows): Now inline function.
10467 (class tui_window_iterator, struct all_tui_windows): Remove.
10468
10469 2020-02-22 Tom Tromey <tom@tromey.com>
10470
10471 PR tui/17850:
10472 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10473 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10474 "height" argument.
10475 (class tui_layout_window) <get_sizes>: Likewise.
10476 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10477 argument.
10478 <get_sizes>: Add "height" argument.
10479 <m_vertical>: New field.
10480 * tui/tui-layout.c (tui_layout_split::clone): Update.
10481 (tui_layout_split::get_sizes): Add "height" argument.
10482 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10483 (tui_new_layout_command): Parse "-horizontal".
10484 (_initialize_tui_layout): Update help string.
10485 (tui_layout_split::specification): Add "-horizontal" when needed.
10486 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10487 argument.
10488 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10489 New methods.
10490
10491 2020-02-22 Tom Tromey <tom@tromey.com>
10492
10493 * tui/tui-layout.h (enum tui_adjust_result): New.
10494 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10495 (class tui_layout_window) <adjust_size>: Return
10496 tui_adjust_result. Rewrite.
10497 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10498 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10499
10500 2020-02-22 Tom Tromey <tom@tromey.com>
10501
10502 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10503 parameter and return types.
10504 (class tui_layout_base) <specification>: Add "depth".
10505 (class tui_layout_window) <specification>: Add "depth".
10506 (class tui_layout_split) <specification>: Add "depth".
10507 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10508 and return types.
10509 (tui_new_layout_command): Parse sub-layouts.
10510 (_initialize_tui_layout): Update help string.
10511 (tui_layout_window::specification): Add "depth".
10512 (add_layout_command): Update.
10513
10514 2020-02-22 Tom Tromey <tom@tromey.com>
10515
10516 * NEWS: Add "tui new-layout" item.
10517 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10518 Add new-layout command to help text.
10519 (validate_window_name): New function.
10520 (tui_new_layout_command): New function.
10521 (_initialize_tui_layout): Register "new-layout".
10522 (tui_layout_window::specification): New method.
10523 (tui_layout_window::specification): New method.
10524 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10525 method.
10526 (class tui_layout_window) <specification>: New method.
10527 (class tui_layout_split) <specification>: New method.
10528
10529 2020-02-22 Tom Tromey <tom@tromey.com>
10530
10531 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10532 * tui/tui-win.c (window_name_completer): Update comment.
10533 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10534 Declare method.
10535 (class tui_layout_window) <replace_window>: Likewise.
10536 (class tui_layout_split) <replace_window>: Likewise.
10537 (tui_set_layout): Don't declare.
10538 (tui_set_initial_layout): Declare function.
10539 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10540 (asm_regs_layout): New globals.
10541 (tui_current_layout, show_layout): Remove.
10542 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10543 (find_layout, tui_apply_layout): New function.
10544 (layout_completer): Remove.
10545 (tui_next_layout): Reimplement.
10546 (tui_next_layout_command): New function.
10547 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10548 (tui_regs_layout): Reimplement.
10549 (tui_regs_layout_command): New function.
10550 (extract_display_start_addr): Rewrite.
10551 (next_layout, prev_layout): Remove.
10552 (tui_layout_window::replace_window): New method.
10553 (tui_layout_split::replace_window): New method.
10554 (destroy_layout): New function.
10555 (layout_list): New global.
10556 (add_layout_command): New function.
10557 (initialize_layouts): Update.
10558 (tui_layout_command): New function.
10559 (_initialize_tui_layout): Install "layout" commands.
10560 * tui/tui-data.h (enum tui_layout_type): Remove.
10561 (tui_current_layout): Don't declare.
10562
10563 2020-02-22 Tom Tromey <tom@tromey.com>
10564
10565 * tui/tui-regs.c (tui_reg_layout): Remove.
10566 (tui_reg_command): Use tui_regs_layout.
10567 * tui/tui-layout.h (tui_reg_command): Declare.
10568 * tui/tui-layout.c (tui_reg_command): New function.
10569
10570 2020-02-22 Tom Tromey <tom@tromey.com>
10571
10572 * tui/tui.c (tui_rl_delete_other_windows): Call
10573 tui_remove_some_windows.
10574 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10575 Declare method.
10576 (class tui_layout_window) <remove_windows>: New method.
10577 (class tui_layout_split) <remove_windows>: Declare.
10578 (tui_remove_some_windows): Declare.
10579 * tui/tui-layout.c (tui_remove_some_windows): New function.
10580 (tui_layout_split::remove_windows): New method.
10581
10582 2020-02-22 Tom Tromey <tom@tromey.com>
10583
10584 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10585 * tui/tui-layout.h (tui_next_layout): Declare.
10586 * tui/tui-layout.c (tui_next_layout): New function.
10587
10588 2020-02-22 Tom Tromey <tom@tromey.com>
10589
10590 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10591 correct coordinates.
10592
10593 2020-02-22 Tom Tromey <tom@tromey.com>
10594
10595 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10596 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10597 DATA_WIN case.
10598
10599 2020-02-22 Tom Tromey <tom@tromey.com>
10600
10601 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10602 TUI_DISASM_WIN, not tui_win_list.
10603
10604 2020-02-22 Tom Tromey <tom@tromey.com>
10605
10606 * valprint.c (generic_val_print_enum_1)
10607 (val_print_type_code_flags): Style member names.
10608 * rust-lang.c (val_print_struct, rust_print_enum)
10609 (rust_print_struct_def, rust_internal_print_type): Style member
10610 names.
10611 * p-valprint.c (pascal_object_print_value_fields): Style member
10612 names. Only call fprintf_symbol_filtered for static members.
10613 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10614 * f-valprint.c (f_val_print): Style member names.
10615 * f-typeprint.c (f_type_print_base): Style member names.
10616 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10617 call fprintf_symbol_filtered for static members.
10618 (cp_print_class_member): Style member names.
10619 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10620 member names.
10621 * ada-valprint.c (ada_print_scalar): Style enum names.
10622 (ada_val_print_enum): Likewise.
10623 * ada-typeprint.c (print_enum_type): Style enum names.
10624
10625 2020-02-21 Tom Tromey <tom@tromey.com>
10626
10627 * psympriv.h (struct partial_symtab): Update comment.
10628
10629 2020-02-21 Tom Tromey <tromey@adacore.com>
10630
10631 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10632 type is CORE_ADDR.
10633
10634 2020-02-21 Tom de Vries <tdevries@suse.de>
10635
10636 PR gdb/25534
10637 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10638 if dependencies[i]->user != NULL.
10639
10640 2020-02-21 Ali Tamur <tamur@google.com>
10641
10642 * dwarf2/read.c (dwarf2_name): Add null check.
10643
10644 2020-02-20 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10647 ">=", in binary search.
10648 (dwarf2_find_containing_comp_unit): New overload.
10649 (run_test): New self-test.
10650 (_initialize_dwarf2_read): Register new test.
10651
10652 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10653
10654 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10655 * riscv-tdep.h: Likewise.
10656 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10657 rv32-only CSR.
10658 * features/riscv/64bit-csr.xml: Regenerated.
10659
10660 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10661 Tom Tromey <tom@tromey.com>
10662
10663 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10664 of 'fputc_unfiltered'.
10665 (putchar_unfiltered): Call 'fputc_unfiltered'.
10666 (fputc_unfiltered): Call 'fputs_unfiltered'.
10667
10668 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10669
10670 * config.in: Regenerate.
10671 * configure: Regenerate.
10672 * configure.ac: Add --with-python-libdir option.
10673 * main.c: Use WITH_PYTHON_LIBDIR.
10674
10675 2020-02-19 Tom Tromey <tom@tromey.com>
10676
10677 * symtab.c (general_symbol_info::compute_and_set_names): Use
10678 obstack_strndup. Simplify call to symbol_set_demangled_name.
10679
10680 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * dwarf2/read.c (allocate_signatured_type_table,
10683 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10684 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10685 Remove objfile parameter, update all callers.
10686
10687 2020-02-19 Doug Evans <dje@google.com>
10688
10689 PR rust/25535
10690 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10691 rust_enum_variant calculation.
10692
10693 2020-02-19 Tom Tromey <tromey@adacore.com>
10694
10695 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10696
10697 2020-02-19 Tom Tromey <tromey@adacore.com>
10698
10699 * ada-lang.c (cache_symbol): Use obstack_strdup.
10700
10701 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 * configure: Regenerate.
10704
10705 2020-02-19 Tom Tromey <tromey@adacore.com>
10706
10707 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10708 NULL check.
10709
10710 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10711
10712 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10713
10714 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10715
10716 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10717 if GDBSERVER is not defined.
10718 (riscv_tdesc_cache): Likewise, also store const target_desc.
10719 (STATIC_IN_GDB): Define.
10720 (riscv_create_target_description): Update declaration with
10721 STATIC_IN_GDB.
10722 (riscv_lookup_target_description): New function, only define if
10723 GDBSERVER is not defined.
10724 * arch/riscv.h (riscv_create_target_description): Declare only
10725 when GDBSERVER is defined.
10726 (riscv_lookup_target_description): New declaration when GDBSERVER
10727 is not defined.
10728 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10729 (riscv_linux_read_features): ...this, and return
10730 riscv_gdbarch_features instead of target_desc.
10731 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10732 (riscv_linux_read_description): Rename to...
10733 (riscv_linux_read_features): ...this.
10734 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10735 Update to use riscv_gdbarch_features and
10736 riscv_lookup_target_description.
10737 * riscv-tdep.c (riscv_find_default_target_description): Use
10738 riscv_lookup_target_description instead of
10739 riscv_create_target_description.
10740
10741 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10742
10743 * valprint.c (generic_val_print_enum_1): When printing a flag
10744 enum with value 0 and there is no enumerator with value 0, print
10745 just "0" instead of "(unknown: 0x0)".
10746
10747 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * valprint.c (generic_val_print_enum_1): Print unknown part of
10750 flag enum in hex.
10751
10752 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10753
10754 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10755 flag enums to contain duplicate enumerators.
10756 * valprint.c (generic_val_print_enum_1): Update comment.
10757
10758 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10759
10760 * dwarf2/read.c: Include "count-one-bits.h".
10761 (update_enumeration_type_from_children): If an enumerator has
10762 multiple bits set, don't treat the enumeration as a "flag enum".
10763 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10764 of flag enums have 0 or 1 bit set.
10765
10766 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10767
10768 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10769 conversion.
10770 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10771 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10772 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10773 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10774 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10775
10776 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10779
10780 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10783 displaced_step_closure_up.
10784 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10785 (struct displaced_step_closure_up):
10786 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10787 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10788 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10789 Likewise.
10790 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10791 * gdbarch.c, gdbarch.h: Re-generate.
10792 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10793 displaced_step_closure_up.
10794 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10795 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10796 * infrun.h (displaced_step_closure_up): New type alias.
10797 (struct displaced_step_inferior_state) <step_closure>: Change
10798 type to displaced_step_closure_up.
10799 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10800 displaced_step_closure_up.
10801 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10802
10803 2020-02-14 Tom Tromey <tom@tromey.com>
10804
10805 * minidebug.c (gnu_debug_key): New global.
10806 (find_separate_debug_file_in_section): Use it.
10807
10808 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10809
10810 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10811 std::unique_ptr.
10812 * gdbarch.c: Re-generate.
10813 * gdbarch.h: Re-generate.
10814 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10815 change.
10816 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10817 type to std::unique_ptr.
10818 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10819 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10820 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10821 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10822 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10823 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10824 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10825 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10826 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10827
10828 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10829
10830 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10831 std::unique_ptr.
10832 (displaced_step_clear): Rename to...
10833 (displaced_step_reset): ... this. Just call displaced->reset ().
10834 (displaced_step_clear_cleanup): Rename to...
10835 (displaced_step_reset_cleanup): ... this.
10836 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10837 (displaced_step_fixup): Likewise.
10838 (resume_1): Likewise.
10839 (handle_inferior_event): Restore child's memory before calling
10840 displaced_step_fixup on the parent.
10841 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10842 to std::unique_ptr.
10843 <step_closure>: Change type to std::unique_ptr.
10844
10845 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10846
10847 * arm-tdep.c: Include count-one-bits.h.
10848 (cleanup_block_store_pc): Use count_one_bits.
10849 (cleanup_block_load_pc): Use count_one_bits.
10850 (arm_copy_block_xfer): Use count_one_bits.
10851 (thumb2_copy_block_xfer): Use count_one_bits.
10852 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10853 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10854 (thumb_get_next_pcs_raw): Use count_one_bits.
10855 (arm_get_next_pcs_raw): Use count_one_bits_l.
10856 * arch/arm.c (bitcount): Remove.
10857 * arch/arm.h (bitcount): Remove.
10858
10859 2020-02-14 Tom Tromey <tromey@adacore.com>
10860
10861 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10862 Update.
10863 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10864 * dwarf2/loc.c (call_site_find_chain_1): Return
10865 unique_xmalloc_ptr.
10866 (call_site_find_chain): Likewise.
10867
10868 2020-02-14 Richard Biener <rguenther@suse.de>
10869
10870 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10871 on expression with division operators.
10872
10873 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10874
10875 * MAINTAINERS (Write After Approval): Adding myself.
10876
10877 2020-02-12 Tom Tromey <tom@tromey.com>
10878
10879 * event-loop.c (event_data, gdb_event, event_handler_func):
10880 Remove.
10881
10882 2020-02-12 Tom Tromey <tom@tromey.com>
10883
10884 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10885 (dwarf2_frame_objfile_data): Add comment.
10886 (find_comp_unit, set_comp_unit): New functions.
10887 (dwarf2_frame_find_fde): Use find_comp_unit.
10888 (dwarf2_build_frame_info): Use set_comp_unit.
10889
10890 2020-02-12 Tom Tromey <tom@tromey.com>
10891
10892 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10893 (comp_unit): Don't initialize objfile.
10894 (execute_cfa_program): Add text_offset parameter.
10895 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10896 (dwarf2_frame_cache): Update.
10897 (dwarf2_build_frame_info): Don't set "objfile" member.
10898
10899 2020-02-12 Tom Tromey <tom@tromey.com>
10900
10901 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10902 (decode_frame_entry): Likewise.
10903 (dwarf2_build_frame_info): Update.
10904
10905 2020-02-12 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10908 (decode_frame_entry_1): Use the comp_unit obstack.
10909
10910 2020-02-12 Tom Tromey <tom@tromey.com>
10911
10912 * dwarf2/frame.c (struct comp_unit): Add initializers and
10913 constructor.
10914 (dwarf2_frame_objfile_data): Store a comp_unit.
10915 (dwarf2_frame_find_fde): Update.
10916 (dwarf2_build_frame_info): Use "new".
10917
10918 2020-02-12 Tom Tromey <tom@tromey.com>
10919
10920 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10921 (dwarf2_fde_table): Typedef for std::vector.
10922 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10923 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10924 (decode_frame_entry): Update.
10925 (dwarf2_build_frame_info): Use "new".
10926
10927 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10928
10929 * arm-tdep.c (arm_gdbarch_init): Update.
10930 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10931 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10932 have_neon, is_m>: Change to bool.
10933
10934 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10935
10936 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10937
10938 2020-02-12 Tom Tromey <tom@tromey.com>
10939
10940 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10941
10942 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10943
10944 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10945 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10946
10947 2020-02-11 Tom Tromey <tom@tromey.com>
10948
10949 * psymtab.h: Update comment.
10950
10951 2020-02-11 Tom Tromey <tom@tromey.com>
10952
10953 * gdb_obstack.h (struct auto_obstack): Use
10954 DISABLE_COPY_AND_ASSIGN.
10955
10956 2020-02-11 Tom Tromey <tom@tromey.com>
10957
10958 * dwarf2/frame.h (struct objfile): Don't forward declare.
10959
10960 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10961
10962 * cris-tdep.c (cris_supply_gregset): Change signature to match
10963 what struct regset expects.
10964 (cris_regset): New struct.
10965 (fetch_core_registers): Remove.
10966 (cris_iterate_over_regset_sections): New function.
10967 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10968 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10969
10970 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10971
10972 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10973 registers.
10974
10975 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10976
10977 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10978
10979 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10980
10981 * configure: Re-generate.
10982
10983 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10984
10985 * configure: Re-generate.
10986
10987 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * acinclude: Update warning.m4 path.
10990 * warning.m4: Move to gdbsupport.
10991
10992 2020-02-11 Tom Tromey <tromey@adacore.com>
10993
10994 * remote.c (remote_console_output): Update.
10995 * printcmd.c (printf_command): Update.
10996 * event-loop.c (gdb_wait_for_event): Update.
10997 * linux-nat.c (sigchld_handler): Update.
10998 * remote-sim.c (gdb_os_write_stdout): Update.
10999 (gdb_os_flush_stdout): Update.
11000 (gdb_os_flush_stderr): Update.
11001 (gdb_os_write_stderr): Update.
11002 * exceptions.c (print_exception): Update.
11003 * remote-fileio.c (remote_fileio_func_read): Update.
11004 (remote_fileio_func_write): Update.
11005 * tui/tui.c (tui_enable): Update.
11006 * tui/tui-interp.c (tui_interp::init): Update.
11007 * utils.c (init_page_info): Update.
11008 (putchar_unfiltered, fputc_unfiltered): Update.
11009 (gdb_flush): Update.
11010 (emit_style_escape): Update.
11011 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11012 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11013 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11014 (stderr_file::write): Update.
11015 (stderr_file::puts): Update.
11016 * ui-file.h (ui_file_isatty, ui_file_write)
11017 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11018 (ui_file_puts): Don't declare.
11019
11020 2020-02-10 Tom de Vries <tdevries@suse.de>
11021
11022 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11023 sentinel to char *.
11024
11025 2020-02-09 Tom de Vries <tdevries@suse.de>
11026
11027 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11028 filename if it matches "<artificial>".
11029
11030 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11031
11032 * windows-tdep.c (struct enum_value_name): New struct.
11033 (create_enum): New function.
11034 (windows_get_siginfo_type): Create and use enum types.
11035
11036 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11037
11038 * NEWS: Mention $_siginfo support for Windows.
11039 * windows-nat.c (handle_exception): Set siginfo_er.
11040 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11041 (windows_xfer_siginfo): New function.
11042 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11043 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11044 (init_windows_gdbarch_data): New function.
11045 (get_windows_gdbarch_data): New function.
11046 (windows_get_siginfo_type): New function.
11047 (windows_init_abi): Register windows_get_siginfo_type.
11048 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11049
11050 2020-02-08 Tom Tromey <tom@tromey.com>
11051
11052 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11053 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11054 <keep>: Declare method.
11055 <m_keep>: Remove member.
11056 <~cutu_reader>: Remove.
11057 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11058 (cutu_reader::cutu_reader): Update.
11059 (cutu_reader::keep): Rename from ~cutu_reader.
11060 (process_psymtab_comp_unit, build_type_psymtabs_1)
11061 (process_skeletonless_type_unit, load_partial_comp_unit)
11062 (load_full_comp_unit, dwarf2_read_addr_index)
11063 (read_signatured_type): Update.
11064
11065 2020-02-08 Tom Tromey <tom@tromey.com>
11066
11067 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11068 "want_partial_unit" parameter.
11069 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11070 Inline check for DW_TAG_partial_unit.
11071 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11072
11073 2020-02-08 Tom Tromey <tom@tromey.com>
11074
11075 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11076 read.c.
11077 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11078 read.c.
11079
11080 2020-02-08 Tom Tromey <tom@tromey.com>
11081
11082 * dwarf2/read.c (read_address): Move to comp-unit.c.
11083 (dwarf2_rnglists_process, dwarf2_ranges_process)
11084 (read_attribute_value, dwarf_decode_lines_1)
11085 (var_decode_location, decode_locdesc): Update.
11086 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11087 read.c. Remove "cu" parameter.
11088 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11089 method.
11090
11091 2020-02-08 Tom Tromey <tom@tromey.com>
11092
11093 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11094 (read_indirect_line_string): Update.
11095 * dwarf2/comp-unit.c (read_offset): Remove.
11096 (read_comp_unit_head): Update.
11097 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11098 method.
11099 (read_offset): Don't declare.
11100
11101 2020-02-08 Tom Tromey <tom@tromey.com>
11102
11103 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11104 * dwarf2/read.c (struct comp_unit_head): Move to
11105 dwarf2/comp-unit.h.
11106 (enum class rcuh_kind): Move to comp-unit.h.
11107 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11108 (read_comp_unit_head, error_check_comp_unit_head)
11109 (read_and_check_comp_unit_head): Move to comp-unit.c.
11110 (read_offset, dwarf_unit_type_name): Likewise.
11111 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11112 (cutu_reader::cutu_reader, read_call_site_scope)
11113 (find_partial_die, follow_die_offset): Update.
11114 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11115
11116 2020-02-08 Tom Tromey <tom@tromey.com>
11117
11118 * dwarf2/read.c (read_offset_1): Move to leb.c.
11119 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11120 (dwarf_decode_macro_bytes): Update.
11121 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11122 * dwarf2/leb.h (read_offset): Declare.
11123
11124 2020-02-08 Tom Tromey <tom@tromey.com>
11125
11126 * dwarf2/read.c (dwarf2_section_size): Remove.
11127 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11128 Update.
11129 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11130
11131 2020-02-08 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2/read.c (read_initial_length): Move to leb.c.
11134 * dwarf2/leb.h (read_initial_length): Declare.
11135 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11136 handle_nonstd parameter.
11137 * dwarf2/frame.c (read_initial_length): Remove.
11138 (decode_frame_entry_1): Update.
11139
11140 2020-02-08 Tom Tromey <tom@tromey.com>
11141
11142 * dwarf2/loc.c (dwarf2_find_location_expression)
11143 (dwarf_evaluate_loc_desc::get_tls_address)
11144 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11145 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11146 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11147 (dwarf2_compile_property_to_c)
11148 (dwarf2_loc_desc_get_symbol_read_needs)
11149 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11150 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11151 (loclist_describe_location, loclist_tracepoint_var_ref)
11152 (loclist_generate_c_location): Update.
11153 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11154 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11155 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11156 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11157 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11158 (dwarf2_per_cu_data::addr_size)
11159 (dwarf2_per_cu_data::ref_addr_size)
11160 (dwarf2_per_cu_data::text_offset)
11161 (dwarf2_per_cu_data::addr_type): Now methods.
11162 (per_cu_header_read_in): Make per_cu "const".
11163 (dwarf2_version): Remove.
11164 (dwarf2_per_cu_data::int_type): Now a method.
11165 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11166 (set_die_type, read_array_type, read_subrange_index_type)
11167 (read_tag_string_type, read_subrange_type): Update.
11168 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11169 offset_size, ref_addr_size, text_offset, addr_type, version,
11170 objfile, int_type, addr_sized_int_type>: Declare methods.
11171
11172 2020-02-08 Tom Tromey <tom@tromey.com>
11173
11174 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11175 Move earlier.
11176
11177 2020-02-08 Tom Tromey <tom@tromey.com>
11178
11179 * dwarf2/read.h (dwarf_line_debug): Declare.
11180 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11181 * dwarf2/read.c: Move line_header code to new files.
11182 (dwarf_line_debug): No longer static.
11183 * dwarf2/line-header.c: New file.
11184 * dwarf2/line-header.h: New file.
11185
11186 2020-02-08 Tom Tromey <tom@tromey.com>
11187
11188 * dwarf2/read.c (struct line_header) <file_full_name,
11189 file_file_name>: Return unique_xmalloc_ptr.
11190 (line_header::file_file_name): Update.
11191 (line_header::file_full_name): Update.
11192 (dw2_get_file_names_reader): Update.
11193 (macro_start_file): Update.
11194
11195 2020-02-08 Tom Tromey <tom@tromey.com>
11196
11197 * dwarf2/read.c (struct line_header) <file_full_name,
11198 file_file_name>: Declare methods.
11199 (dw2_get_file_names_reader): Update.
11200 (file_file_name): Now a method.
11201 (file_full_name): Likewise.
11202 (macro_start_file): Update.
11203
11204 2020-02-08 Tom Tromey <tom@tromey.com>
11205
11206 * dwarf2/read.c (dwarf_always_disassemble)
11207 (show_dwarf_always_disassemble): Move to loc.c.
11208 (_initialize_dwarf2_read): Move "always-disassemble" registration
11209 to loc.c.
11210 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11211 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11212 static.
11213 (show_dwarf_always_disassemble): Move from read.c.
11214 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11215
11216 2020-02-08 Tom Tromey <tom@tromey.com>
11217
11218 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11219 (create_quick_file_names_table): Return htab_up.
11220 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11221 Update.
11222 * dwarf2/read.h (struct dwarf2_per_objfile)
11223 <quick_file_names_table>: Now htab_up.
11224
11225 2020-02-08 Tom Tromey <tom@tromey.com>
11226
11227 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11228
11229 2020-02-08 Tom Tromey <tom@tromey.com>
11230
11231 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11232 Rewrite.
11233 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11234 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11235 (abbrev_table::abbrev_table): No longer inline.
11236 (ABBREV_HASH_SIZE): Remove.
11237 (abbrev_table::m_abbrevs): Now an htab_up.
11238
11239 2020-02-08 Tom Tromey <tom@tromey.com>
11240
11241 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11242 (cutu_reader): Update.
11243 (build_type_psymtabs_1): Update.
11244 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11245 (abbrev_table::alloc_abbrev): Update.
11246 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11247 (abbrev_table::read): New static method, renamed from
11248 abbrev_table_read_table.
11249 (abbrev_table::alloc_abbrev)
11250 (abbrev_table::add_abbrev): Now private.
11251 (abbrev_table::abbrev_table): Now private.
11252 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11253
11254 2020-02-08 Tom Tromey <tom@tromey.com>
11255
11256 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11257 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11258 htab_up.
11259
11260 2020-02-08 Tom Tromey <tom@tromey.com>
11261
11262 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11263 htab_up.
11264 (lookup_dwo_unit_in_dwp): Update.
11265 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11266 on obstack.
11267
11268 2020-02-08 Tom Tromey <tom@tromey.com>
11269
11270 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11271 obstack.
11272
11273 2020-02-08 Tom Tromey <tom@tromey.com>
11274
11275 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11276 line_header_hash.
11277 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11278 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11279 Change type to htab_up.
11280
11281 2020-02-08 Tom Tromey <tom@tromey.com>
11282
11283 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11284 htab_up. Don't allocate on obstack.
11285 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11286 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11287 Change type to htab_up.
11288
11289 2020-02-08 Tom Tromey <tom@tromey.com>
11290
11291 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11292 Change type to htab_up.
11293 * dwarf2/read.c (create_signatured_type_table_from_index)
11294 (create_signatured_type_table_from_debug_names)
11295 (create_all_type_units, add_type_unit)
11296 (lookup_dwo_signatured_type, lookup_signatured_type)
11297 (process_skeletonless_type_unit): Update.
11298 (create_debug_type_hash_table, create_debug_types_hash_table):
11299 Change type of types_htab.
11300 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11301 htab_up. Don't allocate on obstack.
11302 (create_cus_hash_table): Change type of cus_htab parameter.
11303 (struct dwo_file) <cus, tus>: Now htab_up.
11304 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11305 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11306 (queue_and_load_all_dwo_tus): Update.
11307 * dwarf2/index-write.c (write_gdbindex): Update.
11308 (write_debug_names): Update.
11309
11310 2020-02-08 Tom Tromey <tom@tromey.com>
11311
11312 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11313 dwarf2/read.c. Remove "next" member. Add constructor ntad
11314 destructor.
11315 (struct dwarf2_per_objfile) <queue>: New member.
11316 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11317 dwarf2/read.h.
11318 (dwarf2_queue, dwarf2_queue_tail): Remove.
11319 (class dwarf2_queue_guard): Add parameter to constructor. Use
11320 DISABLE_COPY_AND_ASSIGN.
11321 <m_per_objfile>: New member.
11322 <~dwarf2_queue_guard>: Rewrite.
11323 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11324 Update.
11325 (~dwarf2_queue_item): New.
11326
11327 2020-02-08 Tom Tromey <tom@tromey.com>
11328
11329 * dwarf2/read.c (struct die_info) <has_children>: New member.
11330 (dw2_get_file_names_reader): Remove has_children.
11331 (dw2_get_file_names): Update.
11332 (read_cutu_die_from_dwo): Remove has_children.
11333 (cutu_reader::init_tu_and_read_dwo_dies)
11334 (cutu_reader::cutu_reader): Update.
11335 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11336 Remove has_children.
11337 (build_type_psymtabs_1, process_skeletonless_type_unit)
11338 (load_partial_comp_unit, load_full_comp_unit): Update.
11339 (create_dwo_cu_reader): Remove has_children.
11340 (create_cus_hash_table, read_die_and_children): Update.
11341 (read_full_die_1,read_full_die): Remove has_children.
11342 (read_signatured_type): Update.
11343 (class cutu_reader) <has_children>: Remove.
11344
11345 2020-02-08 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2/expr.c: Rename from dwarf2expr.c.
11348 * dwarf2/expr.h: Rename from dwarf2expr.h.
11349 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11350 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11351 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11352 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11353 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11354 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11355 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11356 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11357 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11358 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11359 * dwarf2/loc.c: Rename from dwarf2loc.c.
11360 * dwarf2/loc.h: Rename from dwarf2loc.h.
11361 * dwarf2/read.c: Rename from dwarf2read.c.
11362 * dwarf2/read.h: Rename from dwarf2read.h.
11363 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11364 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11365 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11366 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11367 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11368 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11369 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11370 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11371 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11372 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11373 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11374 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11375 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11376 Update.
11377 * Makefile.in (COMMON_SFILES): Update.
11378 (HFILES_NO_SRCDIR): Update.
11379
11380 2020-02-08 Tom Tromey <tom@tromey.com>
11381
11382 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11383 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11384
11385 2020-02-08 Tom Tromey <tom@tromey.com>
11386
11387 * dwarf2read.h (struct die_info): Don't declare.
11388
11389 2020-02-08 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2read.h (die_info_ptr): Remove typedef.
11392
11393 2020-02-08 Tom Tromey <tom@tromey.com>
11394
11395 * dwarf2read.c (read_call_site_scope)
11396 (handle_data_member_location, dwarf2_add_member_fn)
11397 (mark_common_block_symbol_computed, read_common_block)
11398 (attr_to_dynamic_prop, partial_die_info::read)
11399 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11400 (dwarf2_symbol_mark_computed, set_die_type): Update.
11401 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11402 method.
11403 (attr_form_is_block): Don't declare.
11404 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11405
11406 2020-02-08 Tom Tromey <tom@tromey.com>
11407
11408 * dwarf2read.c (dwarf2_find_base_address, )
11409 (read_call_site_scope, rust_containing_type)
11410 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11411 (handle_data_member_location, dwarf2_add_member_fn)
11412 (get_alignment, read_structure_type, process_structure_scope)
11413 (mark_common_block_symbol_computed, read_common_block)
11414 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11415 (partial_die_info::read, read_attribute_value, new_symbol)
11416 (lookup_die_type, dwarf2_get_ref_die_offset)
11417 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11418 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11419 (dwarf2_symbol_mark_computed): Update.
11420 * dwarf2/attribute.h (struct attribute) <value_as_address,
11421 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11422 methods.
11423 (value_as_address, attr_form_is_section_offset)
11424 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11425 * dwarf2/attribute.c (attribute::value_as_address)
11426 (attribute::form_is_section_offset, attribute::form_is_constant)
11427 (attribute::form_is_ref): Now methods.
11428
11429 2020-02-08 Tom Tromey <tom@tromey.com>
11430
11431 * dwarf2read.c (struct attribute, DW_STRING)
11432 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11433 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11434 (attr_form_is_block, attr_form_is_section_offset)
11435 (attr_form_is_constant, attr_form_is_ref): Move.
11436 * dwarf2/attribute.h: New file.
11437 * dwarf2/attribute.c: New file, from dwarf2read.c.
11438 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11439
11440 2020-02-08 Tom Tromey <tom@tromey.com>
11441
11442 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11443 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11444 Move.
11445 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11446 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11447 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11448 abbrev.c.
11449 * dwarf2/abbrev.h: New file.
11450 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11451 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11452
11453 2020-02-08 Tom Tromey <tom@tromey.com>
11454
11455 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11456 (dwarf2_section_size, dwarf2_get_section_info)
11457 (create_signatured_type_table_from_debug_names)
11458 (create_addrmap_from_aranges, read_debug_names_from_section)
11459 (get_gdb_index_contents_from_section, read_comp_unit_head)
11460 (error_check_comp_unit_head, read_abbrev_offset)
11461 (create_debug_type_hash_table, init_cu_die_reader)
11462 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11463 (read_comp_units_from_section, create_cus_hash_table)
11464 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11465 (create_dwp_v2_section, dwarf2_rnglists_process)
11466 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11467 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11468 (read_indirect_string_from_dwz, read_addr_index_1)
11469 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11470 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11471 (fill_in_loclist_baton): Update.
11472 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11473 get_containing_section, get_bfd_owner, get_bfd_section,
11474 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11475 (dwarf2_read_section, get_section_name, get_section_file_name)
11476 (get_containing_section, get_section_bfd_owner)
11477 (get_section_bfd_section, get_section_name, get_section_file_name)
11478 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11479 declare.
11480 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11481 (dwarf2_section_info::get_bfd_owner)
11482 (dwarf2_section_info::get_bfd_section)
11483 (dwarf2_section_info::get_name)
11484 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11485 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11486 (dwarf2_section_info::read): Now methods.
11487 * dwarf-index-write.c (class debug_names): Update.
11488
11489 2020-02-08 Tom Tromey <tom@tromey.com>
11490
11491 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11492 Move to dwarf2/section.h.
11493 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11494 (get_section_bfd_section, get_section_name)
11495 (get_section_file_name, get_section_id, get_section_flags)
11496 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11497 dwarf2/section.c.
11498 * dwarf2/section.h: New file.
11499 * dwarf2/section.c: New file, from dwarf2read.c.
11500 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11501
11502 2020-02-08 Tom Tromey <tom@tromey.com>
11503
11504 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11505 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11506 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11507 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11508 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11509 * dwarf2/leb.h: New file, from dwarf2read.c.
11510 * dwarf2/leb.c: New file, from dwarf2read.c.
11511 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11512 Remove.
11513 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11514 (COMMON_SFILES): Add dwarf2/leb.c.
11515
11516 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11517
11518 GDB 9.1 released.
11519
11520 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11521
11522 PR gdb/25190:
11523 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11524 * gdb/remote.c (remote_console_output): Update.
11525 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11526 (ui_file_puts): ...this.
11527 * gdb/ui-file.h (ui_file_puts): Add declaration.
11528 * gdb/utils.c (emit_style_escape): Update.
11529 (flush_wrap_buffer): Update.
11530 (fputs_maybe_filtered): Update.
11531 (fputs_unfiltered): Add function.
11532
11533 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11534
11535 * gdb/event-loop.c (gdb_wait_for_event): Update.
11536 * gdb/printcmd.c (printf_command): Update.
11537 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11538 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11539 (gdb_os_flush_stderr): Update.
11540 * gdb/remote.c (remote_console_output): Update.
11541 * gdb/ui-file.c (gdb_flush): Rename to...
11542 (ui_file_flush): ...this.
11543 (stderr_file::write): Update.
11544 (stderr_file::puts): Update.
11545 * gdb/ui-file.h (gdb_flush): Rename to...
11546 (ui_file_flush): ...this.
11547 * gdb/utils.c (gdb_flush): Add function.
11548 * gdb/utils.h (gdb_flush): Add declaration.
11549
11550 2020-02-07 Tom Tromey <tromey@adacore.com>
11551
11552 PR breakpoints/24915:
11553 * source.c (find_and_open_source): Do not check basenames_may_differ.
11554
11555 2020-02-07 Tom Tromey <tom@tromey.com>
11556
11557 * README: Update gdbserver documentation.
11558 * gdbserver: Move to top level.
11559 * configure.tgt (build_gdbserver): Remove.
11560 * configure.ac: Remove --enable-gdbserver.
11561 * configure: Rebuild.
11562 * Makefile.in (distclean): Don't mention gdbserver.
11563
11564 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11565
11566 * source-cache.c (source_cache::ensure): Surround
11567 get_plain_source_lines with a try/catch.
11568 (source_cache::get_line_charpos): Get rid of try/catch
11569 and only check for the return value of "ensure".
11570 * tui/tui-source.c (tui_source_window::set_contents):
11571 Simplify "nlines" calculation.
11572
11573 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11574
11575 * MAINTAINERS (Write After Approval): Add myself.
11576
11577 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11578
11579 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11580 function call.
11581
11582 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11583
11584 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11585
11586 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11587
11588 * nat/riscv-linux-tdesc.h: New file.
11589 * nat/riscv-linux-tdesc.c: New file, taking code from...
11590 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11591 ... here.
11592 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11593 NATDEPFILES.
11594
11595 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11596
11597 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11598 we don't set the fake simulator ptid to the null_ptid.
11599
11600 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11601
11602 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11603 * gdbthread.h (class thread_info) <resumed>: Likewise.
11604 * infrun.c (resume_1): Likewise.
11605 (proceed): Likewise.
11606 (infrun_thread_stop_requested): Likewise.
11607 (stop_all_threads): Likewise.
11608 (handle_inferior_event): Likewise.
11609 (restart_threads): Likewise.
11610 (finish_step_over): Likewise.
11611 (keep_going_stepped_thread): Likewise.
11612 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11613 (linux_handle_extended_wait): Likewise.
11614 * record-btrace.c (get_thread_current_frame_id): Likewise.
11615 * record-full.c (record_full_wait_1): Likewise.
11616 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11617 * target.c (target_resume): Likewise.
11618 * thread.c (set_running_thread): Likewise.
11619
11620 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11621
11622 * f-valprint.c (f77_print_array_1): Changed datatype of index
11623 variable to LONGEST from int to enable it to contain bound
11624 values correctly.
11625
11626 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11627
11628 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11629 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11630 offsets according to FLEN determined.
11631 (riscv_linux_nat_target::read_description): Determine FLEN
11632 dynamically.
11633 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11634 according to FLEN determined.
11635 (riscv_linux_nat_target::store_registers): Likewise.
11636
11637 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11638
11639 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11640 when reg->group is empty and reggroup is not.
11641
11642 2020-01-31 Tom Tromey <tromey@adacore.com>
11643
11644 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11645 Call beneath target's mourn_inferior after unpushing.
11646
11647 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11648
11649 PR tui/9765
11650 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11651 have enough lines to fill the screen, still return the lowest
11652 address we found.
11653
11654 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11655
11656 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11657 '-', '<', and '>' commands.
11658
11659 2020-01-29 Pedro Alves <palves@redhat.com>
11660 Sergio Durigan Junior <sergiodj@redhat.com>
11661
11662 * infcmd.c (construct_inferior_arguments): Assert that
11663 'argc' is greater than 0.
11664
11665 2020-01-29 Luis Machado <luis.machado@linaro.org>
11666
11667 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11668 (BRK_INSN_MASK): Define to 0xd4200000.
11669 (aarch64_program_breakpoint_here_p): New function.
11670 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11671 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11672 breakpoint.c.
11673 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11674 breakpoint.h
11675 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11676 call gdbarch_program_breakpoint_here_p.
11677 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11678 default_program_breakpoint_here_p, changed return type to bool and
11679 simplified.
11680 * breakpoint.h (program_breakpoint_here): Moved prototype to
11681 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11682 return type to bool.
11683 * gdbarch.c: Regenerate.
11684 * gdbarch.h: Regenerate.
11685 * gdbarch.sh (program_breakpoint_here_p): New method.
11686 * infrun.c (handle_signal_stop): Call
11687 gdbarch_program_breakpoint_here_p.
11688
11689 2020-01-26 Tom Tromey <tom@tromey.com>
11690
11691 * ctfread.c (struct ctf_fp_info): Reindent.
11692 (_initialize_ctfread): Remove.
11693
11694 2020-01-26 Tom Tromey <tom@tromey.com>
11695
11696 * psymtab.c (partial_map_expand_apply)
11697 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11698 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11699 (psym_print_stats, psym_expand_symtabs_for_function)
11700 (psym_map_symbol_filenames, psym_map_matching_symbols)
11701 (psym_expand_symtabs_matching)
11702 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11703 (maintenance_check_psymtabs): Use new methods.
11704 * psympriv.h (struct partial_symtab) <readin_p,
11705 get_compunit_symtab>: New methods.
11706 <readin, compunit_symtab>: Remove members.
11707 (struct standard_psymtab): New.
11708 (struct legacy_psymtab): Derive from standard_psymtab.
11709 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11710 standard_psymtab.
11711 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11712
11713 2020-01-26 Tom Tromey <tom@tromey.com>
11714
11715 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11716 read_dependencies. Add assert.
11717 * psymtab.c (partial_symtab::read_dependencies): New method.
11718 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11719 method.
11720 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11721 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11722 read_dependencies.
11723 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11724 Add assert.
11725
11726 2020-01-26 Tom Tromey <tom@tromey.com>
11727
11728 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11729 Call expand_psymtab.
11730 (xcoff_read_symtab): Call expand_psymtab.
11731 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11732 legacy_expand_psymtab.
11733 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11734 method.
11735 (struct legacy_psymtab) <expand_psymtab>: Implement.
11736 <legacy_expand_psymtab>: New member.
11737 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11738 (parse_partial_symbols): Set legacy_expand_psymtab.
11739 (psymtab_to_symtab_1): Change argument order. Call
11740 expand_psymtab.
11741 (new_psymtab): Set legacy_expand_psymtab.
11742 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11743 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11744 expand_psymtab.
11745 (dwarf2_psymtab::expand_psymtab): Rename from
11746 psymtab_to_symtab_1. Call expand_psymtab.
11747 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11748 (dbx_end_psymtab): Likewise.
11749 (dbx_psymtab_to_symtab_1): Change argument order. Call
11750 expand_psymtab.
11751 (dbx_read_symtab): Call expand_psymtab.
11752 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11753 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11754 (ctf_psymtab::read_symtab): Call expand_psymtab.
11755
11756 2020-01-26 Tom Tromey <tom@tromey.com>
11757
11758 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11759 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11760 messages.
11761 * mdebugread.c (mdebug_read_symtab): Remove prints.
11762 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11763 assert.
11764 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11765
11766 2020-01-26 Tom Tromey <tom@tromey.com>
11767
11768 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11769 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11770 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11771 legacy_symtab.
11772 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11773 * psymtab.c (psymtab_to_symtab): Call method.
11774 (dump_psymtab): Update.
11775 * psympriv.h (struct partial_symtab): Add virtual destructor.
11776 <read_symtab>: New method.
11777 (struct legacy_symtab): New.
11778 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11779 (struct pst_map) <pst>: Now a legacy_psymtab.
11780 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11781 (new_psymtab): Use legacy_psymtab.
11782 * dwarf2read.h (struct dwarf2_psymtab): New.
11783 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11784 * dwarf2read.c (dwarf2_create_include_psymtab)
11785 (dwarf2_build_include_psymtabs, create_type_unit_group)
11786 (create_partial_symtab, process_psymtab_comp_unit_reader)
11787 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11788 (set_partial_user): Use dwarf2_psymtab.
11789 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11790 (psymtab_to_symtab_1, process_full_comp_unit)
11791 (process_full_type_unit, dwarf2_ranges_read)
11792 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11793 (dwarf_decode_lines): Use dwarf2_psymtab.
11794 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11795 (add_address_entry_worker, write_one_signatured_type)
11796 (recursively_count_psymbols, recursively_write_psymbols)
11797 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11798 (write_debug_names): Likewise.
11799 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11800 <pst>: Now a legacy_psymtab.
11801 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11802 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11803 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11804 * ctfread.c (struct ctf_psymtab): New.
11805 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11806 ctf_psymtab.
11807 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11808 (create_partial_symtab): Return a ctf_psymtab.
11809 (scan_partial_symbols): Update.
11810
11811 2020-01-26 Tom Tromey <tom@tromey.com>
11812
11813 * xcoffread.c (xcoff_start_psymtab): Use new.
11814 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11815 renamed from start_psymtab_common.
11816 * psympriv.h (struct partial_symtab): Add new constructor.
11817 (start_psymtab_common): Don't declare.
11818 * mdebugread.c (parse_partial_symbols): Use new.
11819 * dwarf2read.c (create_partial_symtab): Use new.
11820 * dbxread.c (start_psymtab): Use new.
11821 * ctfread.c (create_partial_symtab): Use new.
11822
11823 2020-01-26 Tom Tromey <tom@tromey.com>
11824
11825 * xcoffread.c (xcoff_end_psymtab): Use new.
11826 * psymtab.c (start_psymtab_common): Use new.
11827 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11828 Update.
11829 * psympriv.h (struct partial_symtab): Add parameters to
11830 constructor. Don't inline.
11831 (allocate_psymtab): Don't declare.
11832 * mdebugread.c (new_psymtab): Use new.
11833 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11834 * dbxread.c (dbx_end_psymtab): Use new.
11835
11836 2020-01-26 Tom Tromey <tom@tromey.com>
11837
11838 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11839 allocate_psymtab. Update documentation.
11840 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11841 allocate_psymtab. Do not use new.
11842 (allocate_psymtab): Use new. Update.
11843
11844 2020-01-26 Tom Tromey <tom@tromey.com>
11845
11846 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11847 * psymtab.c (psym_print_stats): Update.
11848 * psympriv.h (struct partial_symtab) <readin,
11849 psymtabs_addrmap_supported, anonymous>: Now bool.
11850 * mdebugread.c (psymtab_to_symtab_1): Update.
11851 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11852 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11853 (process_full_comp_unit, process_full_type_unit): Update.
11854 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11855 * ctfread.c (psymtab_to_symtab): Update.
11856
11857 2020-01-26 Tom Tromey <tom@tromey.com>
11858
11859 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11860 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11861 * psymtab.c (psymtab_storage): Delete psymtabs.
11862 (psymtab_storage::allocate_psymtab): Use new.
11863 (psymtab_storage::discard_psymtab): Use delete.
11864 * psympriv.h (struct partial_symtab): Add constructor and
11865 initializers.
11866
11867 2020-01-26 Tom Tromey <tom@tromey.com>
11868
11869 * machoread.c: Do not include psympriv.h.
11870
11871 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11872
11873 * NEWS: Mention the new option and the set/show commands.
11874
11875 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11876
11877 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11878 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11879 (validate_exec_file): New variables, enums, functions.
11880 (exec_file_locate_attach, print_section_info): Style the filenames.
11881 (_initialize_exec): Install show_exec_file_mismatch_command and
11882 set_exec_file_mismatch_command.
11883 * gdbcore.h (validate_exec_file): Declare.
11884 * infcmd.c (attach_command): Call validate_exec_file.
11885 * remote.c ( remote_target::remote_add_inferior): Likewise.
11886
11887 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11888
11889 * frame.c (find_frame_sal): Move call to get_next_frame into more
11890 inner scope.
11891 * inline-frame.c (inilne_state) <inline_state>: Update argument
11892 types.
11893 (inilne_state) <skipped_symbol>: Rename to...
11894 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11895 (skip_inline_frames): Build vector of skipped symbols and use this
11896 to reate the inline_state.
11897 (inline_skipped_symbol): Add a comment and some assertions, fetch
11898 skipped symbol from the list.
11899
11900 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11901
11902 * buildsym.c (lte_is_less_than): Delete.
11903 (buildsym_compunit::end_symtab_with_blockvector): Create local
11904 lambda function to sort line table entries, and use
11905 std::stable_sort instead of std::sort.
11906 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11907 markers when looking for a previous line.
11908
11909 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11910
11911 * dwarf2read.c (lnp_state_machine::record_line): Include
11912 end_sequence parameter in debug print out. Record the line if we
11913 are at an end_sequence marker even if it's not the start of a
11914 statement.
11915 * symmisc.c (maintenance_print_one_line_table): Print end of
11916 sequence markers with 'END' not '0'.
11917
11918 2020-01-24 Pedro Alves <palves@redhat.com>
11919
11920 PR gdb/25410
11921 * thread.c (scoped_restore_current_thread::restore): Use
11922 switch_to_inferior_no_thread.
11923 * exec.c: Include "progspace-and-thread.h".
11924 (add_target_sections, remove_target_sections):
11925 scoped_restore_current_pspace_and_thread instead of
11926 scoped_restore_current_thread.
11927 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11928 and aspace to the inferior before calling clone_program_space.
11929 Remove stale comment.
11930
11931 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11932
11933 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11934 (arm_netbsd_nat_target::fetch_registers): ...this.
11935 (arm_nbsd_nat_target::store_registers): Rename to...
11936 (arm_netbsd_nat_target::store_registers): ...this.
11937
11938 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11939
11940 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11941 register_t.
11942
11943 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11944
11945 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11946 Update comment.
11947 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11948 Likewise.
11949 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11950 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11951 the correct replacement (iterate_over_regset_sections).
11952 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11953 Update comment.
11954
11955 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11956
11957 PR gdb/23718
11958 * gdb/python/python.c (execute_gdb_command): Call
11959 async_enable_stdin in catch block.
11960
11961 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11962
11963 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11964 SWITCH_THRU_ALL_UIS.
11965
11966 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11967
11968 PR tui/9765
11969 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11970 comment, add extra parameter, and update to store previous symbol
11971 when appropriate.
11972 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11973 add extra parameter.
11974 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11975 remove unneeded parameter, add try/catch around gdb_print_insn,
11976 rewrite to add items to asm_lines vector.
11977 (tui_find_backward_disassembly_start_address): New function.
11978 (tui_find_disassembly_address): Updated throughout.
11979 (tui_disasm_window::set_contents): Update for changes to
11980 tui_disassemble.
11981 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11982 number of lines to scroll.
11983
11984 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11985
11986 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11987 (SECT_OFF_DATA): Likewise.
11988 (SECT_OFF_RODATA): Likewise.
11989 (SECT_OFF_TEXT): Likewise.
11990 (SECT_OFF_BSS): Likewise.
11991 (struct objfile) <text_section_offset, data_section_offset>: New
11992 methods.
11993 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11994 objfile::text_section_offset.
11995 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11996 * coffread.c (coff_symtab_read): Likewise.
11997 (enter_linenos): Likewise.
11998 (process_coff_symbol): Likewise.
11999 * ctfread.c (get_objfile_text_range): Likewise.
12000 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12001 Use objfile::data_section_offset.
12002 * dwarf2-frame.c (execute_cfa_program): Use
12003 objfile::text_section_offset.
12004 (dwarf2_frame_find_fde): Likewise.
12005 * dwarf2read.c (create_addrmap_from_index): Likewise.
12006 (create_addrmap_from_aranges): Likewise.
12007 (dw2_find_pc_sect_compunit_symtab): Likewise.
12008 (process_psymtab_comp_unit_reader): Likewise.
12009 (add_partial_symbol): Likewise.
12010 (add_partial_subprogram): Likewise.
12011 (process_full_comp_unit): Likewise.
12012 (read_file_scope): Likewise.
12013 (read_func_scope): Likewise.
12014 (read_lexical_block_scope): Likewise.
12015 (read_call_site_scope): Likewise.
12016 (dwarf2_rnglists_process): Likewise.
12017 (dwarf2_ranges_process): Likewise.
12018 (dwarf2_ranges_read): Likewise.
12019 (dwarf_decode_lines_1): Likewise.
12020 (new_symbol): Likewise.
12021 (dwarf2_fetch_die_loc_sect_off): Likewise.
12022 (dwarf2_per_cu_text_offset): Likewise.
12023 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12024 * hppa-tdep.c (read_unwind_info): Likewise.
12025 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12026 * psympriv.h (struct partial_symtab): Likewise.
12027 * psymtab.c (find_pc_sect_psymtab): Likewise.
12028 * solib-svr4.c (enable_break): Likewise.
12029 * stap-probe.c (relocate_address): Use
12030 objfile::data_section_offset.
12031 * xcoffread.c (enter_line_range): Use
12032 objfile::text_section_offset.
12033 (read_xcoff_symtab): Likewise.
12034
12035 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12036
12037 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12038 declaration to narrower scopes.
12039
12040 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12041
12042 * darwin-nat.h (struct darwin_exception_msg, enum
12043 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12044 Move up.
12045 (class darwin_nat_target) <wait_1, check_new_threads,
12046 decode_exception_message, decode_message, stop_inferior,
12047 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12048 * darwin-nat.c (darwin_check_new_threads): Rename to...
12049 (darwin_nat_target::check_new_threads): ... this.
12050 (darwin_suspend_inferior_it): Remove.
12051 (darwin_decode_exception_message): Rename to...
12052 (darwin_nat_target::decode_exception_message): ... this.
12053 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12054 (darwin_decode_message): Rename to...
12055 (darwin_nat_target::decode_message): ... this.
12056 (cancel_breakpoint): Rename to...
12057 (darwin_nat_target::cancel_breakpoint): ... this.
12058 (darwin_wait): Rename to...
12059 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12060 instead of iterate_over_inferiors.
12061 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12062 (darwin_stop_inferior): Rename to...
12063 (darwin_nat_target::stop_inferior): ... this.
12064 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12065 (darwin_init_thread_list): Rename to...
12066 (darwin_nat_target::init_thread_list): ... this.
12067 (darwin_ptrace_him): Rename to...
12068 (darwin_nat_target::ptrace_him): ... this.
12069 (darwin_nat_target::create_inferior): Pass lambda function to
12070 fork_inferior.
12071 (darwin_nat_target::detach): Call stop_inferior instead of
12072 darwin_stop_inferior.
12073 * fork-inferior.h (fork_inferior): Change init_trace_fun
12074 parameter to gdb::function_view.
12075 * fork-inferior.c (fork_inferior): Likewise.
12076
12077 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12078
12079 * i386-cygwin-tdep.c (core_process_module_section): Update.
12080 * windows-nat.c (struct lm_info_windows): Add text_offset.
12081 (windows_xfer_shared_libraries): Update.
12082 * windows-tdep.c (windows_xfer_shared_library):
12083 Add text_offset_cached argument.
12084 * windows-tdep.h (windows_xfer_shared_library): Update.
12085
12086 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12087
12088 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12089
12090 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12091
12092 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12093 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12094 replace with range-based for.
12095 (gdbsim_interrupt_inferior): Remove.
12096 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12097 with a range-based for. Inline code from
12098 gdbsim_interrupt_inferior.
12099
12100 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12101
12102 * infrun.c (proceed): Fix indentation.
12103
12104 2020-01-21 Tom Tromey <tromey@adacore.com>
12105
12106 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12107 * python/python.c (python_extension_ops): Update.
12108 (gdbpy_colorize): New function.
12109 * python/lib/gdb/__init__.py (colorize): New function.
12110 * extension.h (ext_lang_colorize): Declare.
12111 * extension.c (ext_lang_colorize): New function.
12112 * extension-priv.h (struct extension_language_ops) <colorize>: New
12113 member.
12114 * cli/cli-style.c (_initialize_cli_style): Update help text.
12115
12116 2020-01-21 Luis Machado <luis.machado@linaro.org>
12117
12118 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12119 <cond>: Change type to bool.
12120 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12121 (aarch64_displaced_step_cb): Likewise.
12122 (aarch64_displaced_step_tb): Likewise.
12123
12124 2020-01-21 Luis Machado <luis.machado@linaro.org>
12125
12126 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12127 output.
12128
12129 2020-01-21 Luis Machado <luis.machado@linaro.org>
12130
12131 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12132 <pc_adjust>: Adjust the documentation.
12133 (aarch64_displaced_step_fixup): Check if PC really moved before
12134 adjusting it.
12135
12136 2020-01-19 Tom Tromey <tom@tromey.com>
12137
12138 * disasm.c (~gdb_disassembler): New destructor.
12139 (gdb_buffered_insn_length): Call disassemble_free_target.
12140 * disasm.h (class gdb_disassembler): Declare destructor. Use
12141 DISABLE_COPY_AND_ASSIGN.
12142
12143 2020-01-19 Tom Tromey <tom@tromey.com>
12144
12145 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12146 (die_reader_func_ftype): Remove.
12147 (cutu_reader): New class.
12148 (dw2_get_file_names_reader): Remove "data" parameter.
12149 (dw2_get_file_names): Use cutu_reader.
12150 (create_debug_type_hash_table): Update.
12151 (read_cutu_die_from_dwo): Update comment.
12152 (lookup_dwo_unit): Add dwo_name parameter.
12153 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12154 die_reader_func_ftype and data parameters.
12155 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12156 Remove die_reader_func_ftype and data parameters.
12157 (~cutu_reader): New; from init_cutu_and_read_dies.
12158 (cutu_reader::cutu_reader): Rename from
12159 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12160 and data parameters.
12161 (init_cutu_and_read_dies_simple): Remove.
12162 (struct process_psymtab_comp_unit_data): Remove.
12163 (process_psymtab_comp_unit_reader): Remove data parameter; add
12164 want_partial_unit and pretend_language parameters.
12165 (process_psymtab_comp_unit): Use cutu_reader.
12166 (build_type_psymtabs_reader): Remove data parameter.
12167 (build_type_psymtabs_1): Use cutu_reader.
12168 (process_skeletonless_type_unit): Likewise.
12169 (load_partial_comp_unit_reader): Remove.
12170 (load_partial_comp_unit): Use cutu_reader.
12171 (load_full_comp_unit_reader): Remove.
12172 (load_full_comp_unit): Use cutu_reader.
12173 (struct create_dwo_cu_data): Remove.
12174 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12175 dwo_unit parameters.
12176 (create_cus_hash_table): Use cutu_reader.
12177 (struct dwarf2_read_addr_index_data): Remove.
12178 (dwarf2_read_addr_index_reader): Remove.
12179 (dwarf2_read_addr_index): Use cutu_reader.
12180 (read_signatured_type_reader): Remove.
12181 (read_signatured_type): Use cutu_reader.
12182
12183 2020-01-19 Tom Tromey <tom@tromey.com>
12184
12185 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12186 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12187 (tui_wrefresh): Declare.
12188 * tui/tui-wingeneral.c (suppress_output): New global.
12189 (tui_suppress_output, ~tui_suppress_output): New constructor and
12190 destructor.
12191 (tui_wrefresh): New function.
12192 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12193 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12194 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12195 method.
12196 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12197 tui_wrefresh.
12198 (tui_data_window::no_refresh): New method.
12199 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12200 (tui_reg_command): Use tui_suppress_output
12201 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12202 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12203 method.
12204 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12205
12206 2020-01-19 Tom Tromey <tom@tromey.com>
12207
12208 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12209 Handle case where symtab is null.
12210
12211 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12212
12213 * linux-fork.c (one_fork_p): Simplify.
12214
12215 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12216
12217 * top.c (struct qt_args): Remove.
12218 (kill_or_detach): Change return type to void, replace `void *`
12219 parameter with a proper one.
12220 (print_inferior_quit_action): Likewise.
12221 (quit_confirm): Use range-based for loop to iterate over inferiors.
12222 (quit_force): Likewise.
12223
12224 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12225
12226 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12227 `void *` parameter with proper parameters.
12228 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12229 (print_one_inferior): Change return type to void, replace `void *`
12230 parameter with proper parameters.
12231 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12232 inferiors.
12233 (get_other_inferior): Remove.
12234 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12235 inferiors.
12236
12237 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12238
12239 * mi/mi-interp.c (report_initial_inferior): Remove.
12240 (mi_interp::init): Use range-based for to iterate over inferiors.
12241
12242 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12243
12244 * python/py-inferior.c (build_inferior_list): Remove.
12245 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12246
12247 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12248
12249 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12250 (btrace_stitch_trace): Likewise.
12251 * charset.c (intermediate_encoding): Likewise (vaild).
12252 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12253 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12254 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12255
12256 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12257
12258 * windows-tdep.c (windows_get_tlb_type):
12259 Add rtl_user_process_parameters type.
12260
12261 2020-01-16 Pedro Alves <palves@redhat.com>
12262 Norbert Lange <nolange79@gmail.com>
12263
12264 PR build/24805
12265 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12266 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12267 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12268 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12269 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12270 (ps_plog): Redeclare exported functions with default visibility.
12271
12272 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12273
12274 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12275 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12276
12277 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12278
12279 * infcmd.c (post_create_inferior): Use get_thread_regcache
12280 instead of get_current_regcache.
12281
12282 2020-01-14 Tom Tromey <tom@tromey.com>
12283
12284 PR symtab/12535:
12285 * python/python.c (gdbpy_decode_line): Treat empty string the same
12286 as no argument.
12287
12288 2020-01-14 Tom Tromey <tom@tromey.com>
12289
12290 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12291
12292 2020-01-14 Tom Tromey <tom@tromey.com>
12293
12294 * nat/linux-btrace.c: Don't include <config.h>.
12295 * nat/linux-ptrace.c: Don't include <config.h>.
12296 * nat/x86-linux-dregs.c: Don't include <config.h>.
12297
12298 2020-01-14 Tom Tromey <tom@tromey.com>
12299
12300 * configure: Rebuild.
12301 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12302
12303 2020-01-14 Tom Tromey <tom@tromey.com>
12304
12305 * nat/x86-linux-dregs.c: Include configh.h.
12306 * nat/linux-ptrace.c: Include configh.h.
12307 * nat/linux-btrace.c: Include configh.h.
12308 * defs.h: Include config.h, bfd.h.
12309 * configure.ac: Don't source common.host.
12310 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12311 * configure: Rebuild.
12312 * acinclude.m4: Update path.
12313 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12314 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12315 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12316 (CLIBS): Add LIBSUPPORT.
12317 (CDEPS): Likewise.
12318 (COMMON_SFILES): Remove gdbsupport files.
12319 (HFILES_NO_SRCDIR): Likewise.
12320 (stamp-version): Update path to create-version.sh.
12321 (ALLDEPFILES): Remove gdbsupport files.
12322
12323 2020-01-14 Tom Tromey <tom@tromey.com>
12324
12325 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12326 USE_WIN32API when needed.
12327 * configure.ac (USE_WIN32API): Don't define.
12328 (WIN32LIBS): Use WIN32APILIBS.
12329 * configure: Rebuild.
12330
12331 2020-01-14 Tom Tromey <tom@tromey.com>
12332
12333 * configure: Rebuild.
12334 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12335
12336 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12337
12338 * skip.c (skip_function_command): Make skip w/o arguments use the
12339 name of the inlined function if pc is inside any inlined function.
12340
12341 2020-01-14 Luis Machado <luis.machado@linaro.org>
12342
12343 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12344 * infrun.c (resume_1): Likewise.
12345 (handle_inferior_event): Remove stale comment.
12346 * linux-nat.c (linux_nat_target::resume): Update comments.
12347 (save_stop_reason): Likewise.
12348 (linux_nat_filter_event): Likewise.
12349 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12350
12351 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12352
12353 * elfread.c (record_minimal_symbol): Set section index to 0 for
12354 non-allocatable sections.
12355
12356
12357 2020-01-13 Ali Tamur <tamur@google.com>
12358
12359 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12360 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12361 to gdb::optional. Update comments.
12362 (dwo_file): Update comments.
12363 (read_attribute): Update API to take an additional out parameter,
12364 need_reprocess. This is used to mark attributes that need other
12365 attributes (e.g. str_offsets_base) for correct computation which may not
12366 have been read yet.
12367 (read_attribute_reprocess): New function declaration.
12368 (read_addr_index): Likewise.
12369 (read_dwo_str_index): Likewise.
12370 (read_stub_str_index): Likewise.
12371 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12372 (lookup_addr_base): New function definition.
12373 (lookup_ranges_base): Likewise.
12374 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12375 lookup_ranges_base.
12376 (init_cutu_and_read_dies): Update comments.
12377 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12378 unit. This is used to inherit parent's str_offsets_base and addr_base.
12379 Update comments.
12380 (init_cutu_and_read_dies_simple): Reflect API changes.
12381 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12382 (create_cus_hash_table): Change API to take parent compile unit.
12383 Reflect API changes.
12384 (open_and_init_dwo_file): Reflect API changes.
12385 (dwarf2_get_pc_bounds): Update comments.
12386 (dwarf2_record_block_ranges): Likewise.
12387 (read_full_die_1): Change implementation to reprocess attributes that
12388 need str_offsets_base and addr_base.
12389 (partial_die_info::read): Likewise.
12390 (read_attribute_reprocess): New function definition.
12391 (read_attribute_value): Change API to take an additional out parameter,
12392 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12393 when a non-dwo compile unit has index based attributes.
12394 (read_attribute): Reflect API changes.
12395 (read_addr_index_1): Reflect API changes. Update comments.
12396 (dwarf2_read_addr_index_data): Reflect API changes.
12397 (dwarf2_read_addr_index): Likewise.
12398 (read_str_index): Change API and implementation. This becomes a helper
12399 to be used by the new string index related methods. Update error
12400 message and comments.
12401 (read_dwo_str_index): New function definition.
12402 (read_stub_str_index): Likewise.
12403 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12404 * symfile.h (dwarf2_debug_sections): Likewise.
12405 * xcoffread.c (dwarf2_debug_sections): Likewise.
12406
12407 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12408
12409 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12410 core_reg_sect type to gdb_byte *.
12411 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12412 * cris-tdep.c (fetch_core_registers): Likewise.
12413 * corelow.c (core_target::get_core_register_section): Change
12414 type of `contents` to gdb::byte_vector.
12415
12416 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12417
12418 * tui/tui-wingeneral.c (box_win): Position the title in the center
12419 of the border.
12420
12421 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12422
12423 * corelow.c (core_target::get_core_register_section): Use
12424 std::vector instead of alloca.
12425
12426 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12427
12428 * warning.m4: Add -Wmissing-declarations to build_warnings.
12429 * configure: Re-generate.
12430
12431 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12432
12433 * python/python.c (init__gdb_module): Add declaration.
12434
12435 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12436
12437 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12438 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12439 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12440 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12441 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12442 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12443 * ada-exp.y (_initialize_ada_exp): Add declaration.
12444 * ada-lang.c (_initialize_ada_language): Add declaration.
12445 * ada-tasks.c (_initialize_tasks): Add declaration.
12446 * agent.c (_initialize_agent): Add declaration.
12447 * aix-thread.c (_initialize_aix_thread): Add declaration.
12448 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12449 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12450 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12451 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12452 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12453 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12454 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12455 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12456 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12457 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12458 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12459 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12460 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12461 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12462 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12463 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12464 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12465 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12466 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12467 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12468 * annotate.c (_initialize_annotate): Add declaration.
12469 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12470 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12471 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12472 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12473 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12474 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12475 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12476 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12477 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12478 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12479 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12480 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12481 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12482 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12483 * auto-load.c (_initialize_auto_load): Add declaration.
12484 * auxv.c (_initialize_auxv): Add declaration.
12485 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12486 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12487 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12488 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12489 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12490 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12491 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12492 * breakpoint.c (_initialize_breakpoint): Add declaration.
12493 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12494 * btrace.c (_initialize_btrace): Add declaration.
12495 * charset.c (_initialize_charset): Add declaration.
12496 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12497 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12498 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12499 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12500 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12501 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12502 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12503 * coffread.c (_initialize_coffread): Add declaration.
12504 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12505 * compile/compile.c (_initialize_compile): Add declaration.
12506 * complaints.c (_initialize_complaints): Add declaration.
12507 * completer.c (_initialize_completer): Add declaration.
12508 * copying.c (_initialize_copying): Add declaration.
12509 * corefile.c (_initialize_core): Add declaration.
12510 * corelow.c (_initialize_corelow): Add declaration.
12511 * cp-abi.c (_initialize_cp_abi): Add declaration.
12512 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12513 * cp-support.c (_initialize_cp_support): Add declaration.
12514 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12515 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12516 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12517 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12518 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12519 * ctfread.c (_initialize_ctfread): Add declaration.
12520 * d-lang.c (_initialize_d_language): Add declaration.
12521 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12522 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12523 * dbxread.c (_initialize_dbxread): Add declaration.
12524 * dcache.c (_initialize_dcache): Add declaration.
12525 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12526 * disasm.c (_initialize_disasm): Add declaration.
12527 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12528 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12529 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12530 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12531 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12532 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12533 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12534 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12535 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12536 * elfread.c (_initialize_elfread): Add declaration.
12537 * exec.c (_initialize_exec): Add declaration.
12538 * extension.c (_initialize_extension): Add declaration.
12539 * f-lang.c (_initialize_f_language): Add declaration.
12540 * f-valprint.c (_initialize_f_valprint): Add declaration.
12541 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12542 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12543 * filesystem.c (_initialize_filesystem): Add declaration.
12544 * findcmd.c (_initialize_mem_search): Add declaration.
12545 * findvar.c (_initialize_findvar): Add declaration.
12546 * fork-child.c (_initialize_fork_child): Add declaration.
12547 * frame-base.c (_initialize_frame_base): Add declaration.
12548 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12549 * frame.c (_initialize_frame): Add declaration.
12550 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12551 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12552 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12553 * gcore.c (_initialize_gcore): Add declaration.
12554 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12555 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12556 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12557 * gdbarch.c (_initialize_gdbarch): Add declaration.
12558 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12559 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12560 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12561 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12562 * go-lang.c (_initialize_go_language): Add declaration.
12563 * go32-nat.c (_initialize_go32_nat): Add declaration.
12564 * guile/guile.c (_initialize_guile): Add declaration.
12565 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12566 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12567 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12568 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12569 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12570 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12571 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12572 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12573 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12574 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12575 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12576 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12577 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12578 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12579 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12580 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12581 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12582 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12583 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12584 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12585 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12586 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12587 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12588 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12589 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12590 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12591 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12592 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12593 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12594 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12595 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12596 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12597 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12598 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12599 * infcall.c (_initialize_infcall): Add declaration.
12600 * infcmd.c (_initialize_infcmd): Add declaration.
12601 * inflow.c (_initialize_inflow): Add declaration.
12602 * infrun.c (_initialize_infrun): Add declaration.
12603 * interps.c (_initialize_interpreter): Add declaration.
12604 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12605 * jit.c (_initialize_jit): Add declaration.
12606 * language.c (_initialize_language): Add declaration.
12607 * linux-fork.c (_initialize_linux_fork): Add declaration.
12608 * linux-nat.c (_initialize_linux_nat): Add declaration.
12609 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12610 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12611 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12612 * m2-lang.c (_initialize_m2_language): Add declaration.
12613 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12614 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12615 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12616 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12617 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12618 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12619 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12620 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12621 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12622 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12623 * machoread.c (_initialize_machoread): Add declaration.
12624 * macrocmd.c (_initialize_macrocmd): Add declaration.
12625 * macroscope.c (_initialize_macroscope): Add declaration.
12626 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12627 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12628 * maint.c (_initialize_maint_cmds): Add declaration.
12629 * mdebugread.c (_initialize_mdebugread): Add declaration.
12630 * memattr.c (_initialize_mem): Add declaration.
12631 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12632 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12633 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12634 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12635 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12636 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12637 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12638 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12639 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12640 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12641 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12642 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12643 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12644 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12645 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12646 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12647 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12648 * mipsread.c (_initialize_mipsread): Add declaration.
12649 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12650 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12651 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12652 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12653 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12654 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12655 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12656 * nto-procfs.c (_initialize_procfs): Add declaration.
12657 * objc-lang.c (_initialize_objc_language): Add declaration.
12658 * observable.c (_initialize_observer): Add declaration.
12659 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12660 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12661 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12662 * osabi.c (_initialize_gdb_osabi): Add declaration.
12663 * osdata.c (_initialize_osdata): Add declaration.
12664 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12665 * parse.c (_initialize_parse): Add declaration.
12666 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12667 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12668 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12669 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12670 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12671 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12672 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12673 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12674 * printcmd.c (_initialize_printcmd): Add declaration.
12675 * probe.c (_initialize_probe): Add declaration.
12676 * proc-api.c (_initialize_proc_api): Add declaration.
12677 * proc-events.c (_initialize_proc_events): Add declaration.
12678 * proc-service.c (_initialize_proc_service): Add declaration.
12679 * procfs.c (_initialize_procfs): Add declaration.
12680 * producer.c (_initialize_producer): Add declaration.
12681 * psymtab.c (_initialize_psymtab): Add declaration.
12682 * python/python.c (_initialize_python): Add declaration.
12683 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12684 * record-btrace.c (_initialize_record_btrace): Add declaration.
12685 * record-full.c (_initialize_record_full): Add declaration.
12686 * record.c (_initialize_record): Add declaration.
12687 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12688 * regcache.c (_initialize_regcache): Add declaration.
12689 * reggroups.c (_initialize_reggroup): Add declaration.
12690 * remote-notif.c (_initialize_notif): Add declaration.
12691 * remote-sim.c (_initialize_remote_sim): Add declaration.
12692 * remote.c (_initialize_remote): Add declaration.
12693 * reverse.c (_initialize_reverse): Add declaration.
12694 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12695 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12696 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12697 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12698 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12699 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12700 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12701 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12702 Add declaration.
12703 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12704 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12705 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12706 * rust-exp.y (_initialize_rust_exp): Add declaration.
12707 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12708 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12709 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12710 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12711 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12712 * score-tdep.c (_initialize_score_tdep): Add declaration.
12713 * ser-go32.c (_initialize_ser_dos): Add declaration.
12714 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12715 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12716 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12717 * ser-uds.c (_initialize_ser_socket): Add declaration.
12718 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12719 * serial.c (_initialize_serial): Add declaration.
12720 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12721 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12722 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12723 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12724 * skip.c (_initialize_step_skip): Add declaration.
12725 * sol-thread.c (_initialize_sol_thread): Add declaration.
12726 * solib-aix.c (_initialize_solib_aix): Add declaration.
12727 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12728 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12729 * solib-frv.c (_initialize_frv_solib): Add declaration.
12730 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12731 * solib-target.c (_initialize_solib_target): Add declaration.
12732 * solib.c (_initialize_solib): Add declaration.
12733 * source-cache.c (_initialize_source_cache): Add declaration.
12734 * source.c (_initialize_source): Add declaration.
12735 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12736 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12737 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12738 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12739 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12740 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12741 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12742 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12743 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12744 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12745 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12746 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12747 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12748 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12749 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12750 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12751 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12752 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12753 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12754 * stabsread.c (_initialize_stabsread): Add declaration.
12755 * stack.c (_initialize_stack): Add declaration.
12756 * stap-probe.c (_initialize_stap_probe): Add declaration.
12757 * std-regs.c (_initialize_frame_reg): Add declaration.
12758 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12759 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12760 * symfile.c (_initialize_symfile): Add declaration.
12761 * symmisc.c (_initialize_symmisc): Add declaration.
12762 * symtab.c (_initialize_symtab): Add declaration.
12763 * target.c (_initialize_target): Add declaration.
12764 * target-connection.c (_initialize_target_connection): Add
12765 declaration.
12766 * target-dcache.c (_initialize_target_dcache): Add declaration.
12767 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12768 * thread.c (_initialize_thread): Add declaration.
12769 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12770 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12771 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12772 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12773 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12774 * tracectf.c (_initialize_ctf): Add declaration.
12775 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12776 * tracefile.c (_initialize_tracefile): Add declaration.
12777 * tracepoint.c (_initialize_tracepoint): Add declaration.
12778 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12779 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12780 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12781 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12782 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12783 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12784 * tui/tui.c (_initialize_tui): Add declaration.
12785 * typeprint.c (_initialize_typeprint): Add declaration.
12786 * ui-style.c (_initialize_ui_style): Add declaration.
12787 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12788 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12789 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12790 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12791 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12792 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12793 * unittests/filtered_iterator-selftests.c
12794 (_initialize_filtered_iterator_selftests): Add declaration.
12795 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12796 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12797 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12798 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12799 * unittests/main-thread-selftests.c
12800 (_initialize_main_thread_selftests): Add declaration.
12801 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12802 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12803 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12804 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12805 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12806 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12807 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12808 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12809 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12810 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12811 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12812 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12813 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12814 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12815 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12816 declaration.
12817 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12818 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12819 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12820 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12821 * user-regs.c (_initialize_user_regs): Add declaration.
12822 * utils.c (_initialize_utils): Add declaration.
12823 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12824 * valops.c (_initialize_valops): Add declaration.
12825 * valprint.c (_initialize_valprint): Add declaration.
12826 * value.c (_initialize_values): Add declaration.
12827 * varobj.c (_initialize_varobj): Add declaration.
12828 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12829 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12830 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12831 * windows-nat.c (_initialize_windows_nat): Add declaration.
12832 (_initialize_check_for_gdb_ini): Add declaration.
12833 (_initialize_loadable): Add declaration.
12834 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12835 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12836 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12837 * xcoffread.c (_initialize_xcoffread): Add declaration.
12838 * xml-support.c (_initialize_xml_support): Add declaration.
12839 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12840 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12841 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12842 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12843
12844 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12845
12846 * regformats/regdat.sh: Generate declaration for init function.
12847
12848 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12849
12850 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12851 up.
12852 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12853 close_one_inferior>: New methods.
12854 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12855 pass down target to find_inferior_pid.
12856 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12857 Pass down target to find_inferior_ptid.
12858 (gdbsim_target::create_inferior): Pass down target to
12859 add_thread_silent.
12860 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12861 target down to find_inferior_ptid and switch_to_thread.
12862 (gdbsim_target::close): Update to call close_one_inferior.
12863 (struct resume_data): Remove.
12864 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12865 directly, rather than through a void pointer.
12866 (gdbsim_target::resume): Update to call resume_one_inferior.
12867
12868 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12869
12870 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12871
12872 2020-01-12 Pedro Alves <palves@redhat.com>
12873
12874 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12875 directly for the current inferior instead of
12876 discard_all_inferiors.
12877 (discard_all_inferiors): Delete.
12878
12879 2020-01-11 Tom Tromey <tom@tromey.com>
12880
12881 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12882 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12883 deprecated_safe_get_selected_frame.
12884
12885 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12886
12887 * inferior.c (print_inferior): Switch inferior before printing it.
12888
12889 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12890 Pedro Alves <palves@redhat.com>
12891
12892 * progspace-and-thread.c (switch_to_program_space_and_thread):
12893 Assert there's an inferior for PSPACE. Use
12894 switch_to_inferior_no_thread to switch the inferior too.
12895 * progspace.c (program_space::~program_space): Call
12896 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12897 (program_space::free_all_objfiles): Don't call clear_symtab_users
12898 here.
12899 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12900
12901 2020-01-10 Pedro Alves <palves@redhat.com>
12902
12903 * NEWS: Mention multi-target debugging, "info connections", and
12904 "add-inferior -no-connection".
12905
12906 2020-01-10 Pedro Alves <palves@redhat.com>
12907
12908 * infrun.c: Include "target-connection.h".
12909 (check_multi_target_resumption): New.
12910 (proceed): Call it.
12911 * target-connection.c (make_target_connection_string): Make
12912 extern.
12913 * target-connection.h (make_target_connection_string): Declare.
12914
12915 2020-01-10 Pedro Alves <palves@redhat.com>
12916
12917 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12918 * inferior.c (uiout_field_connection): New function.
12919 (print_inferior): Add new "connection-id" column.
12920 (add_inferior_command): Show connection number/string of added
12921 inferior.
12922 * process-stratum-target.h
12923 (process_stratum_target::connection_string): New virtual method.
12924 (process_stratum_target::connection_number): New field.
12925 * remote.c (remote_target::connection_string): New override.
12926 * target-connection.c: New file.
12927 * target-connection.h: New file.
12928 * target.c (decref_target): Remove process_stratum targets from
12929 the connection list.
12930 (target_stack::push): Add process_stratum targets to the
12931 connection list.
12932
12933 2020-01-10 Pedro Alves <palves@redhat.com>
12934
12935 Revert:
12936 2016-04-12 Pedro Alves <palves@redhat.com>
12937 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12938 Remove references to name.
12939 * serial.h (struct serial) <name>: Delete.
12940
12941 2020-01-10 Pedro Alves <palves@redhat.com>
12942
12943 * gdbarch-selftests.c (register_to_value_test): Remove "target
12944 already pushed" check.
12945
12946 2020-01-10 Pedro Alves <palves@redhat.com>
12947 John Baldwin <jhb@FreeBSD.org>
12948
12949 * aarch64-linux-nat.c
12950 (aarch64_linux_nat_target::thread_architecture): Adjust.
12951 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12952 (task_command_1): Likewise.
12953 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12954 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12955 (aix_thread_target::store_registers)
12956 (aix_thread_target::thread_alive): Adjust.
12957 * amd64-fbsd-tdep.c: Include "inferior.h".
12958 (amd64fbsd_get_thread_local_address): Pass down target.
12959 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12960 thread's gdbarch instead of target_gdbarch.
12961 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12962 get_last_target_status.
12963 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12964 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12965 inferiors.
12966 (update_inserted_breakpoint_locations): Skip if inferiors with no
12967 execution.
12968 (update_global_location_list): When handling moribund locations,
12969 find representative inferior for location's pspace, and use thread
12970 count of its process_stratum target.
12971 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12972 * bsd-uthread.c (bsd_uthread_target::wait): Use
12973 as_process_stratum_target and adjust thread_change_ptid and
12974 add_thread calls.
12975 (bsd_uthread_target::update_thread_list): Use
12976 as_process_stratum_target and adjust find_thread_ptid,
12977 thread_change_ptid and add_thread calls.
12978 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12979 find_thread_ptid call.
12980 * corelow.c (add_to_thread_list): Adjust add_thread call.
12981 (core_target_open): Adjust add_thread_silent and thread_count
12982 calls.
12983 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12984 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12985 * event-top.c (async_disconnect): Pop targets from all inferiors.
12986 * exec.c (add_target_sections): Push exec target on all inferiors
12987 sharing the program space.
12988 (remove_target_sections): Remove the exec target from all
12989 inferiors sharing the program space.
12990 (exec_on_vfork): New.
12991 * exec.h (exec_on_vfork): Declare.
12992 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12993 Pass it down.
12994 (fbsd_nat_target::update_thread_list): Adjust.
12995 (fbsd_nat_target::resume): Adjust.
12996 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12997 down.
12998 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12999 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13000 get_thread_arch_regcache call.
13001 * fork-child.c (gdb_startup_inferior): Pass target down to
13002 startup_inferior and set_executing.
13003 * gdbthread.h (struct process_stratum_target): Forward declare.
13004 (add_thread, add_thread_silent, add_thread_with_info)
13005 (in_thread_list): Add process_stratum_target parameter.
13006 (find_thread_ptid(inferior*, ptid_t)): New overload.
13007 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13008 parameter.
13009 (all_threads()): Delete overload.
13010 (all_threads, all_non_exited_threads): Add process_stratum_target
13011 parameter.
13012 (all_threads_safe): Use brace initialization.
13013 (thread_count): Add process_stratum_target parameter.
13014 (set_resumed, set_running, set_stop_requested, set_executing)
13015 (threads_are_executing, finish_thread_state): Add
13016 process_stratum_target parameter.
13017 (switch_to_thread): Use is_current_thread.
13018 * i386-fbsd-tdep.c: Include "inferior.h".
13019 (i386fbsd_get_thread_local_address): Pass down target.
13020 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13021 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13022 have_inferiors check.
13023 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13024 (inf_ptrace_target::attach): Adjust.
13025 * infcall.c (run_inferior_call): Adjust.
13026 * infcmd.c (run_command_1): Pass target to
13027 scoped_finish_thread_state.
13028 (proceed_thread_callback): Skip inferiors with no execution.
13029 (continue_command): Rename 'all_threads' local to avoid hiding
13030 'all_threads' function. Adjust get_last_target_status call.
13031 (prepare_one_step): Adjust set_running call.
13032 (signal_command): Use user_visible_resume_target. Compare thread
13033 pointers instead of inferior_ptid.
13034 (info_program_command): Adjust to pass down target.
13035 (attach_command): Mark target's 'thread_executing' flag.
13036 (stop_current_target_threads_ns): New, factored out from ...
13037 (interrupt_target_1): ... this. Switch inferior before making
13038 target calls.
13039 * inferior-iter.h
13040 (struct all_inferiors_iterator, struct all_inferiors_range)
13041 (struct all_inferiors_safe_range)
13042 (struct all_non_exited_inferiors_range): Filter on
13043 process_stratum_target too. Remove explicit.
13044 * inferior.c (inferior::inferior): Push dummy target on target
13045 stack.
13046 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13047 Add process_stratum_target parameter, and pass it down.
13048 (have_live_inferiors): Adjust.
13049 (switch_to_inferior_and_push_target): New.
13050 (add_inferior_command, clone_inferior_command): Handle
13051 "-no-connection" parameter. Use
13052 switch_to_inferior_and_push_target.
13053 (_initialize_inferior): Mention "-no-connection" option in
13054 the help of "add-inferior" and "clone-inferior" commands.
13055 * inferior.h: Include "process-stratum-target.h".
13056 (interrupt_target_1): Use bool.
13057 (struct inferior) <push_target, unpush_target, target_is_pushed,
13058 find_target_beneath, top_target, process_target, target_at,
13059 m_stack>: New.
13060 (discard_all_inferiors): Delete.
13061 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13062 (all_inferiors, all_non_exited_inferiors): Add
13063 process_stratum_target parameter.
13064 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13065 (target_last_proc_target): New global.
13066 (follow_fork_inferior): Push target on new inferior. Pass target
13067 to add_thread_silent. Call exec_on_vfork. Handle target's
13068 reference count.
13069 (follow_fork): Adjust get_last_target_status call. Also consider
13070 target.
13071 (follow_exec): Push target on new inferior.
13072 (struct execution_control_state) <target>: New field.
13073 (user_visible_resume_target): New.
13074 (do_target_resume): Call target_async.
13075 (resume_1): Set target's threads_executing flag. Consider resume
13076 target.
13077 (commit_resume_all_targets): New.
13078 (proceed): Also consider resume target. Skip threads of inferiors
13079 with no execution. Commit resumtion in all targets.
13080 (start_remote): Pass current inferior to wait_for_inferior.
13081 (infrun_thread_stop_requested): Consider target as well. Pass
13082 thread_info pointer to clear_inline_frame_state instead of ptid.
13083 (infrun_thread_thread_exit): Consider target as well.
13084 (random_pending_event_thread): New inferior parameter. Use it.
13085 (do_target_wait): Rename to ...
13086 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13087 down.
13088 (threads_are_resumed_pending_p, do_target_wait): New.
13089 (prepare_for_detach): Adjust calls.
13090 (wait_for_inferior): New inferior parameter. Handle it. Use
13091 do_target_wait_1 instead of do_target_wait.
13092 (fetch_inferior_event): Adjust. Switch to representative
13093 inferior. Pass target down.
13094 (set_last_target_status): Add process_stratum_target parameter.
13095 Save target in global.
13096 (get_last_target_status): Add process_stratum_target parameter and
13097 handle it.
13098 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13099 (context_switch): Check inferior_ptid == null_ptid before calling
13100 inferior_thread().
13101 (get_inferior_stop_soon): Pass down target.
13102 (wait_one): Rename to ...
13103 (poll_one_curr_target): ... this.
13104 (struct wait_one_event): New.
13105 (wait_one): New.
13106 (stop_all_threads): Adjust.
13107 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13108 event's target.
13109 (switch_back_to_stepped_thread): Also consider target.
13110 (print_stop_event): Update.
13111 (normal_stop): Update. Also consider the resume target.
13112 * infrun.h (wait_for_inferior): Remove declaration.
13113 (user_visible_resume_target): New declaration.
13114 (get_last_target_status, set_last_target_status): New
13115 process_stratum_target parameter.
13116 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13117 process_stratum_target parameter, and use it.
13118 (clear_inline_frame_state (thread_info*)): New.
13119 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13120 process_stratum_target parameter.
13121 (clear_inline_frame_state (thread_info*)): Declare.
13122 * linux-fork.c (delete_checkpoint_command): Pass target down to
13123 find_thread_ptid.
13124 (checkpoint_command): Adjust.
13125 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13126 instead of just tweaking inferior_ptid.
13127 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13128 (exit_lwp): Pass target down to find_thread_ptid.
13129 (attach_proc_task_lwp_callback): Pass target down to
13130 add_thread/set_running/set_executing.
13131 (linux_nat_target::attach): Pass target down to
13132 thread_change_ptid.
13133 (get_detach_signal): Pass target down to find_thread_ptid.
13134 Consider last target status's target.
13135 (linux_resume_one_lwp_throw, resume_lwp)
13136 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13137 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13138 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13139 (linux_nat_target::async_wait_fd): New.
13140 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13141 target down.
13142 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13143 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13144 * linux-thread-db.c (struct thread_db_info::process_target): New
13145 field.
13146 (add_thread_db_info): Save target.
13147 (get_thread_db_info): New process_stratum_target parameter. Also
13148 match target.
13149 (delete_thread_db_info): New process_stratum_target parameter.
13150 Also match target.
13151 (thread_from_lwp): Adjust to pass down target.
13152 (thread_db_notice_clone): Pass down target.
13153 (check_thread_db_callback): Pass down target.
13154 (try_thread_db_load_1): Always push the thread_db target.
13155 (try_thread_db_load, record_thread): Pass target down.
13156 (thread_db_target::detach): Pass target down. Always unpush the
13157 thread_db target.
13158 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13159 target down. Always unpush the thread_db target.
13160 (find_new_threads_callback, thread_db_find_new_threads_2)
13161 (thread_db_target::update_thread_list): Pass target down.
13162 (thread_db_target::pid_to_str): Pass current inferior down.
13163 (thread_db_target::get_thread_local_address): Pass target down.
13164 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13165 target down.
13166 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13167 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13168 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13169 (procfs_init_inferior): Rename to ...
13170 (procfs_target::procfs_init_inferior): ... this and adjust.
13171 (procfs_target::create_inferior, procfs_notice_thread)
13172 (procfs_do_thread_registers): Adjust.
13173 * ppc-fbsd-tdep.c: Include "inferior.h".
13174 (ppcfbsd_get_thread_local_address): Pass down target.
13175 * proc-service.c (ps_xfer_memory): Switch current inferior and
13176 program space as well.
13177 (get_ps_regcache): Pass target down.
13178 * process-stratum-target.c
13179 (process_stratum_target::thread_address_space)
13180 (process_stratum_target::thread_architecture): Pass target down.
13181 * process-stratum-target.h
13182 (process_stratum_target::threads_executing): New field.
13183 (as_process_stratum_target): New.
13184 * ravenscar-thread.c
13185 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13186 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13187 down.
13188 * record-btrace.c (record_btrace_target::info_record): Adjust.
13189 (record_btrace_target::record_method)
13190 (record_btrace_target::record_is_replaying)
13191 (record_btrace_target::fetch_registers)
13192 (get_thread_current_frame_id, record_btrace_target::resume)
13193 (record_btrace_target::wait, record_btrace_target::stop): Pass
13194 target down.
13195 * record-full.c (record_full_wait_1): Switch to event thread.
13196 Pass target down.
13197 * regcache.c (regcache::regcache)
13198 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13199 process_stratum_target parameter and handle it.
13200 (current_thread_target): New global.
13201 (get_thread_regcache): Add process_stratum_target parameter and
13202 handle it. Switch inferior before calling target method.
13203 (get_thread_regcache): Pass target down.
13204 (get_thread_regcache_for_ptid): Pass target down.
13205 (registers_changed_ptid): Add process_stratum_target parameter and
13206 handle it.
13207 (registers_changed_thread, registers_changed): Pass target down.
13208 (test_get_thread_arch_aspace_regcache): New.
13209 (current_regcache_test): Define a couple local test_target_ops
13210 instances and use them for testing.
13211 (readwrite_regcache): Pass process_stratum_target parameter.
13212 (cooked_read_test, cooked_write_test): Pass mock_target down.
13213 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13214 (get_thread_arch_aspace_regcache): Add process_stratum_target
13215 parameter.
13216 (regcache::target): New method.
13217 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13218 (regcache::registers_changed_ptid): Add process_stratum_target
13219 parameter.
13220 (regcache::m_target): New field.
13221 (registers_changed_ptid): Add process_stratum_target parameter.
13222 * remote.c (remote_state::supports_vCont_probed): New field.
13223 (remote_target::async_wait_fd): New method.
13224 (remote_unpush_and_throw): Add remote_target parameter.
13225 (get_current_remote_target): Adjust.
13226 (remote_target::remote_add_inferior): Push target.
13227 (remote_target::remote_add_thread)
13228 (remote_target::remote_notice_new_inferior)
13229 (get_remote_thread_info): Pass target down.
13230 (remote_target::update_thread_list): Skip threads of inferiors
13231 bound to other targets. (remote_target::close): Don't discard
13232 inferiors. (remote_target::add_current_inferior_and_thread)
13233 (remote_target::process_initial_stop_replies)
13234 (remote_target::start_remote)
13235 (remote_target::remote_serial_quit_handler): Pass down target.
13236 (remote_target::remote_unpush_target): New remote_target
13237 parameter. Unpush the target from all inferiors.
13238 (remote_target::remote_unpush_and_throw): New remote_target
13239 parameter. Pass it down.
13240 (remote_target::open_1): Check whether the current inferior has
13241 execution instead of checking whether any inferior is live. Pass
13242 target down.
13243 (remote_target::remote_detach_1): Pass down target. Use
13244 remote_unpush_target.
13245 (extended_remote_target::attach): Pass down target.
13246 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13247 (remote_target::append_resumption): Pass down target.
13248 (remote_target::append_pending_thread_resumptions)
13249 (remote_target::remote_resume_with_hc, remote_target::resume)
13250 (remote_target::commit_resume): Pass down target.
13251 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13252 (remote_target::interrupt_query)
13253 (remote_target::remove_new_fork_children)
13254 (remote_target::check_pending_events_prevent_wildcard_vcont)
13255 (remote_target::remote_parse_stop_reply)
13256 (remote_target::process_stop_reply): Pass down target.
13257 (first_remote_resumed_thread): New remote_target parameter. Pass
13258 it down.
13259 (remote_target::wait_as): Pass down target.
13260 (unpush_and_perror): New remote_target parameter. Pass it down.
13261 (remote_target::readchar, remote_target::remote_serial_write)
13262 (remote_target::getpkt_or_notif_sane_1)
13263 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13264 down target.
13265 (remote_target::mourn_inferior): Pass down target. Use
13266 remote_unpush_target.
13267 (remote_target::core_of_thread)
13268 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13269 (remote_target::pid_to_exec_file)
13270 (remote_target::thread_handle_to_thread_info): Pass down target.
13271 (remote_target::async_wait_fd): New.
13272 * riscv-fbsd-tdep.c: Include "inferior.h".
13273 (riscv_fbsd_get_thread_local_address): Pass down target.
13274 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13275 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13276 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13277 Adjust.
13278 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13279 * solib-svr4.c (enable_break): Pass down target.
13280 * spu-multiarch.c (parse_spufs_run): Pass down target.
13281 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13282 * target-delegates.c: Regenerate.
13283 * target.c (g_target_stack): Delete.
13284 (current_top_target): Return the current inferior's top target.
13285 (target_has_execution_1): Refer to the passed-in inferior's top
13286 target.
13287 (target_supports_terminal_ours): Check whether the initial
13288 inferior was already created.
13289 (decref_target): New.
13290 (target_stack::push): Incref/decref the target.
13291 (push_target, push_target, unpush_target): Adjust.
13292 (target_stack::unpush): Defref target.
13293 (target_is_pushed): Return bool. Adjust to refer to the current
13294 inferior's target stack.
13295 (dispose_inferior): Delete, and inline parts ...
13296 (target_preopen): ... here. Only dispose of the current inferior.
13297 (target_detach): Hold strong target reference while detaching.
13298 Pass target down.
13299 (target_thread_name): Add assertion.
13300 (target_resume): Pass down target.
13301 (target_ops::beneath, find_target_at): Adjust to refer to the
13302 current inferior's target stack.
13303 (get_dummy_target): New.
13304 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13305 has a thread running.
13306 (initialize_targets): Rename to ...
13307 (_initialize_target): ... this.
13308 * target.h: Include "gdbsupport/refcounted-object.h".
13309 (struct target_ops): Inherit refcounted_object.
13310 (target_ops::shortname, target_ops::longname): Make const.
13311 (target_ops::async_wait_fd): New method.
13312 (decref_target): Declare.
13313 (struct target_ops_ref_policy): New.
13314 (target_ops_ref): New typedef.
13315 (get_dummy_target): Declare function.
13316 (target_is_pushed): Return bool.
13317 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13318 (all_matching_threads_iterator::all_matching_threads_iterator):
13319 Handle filter target.
13320 * thread-iter.h (struct all_matching_threads_iterator, struct
13321 all_matching_threads_range, class all_non_exited_threads_range):
13322 Filter by target too. Remove explicit.
13323 * thread.c (threads_executing): Delete.
13324 (inferior_thread): Pass down current inferior.
13325 (clear_thread_inferior_resources): Pass down thread pointer
13326 instead of ptid_t.
13327 (add_thread_silent, add_thread_with_info, add_thread): Add
13328 process_stratum_target parameter. Use it for thread and inferior
13329 searches.
13330 (is_current_thread): New.
13331 (thread_info::deletable): Use it.
13332 (find_thread_ptid, thread_count, in_thread_list)
13333 (thread_change_ptid, set_resumed, set_running): New
13334 process_stratum_target parameter. Pass it down.
13335 (set_executing): New process_stratum_target parameter. Pass it
13336 down. Adjust reference to 'threads_executing'.
13337 (threads_are_executing): New process_stratum_target parameter.
13338 Adjust reference to 'threads_executing'.
13339 (set_stop_requested, finish_thread_state): New
13340 process_stratum_target parameter. Pass it down.
13341 (switch_to_thread): Also match inferior.
13342 (switch_to_thread): New process_stratum_target parameter. Pass it
13343 down.
13344 (update_threads_executing): Reimplement.
13345 * top.c (quit_force): Pop targets from all inferior.
13346 (gdb_init): Don't call initialize_targets.
13347 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13348 Declare.
13349 (windows_add_thread, windows_delete_thread): Adjust.
13350 (get_windows_debug_event): Rename to ...
13351 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13352 * tracefile-tfile.c (tfile_target_open): Pass down target.
13353 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13354 Forward declare.
13355 (switch_to_thread): Add process_stratum_target parameter.
13356 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13357 parameter. Use it.
13358 (mi_on_resume): Pass target down.
13359 * nat/fork-inferior.c (startup_inferior): Add
13360 process_stratum_target parameter. Pass it down.
13361 * nat/fork-inferior.h (startup_inferior): Add
13362 process_stratum_target parameter.
13363 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13364
13365 2020-01-10 Pedro Alves <palves@redhat.com>
13366
13367 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13368 directly. Instead find the first thread in the thread list and
13369 use switch_to_thread.
13370
13371 2020-01-10 Pedro Alves <palves@redhat.com>
13372
13373 * remote.c (remote_target::remote_add_inferior): Don't bind a
13374 process to the current inferior if the current inferior is already
13375 bound to a process.
13376
13377 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13378 Pedro Alves <palves@redhat.com>
13379
13380 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13381 If no process is specified, return null_ptid instead of
13382 inferior_ptid.
13383 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13384 TARGET_WAITKIND_SIGNALLED with no pid.
13385
13386 2020-01-10 Pedro Alves <palves@redhat.com>
13387
13388 * remote.c (first_remote_resumed_thread): New.
13389 (remote_target::wait_as): Use it as default event_ptid instead of
13390 inferior_ptid.
13391
13392 2020-01-10 Pedro Alves <palves@redhat.com>
13393
13394 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13395
13396 2020-01-10 Pedro Alves <palves@redhat.com>
13397
13398 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13399 not -1.
13400
13401 2020-01-10 Pedro Alves <palves@redhat.com>
13402
13403 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13404 ptid to get_last_target_status.
13405 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13406 ptid to get_last_target_status.
13407 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13408 get_last_target_status.
13409 (info_program_command): Don't pass a target_waitstatus to
13410 get_last_target_status.
13411 * infrun.c (init_wait_for_inferior): Use
13412 nullify_last_target_wait_ptid.
13413 (get_last_target_status): Handle nullptr arguments.
13414 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13415 (print_stop_event): Don't pass a ptid to get_last_target_status.
13416 (normal_stop): Don't pass a ptid to get_last_target_status.
13417 * infrun.h (get_last_target_status, set_last_target_status): Move
13418 comments here and update.
13419 (nullify_last_target_wait_ptid): Declare.
13420 * linux-fork.c (fork_load_infrun_state): Remove local extern
13421 declaration of nullify_last_target_wait_ptid.
13422 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13423 to get_last_target_status.
13424
13425 2020-01-10 Pedro Alves <palves@redhat.com>
13426
13427 * gdbthread.h (scoped_restore_current_thread)
13428 <dont_restore, restore, m_dont_restore>: Declare.
13429 * thread.c (thread_alive): Add assertion. Return bool.
13430 (switch_to_thread_if_alive): New.
13431 (prune_threads): Switch inferior/thread.
13432 (print_thread_info_1): Switch thread before calling target methods.
13433 (scoped_restore_current_thread::restore): New, factored out from
13434 ...
13435 (scoped_restore_current_thread::~scoped_restore_current_thread):
13436 ... this.
13437 (scoped_restore_current_thread::scoped_restore_current_thread):
13438 Add assertion.
13439 (thread_apply_all_command, thread_select): Use
13440 switch_to_thread_if_alive.
13441 * infrun.c (proceed, restart_threads, handle_signal_stop)
13442 (switch_back_to_stepped_thread): Switch current thread before
13443 calling target methods.
13444
13445 2020-01-10 Pedro Alves <palves@redhat.com>
13446
13447 * inferior.c (switch_to_inferior_no_thread): New function,
13448 factored out from ...
13449 (inferior_command): ... here.
13450 * inferior.h (switch_to_inferior_no_thread): Declare.
13451 * mi/mi-main.c (run_one_inferior): Use
13452 switch_to_inferior_no_thread.
13453
13454 2020-01-10 Pedro Alves <palves@redhat.com>
13455
13456 * infcmd.c (kill_command): Remove dead code.
13457
13458 2020-01-10 Pedro Alves <palves@redhat.com>
13459
13460 * remote.c (remote_target::mourn_inferior): No longer check
13461 whether the target is running.
13462
13463 2020-01-10 Pedro Alves <palves@redhat.com>
13464
13465 * corelow.c (core_target::has_execution): Change parameter type to
13466 inferior pointer.
13467 * inferior.c (number_of_live_inferiors): Use
13468 inferior::has_execution instead of target_has_execution_1.
13469 * inferior.h (inferior::has_execution): New.
13470 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13471 inferior::has_execution instead of target_has_execution_1.
13472 * process-stratum-target.c
13473 (process_stratum_target::has_execution): Change parameter type to
13474 inferior pointer. Check the inferior's PID instead of
13475 inferior_ptid.
13476 * process-stratum-target.h
13477 (process_stratum_target::has_execution): Change parameter type to
13478 inferior pointer.
13479 * record-full.c (record_full_core_target::has_execution): Change
13480 parameter type to inferior pointer.
13481 * target.c (target_has_execution_1): Change parameter type to
13482 inferior pointer.
13483 (target_has_execution_current): Adjust.
13484 * target.h (target_ops::has_execution): Change parameter type to
13485 inferior pointer.
13486 (target_has_execution_1): Change parameter type to inferior
13487 pointer. Change return type to bool.
13488 * tracefile.h (tracefile_target::has_execution): Change parameter
13489 type to inferior pointer.
13490
13491 2020-01-10 Pedro Alves <palves@redhat.com>
13492
13493 * exceptions.c (print_flush): Remove current_top_target() check.
13494
13495 2020-01-10 Pedro Alves <palves@redhat.com>
13496
13497 * remote.c (show_remote_exec_file): Show the current inferior's
13498 exec-file instead of the command variable's value.
13499
13500 2020-01-10 Pedro Alves <palves@redhat.com>
13501
13502 * record-full.c (record_full_resume_ptid): New global.
13503 (record_full_target::resume): Set it.
13504 (record_full_wait_1): Use record_full_resume_ptid instead of
13505 inferior_ptid.
13506
13507 2020-01-10 Pedro Alves <palves@redhat.com>
13508
13509 * gdbthread.h (scoped_restore_current_thread)
13510 <dont_restore, restore, m_dont_restore>: Declare.
13511 * thread.c (thread_alive): Add assertion. Return bool.
13512 (switch_to_thread_if_alive): New.
13513 (prune_threads): Switch inferior/thread.
13514 (print_thread_info_1): Switch thread before calling target methods.
13515 (scoped_restore_current_thread::restore): New, factored out from
13516 ...
13517 (scoped_restore_current_thread::~scoped_restore_current_thread):
13518 ... this.
13519 (scoped_restore_current_thread::scoped_restore_current_thread):
13520 Add assertion.
13521 (thread_apply_all_command, thread_select): Use
13522 switch_to_thread_if_alive.
13523
13524 2020-01-10 George Barrett <bob@bob131.so>
13525
13526 * stap-probe.c (stap_modify_semaphore): Don't check for null
13527 semaphores.
13528 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13529 for null semaphores.
13530
13531 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13532
13533 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13534 all source windows, and maintain horizontal scroll status while
13535 doing so.
13536
13537 2020-01-09 Tom Tromey <tom@tromey.com>
13538
13539 PR tui/18932:
13540 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13541 update_source_window, not print_source_lines.
13542
13543 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * tui/tui.c (tui_enable): Register tui hooks after calling
13546 tui_display_main.
13547
13548 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13549
13550 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13551
13552 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13553
13554 * thread.c (print_thread_info_1): Fix indentation.
13555
13556 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13557
13558 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13559 unique_xmalloc_ptr outside the if to always free the demangled name.
13560
13561 2020-01-08 Tom Tromey <tromey@adacore.com>
13562
13563 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13564 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13565 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13566 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13567 Remove.
13568 (section_offsets): New typedef.
13569 * symtab.c (fixup_section, get_msymbol_address): Update.
13570 * symmisc.c (dump_msymbols): Update.
13571 * symfile.h (relative_addr_info_to_section_offsets)
13572 (symfile_map_offsets_to_segments): Update.
13573 * symfile.c (build_section_addr_info_from_objfile)
13574 (init_objfile_sect_indices): Update.
13575 (struct place_section_arg): Change type of "offsets".
13576 (place_section): Update.
13577 (relative_addr_info_to_section_offsets): Change type of
13578 "section_offsets". Remove "num_sections" parameter.
13579 (default_symfile_offsets, syms_from_objfile_1)
13580 (set_objfile_default_section_offset): Update.
13581 (reread_symbols): No need to preserve section offsets by hand.
13582 (symfile_map_offsets_to_segments): Change type of "offsets".
13583 * stap-probe.c (relocate_address): Update.
13584 * stabsread.h (process_one_symbol): Update.
13585 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13586 (solib_target_relocate_section_addresses): Update.
13587 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13588 Update.
13589 * solib-frv.c (frv_relocate_main_executable): Update.
13590 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13591 * solib-aix.c (solib_aix_get_section_offsets): Change return
13592 type.
13593 (solib_aix_solib_create_inferior_hook): Update.
13594 * remote.c (remote_target::get_offsets): Update.
13595 * psymtab.c (find_pc_sect_psymtab): Update.
13596 * psympriv.h (struct partial_symbol) <address, text_low,
13597 text_high>: Update.
13598 * objfiles.h (obj_section_offset): Update.
13599 (struct objfile) <section_offsets>: Change type.
13600 <num_sections>: Remove.
13601 (objfile_relocate): Update.
13602 * objfiles.c (entry_point_address_query): Update
13603 (relocate_one_symbol): Change type of "section_offsets".
13604 (objfile_relocate1, objfile_relocate1): Change type of
13605 "new_offsets".
13606 (objfile_rebase1): Update.
13607 * mipsread.c (mipscoff_symfile_read): Update.
13608 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13609 parameter.
13610 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13611 (parse_external, psymtab_to_symtab_1): Update.
13612 * machoread.c (macho_symfile_offsets): Update.
13613 * ia64-tdep.c (ia64_find_unwind_table): Update.
13614 * hppa-tdep.c (read_unwind_info): Update.
13615 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13616 * dwarf2read.c (create_addrmap_from_index)
13617 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13618 (process_psymtab_comp_unit_reader, add_partial_symbol)
13619 (add_partial_subprogram, process_full_comp_unit)
13620 (read_file_scope, read_func_scope, read_lexical_block_scope)
13621 (read_call_site_scope, dwarf2_rnglists_process)
13622 (dwarf2_ranges_process, dwarf2_ranges_read)
13623 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13624 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13625 Update.
13626 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13627 Update.
13628 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13629 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13630 (process_one_symbol): Change type of "section_offsets".
13631 * ctfread.c (get_objfile_text_range): Update.
13632 * coffread.c (coff_symtab_read, enter_linenos)
13633 (process_coff_symbol): Update.
13634 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13635 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13636
13637 2020-01-08 Tom Tromey <tromey@adacore.com>
13638
13639 * dwarf2read.c (parse_macro_definition): Use std::string.
13640 (parse_macro_definition): Likewise.
13641
13642 2020-01-08 Tom Tromey <tromey@adacore.com>
13643
13644 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13645 (ATTR_ALLOC_CHUNK): Remove.
13646
13647 2020-01-08 Tom Tromey <tromey@adacore.com>
13648
13649 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13650
13651 2020-01-08 Tom Tromey <tromey@adacore.com>
13652
13653 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13654 (dwarf2_compute_name, open_dwo_file): Likewise.
13655 (process_enumeration_scope): Use std::vector.
13656 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13657 (partial_die_info::fixup, dwarf2_start_subfile)
13658 (guess_full_die_structure_name, dwarf2_name): Likewise.
13659 (determine_prefix): Update.
13660 (guess_full_die_structure_name): Make return type const.
13661 (partial_die_full_name): Return unique_xmalloc_ptr.
13662 (DW_FIELD_ALLOC_CHUNK): Remove.
13663
13664 2020-01-07 Tom Tromey <tromey@adacore.com>
13665
13666 PR build/24937:
13667 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13668
13669 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13670
13671 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13672
13673 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13674
13675 * stack.c (print_frame_info): Move disassemble_next_line code
13676 inside source_print block.
13677
13678 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13679
13680 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13681 gdb/signals.h, as we are now using native signal symbols.
13682
13683 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13684
13685 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13686 overflow by an early check of content vs threshold.
13687 * tui/tui-source.c (tui_source_window::line_is_displayed):
13688 Likewise.
13689
13690 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13691
13692 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13693
13694 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13695
13696 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13697 export table if no section contains it's RVA.
13698
13699 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13700
13701 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13702
13703 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13704
13705 * source.c (print_source_lines_base): Set last_line_listed.
13706
13707 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13708
13709 * tui/tui-disasm.c: Remove trailing spaces.
13710
13711 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13712 Pedro Alves <palves@redhat.com>
13713
13714 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13715 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13716 (windows_gdb_signal_to_target): New function, uses the above
13717 enumeration to convert GDB internal signal codes to equivalent
13718 Windows codes.
13719 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13720 * windows-nat.c: Include "gdb_wait.h".
13721 (get_windows_debug_event): Extract the fatal exception from the
13722 exit status and convert to the equivalent Posix signal number.
13723 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13724 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13725 * gdbsupport/gdb_wait.c: New file, implements
13726 windows_status_to_termsig.
13727 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13728 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13729
13730 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13731
13732 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13733 show_layout.
13734
13735 2020-01-05 Luis Machado <luis.machado@linaro.org>
13736
13737 * aarch64-linux-nat.c
13738 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13739 and bfd_mach_aarch64.
13740
13741 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13742
13743 * ui-file.c (stdio_file::can_emit_style_escape)
13744 (tee_file::can_emit_style_escape): Ensure style is used also on
13745 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13746 to gdb_stdout.
13747 * main.c (set_gdb_data_directory): Use file style to output the
13748 warning that the given pathname is not a directory.
13749 * top.c (show_history_filename, gdb_safe_append_history)
13750 (show_gdb_datadir): Use file style.
13751
13752 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13753
13754 * solib-target.c (struct lm_info_target):
13755 Change offsets to be a unique_xmalloc_ptr.
13756 (solib_target_relocate_section_addresses): Update.
13757
13758 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13759
13760 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13761
13762 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13763
13764 * MAINTAINERS (Write After Approval): Add myself.
13765
13766 2020-01-02 Luis Machado <luis.machado@linaro.org>
13767
13768 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13769 Cell BE architecture.
13770 * target.h (struct target_ops) <thread_architecture>: Likewise.
13771
13772 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13773
13774 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13775
13776 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13777
13778 * MAINTAINERS (Write After Approval): Add myself.
13779
13780 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13781
13782 * gdbarch.sh: Update copyright year range of generated files.
13783
13784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13785
13786 Update copyright year range in all GDB files.
13787
13788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13789
13790 * copyright.py: Convert to Python 3.
13791
13792 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13793
13794 * copyright.py: Adapt after move of gnulib directory from gdb
13795 directory to toplevel directory.
13796
13797 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13798
13799 * copyright.py (main): Exit if run from the wrong directory.
13800
13801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13802
13803 * top.c (print_gdb_version): Change copyright year to 2020.
13804
13805 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13806
13807 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13808
13809 For older changes see ChangeLog-2019.
13810 \f
13811 Local Variables:
13812 mode: change-log
13813 left-margin: 8
13814 fill-column: 74
13815 version-control: never
13816 coding: utf-8
13817 End: