gdb/riscv: fix decode of c.sdsp instruction
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-17 Chungyi Chi <demonic@csie.io>
2
3 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
4
5 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
6
7 * breakpoint.h (init_catchpoint): Change int parameter to bool.
8 (add_solib_catchpoint): Likewise.
9 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
10 to bool.
11 (add_solib_catchpoint): Change int parameter/variable to bool.
12 (catch_load_or_unload): Likewise.
13 (init_catchpoint): Likewise.
14 (create_fork_vfork_event_catchpoint): Likewise.
15 (catch_fork_command_1): Likewise.
16 (catch_exec_command_1): Likewise.
17
18 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
19
20 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
21 Change instance_flags to m_instance_flags.
22
23 2020-09-16 Tom Tromey <tromey@adacore.com>
24
25 PR gdb/26598:
26 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
27
28 2020-09-16 John Baldwin <jhb@FreeBSD.org>
29
30 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
31 PL_FLAG_EXEC.
32 (fbsd_nat_target::insert_exec_catchpoint)
33 (fbsd_nat_target::remove_exec_catchpoint): Always define.
34 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
35 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
36
37 2020-09-16 John Baldwin <jhb@FreeBSD.org>
38
39 * configure.ac: Remove check for kinfo_getvmmap().
40 * configure, config.in: Regenerate.
41 * fbsd-nat.c (fbsd_read_mapping): Remove
42 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
43 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
44 kinfo_get_vmmap() are always present.
45
46 2020-09-16 John Baldwin <jhb@FreeBSD.org>
47
48 * fbsd-nat.c: Always include support for
49 TARGET_OBJECT_SIGNAL_INFO.
50
51 2020-09-16 John Baldwin <jhb@FreeBSD.org>
52
53 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
54 sysctl and remove procfs fallback.
55
56 2020-09-16 John Baldwin <jhb@FreeBSD.org>
57
58 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
59 * fbsd-nat.h: Likewise.
60
61 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
62
63 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
64 argument.
65
66 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * ada-lang.c (ada_language_data): Delete.
69 (ada_language): Remove references to ada_language_data.
70 * c-lang.c (c_language_data): Delete.
71 (c_language): Remove references to c_language_data.
72 (cplus_language_data): Delete.
73 (cplus_language): Remove references to cplus_language_data.
74 (asm_language_data): Delete.
75 (asm_language): Remove references to asm_language_data.
76 (minimal_language_data): Delete.
77 (minimal_language): Remove references to minimal_language_data.
78 * d-lang.c (d_language_data): Delete.
79 (d_language): Remove references to d_language_data.
80 * f-lang.c (f_language_data): Delete.
81 (f_language): Remove references to f_language_data.
82 * go-lang.c (go_language_data): Delete.
83 (go_language): Remove references to go_language_data.
84 * language.c (unknown_language_data): Delete.
85 (unknown_language): Remove references to unknown_language_data.
86 (auto_language_data): Delete.
87 (auto_language): Remove references to auto_language_data.
88 * language.h (language_data): Delete struct.
89 (language_defn): No longer inherit from language_data.
90 * m2-lang.c (m2_language_data): Delete.
91 (m2_language): Remove references to m2_language_data.
92 * objc-lang.c (objc_language_data): Delete.
93 (objc_language): Remove references to objc_language_data.
94 * opencl-lang.c (opencl_language_data): Delete.
95 (opencl_language): Remove references to opencl_language_data.
96 * p-lang.c (pascal_language_data): Delete.
97 (pascal_language): Remove references to pascal_language_data.
98 * rust-lang.c (rust_language_data): Delete.
99 (rust_language): Remove references to rust_language_data.
100
101 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * ada-lang.c (ada_language_data): Remove la_op_print_tab
104 initializer.
105 (ada_language::opcode_print_table): New member function.
106 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
107 (c_language::opcode_print_table): New member function.
108 (cplus_language_data): Remove la_op_print_tab initializer.
109 (cplus_language::opcode_print_table): New member function.
110 (asm_language_data): Remove la_op_print_tab initializer.
111 (asm_language::opcode_print_table): New member function.
112 (minimal_language_data): Remove la_op_print_tab initializer.
113 (minimal_language::opcode_print_table): New member function.
114 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
115 (d_language::opcode_print_table): New member function.
116 * expprint.c (print_subexp_standard): Update call to
117 opcode_print_table.
118 (op_string): Likewise.
119 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
120 (f_language::opcode_print_table): New member function.
121 * go-lang.c (go_language_data): Remove la_op_print_tab
122 initializer.
123 (go_language::opcode_print_table): New member function.
124 * language.c (unknown_language_data): Remove la_op_print_tab
125 initializer.
126 (unknown_language::opcode_print_table): New member function.
127 (auto_language_data): Remove la_op_print_tab initializer.
128 (auto_language::opcode_print_table): New member function.
129 * language.h (language_data): Remove la_op_print_tab field.
130 (language_defn::opcode_print_table): Declare new member function.
131 * m2-lang.c (m2_language_data): Remove la_op_print_tab
132 initializer.
133 (m2_language::opcode_print_table): New member function.
134 * objc-lang.c (objc_language_data): Remove la_op_print_tab
135 initializer.
136 (objc_language::opcode_print_table): New member function.
137 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
138 initializer.
139 (opencl_language::opcode_print_table): New member function.
140 * p-lang.c (pascal_language_data): Remove la_op_print_tab
141 initializer.
142 (pascal_language::opcode_print_table): New member function.
143 * rust-lang.c (rust_language_data): Remove la_op_print_tab
144 initializer.
145 (rust_language::opcode_print_table): New member function.
146
147 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
150 (ada_language::expression_ops): New member function.
151 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
152 (c_language::expression_ops): New member function.
153 (cplus_language_data): Remove la_exp_desc initializer.
154 (cplus_language::expression_ops): New member function.
155 (asm_language_data): Remove la_exp_desc initializer.
156 (asm_language::expression_ops): New member function.
157 (minimal_language_data): Remove la_exp_desc initializer.
158 (minimal_language::expression_ops): New member function.
159 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
160 (d_language::expression_ops): New member function.
161 * eval.c (evaluate_subexp): Update call to expression_ops.
162 * expprint.c (print_subexp): Likewise.
163 (op_name): Likewise.
164 (dump_subexp_body): Likewise.
165 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
166 (f_language::expression_ops): New member function.
167 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
168 (go_language::expression_ops): New member function.
169 * language.c (language_defn::expression_ops): New function.
170 (unknown_language_data): Remove la_exp_desc initializer.
171 (auto_language_data): Likewise.
172 * language.h (language_data): Remove la_exp_desc field.
173 (language_defn::expression_ops): Declare new member function.
174 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
175 (m2_language::expression_ops): New member function.
176 * objc-lang.c (objc_language_data): Remove la_exp_desc
177 initializer.
178 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
179 initializer.
180 (opencl_language::expression_ops): New member function.
181 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
182 * parse.c (operator_length): Update call to expression_ops.
183 (exp_iterate): Likewise.
184 * rust-lang.c (rust_language_data): Remove la_exp_desc
185 initializer.
186 (ruse_language::expression_ops): New member function.
187
188 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * ada-lang.c (ada_language_data): Remove la_varobj_ops
191 initializer.
192 (ada_language::varobj_ops): New member function.
193 * c-lang.c (c_language_data): Remove la_varobj_ops
194 initializer.
195 (cplus_language_data): Likewise.
196 (cplus_language::varobj_ops): New member function.
197 (asm_language_data): Remove la_varobj_ops initializer.
198 (minimal_language_data): Likewise.
199 * d-lang.c (d_language_data): Likewise.
200 * f-lang.c (f_language_data): Likewise.
201 * go-lang.c (go_language_data): Likewise.
202 * language.c (language_defn::varobj_ops): New function.
203 (unknown_language_data): Remove la_varobj_ops
204 initializer.
205 (auto_language_data): Likewise.
206 * language.h (language_data): Remove la_varobj_ops field.
207 (language_defn::varobj_ops): Declare new member function.
208 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
209 * objc-lang.c (objc_language_data): Likewise.
210 * opencl-lang.c (opencl_language_data): Likewise.
211 * p-lang.c (pascal_language_data): Likewise.
212 * rust-lang.c (rust_language_data): Likewise.
213 * varobj.c (varobj_create): Update call to varobj_ops.
214 * varobj.h (default_varobj_ops): Delete define.
215
216 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * ada-lang.c (ada_language_data): Remove la_macro_expansion
219 initializer.
220 * c-lang.c (c_language_data): Likewise.
221 (c_language::macro_expansion): New member function.
222 (cplus_language_data): Likewise.
223 (cplus_language::macro_expansion): New member function.
224 (asm_language_data): Likewise.
225 (asm_language::macro_expansion): New member function.
226 (minimal_language_data): Likewise.
227 (minimal_language::macro_expansion): New member function.
228 * d-lang.c (d_language_data): Remove la_macro_expansion
229 initializer.
230 * f-lang.c (f_language_data): Likewise.
231 * go-lang.c (go_language_data): Likewise.
232 * language.c (unknown_language_data): Likewise.
233 (auto_language_data): Likewise.
234 * language.h (language_data): Remove la_macro_expansion field.
235 (language_defn::macro_expansion): New member function.
236 * m2-lang.c (m2_language_data): Remove la_macro_expansion
237 initializer.
238 * objc-lang.c (objc_language_data): Likewise.
239 (objc_language::macro_expansion): New member function.
240 * opencl-lang.c (opencl_language_data): Likewise.
241 (opencl_language::macro_expansion): New member function.
242 * p-lang.c (pascal_language_data): Remove la_macro_expansion
243 initializer.
244 * rust-lang.c (rust_language_data): Likewise.
245 * symtab.c (default_collect_symbol_completion_matches_break_on):
246 Update call to macro_expansion.
247
248 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * ada-lang.c (ada_language_data): Remove la_array_ordering
251 initializer.
252 * c-lang.c (c_language_data): Likewise.
253 (cplus_language_data): Likewise.
254 (asm_language_data): Likewise.
255 (minimal_language_data): Likewise.
256 * d-lang.c (d_language_data): Likewise.
257 * dwarf2/read.c (read_array_order): Update for call to
258 array_ordering.
259 * f-lang.c (f_language_data): Remove la_array_ordering
260 initializer.
261 (f_language::array_ordering): New member function.
262 * go-lang.c (go_language_data): Remove la_array_ordering
263 initializer.
264 * language.c (unknown_language_data): Likewise.
265 (auto_language_data): Likewise.
266 * language.h (language_data): Delete la_array_ordering field.
267 (language_defn::array_ordering): New member function.
268 * m2-lang.c (m2_language_data): Remove la_array_ordering
269 initializer.
270 * objc-lang.c (objc_language_data): Likewise.
271 * opencl-lang.c (opencl_language_data): Likewise.
272 * p-lang.c (pascal_language_data): Likewise.
273 * rust-lang.c (rust_language_data): Likewise.
274
275 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
278 initializer.
279 * c-lang.c (c_language_data): Likewise.
280 (cplus_language_data): Likewise.
281 (asm_language_data): Likewise.
282 (minimal_language_data): Likewise.
283 * d-lang.c (d_language_data): Likewise.
284 * f-lang.c (f_language_data): Likewise.
285 (f_language::case_sensitivity): New member function.
286 * go-lang.c (go_language_data): Remove la_case_sensitivity
287 initializer.
288 * language.c (enum case_mode): Moved here from language.h.
289 (case_mode): Make static.
290 (show_case_command): Update for case_sensitivity being a method.
291 (set_case_command): Likewise.
292 (set_range_case): Likewise.
293 (unknown_language_data): Remove la_case_sensitivity initializer.
294 (auto_language_data): Likewise.
295 * language.h (case_mode): Delete, move enum declaration to
296 language.c.
297 (language_data): Delete la_case_sensitivity field.
298 (language_defn::case_sensitivity): New member function.
299 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
300 initializer.
301 * objc-lang.c (objc_language_data): Likewise.
302 * opencl-lang.c (opencl_language_data): Likewise.
303 * p-lang.c (pascal_language_data): Likewise.
304 * rust-lang.c (rust_language_data): Likewise.
305
306 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * ada-lang.c (ada_language_data): Remove la_range_check
309 initializer.
310 * c-lang.c (c_language_data): Likewise.
311 (cplus_language_data): Likewise.
312 (asm_language_data): Likewise.
313 (minimal_language_data): Likewise.
314 * d-lang.c (d_language_data): Likewise.
315 * f-lang.c (f_language_data): Likewise.
316 (f_language::range_checking_on_by_default): New member function.
317 * go-lang.c (go_language_data): Remove la_range_check initializer.
318 * language.c (enum range_mode): Moved here from language.h.
319 (range_mode): Made static.
320 (show_range_command): Update to use
321 range_checking_on_by_default.
322 (set_range_command): Likewise.
323 (set_range_case): Likewise.
324 (unknown_language_data): Remove la_range_check initializer.
325 (auto_language_data): Likewise.
326 * language.h (range_mode): Delete. Enum definition moved to
327 language.c.
328 (language_data): Remove la_range_check field.
329 (language_defn::range_checking_on_by_default): New member
330 function.
331 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
332 (m2_language::range_checking_on_by_default): New member function.
333 * objc-lang.c (objc_language_data): Remove la_range_check
334 initializer.
335 * opencl-lang.c (opencl_language_data): Likewise.
336 * p-lang.c (pascal_language_data): Likewise.
337 (pascal_language::range_checking_on_by_default): New member
338 function.
339 * rust-lang.c (rust_language_data): Remove la_range_check
340 initializer.
341 (rust_language::range_checking_on_by_default): New member
342 function.
343
344 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * dwarf2/read.c (dwarf2_physname): Remove special case for
347 language_go.
348 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
349 member function.
350
351 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * ada-lang.c (ada_language_data): Remove
354 la_store_sym_names_in_linkage_form_p initializer.
355 (ada_language::store_sym_names_in_linkage_form_p): New member
356 function.
357 * c-lang.c (c_language_data): Remove
358 la_store_sym_names_in_linkage_form_p initializer.
359 (c_language::store_sym_names_in_linkage_form_p): New member
360 function.
361 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
362 initializer.
363 (asm_language_data): Likewise.
364 (asm_language::store_sym_names_in_linkage_form_p): New member
365 function.
366 (minimal_language_data): Remove
367 la_store_sym_names_in_linkage_form_p initializer.
368 (minimal_language::store_sym_names_in_linkage_form_p): New member
369 function.
370 * d-lang.c (d_language_data): Remove
371 la_store_sym_names_in_linkage_form_p initializer.
372 * dwarf2/read.c (dwarf2_physname): Update call to
373 store_sym_names_in_linkage_form_p.
374 * f-lang.c (f_language_data): Remove
375 la_store_sym_names_in_linkage_form_p initializer.
376 * go-lang.c (go_language_data): Remove
377 la_store_sym_names_in_linkage_form_p initializer.
378 * language.c (unknown_language_data): Remove
379 la_store_sym_names_in_linkage_form_p initializer.
380 (unknown_language::store_sym_names_in_linkage_form_p): New member
381 function.
382 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
383 initializer.
384 (auto_language::store_sym_names_in_linkage_form_p): New member
385 function.
386 * language.h (language_data): Remove
387 la_store_sym_names_in_linkage_form_p member variable.
388 (language_defn::store_sym_names_in_linkage_form_p): New member
389 function.
390 * m2-lang.c (m2_language_data): Remove
391 la_store_sym_names_in_linkage_form_p initializer.
392 * objc-lang.c (objc_language_data): Likewise.
393 * opencl-lang.c (opencl_language_data): Likewise.
394 * p-lang.c (pascal_language_data): Likewise.
395 * rust-lang.c (rust_language_data): Likewise.
396
397 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * ada-lang.c (ada_language_data): Remove string_lower_bound
400 initializer.
401 * c-lang.c (c_language_data): Likewise.
402 (cplus_language_data): Likewise.
403 (asm_language_data): Likewise.
404 (minimal_language_data): Likewise.
405 * d-lang.c (d_language_data): Likewise.
406 * f-lang.c (f_language_data): Likewise.
407 * go-lang.c (go_language_data): Likewise.
408 * language.c (unknown_language_data): Likewise.
409 (auto_language_data): Likewise.
410 * language.h (language_data): Remove string_lower_bound field.
411 (language_defn::string_lower_bound): New member function.
412 * m2-lang.c (m2_language_data): Remove string_lower_bound
413 initializer.
414 (m2_language::string_lower_bound): New member function.
415 * objc-lang.c (objc_language_data): Remove string_lower_bound
416 initializer.
417 * opencl-lang.c (opencl_language_data): Likewise.
418 * p-lang.c (pascal_language_data): Likewise.
419 * rust-lang.c (rust_language_data): Likewise.
420 * valops.c (value_cstring): Update call to string_lower_bound.
421 (value_string): Likewise.
422 * value.c (allocate_repeated_value): Likewise.
423
424 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
425
426 * valops.c (value_repeat): Fix incorrect argument name in comment.
427
428 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * ada-lang.c (ada_language_data): Remove c_style_arrays
431 initializer.
432 (ada_language::c_style_arrays_p): New member fuction.
433 * c-lang.c (c_language_data): Remove c_style_arrays
434 initializer.
435 (cplus_language_data): Likewise.
436 (asm_language_data): Likewise.
437 (minimal_language_data): Likewise.
438 * d-lang.c (d_language_data): Likewise.
439 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
440 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
441 (f_language::c_style_arrays_p): New member function.
442 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
443 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
444 * language.c (unknown_language_data): Remove c_style_arrays
445 initializer.
446 (auto_language_data): Likewise.
447 * language.h (language_data): Remove c_style_arrays field.
448 (language_defn::c_style_arrays_p): New member function.
449 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
450 (m2_language::c_style_arrays_p): New member function.
451 * objc-lang.c (objc_language_data): Remove c_style_arrays
452 initializer.
453 * opencl-lang.c (opencl_language_data): Likewise.
454 * p-lang.c (pascal_language_data): Likewise.
455 * rust-lang.c (rust_language_data): Likewise.
456 * valarith.c (value_subscript): Update call to c_style_arrays_p,
457 and update local variable to a bool.
458 * valops.c (value_cast): Update call to c_style_arrays_p.
459 (value_array): Likewise.
460 * value.c (coerce_array): Likewise.
461
462 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * ada-lang.c (ada_language_data): Remove la_language initializer.
465 * c-lang.c (c_language_data): Likewise.
466 (cplus_language_data): Likewise.
467 (asm_language_data): Likewise.
468 (minimal_language_data): Likewise.
469 * d-lang.c (d_language_data): Likewise.
470 * f-lang.c (f_language_data): Likewise.
471 * go-lang.c (go_language_data): Likewise.
472 * language.c (unknown_language_data): Likewise.
473 (auto_language_data): Likewise.
474 * language.h (language_data): Remove la_language field.
475 (language_defn::language_defn): Initialise la_language field.
476 (language_defn::la_language): New member variable.
477 * m2-lang.c (m2_language_data): Remove la_language field.
478 * objc-lang.c (objc_language_data): Likewise.
479 * opencl-lang.c (opencl_language_data): Likewise.
480 * p-lang.c (pascal_language_data): Likewise.
481 * rust-lang.c (rust_language_data): Likewise.
482
483 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * ada-lang.c (ada_extensions): Delete, moved into
486 ada_language::filename_extensions.
487 (ada_language_data): Remove la_filename_extensions initializer.
488 (ada_language::filename_extensions): New member function.
489 * c-lang.c (c_extensions): Delete, moved into
490 c_language::filename_extensions.
491 (c_language_data): Remove la_filename_extensions initializer.
492 (c_language::filename_extensions): New member function.
493 (cplus_extensions): Delete, moved into
494 cplus_language::filename_extensions.
495 (cplus_language_data): Remove la_filename_extensions initializer.
496 (cplus_language::filename_extensions): New member function.
497 (asm_extensions): Delete, moved into
498 asm_language::filename_extensions.
499 (asm_language_data): Remove la_filename_extensions initializer.
500 (asm_language::filename_extensions): New member function.
501 (minimal_language_data): Remove la_filename_extensions
502 initializer.
503 * d-lang.c (d_extensions): Delete, moved into
504 d_language::filename_extensions.
505 (d_language_data): Remove la_filename_extensions initializer.
506 (d_language::filename_extensions): New member function.
507 * f-lang.c (f_extensions): Delete, moved into
508 f_language::filename_extensions.
509 (f_language_data): Remove la_filename_extensions initializer.
510 (f_language::filename_extensions): New member function.
511 * go-lang.c (go_language_data): Remove la_filename_extensions
512 initializer.
513 * language.c (add_set_language_command): Update now that
514 filename_extensions returns a vector.
515 (unknown_language_data): Remove la_filename_extensions
516 initializer.
517 (auto_language_data): Likewise.
518 * language.h (language_data): Remove la_filename_extensions field.
519 (language_defn::filename_extensions): New member function.
520 * m2-lang.c (m2_language_data): Remove la_filename_extensions
521 initializer.
522 * objc-lang.c (objc_extensions): Delete, moved into
523 objc_language::filename_extensions.
524 (objc_language_data): Remove la_filename_extensions initializer.
525 (objc_language::filename_extensions): New member function.
526 * opencl-lang.c (opencl_language_data): Remove
527 la_filename_extensions initializer.
528 * p-lang.c (pascal_extensions): Delete, moved into
529 pascal_language::filename_extensions.
530 (pascal_language_data): Remove la_filename_extensions initializer.
531 (pascal_language::filename_extensions): New member function.
532 * rust-lang.c (rust_extensions): Delete, moved into
533 rust_language::filename_extensions.
534 (rust_language_data): Remove la_filename_extensions initializer.
535 (rust_language::filename_extensions): New member function.
536 * symfile.c (add_filename_language): Add new assert.
537
538 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * ada-lang.c (ada_language_data): Remove la_name and
541 la_natural_name initializers.
542 (ada_language::name): New member function.
543 (ada_language::natural_name): New member function.
544 * c-lang.c (c_language_data): Remove la_name and
545 la_natural_name initializers.
546 (c_language::name): New member function.
547 (c_language::natural_name): New member function.
548 (cplus_language_data): Remove la_name and
549 la_natural_name initializers.
550 (cplus_language::name): New member function.
551 (cplus_language::natural_name): New member function.
552 (asm_language_data): Remove la_name and
553 la_natural_name initializers.
554 (asm_language::name): New member function.
555 (asm_language::natural_name): New member function.
556 (minimal_language_data): Remove la_name and
557 la_natural_name initializers.
558 (minimal_language::name): New member function.
559 (minimal_language::natural_name): New member function.
560 * compile/compile.c (compile_to_object): Update call to
561 lanugage_defn::name.
562 * d-lang.c (d_language_data): Remove la_name and
563 la_natural_name initializers.
564 (d_language::name): New member function.
565 (d_language::natural_name): New member function.
566 * expprint.c (print_subexp_standard): Update call to
567 language_defn::name.
568 (dump_raw_expression): Likewise
569 (dump_prefix_expression): Likewise.
570 * f-lang.c (f_language_data): Remove la_name and
571 la_natural_name initializers.
572 (f_language::name): New member function.
573 (f_language::natural_name): New member function.
574 * go-lang.c (go_language_data): Remove la_name and
575 la_natural_name initializers.
576 (go_language::name): New member function.
577 (go_language::natural_name): New member function.
578 * language.c (show_language_command): Update call to
579 language_defn::name.
580 (set_language_command): Likewise.
581 (language_enum): Likewise.
582 (language_str): Likewise.
583 (add_set_language_command): Likewise, use
584 language_defn::natural_name in the doc string.
585 (unknown_language_data): Remove la_name and
586 la_natural_name initializers.
587 (unknown_language::name): New member function.
588 (unknown_language::natural_name): New member function.
589 (auto_language_data): Remove la_name and
590 la_natural_name initializers.
591 (auto_language::name): New member function.
592 (auto_language::natural_name): New member function.
593 (language_lookup_primitive_type_as_symbol): Update call to
594 language_defn::name.
595 * language.h (language_data): Remove la_name and la_natural_name
596 member variables.
597 (language_defn::name): New member function.
598 (language_defn::natural_name): New member function.
599 * m2-lang.c (m2_language_data): Remove la_name and
600 la_natural_name initializers.
601 (m2_language::name): New member function.
602 (m2_language::natural_name): New member function.
603 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
604 language_defn::natural_name.
605 * objc-lang.c (objc_language_data): Remove la_name and
606 la_natural_name initializers.
607 (objc_language::name): New member function.
608 (objc_language::natural_name): New member function.
609 * opencl-lang.c (opencl_language_data): Remove la_name and
610 la_natural_name initializers.
611 (opencl_language::name): New member function.
612 (opencl_language::natural_name): New member function.
613 * p-lang.c (pascal_language_data): Remove la_name and
614 la_natural_name initializers.
615 (pascal_language::name): New member function.
616 (pascal_language::natural_name): New member function.
617 * rust-lang.c (rust_language_data): Remove la_name and
618 la_natural_name initializers.
619 (rust_language::name): New member function.
620 (rust_language::natural_name): New member function.
621 * symtab.c (lookup_language_this): Update call to
622 language_defn::name.
623
624 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * ada-lang.c (ada_language_data): Remove la_name_of_this
627 initializer.
628 * ax-gdb.c (gen_expr): Update call to name_of_this.
629 * c-exp.y (classify_name): Likewise.
630 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
631 (cplus_language_data): Likewise.
632 (cplus_language::name_of_this): New member function.
633 (asm_language_data): Remove la_name_of_this initializer.
634 (minimal_language_data): Likewise.
635 * d-lang.c (d_language_data): Likewise.
636 (d_language::name_of_this): New member function.
637 * expprint.c (print_subexp_standard): Update call to name_of_this.
638 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
639 * go-lang.c (go_language_data): Likewise.
640 * language.c (unknown_language_data): Likewise.
641 (unknown_language::name_of_this): New member function.
642 (auto_language_data): Remove la_name_of_this initializer.
643 (auto_language::name_of_this): New member function.
644 * language.h (language_data): Delete la_name_of_this member
645 variable.
646 (language_defn::name_of_this): New member function.
647 * m2-lang.c (m2_language_data): Remove la_name_of_this
648 initializer.
649 * objc-lang.c (objc_language_data): Likewise.
650 (objc_language::name_of_this): New member function.
651 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
652 initializer.
653 * p-lang.c (pascal_language_data): Likewise.
654 (pascal_language::name_of_this): New member function.
655 * rust-lang.c (rust_language_data): Remove la_name_of_this
656 initializer.
657 * symtab.c (lookup_language_this): Update call to name_of_this.
658 (lookup_symbol_aux): Likewise.
659 * valops.c (value_of_this): Likewise.
660
661 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * ada-lang.c (ada_language_data): Remove
664 la_struct_too_deep_ellipsis initializer.
665 (ada_language::struct_too_deep_ellipsis): New member function.
666 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
667 initializer.
668 (cplus_language_data): Likewise.
669 (asm_language_data): Likewise.
670 (minimal_language_data): Likewise.
671 * cp-valprint.c (cp_print_value): Update call to
672 struct_too_deep_ellipsis.
673 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
674 initializer.
675 * f-lang.c (f_language_data): Likewise.
676 (f_language::struct_too_deep_ellipsis): New member function.
677 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
678 initializer.
679 * language.c (unknown_language_data): Likewise.
680 (auto_language_data): Likewise.
681 * language.h (language_data): Delete la_struct_too_deep_ellipsis
682 member variable.
683 (language_defn::struct_too_deep_ellipsis): New member function.
684 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
685 initializer.Q
686 * objc-lang.c (objc_language_data): Likewise.
687 * opencl-lang.c (opencl_language_data): Likewise.
688 * p-lang.c (pascal_language_data): Likewise.
689 * rust-lang.c (rust_language_data): Likewise.
690 * valprint.c (val_print_check_max_depth): Update call to
691 struct_too_deep_ellipsis.
692
693 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
694
695 * MAINTAINERS (Write After Approval): Add myself.
696
697 2020-09-15 Tom Tromey <tom@tromey.com>
698
699 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
700 Remove.
701
702 2020-09-15 Tom Tromey <tom@tromey.com>
703
704 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
705 and TYPE_CODE_METHODPTR cases.
706 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
707 (c_value_print_inner): Update.
708 * valprint.c (generic_value_print_memberptr): New function, from
709 c_value_print_memberptr.
710 (generic_value_print): Use it. Call cplus_print_method_ptr.
711
712 2020-09-15 Tom Tromey <tromey@adacore.com>
713
714 * python/python-internal.h (PyInt_FromLong): Remove define.
715 * python/py-value.c (convert_value_from_python): Use
716 gdb_py_object_from_longest.
717 * python/py-type.c (typy_get_code): Use
718 gdb_py_object_from_longest.
719 * python/py-symtab.c (salpy_get_line): Use
720 gdb_py_object_from_longest.
721 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
722 gdb_py_object_from_longest.
723 * python/py-record.c (recpy_gap_reason_code): Use
724 gdb_py_object_from_longest.
725 * python/py-record-btrace.c (recpy_bt_insn_size)
726 (recpy_bt_func_level, btpy_list_count): Use
727 gdb_py_object_from_longest.
728 * python/py-infthread.c (gdbpy_create_ptid_object): Use
729 gdb_py_object_from_longest. Fix error handling.
730 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
731 gdb_py_object_from_longest.
732 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
733 gdb_py_object_from_longest.
734 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
735 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
736 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
737
738 2020-09-15 Tom Tromey <tromey@adacore.com>
739
740 * python/python.c (gdbpy_parameter_value): Use
741 gdb_py_object_from_ulongest.
742
743 2020-09-15 Tom Tromey <tromey@adacore.com>
744
745 * python/py-infevents.c (create_register_changed_event_object):
746 Use gdb_py_object_from_longest.
747 * python/py-exitedevent.c (create_exited_event_object): Use
748 gdb_py_object_from_longest.
749
750 2020-09-15 Tom Tromey <tromey@adacore.com>
751
752 * python/python.c (gdbpy_parameter_value): Use
753 gdb_py_object_from_longest.
754 * python/py-type.c (convert_field, typy_range): Use
755 gdb_py_object_from_longest.
756 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
757 gdb_py_object_from_longest.
758 * python/py-lazy-string.c (stpy_get_length): Use
759 gdb_py_object_from_longest.
760 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
761 gdb_py_object_from_longest.
762 * python/py-infevents.c (create_memory_changed_event_object): Use
763 gdb_py_object_from_longest.
764 * python/py-inferior.c (infpy_get_num): Use
765 gdb_py_object_from_longest.
766 (infpy_get_pid): Likewise.
767
768 2020-09-15 Tom Tromey <tromey@adacore.com>
769
770 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
771 defines.
772 * python/py-value.c (valpy_long): Use
773 gdb_py_object_from_ulongest.
774 * python/py-symtab.c (salpy_get_pc): Use
775 gdb_py_object_from_ulongest.
776 (salpy_get_last): Likewise.
777 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
778 gdb_py_object_from_ulongest.
779 * python/py-lazy-string.c (stpy_get_address): Use
780 gdb_py_object_from_ulongest.
781 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
782 * python/py-arch.c (archpy_disassemble): Use
783 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
784 error handling.
785
786 2020-09-15 Tom Tromey <tromey@adacore.com>
787
788 * python/python-internal.h (gdb_py_long_from_longest): Remove
789 defines.
790 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
791 * python/py-type.c (convert_field, typy_get_sizeof): Use
792 gdb_py_object_from_longest.
793 * python/py-record-btrace.c (btpy_list_index): Use
794 gdb_py_object_from_longest.
795
796 2020-09-15 Tom Tromey <tromey@adacore.com>
797
798 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
799 * python/py-record.c (recpy_element_number): Use
800 gdb_py_object_from_longest.
801 (recpy_gap_number): Likewise.
802
803 2020-09-15 Tom Tromey <tromey@adacore.com>
804
805 * top.c (ui::ui): Update.
806 (highest_ui_num): Remove.
807 * top.h (struct ui) <num>: Remove.
808
809 2020-09-15 Tom Tromey <tromey@adacore.com>
810
811 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
812 * ui-style.c (ansi_regex_text): Now array.
813 * rust-exp.y (number_regex_text): Now array.
814 * linespec.c (linespec_quote_characters): Now array.
815 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
816 Now arrays.
817
818 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * debuginfod-support.c (debuginfod_client_deleter): New.
821 (debuginfod_client_up): New.
822 (debuginfod_init): Return debuginfod_client_up.
823 (debuginfod_source_query): Adjust.
824 (debuginfod_debuginfo_query): Adjust.
825
826 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * debuginfod-support.c (debuginfod_source_query): Use
829 make_unique_xstrdup.
830
831 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
832
833 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
834 with `type::instance_flags`.
835
836 2020-09-14 Michael Mullin <masmullin@gmail.com>
837
838 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
839 Remove baton parameter.
840
841 2020-09-14 Pedro Alves <pedro@palves.net>
842
843 * Makefile.in (SELFTESTS_SRCS): Add
844 unittests/enum-flags-selftests.c.
845 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
846 btrace_function_flags instead of enum btrace_function_flag.
847 * compile/compile-c-types.c (convert_qualified): Use
848 enum_flags::raw.
849 * compile/compile-cplus-symbols.c (convert_one_symbol)
850 (convert_symbol_bmsym):
851 * compile/compile-cplus-types.c (compile_cplus_convert_method)
852 (compile_cplus_convert_struct_or_union_methods)
853 (compile_cplus_instance::convert_qualified_base):
854 * go-exp.y (parse_string_or_char): Add cast to int.
855 * unittests/enum-flags-selftests.c: New file.
856 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
857 type to btrace_thread_flags from btrace_thread_flag.
858 (record_btrace_cancel_resume, record_btrace_step_thread): Change
859 local's type to btrace_thread_flags from btrace_thread_flag. Add
860 cast in DEBUG call.
861
862 2020-09-14 Pedro Alves <pedro@palves.net>
863
864 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
865 * gdbtypes.c (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 * gdbtypes.h (address_space_name_to_int): Rename to ...
870 (address_space_name_to_type_instance_flags): ... this.
871 (address_space_int_to_name): Rename to ...
872 (address_space_type_instance_flags_to_name): ... this.
873 * type-stack.c (type_stack::insert): Adjust to rename.
874 * type-stack.h (type_stack::insert): Likewise.
875
876 2020-09-14 Pedro Alves <pedro@palves.net>
877 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * avr-tdep.c (avr_address_class_type_flags): Return
880 type_instance_flags.
881 (avr_address_class_type_flags_to_name): Take a
882 type_instance_flags.
883 (avr_address_class_name_to_type_flags): Return bool and take a
884 type_instance_flags.
885 * d-lang.c (build_d_types): Use type::set_instance_flags.
886 * ft32-tdep.c (ft32_address_class_type_flags): Return
887 type_instance_flags.
888 (ft32_address_class_type_flags_to_name): Take a
889 type_instance_flags.
890 (ft32_address_class_name_to_type_flags): Return bool and take a
891 type_instance_flags.
892 (ft32_gdbarch_init): Use type::set_instance_flags.
893 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
894 * gdbarch.h, gdbarch.c: Regenerate.
895 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
896 (address_class_name_to_type_flags): Use type_instance_flags and
897 bool.
898 * gdbtypes.c (address_space_name_to_int)
899 (address_space_int_to_name, make_qualified_type): Use
900 type_instance_flags.
901 (make_qualified_type): Use type_instance_flags and
902 type::set_instance_flags.
903 (make_type_with_address_space, make_cv_type, make_vector_type)
904 (check_typedef): Use type_instance_flags.
905 (recursive_dump_type): Cast type_instance_flags to unsigned for
906 printing.
907 (copy_type_recursive): Use type::set_instance_flags.
908 (gdbtypes_post_init): Use type::set_instance_flags.
909 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
910 <m_instance_flags>: ... this.
911 <instance_flags, set_instance_flags>: New methods.
912 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
913 (SET_TYPE_INSTANCE_FLAGS): New.
914 (address_space_name_to_int, address_space_int_to_name)
915 (make_type_with_address_space): Pass flags using
916 type_instance_flags instead of int.
917 * stabsread.c (cleanup_undefined_types_noname): Use
918 type::set_instance_flags.
919 * s390-tdep.c (s390_address_class_type_flags): Return
920 type_instance_flags.
921 (s390_address_class_type_flags_to_name): Take a
922 type_instance_flags.
923 (s390_address_class_name_to_type_flags): Return bool and take a
924 type_instance_flags.
925 * type-stack.c (type_stack::follow_types): Use
926 type_instance_flags.
927 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
928
929 2020-09-14 Tom Tromey <tromey@adacore.com>
930
931 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
932 * x86-tdep.c (x86_is_thunk_register_name)
933 (x86_in_indirect_branch_thunk): Update.
934 * sparc64-tdep.c (sparc64_fpu_register_names)
935 (sparc64_cp0_register_names, sparc64_register_names)
936 (sparc64_pseudo_register_names): Now const.
937 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
938 cp0_registers_num>: Now const.
939 * sparc-tdep.c (sparc_core_register_names)
940 (sparc32_fpu_register_names, sparc32_cp0_register_names)
941 (sparc32_pseudo_register_names): Now const.
942 (validate_tdesc_registers): Update.
943 * rust-lang.c (rust_extensions): Now const.
944 * p-lang.c (p_extensions): Now const.
945 * objc-lang.c (objc_extensions): Now const.
946 * nto-tdep.c (nto_thread_state_str): Now const.
947 * moxie-tdep.c (moxie_register_names): Now const.
948 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
949 Now const.
950 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
951 (mips_linux_reg_names): Now const.
952 (mips_gdbarch_init): Update.
953 * microblaze-tdep.c (microblaze_register_names): Now const.
954 * m68k-tdep.c (m68k_register_names): Now const.
955 * m32r-tdep.c (m32r_register_names): Now const.
956 * ia64-tdep.c (ia64_register_names): Now const.
957 * i386-tdep.h (struct gdbarch_tdep) <register_names,
958 ymmh_register_names, ymm16h_regnum, mpx_register_names,
959 k_register_names, zmmh_register_names, xmm_avx512_register_names,
960 ymm_avx512_register_names, pkeys_register_names>: Now const.
961 * i386-tdep.c (i386_register_names, i386_zmm_names)
962 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
963 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
964 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
965 * f-lang.c (f_extensions): Now const.
966 * d-lang.c (d_extensions): Now const.
967 * csky-tdep.c (csky_register_names): Now const.
968 * charset.c (default_charset_names, charset_enum): Now const.
969 (_initialize_charset): Update.
970 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
971 const.
972 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
973 (bsd_uthread_solib_loaded): Update.
974 (bsd_uthread_state): Now const.
975 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
976 (amd64_ymm_avx512_names, amd64_ymmh_names)
977 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
978 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
979 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
980 (amd64_dword_names): Now const.
981 * agent.c (can_use_agent_enum): Now const.
982 * ada-tasks.c (task_states, long_task_states): Now const.
983 * ada-lang.c (known_runtime_file_name_patterns)
984 (known_auxiliary_function_name_patterns, attribute_names)
985 (standard_exc, ada_extensions): Now const.
986
987 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * bcache.h (struct bcache) <bcache>: Remove constructor.
990 <m_hash_function, m_compare_function>: Remove.
991 <~bcache>: Make virtual.
992 <compare>: Remove static method, introduce virtual method.
993 <default_hash>: Remove.
994 <hash>: New virtual method.
995 * bcache.c (bcache::expand_hash_table): Update.
996 (bcache::insert): Update.
997 (bcache::hash): New.
998 (bcache::compare): Update comment and parameter names.
999 * gdbtypes.c (types_deeply_equal): Update.
1000 * psymtab.h (struct psymbol_bcache): New struct.
1001 (class psymtab_storage) <psymtab_storage>: Make default.
1002 <psymbol_cache>: Change type to psymbol_bcache.
1003 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1004 (psymbol_hash): Change to...
1005 (psymbol_bcache::hash): ... this.
1006 (psymbol_compare): Change to...
1007 (psymbol_bcache::compare): ... this.
1008
1009 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1012 checking for initial lwp.
1013
1014 2020-09-14 Tom Tromey <tromey@adacore.com>
1015
1016 * m68k-tdep.c (m68k_extract_return_value): Use
1017 pointer_result_regnum.
1018 (m68k_store_return_value): Likewise.
1019 (m68k_reg_struct_return_p): Handle vectors and arrays.
1020 (m68k_return_value): Handle arrays.
1021 (m68k_svr4_return_value): Fix single-element aggregate handling.
1022 Handle long double. Adjust for embedded ABI.
1023 (m68k_svr4_init_abi): Set pointer_result_regnum.
1024 (m68k_embedded_init_abi): New function.
1025 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1026 (m68k_osabi_sniffer): New function.
1027 (_initialize_m68k_tdep): Register osabi sniffer.
1028 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1029 member.
1030
1031 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1034 with gdb::unique_xmalloc_ptr<char>.
1035
1036 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1037
1038 * xml-support.h (xml_fetch_another): Change type to be a
1039 function_view.
1040 (xml_process_xincludes): Remove baton parameter.
1041 (xml_fetch_content_from_file): Change baton parameter to
1042 dirname.
1043 * xml-support.c (struct xinclude_parsing_data)
1044 <xinclude_parsing_data>: Remove baton parameter.
1045 <fetcher_baton>: Remove.
1046 (xinclude_start_include): Adjust.
1047 (xml_process_xincludes): Adjust.
1048 (xml_fetch_content_from_file): Replace baton parameter with
1049 dirname.
1050 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1051 (xml_init_syscalls_info): Use a lambda.
1052 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1053 (file_read_description_xml): Use a lambda.
1054 (fetch_available_features_from_target): Change baton parameter
1055 to target_ops.
1056 (target_read_description_xml): Use a lambda.
1057 (target_fetch_description_xml): Use a lambda.
1058 (string_read_description_xml): Update.
1059
1060 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1061
1062 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1063 uses with type::endianity_is_not_default.
1064
1065 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1066
1067 * gdbtypes.h (struct type) <endianity_is_not_default,
1068 set_endianity_is_not_default>: New methods.
1069 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1070 type::endianity_is_not_default, change all write call sites to
1071 use type::set_endianity_is_not_default.
1072
1073 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1074
1075 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1076 uses with type::is_fixed_instance.
1077
1078 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1079
1080 * gdbtypes.h (struct type) <is_fixed_instance,
1081 set_is_fixed_instance>: New methods.
1082 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1083 write call sites to use type::set_is_fixed_instance.
1084
1085 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1086
1087 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1088 uses with type::is_gnu_ifunc.
1089
1090 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1091
1092 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1093 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1094 use type::set_is_gnu_ifunc.
1095
1096 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1099 uses with type::stub_is_supported.
1100
1101 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1102
1103 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1104 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1105 use type::set_stub_is_supported.
1106
1107 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1108
1109 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1110 uses with type::is_vector.
1111
1112 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1115 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1116 use type::set_is_vector.
1117
1118 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1121 uses with type::has_varargs.
1122
1123 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1124
1125 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1126 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1127 use type::set_has_varargs.
1128
1129 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1132 uses with type::is_prototyped.
1133
1134 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1135
1136 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1137 New methods.
1138 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1139 call sites to use type::set_is_prototyped.
1140
1141 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1142
1143 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1144 uses with type::target_is_stub.
1145
1146 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1149 New methods.
1150 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1151 sites to use type::set_target_is_stub.
1152
1153 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * gdbtypes.h (TYPE_STUB): Remove, replace all
1156 uses with type::is_stub.
1157
1158 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1161 (TYPE_STUB): Use type::is_stub, change all write call sites to
1162 use type::set_is_stub.
1163
1164 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1167 type::has_no_signedness.
1168
1169 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * gdbtypes.h (struct type) <has_no_signedness,
1172 set_has_no_signedness>: New methods.
1173 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1174 call sites to use type::set_has_no_signedness.
1175
1176 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1177
1178 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1179 type::is_unsigned.
1180
1181 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1182
1183 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1184 methods.
1185 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1186 sites to use type::set_is_unsigned.
1187
1188 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1189 Adam Renquinha <arenquinha@cimeq.qc.ca>
1190
1191 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1192 pointer and stack frame offset when unwinding.
1193
1194 2020-09-13 Pedro Alves <pedro@palves.net>
1195
1196 * NEWS: Document "-break-insert --qualified".
1197 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1198
1199 2020-09-13 Pedro Alves <pedro@palves.net>
1200
1201 * linespec.c (classify_mtype, compare_msyms): Delete.
1202 (search_minsyms_for_name): Remove classification logic. Instead
1203 filter out trampoline symbols if we also found an external
1204 function of the same name.
1205
1206 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1207
1208 * NEWS: Create a new section for the next release branch.
1209 Rename the section of the current branch, now that it has
1210 been cut.
1211
1212 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1213
1214 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1215 * version.in: Bump version to 11.0.50.DATE-git.
1216
1217 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1218
1219 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1220
1221 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1222 Felix Willgerodt <Felix.Willgerodt@intel.com>
1223
1224 * gdbarch.sh: Added bfloat16 type.
1225 * gdbarch.c: Regenerated.
1226 * gdbarch.h: Regenerated.
1227 * gdbtypes.c (floatformats_bfloat16): New struct.
1228 (gdbtypes_post_init): Add builtin_bfloat16.
1229 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1230 (floatformats_bfloat16): New struct.
1231 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1232 (i386_ymm_type): Add field "v16_bfloat16"
1233 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1234 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1235 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1236 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1237 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1238 * features/i386/64bit-avx512.c: Regenerated.
1239 * features/i386/64bit-sse.xml: Add bfloat16 type.
1240 * features/i386/64bit-sse.c: Regenerated.
1241
1242 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1243
1244 * i386-tdep.c (i386_zmm_type): Fix field names.
1245 (i386_ymm_type): Fix field names.
1246
1247 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1248
1249 * breakpoint.c: Fix typo in the help message of the
1250 "set breakpoint condition-evaluation" command.
1251
1252 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1253
1254 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1255 * (nbsd_nat_target::pid_to_exec_file)
1256 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1257 (nbsd_nat_target::post_startup_inferior)
1258 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1259 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1260 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1261 * (nbsd_thread_lister): Remove.
1262
1263 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1264
1265 * fork-inferior.c (startup_inferior): Avoid double free.
1266
1267 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1268
1269 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1270 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1271
1272 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1273
1274 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1275 * netbsd-nat.c: Include <sys/ptrace.h>.
1276 * (netbsd_nat::enable_proc_events): Add.
1277
1278 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1279
1280 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1281 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1282 (netbsd_nat::for_each_thread): Add.
1283 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1284 "gdbsupport/common-debug.h".
1285 * (netbsd_nat::netbsd_thread_lister)
1286 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1287 (netbsd_nat::for_each_thread): Add.
1288
1289 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1290
1291 * netbsd-nat.h: Include <unistd.h>.
1292 * (netbsd_nat::pid_to_exec_file): Add.
1293 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1294 * (netbsd_nat::pid_to_exec_file) Add.
1295
1296 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1297
1298 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1299
1300 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1301
1302 * netbsd-nat.h: New file.
1303 * netbsd-nat.c: Likewise.
1304
1305 2020-09-09 Tom Tromey <tromey@adacore.com>
1306
1307 * ada-lang.c (remove_extra_symbols): Do not increment when
1308 removing an element
1309
1310 2020-09-08 Tom Tromey <tromey@adacore.com>
1311
1312 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1313
1314 2020-09-08 Tom Tromey <tromey@adacore.com>
1315
1316 PR win32/25302:
1317 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1318 (gdb_bfd_init_data): New function.
1319 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1320
1321 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322
1323 * infrun.c (fetch_inferior_event): Use
1324 `switch_to_target_no_thread` to switch the target.
1325
1326 2020-09-06 Tom Tromey <tom@tromey.com>
1327
1328 * symfile.h (dwarf2_free_objfile): Don't declare.
1329
1330 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1331
1332 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1333 to match 16 byte real/complex type generated by Flang compiler.
1334
1335 2020-09-03 Tom de Vries <tdevries@suse.de>
1336
1337 PR breakpoint/26546
1338 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1339 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1340
1341 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * maint.c (index_digits): New function.
1344 (struct maint_print_section_data): Remove.
1345 (print_bfd_section_info): Remove print_data parameter, add arg
1346 and index_digits.
1347 (print_objfile_section_info): Likewise.
1348 (print_bfd_section_info_maybe_relocated): Likewise (plus
1349 objfile).
1350 (maintenance_info_sections): Adjust calls.
1351
1352 2020-09-02 Tom Tromey <tromey@adacore.com>
1353
1354 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1355 for null pointers.
1356 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1357
1358 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * bcache.h (struct bcache) <insert>: Change type of `added` to
1361 pointer to bool.
1362 * bcache.c (bcache::insert): Likewise.
1363 * gdbtypes.c (check_types_worklist): Adjust.
1364 * psymtab.c (add_psymbol_to_bcache): Adjust.
1365
1366 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1367
1368 * corelow.c (unordered_set): Include.
1369 (class core_target): Add field 'm_core_unavailable_mappings'.
1370 (core_target::build_file_mappings): Print only one warning
1371 per inaccessible file. Add unavailable/broken mappings
1372 to m_core_unavailable_mappings.
1373 (core_target::xfer_partial): Call...
1374 (core_target::xfer_memory_via_mappings): New method.
1375
1376 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1379 type to bool.
1380
1381 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1382
1383 * dwarf2/read.c (struct field_info): Fix indentation.
1384
1385 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1386
1387 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1388 ordering in comment.
1389 * frame.c (frame_id_eq): Fix indentation.
1390
1391 2020-08-31 Scott Linder <scott@scottlinder.com>
1392 Simon Marchi <simon.marchi@efficios.com>
1393
1394 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1395 inline frame ids in outer frame.
1396
1397 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1400 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1401 (outer_frame_id): Use FID_STACK_OUTER instead of
1402 FID_STACK_INVALID.
1403 (frame_id_p): Don't check for outer_frame_id.
1404
1405 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1408 regnum/frame in value. Call allocate_value_lazy.
1409 * frame.c (frame_unwind_register_value): Use
1410 val_print_not_saved.
1411
1412 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1413
1414 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1415
1416 2020-08-29 Pedro Alves <pedro@palves.net>
1417
1418 * progspace.c (print_program_space): Use all_inferiors. Switch to
1419 the inferior before calling target_pid_to_str.
1420
1421 2020-08-28 Tom Tromey <tom@tromey.com>
1422
1423 * xcoffread.c (xcoff_end_psymtab): Update comment.
1424 * dbxread.c (dbx_end_psymtab): Update comment.
1425
1426 2020-08-28 Tom de Vries <tdevries@suse.de>
1427
1428 PR breakpoint/26544
1429 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1430 event_location.
1431 (create_breakpoint): Same.
1432 (base_breakpoint_decode_location): Same.
1433 (bkpt_create_sals_from_location): Same.
1434 (bkpt_decode_location): Same.
1435 (bkpt_probe_create_sals_from_location): Same.
1436 (bkpt_probe_decode_location): Same.
1437 (tracepoint_create_sals_from_location): Same.
1438 (tracepoint_decode_location): Same.
1439 (tracepoint_probe_decode_location): Same.
1440 (strace_marker_create_sals_from_location): Same.
1441 (strace_marker_decode_location): Same.
1442 (create_sals_from_location_default): Same.
1443 (decode_location_default): Same.
1444 * breakpoint.h (struct breakpoint_ops): Same.
1445 (create_breakpoint): Same.
1446 * linespec.h (decode_line_full): Same.
1447 * linespec.c (decode_line_full): Same. Throw error if
1448 result.size () == 0.
1449
1450 2020-08-27 Pedro Alves <pedro@palves.net>
1451
1452 PR gdb/26524
1453 * breakpoint.c (until_break_fsm) <location_breakpoint,
1454 caller_breakpoint>: Delete fields.
1455 <breakpoints>: New field.
1456 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1457 two individual breakpoints.
1458 (until_break_fsm::should_stop): Loop over breakpoints in the
1459 breakpoint vector.
1460 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1461 vector.
1462 (until_break_command): Handle location expanding into multiple
1463 sals.
1464
1465 2020-08-27 Pedro Alves <pedro@palves.net>
1466
1467 PR gdb/26523
1468 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1469 bp_until breakpoints user-specified locations. Update intro
1470 comment.
1471
1472 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1473
1474 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1475 gdb_bfd_sections): New.
1476 * maint.c (print_bfd_section_info): Change param type to
1477 maint_print_section_data.
1478 (print_objfile_section_info): Likewise.
1479 (print_bfd_section_info_maybe_relocated): Likewise.
1480 (maintenance_info_sections): Use gdb_bfd_sections.
1481
1482 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1483
1484 * MAINTAINERS: Add ARC target and maintainer.
1485
1486 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1487
1488 * configure.tgt: ARC support for GNU/Linux.
1489 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1490 * arc-linux-tdep.c: New file.
1491 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1492 * arc-tdep.c (arc_write_pc): Use it.
1493
1494 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1495
1496 * arc-tdep.c (arc_check_for_hardware_loop): New.
1497 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1498
1499 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1500
1501 * arc-tdep.h: Include "gdbarch.h".
1502
1503 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1504
1505 * arch/arc.h
1506 (arc_gdbarch_features): New class to stir the selection of target XML.
1507 (arc_create_target_description): Use FEATURES to choose XML target.
1508 (arc_lookup_target_description): Use arc_create_target_description
1509 to create _new_ target descriptions or return the already created
1510 ones if the FEATURES is the same.
1511 * arch/arc.c: Implementation of prototypes described above.
1512 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1513 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1514 * arc-tdep.c (*_feature_name): Make feature names consistent.
1515 (arc_register_feature): A new struct to hold information about
1516 registers of a particular target/feature.
1517 (arc_check_tdesc_feature): Check if XML provides registers in
1518 compliance with ARC_REGISTER_FEATURE structs.
1519 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1520 (determine_*_reg_feature_set): Which feature name to look for.
1521 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1522 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1523 to expected ISA enums to be used in arc_gdbarch_features structs.
1524 * features/Makefile (FEATURE_XMLFILES): Add new files.
1525 * gdb/features/arc/v1-aux.c: New file.
1526 * gdb/features/arc/v1-aux.xml: Likewise.
1527 * gdb/features/arc/v1-core.c: Likewise.
1528 * gdb/features/arc/v1-core.xml: Likewise.
1529 * gdb/features/arc/v2-aux.c: Likewise.
1530 * gdb/features/arc/v2-aux.xml: Likewise.
1531 * gdb/features/arc/v2-core.c: Likewise.
1532 * gdb/features/arc/v2-core.xml: Likewise.
1533 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1534
1535 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1536 Andrew Burgess <andrew.burgess@embecosm.com>
1537
1538 PR m2/26372
1539 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
1540 an assert. Remove single element array indexing pattern as the
1541 MULTI_SUBSCRIPT support will handle this case too.
1542
1543 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 * value.h (valprint_check_validity): Move declaration from
1546 here...
1547 * valprint.h (valprint_check_validity): ... to here.
1548
1549 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * debug.h: New file.
1552 * debug.c (debug_prefixed_vprintf): New function.
1553 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1554 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1555
1556 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
1557
1558 * infrun.h (infrun_debug_printf_1): New function declaration.
1559 (infrun_debug_printf): New macro.
1560 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1561 throughout.
1562 (infrun_debug_printf): New function.
1563 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1564 (handle_jit_event): Likewise.
1565
1566 2020-08-21 Mark Wielaard <mark@klomp.org>
1567
1568 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1569
1570 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
1571
1572 * frame.c (enum class frame_id_status): New.
1573 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1574 (fprintf_frame): Update.
1575 (compute_frame_id): Set frame id status to "computing" on entry.
1576 Set it back to "not_computed" on failure and to "computed" on
1577 success.
1578 (get_frame_id): Assert the frame id is not being computed.
1579 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1580 (create_new_frame): Likewise.
1581 (frame_cleanup_after_sniffer): Update assert.
1582
1583 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1584
1585 * regcache.c (pid_ptid_regcache_map): New type.
1586 (target_ptid_regcache_map): Remove.
1587 (target_pid_ptid_regcache_map): New type.
1588 (regcaches): Change type to target_pid_ptid_regcache_map.
1589 (get_thread_arch_aspace_regcache): Update.
1590 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1591 case.
1592 (regcaches_size): Update.
1593 (regcache_count): Update.
1594 (registers_changed_ptid_target_pid_test): New.
1595 (_initialize_regcache): Register new test.
1596
1597 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1598
1599 * regcache.c (regcache_count): New.
1600 (struct regcache_test_data): New.
1601 (regcache_test_data_up): New.
1602 (populate_regcaches_for_test): New.
1603 (regcaches_test): Remove.
1604 (get_thread_arch_aspace_regcache_test): New.
1605 (registers_changed_ptid_all_test): New.
1606 (registers_changed_ptid_target_test): New.
1607 (registers_changed_ptid_target_ptid_test): New.
1608 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1609 (_initialize_regcache): Register new tests.
1610
1611 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1612
1613 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1614 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1615 gdbarch and aspace parameter. Use current inferior's aspace.
1616 Validate regcache's arch value.
1617 (regcaches_test): Update.
1618
1619 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1620
1621 * regcache.c (regcaches_test): Call registers_changed.
1622
1623 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1624
1625 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1626
1627 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1628
1629 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1630 to find the end of prologue for flang compiled binaries.
1631 * arm-tdep.c (arm_skip_prologue): Likewise.
1632 * i386-tdep.c (i386_skip_prologue): Likewise.
1633 * producer.c (producer_is_llvm): New function.
1634 (producer_parsing_tests): Added new tests for clang/flang.
1635 * producer.h (producer_is_llvm): New declaration.
1636
1637 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
1638
1639 * linux-nat.c (linux_nat_debug_printf): New function.
1640 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1641
1642 2020-08-18 Aaron Merey <amerey@redhat.com>
1643
1644 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1645 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1646 (CLIBS): Add DEBUGINFOD_LIBS.
1647
1648 2020-08-17 Sergei Trofimovich <siarheit@google.com>
1649
1650 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1651 'gdbarch_num_regs'.
1652
1653 2020-08-17 Tom Tromey <tromey@adacore.com>
1654
1655 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1656 ada_get_decoded_value returns NULL.
1657
1658 2020-08-17 Tom Tromey <tromey@adacore.com>
1659
1660 * python/py-inferior.c (infpy_search_memory): Use
1661 gdb_py_object_from_ulongest.
1662 * python/py-infevents.c (create_inferior_call_event_object)
1663 (create_memory_changed_event_object): Use
1664 gdb_py_object_from_ulongest.
1665 * python/py-linetable.c (ltpy_entry_get_pc): Use
1666 gdb_py_object_from_ulongest.
1667
1668 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1669
1670 * loc.c (class symbol_needs_eval_context): Fix indentation.
1671
1672 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1675 bool.
1676
1677 2020-08-17 Tom de Vries <tdevries@suse.de>
1678
1679 PR gdb/26393
1680 * gdbtypes.c (dump_dynamic_prop): New function.
1681 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1682
1683 2020-08-15 Tom de Vries <tdevries@suse.de>
1684
1685 PR backtrace/26390
1686 * stack.c (print_frame_args): Temporarily set the selected
1687 frame to FRAME while printing the frame's arguments.
1688
1689 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1690
1691 PR breakpoints/26385
1692 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1693 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1694
1695 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1696
1697 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1698 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1699 and >= to check return value instead of == -1 and != -1.
1700
1701 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 * utils.h (class gdb_argv) <as_array_view>: New method.
1704 * utils.c (gdb_argv_as_array_view_test): New.
1705 (_initialize_utils): Register selftest.
1706 * maint.c (maintenance_selftest): Use the new method.
1707
1708 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1709
1710 * target.h (supports_dumpcore, dumpcore): New
1711 function declarations.
1712 * target.c (supports_dumpcore, dumpcore): New
1713 functions.
1714 * target-delegates.c: Rebuild.
1715 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1716 and target_dumpcore ().
1717
1718 2020-08-13 Aaron Merey <amerey@redhat.com>
1719
1720 * debuginfod-support.c: Replace global variables with user_data.
1721
1722 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1723
1724 * maint.c (maintenance_selftest): Split args and pass array_view
1725 to run_tests.
1726
1727 2020-08-12 Luis Machado <luis.machado@linaro.org>
1728
1729 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1730 type's length.
1731 Use %s and pulongest to print the length.
1732
1733 2020-08-12 Pedro Alves <palves@redhat.com>
1734
1735 * NEWS: Move "Multi-target debugging support" item to the
1736 "Changes since GDB 9" section.
1737
1738 2020-08-12 Pedro Alves <palves@redhat.com>
1739
1740 PR gdb/26336
1741 * progspace.c (program_space::remove_objfile): Invalidate the
1742 frame cache.
1743
1744 2020-08-11 Tom de Vries <tdevries@suse.de>
1745
1746 * MAINTAINERS: Mark ms1 as deleted.
1747
1748 2020-08-10 Luis Machado <luis.machado@linaro.org>
1749
1750 PR gdb/26310
1751
1752 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1753 act accordingly.
1754 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1755 movz/str/stur/stp skipping behavior.
1756
1757 2020-08-10 Luis Machado <luis.machado@linaro.org>
1758
1759 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1760 struct user_sve_header instead of struct sve_context.
1761
1762 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 * read.h (dwarf2_fetch_die_loc_sect_off,
1765 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1766 `void *` parameter with function_view.
1767 * read.c (dwarf2_fetch_die_loc_sect_off,
1768 dwarf2_fetch_die_loc_cu_off): Likewise.
1769 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1770 (per_cu_dwarf_call): Adjust.
1771 (get_frame_address_in_block_wrapper): Remove.
1772 (indirect_synthetic_pointer): Adjust.
1773 (get_ax_pc): Remove.
1774 (dwarf2_compile_expr_to_ax): Adjust.
1775
1776 2020-08-08 Tom de Vries <tdevries@suse.de>
1777
1778 PR build/26344
1779 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1780 constructor.
1781 * regcache.c (get_thread_arch_aspace_regcache): Same.
1782
1783 2020-08-07 Tom Tromey <tromey@adacore.com>
1784
1785 * ravenscar-thread.c
1786 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1787 New method.
1788 (ravenscar_thread_target::wait): Check
1789 runtime_initialized.
1790 (ravenscar_thread_target::prepare_to_store)
1791 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1792 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1793 (ravenscar_thread_target::stopped_by_watchpoint)
1794 (ravenscar_thread_target::stopped_data_address)
1795 (ravenscar_thread_target::core_of_thread): Use
1796 scoped_restore_current_thread and
1797 set_base_thread_from_ravenscar_task.
1798
1799 2020-08-07 Tom Tromey <tromey@adacore.com>
1800
1801 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1802
1803 2020-08-07 Tom Tromey <tromey@adacore.com>
1804
1805 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1806 update_inferior_ptid before update_thread_list.
1807 (temporarily_change_regcache_ptid): New class.
1808 (ravenscar_thread_target::fetch_registers)
1809 (ravenscar_thread_target::store_registers)
1810 (ravenscar_thread_target::prepare_to_store): Use base thread when
1811 forwarding operation.
1812
1813 2020-08-07 Tom Tromey <tromey@adacore.com>
1814
1815 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1816 "is_pid" case.
1817
1818 2020-08-07 Tom Tromey <tromey@adacore.com>
1819
1820 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1821 New methods.
1822 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1823 first.
1824 (ravenscar_thread_target::add_thread): Rename from
1825 ravenscar_add_thread.
1826 (ravenscar_thread_target::update_thread_list): Use a lambda.
1827 (ravenscar_thread_target::xfer_partial): New method.
1828
1829 2020-08-07 Tom Tromey <tromey@adacore.com>
1830
1831 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1832 gdb::function_view.
1833 (iterate_over_live_ada_tasks): Change type of argument.
1834 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1835 of argument.
1836
1837 2020-08-07 Tom Tromey <tromey@adacore.com>
1838
1839 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1840 Remove.
1841 (ravenscar_thread_target::extra_thread_info): Remove.
1842 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1843 defer to target beneath for non-Ravenscar threads.
1844
1845 2020-08-07 Tom Tromey <tromey@adacore.com>
1846
1847 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1848 get_base_thread_from_ravenscar_task>: Now methods.
1849 <m_cpu_map>: New member.
1850 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1851 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1852 (ravenscar_thread_target::task_is_currently_active): Update.
1853 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1854 Now a method.
1855 (ravenscar_thread_target::add_active_thread): Put initial thread
1856 into the m_cpu_map.
1857
1858 2020-08-07 Tom Tromey <tromey@adacore.com>
1859
1860 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1861 event_ptid.
1862
1863 2020-08-07 Tom Tromey <tromey@adacore.com>
1864
1865 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1866 runtime_initialized.
1867
1868 2020-08-07 Tom Tromey <tromey@adacore.com>
1869
1870 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1871 add_active_thread.
1872 (ravenscar_thread_target::add_active_thread): Now public.
1873 (ravenscar_inferior_created): Call add_active_thread after pushing
1874 the target.
1875
1876 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * regcache.c (ptid_regcache_map): New type.
1879 (target_ptid_regcache_map): New type.
1880 (regcaches): Change type to target_ptid_regcache_map.
1881 (get_thread_arch_aspace_regcache): Update to regcaches' new
1882 type.
1883 (regcache_thread_ptid_changed): Likewise.
1884 (registers_changed_ptid): Likewise.
1885 (regcaches_size): Likewise.
1886 (regcaches_test): Update.
1887 (regcache_thread_ptid_changed): Update.
1888 * regcache.h (regcache_up): New type.
1889 * gdbsupport/ptid.h (hash_ptid): New struct.
1890
1891 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * observable.h (thread_ptid_changed): Add parameter
1894 `process_stratum_target *`.
1895 * infrun.c (infrun_thread_ptid_changed): Add parameter
1896 `process_stratum_target *` and use it.
1897 (selftests): New namespace.
1898 (infrun_thread_ptid_changed): New function.
1899 (_initialize_infrun): Register selftest.
1900 * regcache.c (regcache_thread_ptid_changed): Add parameter
1901 `process_stratum_target *` and use it.
1902 (regcache_thread_ptid_changed): New function.
1903 (_initialize_regcache): Register selftest.
1904 * thread.c (thread_change_ptid): Pass target to
1905 thread_ptid_changed observable.
1906
1907 2020-08-06 Caroline Tice <cmtice@google.com>
1908
1909 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1910 (struct dwp_sections): Update field comments. Add loclists and
1911 rnglists fields.
1912 (struct virtual_v2_dwo_sections): Rename struct to
1913 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1914 size & offset fields for loclists and rnglists.
1915 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1916 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1917 skipping dummy type units.
1918 (create_dwp_hash_table): Update the large comment above the function to
1919 discuss Version 5 DWP files as well, with references. Update all the
1920 version checks in the function to check for version 5 as well. Add new
1921 section at the end to create dwp hash table for version 5.
1922 (create_dwp_v2_section): Rename function to
1923 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1924 Add V5 to error message text.
1925 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1926 into calls to create_dwp_v2_or_v5_section.
1927 (create_dwo_unit_in_dwp_v5): New function.
1928 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1929 check for version2; add else clause to handle version 5.
1930 (open_and_init_dwo_file): Add code to check dwarf version & only call
1931 create_debug_types_hash_table (with sections.types) if version is not 5;
1932 else call create_debug_type_hash_table, with sections.info.
1933 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1934 version 5.
1935 (dwarf2_locate_v5_dwp_sections): New function.
1936 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1937 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1938
1939 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * regcache.h (class regcache): Remove friend
1942 registers_changed_ptid.
1943 <regcache_thread_ptid_changed>: Remove.
1944 <regcaches>: Remove.
1945 * regcache.c (regcache::regcaches): Rename to...
1946 (regcaches): ... this. Make static.
1947 (get_thread_arch_aspace_regcache): Update.
1948 (regcache::regcache_thread_ptid_changed): Rename to...
1949 (regcache_thread_ptid_changed): ... this. Update.
1950 (class regcache_access): Remove.
1951 (regcaches_test): Update.
1952 (_initialize_regcache): Update.
1953 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1954 <forward_list>.
1955
1956 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * regcache.h (class regcache) <current_regcache>: Rename to...
1959 <regcaches>: ... this. Move doc here.
1960 * regcache.c (regcache::current_regcache) Rename to...
1961 (regcache::regcaches): ... this. Move doc to header.
1962 (get_thread_arch_aspace_regcache): Update.
1963 (regcache::regcache_thread_ptid_changed): Update.
1964 (registers_changed_ptid): Update.
1965 (class regcache_access) <current_regcache_size>: Rename to...
1966 <regcaches_size>: ... this.
1967 (current_regcache_test): Rename to...
1968 (regcaches_test): ... this.
1969 (_initialize_regcache): Update.
1970
1971 2020-08-06 Victor Collod <vcollod@nvidia.com>
1972
1973 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1974
1975 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1976
1977 * corelow.c (core_target::build_file_mappings): Don't output
1978 null pathname in warning.
1979
1980 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1983 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1984 gdb.dwarf2/dw2-single-line-discriminators.exp,
1985 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1986
1987 2020-08-05 Tom Tromey <tromey@adacore.com>
1988
1989 PR rust/26197:
1990 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1991 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1992 Fix off-by-one and type size errors in ordinary case.
1993
1994 2020-08-05 Tom de Vries <tdevries@suse.de>
1995
1996 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1997 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1998
1999 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2000
2001 * frame.h (frame_id_p): Return bool.
2002 (frame_id_artificial_p): Return bool.
2003 (frame_id_eq): Return bool.
2004 (has_stack_frames): Return bool.
2005 (get_selected_frame): Fix typo in comment.
2006 (get_frame_pc_if_available): Return bool.
2007 (get_frame_address_in_block_if_available): Return bool.
2008 (get_frame_func_if_available): Return bool.
2009 (read_frame_register_unsigned): Return bool.
2010 (get_frame_register_bytes): Return bool.
2011 (safe_frame_unwind_memory): Return bool.
2012 (deprecated_frame_register_read): Return bool.
2013 (frame_unwinder_is): Return bool.
2014 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2015 bool.
2016 <this_id::p>: Likewise.
2017 <prev_p>: Likewise.
2018 (frame_stash_add): Return bool.
2019 (get_frame_id): Use bool.
2020 (frame_id_build_special) Use bool.
2021 (frame_id_build_unavailable_stack): Use bool.
2022 (frame_id_build): Use bool.
2023 (frame_id_p): Return bool, use true/false instead of 1/0.
2024 (frame_id_artificial_p): Likewise.
2025 (frame_id_eq): Likewise.
2026 (frame_id_inner): Likewise.
2027 (get_frame_func_if_available): Likewise.
2028 (read_frame_register_unsigned): Likewise.
2029 (deprecated_frame_register_read): Likewise.
2030 (get_frame_register_bytes): Likewise.
2031 (has_stack_frames): Likewise.
2032 (inside_main_func): Likewise.
2033 (inside_entry_func): Likewise.
2034 (get_frame_pc_if_available): Likewise.
2035 (get_frame_address_in_block_if_available): Likewise.
2036 (frame_unwinder_is): Likewise.
2037 (safe_frame_unwind_memory): Likewise.
2038 (frame_unwind_arch): Likewise.
2039
2040 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2041
2042 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2043 type to cached_copy_status.
2044 (fprintf_frame): Adjust.
2045 (get_frame_func_if_available): Adjust.
2046 (frame_cleanup_after_sniffer): Adjust.
2047
2048 2020-08-04 Mark Wielaard <mark@klomp.org>
2049
2050 * MAINTAINERS (Write After Approval): Update email address.
2051
2052 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2055 dynamic_prop::const_val.
2056
2057 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2058
2059 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2060 dynamic_prop::kind.
2061
2062 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2063
2064 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2065
2066 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2067
2068 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2069
2070 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2071 Jose E. Marchesi <jose.marchesi@oracle.com>
2072
2073 * configure.tgt: Add entry for bpf-*-*.
2074 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2075 (ALLDEPFILES): Add bpf-tdep.c.
2076 * bpf-tdep.c: New file.
2077 * MAINTAINERS: Add bpf target and maintainer.
2078 * NEWS: Mention the support for the new target.
2079
2080 2020-08-04 Tom de Vries <tdevries@suse.de>
2081
2082 PR symtab/23270
2083 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2084 Error.
2085
2086 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2087
2088 * syscalls/freebsd.xml: Regenerate.
2089
2090 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2091
2092 * syscalls/update-freebsd.sh: Fix usage and year range.
2093
2094 2020-08-03 Tom de Vries <tdevries@suse.de>
2095
2096 PR symtab/26333
2097 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2098 DW_LNE_lo_user/DW_LNE_hi_user range.
2099
2100 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2101
2102 PR ada/26318
2103 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2104 kind.
2105
2106 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2107
2108 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2109
2110 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2111
2112 * breakpoint.c (set_breakpoint_condition): Update the condition
2113 expressions after checking that the input condition string parses
2114 successfully and does not contain junk at the end.
2115
2116 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * breakpoint.c (set_breakpoint_condition): Update the
2119 condition string after parsing the new condition successfully.
2120
2121 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2122
2123 * proc-api.c (_STRUCTURED_PROC): Don't define.
2124 * proc-events.c: Likewise.
2125 * proc-flags.c: Likewise.
2126 * proc-why.c: Likewise.
2127 * procfs.c: Likewise.
2128
2129 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2130 * configure, config.in: Regenerate.
2131
2132 2020-07-30 Tom de Vries <tdevries@suse.de>
2133
2134 PR build/26320
2135 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2136 m_red/m_green/m_blue in a union.
2137
2138 2020-07-29 Tom de Vries <tdevries@suse.de>
2139
2140 PR tdep/26280
2141 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2142
2143 2020-07-28 Tom Tromey <tromey@adacore.com>
2144
2145 PR symtab/26270:
2146 * symtab.h (find_pc_partial_function_sym): Declare.
2147 * cli/cli-cmds.c (disassemble_command): Use
2148 find_pc_partial_function_sym. Check asm_demangle.
2149 * blockframe.c (cache_pc_function_sym): New global.
2150 (cache_pc_function_name): Remove.
2151 (clear_pc_function_cache): Update.
2152 (find_pc_partial_function_sym): New function, from
2153 find_pc_partial_function.
2154 (find_pc_partial_function): Rewrite using
2155 find_pc_partial_function_sym.
2156
2157 2020-07-28 Tom Tromey <tromey@adacore.com>
2158
2159 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2160 help. Add usage.
2161
2162 2020-07-28 Tom Tromey <tromey@adacore.com>
2163
2164 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2165 <DW_OP_GNU_variable_value>: Cast to address type.
2166
2167 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2168
2169 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2170 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2171 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2172 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2173 (nbsd_get_siginfo_type): New.
2174 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2175 (_initialize_nbsd_tdep): New.
2176
2177 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2178
2179 PR binutils/26301
2180 * configure: Regenerated.
2181
2182 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2183
2184 PR binutils/26301
2185 * configure: Regenerated.
2186
2187 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * python/py-frame.c: Remove 'user-regs.h' include.
2190 (frapy_read_register): Rewrite to make use of
2191 gdbpy_parse_register_id.
2192 * python/py-registers.c (gdbpy_parse_register_id): New function,
2193 moved here from python/py-unwind.c. Updated the return type, and
2194 also accepts register descriptor objects.
2195 * python/py-unwind.c: Remove 'user-regs.h' include.
2196 (pyuw_parse_register_id): Moved to python/py-registers.c.
2197 (unwind_infopy_add_saved_register): Update to use
2198 gdbpy_parse_register_id.
2199 (pending_framepy_read_register): Likewise.
2200 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2201
2202 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * python/py-registers.c: Add 'user-regs.h' include.
2205 (register_descriptor_iter_find): New function.
2206 (register_descriptor_iterator_object_methods): New static global
2207 methods array.
2208 (register_descriptor_iterator_object_type): Add pointer to methods
2209 array.
2210
2211 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2212
2213 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2214 for all architectures on FreeBSD 11.3 and later.
2215
2216 2020-07-27 Tom Tromey <tromey@adacore.com>
2217
2218 * gcore.h (load_corefile): Don't declare.
2219
2220 2020-07-27 Tom de Vries <tdevries@suse.de>
2221
2222 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2223 * config.in: Regenerate.
2224 * configure: Regenerate.
2225
2226 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2227
2228 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2229 ws2tcpip.h. When checking whether socklen_t type is defined, use
2230 ws2tcpip.h if it is available and sys/socket.h isn't.
2231 * configure: Regenerate.
2232 * config.in: Regenerate.
2233
2234 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 PR fortran/23051
2237 PR fortran/26139
2238 * valops.c (value_ind): Pass address to
2239 readjust_indirect_value_type.
2240 * value.c (readjust_indirect_value_type): Make parameter
2241 non-const, and add extra address parameter. Resolve original type
2242 before using it.
2243 * value.h (readjust_indirect_value_type): Update function
2244 signature and comment.
2245
2246 2020-07-25 Tom de Vries <tdevries@suse.de>
2247
2248 PR symtab/26243
2249 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2250 entries.
2251
2252 2020-07-24 Aaron Merey <amerey@redhat.com>
2253
2254 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2255 * configure: Rebuild.
2256
2257 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2258
2259 PR corefiles/26294
2260 * corelow.c (_initialize_corelow): Add period to help text
2261 for "maintenance print core-file-backed-mappings".
2262
2263 2020-07-23 Pedro Alves <pedro@palves.net>
2264
2265 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2266 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2267 meanwhile.
2268 * frame.c (frame_cache_generation, get_frame_cache_generation):
2269 New.
2270 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2271 (get_prev_frame_if_no_cycle): On exception, don't touch
2272 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2273 * frame.h (get_frame_cache_generation): Declare.
2274
2275 2020-07-23 Tom de Vries <tdevries@suse.de>
2276
2277 PR tui/26282
2278 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2279 New default constructor.
2280
2281 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2284 exclude non-statement entries.
2285
2286 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2287
2288 * NEWS (New commands): Mention new command
2289 "maintenance print core-file-backed-mappings".
2290
2291 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2292
2293 * corelow.c (gdbcmd.h): Include.
2294 (core_target::info_proc_mappings): New method.
2295 (get_current_core_target): New function.
2296 (maintenance_print_core_file_backed_mappings): New function.
2297 (_initialize_corelow): Add core-file-backed-mappings to
2298 "maint print" commands.
2299
2300 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2301
2302 * linux-tdep.c (dump_note_entry_p): New function.
2303 (linux_dump_mapping_p_ftype): New typedef.
2304 (linux_find_memory_regions_full): Add new parameter,
2305 should_dump_mapping_p.
2306 (linux_find_memory_regions): Adjust call to
2307 linux_find_memory_regions_full.
2308 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2309 call to linux_find_memory_regions_full.
2310
2311 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2312
2313 * corelow.c (solist.h, unordered_map): Include.
2314 (class core_target): Add field m_core_file_mappings and
2315 method build_file_mappings.
2316 (core_target::core_target): Call build_file_mappings.
2317 (core_target::~core_target): Free memory associated with
2318 m_core_file_mappings.
2319 (core_target::build_file_mappings): New method.
2320 (core_target::xfer_partial): Use m_core_file_mappings
2321 for memory transfers.
2322 * linux-tdep.c (linux_read_core_file_mappings): New
2323 function.
2324 (linux_core_info_proc_mappings): Rewrite to use
2325 linux_read_core_file_mappings.
2326 (linux_init_abi): Register linux_read_core_file_mappings.
2327
2328 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2329
2330 * arch-utils.c (default_read_core_file_mappings): New function.
2331 * arch-utils.c (default_read_core_file_mappings): Declare.
2332 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2333 * gdbarch.h, gdbarch.c: Regenerate.
2334
2335 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2336
2337 PR corefiles/25631
2338 * corelow.c (core_target:xfer_partial): Revise
2339 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2340 case after first checking the stratum beneath the core
2341 target.
2342 (has_all_memory): Return true.
2343 * target.c (raw_memory_xfer_partial): Revise comment
2344 regarding use of has_all_memory.
2345
2346 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2347
2348 * exec.h (section_table_xfer_memory): Revise declaration,
2349 replacing section name parameter with an optional callback
2350 predicate.
2351 * exec.c (section_table_xfer_memory): Likewise.
2352 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2353 of section_table_xfer_memory.
2354
2355 2020-07-22 Tom Tromey <tromey@adacore.com>
2356
2357 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2358 lookup_symbol_search_name.
2359
2360 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2363 redundant local variable.
2364 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2365 reference, not pointer, update code accordingly.
2366
2367 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2368 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369
2370 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2371 * jit.c (jit_breakpoint_re_set_internal): Use the
2372 `skip_jit_symbol_lookup` field.
2373
2374 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2375 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2376
2377 * jit.c (jit_read_descriptor): Define the descriptor address once,
2378 use twice.
2379 (jit_breakpoint_deleted): Move the declaration of the loop variable
2380 `iter` into the loop header.
2381 (jit_breakpoint_re_set_internal): Move the declaration of the local
2382 variable `objf_data` to the first point of definition.
2383 (jit_event_handler): Move the declaration of local variables
2384 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2385 Rename `objf` to `jited`.
2386
2387 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2390 Remove.
2391 * jit.c (get_jiter_objfile_data): Update.
2392
2393 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2394 Simon Marchi <simon.marchi@polymtl.ca>
2395
2396 * jit.c (struct jit_program_space_data): Remove.
2397 (jit_program_space_key): Remove.
2398 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2399 stuff.
2400 (get_jit_program_space_data): Remove.
2401 (jit_breakpoint_deleted): Iterate on all of the program space's
2402 objfiles.
2403 (jit_inferior_init): Likewise.
2404 (jit_breakpoint_re_set_internal): Likewise. Also change return
2405 type to void.
2406 (jit_breakpoint_re_set): Pass current_program_space to
2407 jit_breakpoint_re_set_internal.
2408
2409 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * jit.h (struct jiter_objfile_data) <cached_code_address,
2412 jit_breakpoint>: Move to here from ...
2413 * jit.c (jit_program_space_data): ... here.
2414 (jiter_objfile_data::~jiter_objfile_data): Update.
2415 (jit_breakpoint_deleted): Update.
2416 (jit_breakpoint_re_set_internal): Update.
2417
2418 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2419
2420 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2421 checks.
2422 (jit_read_descriptor): Remove NULL check.
2423 (jit_event_handler): Add an assertion.
2424
2425 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2426
2427 * jit.h (struct jit_objfile_data): Split into...
2428 (struct jiter_objfile_data): ... this ...
2429 (struct jited_objfile_data): ... and this.
2430 * objfiles.h (struct objfile) <jit_data>: Remove.
2431 <jiter_data, jited_data>: New fields.
2432 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2433 (jiter_objfile_data::~jiter_objfile_data): ... this.
2434 (get_jit_objfile_data): Rename to ...
2435 (get_jiter_objfile_data): ... this.
2436 (add_objfile_entry): Update.
2437 (jit_read_descriptor): Use get_jiter_objfile_data.
2438 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2439 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2440 (jit_inferior_exit_hook): Use objfile's jited_data field.
2441
2442 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2443
2444 * jit.h: Forward-declare `struct minimal_symbol`.
2445 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2446 constructor, destructor, and an objfile* field.
2447 * jit.c (jit_objfile_data): Remove.
2448 (struct jit_objfile_data): Migrate from here to jit.h.
2449 (jit_objfile_data::~jit_objfile_data): New destructor
2450 implementation with code moved from free_objfile_data.
2451 (free_objfile_data): Delete.
2452 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2453 (jit_find_objf_with_entry_addr): Ditto.
2454 (jit_inferior_exit_hook): Ditto.
2455 (_initialize_jit): Remove the call to
2456 register_objfile_data_with_cleanup.
2457 * objfiles.h (struct objfile) <jit_data>: New field.
2458
2459 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2460
2461 * jit.h: Forward-declare `struct objfile`.
2462 (jit_event_handler): Add a second parameter, the JITer objfile.
2463 * jit.c (jit_read_descriptor): Change the signature to take the
2464 JITer objfile as an argument instead of the jit_program_space_data.
2465 (jit_inferior_init): Update the call to jit_read_descriptor.
2466 (jit_event_handler): Use the new JITer objfile argument when calling
2467 jit_read_descriptor.
2468 * breakpoint.c (handle_jit_event): Update the call to
2469 jit_event_handler to pass the JITer objfile.
2470
2471 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2472
2473 * gdbarch.c: Regenerate.
2474 * gdbarch.h: Regenerate.
2475 * gdbarch.sh (handle_segmentation_fault): Remove method.
2476 * infrun.c (handle_segmentation_fault): Remove.
2477 (print_signal_received_reason): Remove call to
2478 handle_segmentation_fault.
2479
2480 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2481
2482 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2483 Rename to sparc64_linux_report_signal_info and add siggnal
2484 argument.
2485 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2486 instead of sparc64_linux_handle_segmentation_fault.
2487
2488 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2489
2490 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2491 i386_linux_report_signal_info instead of
2492 i386_linux_handle_segmentation_fault.
2493 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2494 to i386_linux_report_signal_info and add siggnal argument.
2495 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2496 of i386_linux_handle_segmentation_fault.
2497 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2498 to i386_linux_report_signal_info and add siggnal argument.
2499
2500 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2501
2502 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2503 hook if present.
2504
2505 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2506
2507 * gdbarch.c: Regenerate.
2508 * gdbarch.h: Regenerate.
2509 * gdbarch.sh (report_signal_info): New method.
2510 * infrun.c (print_signal_received_reason): Invoke gdbarch
2511 report_signal_info hook if present.
2512
2513 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * python/py-registers.c : Add 'unordered_map' include.
2516 (gdbpy_new_reggroup): Renamed to...
2517 (gdbpy_get_reggroup): ...this. Update to only create register
2518 group descriptors when needed.
2519 (gdbpy_reggroup_iter_next): Update.
2520
2521 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2522
2523 * python/py-registers.c (gdbpy_register_object_data): New static
2524 global.
2525 (gdbpy_register_object_data_init): New function.
2526 (gdbpy_new_register_descriptor): Renamed to...
2527 (gdbpy_get_register_descriptor): ...this, and update to reuse
2528 existing register descriptors where possible.
2529 (gdbpy_register_descriptor_iter_next): Update.
2530 (gdbpy_initialize_registers): Register new gdbarch data.
2531
2532 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
2533
2534 * linux-nat.c (stopped_pids): Make static.
2535
2536 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2537
2538 PR ada/26235
2539 * gdbtypes.c (ada_discrete_type_low_bound,
2540 ada_discrete_type_high_bound): Handle undefined bounds.
2541
2542 2020-07-21 Kamil Rytarowski <n54@gmx.com>
2543
2544 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2545 declaration.
2546 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2547 function.
2548
2549 2020-07-20 John Baldwin <jhb@FreeBSD.org>
2550
2551 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2552 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2553 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2554 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2555 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2556 method.
2557
2558 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2559
2560 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2561 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2562 which are deprecated in Guile 3.0.
2563 * configure.ac (try_guile_versions): Add "guile-3.0".
2564 * configure (try_guile_versions): Regenerate.
2565 * NEWS: Update entry.
2566
2567 2020-07-20 Ludovic Courtès <ludo@gnu.org>
2568 Doug Evans <dje@google.com>
2569
2570 PR gdb/21104
2571 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2572 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2573 USING_GUILE_BEFORE_2_2.
2574 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2575 Change type to 'scm_t_port_type *'.
2576 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2577 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2578 parameter and honor it. Update callers.
2579 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2580 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2581 functions.
2582 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2583 USING_GUILE_BEFORE_2_2.
2584 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2585 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2586 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2587 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2588 and 'SCM_PORT_TYPE'.
2589 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2590 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2591 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2592 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2593 [!USING_GUILE_BEFORE_2_2]: New functions.
2594 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2595 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2596 'gdbscm_memory_port_read'.
2597 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2598 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2599 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2600 function.
2601 (ioscm_init_memory_port): Remove.
2602 (ioscm_init_memory_port_stream): New function
2603 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2604 function.
2605 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2606 Return scm_from_uint (0).
2607 (gdbscm_set_memory_port_read_buffer_size_x)
2608 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2609 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2610 Return scm_from_uint (0).
2611 (gdbscm_set_memory_port_write_buffer_size_x)
2612 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2613 * configure.ac (try_guile_versions): Add "guile-2.2".
2614 * configure: Regenerate.
2615 * NEWS: Add entry.
2616
2617 2020-07-18 Tom Tromey <tom@tromey.com>
2618
2619 * linux-nat.c (linux_multi_process): Remove.
2620 (linux_nat_target::supports_multi_process): Return true.
2621
2622 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2623
2624 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2625 (riscv_lookup_target_description): Return pointer out of
2626 unique_ptr.
2627 * target-descriptions.c (allocate_target_description): Add
2628 comment.
2629 (target_desc_deleter::operator()): Likewise.
2630 * target-descriptions.h (struct target_desc_deleter): Moved to
2631 gdbsupport/tdesc.h.
2632 (target_desc_up): Likewise.
2633
2634 2020-07-17 Tom Tromey <tromey@adacore.com>
2635
2636 * linux-nat.c (linux_nat_target::supports_non_stop)
2637 (linux_nat_target::always_non_stop_p): Use "true".
2638 (linux_nat_target::supports_disable_randomization): Use "true" and
2639 "false".
2640
2641 2020-07-16 Caroline Tice <cmtice@google.com>
2642
2643 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2644 (RNGLIST_HEADER_SIZE64): New constant definition.
2645 (struct dwop_section_names): Add rnglists_dwo.
2646 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2647 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2648 (struct dwo_sections): Add rnglists field.
2649 (read_attribut_reprocess): Add tag parameter.
2650 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2651 (cu_debug_rnglists_section): New function (decl & definition).
2652 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2653 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2654 die whose range is being checked; get rnglist section from
2655 cu_debug_rnglists_section, to get from either objfile or dwo file as
2656 appropriate. Add cases for DW_RLE_base_addressx,
2657 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2658 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2659 test inside if-condition and updating complaint message.
2660 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2661 dwarf2_rnglists_process.
2662 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2663 dwarf2_ranges_process.
2664 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2665 need_ranges_base and update comment appropriately. Also pass die tag
2666 to dwarf2_ranges_read.
2667 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2668 need_ranges_base and update comment appropriately. Also pass die tag
2669 to dwarf2_ranges_process.
2670 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2671 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2672 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2673 need_ranges_base and update comment appropriately. Also pass die tag
2674 to read_attribute_reprocess and dwarf2_ranges_read.
2675 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2676 and update function comment appropriately.
2677 (read_loclist_index): Call read_loclists_rnglists_header instead of
2678 read_loclist_header.
2679 (read_rnglist_index): New function.
2680 (read_attribute_reprocess): Add tag parameter. Add code for
2681 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2682 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2683
2684 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2687 being resolved.
2688
2689 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * arch-utils.c (show_architecture): Update formatting of messages.
2692
2693 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * gdbtypes.h (struct type) <bounds>: Handle array and string
2696 types.
2697 * ada-lang.c (assign_aggregate): Use type::bounds on
2698 array/string type.
2699 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2700 * c-varobj.c (c_number_of_children): Likewise.
2701 (c_describe_child): Likewise.
2702 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2703 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2704 (f_type_print_base): Likewise.
2705 * f-valprint.c (f77_array_offset_tbl): Likewise.
2706 (f77_get_upperbound): Likewise.
2707 (f77_print_array_1): Likewise.
2708 * guile/scm-type.c (gdbscm_type_range): Likewise.
2709 * m2-typeprint.c (m2_array): Likewise.
2710 (m2_is_long_set_of_type): Likewise.
2711 * m2-valprint.c (get_long_set_bounds): Likewise.
2712 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2713 * python/py-type.c (typy_range): Likewise.
2714 * rust-lang.c (rust_internal_print_type): Likewise.
2715 * type-stack.c (type_stack::follow_types): Likewise.
2716 * valarith.c (value_subscripted_rvalue): Likewise.
2717 * valops.c (value_cast): Likewise.
2718
2719 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2722 callers to use the equivalent accessor methods.
2723
2724 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2725
2726 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2727 (struct type) <bit_stride>: New method.
2728 (TYPE_BIT_STRIDE): Remove.
2729 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2730
2731 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2734 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2735 callers to use the equivalent accessor methods instead.
2736
2737 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2740 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2741 callers to use the equivalent accessor methods instead.
2742
2743 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2746 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2747 to use dynamic_prop::kind.
2748
2749 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2750
2751 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2752 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2753 to get the bound property's kind and check against
2754 PROP_UNDEFINED.
2755
2756 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2759 all callers to use type::range_bounds followed by
2760 dynamic_prop::{low,high}.
2761
2762 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2765 const_val, set_const_val, baton, set_locexpr, set_loclist,
2766 set_addr_offset, variant_parts, set_variant_parts,
2767 original_type, set_original_type>: New methods.
2768 <kind>: Rename to...
2769 <m_kind>: ... this. Update all users to use the new methods
2770 instead.
2771 <data>: Rename to...
2772 <m_data>: ... this. Update all users to use the new methods
2773 instead.
2774
2775 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2776
2777 * gdbtypes.c (get_discrete_bounds): Return failure if
2778 the range type's bounds are not both defined and constant
2779 values.
2780 (get_array_bounds): Update comment. Remove undefined bound check.
2781
2782 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2785 the type::bounds method directly.
2786
2787 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2790 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2791 are used to set the range type's bounds to use set_bounds.
2792
2793 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2794
2795 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2796
2797 2020-07-10 Pedro Alves <pedro@palves.net>
2798
2799 * gdbthread.h (inferior_ref): Define.
2800 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2801 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2802 * thread.c
2803 (scoped_restore_current_thread::restore):
2804 Adjust to gdb::ref_ptr.
2805 (scoped_restore_current_thread::~scoped_restore_current_thread):
2806 Remove manual decref handling.
2807 (scoped_restore_current_thread::scoped_restore_current_thread):
2808 Adjust to use
2809 inferior_ref::new_reference/thread_info_ref::new_reference.
2810 Incref the thread before calling get_frame_id instead of after.
2811 Let TARGET_CLOSE_ERROR propagate.
2812
2813 2020-07-10 Pedro Alves <pedro@palves.net>
2814
2815 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2816 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2817 NOT_AVAILABLE_ERROR.
2818 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2819 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2820
2821 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2822 Pedro Alves <pedro@palves.net>
2823
2824 PR gdb/26199
2825 * infrun.c (threads_are_resumed_pending_p): Delete.
2826 (do_target_wait): Remove threads_are_executing and
2827 threads_are_resumed_pending_p checks from the inferior_matches
2828 lambda. Update comments.
2829
2830 2020-07-10 Pedro Alves <pedro@palves.net>
2831
2832 PR gdb/26199
2833 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2834 executing threads.
2835
2836 2020-07-10 Pedro Alves <pedro@palves.net>
2837
2838 PR gdb/26199
2839 * infrun.c (handle_no_resumed): Handle multiple targets.
2840
2841 2020-07-10 Pedro Alves <pedro@palves.net>
2842
2843 PR gdb/26199
2844 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2845 target_is_async_p.
2846
2847 2020-07-10 Pedro Alves <pedro@palves.net>
2848
2849 PR gdb/26199
2850 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2851 threads, not all threads.
2852
2853 2020-07-10 Pedro Alves <pedro@palves.net>
2854
2855 PR gdb/26199
2856 * remote.c (remote_target::open_1): Pass remote target pointer as
2857 data to create_async_event_handler.
2858 (remote_async_inferior_event_handler): Mark async event handler
2859 before returning if the remote target still has either pending
2860 events or unacknowledged notifications.
2861
2862 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2863
2864 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2865 declaration.
2866 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2867 function.
2868
2869 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2870
2871 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2872 inferior_ptid.
2873
2874 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2875
2876 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2877 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2878 AT_FREEBSD_PS_STRINGS.
2879
2880 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2881
2882 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2883 of debugfile path on Windows.
2884
2885 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2886
2887 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2888 argument to 'data'.
2889
2890 2020-07-08 Tom Tromey <tromey@adacore.com>
2891
2892 * ada-lang.c (ada_exception_message_1): Use read_memory.
2893
2894 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 PR python/22748
2897 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2898 special handling for inline frames.
2899 * findvar.c (value_of_register_lazy): Skip inline frames when
2900 creating lazy register values.
2901 * frame.c (frame_id_computed_p): Delete definition.
2902 * frame.h (frame_id_computed_p): Delete declaration.
2903
2904 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * NEWS: Mention additions to Python API.
2907 * python/py-arch.c (archpy_register_groups): New function.
2908 (arch_object_methods): Add 'register_groups' method.
2909 * python/py-registers.c (reggroup_iterator_object): New struct.
2910 (reggroup_object): New struct.
2911 (gdbpy_new_reggroup): New function.
2912 (gdbpy_reggroup_to_string): New function.
2913 (gdbpy_reggroup_name): New function.
2914 (gdbpy_reggroup_iter): New function.
2915 (gdbpy_reggroup_iter_next): New function.
2916 (gdbpy_new_reggroup_iterator): New function
2917 (gdbpy_initialize_registers): Register new types.
2918 (reggroup_iterator_object_type): Define new Python type.
2919 (gdbpy_reggroup_getset): New static global.
2920 (reggroup_object_type): Define new Python type.
2921 * python/python-internal.h
2922
2923 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2926 * python/py-arch.c (archpy_registers): New function.
2927 (arch_object_methods): Add 'registers' method.
2928 * python/py-registers.c: New file.
2929 * python/python-internal.h
2930 (gdbpy_new_register_descriptor_iterator): Declare.
2931 (gdbpy_initialize_registers): Declare.
2932 * python/python.c (do_start_initialization): Call
2933 gdbpy_initialize_registers.
2934 * NEWS: Mention additions to the Python API.
2935
2936 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * NEWS: Mention new Python API method.
2939 * python/py-unwind.c (pending_framepy_architecture): New function.
2940 (pending_frame_object_methods): Add architecture method.
2941
2942 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * gdbarch.c: Regenerate.
2945 * gdbarch.h: Regenerate.
2946 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2947 (gdbarch_data): Use internal_error for the case where
2948 deprecated_set_gdbarch_data was originally needed.
2949 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2950 and use passed in obstack.
2951 (libunwind_frame_set_descr): Should no longer get back NULL from
2952 gdbarch_data.
2953 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2954 type.
2955 * user-regs.c (user_regs_init): Update parameters, and use passed
2956 in obstack.
2957 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2958 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2959
2960 2020-07-06 Tom de Vries <tdevries@suse.de>
2961
2962 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2963 End-Of-Sequence in lte_is_less_than.
2964 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2965 "gdb: Don't reorder line table entries too much when sorting".
2966
2967 2020-07-06 Tom de Vries <tdevries@suse.de>
2968
2969 PR tui/26205
2970 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2971
2972 2020-07-05 Tom de Vries <tdevries@suse.de>
2973
2974 PR build/26187
2975 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2976 std::uncaught_exceptions instead of deprecated
2977 std::uncaught_exception.
2978
2979 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2980
2981 * macroexp.h (macro_stringify): Return
2982 gdb::unique_xmalloc_ptr<char>.
2983 * macroexp.c (macro_stringify): Likewise.
2984 * macrotab.c (fixup_definition): Update.
2985
2986 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2987
2988 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2989 (lex_one_token): Update.
2990 * macroexp.c (struct macro_buffer) <release>: Return
2991 gdb::unique_xmalloc_ptr<char>.
2992 (macro_stringify): Update.
2993 (macro_expand): Update.
2994 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2995 * macroexp.h (macro_expand_next): Likewise.
2996
2997 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * macroexp.h (macro_lookup_ftype): Remove.
3000 (macro_expand, macro_expand_once, macro_expand_next): Remove
3001 lookup function parameters, add scope parameter.
3002 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3003 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3004 * macroscope.h (standard_macro_lookup): Change parameter type
3005 to macro_scope.
3006 * macroscope.c (standard_macro_lookup): Likewise.
3007 * c-exp.y (lex_one_token): Update.
3008 * macrocmd.c (macro_expand_command): Likewise.
3009 (macro_expand_once_command): Likewise.
3010
3011 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3012
3013 * inf-loop.c (inferior_event_handler): Remove client_data param.
3014 * inf-loop.h (inferior_event_handler): Likewise.
3015 * infcmd.c (step_1): Adjust.
3016 * infrun.c (proceed): Adjust.
3017 (fetch_inferior_event): Remove client_data param.
3018 (infrun_async_inferior_event_handler): Adjust.
3019 * infrun.h (fetch_inferior_event): Remove `void *` param.
3020 * linux-nat.c (handle_target_event): Adjust.
3021 * record-btrace.c (record_btrace_handle_async_inferior_event):
3022 Adjust.
3023 * record-full.c (record_full_async_inferior_event_handler):
3024 Adjust.
3025 * remote.c (remote_async_inferior_event_handler): Adjust.
3026
3027 2020-07-01 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3030 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3031
3032 2020-07-01 Tom Tromey <tom@tromey.com>
3033
3034 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3035 tui_gen_win_info.
3036 (tui_win_info::make_window): Merge with
3037 tui_gen_win_info::make_window.
3038 (tui_win_info::make_visible): Move from tui_gen_win_info.
3039 * tui/tui-win.c (tui_win_info::max_width): Move from
3040 tui_gen_win_info.
3041 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3042 type.
3043 <window_factory>: Likewise.
3044 * tui/tui-layout.c (tui_win_info::resize): Move from
3045 tui_gen_win_info.
3046 (make_standard_window): Change return type.
3047 (get_locator_window, tui_get_window_by_name): Likewise.
3048 (tui_layout_window::apply): Remove a cast.
3049 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3050 (struct tui_win_info): Merge with tui_gen_win_info.
3051 (struct tui_gen_win_info): Remove.
3052
3053 2020-07-01 Tom Tromey <tom@tromey.com>
3054
3055 * tui/tui-stack.h (struct tui_locator_window): Derive from
3056 tui_win_info.
3057 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3058 <can_box>: New method.
3059
3060 2020-07-01 Tom Tromey <tom@tromey.com>
3061
3062 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3063
3064 2020-07-01 Tom Tromey <tom@tromey.com>
3065
3066 * tui/tui-regs.c (tui_data_window::display_registers_from)
3067 (tui_data_window::display_registers_from)
3068 (tui_data_window::first_data_item_displayed)
3069 (tui_data_window::delete_data_content_windows): Update.
3070 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3071 Remove.
3072 (tui_data_window::check_register_values): Update.
3073 (tui_data_item_window::rerender): Add parameters. Update.
3074 (tui_data_item_window::refresh_window): Remove.
3075 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3076 virtual.
3077 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3078 tui_gen_win_info.
3079 <refresh_window, max_height, min_height>: Remove.
3080 <rerender>: Add parameters.
3081 <x, y, visible>: New members.
3082 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3083 <m_item_width>: New member.
3084
3085 2020-07-01 Tom Tromey <tom@tromey.com>
3086
3087 * tui/tui-regs.c (tui_data_window::show_register_group)
3088 (tui_data_window::check_register_values): Update.
3089 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3090 from item_no.
3091
3092 2020-07-01 Tom Tromey <tom@tromey.com>
3093
3094 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3095 useless "if".
3096
3097 2020-07-01 Tom Tromey <tom@tromey.com>
3098
3099 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3100 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3101
3102 2020-07-01 Tom Tromey <tom@tromey.com>
3103
3104 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3105 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3106 (struct tui_line_or_address): Move from tui-data.h.
3107 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3108 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3109 (tui_cmd_window, tui_source_window_base, tui_source_window)
3110 (tui_disasm_window): Don't declare.
3111 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3112 to tui-winsource.h.
3113 (SINGLE_KEY): Move to tui-stack.c.
3114
3115 2020-07-01 Tom Tromey <tom@tromey.com>
3116
3117 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3118 std::string.
3119 * tui/tui-regs.c (class tab_expansion_file): New.
3120 (tab_expansion_file::write): New method.
3121 (tui_register_format): Change return type. Use
3122 tab_expansion_file.
3123 (tui_get_register, tui_data_window::display_registers_from)
3124 (tui_data_item_window::rerender): Update.
3125 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3126 * tui/tui-io.c (tui_expand_tabs): Remove.
3127
3128 2020-07-01 Tom Tromey <tom@tromey.com>
3129
3130 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3131
3132 2020-07-01 Fangrui Song <maskray@google.com>
3133
3134 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3135
3136 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3137
3138 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3139 forms for DW_AT_associated and DW_AT_allocated attributes,
3140 which is already checked in function attr_to_dynamic_prop.
3141
3142 2020-06-30 Tom Tromey <tromey@adacore.com>
3143
3144 * dwarf2/read.c (quirk_rust_enum): Correctly call
3145 alloc_rust_variant for default-less enum.
3146
3147 2020-06-30 Tom Tromey <tromey@adacore.com>
3148
3149 PR build/26183:
3150 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3151 gdb::to_string.
3152
3153 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3156 * gdbarch.h: Re-generate.
3157
3158 2020-06-28 Tom Tromey <tom@tromey.com>
3159
3160 * command.h (cmd_types): Remove.
3161 (cmd_type): Don't declare.
3162 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3163 typedef.
3164 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3165 * cli/cli-decode.c (cmd_type): Remove.
3166
3167 2020-06-27 Pedro Alves <palves@redhat.com>
3168
3169 * fork-child.c (prefork_hook): Adjust.
3170 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3171 Delete.
3172 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3173 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3174 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3175 Remove declarations.
3176 (struct inferior) <set_tty, tty>: New methods.
3177 (struct inferior) <terminal>: Rename to ...
3178 (struct inferior) <m_terminal>: ... this and make private.
3179 * main.c (captured_main_1): Adjust.
3180 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3181 (mi_cmd_inferior_tty_show): Adjust.
3182 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3183 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3184
3185 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3186
3187 * configure.ac: Add --enable-libctf: handle --disable-static
3188 properly.
3189 * acinclude.m4: sinclude ../config/enable.m4.
3190 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3191 (LIBCTF): Substitute in.
3192 (CTF_DEPS): New, likewise.
3193 (CLIBS): libctf needs symbols from libbfd: move earlier.
3194 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3195 flags.
3196 * ctfread.c: Surround in ENABLE_LIBCTF.
3197 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3198 * configure: Regenerate.
3199 * config.in: Likewise.
3200
3201 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3202
3203 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3204
3205 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3206
3207 * inferior.h (struct inferior) <terminal>: Change type to
3208 gdb::unique_xmalloc_ptr<char>.
3209 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3210 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3211 field, adjust to unique pointer.
3212 (get_inferior_io_terminal): Adjust to unique pointer.
3213
3214 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3215
3216 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3217 registers, not just the known core set of registers.
3218
3219 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3220
3221 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3222 fflags, frm, and fcsr registers.
3223 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3224 restore groups.
3225 (riscv_tdesc_unknown_reg): New function.
3226 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3227 tdesc_use_registers.
3228 * riscv-tdep.h (struct gdbarch_tdep): Add
3229 unknown_csrs_first_regnum, unknown_csrs_count,
3230 duplicate_fflags_regnum, duplicate_frm_regnum, and
3231 duplicate_fcsr_regnum fields.
3232
3233 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3234
3235 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3236 callback, use the callback (when not null) to help number unknown
3237 registers.
3238 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3239 (tdesc_use_registers): Add extra parameter to declaration.
3240
3241 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3242
3243 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3244 in the file.
3245 (class riscv_pending_register_alias): Likewise.
3246 (riscv_register_feature::register_info): Change 'required_p' field
3247 to 'required', and change its type. Add 'check' member function.
3248 (riscv_register_feature::register_info::check): Define new member
3249 function.
3250 (riscv_xreg_feature): Change initialisation of 'required' field.
3251 (riscv_freg_feature): Likewise.
3252 (riscv_virtual_feature): Likewise.
3253 (riscv_csr_feature): Likewise.
3254 (riscv_check_tdesc_feature): Take extra parameter, the csr
3255 tdesc_feature, rewrite the function to use the new
3256 riscv_register_feature::register_info::check function.
3257 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3258
3259 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3260
3261 * features/Makefile: Remove all references to the deleted files
3262 below.
3263 * features/riscv/32bit-csr.c: Deleted.
3264 * features/riscv/32bit-csr.xml: Deleted.
3265 * features/riscv/64bit-csr.c: Deleted.
3266 * features/riscv/64bit-csr.xml: Deleted.
3267 * features/riscv/rebuild-csr-xml.sh: Deleted.
3268
3269 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3272 whitespace error for declaration of names member variable.
3273 (struct riscv_register_feature): Add new prefer_first_name member
3274 variable, and fix whitespace error in declaration of registers.
3275 (riscv_xreg_feature): Initialize prefer_first_name field.
3276 (riscv_freg_feature): Likewise.
3277 (riscv_virtual_feature): Likewise.
3278 (riscv_csr_feature): Likewise.
3279 (riscv_register_name): Expand on comments. Remove register name
3280 modifications for CSR and virtual registers.
3281
3282 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3285 errors.
3286
3287 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3290 riscv-opc.h.
3291 (class riscv_pending_register_alias): New class.
3292 (riscv_check_tdesc_feature): Take vector of pending aliases and
3293 populate it as appropriate.
3294 (riscv_setup_register_aliases): Delete.
3295 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3296 to riscv_check_tdesc_feature in all cases. Use the vector to
3297 create the register aliases.
3298
3299 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3300
3301 * sol2-tdep.c (sol2_static_transform_name): Remove.
3302 (sol2_init_abi): Don't register it.
3303 * gdbarch.sh (static_transform_name): Remove.
3304 * gdbarch.c, gdbarch.h: Regenerate.
3305
3306 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3307 gdbarch_static_transform_name.
3308 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3309 * stabsread.c (define_symbol) <'X'>: Remove.
3310 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3311 handling.
3312 <'V'>: Likewise.
3313 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3314 <'S'>: Remove call to gdbarch_static_transform_name.
3315
3316 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3317
3318 * procfs.c (procfs_pre_trace): New function.
3319 (procfs_target::create_inferior): Pass it to fork_inferior.
3320
3321 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3322
3323 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3324 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3325 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3326 sol2-tdep.o, sparc-sol2-tdep.o.
3327 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3328 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3329 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3330 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3331
3332 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3333
3334 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3335 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3336 Call sol2_init_abi.
3337 Remove calls to set_gdbarch_skip_solib_resolver,
3338 set_gdbarch_core_pid_to_str.
3339 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3340 (i386_sol2_static_transform_name): Remove.
3341 (i386_sol2_init_abi): Call sol2_init_abi.
3342 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3343 set_gdbarch_static_transform_name,
3344 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3345 Use sol2_sigtramp_p.
3346 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3347 (sol2_sigtramp_p): New function.
3348 (sol2_static_transform_name): New function.
3349 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3350 (sol2_init_abi): New function.
3351 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3352 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3353 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3354 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3355 (sparc_sol2_static_transform_name): Remove.
3356 (sparc32_sol2_init_abi): Call sol2_init_abi.
3357 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3358 set_gdbarch_static_transform_name,
3359 set_gdbarch_skip_solib_resolver,
3360 set_gdbarch_core_pid_to_str.
3361 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3362 (sparc_sol2_static_transform_name): Remove
3363 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3364 call sol2_sigtramp_p.
3365 (sparc64_sol2_init_abi): Call sol2_init_abi.
3366 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3367 set_gdbarch_static_transform_name,
3368 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3369
3370 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3371
3372 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3373 * exec.c (validate_exec_file): If from_tty, set both
3374 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3375 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3376 and from_tty, unconditionally ask a confirmation.
3377
3378 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * target-descriptions.c (tdesc_architecture_name): Protect against
3381 NULL pointer dereference.
3382 (maint_print_xml_tdesc_cmd): New function.
3383 (_initialize_target_descriptions): Register new 'maint print
3384 xml-tdesc' command and give it the filename completer.
3385 * NEWS: Mention new 'maint print xml-tdesc' command.
3386
3387 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * target-descriptions.c (class tdesc_compatible_info): New class.
3390 (struct target_desc): Change type of compatible vector.
3391 (tdesc_compatible_p): Update for change in type of
3392 target_desc::compatible.
3393 (tdesc_compatible_info_list): New function.
3394 (tdesc_compatible_info_arch_name): New function.
3395 (tdesc_add_compatible): Update for change in type of
3396 target_desc::compatible.
3397 (print_c_tdesc::visit_pre): Likewise.
3398
3399 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3400
3401 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3402 whitespace to underscore.
3403 (maint_print_c_tdesc_cmd): Use fake filename for target
3404 descriptions that came from the target.
3405 (_initialize_target_descriptions): Add filename command completion
3406 for 'maint print c-tdesc'.
3407
3408 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3411 lines.
3412
3413 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3414
3415 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3416 lines.
3417 (dwarf2_find_location_expression): Likewise.
3418 (call_site_parameter_matches): Likewise.
3419 (dwarf2_compile_expr_to_ax): Likewise.
3420 (disassemble_dwarf_expression): Likewise.
3421 (loclist_describe_location): Likewise.
3422
3423 2020-06-23 Pedro Alves <palves@redhat.com>
3424
3425 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3426 progspace-and-thread.h. Include scoped-mock-context.h instead.
3427 (register_to_value_test): Use scoped_mock_context.
3428 * regcache.c: Include "scoped-mock-context.h".
3429 (cooked_read_test): Don't error out if a target is already pushed.
3430 Use scoped_mock_context. Adjust.
3431 * scoped-mock-context.h: New file.
3432
3433 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3436 initializer.
3437 (ada_language::is_string_type_p): New member function.
3438 * c-lang.c (c_language_data): Delete la_is_string_type_p
3439 initializer.
3440 (cplus_language_data): Likewise.
3441 (asm_language_data): Likewise.
3442 (minimal_language_data): Likewise.
3443 * d-lang.c (d_language_data): Likewise.
3444 * f-lang.c (f_is_string_type_p): Delete function, implementation
3445 moved to f_language::is_string_type_p.
3446 (f_language_data): Delete la_is_string_type_p initializer.
3447 (f_language::is_string_type_p): New member function,
3448 implementation from f_is_string_type_p.
3449 * go-lang.c (go_is_string_type_p): Delete function, implementation
3450 moved to go_language::is_string_type_p.
3451 (go_language_data): Delete la_is_string_type_p initializer.
3452 (go_language::is_string_type_p): New member function,
3453 implementation from go_is_string_type_p.
3454 * language.c (language_defn::is_string_type_p): Define new member
3455 function.
3456 (default_is_string_type_p): Make static, add comment copied from
3457 header file.
3458 (unknown_language_data): Delete la_is_string_type_p initializer.
3459 (unknown_language::is_string_type_p): New member function.
3460 (auto_language_data): Delete la_is_string_type_p initializer.
3461 (auto_language::is_string_type_p): New member function.
3462 * language.h (language_data): Delete la_is_string_type_p field.
3463 (language_defn::is_string_type_p): Declare new function.
3464 (default_is_string_type_p): Delete desclaration, move comment to
3465 definition.
3466 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3467 moved to m2_language::is_string_type_p.
3468 (m2_language_data): Delete la_is_string_type_p initializer.
3469 (m2_language::is_string_type_p): New member function,
3470 implementation from m2_is_string_type_p.
3471 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3472 initializer.
3473 * opencl-lang.c (opencl_language_data): Likewise.
3474 * p-lang.c (pascal_is_string_type_p): Delete function,
3475 implementation moved to pascal_language::is_string_type_p.
3476 (pascal_language_data): Delete la_is_string_type_p initializer.
3477 (pascal_language::is_string_type_p): New member function,
3478 implementation from pascal_is_string_type_p.
3479 * rust-lang.c (rust_is_string_type_p): Delete function,
3480 implementation moved to rust_language::is_string_type_p.
3481 (rust_language_data): Delete la_is_string_type_p initializer.
3482 (rust_language::is_string_type_p): New member function,
3483 implementation from rust_is_string_type_p.
3484 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3485 is_string_type_p.
3486
3487 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_data): Delete la_print_typedef
3490 initializer.
3491 (ada_language::print_typedef): New member function.
3492 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3493 (cplus_language_data): Likewise.
3494 (asm_language_data): Likewise.
3495 (minimal_language_data): Likewise.
3496 * d-lang.c (d_language_data): Likewise.
3497 * f-lang.c (f_language_data): Likewise.
3498 (f_language::print_typedef): New member function.
3499 * go-lang.c (go_language_data): Delete la_print_typedef
3500 initializer.
3501 * language.c (language_defn::print_typedef): Define member
3502 function.
3503 (unknown_language_data): Delete la_print_typedef initializer.
3504 (unknown_language::print_typedef): New member function.
3505 (auto_language_data): Delete la_print_typedef initializer.
3506 (auto_language::print_typedef): New member function.
3507 * language.h (language_data): Delete la_print_typedef field.
3508 (language_defn::print_typedef): Declare new member function.
3509 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3510 (default_print_typedef): Delete declaration.
3511 * m2-lang.c (m2_language_data): Delete la_print_typedef
3512 initializer.
3513 (m2_language::print_typedef): New member function.
3514 * objc-lang.c (objc_language_data): Delete la_print_typedef
3515 initializer.
3516 * opencl-lang.c (opencl_language_data): Likewise.
3517 * p-lang.c (pascal_language_data): Likewise.
3518 (pascal_language::print_typedef): New member function.
3519 * rust-lang.c (rust_print_typedef): Delete function,
3520 implementation moved to rust_language::print_typedef.
3521 (rust_language): Delete la_print_typedef initializer.
3522 (rust_language::print_typedef): New member function,
3523 implementation from rust_print_typedef.
3524 * typeprint.c (default_print_typedef): Delete.
3525
3526 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3527
3528 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3529 (ada_language::printstr): New member function.
3530 * c-lang.c (c_language_data): Delete la_printstr initializer.
3531 (cplus_language_data): Likewise.
3532 (asm_language_data): Likewise.
3533 (minimal_language_data): Likewise.
3534 * d-lang.c (d_language_data): Likewise.
3535 * f-lang.c (f_printstr): Rename to f_language::printstr.
3536 (f_language_data): Delete la_printstr initializer.
3537 (f_language::printstr): New member function, implementation from
3538 f_printstr.
3539 * go-lang.c (go_language_data): Delete la_printstr initializer.
3540 * language.c (language_defn::printstr): Define new member
3541 function.
3542 (unk_lang_printstr): Delete.
3543 (unknown_language_data): Delete la_printstr initializer.
3544 (unknown_language::printstr): New member function.
3545 (auto_language_data): Delete la_printstr initializer.
3546 (auto_language::printstr): New member function.
3547 * language.h (language_data): Delete la_printstr field.
3548 (language_defn::printstr): Declare new member function.
3549 (LA_PRINT_STRING): Update call to printstr.
3550 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3551 (m2_language_data): Delete la_printstr initializer.
3552 (m2_language::printstr): New member function, implementation from
3553 m2_printstr.
3554 * objc-lang.c (objc_language_data): Delete la_printstr
3555 initializer.
3556 * opencl-lang.c (opencl_language_data): Likewise.
3557 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3558 (pascal_language_data): Delete la_printstr initializer.
3559 (pascal_language::printstr): New member function, implementation
3560 from pascal_printstr.
3561 * p-lang.h (pascal_printstr): Delete declaration.
3562 * rust-lang.c (rust_printstr): Update header comment.
3563 (rust_language_data): Delete la_printstr initializer.
3564 (rust_language::printstr): New member function.
3565
3566 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3567
3568 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3569 (ada_language::printchar): New member function.
3570 * c-lang.c (c_language_data): Delete la_printchar initializer.
3571 (cplus_language_data): Likewise.
3572 (asm_language_data): Likewise.
3573 (minimal_language_data): Likewise.
3574 * d-lang.c (d_language_data): Likewise.
3575 * f-lang.c (f_printchar): Rename to f_language::printchar.
3576 (f_language_data): Delete la_printchar initializer.
3577 (f_language::printchar): New member function, implementation from
3578 f_printchar.
3579 * go-lang.c (go_language_data): Delete la_printchar initializer.
3580 * language.c (unk_lang_printchar): Delete.
3581 (language_defn::printchar): Define new member function.
3582 (unknown_language_data): Delete la_printchar initializer.
3583 (unknown_language::printchar): New member function.
3584 (auto_language_data): Delete la_printchar initializer.
3585 (auto_language::printchar): New member function.
3586 * language.h (language_data): Delete la_printchar field.
3587 (language_defn::printchar): Declare new member function.
3588 (LA_PRINT_CHAR): Update call to printchar.
3589 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3590 (m2_language::printchar): New member function.
3591 * objc-lang.c (objc_language_data): Delete la_printchar
3592 initializer.
3593 * opencl-lang.c (opencl_language_data): Likewise.
3594 * p-lang.c (pascal_language_data): Delete la_printchar
3595 initializer.
3596 (pascal_language::printchar): New member function.
3597 * rust-lang.c (rust_printchar): Rename to
3598 rust_language::printchar.
3599 (rust_language_data): Delete la_printchar initializer.
3600 (rust_language::printchar): New member function, implementation
3601 from rust_printchar.
3602
3603 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3604
3605 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3606 (ada_language_data): Delete la_emitchar initializer.
3607 (ada_language::emitchar): New member function, implementation from
3608 emit_char.
3609 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3610 (cplus_language_data): Likewise.
3611 (asm_language_data): Likewise.
3612 (minimal_language_data): Likewise.
3613 * d-lang.c (d_language_data): Likewise.
3614 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3615 (f_language_data): Delete la_emitchar initializer.
3616 (f_language::emitchar): New member function, implementation from
3617 f_emit_char.
3618 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3619 * language.c (unk_lang_emit_char): Delete.
3620 (language_defn::emitchar): New member function definition.
3621 (unknown_language_data): Delete la_emitchar initializer.
3622 (unknown_language::emitchar): New member function.
3623 (auto_language_data): Delete la_emitchar initializer.
3624 (auto_language::emitchar): New member function.
3625 * language.h (language_data): Delete la_emitchar field.
3626 (language_defn::emitchar): New member field declaration.
3627 (LA_EMIT_CHAR): Update call to emitchar.
3628 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3629 (m2_language_data): Delete la_emitchar initializer.
3630 (m2_language::emitchar): New member function, implementation from
3631 m2_emit_char.
3632 * objc-lang.c (objc_language_data): Delete la_emitchar
3633 initializer.
3634 * opencl-lang.c (opencl_language_data): Likewise.
3635 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3636 (pascal_language_data): Delete la_emitchar initializer.
3637 (pascal_language::emitchar): New member function, implementation
3638 from pascal_emit_char.
3639 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3640 (rust_language_data): Delete la_emitchar initializer.
3641 (rust_language::emitchar): New member function, implementation
3642 from rust_emitchar.
3643
3644 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3647 (ada_language_data): Delete la_post_parser initializer.
3648 (ada_language::post_parser): New member function.
3649 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3650 (cplus_language_data): Likewise.
3651 (asm_language_data): Likewise.
3652 (minimal_language_data): Likewise.
3653 * d-lang.c (d_language_data): Likewise.
3654 * f-lang.c (f_language_data): Likewise.
3655 * go-lang.c (go_language_data): Likewise.
3656 * language.c (unknown_language_data): Likewise.
3657 (auto_language_data): Likewise.
3658 * language.h (language_data): Delete la_post_parser field.
3659 (language_defn::post_parser): New member function.
3660 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3661 * objc-lang.c (objc_language_data): Likewise.
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * parse.c (parse_exp_in_context): Update call to post_parser.
3665 (null_post_parser): Delete definition.
3666 * parser-defs.h (null_post_parser): Delete declaration.
3667 * rust-lang.c (rust_language_data): Delete la_post_parser
3668 initializer.
3669
3670 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * ada-lang.c (parse): Rename to ada_language::parser.
3673 (ada_language_data): Delete la_parser initializer.
3674 (ada_language::parser): New member function, implementation from
3675 parse.
3676 * c-lang.c (c_language_data): Delete la_parser initializer.
3677 (cplus_language_data): Likewise.
3678 (asm_language_data): Likewise.
3679 (minimal_language_data): Likewise.
3680 * d-lang.c (d_language_data): Likewise.
3681 (d_language::parser): New member function.
3682 * f-lang.c (f_language_data): Delete la_parser initializer.
3683 (f_language::parser): New member function.
3684 * go-lang.c (go_language_data): Delete la_parser initializer.
3685 (go_language::parser): New member function.
3686 * language.c (unk_lang_parser): Delete.
3687 (language_defn::parser): Define new member function.
3688 (unknown_language_data): Delete la_parser initializer.
3689 (unknown_language::parser): New member function.
3690 (auto_language_data): Delete la_parser initializer.
3691 (auto_language::parser): New member function.
3692 * language.h (language_data): Delete la_parser field.
3693 (language_defn::parser): Declare new member function.
3694 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3695 (m2_language::parser): New member function.
3696 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3697 * opencl-lang.c (opencl_language_data): Likewise.
3698 * p-lang.c (pascal_language_data): Likewise.
3699 (pascal_language::parser): New member function.
3700 * parse.c (parse_exp_in_context): Update call to parser.
3701 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3702 (rust_language::parser): New member function.
3703
3704 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * top.c (print_gdb_configuration): Print --with-python-libdir
3707 configuration value.
3708
3709 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3710
3711 * NEWS: Mention change to the alias command.
3712
3713 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3714
3715 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3716 (alias_command_completer)
3717 (make_alias_options_def_group): New functions.
3718 (alias_opts, alias_option_defs): New struct and array.
3719 (alias_usage_error): Update usage.
3720 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3721 Use option framework.
3722 (_initialize_cli_cmds): Update alias command help.
3723 Update aliases command help.
3724 (show_user):
3725 Add NULL for new default_args lookup_cmd argument.
3726 (valid_command_p): Rename to validate_aliased_command.
3727 Add NULL for new default_args lookup_cmd argument. Verify that the
3728 aliased_command has no default args.
3729 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3730 (lookup_cmd_1, lookup_cmd): New argument default_args.
3731 (add_alias_cmd):
3732 Add NULL for new default_args lookup_cmd argument.
3733 (print_help_for_command): Show default args under the layout
3734 alias some_alias = some_aliased_cmd some_alias_default_arg.
3735 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3736 xfree default_args in destructor.
3737 * cli/cli-script.c (process_next_line, do_define_command):
3738 Add NULL for new default_args lookup_cmd argument.
3739 * command.h: Declare new default_args argument in lookup_cmd
3740 and lookup_cmd_1.
3741 * completer.c (complete_line_internal_1):
3742 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3743 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3744 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3745 Likewise.
3746 * infcmd.c (_initialize_infcmd): Likewise.
3747 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3748 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3749 * python/py-param.c (add_setshow_generic): Likewise.
3750 * remote.c (_initialize_remote): Likewise.
3751 * top.c (execute_command): Prepend default_args if command has some.
3752 (set_verbose):
3753 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3754 * tracepoint.c (validate_actionline, encode_actions_1):
3755 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3756
3757 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758
3759 * jit.c (jit_read_descriptor): Use bool as the return type.
3760 (jit_breakpoint_re_set_internal): Use bool as the return type.
3761 Invert the return value logic; return true if the jit breakpoint
3762 has been successfully initialized.
3763 (jit_inferior_init): Update the call to
3764 jit_breakpoint_re_set_internal.
3765
3766 2020-06-22 Pedro Alves <palves@redhat.com>
3767
3768 PR gdb/25939
3769 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3770 Use the current inferior instead. Don't return
3771 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3772 wait again.
3773 * sol-thread.c (sol_thread_target::wait): Don't reference
3774 inferior_ptid.
3775 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3776 (sol_update_thread_list_callback): Use the current inferior's pid
3777 instead of inferior_ptid.
3778
3779 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3780
3781 * procfs.c: Cleanup many comments.
3782
3783 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3784 (AFTER_WATCHFLAG): Replace by value.
3785
3786 (MAIN_PROC_NAME_FORMAT): Inline ...
3787 (create_procinfo): ... here.
3788
3789 (procfs_debug_inferior): Remove SYS_exec handling.
3790 (syscall_is_exec): Likewise.
3791 (procfs_set_exec_trap): Likewise.
3792
3793 (syscall_is_lwp_exit): Inline in callers.
3794 (syscall_is_exit): Likewise.
3795 (syscall_is_exec): Likewise.
3796 (syscall_is_lwp_create): Likewise.
3797
3798 (invalidate_cache): Remove #if 0 code.
3799
3800 (make_signal_thread_runnable): Remove.
3801 (procfs_target::resume): Remove #if 0 code.
3802
3803 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3804
3805 PR gdb/25939
3806 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3807 call ...
3808 (procfs_target::create_inferior): ... here.
3809
3810 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3811
3812 * exec.c (validate_exec_file): Ensure the build-id is up to
3813 date by calling reopen_exec_file (that checks file timestamp
3814 to decide to re-read the file).
3815
3816 2020-06-18 Pedro Alves <palves@redhat.com>
3817
3818 PR gdb/25412
3819 * gdbthread.h (delete_thread, delete_thread_silent)
3820 (find_thread_ptid): Update comments.
3821 * thread.c (current_thread_): New global.
3822 (is_current_thread): Move higher, and reimplement.
3823 (inferior_thread): Reimplement.
3824 (set_thread_exited): Use bool. Add assertions.
3825 (add_thread_silent): Simplify thread-reuse handling by always
3826 calling delete_thread.
3827 (delete_thread): Remove intro comment.
3828 (find_thread_ptid): Skip exited threads.
3829 (switch_to_thread_no_regs): Write to current_thread_.
3830 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3831 INFERIOR_PTID. Clear current_thread_.
3832
3833 2020-06-18 Pedro Alves <palves@redhat.com>
3834
3835 * aix-thread.c (pd_update): Use switch_to_thread.
3836
3837 2020-06-18 Pedro Alves <palves@redhat.com>
3838
3839 * ravenscar-thread.c (ravenscar_thread_target): Update.
3840 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3841 (ravenscar_thread_target::add_active_thread): ... this. Don't
3842 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3843 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3844
3845 2020-06-18 Pedro Alves <palves@redhat.com>
3846
3847 * nat/windows-nat.c (current_windows_thread): Remove.
3848 * nat/windows-nat.h (current_windows_thread): Remove.
3849 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3850 Adjust.
3851 (display_selectors): Adjust to fetch the current
3852 windows_thread_info based on inferior_ptid.
3853 (fake_create_process): No longer write to current_windows_thread.
3854 (windows_nat_target::get_windows_debug_event):
3855 Don't set inferior_ptid or current_windows_thread.
3856 (windows_nat_target::wait): Adjust to not rely on
3857 current_windows_thread.
3858 (do_initial_windows_stuff): Now a method of windows_nat_target.
3859 Switch to the last_ptid thread.
3860 (windows_nat_target::attach): Adjust.
3861 (windows_nat_target::detach): Use switch_to_no_thread instead of
3862 writing to inferior_ptid directly.
3863 (windows_nat_target::create_inferior): Adjust.
3864
3865 2020-06-18 Pedro Alves <palves@redhat.com>
3866
3867 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3868
3869 2020-06-18 Pedro Alves <palves@redhat.com>
3870
3871 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3872 after creating it, instead of writing to inferior_ptid. Don't
3873 write to inferior_ptid.
3874
3875 2020-06-18 Pedro Alves <palves@redhat.com>
3876
3877 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3878
3879 2020-06-18 Pedro Alves <palves@redhat.com>
3880
3881 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3882 it, instead of writing to inferior_ptid.
3883
3884 2020-06-18 Pedro Alves <palves@redhat.com>
3885
3886 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3887 to inferior_ptid.
3888
3889 2020-06-18 Pedro Alves <palves@redhat.com>
3890
3891 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3892 instead of writing to inferior_ptid directly.
3893
3894 2020-06-18 Pedro Alves <palves@redhat.com>
3895
3896 * corelow.c (core_target::close): Use switch_to_no_thread instead
3897 of writing to inferior_ptid directly.
3898 (add_to_thread_list, core_target_open): Use switch_to_thread
3899 instead of writing to inferior_ptid directly.
3900
3901 2020-06-18 Pedro Alves <palves@redhat.com>
3902
3903 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3904 inferior_ptid.
3905 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3906 inferior_ptid.
3907 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3908 inferior_ptid directly.
3909 (darwin_nat_target::init_thread_list): Switch to thread, instead
3910 of writing to inferior_ptid.
3911 (darwin_nat_target::attach): Don't write to inferior_ptid.
3912 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3913
3914 2020-06-18 Pedro Alves <palves@redhat.com>
3915
3916 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3917 thread.
3918 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3919 Instead use switch_to_thread.
3920 (gnu_nat_target::detach): Use switch_to_no_thread
3921 instead of writing to inferior_ptid directly. Used passed-in
3922 inferior instead of looking up the inferior by pid.
3923
3924 2020-06-18 Pedro Alves <palves@redhat.com>
3925
3926 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3927 inferior_ptid.
3928
3929 2020-06-18 Pedro Alves <palves@redhat.com>
3930
3931 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3932 inferior_ptid.
3933 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3934 thread.
3935 (nto_procfs_target::detach): Avoid referencing
3936 inferior_ptid. Use switch_to_no_thread instead of writing to
3937 inferior_ptid directly.
3938 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3939 instead of writing to inferior_ptid directly.
3940 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3941 to thread.
3942
3943 2020-06-18 Pedro Alves <palves@redhat.com>
3944
3945 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3946 after creating it, instead of writing to inferior_ptid.
3947 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3948 to inferior_ptid directly.
3949 (gdbsim_target::wait): Don't write to inferior_ptid.
3950
3951 2020-06-18 Pedro Alves <palves@redhat.com>
3952
3953 * remote.c (remote_target::remote_notice_new_inferior): Use
3954 switch_to_thread instead of writing to inferior_ptid directly.
3955 (remote_target::add_current_inferior_and_thread): Use
3956 switch_to_no_thread instead of writing to inferior_ptid directly.
3957 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3958 and switch_to_thread instead of using set_current_inferior or
3959 writing to inferior_ptid directly.
3960
3961 2020-06-18 Pedro Alves <palves@redhat.com>
3962
3963 * tracectf.c (ctf_target_open): Switch to added thread instead of
3964 writing to inferior_ptid directly.
3965 (ctf_target::close): Use switch_to_no_thread instead of writing to
3966 inferior_ptid directly.
3967
3968 2020-06-18 Pedro Alves <palves@redhat.com>
3969
3970 * tracefile-tfile.c (tfile_target_open): Don't write to
3971 inferior_ptid directly, instead switch to added thread.
3972 (tfile_target::close): Use switch_to_no_thread instead of writing
3973 to inferior_ptid directly.
3974
3975 2020-06-18 Pedro Alves <palves@redhat.com>
3976
3977 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3978 (procfs_target::detach): Use switch_to_no_thread
3979 instead of writing to inferior_ptid directly.
3980 (do_attach): Change return type to void. Switch to the added
3981 thread.
3982 (procfs_target::create_inferior): Switch to the added thread.
3983 (procfs_do_thread_registers): Don't write to inferior_ptid.
3984
3985 2020-06-18 Pedro Alves <palves@redhat.com>
3986
3987 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3988 of writing to inferior_ptid.
3989 (scoped_restore_exited_inferior): Delete.
3990 (handle_vfork_child_exec_or_exit): Simplify using
3991 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3992 instead of writing to inferior_ptid.
3993 (THREAD_STOPPED_BY): Delete.
3994 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3995 (thread_stopped_by_hw_breakpoint): Delete.
3996 (save_waitstatus): Use
3997 scoped_restore_current_thread+switch_to_thread, and call
3998 target_stopped_by_watchpoint instead of
3999 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4000 instead of thread_stopped_by_sw_breakpoint, and
4001 target_stopped_by_hw_breakpoint instead of
4002 thread_stopped_by_hw_breakpoint.
4003 (handle_inferior_event)
4004 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4005 inferior_ptid directly, nor
4006 set_current_inferior/set_current_program_space. Use
4007 switch_to_thread / switch_to_inferior_no_thread instead.
4008
4009 2020-06-18 Pedro Alves <palves@redhat.com>
4010
4011 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4012 instead of writing to inferior_ptid.
4013
4014 2020-06-18 Pedro Alves <palves@redhat.com>
4015
4016 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4017 added thread.
4018 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4019 to the added thread.
4020 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4021 instead of writing to inferior_ptid.
4022
4023 2020-06-18 Pedro Alves <palves@redhat.com>
4024
4025 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4026 (register_to_value_test): Mock a program_space too. Heap-allocate
4027 the address space. Don't write to inferior_ptid. Use
4028 switch_to_thread instead.
4029
4030 2020-06-18 Pedro Alves <palves@redhat.com>
4031
4032 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4033 Delete.
4034 (find_signalled_thread()): New, factored out from
4035 linux_make_corefile_notes and adjusted to handle exited threads.
4036 (linux_make_corefile_notes): Adjust to use the new
4037 find_signalled_thread.
4038
4039 2020-06-18 Pedro Alves <palves@redhat.com>
4040
4041 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4042 of saving/restoring inferior_ptid.
4043
4044 2020-06-17 Tom Tromey <tom@tromey.com>
4045
4046 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4047 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4048 declare.
4049 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4050
4051 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4052
4053 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4054 of partial symtabs.
4055
4056 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4057
4058 * regformats/reg-arm.dat: Remove.
4059 * regformats/reg-bfin.dat: Remove.
4060 * regformats/reg-cris.dat: Remove.
4061 * regformats/reg-crisv32.dat: Remove.
4062 * regformats/reg-m32r.dat: Remove.
4063 * regformats/reg-tilegx.dat: Remove.
4064 * regformats/reg-tilegx32.dat: Remove.
4065
4066 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4067
4068 * features/Makefile (WHICH): Remove arm files.
4069 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4070 * regformats/arm/arm-with-neon.dat: Remove.
4071 * regformats/arm/arm-with-vfpv2.dat: Remove.
4072 * regformats/arm/arm-with-vfpv3.dat: Remove.
4073
4074 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * features/Makefile (XMLTOC): Remove rx.xml.
4077
4078 2020-06-17 Pedro Alves <palves@redhat.com>
4079
4080 * gdbthread.h (thread_control_state) <trap_expected> Update
4081 comments.
4082
4083 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4086 ada_language::lookup_symbol_nonlocal.
4087 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4088 (ada_language::lookup_symbol_nonlocal): New member function,
4089 implementation from ada_lookup_symbol_nonlocal.
4090 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4091 initializer.
4092 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4093 initializer.
4094 (cplus_language::lookup_symbol_nonlocal): New member function.
4095 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4096 (minimal_language_data) Likewise.
4097 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4098 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4099 initializer.
4100 (d_language::lookup_symbol_nonlocal): New member function.
4101 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4102 initializer.
4103 (f_language::lookup_symbol_nonlocal): New member function.
4104 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4105 initializer.
4106 * language.c (unknown_language_data): Likewise.
4107 (auto_language_data): Likewise.
4108 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4109 field.
4110 (language_defn::lookup_symbol_nonlocal): New member function.
4111 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4112 initializer.
4113 * objc-lang.c (objc_language_data): Likewise.
4114 * opencl-lang.c (opencl_language_data): Likewise.
4115 * p-lang.c (pascal_language_data): Likewise.
4116 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4117 rust_language::lookup_symbol_nonlocal.
4118 (rust_language_data): Delete la_lookup_symbol_nonlocal
4119 initializer.
4120 (rust_language::lookup_symbol_nonlocal): New member function,
4121 implementation from rust_lookup_symbol_nonlocal.
4122 * symtab.c (lookup_symbol_aux): Update call to
4123 lookup_symbol_nonlocal.
4124 (basic_lookup_symbol_nonlocal): Rename to...
4125 (language_defn::lookup_symbol_nonlocal): ...this, and update
4126 header comment. Remove language_defn parameter, and replace with
4127 uses of `this'.
4128 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4129
4130 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4133 initializer.
4134 (ada_language::value_print_inner): New member function.
4135 * c-lang.c (c_language_data): Delete la_value_print_inner
4136 initializer.
4137 (cplus_language_data): Likewise.
4138 (asm_language_data): Likewise.
4139 (minimal_language_data): Likewise.
4140 * d-lang.c (d_language_data): Likewise.
4141 (d_language::value_print_inner): New member function.
4142 * f-lang.c (f_language_data): Delete la_value_print_inner
4143 initializer.
4144 (f_language::value_print_inner): New member function.
4145 * f-lang.h (f_value_print_innner): Rename to...
4146 (f_value_print_inner): ...this (note spelling of 'inner').
4147 * f-valprint.c (f_value_print_innner): Rename to...
4148 (f_value_print_inner): ...this (note spelling of 'inner').
4149 * go-lang.c (go_language_data): Delete la_value_print_inner
4150 initializer.
4151 (go_language::value_print_inner): New member function.
4152 * language.c (language_defn::value_print_inner): Define new member
4153 function.
4154 (unk_lang_value_print_inner): Delete.
4155 (unknown_language_data): Delete la_value_print_inner initializer.
4156 (unknown_language::value_print_inner): New member function.
4157 (auto_language_data): Delete la_value_print_inner initializer.
4158 (auto_language::value_print_inner): New member function.
4159 * language.h (language_data): Delete la_value_print_inner field.
4160 (language_defn::value_print_inner): Delcare new member function.
4161 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4162 initializer.
4163 (m2_language::value_print_inner): New member function.
4164 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4165 initializer.
4166 * opencl-lang.c (opencl_language_data): Likewise.
4167 * p-lang.c (pascal_language_data): Likewise.
4168 (pascal_language::value_print_inner): New member function.
4169 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4170 initializer.
4171 (rust_language::value_print_inner): New member function.
4172 * valprint.c (do_val_print): Update call to value_print_inner.
4173
4174 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * ada-lang.c (ada_language_data): Delete la_value_print
4177 initializer.
4178 (ada_language::value_print): New member function.
4179 * c-lang.c (c_language_data): Delete la_value_print initializer.
4180 (cplus_language_data): Likewise.
4181 (asm_language_data): Likewise.
4182 (minimal_language_data): Likewise.
4183 * d-lang.c (d_language_data): Likewise.
4184 * f-lang.c (f_language_data): Likewise.
4185 * go-lang.c (go_language_data): Likewise.
4186 * language.c (unk_lang_value_print): Delete.
4187 (language_defn::value_print): Define new member function.
4188 (unknown_language_data): Delete la_value_print initializer.
4189 (unknown_language::value_print): New member function.
4190 (auto_language_data): Delete la_value_print initializer.
4191 (auto_language::value_print): New member function.
4192 * language.h (language_data): Delete la_value_print field.
4193 (language_defn::value_print): Declare new member function.
4194 (LA_VALUE_PRINT): Update call to value_print.
4195 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4196 * objc-lang.c (objc_language_data): Likewise.
4197 * opencl-lang.c (opencl_language_data): Likewise.
4198 * p-lang.c (pascal_language_data): Likewise.
4199 (pascal_language::value_print): New member function.
4200 * rust-lang.c (rust_language_data): Delete la_value_print
4201 initializer.
4202
4203 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4204
4205 * ada-lang.c (ada_watch_location_expression): Rename to
4206 ada_language::watch_location_expression.
4207 (ada_language_data): Delete la_watch_location_expression
4208 initializer.
4209 (ada_language::watch_location_expression): New member function,
4210 implementation from ada_watch_location_expression.
4211 * breakpoint.c (watch_command_1): Update call to
4212 watch_location_expression.
4213 * c-lang.c (c_watch_location_expression): Rename to
4214 language_defn::watch_location_expression.
4215 (c_language_data): Delete la_watch_location_expression
4216 initializer.
4217 (cplus_language_data): Likewise.
4218 (asm_language_data): Likewise.
4219 (minimal_language_data): Likewise.
4220 * c-lang.h (c_watch_location_expression): Delete declaration.
4221 * d-lang.c (d_language_data): Delete la_watch_location_expression
4222 initializer.
4223 * f-lang.c (f_language_data): Likewise.
4224 * go-lang.c (go_language_data): Likewise.
4225 * language.c (language_defn::watch_location_expression): Member
4226 function implementation from c_watch_location_expression.
4227 (unknown_language_data): Delete la_watch_location_expression
4228 initializer.
4229 (auto_language_data): Likewise.
4230 * language.h (language_data): Delete la_watch_location_expression
4231 field.
4232 (language_defn::watch_location_expression): Declare new member
4233 function.
4234 * m2-lang.c (m2_language_data): Delete
4235 la_watch_location_expression initializer.
4236 * objc-lang.c (objc_language_data): Likewise.
4237 * opencl-lang.c (opencl_language_data): Likewise.
4238 * p-lang.c (pascal_language_data): Likewise.
4239 * rust-lang.c (rust_watch_location_expression): Rename to
4240 rust_language::watch_location_expression.
4241 (rust_language_data): Delete la_watch_location_expression
4242 initializer.
4243 (rust_language::watch_location_expression): New member function,
4244 implementation from rust_watch_location_expression.
4245
4246 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4247
4248 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4249 ada_language::collect_symbol_completion_matches.
4250 (ada_language_data): Delete la_collect_symbol_completion_matches
4251 initializer.
4252 (ada_language::collect_symbol_completion_matches): New member
4253 function, implementation from
4254 ada_collect_symbol_completion_matches.
4255 * c-lang.c (c_language_data): Delete
4256 la_collect_symbol_completion_matches initializer.
4257 (cplus_language_data): Likewise.
4258 (asm_language_data): Likewise.
4259 (minimal_language_data): Likewise.
4260 * d-lang.c (d_language_data): Likewise.
4261 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4262 f_language::collect_symbol_completion_matches.
4263 (f_language_data): Delete la_collect_symbol_completion_matches
4264 initializer.
4265 (f_language::collect_symbol_completion_matches) New member
4266 function, implementation from f_collect_symbol_completion_matches.
4267 * go-lang.c (go_language_data): Delete
4268 la_collect_symbol_completion_matches initializer.
4269 * language.c (unknown_language_data): Likewise.
4270 (auto_language_data): Likewise.
4271 * language.h (language_data): Delete
4272 la_collect_symbol_completion_matches field.
4273 (language_defn::collect_symbol_completion_matches): New member
4274 function.
4275 * m2-lang.c (m2_language_data): Delete
4276 la_collect_symbol_completion_matches initializer.
4277 * objc-lang.c (objc_language_data): Likewise.
4278 * opencl-lang.c (opencl_language_data): Likewise.
4279 * p-lang.c (pascal_language_data): Likewise.
4280 * rust-lang.c (rust_language_data): Likewise.
4281 * symtab.c (default_collect_symbol_completion_matches): Delete.
4282 (collect_symbol_completion_matches): Update call to
4283 collect_symbol_completion_matches.
4284 (collect_symbol_completion_matches_type): Likewise.
4285 * symtab.h (default_collect_symbol_completion_matches): Delete
4286 declaration.
4287
4288 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4289
4290 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4291 (ada_language_data): Delete la_word_break_characters initializer.
4292 (ada_language::word_break_characters): New member function.
4293 * c-lang.c (c_language_data): Delete la_word_break_characters
4294 initializer.
4295 (cplus_language_data): Likewise.
4296 (asm_language_data): Likewise.
4297 (minimal_language_data): Likewise.
4298 * completer.c: Update global comment.
4299 (advance_to_expression_complete_word_point): Update call to
4300 word_break_characters.
4301 (complete_files_symbols): Likewise.
4302 (complete_line_internal_1): Likewise.
4303 (default_completer_handle_brkchars): Likewise.
4304 (skip_quoted_chars): Likewise.
4305 * d-lang.c (d_language_data): Delete la_word_break_characters
4306 initializer.
4307 * f-lang.c (f_word_break_characters): Delete.
4308 (f_language_data): Delete la_word_break_characters initializer.
4309 (f_language::word_break_characters): New member function.
4310 * go-lang.c (go_language_data): Delete la_word_break_characters
4311 initializer.
4312 * language.c (unknown_language_data): Likewise.
4313 (auto_language_data): Likewise.
4314 * language.h (default_word_break_characters): Move declaration to
4315 earlier in the file.
4316 (language_data): Delete la_word_break_characters field.
4317 (language_defn::word_break_characters): New member function.
4318 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4319 initializer.
4320 * objc-lang.c (objc_language_data): Likewise.
4321 * opencl-lang.c (opencl_language_data): Likewise.
4322 * p-lang.c (pascal_language_data): Likewise.
4323 * rust-lang.c (rust_language_data): Likewise.
4324
4325 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4328 (ada_language_data): Delete la_get_symbol_name_matcher
4329 initializer.
4330 (language_defn::get_symbol_name_matcher_inner): New member
4331 function.
4332 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4333 initializer.
4334 (cplus_language_data): Likewise.
4335 (cplus_language::get_symbol_name_matcher_inner): New member
4336 function.
4337 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4338 (minimal_language_data): Likewise.
4339 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4340 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4341 initializer.
4342 * dictionary.c (iter_match_first_hashed): Update call to
4343 get_symbol_name_matcher.
4344 (iter_match_next_hashed): Likewise.
4345 (iter_match_next_linear): Likewise.
4346 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4347 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4348 initializer.
4349 (f_language::get_symbol_name_matcher_inner): New member function.
4350 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4351 initializer.
4352 * language.c (default_symbol_name_matcher): Update header comment,
4353 make static.
4354 (language_defn::get_symbol_name_matcher): New definition.
4355 (language_defn::get_symbol_name_matcher_inner): Likewise.
4356 (get_symbol_name_matcher): Delete.
4357 (unknown_language_data): Delete la_get_symbol_name_matcher
4358 initializer.
4359 (auto_language_data): Likewise.
4360 * language.h (language_data): Delete la_get_symbol_name_matcher
4361 field.
4362 (language_defn::get_symbol_name_matcher): New member function.
4363 (language_defn::get_symbol_name_matcher_inner): Likewise.
4364 (default_symbol_name_matcher): Delete declaration.
4365 * linespec.c (find_methods): Update call to
4366 get_symbol_name_matcher.
4367 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4368 initializer.
4369 * minsyms.c (lookup_minimal_symbol): Update call to
4370 get_symbol_name_matcher.
4371 (iterate_over_minimal_symbols): Likewise.
4372 * objc-lang.c (objc_language_data): Delete
4373 la_get_symbol_name_matcher initializer.
4374 * opencl-lang.c (opencl_language_data): Likewise.
4375 * p-lang.c (pascal_language_data): Likewise.
4376 * psymtab.c (psymbol_name_matches): Update call to
4377 get_symbol_name_matcher.
4378 * rust-lang.c (rust_language_data): Delete
4379 la_get_symbol_name_matcher initializer.
4380 * symtab.c (symbol_matches_search_name): Update call to
4381 get_symbol_name_matcher.
4382 (compare_symbol_name): Likewise.
4383
4384 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * ada-lang.c (ada_language_data): Delete la_compute_program
4387 initializer.
4388 * c-lang.c (c_language_data): Likewise.
4389 (c_language::compute_program): New member function.
4390 (cplus_language_data): Delete la_compute_program initializer.
4391 (cplus_language::compute_program): New member function.
4392 (asm_language_data): Delete la_compute_program initializer.
4393 (minimal_language_data): Likewise.
4394 * c-lang.h (c_compute_program): Update comment.
4395 (cplus_compute_program): Likewise.
4396 * compile/compile-c-support.c (c_compute_program): Likewise.
4397 (cplus_compute_program): Likewise.
4398 * compile/compile.c (compile_to_object): Update call to
4399 la_compute_program.
4400 * d-lang.c (d_language_data): Delete la_compute_program
4401 initializer.
4402 * f-lang.c (f_language_data): Likewise.
4403 * go-lang.c (go_language_data): Likewise.
4404 * language.c (unknown_language_data): Likewise.
4405 (auto_language_data): Likewise.
4406 * language.h (language_data): Delete la_compute_program field.
4407 (language_defn::compute_program): New member function.
4408 * m2-lang.c (m2_language_data): Delete la_compute_program
4409 initializer.
4410 * objc-lang.c (objc_language_data): Likewise.
4411 * opencl-lang.c (opencl_language_data): Likewise.
4412 * p-lang.c (pascal_language_data): Likewise.
4413 * rust-lang.c (rust_language_data): Likewise.
4414
4415 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * ada-lang.c (ada_language_data) Delete
4418 la_class_name_from_physname initializer.
4419 * c-lang.c (c_language_data): Likewise.
4420 (cplus_language_data): Likewise.
4421 (cplus_language::class_name_from_physname): New member function.
4422 (asm_language_data): Delete la_class_name_from_physname
4423 initializer.
4424 (minimal_language_data): Likewise.
4425 * d-lang.c (d_language_data): Likewise.
4426 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4427 method on language_defn class.
4428 (guess_full_die_structure_name): Likewise.
4429 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4430 initializer.
4431 * go-lang.c (go_language_data): Likewise.
4432 * language.c (language_class_name_from_physname): Delete.
4433 (unk_lang_class_name): Delete.
4434 (unknown_language_data): Delete la_class_name_from_physname
4435 initializer.
4436 (auto_language_data): Likewise.
4437 * language.h (language_data): Delete la_class_name_from_physname
4438 field.
4439 (language_defn::class_name_from_physname): New function.
4440 (language_class_name_from_physname): Delete declaration.
4441 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4442 initializer.
4443 * objc-lang.c (objc_language_data): Likewise.
4444 * opencl-lang.c (opencl_language_data): Likewise.
4445 * p-lang.c (pascal_language_data): Likewise.
4446 * rust-lang.c (rust_language_data): Likewise.
4447
4448 2020-06-16 Tom Tromey <tom@tromey.com>
4449
4450 * tui/tui-data.h (STATUS_NAME): New macro.
4451 * tui/tui-layout.c (tui_remove_some_windows)
4452 (initialize_known_windows, tui_register_window)
4453 (tui_layout_split::remove_windows, initialize_layouts)
4454 (tui_new_layout_command): Don't use hard-coded window names.
4455
4456 2020-06-16 Tom Tromey <tom@tromey.com>
4457
4458 PR tui/25348:
4459 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4460 tui_initialize_readline. Only run once. Call rl_initialize.
4461 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4462 tui_initialize_readline.
4463 * tui/tui-io.c (tui_setup_io): Call
4464 tui_ensure_readline_initialized.
4465 * tui/tui-interp.c (tui_interp::init): Update.
4466
4467 2020-06-16 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4470 Also preserve the status window.
4471
4472 2020-06-16 Tom Tromey <tom@tromey.com>
4473
4474 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4475 where m_window==nullptr.
4476
4477 2020-06-15 Tom Tromey <tromey@adacore.com>
4478
4479 * windows-nat.c (windows_nat::handle_output_debug_string):
4480 Update.
4481 (windows_nat::handle_ms_vc_exception): Update.
4482 * target.h (target_read_string): Change API.
4483 * target.c (target_read_string): Change API.
4484 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4485 Update.
4486 * solib-frv.c (frv_current_sos): Update.
4487 * solib-dsbt.c (dsbt_current_sos): Update.
4488 * solib-darwin.c (darwin_current_sos): Update.
4489 * linux-thread-db.c (inferior_has_bug): Update.
4490 * expprint.c (print_subexp_standard): Update.
4491 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4492 (ada_exception_message_1): Update.
4493
4494 2020-06-15 Tom Tromey <tromey@adacore.com>
4495
4496 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4497
4498 2020-06-15 Tom Tromey <tromey@adacore.com>
4499
4500 * valprint.c (read_string): Update comment.
4501 * target.c (MIN): Remove.
4502 (target_read_string): Rewrite.
4503
4504 2020-06-15 Tom Tromey <tromey@adacore.com>
4505
4506 * corefile.c (read_memory_string): Remove.
4507 * ada-valprint.c (ada_value_print_ptr): Update.
4508 * ada-lang.h (ada_tag_name): Change return type.
4509 * ada-lang.c (type_from_tag): Update.
4510 (ada_tag_name_from_tsd): Change return type. Use
4511 target_read_string.
4512 (ada_tag_name): Likewise.
4513 * gdbcore.h (read_memory_string): Don't declare.
4514
4515 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
4516
4517 * symtab.c (rbreak_command): Ignore Windows drive colon.
4518
4519 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
4520
4521 * NEWS: Mention removed GDBserver host support.
4522
4523 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
4524
4525 * features/riscv/rebuild-csr-xml.sh: Updated.
4526
4527 2020-06-11 Tom Tromey <tom@tromey.com>
4528
4529 PR gdb/18318:
4530 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4531
4532 2020-06-09 Jonny Grant <jg@jguk.org>
4533 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4534
4535 * main.c (captured_main_1): Don't print new line after help.
4536 (print_gdb_help): add mailing list and IRC channel information
4537 to --help. Add new lines between items in the footer. Remove
4538 quotes around bug url.
4539
4540 2020-06-11 Keith Seitz <keiths@redhat.com>
4541
4542 PR gdb/21356
4543 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4544 Resolve typedefs for type length calculations.
4545
4546 2020-06-10 Tom de Vries <tdevries@suse.de>
4547
4548 PR ada/24713
4549 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4550 (write_psymbols): Enable .gdb_index for ada.
4551 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4552 ada.
4553
4554 2020-06-10 Tom de Vries <tdevries@suse.de>
4555
4556 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4557 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4558 namei" instead of "const char *name" argument.
4559 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4560 dw2_symtab_iter_init.
4561
4562 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4565 to use type::field and field::type instead.
4566
4567 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4570 to use field::type instead.
4571
4572 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * gdbtypes.h (struct field) <type, set_type>: New methods.
4575 Rename `type` field to...
4576 <m_type>: ... this. Change references throughout to use type or
4577 set_type methods.
4578 (FIELD_TYPE): Use field::type. Change call sites that modify
4579 the field's type to use field::set_type instead.
4580
4581 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4584 to use type::index_type instead.
4585
4586 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
4587
4588 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4589 methods.
4590 (TYPE_INDEX_TYPE): Use type::index_type.
4591 * gdbtypes.c (create_array_type_with_stride): Likewise.
4592
4593 2020-06-07 Tom Tromey <tom@tromey.com>
4594
4595 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4596 parameter.
4597 (generic_value_print): Update.
4598
4599 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4600
4601 Revert commit 982a38f60b0.
4602 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4603
4604 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4605
4606 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4607 avoid use after free.
4608
4609 2020-06-05 Tom de Vries <tdevries@suse.de>
4610
4611 * NEWS: Fix typos.
4612
4613 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4616 the per_bfd object.
4617 (dwarf2_read_debug_names): Likewise.
4618 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4619 object when re-using a per_bfd object with an index.
4620
4621 2020-06-03 Tom de Vries <tdevries@suse.de>
4622
4623 PR symtab/26046
4624 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4625 children for C++.
4626 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4627 DW_TAG_subprogram.
4628
4629 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4630
4631 * ada-lang.c (ada_language_data): Delete skip_trampoline
4632 initializer.
4633 * c-lang.c (c_language_data): Likewise.
4634 (cplus_language_data): Likewise.
4635 (cplus_language::skip_trampoline): New member function.
4636 (asm_language_data): Delete skip_trampoline initializer.
4637 (minimal_language_data): Likewise.
4638 * d-lang.c (d_language_data): Likewise.
4639 * f-lang.c (f_language_data): Likewise.
4640 * go-lang.c (go_language_data): Likewise.
4641 * language.c (unk_lang_trampoline): Delete function.
4642 (skip_language_trampoline): Update.
4643 (unknown_language_data): Delete skip_trampoline initializer.
4644 (auto_language_data): Likewise.
4645 * language.h (language_data): Delete skip_trampoline field.
4646 (language_defn::skip_trampoline): New function.
4647 * m2-lang.c (m2_language_data): Delete skip_trampoline
4648 initializer.
4649 * objc-lang.c (objc_skip_trampoline): Delete function, move
4650 implementation to objc_language::skip_trampoline.
4651 (objc_language_data): Delete skip_trampoline initializer.
4652 (objc_language::skip_trampoline): New member function with
4653 implementation from objc_skip_trampoline.
4654 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4655 initializer.
4656 * p-lang.c (pascal_language_data): Likewise.
4657 * rust-lang.c (rust_language_data): Likewise.
4658
4659 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4660
4661 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4662 (ada_language::demangle): New member function.
4663 * c-lang.c (c_language_data): Delete la_demangle initializer.
4664 (cplus_language_data): Delete la_demangle initializer.
4665 (cplus_language::demangle): New member function.
4666 (asm_language_data): Delete la_demangle initializer.
4667 (minimal_language_data): Delete la_demangle initializer.
4668 * d-lang.c (d_language_data): Delete la_demangle initializer.
4669 (d_language::demangle): New member function.
4670 * f-lang.c (f_language_data): Delete la_demangle initializer.
4671 (f_language::demangle): New member function.
4672 * go-lang.c (go_language_data): Delete la_demangle initializer.
4673 (go_language::demangle): New member function.
4674 * language.c (language_demangle): Update.
4675 (unk_lang_demangle): Delete.
4676 (unknown_language_data): Delete la_demangle initializer.
4677 (unknown_language::demangle): New member function.
4678 (auto_language_data): Delete la_demangle initializer.
4679 (auto_language::demangle): New member function.
4680 * language.h (language_data): Delete la_demangle field.
4681 (language_defn::demangle): New function.
4682 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4683 * objc-lang.c (objc_language_data): Delete la_demangle
4684 initializer.
4685 (objc_language::demangle): New member function.
4686 * opencl-lang.c (opencl_language_data): Delete la_demangle
4687 initializer.
4688 * p-lang.c (pascal_language_data): Likewise.
4689 * rust-lang.c (rust_language_data): Likewise.
4690 (rust_language::demangle): New member function.
4691
4692 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * ada-lang.c (ada_language_data): Delete la_print_type
4695 initializer.
4696 (ada_language::print_type): New member function.
4697 * c-lang.c (c_language_data): Delete la_print_type initializer.
4698 (c_language::print_type): New member function.
4699 (cplus_language_data): Delete la_print_type initializer.
4700 (cplus_language::print_type): New member function.
4701 (asm_language_data): Delete la_print_type initializer.
4702 (asm_language::print_type): New member function.
4703 (minimal_language_data): Delete la_print_type initializer.
4704 (minimal_language::print_type): New member function.
4705 * d-lang.c (d_language_data): Delete la_print_type initializer.
4706 (d_language::print_type): New member function.
4707 * f-lang.c (f_language_data): Delete la_print_type initializer.
4708 (f_language::print_type): New member function.
4709 * go-lang.c (go_language_data): Delete la_print_type initializer.
4710 (go_language::print_type): New member function.
4711 * language.c (unk_lang_print_type): Delete.
4712 (unknown_language_data): Delete la_print_type initializer.
4713 (unknown_language::print_type): New member function.
4714 (auto_language_data): Delete la_print_type initializer.
4715 (auto_language::print_type): New member function.
4716 * language.h (language_data): Delete la_print_type field.
4717 (language_defn::print_type): New function.
4718 (LA_PRINT_TYPE): Update.
4719 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4720 (m2_language::print_type): New member function.
4721 * objc-lang.c (objc_language_data): Delete la_print_type
4722 initializer.
4723 (objc_language::print_type): New member function.
4724 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4725 to opencl_language::print_type.
4726 (opencl_language_data): Delete la_print_type initializer.
4727 (opencl_language::print_type): New member function, implementation
4728 from opencl_print_type.
4729 * p-lang.c (pascal_language_data): Delete la_print_type
4730 initializer.
4731 (pascal_language::print_type): New member function.
4732 * rust-lang.c (rust_print_type): Delete, implementation moved to
4733 rust_language::print_type.
4734 (rust_language_data): Delete la_print_type initializer.
4735 (rust_language::print_type): New member function, implementation
4736 from rust_print_type.
4737
4738 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4739
4740 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4741 implementation moves to...
4742 (ada_language::sniff_from_mangled_name): ...here. Update return
4743 type.
4744 (ada_language_data): Delete la_sniff_from_mangled_name
4745 initializer.
4746 * c-lang.c (c_language_data): Likewise.
4747 (cplus_language_data): Likewise.
4748 (cplus_language::sniff_from_mangled_name): New member function,
4749 implementation taken from gdb_sniff_from_mangled_name.
4750 (asm_language_data): Delete la_sniff_from_mangled_name
4751 initializer.
4752 (minimal_language_data): Likewise.
4753 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4754 implementation moves to cplus_language::sniff_from_mangled_name.
4755 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4756 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4757 moves to...
4758 (d_language::sniff_from_mangled_name): ...here.
4759 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4760 * f-lang.c (f_language_data): Likewise.
4761 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4762 moves to...
4763 (go_language::sniff_from_mangled_name): ...here.
4764 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4765 * language.c (language_sniff_from_mangled_name): Delete.
4766 (unknown_language_data): Delete la_sniff_from_mangled_name
4767 initializer.
4768 (auto_language_data): Likewise.
4769 * language.h (language_data): Delete la_sniff_from_mangled_name
4770 field.
4771 (language_defn::sniff_from_mangled_name): New function.
4772 (language_sniff_from_mangled_name): Delete declaration.
4773 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4774 field.
4775 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4776 implementation moves to...
4777 (objc_language::sniff_from_mangled_name): ...here.
4778 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4779 * opencl-lang.c (opencl_language_data): Likewise.
4780 * p-lang.c (pascal_language_data): Likewise.
4781 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4782 implementation moves to...
4783 (rust_language::sniff_from_mangled_name): ...here.
4784 (rust_language_data): Delete la_sniff_from_mangled_name
4785 initializer.
4786 * symtab.c (symbol_find_demangled_name): Call
4787 sniff_from_mangled_name member function.
4788
4789 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4790
4791 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4792 initializer.
4793 * c-lang.c (c_language_data): Likewise.
4794 (cplus_language_data): Likewise.
4795 (cplus_language::search_name_hash): New member function.
4796 (asm_language_data): Delete la_search_name_hash initializer.
4797 (minimal_language_data): Likewise.
4798 * d-lang.c (d_language_data): Likewise.
4799 * dictionary.c (default_search_name_hash): Rename to...
4800 (language_defn::search_name_hash): ...this.
4801 * f-lang.c (f_language_data): Likewise.
4802 (f_language::search_name_hash): New member function.
4803 * go-lang.c (go_language_data): Delete la_search_name_hash
4804 initializer.
4805 * language.c (unknown_language_data): Likewise.
4806 (auto_language_data): Likewise.
4807 * language.h (struct language_data): Delete la_search_name_hash
4808 field.
4809 (language_defn::search_name_hash): Declare new member function.
4810 (default_search_name_hash): Delete declaration.
4811 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4812 initializer.
4813 * objc-lang.c (objc_language_data): Likewise.
4814 * opencl-lang.c (opencl_language_data): Likewise.
4815 * p-lang.c (pascal_language_data): Likewise.
4816 * rust-lang.c (rust_language_data): Likewise.
4817 * symtab.c (search_name_hash): Update call.
4818
4819 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4820
4821 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4822 initializer.
4823 * c-lang.c (class compile_instance): Declare.
4824 (c_language_data): Delete la_get_compile_instance initializer.
4825 (c_language::get_compile_instance): New member function.
4826 (cplus_language_data): Delete la_get_compile_instance initializer.
4827 (cplus_language::get_compile_instance): New member function.
4828 (asm_language_data): Delete la_get_compile_instance initializer.
4829 (minimal_language_data): Likewise.
4830 * c-lang.h (c_get_compile_context): Update comment.
4831 (cplus_get_compile_context): Update comment.
4832 * compile/compile.c (compile_to_object): Update calls, don't rely
4833 on function pointer being NULL.
4834 * d-lang.c (d_language_data): Delete la_get_compile_instance
4835 initializer.
4836 * f-lang.c (f_language_data): Likewise.
4837 * go-lang.c (go_language_data): Likewise.
4838 * language.c (unknown_language_data): Likewise.
4839 (auto_language_data): Likewise.
4840 * language.h (language_data): Delete la_get_compile_instance field.
4841 (language_defn::get_compile_instance): New member function.
4842 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4843 initializer.
4844 * objc-lang.c (objc_language_data): Likewise.
4845 * opencl-lang.c (opencl_language_data): Likewise.
4846 * p-lang.c (pascal_language_data): Likewise.
4847 * rust-lang.c (rust_language_data): Likewise.
4848
4849 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * ada-lang.c (ada_add_all_symbols): Update comment.
4852 (ada_iterate_over_symbols): Delete, move implementation to...
4853 (ada_language::iterate_over_symbols): ...here, a new member
4854 function, rewrite to use range based for loop.
4855 (ada_language_data): Delete la_iterate_over_symbols initializer.
4856 * c-lang.c (c_language_data): Likewise.
4857 (cplus_language_data): Likewise.
4858 (asm_language_data): Likewise.
4859 (minimal_language_data): Likewise.
4860 * d-lang.c (d_language_data): Likewise.
4861 * f-lang.c (f_language_data): Likewise.
4862 * go-lang.c (go_language_data): Likewise.
4863 * language.c (unknown_language_data): Likewise.
4864 (auto_language_data): Likewise.
4865 * language.h (language_data): Delete la_iterate_over_symbols field.
4866 (language_defn::iterate_over_symbols): New member function.
4867 (LA_ITERATE_OVER_SYMBOLS): Update.
4868 * linespec.c (iterate_over_all_matching_symtabs): Update.
4869 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4870 initializer.
4871 * objc-lang.c (objc_language_data): Likewise.
4872 * opencl-lang.c (opencl_language_data): Likewise.
4873 * p-lang.c (pascal_language_data): Likewise.
4874 * rust-lang.c (rust_language_data): Likewise.
4875
4876 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4877
4878 * ada-lang.c (ada_language_data): Delete
4879 la_lookup_transparent_type initializer.
4880 * c-lang.c (c_language_data): Likewise.
4881 (cplus_language_data): Likewise.
4882 (cplus_language::lookup_transparent_type): New member function.
4883 (asm_language_data): Delete la_lookup_transparent_type
4884 initializer.
4885 (minimal_language_data): Likewise.
4886 * d-lang.c (d_language_data): Likewise.
4887 * f-lang.c (f_language_data): Likewise.
4888 * go-lang.c (go_language_data): Likewise.
4889 * language.c (unknown_language_data): Likewise.
4890 (auto_language_data): Likewise.
4891 * language.h (struct language_data): Delete
4892 la_lookup_transparent_type field.
4893 (language_defn::lookup_transparent_type): New member function.
4894 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4895 initializer.
4896 * objc-lang.c (objc_language_data): Likewise.
4897 * opencl-lang.c (opencl_language_data): Likewise.
4898 * p-lang.c (pascal_language_data): Likewise.
4899 * rust-lang.c (rust_language_data): Likewise.
4900 * symtab.c (symbol_matches_domain): Update call.
4901
4902 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4903
4904 * ada-lang.c (ada_language_arch_info): Delete function, move
4905 implementation to...
4906 (ada_language::language_arch_info): ...here, a new member
4907 function.
4908 (ada_language_data): Delete la_language_arch_info.
4909 * c-lang.c (c_language_data): Likewise.
4910 (c_language::language_arch_info): New member function.
4911 (cplus_language_arch_info): Delete function, move
4912 implementation to...
4913 (cplus_language::language_arch_info): ...here, a new member
4914 function.
4915 (cplus_language_data): Delete la_language_arch_info.
4916 (asm_language_data): Likewise.
4917 (asm_language::language_arch_info): New member function.
4918 (minimal_language_data): Delete la_language_arch_info.
4919 (minimal_language::language_arch_info): New member function.
4920 * d-lang.c (d_language_arch_info): Delete function, move
4921 implementation to...
4922 (d_language::language_arch_info): ...here, a new member
4923 function.
4924 (d_language_data): Delete la_language_arch_info.
4925 * f-lang.c (f_language_arch_info): Delete function, move
4926 implementation to...
4927 (f_language::language_arch_info): ...here, a new member
4928 function.
4929 (f_language_data): Delete la_language_arch_info.
4930 * go-lang.c (go_language_arch_info): Delete function, move
4931 implementation to...
4932 (go_language::language_arch_info): ...here, a new member
4933 function.
4934 (go_language_data): Delete la_language_arch_info.
4935 * language.c (unknown_language_data): Likewise.
4936 (unknown_language::language_arch_info): New member function.
4937 (auto_language_data): Delete la_language_arch_info.
4938 (auto_language::language_arch_info): New member function.
4939 (language_gdbarch_post_init): Update call to
4940 la_language_arch_info.
4941 * language.h (language_data): Delete la_language_arch_info
4942 function pointer.
4943 (language_defn::language_arch_info): New function.
4944 * m2-lang.c (m2_language_arch_info): Delete function, move
4945 implementation to...
4946 (m2_language::language_arch_info): ...here, a new member
4947 function.
4948 (m2_language_data): Delete la_language_arch_info.
4949 * objc-lang.c (objc_language_arch_info): Delete function, move
4950 implementation to...
4951 (objc_language::language_arch_info): ...here, a new member
4952 function.
4953 (objc_language_data): Delete la_language_arch_info.
4954 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4955 implementation to...
4956 (opencl_language::language_arch_info): ...here, a new member
4957 function.
4958 (opencl_language_data): Delete la_language_arch_info.
4959 * p-lang.c (pascal_language_arch_info): Delete function, move
4960 implementation to...
4961 (pascal_language::language_arch_info): ...here, a new member
4962 function.
4963 (pascal_language_data): Delete la_language_arch_info.
4964 * rust-lang.c (rust_language_arch_info): Delete function, move
4965 implementation to...
4966 (rust_language::language_arch_info): ...here, a new member
4967 function.
4968 (rust_language_data): Delete la_language_arch_info.
4969
4970 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4971
4972 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4973 initializer.
4974 * c-lang.c (c_language_data): Likewise.
4975 (cplus_language_data): Likewise.
4976 (cplus_language::pass_by_reference_info): New method.
4977 (asm_language_data): Delete la_pass_by_reference initializer.
4978 (minimal_language_data): Likewise.
4979 * cp-abi.c (cp_pass_by_reference): Remove use of
4980 default_pass_by_reference.
4981 * d-lang.c (d_language_data): Likewise.
4982 * f-lang.c (f_language_data): Likewise.
4983 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4984 default_pass_by_reference.
4985 * go-lang.c (go_language_data): Likewise.
4986 * language.c (language_pass_by_reference): Update.
4987 (default_pass_by_reference): Delete.
4988 (unknown_language_data): Delete la_pass_by_reference
4989 initializer.
4990 (auto_language_data): Likewise.
4991 * language.h (struct language_data): Delete la_pass_by_reference
4992 field.
4993 (language_defn::pass_by_reference_info): New member function.
4994 (default_pass_by_reference): Delete declaration.
4995 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4996 initializer.
4997 * objc-lang.c (objc_language_data): Likewise.
4998 * opencl-lang.c (opencl_language_data): Likewise.
4999 * p-lang.c (pascal_language_data): Likewise.
5000 * rust-lang.c (rust_language_data): Likewise.
5001
5002 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5003
5004 * ada-lang.c (ada_read_var_value): Delete function, move
5005 implementation to...
5006 (ada_language::read_var_value): ...here.
5007 (ada_language_data): Delete la_read_var_value initializer.
5008 * c-lang.c (c_language_data): Likewise.
5009 (cplus_language_data): Likewise.
5010 (minimal_language_data): Likewise.
5011 * d-lang.c (d_language_data): Likewise.
5012 * f-lang.c (f_language_data): Likewise.
5013 * findvar.c (default_read_var_value): Rename to...
5014 (language_defn::read_var_value): ...this.
5015 * findvar.c (read_var_value): Update header comment, and change to
5016 call member function instead of function pointer.
5017 * go-lang.c (go_language_data): Likewise.
5018 * language.c (unknown_language_data): Delete la_read_var_value
5019 initializer.
5020 (auto_language_data): Likewise.
5021 * language.h (struct language_data): Delete la_read_var_value
5022 field.
5023 (language_defn::read_var_value): New member function.
5024 (default_read_var_value): Delete declaration.
5025 * m2-lang.c (m2_language_data): Delete la_read_var_value
5026 initializer.
5027 * objc-lang.c (objc_language_data): Likewise.
5028 * opencl-lang.c (opencl_language_data): Likewise.
5029 * p-lang.c (pascal_language_data): Likewise.
5030 * rust-lang.c (rust_language_data): Likewise.
5031 * value.h (default_read_var_value): Delete declaration.
5032
5033 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5034
5035 * ada-lang.c (ada_print_array_index): Delete function, move
5036 implementation to...
5037 (ada_language::print_array_index): ...here.
5038 (ada_language_data): Delete la_print_array_index initializer.
5039 * c-lang.c (c_language_data): Likewise.
5040 (cplus_language_data): Likewise.
5041 (minimal_language_data): Likewise.
5042 * d-lang.c (d_language_data): Likewise.
5043 * f-lang.c (f_language_data): Likewise.
5044 * go-lang.c (go_language_data): Likewise.
5045 * language.c (default_print_array_index): Delete function, move
5046 implementation to...
5047 (language_defn::print_array_index): ...here.
5048 (unknown_language_data): Delete la_print_array_index initializer.
5049 (auto_language_data): Likewise.
5050 * language.h (struct language_data): Delete la_print_array_index
5051 field.
5052 (language_defn::print_array_index): New member function.
5053 (LA_PRINT_ARRAY_INDEX): Update.
5054 (default_print_array_index): Delete declaration.
5055 * m2-lang.c (m2_language_data): Delete la_print_array_index
5056 initializer.
5057 * objc-lang.c (objc_language_data): Likewise.
5058 * opencl-lang.c (opencl_language_data): Likewise.
5059 * p-lang.c (pascal_language_data): Likewise.
5060 * rust-lang.c (rust_language_data): Likewise.
5061
5062 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5063
5064 * gdb/ada-lang.c (ada_language_defn): Convert to...
5065 (ada_language_data): ...this.
5066 (class ada_language): New class.
5067 (ada_language_defn): New static global.
5068 * gdb/c-lang.c (c_language_defn): Convert to...
5069 (c_language_data): ...this.
5070 (class c_language): New class.
5071 (c_language_defn): New static global.
5072 (cplus_language_defn): Convert to...
5073 (cplus_language_data): ...this.
5074 (class cplus_language): New class.
5075 (cplus_language_defn): New static global.
5076 (asm_language_defn): Convert to...
5077 (asm_language_data): ...this.
5078 (class asm_language): New class.
5079 (asm_language_defn): New static global.
5080 (minimal_language_defn): Convert to...
5081 (minimal_language_data): ...this.
5082 (class minimal_language): New class.
5083 (minimal_language_defn): New static global.
5084 * gdb/d-lang.c (d_language_defn): Convert to...
5085 (d_language_data): ...this.
5086 (class d_language): New class.
5087 (d_language_defn): New static global.
5088 * gdb/f-lang.c (f_language_defn): Convert to...
5089 (f_language_data): ...this.
5090 (class f_language): New class.
5091 (f_language_defn): New static global.
5092 * gdb/go-lang.c (go_language_defn): Convert to...
5093 (go_language_data): ...this.
5094 (class go_language): New class.
5095 (go_language_defn): New static global.
5096 * gdb/language.c (unknown_language_defn): Remove declaration.
5097 (current_language): Initialize to nullptr, real initialization is
5098 moved to _initialize_language.
5099 (languages): Delete global.
5100 (language_defn::languages): Define.
5101 (set_language_command): Use language_defn::languages.
5102 (set_language): Likewise.
5103 (range_error): Likewise.
5104 (language_enum): Likewise.
5105 (language_def): Likewise.
5106 (add_set_language_command): Use language_def::languages for the
5107 language list, and language_def to lookup language pointers.
5108 (skip_language_trampoline): Use language_defn::languages.
5109 (unknown_language_defn): Convert to...
5110 (unknown_language_data): ...this.
5111 (class unknown_language): New class.
5112 (unknown_language_defn): New static global.
5113 (auto_language_defn): Convert to...
5114 (auto_language_data): ...this.
5115 (class auto_language): New class.
5116 (auto_language_defn): New static global.
5117 (language_gdbarch_post_init): Use language_defn::languages.
5118 (_initialize_language): Initialize current_language.
5119 * gdb/language.h (struct language_defn): Rename to...
5120 (struct language_data): ...this.
5121 (struct language_defn): New.
5122 (auto_language_defn): Delete.
5123 (unknown_language_defn): Delete.
5124 (minimal_language_defn): Delete.
5125 (ada_language_defn): Delete.
5126 (asm_language_defn): Delete.
5127 (c_language_defn): Delete.
5128 (cplus_language_defn): Delete.
5129 (d_language_defn): Delete.
5130 (f_language_defn): Delete.
5131 (go_language_defn): Delete.
5132 (m2_language_defn): Delete.
5133 (objc_language_defn): Delete.
5134 (opencl_language_defn): Delete.
5135 (pascal_language_defn): Delete.
5136 (rust_language_defn): Delete.
5137 * gdb/m2-lang.c (m2_language_defn): Convert to...
5138 (m2_language_data): ...this.
5139 (class m2_language): New class.
5140 (m2_language_defn): New static global.
5141 * gdb/objc-lang.c (objc_language_defn): Convert to...
5142 (objc_language_data): ...this.
5143 (class objc_language): New class.
5144 (objc_language_defn): New static global.
5145 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5146 (opencl_language_data): ...this.
5147 (class opencl_language): New class.
5148 (opencl_language_defn): New static global.
5149 * gdb/p-lang.c (pascal_language_defn): Convert to...
5150 (pascal_language_data): ...this.
5151 (class pascal_language): New class.
5152 (pascal_language_defn): New static global.
5153 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5154 language pointer, update comment format.
5155 * gdb/rust-lang.c (rust_language_defn): Convert to...
5156 (rust_language_data): ...this.
5157 (class rust_language): New class.
5158 (rust_language_defn): New static global.
5159
5160 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5161
5162 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5163 member variable.
5164 <m_stmt_at_address>: New member variable.
5165 (lnp_state_machine::record_line): Don't record some lines, update
5166 tracking of is_stmt at the same address.
5167 (lnp_state_machine::lnp_state_machine): Initialise new member
5168 variables.
5169
5170 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5171
5172 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5173 "-include gnu-nat-mig.h".
5174 * gnu-nat-mig.h: New file.
5175 * gnu-nat.c: Include "gnu-nat-mig.h".
5176 (exc_server, msg_reply_server, notify_server,
5177 process_reply_server): Remove declarations.
5178
5179 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5180
5181 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5182 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5183 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5184 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5185 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5186 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5187 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5188 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5189 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5190 to gnu_nat_target class.
5191 * gnu-nat.c: Likewise.
5192 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5193 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5194 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5195 object.
5196 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5197 instead of `gnu_target'.
5198
5199 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5200
5201 * i386-gnu-tdep.c: Include "gdbcore.h"
5202 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5203 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5204 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5205 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5206 i386_gnu_sigcontext_addr): New functions
5207 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5208 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5209 tdep.
5210
5211 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5212
5213 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5214 before fork_inferior call. Avoid calling it if target_is_pushed returns
5215 true.
5216
5217 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5218
5219 * gnu-nat.h (gnu_target): New variable declaration.
5220 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5221 gnu_target.
5222 * gnu-nat.c (gnu_target): New variable.
5223 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5224 add_thread_silent, and add_thread calls.
5225 (gnu_nat_target::create_inferior): Pass gnu_target to
5226 add_thread_silent, thread_change_ptid call.
5227 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5228 call.
5229
5230 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5231
5232 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5233 (gnu_nat_target::find_memory_regions): Remove unused
5234 `old_address' variable.
5235
5236 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5237
5238 * gnu-nat.c: Include "gdbarch.h".
5239
5240 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5241
5242 * reply_mig_hack.awk (Error return): Cast function through
5243 void *, to bypass compiler function call check.
5244
5245 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5246
5247 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5248 $(srcdir)/reply_mig_hack.awk.
5249
5250 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5251
5252 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5253
5254 2020-05-30 Jonny Grant <jg@jguk.org>
5255
5256 * configure.ac (ACX_BUGURL): change bug URL to https.
5257
5258 2020-05-30 Pedro Alves <palves@redhat.com>
5259
5260 * cp-support.c (replace_typedefs_template): New.
5261 (replace_typedefs_qualified_name): Handle
5262 DEMANGLE_COMPONENT_TEMPLATE.
5263
5264 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5265
5266 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5267 dwarf2/index-cache.h, dwarf2/index-write.c,
5268 dwarf2/index-write.h, dwarf2/line-header.c,
5269 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5270 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5271 variables and fields from `dwarf2_per_objfile` to just
5272 `per_objfile` throughout.
5273
5274 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5275
5276 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5277 <push_dwarf_reg_entry_value>: Add comment.
5278
5279 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5280 Keith Seitz <keiths@redhat.com>
5281
5282 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5283 instead of PyEval_ReleaseLock.
5284 (class gdbpy_gil): Move to earlier in file.
5285 (finalize_python): Set gdb_python_initialized.
5286 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5287 when not initialized.
5288
5289 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5292 <push_dwarf_reg_entry_value>: Remove assert. Override
5293 per_objfile with caller_per_objfile.
5294
5295 2020-05-28 Tom de Vries <tdevries@suse.de>
5296
5297 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5298 PR gold/15646 workaround to symbol kind "type".
5299
5300 2020-05-27 Tom Tromey <tromey@adacore.com>
5301
5302 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5303
5304 2020-05-27 Tom Tromey <tromey@adacore.com>
5305
5306 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5307 Use htab_find_with_hash.
5308 <add_abbrev>: Remove "abbrev_number" parameter.
5309 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5310 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5311 (hash_abbrev): Add comment.
5312 (abbrev_table::lookup_abbrev): Move to header file.
5313 (abbrev_table::read): Update.
5314
5315 2020-05-27 Tom Tromey <tromey@adacore.com>
5316
5317 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5318 method.
5319 <canonical_name>: New member.
5320 <raw_name>: Rename from "name".
5321 (partial_die_info): Initialize canonical_name.
5322 (scan_partial_symbols): Check raw_name.
5323 (partial_die_parent_scope, partial_die_full_name)
5324 (add_partial_symbol, add_partial_subprogram)
5325 (add_partial_enumeration, load_partial_dies): Use "name" method.
5326 (partial_die_info::name): New method.
5327 (partial_die_info::read, guess_partial_die_structure_name)
5328 (partial_die_info::fixup): Update.
5329
5330 2020-05-27 Tom Tromey <tromey@adacore.com>
5331
5332 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5333 <get_ref_die_offset>: Inline.
5334 <get_ref_die_offset_complaint>: New method.
5335 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5336 (attribute::get_ref_die_offset_complaint): Rename from
5337 get_ref_die_offset. Just issue complaint.
5338
5339 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5340
5341 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5342
5343 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5344
5345 * exec.c (exec_file_attach): Use errno value of first openp failure.
5346
5347 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5348
5349 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5350 Don't close thread handle.
5351
5352 2020-05-27 Tom Tromey <tom@tromey.com>
5353 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5356 shared_ptr.
5357 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5358 member.
5359 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5360 dwarf2_per_bfd_objfile_data_key>: New globals.
5361 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5362 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5363 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5364 shared.
5365 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5366 short-circuit when sharing.
5367 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5368 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5369
5370 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5373 to...
5374 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5375 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5376
5377 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5380 build_name_components, find_name_components_bounds>:
5381 Add per_objfile parameter.
5382 (struct mapped_index) <symbol_name_at>: Likewise.
5383 (struct mapped_debug_names): Remove constructor.
5384 <dwarf2_per_objfile>: Remove field.
5385 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5386 (mapped_index_base::find_name_components_bounds,
5387 mapped_index_base::build_name_components,
5388 dw2_expand_symtabs_matching_symbol): Likewise.
5389 (class mock_mapped_index) <symbol_name_at>: Likewise.
5390 (check_match): Likewise.
5391 (check_find_bounds_finds): Likewise.
5392 (test_mapped_index_find_name_component_bounds): Update.
5393 (CHECK_MATCH): Update.
5394 (dw2_expand_symtabs_matching): Update.
5395 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5396 per_objfile parameter.
5397 <find_vec_in_debug_names>: Likewise.
5398 <m_per_objfile>: New field.
5399 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5400 parameter.
5401 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5402 (dw2_debug_names_iterator::next): Update.
5403 (dw2_debug_names_lookup_symbol): Update.
5404 (dw2_debug_names_expand_symtabs_for_function): Update.
5405 (dw2_debug_names_map_matching_symbols): Update.
5406 (dw2_debug_names_expand_symtabs_matching): Update.
5407 (dwarf2_read_debug_names): Update.
5408
5409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5410
5411 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5412 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5413 move to dwarf2_per_objfile.
5414 <read_in_chain>: Remove.
5415 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5416 remove_all_cus, age_comp_units>: New methods.
5417 <m_dwarf2_cus>: New member.
5418 (struct dwarf2_per_cu_data) <cu>: Remove.
5419 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5420 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5421 moved to methods of dwarf2_per_objfile.
5422 (dwarf2_clear_marks): Remove.
5423 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5424 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5425 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5426 (dwarf2_per_objfile::remove_all_cus): New.
5427 (class free_cached_comp_units) <~free_cached_comp_units>:
5428 Update.
5429 (load_cu): Update.
5430 (dw2_do_instantiate_symtab): Adjust.
5431 (fill_in_sig_entry_from_dwo_entry): Adjust.
5432 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5433 (cutu_reader::cutu_reader): Likewise.
5434 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5435 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5436 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5437 and dwarf2_per_objfile::age_comp_units.
5438 (load_partial_comp_unit): Update.
5439 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5440 (process_queue): Likewise.
5441 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5442 backlink.
5443 (dwarf2_read_addr_index): Likewise.
5444 (follow_die_offset): Likewise.
5445 (dwarf2_fetch_die_loc_sect_off): Likewise.
5446 (dwarf2_fetch_constant_bytes): Likewise.
5447 (dwarf2_fetch_die_type_sect_off): Likewise.
5448 (follow_die_sig_1): Likewise.
5449 (load_full_type_unit): Likewise.
5450 (read_signatured_type): Likewise.
5451 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5452 (dwarf2_cu::~dwarf2_cu): Remove.
5453 (dwarf2_per_objfile::get_cu): New.
5454 (dwarf2_per_objfile::set_cu): New.
5455 (age_cached_comp_units): Rename to...
5456 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5457 to std::unordered_map.
5458 (free_one_cached_comp_unit): Rename to...
5459 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5460 to std::unordered_map.
5461 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5462 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5463 a dwarf2_per_objfile in data.
5464 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5465 (dwarf2_clear_marks): Remove.
5466
5467 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5468
5469 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5470 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5471 (init_tu_and_read_dwo_dies): Likewise.
5472 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5473 (cutu_reader::cutu_reader): Likewise.
5474 (load_partial_comp_unit): Likewise.
5475 (process_psymtab_comp_unit): Update.
5476 (build_type_psymtabs_1): Update.
5477 (process_skeletonless_type_unit): Update.
5478 (load_full_comp_unit): Update.
5479 (find_partial_die): Update.
5480 (dwarf2_read_addr_index): Update.
5481 (read_signatured_type): Update.
5482
5483 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5484
5485 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5486 m_header_read_in>: New fields.
5487 <get_header>: New method.
5488 * dwarf2/read.c (per_cu_header_read_in): Remove.
5489 (dwarf2_per_cu_data::get_header): New.
5490 (dwarf2_per_cu_data::addr_size): Update.
5491 (dwarf2_per_cu_data::offset_size): Update.
5492 (dwarf2_per_cu_data::ref_addr_size): Update.
5493
5494 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5497 (dw2_do_instantiate_symtab): Update.
5498 (queue_and_load_all_dwo_tus): Change parameter from
5499 dwarf2_per_cu_data to dwarf2_cu.
5500 (dwarf2_fetch_die_loc_sect_off): Update.
5501 (dwarf2_fetch_constant_bytes): Update.
5502 (dwarf2_fetch_die_type_sect_off): Update.
5503
5504 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5505
5506 * dwarf2/read.c (process_full_comp_unit,
5507 process_full_type_unit): Remove per_cu, per_objfile paramters.
5508 Add dwarf2_cu parameter.
5509 (process_queue): Update.
5510
5511 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * dwarf2/read.c (create_cu_from_index_list): Replace
5514 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5515 (create_cus_from_index_list): Likewise.
5516 (create_cus_from_index): Likewise.
5517 (create_signatured_type_table_from_index): Likewise.
5518 (create_cus_from_debug_names_list): Likewise.
5519 (create_cus_from_debug_names): Likewise.
5520 (dwarf2_read_gdb_index): Update.
5521 (dwarf2_read_debug_names): Update.
5522
5523 2020-05-27 Tom Tromey <tom@tromey.com>
5524 Simon Marchi <simon.marchi@efficios.com>
5525
5526 * dwarf2/read.h (struct dwarf2_per_objfile)
5527 <get_type_for_signatured_type, set_type_for_signatured_type>:
5528 New methods.
5529 <m_type_map>: New member.
5530 (struct signatured_type) <type>: Remove.
5531 * dwarf2/read.c
5532 (dwarf2_per_objfile::get_type_for_signatured_type,
5533 dwarf2_per_objfile::set_type_for_signatured_type): New.
5534 (get_signatured_type): Use new methods.
5535
5536 2020-05-27 Tom Tromey <tom@tromey.com>
5537 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5540 (struct dwarf2_per_objfile) <type_units>: New member.
5541 <get_type_unit_group_unshareable>: New method.
5542 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5543 num_symtabs, symtabs>: Remove; move to
5544 type_unit_group_unshareable.
5545 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5546 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5547 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5548
5549 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * dwarf2/read.h (struct dwarf2_per_cu_data):
5552 <dwarf2_per_objfile>: Remove.
5553 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5554 dwarf2_per_objfile.
5555 (create_signatured_type_table_from_index): Likewise.
5556 (create_signatured_type_table_from_debug_names): Likewise.
5557 (create_debug_type_hash_table): Likewise.
5558 (fill_in_sig_entry_from_dwo_entry): Likewise.
5559 (create_type_unit_group): Likewise.
5560 (read_comp_units_from_section): Likewise.
5561 (create_cus_hash_table): Likewise.
5562
5563 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5564
5565 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5566 dwarf2_per_cu_data::dwarf2_per_objfile.
5567 (compute_compunit_symtab_includes): Likewise.
5568 (dwarf2_cu::start_symtab): Likewise.
5569
5570 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5571
5572 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5573 parameter.
5574 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5575 (read_namespace_alias): Update.
5576 (lookup_die_type): Update.
5577 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5578 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5579 Update.
5580 (disassemble_dwarf_expression): Update.
5581
5582 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * dwarf2/read.h (struct dwarf2_queue_item): Add
5585 dwarf2_per_objfile parameter, assign new parameter.
5586 <per_objfile>: New field.
5587 * dwarf2/read.c (free_one_cached_comp_unit): Add
5588 dwarf2_per_objfile parameter.
5589 (queue_comp_unit): Likewise.
5590 (dw2_do_instantiate_symtab): Update.
5591 (process_psymtab_comp_unit): Update.
5592 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5593 (process_imported_unit_die): Update.
5594 (queue_and_load_dwo_tu): Update.
5595 (follow_die_offset): Update.
5596 (follow_die_sig_1): Update.
5597
5598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5599
5600 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5601 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5602 (read_call_site_scope): Assign per_objfile.
5603 (dwarf2_per_cu_data::objfile): Remove.
5604 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5605 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5606 dwarf2_per_objfile parameter.
5607 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5608 dwarf2_per_objfile parameter.
5609 (dwarf_expr_reg_to_entry_parameter): Add output
5610 dwarf2_per_objfile parameter.
5611 (locexpr_get_frame_base): Update.
5612 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5613 <push_dwarf_reg_entry_value>: Update.
5614 <call_site_to_target_addr>: Update.
5615 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5616 parameter.
5617 (value_of_dwarf_reg_entry): Update.
5618 (rw_pieced_value): Update.
5619 (indirect_synthetic_pointer): Update.
5620 (dwarf2_evaluate_property): Update.
5621 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5622 parameter.
5623 (locexpr_read_variable): Update.
5624 (locexpr_get_symbol_read_needs): Update.
5625 (loclist_read_variable): Update.
5626
5627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5628
5629 * dwarf2/read.h (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/read.c (dwarf2_fetch_die_loc_sect_off,
5634 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5635 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5636 parameter.
5637 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5638 sect_variable_value): Add dwarf2_per_objfile parameter.
5639 (class dwarf_evaluate_loc_desc) <dwarf_call,
5640 dwarf_variable_value>: Update.
5641 (fetch_const_value_from_synthetic_pointer): Add
5642 dwarf2_per_objfile parameter.
5643 (fetch_const_value_from_synthetic_pointer): Update.
5644 (coerced_pieced_ref): Update.
5645 (class symbol_needs_eval_context) <dwarf_call,
5646 dwarf_variable_value>: Update.
5647 (dwarf2_compile_expr_to_ax): Update.
5648
5649 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5652 parameter.
5653 (dwarf2_evaluate_loc_desc_full): Update.
5654
5655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5656
5657 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5658 parameter.
5659 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5660 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5661 dwarf2_per_objfile parameter.
5662 (decode_debug_loc_dwo_addresses): Likewise.
5663 (dwarf2_find_location_expression): Update.
5664 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5665 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5666 parameter.
5667 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5668 parameter.
5669 (locexpr_describe_location_1): Likewise.
5670 (locexpr_describe_location): Update.
5671
5672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5673
5674 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5675 Remove.
5676 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5677 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5678 (dwarf2_compile_property_to_c): Update.
5679 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5680 use text offset from objfile.
5681 (locexpr_tracepoint_var_ref): Update.
5682 (locexpr_generate_c_location): Update.
5683 (loclist_describe_location): Update.
5684 (loclist_tracepoint_var_ref): Update.
5685 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5686 dwarf2_per_objfile parameter.
5687 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5688 use text offset from objfile.
5689 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5690
5691 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5692
5693 * dwarf2/expr.h (struct dwarf_expr_context)
5694 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5695 <offset>: Remove.
5696 <per_objfile>: New member.
5697 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5698 dwarf2_per_objfile parameter. Don't set offset, set
5699 per_objfile.
5700 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5701 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5702 a dwarf2_per_objfile object instead of an offset.
5703 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5704 constructor.
5705 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5706 to dwarf2_expr_executor constructor. Don't set offset.
5707 (dwarf2_fetch_cfa_info): Update.
5708 (struct dwarf2_frame_cache) <text_offset>: Remove.
5709 <per_objfile>: New field.
5710 (dwarf2_frame_cache): Update.
5711 (dwarf2_frame_prev_register): Update.
5712 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5713 <dwarf_evaluate_loc_desc>: Add constructor.
5714 (dwarf2_evaluate_loc_desc_full): Update.
5715 (dwarf2_locexpr_baton_eval): Update.
5716 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5717 Add constructor.
5718 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5719
5720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5721
5722 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5723 addr_sized_int_type>: Move to dwarf2_cu.
5724 <int_type>: Move to dwarf2_per_objfile.
5725 (struct dwarf2_per_objfile) <int_type>: Move here.
5726 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5727 addr_sized_int_type>: Move here.
5728 (read_func_scope): Update.
5729 (read_array_type): Update.
5730 (read_tag_string_type): Update.
5731 (attr_to_dynamic_prop): Update.
5732 (dwarf2_per_cu_data::int_type): Rename to...
5733 (dwarf2_per_objfile::int_type): ... this.
5734 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5735 (dwarf2_cu::addr_sized_int_type): ... this.
5736 (read_subrange_type): Update.
5737 (dwarf2_per_cu_data::addr_type): Rename to...
5738 (dwarf2_cu::addr_type): ... this.
5739 (set_die_type): Update.
5740
5741 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5742
5743 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5744 data through per_cu->cu.
5745
5746 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5747
5748 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5749 dwarf2_per_cu_data parameter fo dwarf2_cu.
5750 (lookup_dwo_type_unit): Likewise.
5751 (read_cutu_die_from_dwo): Likewise.
5752 (lookup_dwo_unit): Likewise.
5753 (open_and_init_dwo_file): Likewise.
5754 (lookup_dwo_cutu): Likewise.
5755 (lookup_dwo_comp_unit): Likewise.
5756 (lookup_dwo_type_unit): Likewise.
5757 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5758 (cutu_reader::cutu_reader): Update.
5759
5760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5763 parameter.
5764 (process_full_type_unit): Likewise.
5765 (process_queue): Update.
5766
5767 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * dwarf2/read.c (recursively_compute_inclusions): Add
5770 dwarf2_per_objfile parameter.
5771 (compute_compunit_symtab_includes): Likewise.
5772 (process_cu_includes): Update.
5773
5774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5775
5776 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5777 parameter.
5778 (create_type_unit_group): Update.
5779 (process_psymtab_comp_unit_reader): Update.
5780 (build_type_psymtabs_reader): Update.
5781
5782 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5785 object through m_this_cu->cu.
5786
5787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5788
5789 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5790 the info parameter.
5791 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5792
5793 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5794
5795 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5796 per_objfile parameter.
5797 (load_full_type_unit): Add per_objfile parameter.
5798 (read_signatured_type): Likewise.
5799 (load_full_comp_unit): Likewise.
5800 (load_cu): Likewise.
5801 (dw2_do_instantiate_symtab): Likewise.
5802 (dw2_get_file_names): Likewise.
5803 (dw2_map_symtabs_matching_filename): Update.
5804 (dw_expand_symtabs_matching_file_matcher): Update.
5805 (dw2_map_symbol_filenames): Update.
5806 (process_psymtab_comp_unit): Add per_objfile parameter.
5807 (build_type_psymtabs_1): Update.
5808 (process_skeletonless_type_unit): Update.
5809 (dwarf2_build_psymtabs_hard): Update.
5810 (load_partial_comp_unit): Add per_objfile parameter.
5811 (scan_partial_symbols): Update.
5812 (load_full_comp_unit): Add per_objfile parameter.
5813 (process_imported_unit_die): Update.
5814 (create_cus_hash_table): Update.
5815 (find_partial_die): Update.
5816 (dwarf2_read_addr_index): Update.
5817 (follow_die_offset): Update.
5818 (dwarf2_fetch_die_loc_sect_off): Update.
5819 (dwarf2_fetch_constant_bytes): Update.
5820 (dwarf2_fetch_die_type_sect_off): Update.
5821 (follow_die_sig_1): Update.
5822 (load_full_type_unit): Add per_objfile parameter.
5823 (read_signatured_type): Likewise.
5824
5825 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5828 of objfile_name.
5829
5830 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5831
5832 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5833 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5834 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5835 field.
5836 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5837 (create_cus_from_index): Update.
5838 (dwarf2_read_gdb_index): Update.
5839 (create_cus_from_debug_names): Update.
5840 (dwarf2_read_debug_names): Update.
5841 (get_abbrev_section_for_cu): Update.
5842 (create_all_comp_units): Update.
5843 (read_attribute_value): Update.
5844 (get_debug_line_section): Update.
5845 * dwarf2/index-cache.c (index_cache::store): Update.
5846 * dwarf2/index-write.c (save_gdb_index_command): Update.
5847 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5848
5849 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5852 member.
5853 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5854 dwarf2_per_cu_data::per_bfd.
5855 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5856 (create_type_unit_group): Likewise.
5857 (queue_comp_unit): Remove reference to
5858 per_cu->dwarf2_per_objfile.
5859 (maybe_queue_comp_unit): Likewise.
5860 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5861 (create_cus_hash_table): Assign new field.
5862
5863 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5864
5865 * dwarf2/read.c: Replace
5866 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5867 dwarf2_cu->per_objfile throughout.
5868
5869 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5870
5871 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5872 parameter, don't use per_cu->dwarf2_per_objfile.
5873 (dw2_instantiate_symtab): Likewise.
5874 (dw2_find_last_source_symtab): Update.
5875 (dw2_map_expand_apply): Update.
5876 (dw2_lookup_symbol): Update.
5877 (dw2_expand_symtabs_for_function): Update.
5878 (dw2_expand_all_symtabs): Update.
5879 (dw2_expand_symtabs_with_fullname): Update.
5880 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5881 don't use per_cu->dwarf2_per_objfile.
5882 (dw2_expand_marked_cus): Update.
5883 (dw2_find_pc_sect_compunit_symtab): Update.
5884 (dw2_debug_names_lookup_symbol): Update.
5885 (dw2_debug_names_expand_symtabs_for_function): Update.
5886 (dw2_debug_names_map_matching_symbols): Update.
5887 (dwarf2_psymtab::expand_psymtab): Update.
5888
5889 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5890
5891 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5892 <per_objfile>: New member.
5893 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5894 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5895 call to dwarf2_cu.
5896 (cutu_reader::cutu_reader): Update.
5897 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5898
5899 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5900
5901 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5902 struct dwarf2_per_objfile.
5903 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5904 dwarf2_per_bfd.
5905 * dwarf2/read.c (set_die_type): Update.
5906 (get_die_type_at_offset): Update.
5907
5908 2020-05-27 Tom Tromey <tom@tromey.com>
5909 Simon Marchi <simon.marchi@efficios.com>
5910
5911 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5912 method.
5913 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5914 get_symtab, set_symtab>: New methods.
5915 <m_symtabs>: New field.
5916 (struct dwarf2_psymtab): Derive from partial_symtab.
5917 <readin_p, get_compunit_symtab>: Declare methods.
5918 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5919 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5920 New methods.
5921 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5922 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5923 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5924 (dw2_symtab_iter_next, dw2_print_stats)
5925 (dw2_expand_symtabs_with_fullname)
5926 (dw2_expand_symtabs_matching_one)
5927 (dw_expand_symtabs_matching_file_matcher)
5928 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5929 (dw2_debug_names_iterator::next)
5930 (dw2_debug_names_map_matching_symbols)
5931 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5932 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5933 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5934 New methods.
5935 (get_compunit_symtab, process_full_comp_unit)
5936 (process_full_type_unit): Update.
5937 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5938
5939 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5942 then introduce a new dwarf2_per_objfile type.
5943 <read_line_string>: Move to the new dwarf2_per_objfile type.
5944 <objfile>: Likewise.
5945 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5946 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5947 dwarf2_per_objfile->per_bfd.
5948 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5949 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5950 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5951 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5952 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5953 (dwarf2_per_objfile::locate_sections): Rename to...
5954 (dwarf2_per_bfd::locate_sections): ... this.
5955 (dwarf2_per_objfile::get_cutu): Rename to...
5956 (dwarf2_per_bfd::get_cutu): ... this.
5957 (dwarf2_per_objfile::get_cu): Rename to...
5958 (dwarf2_per_bfd::get_cu): ... this.
5959 (dwarf2_per_objfile::get_tu): Rename to...
5960 (dwarf2_per_bfd::get_tu): ... this.
5961 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5962 (dwarf2_per_bfd::allocate_per_cu): ... this.
5963 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5964 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5965 (get_gdb_index_contents_ftype): Change parameter from
5966 dwarf2_per_objfile to dwarf2_per_bfd.
5967 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5968 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5969
5970 2020-05-27 Tom Tromey <tom@tromey.com>
5971 Simon Marchi <simon.marchi@efficios.com>
5972
5973 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5974 (allocate_piece_closure): Set "per_objfile" member.
5975 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5976 (locexpr_describe_location, loclist_describe_location): Use new
5977 member.
5978 * dwarf2/read.c (read_call_site_scope)
5979 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5980 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5981 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5982 handle_data_member_location): Set per_objfile member.
5983 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5984 member.
5985 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5986
5987 2020-05-27 Tom Tromey <tom@tromey.com>
5988
5989 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5990 allocate_signatured_type>: Declare new methods.
5991 <m_num_psymtabs>: New member.
5992 (struct dwarf2_per_cu_data) <index>: New member.
5993 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5994 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5995 (create_cu_from_index_list): Use allocate_per_cu.
5996 (create_signatured_type_table_from_index)
5997 (create_signatured_type_table_from_debug_names)
5998 (create_debug_type_hash_table, add_type_unit)
5999 (read_comp_units_from_section): Use allocate_signatured_type.
6000
6001 2020-05-27 Tom Tromey <tom@tromey.com>
6002
6003 * psymtab.c (partial_map_expand_apply)
6004 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6005 (psym_lookup_global_symbol_language)
6006 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6007 (psym_print_stats, psym_expand_symtabs_for_function)
6008 (psym_map_symbol_filenames, psym_map_matching_symbols)
6009 (psym_expand_symtabs_matching)
6010 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6011 (maintenance_check_psymtabs): Update.
6012 * psympriv.h (struct partial_symtab) <readin_p,
6013 get_compunit_symtab>: Add objfile parameter.
6014 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6015 Likewise.
6016 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6017 get_compunit_symtab>: Likewise.
6018 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6019
6020 2020-05-27 Tom Tromey <tom@tromey.com>
6021
6022 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6023 member.
6024 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6025 (create_cu_from_index_list)
6026 (create_signatured_type_table_from_index)
6027 (create_signatured_type_table_from_debug_names)
6028 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6029 (dwarf2_create_include_psymtab)
6030 (create_debug_type_hash_table, add_type_unit)
6031 (create_type_unit_group, read_comp_units_from_section)
6032 (dwarf2_compute_name, create_cus_hash_table)
6033 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6034 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6035 obstack.
6036 (dw2_get_real_path): Likewise. Change argument to
6037 dwarf2_per_objfile.
6038
6039 2020-05-27 Luis Machado <luis.machado@linaro.org>
6040
6041 PR tdep/26000
6042 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6043 for ldrd (immediate).
6044
6045 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6046
6047 * command.h: Add comment giving the name of class_tui.
6048 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6049 create the fake command for the help for class_tui.
6050
6051 2020-05-26 Tom Tromey <tromey@adacore.com>
6052
6053 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6054 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6055 (val_atr): New function.
6056 (value_val_atr): Use it.
6057 * ada-valprint.c (print_optional_low_bound): Change low bound
6058 handling for enums.
6059 (val_print_packed_array_elements): Don't call discrete_position.
6060 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6061 discrete_position for enum types.
6062 * language.c (default_print_array_index): Change type.
6063 * language.h (struct language_defn) <la_print_array_index>: Add
6064 index_type parameter, change type of index_value.
6065 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6066 (default_print_array_index): Update.
6067 * valprint.c (maybe_print_array_index): Don't call
6068 value_from_longest. Update.
6069 (value_print_array_elements): Don't call discrete_position.
6070
6071 2020-05-26 Tom Tromey <tromey@adacore.com>
6072
6073 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6074 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6075
6076 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6077
6078 PR gdb/13519
6079 * avr-tdep.c (avr_integer_to_address): Return data or code
6080 address accordingly to the second 'type' argument of the
6081 function.
6082
6083 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6084
6085 * infcmd.c, inferior.h: (construct_inferior_arguments):
6086 Moved function from here to gdbsupport/common-inferior.{h,cc}
6087
6088 2020-05-23 Tom Tromey <tom@tromey.com>
6089
6090 Revert commit eca1f90c:
6091 * NEWS: Remove entry for completion styling.
6092 * completer.c (_rl_completion_prefix_display_length): Move
6093 declaration later.
6094 (gdb_fnprint): Revert.
6095 (gdb_display_match_list_1): Likewise.
6096 * cli/cli-style.c (completion_prefix_style)
6097 (completion_difference_style, completion_suffix_style): Remove.
6098 (_initialize_cli_style): Revert.
6099 * cli/cli-style.h (completion_prefix_style)
6100 (completion_difference_style, completion_suffix_style): Don't
6101 declare.
6102
6103 2020-05-24 Pedro Alves <palves@redhat.com>
6104
6105 * symtab.c (completion_list_add_name): Return boolean indication
6106 of whether the symbol matched.
6107 (completion_list_add_symbol): Don't try to remove C++ aliases if
6108 the symbol didn't match in the first place.
6109 * symtab.h (completion_list_add_name): Return bool.
6110
6111 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6112
6113 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6114 type::field.
6115
6116 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6117
6118 GDB 9.2 released.
6119
6120 2020-05-23 Tom Tromey <tom@tromey.com>
6121
6122 * NEWS: Add entry for completion styling.
6123 * completer.c (_rl_completion_prefix_display_length): Move
6124 declaration earlier.
6125 (gdb_fnprint): Use completion_style.
6126 (gdb_display_match_list_1): Likewise.
6127 * cli/cli-style.c (completion_prefix_style)
6128 (completion_difference_style, completion_suffix_style): New
6129 globals.
6130 (_initialize_cli_style): Register new globals.
6131 * cli/cli-style.h (completion_prefix_style)
6132 (completion_difference_style, completion_suffix_style): Declare.
6133
6134 2020-05-23 Pedro Alves <palves@redhat.com>
6135
6136 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6137 (parse_escape): Use ISDIGIT instead of isdigit.
6138 (puts_debug): Use gdb_isprint instead of isprint.
6139 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6140 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6141 ISSPACE instead of isspace.
6142 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6143 instead of isspace.
6144 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6145 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6146 instead of isxdigit and ISDIGIT instead of isdigit.
6147
6148 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6149
6150 * gdbtypes.h (struct type) <field>: New method.
6151 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6152 or type::field.
6153
6154 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6157 (TYPE_FIELDS): Use type::fields. Change all call sites that
6158 modify the propery to use type::set_fields instead.
6159
6160 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6161
6162 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6163 type::num_fields instead.
6164
6165 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6168 methods.
6169 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6170 that modify the number of fields to use type::set_num_fields
6171 instead.
6172
6173 2020-05-22 Tom Tromey <tromey@adacore.com>
6174
6175 * compile/compile-object-load.h (munmap_list_free): Don't
6176 declare.
6177
6178 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6179
6180 * annotate.c (annotate_source_line): Update return type, add call
6181 to update current symtab and line.
6182 * annotate.h (annotate_source_line): Update return type, and
6183 extend header comment.
6184 * source.c (info_line_command): Check annotation_level before
6185 calling annotate_source_line.
6186 * stack.c (print_frame_info): If calling annotate_source_line
6187 returns true, then don't print any other source line information.
6188
6189 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6190
6191 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6192
6193 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * coffread.c (patch_type): Remove NULL check before xfree.
6196 * corefile.c (set_gnutarget): Likewise.
6197 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6198 * exec.c (build_section_table): Likewise.
6199 * remote.c (remote_target::pass_signals): Likewise.
6200 * utils.c (n_spaces): Likewise.
6201 * cli/cli-script.c (document_command): Likewise.
6202 * i386-windows-tdep.c (core_process_module_section): Likewise.
6203 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6204
6205 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * symfile.c (reread_symbols): Clear objfile's section_offsets
6208 vector and section indices, re-compute them by calling
6209 sym_offsets.
6210
6211 2020-05-20 Tom Tromey <tromey@adacore.com>
6212
6213 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6214 (desc_one_bound, desc_index_type): Compute field name.
6215
6216 2020-05-20 Tom de Vries <tdevries@suse.de>
6217
6218 PR symtab/25833
6219 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6220
6221 2020-05-20 Alan Modra <amodra@gmail.com>
6222
6223 PR 25993
6224 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6225 bfd_set_filename.
6226 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6227 passed to bfd_set_filename.
6228 * symfile-mem.c (add_vsyscall_page): Likewise for string
6229 passed to symbol_file_add_from_memory.
6230 (symbol_file_add_from_memory): Make name param a const char* and
6231 don't strdup.
6232
6233 2020-05-20 Alan Modra <amodra@gmail.com>
6234
6235 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6236 rather than accessing bfd->filename directly.
6237 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6238 and use bfd_section_name.
6239 * dwarf2/frame.c (decode_frame_entry): Likewise.
6240 * exec.c (exec_set_section_address): Likewise.
6241 * solib-aix.c (solib_aix_bfd_open): Likewise.
6242 * stap-probe.c (get_stap_base_address): Likewise.
6243 * symfile.c (reread_symbols): Likewise.
6244
6245 2020-05-19 Tom Tromey <tromey@adacore.com>
6246
6247 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6248
6249 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6250
6251 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6252
6253 2020-05-19 Pedro Alves <palves@redhat.com>
6254
6255 * NEWS (set exec-file-mismatch): Adjust entry.
6256 * exec.c: Include "build-id.h".
6257 (validate_exec_file): Try to match build IDs instead of filenames.
6258 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6259 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6260 and pass down 'warn_if_slow'.
6261 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6262 gdb_bfd_open_closure to pass it down.
6263 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6264
6265 2020-05-19 Pedro Alves <palves@redhat.com>
6266
6267 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6268 * target.c (target_fileio_open_1): Rename to target_fileio_open
6269 and make extern. Use bool.
6270 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6271 (target_fileio_read_alloc_1): Adjust.
6272 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6273 (target_fileio_open_warn_if_slow): Delete declaration.
6274
6275 2020-05-19 Pedro Alves <palves@redhat.com>
6276
6277 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6278 Adjust all callers.
6279
6280 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6281
6282 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6283 whether disp is negative.
6284
6285 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * symfile.h (struct symfile_segment_data)
6288 <~symfile_segment_data>: Remove.
6289 <segment_info>: Change to std::vector.
6290 * symfile.c (default_symfile_segments): Update.
6291 * elfread.c (elf_symfile_segments): Update.
6292
6293 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6296 <segments>: New.
6297 <segment_bases, segment_sizes>: Remove.
6298 * symfile.c (default_symfile_segments): Update.
6299 * elfread.c (elf_symfile_segments): Update.
6300 * remote.c (remote_target::get_offsets): Update.
6301 * solib-target.c (solib_target_relocate_section_addresses):
6302 Update.
6303
6304 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6305
6306 * symfile.h (struct symfile_segment_data): Initialize fields.
6307 <~symfile_segment_data>: Add.
6308 (symfile_segment_data_up): New.
6309 (struct sym_fns) <sym_segments>: Return a
6310 symfile_segment_data_up.
6311 (default_symfile_segments): Return a symfile_segment_data_up.
6312 (free_symfile_segment_data): Remove.
6313 (get_symfile_segment_data): Return a symfile_segment_data_up.
6314 * symfile.c (default_symfile_segments): Likewise.
6315 (get_symfile_segment_data): Likewise.
6316 (free_symfile_segment_data): Remove.
6317 (symfile_find_segment_sections): Update.
6318 * elfread.c (elf_symfile_segments): Return a
6319 symfile_segment_data_up.
6320 * remote.c (remote_target::get_offsets): Update.
6321 * solib-target.c (solib_target_relocate_section_addresses):
6322 Update.
6323 * symfile-debug.c (debug_sym_segments): Return a
6324 symfile_segment_data_up.
6325
6326 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6327
6328 PR build/25981
6329 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6330 Hardcode register numbers.
6331
6332 PR build/25981
6333 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6334 procfs_find_LDT_entry): Remove.
6335 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6336 procfs_find_LDT_entry): Remove.
6337 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6338 Remove.
6339
6340 2020-05-17 Pedro Alves <palves@redhat.com>
6341 Andrew Burgess <andrew.burgess@embecosm.com>
6342 Keno Fischer <keno@juliacomputing.com>
6343
6344 PR gdb/25741
6345 * breakpoint.c (build_target_condition_list): Update comments.
6346 (build_target_command_list): Update comments and skip matching
6347 locations.
6348 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6349 a separate function. Simplify "set breakpoint auto-hw off"
6350 handling.
6351 (insert_breakpoints): Update comment.
6352 (tracepoint_locations_match): New parameter. For breakpoints,
6353 compare location types too, if the caller wants to.
6354 (handle_automatic_hardware_breakpoints): New functions.
6355 (bp_location_is_less_than): Also sort by location type and
6356 hardware breakpoint length.
6357 (update_global_location_list): Handle "set breakpoint auto-hw on"
6358 here.
6359 (update_breakpoint_locations): Ask breakpoint_locations_match to
6360 ignore location types.
6361
6362 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6363
6364 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6365 type::name instead.
6366
6367 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * gdbtypes.h (struct type) <name, set_name>: New methods.
6370 (TYPE_CODE): Use type::name. Change all call sites used to set
6371 the name to use type::set_name instead.
6372
6373 2020-05-16 Tom Tromey <tom@tromey.com>
6374
6375 * top.c (quit_force): Update.
6376 * infrun.c (handle_no_resumed): Update.
6377 * top.h (all_uis): New function.
6378 (ALL_UIS): Remove.
6379
6380 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6381
6382 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6383
6384 2020-05-16 Pedro Alves <palves@redhat.com>
6385
6386 * ia64-linux-nat.c
6387 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6388 Declare method.
6389 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6390
6391 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6392
6393 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6394 (sparc64_adi_info): Likewise.
6395
6396 2020-05-15 Tom Tromey <tom@tromey.com>
6397
6398 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6399 block_objfile.
6400 (lookup_objfile_from_block): Remove.
6401 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6402 (lookup_global_symbol): Use block_objfile.
6403 * symtab.h (lookup_objfile_from_block): Don't declare.
6404 * printcmd.c (clear_dangling_display_expressions): Use
6405 block_objfile.
6406 * parse.c (operator_check_standard): Use block_objfile.
6407
6408 2020-05-15 Tom Tromey <tom@tromey.com>
6409
6410 * language.c (language_alloc_type_symbol): Set
6411 SYMBOL_SECTION.
6412 * symtab.c (initialize_objfile_symbol): Remove.
6413 (allocate_symbol): Remove.
6414 (allocate_template_symbol): Remove.
6415 * dwarf2/read.c (fixup_go_packaging): Use "new".
6416 (new_symbol): Use "new".
6417 (read_variable): Don't call initialize_objfile_symbol. Use
6418 "new".
6419 (read_func_scope): Use "new".
6420 * xcoffread.c (process_xcoff_symbol): Don't call
6421 initialize_objfile_symbol.
6422 (SYMBOL_DUP): Remove.
6423 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6424 "new".
6425 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6426 (allocate_template_symbol): Don't declare.
6427 (struct symbol): Add copy constructor. Change defaults.
6428 * jit.c (finalize_symtab): Use "new".
6429 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6430 Use "new".
6431 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6432 (common_block_end): Use "new".
6433 * mdebugread.c (parse_symbol): Use "new".
6434 (new_symbol): Likewise.
6435
6436 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6437
6438 * NEWS: Mention changes to help and apropos.
6439
6440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6441
6442 * command.h (enum command_class): Improve comments, document
6443 that class_alias is for user-defined aliases, give the class
6444 name for each class, remove unused class_xdb.
6445 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6446 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6447 by a precise class.
6448 * infcmd.c (_initialize_infcmd): Likewise.
6449 * reverse.c (_initialize_reverse): Likewise.
6450 * stack.c (_initialize_stack): Likewise.
6451 * symfile.c (_initialize_symfile): Likewise.
6452 * tracepoint.c (_initialize_tracepoint): Likewise.
6453
6454 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6455
6456 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6457 when their aliased command is traversed.
6458 (help_cmd): Add fput_command_names_styled call to
6459 output command name and aliases when command has an alias.
6460
6461 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6462
6463 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6464 * cli/cli-decode.c (help_cmd_list): Declare as static,
6465 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6466 a command together with the command.
6467 (fput_command_name_styled, fput_command_names_styled): New functions.
6468 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6469 fput_command_name_styled.
6470 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6471 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6472
6473 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6474
6475 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6476 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6477 * command.h (cmd_show_list): Likewise.
6478 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6479 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6480
6481 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6482
6483 * unittests/command-def-selftests.c (traverse_command_structure):
6484 Verify all commands of a list have the same prefix command and
6485 that only the top cmdlist commands have a null prefix.
6486
6487 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6488
6489 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6490 as prefix, not one of its aliases.
6491 (set_cmd_prefix): Remove.
6492 (do_add_cmd): Centralize the setting of the prefix of a command, when
6493 command is defined after its full chain of prefix commands.
6494 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6495 (add_setshow_cmd_full): Likewise.
6496 (update_prefix_field_of_prefixed_commands): New function.
6497 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6498 update_prefix_field_of_prefixed_commands.
6499 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6500 addresses of remote_set_cmdlist and remote_show_cmdlist given
6501 as argument, not the address of an argument.
6502 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6503 * gdb/remote.c (_initialize_remote): Likewise.
6504
6505 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6506
6507 * cli/cli-cmds.c (alias_command): Check for an existing alias
6508 using lookup_cmd_composition, as valid_command_p is too strict
6509 and forbids aliases that are the prefix of an existing alias
6510 or command.
6511 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6512 command is properly recognised as a valid command.
6513
6514 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6515
6516 * unittests/help-doc-selftests.c: Rename to
6517 unittests/command-def-selftests.c
6518 * unittests/command-def-selftests.c (help_doc_tests): Update some
6519 comments.
6520 (command_structure_tests, traverse_command_structure): New namespace
6521 and function.
6522 (command_structure_invariants_tests): New function.
6523 (_initialize_command_def_selftests) Renamed from
6524 _initialize_help_doc_selftests, register command_structure_invariants
6525 selftest.
6526
6527 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6528
6529 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6530 an alias of 'show'.
6531
6532 2020-05-15 Joel Brobecker <brobecker@adacore.com>
6533
6534 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6535 ada_is_fixed_point_type. Update all callers.
6536 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6537 all callers.
6538 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6539 Update all callers.
6540 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6541 print_fixed_point_type. Update all callers.
6542 * ada-valprint.c (ada_value_print_num): Replace call to
6543 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6544
6545 2020-05-14 Kevin Buettner <kevinb@redhat.com>
6546
6547 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6548 processors.
6549 (cpu_supports_bts): Add CV_AMD case.
6550
6551 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6552 Simon Marchi <simon.marchi@efficios.com>
6553
6554 * infrun.c (stop_all_threads): Collect multiple wait events at
6555 each pass.
6556
6557 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6560 type::code instead.
6561
6562 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * gdbtypes.h (struct type) <code, set_code>: New methods.
6565 (TYPE_CODE): Use type::code. Change all call sites used to set
6566 the code to use type::set_code instead.
6567
6568 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6569 Tom de Vries <tdevries@suse.de>
6570 Pedro Alves <palves@redhat.com>
6571
6572 PR threads/25478
6573 * infrun.c (stop_all_threads): Do NOT ignore
6574 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6575 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6576 received.
6577 (handle_no_resumed): Remove code handling a live inferior with no
6578 threads.
6579 * remote.c (has_single_non_exited_thread): New.
6580 (remote_target::update_thread_list): Do not delete a thread if is
6581 the last thread of the process.
6582 * thread.c (thread_select): Call delete_exited_threads instead of
6583 prune_threads.
6584
6585 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6586
6587 * infrun.c (stop_all_threads): Enable/disable thread events of all
6588 targets. Move a debug message denoting the end of the function
6589 into the SCOPED_EXIT block.
6590
6591 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6592
6593 * process-stratum-target.h: Include <set>.
6594 (all_non_exited_process_targets, switch_to_target_no_thread): New
6595 function declarations.
6596 * process-stratum-target.c (all_non_exited_process_targets)
6597 (switch_to_target_no_thread): New function implementations.
6598
6599 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6600
6601 * infrun.c (handle_inferior_event): Extract out a piece of code
6602 into...
6603 (mark_non_executing_threads): ...this new function.
6604
6605 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6606
6607 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6608 use.
6609
6610 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6611
6612 * regcache.c (regcache_read_pc_protected): New function
6613 implementation that returns 0 if the PC cannot read via
6614 'regcache_read_pc'.
6615 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6616 instead of 'regcache_read_pc'.
6617 (keep_going_pass_signal): Ditto.
6618
6619 2020-05-13 Tom Tromey <tromey@adacore.com>
6620
6621 * ada-lang.c (align_value): Remove.
6622 (ada_template_to_fixed_record_type_1): Use align_up.
6623
6624 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6625
6626 * async-event.c: Update the copyright year.
6627 * async-event.h: Update the copyright year.
6628
6629 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
6630
6631 * objfiles.h (is_addr_in_objfile,
6632 shared_objfile_contains_address_p): Return bool.
6633 * objfile.c (is_addr_in_objfile,
6634 shared_objfile_contains_address_p): Return bool.
6635
6636 2020-05-11 Tom Tromey <tromey@adacore.com>
6637
6638 * cli/cli-cmds.c (info_command): Restore.
6639 (_initialize_cli_cmds): Use add_prefix_command for "info".
6640 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6641
6642 2020-05-11 Tom Tromey <tromey@adacore.com>
6643
6644 * ada-lang.c (ada_value_primitive_field): Now public.
6645 * ada-lang.h (ada_value_primitive_field): Declare.
6646 * ada-valprint.c (print_field_values): Use
6647 ada_value_primitive_field for wrapper fields.
6648
6649 2020-05-11 Tom de Vries <tdevries@suse.de>
6650
6651 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6652 MODULE_DOMAIN.
6653
6654 2020-05-11 Tom de Vries <tdevries@suse.de>
6655
6656 PR symtab/25941
6657 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6658 with length 0, if not gdb-produced.
6659 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6660
6661 2020-05-09 Tom de Vries <tdevries@suse.de>
6662
6663 PR gdb/25955
6664 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6665 calculation.
6666
6667 2020-05-09 Tom Tromey <tom@tromey.com>
6668
6669 * top.c (server_command): Now bool.
6670 * top.h (server_command): Now bool.
6671
6672 2020-05-08 Tom Tromey <tromey@adacore.com>
6673
6674 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6675 already being processed.
6676
6677 2020-05-08 Tom Tromey <tom@tromey.com>
6678
6679 * printcmd.c (struct display) <next>: Remove.
6680 <display>: New constructor.
6681 <exp_string>: Now a std::string.
6682 <enabled_p>: Now a bool.
6683 (display_number): Move definition earlier.
6684 (displays): Rename from display_chain. Now a std::vector.
6685 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6686 (display_command): Update.
6687 (do_one_display, disable_display)
6688 (enable_disable_display_command, do_enable_disable_display):
6689 Update.
6690 (free_display): Remove.
6691 (clear_displays): Rewrite.
6692 (delete_display): Update.
6693 (map_display_numbers): Use function_view. Remove "data"
6694 parameter. Update.
6695 (do_delete_display): Remove.
6696 (undisplay_command): Update.
6697 (do_one_display, do_displays, disable_display)
6698 (info_display_command): Update.
6699 (do_enable_disable_display): Remove.
6700 (enable_disable_display_command)
6701 (clear_dangling_display_expressions): Update.
6702
6703 2020-05-08 Tom Tromey <tom@tromey.com>
6704
6705 * symtab.c (set_symbol_cache_size)
6706 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6707 (maintenance_print_symbol_cache_statistics): Update.
6708 * symmisc.c (print_symbol_bcache_statistics)
6709 (print_objfile_statistics, maintenance_print_objfiles)
6710 (maintenance_info_symtabs, maintenance_check_symtabs)
6711 (maintenance_expand_symtabs, maintenance_info_line_tables):
6712 Update.
6713 * symfile-debug.c (set_debug_symfile): Update.
6714 * source.c (forget_cached_source_info): Update.
6715 * python/python.c (gdbpy_progspaces): Update.
6716 * psymtab.c (maintenance_info_psymtabs): Update.
6717 * probe.c (parse_probes): Update.
6718 * linespec.c (iterate_over_all_matching_symtabs)
6719 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6720 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6721 * exec.c (exec_target::close): Update.
6722 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6723 * breakpoint.c (print_one_breakpoint_location)
6724 (create_longjmp_master_breakpoint)
6725 (create_std_terminate_master_breakpoint): Update.
6726 * progspace.c (program_spaces): Now a std::vector.
6727 (maybe_new_address_space): Update.
6728 (add_program_space): Remove.
6729 (program_space::program_space): Update.
6730 (remove_program_space): Update.
6731 (number_of_program_spaces): Remove.
6732 (print_program_space, update_address_spaces): Update.
6733 * progspace.h (program_spaces): Change type.
6734 (ALL_PSPACES): Remove.
6735 (number_of_program_spaces): Don't declare.
6736 (struct program_space) <next>: Remove.
6737
6738 2020-05-08 Tom Tromey <tom@tromey.com>
6739
6740 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6741 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6742 (enable_break): Update.
6743 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6744 (frv_fdpic_find_canonical_descriptor): Update.
6745 (frv_fetch_objfile_link_map): Update.
6746 * progspace.c (program_space::free_all_objfiles): Update.
6747 (program_space::solibs): New method.
6748 * progspace.h (struct program_space) <solibs>: New method.
6749 * solist.h (master_so_list): Don't declare.
6750 (ALL_SO_LIBS): Remove.
6751 * solib.h (so_list_head): Remove.
6752 (update_solib_list): Update comment.
6753 * solib.c (master_so_list): Remove.
6754 (solib_used, update_solib_list, solib_add)
6755 (info_sharedlibrary_command, clear_solib)
6756 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6757
6758 2020-05-08 Tom Tromey <tom@tromey.com>
6759
6760 * extension.c (extension_languages): Now a std::array.
6761 (ALL_EXTENSION_LANGUAGES): Remove.
6762 (get_ext_lang_defn, get_ext_lang_of_file)
6763 (eval_ext_lang_from_control_command): Update.
6764 (finish_ext_lang_initialization)
6765 (auto_load_ext_lang_scripts_for_objfile)
6766 (ext_lang_type_printers::ext_lang_type_printers)
6767 (apply_ext_lang_type_printers)
6768 (ext_lang_type_printers::~ext_lang_type_printers)
6769 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6770 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6771 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6772 (get_matching_xmethod_workers, ext_lang_colorize)
6773 (ext_lang_before_prompt): Update.
6774 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6775
6776 2020-05-08 Tom Tromey <tom@tromey.com>
6777
6778 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6779 overload.
6780 <swap_string, m_string>: Remove.
6781 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6782 Update.
6783 * stabsread.c (define_symbol, read_type): Update.
6784 * linespec.c (find_linespec_symbols): Update.
6785 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6786 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6787 * dbxread.c (read_dbx_symtab): Update.
6788 * cp-support.h (cp_canonicalize_string_full)
6789 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6790 Return unique_xmalloc_ptr.
6791 * cp-support.c (inspect_type): Update.
6792 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6793 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6794 Likewise.
6795 * c-typeprint.c (print_name_maybe_canonical): Update.
6796 * break-catch-throw.c (check_status_exception_catchpoint):
6797 Update.
6798
6799 2020-05-08 Tom de Vries <tdevries@suse.de>
6800
6801 * infrun.c (follow_fork): Copy current_line and current_symtab to
6802 child thread.
6803
6804 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6805
6806 * async-event.c (struct async_signal_handler, struct
6807 async_event_handler): Reformat, remove typedef.
6808
6809 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6810
6811 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6812 access thistype->main_type->dyn_prop_list directly.
6813
6814 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6815
6816 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6817 (remove_dyn_prop): Remove. Update all users to use
6818 type::remove_dyn_prop.
6819 * gdbtypes.c (remove_dyn_prop): Rename to...
6820 (type::remove_dyn_prop): ... this.
6821
6822 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6823
6824 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6825 (add_dyn_prop): Remove. Update all users to use
6826 type::add_dyn_prop.
6827 * gdbtypes.c (add_dyn_prop): Rename to...
6828 (type::add_dyn_prop): ... this.
6829
6830 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6831
6832 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6833 (get_dyn_prop): Remove. Update all users to use
6834 type::dyn_prop.
6835 * gdbtypes.c (get_dyn_prop): Rename to...
6836 (type::dyn_prop): ... this.
6837
6838 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6839
6840 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6841
6842 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6843
6844 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6845 instruction, skip it if it's there.
6846
6847 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6848
6849 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6850
6851 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6854 * gdbtypes.c (recursive_dump_type): Remove use of
6855 TYPE_INCOMPLETE.
6856
6857 2020-05-03 Tom Tromey <tom@tromey.com>
6858
6859 * breakpoint.c (catch_command, tcatch_command): Remove.
6860 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6861 add_show_prefix_cmd.
6862 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6863 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6864 Remove.
6865 (add_internal_problem_command): Use add_basic_prefix_cmd,
6866 add_show_prefix_cmd.
6867 * mips-tdep.c (set_mipsfpu_command): Remove.
6868 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6869 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6870 (_initialize_index_cache): Use add_basic_prefix_cmd.
6871 * memattr.c (dummy_cmd): Remove.
6872 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6873 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6874 (_initialize_tui_win): Use add_basic_prefix_cmd,
6875 add_show_prefix_cmd.
6876 * cli/cli-logging.c (set_logging_command): Remove.
6877 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6878 add_show_prefix_cmd.
6879 (show_logging_command): Remove.
6880 * target.c (target_command): Remove.
6881 (add_target): Use add_basic_prefix_cmd.
6882
6883 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6884
6885 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6886
6887 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6888
6889 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6890 info_command.
6891
6892 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6893
6894 * nbsd-nat.c (nbsd_enable_proc_events)
6895 (nbsd_nat_target::post_startup_inferior): Add.
6896 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6897 (nbsd_nat_target::update_thread_list): Rewrite.
6898 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6899 "PTRACE_LWP_CREATE".
6900 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6901
6902 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6903
6904 * stack.c (_initialize_stack): Remove duplicated creation
6905 of "frame" command and "f" alias.
6906
6907 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6908
6909 PR gdb/18706
6910 * gdbtypes.c (check_typedef): Calculate size of array of
6911 stubbed type.
6912
6913 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6914
6915 PR gdb/15559
6916 * i386-tdep.c (i386_push_dummy_call): Call
6917 i386_thiscall_push_dummy_call.
6918 (i386_thiscall_push_dummy_call): New function.
6919 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6920 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6921 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6922
6923 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6924
6925 * gdbarch.sh (do_read): Add shellcheck disable directive for
6926 warning SC2162.
6927
6928 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6931 "referenced but not assigned" warning.
6932
6933 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6934
6935 * gdbarch.sh: Remove code that sets fallbackdefault.
6936
6937 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6938
6939 * gdbarch.sh: Use shell operators && and || instead of
6940 -a and -o.
6941
6942 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6943
6944 * gdbarch.sh: Use $(...) instead of `...`.
6945
6946 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6947
6948 * gdbarch.sh: Use double quotes around variables.
6949
6950 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6951
6952 * gdbarch.sh: Use %s with printf, instead of variables in the
6953 format string.
6954
6955 2020-04-29 Tom Tromey <tromey@adacore.com>
6956
6957 PR ada/25875:
6958 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6959 type fields here.
6960 (read_enumeration_type): Call
6961 update_enumeration_type_from_children later. Update comments.
6962 (process_enumeration_scope): Don't create type fields.
6963
6964 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6965
6966 * nbsd-tdep.c: Include "xml-syscall.h".
6967 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6968
6969 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6970
6971 * nbsd-nat.c: Include "sys/wait.h".
6972 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6973 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6974 (nbsd_nat_target::remove_exec_catchpoint)
6975 (nbsd_nat_target::set_syscall_catchpoint): Add.
6976 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6977 (nbsd_nat_target::insert_exec_catchpoint)
6978 (nbsd_nat_target::remove_exec_catchpoint)
6979 (nbsd_nat_target::set_syscall_catchpoint): Add.
6980 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6981 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6982 `nbsd_get_syscall_number'.
6983
6984 2020-04-29 Tom Tromey <tom@tromey.com>
6985
6986 * stack.c (print_block_frame_labels): Remove.
6987
6988 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6989
6990 PR gdb/17320
6991 * ada-valprint.c (val_print_packed_array_elements): Move array
6992 end bracket to new line.
6993 (ada_val_print_string): Remove extra spaces before first array
6994 element.
6995 * c-valprint.c (c_value_print_array): Likewise.
6996 * m2-valprint.c (m2_print_array_contents): Likewise.
6997 (m2_value_print_inner): Likewise.
6998 * p-valprint.c (pascal_value_print_inner): Likewise.
6999 * valprint.c (generic_val_print_array): Likewise.
7000 (value_print_array_elements): Move first array element and array
7001 end bracket to new line.
7002
7003 2020-04-29 Tom de Vries <tdevries@suse.de>
7004
7005 PR symtab/25889
7006 * linespec.c (find_method): Fix ix calculation.
7007
7008 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7009
7010 * syscalls/update-netbsd.sh: New file.
7011 * syscalls/netbsd.xml: Regenerate.
7012 * data-directory/Makefile.in: Register `netbsd.xml' in
7013 `SYSCALLS_FILES'.
7014
7015 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * syscalls/update-freebsd.sh: Add double quotes.
7018
7019 2020-04-28 Tom Tromey <tom@tromey.com>
7020
7021 * NEWS: Update.
7022 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7023 (cmdpy_init): Allow class_tui.
7024
7025 2020-04-28 Mark Williams <mark@myosotissp.com>
7026
7027 PR gdb/24480
7028 * dwarf2read.c: Add missing assingments to list_in_scope when
7029 start_symtab was already called.
7030
7031 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7032
7033 PR gdb/25881
7034 * dwarf2/read.c (offset_map_type): Use
7035 gdb:hash_enum<sect_offset> as hash function.
7036
7037 2020-04-28 Tom de Vries <tdevries@suse.de>
7038
7039 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7040 with DW_AT_signature.
7041
7042 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7043
7044 * configure.ac: Remove check for fs_base/gs_base in
7045 user_regs_struct.
7046 * configure: Re-generate.
7047 * config.in: Re-generate.
7048 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7049 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7050 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7051
7052 2020-04-27 Luis Machado <luis.machado@linaro.org>
7053
7054 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7055 problematic inline frame unwinding situation.
7056 * frame.c (frame_id_computed_p): New function.
7057 * frame.h (frame_id_computed_p): New prototype.
7058
7059 2020-04-26 Tom Tromey <tom@tromey.com>
7060
7061 * command.h (enum command_class) <class_pseudo>: Remove.
7062
7063 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7064
7065 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7066 and whitespace.
7067
7068 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7069
7070 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7071 `PT_GET_PROCESS_STATE' block.
7072
7073 2020-04-24 Tom Tromey <tom@tromey.com>
7074
7075 * symtab.h (symbol_get_demangled_name): Don't declare.
7076 * symtab.c (symbol_get_demangled_name): Remove.
7077 (general_symbol_info::natural_name)
7078 (general_symbol_info::demangled_name): Update.
7079
7080 2020-04-24 Tom Tromey <tom@tromey.com>
7081
7082 PR rust/25025:
7083 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7084
7085 2020-04-24 Tom Tromey <tom@tromey.com>
7086
7087 PR symtab/12707:
7088 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7089 exists.
7090 (new_symbol): Likewise.
7091 * compile/compile-object-load.c (get_out_value_type): Use
7092 symbol_matches_search_name.
7093
7094 2020-04-24 Tom Tromey <tom@tromey.com>
7095
7096 * dwarf2/read.c (add_partial_symbol): Do not call
7097 compute_and_set_names.
7098
7099 2020-04-24 Tom Tromey <tom@tromey.com>
7100
7101 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7102 overload.
7103
7104 2020-04-24 Tom Tromey <tom@tromey.com>
7105
7106 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7107 (add_psymbol_to_list): New overload. Make old overload call new
7108 one.
7109 * psympriv.h (add_psymbol_to_list): New overload.
7110
7111 2020-04-24 Tom Tromey <tom@tromey.com>
7112
7113 * dwarf2/read.c (partial_die_info::read) <case
7114 DW_AT_linkage_name>: Use value_as_string.
7115 (dwarf2_string_attr): Use value_as_string.
7116 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7117 method.
7118 * dwarf2/attribute.c (attribute::value_as_string): New method.
7119
7120 2020-04-24 Tom Tromey <tom@tromey.com>
7121
7122 * symtab.c (general_symbol_info::natural_name)
7123 (general_symbol_info::demangled_name): Check for language_rust.
7124
7125 2020-04-24 Tom Tromey <tom@tromey.com>
7126
7127 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7128 (dwarf2_physname): ... from here.
7129 (partial_die_info::read): Add Rust "{" hack.
7130
7131 2020-04-24 Tom Tromey <tom@tromey.com>
7132
7133 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7134 method.
7135 (symbol_set_demangled_name): Don't declare.
7136 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7137 symbol_set_demangled_name.
7138 (general_symbol_info::set_language)
7139 (general_symbol_info::compute_and_set_names): Update.
7140 * minsyms.c (minimal_symbol_reader::install): Update.
7141 * dwarf2/read.c (new_symbol): Update.
7142
7143 2020-04-24 Tom Tromey <tromey@adacore.com>
7144
7145 PR python/23662:
7146 * python/py-type.c (convert_field): Handle
7147 FIELD_LOC_KIND_DWARF_BLOCK.
7148 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7149 (typy_get_dynamic): Nw function.
7150 (type_object_getset): Add "dynamic".
7151 * NEWS: Add entry.
7152
7153 2020-04-24 Tom Tromey <tromey@adacore.com>
7154
7155 * ada-typeprint.c (print_choices, print_variant_part)
7156 (print_record_field_types_dynamic): New functions.
7157 (print_record_field_types): Use print_record_field_types_dynamic.
7158
7159 2020-04-24 Tom Tromey <tromey@adacore.com>
7160
7161 * dwarf2/read.c (handle_data_member_location): New overload.
7162 (dwarf2_add_field): Use it.
7163 (decode_locdesc): Add "computed" parameter. Update comment.
7164 * gdbtypes.c (is_dynamic_type_internal): Also look for
7165 FIELD_LOC_KIND_DWARF_BLOCK.
7166 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7167 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7168 virtual base classes.
7169 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7170 FIELD_LOC_KIND_DWARF_BLOCK.
7171
7172 2020-04-24 Tom Tromey <tromey@adacore.com>
7173
7174 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7175 * gdbtypes.c (is_dynamic_type_internal): Check
7176 TYPE_HAS_DYNAMIC_LENGTH.
7177 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7178 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7179 New macros.
7180 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7181 constant.
7182
7183 2020-04-24 Tom Tromey <tromey@adacore.com>
7184
7185 * dwarf2/read.c (struct variant_field): Rewrite.
7186 (struct variant_part_builder): New.
7187 (struct nextfield): Remove "variant" field. Add "offset".
7188 (struct field_info): Add "current_variant_part" and
7189 "variant_parts".
7190 (alloc_discriminant_info): Remove.
7191 (alloc_rust_variant): New function.
7192 (quirk_rust_enum): Update.
7193 (dwarf2_add_field): Set "offset" member. Don't handle
7194 DW_TAG_variant_part.
7195 (offset_map_type): New typedef.
7196 (convert_variant_range, create_one_variant)
7197 (create_one_variant_part, create_variant_parts)
7198 (add_variant_property): New functions.
7199 (dwarf2_attach_fields_to_type): Call add_variant_property.
7200 (read_structure_type): Don't handle DW_TAG_variant_part.
7201 (handle_variant_part, handle_variant): New functions.
7202 (handle_struct_member_die): Use them.
7203 (process_structure_scope): Don't handle variant parts.
7204 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7205 (struct discriminant_info): Remove.
7206 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7207 (struct main_type) <flag_discriminated_union>: Remove.
7208 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7209 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7210 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7211 Update.
7212 * valops.c (value_union_variant): Remove.
7213 * value.h (value_union_variant): Don't declare.
7214
7215 2020-04-24 Tom Tromey <tromey@adacore.com>
7216
7217 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7218 (ada_value_primitive_packed_val): Update.
7219 * ada-valprint.c (ada_value_print_1): Update.
7220 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7221 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7222 just an address. Use evaluate_for_locexpr_baton.
7223 (dwarf2_evaluate_property): Update.
7224 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7225 array_view.
7226 * findvar.c (default_read_var_value): Update.
7227 * gdbtypes.c (compute_variant_fields_inner)
7228 (resolve_dynamic_type_internal): Update.
7229 (resolve_dynamic_type): Change type of valaddr parameter.
7230 * gdbtypes.h (resolve_dynamic_type): Update.
7231 * valarith.c (value_subscripted_rvalue): Update.
7232 * value.c (value_from_contents_and_address): Update.
7233
7234 2020-04-24 Tom Tromey <tromey@adacore.com>
7235
7236 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7237 "push_initial_value" parameter.
7238 (dwarf2_evaluate_property): Likewise.
7239 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7240
7241 2020-04-24 Tom Tromey <tromey@adacore.com>
7242
7243 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7244 (variant::matches, compute_variant_fields_recurse)
7245 (compute_variant_fields_inner, compute_variant_fields): New
7246 functions.
7247 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7248 Use resolved_type after type is made.
7249 (operator==): Add new cases.
7250 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7251 (struct discriminant_range, struct variant, struct variant_part):
7252 New.
7253 (union dynamic_prop_data) <variant_parts, original_type>: New
7254 members.
7255 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7256 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7257 constants.
7258 * value.c (unpack_bits_as_long): Now public.
7259 * value.h (unpack_bits_as_long): Declare.
7260
7261 2020-04-24 Tom Tromey <tromey@adacore.com>
7262
7263 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7264 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7265
7266 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7267
7268 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7269
7270 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7271
7272 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7273 (remove_fork_catchpoint, post_startup_inferior)
7274 (post_attach): Move...
7275 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7276 (remove_fork_catchpoint, post_startup_inferior)
7277 (post_attach): ...here.
7278 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7279 (remove_fork_catchpoint, post_startup_inferior)
7280 (post_attach): Move...
7281 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7282 (remove_fork_catchpoint, post_startup_inferior)
7283 (post_attach): ...here.
7284
7285 2020-04-24 Tom Tromey <tromey@adacore.com>
7286
7287 * nat/windows-nat.h (struct windows_thread_info)
7288 <pc_adjusted>: New member.
7289 * windows-nat.c (windows_fetch_one_register): Check
7290 pc_adjusted.
7291 (windows_nat_target::get_windows_debug_event)
7292 (windows_nat_target::wait): Set pc_adjusted.
7293
7294 2020-04-24 Tom de Vries <tdevries@suse.de>
7295
7296 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7297 Run gdb-add-index inside temp dir.
7298
7299 2020-04-23 Tom Tromey <tromey@adacore.com>
7300
7301 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7302 in loop.
7303
7304 2020-04-23 Luis Machado <luis.machado@linaro.org>
7305
7306 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7307 get_frame_register instead of gdbarch_unwind_pc.
7308
7309 2020-04-23 Tom de Vries <tdevries@suse.de>
7310
7311 * symtab.c (lookup_global_symbol): Prefer def over decl.
7312
7313 2020-04-23 Tom de Vries <tdevries@suse.de>
7314
7315 PR symtab/25807
7316 * block.c (best_symbol, better_symbol): Promote to external.
7317 * block.h (best_symbol, better_symbol): Declare.
7318 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7319 decl.
7320
7321 2020-04-23 Tom Tromey <tromey@adacore.com>
7322
7323 PR ada/25837:
7324 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7325 "const char *", not a "const std::string &".
7326 <name_and_matcher::operator==>: Update.
7327 * unittests/lookup_name_info-selftests.c: Change type of
7328 "result".
7329
7330 2020-04-23 Tom Tromey <tom@tromey.com>
7331
7332 * inferior.h (iterate_over_inferiors): Don't declare.
7333 * inferior.c (iterate_over_inferiors): Remove.
7334 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7335 Remove.
7336 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7337 use iterate_over_inferiors.
7338 (darwin_resume_inferior_it)
7339 (struct resume_inferior_threads_param)
7340 (darwin_resume_inferior_threads_it): Remove.
7341 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7342
7343 2020-04-23 Tom de Vries <tdevries@suse.de>
7344
7345 * blockframe.c (find_pc_partial_function): Use
7346 find_pc_sect_compunit_symtab rather than
7347 objfile->sf->qf->find_pc_sect_compunit_symtab.
7348
7349 2020-04-22 Tom de Vries <tdevries@suse.de>
7350
7351 PR symtab/25764
7352 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7353 in psymtabs.
7354
7355 2020-04-22 Tom de Vries <tdevries@suse.de>
7356
7357 PR symtab/25801
7358 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7359 symtabs.
7360
7361 2020-04-22 Tom de Vries <tdevries@suse.de>
7362
7363 PR symtab/25700
7364 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7365 CU if already created.
7366
7367 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7368
7369 * infrun.c (displaced_step_fixup): Switch to the event_thread
7370 before calling displaced_step_restore, not after.
7371
7372 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7373
7374 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7375 its inferior is not recorded by us.
7376 (record_btrace_target_open): Replace call to
7377 all_non_exited_threads () with call to current_inferior
7378 ()->non_exited_threads ().
7379 (record_btrace_target::stop_recording): Likewise.
7380 (record_btrace_target::close): Likewise.
7381 (record_btrace_target::wait): Likewise.
7382 (record_btrace_target::record_stop_replaying): Likewise.
7383
7384 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7385
7386 * btrace.c (btrace_enable): Throw an error on double enables and
7387 when enabling recording fails.
7388 (btrace_disable): Throw an error if the thread is not recorded.
7389
7390 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7391
7392 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7393 request if we do not have a thread_info.
7394
7395 2020-04-21 Tom de Vries <tdevries@suse.de>
7396
7397 PR gdb/25471
7398 * thread.c
7399 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7400 exception in get_frame_id.
7401
7402 2020-04-20 Tom Tromey <tromey@adacore.com>
7403
7404 * python/python.c (struct gdbpy_event): Mark move constructor as
7405 noexcept.
7406 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7407 constructor as noexcept.
7408 * completer.h (struct completion_result): Mark move constructor as
7409 noexcept.
7410 * completer.c (completion_result::completion_result): Use
7411 initialization style. Don't call reset_match_list.
7412
7413 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7414
7415 * MAINTAINERS (Write After Approval): Add myself.
7416
7417 2020-04-18 Tom Tromey <tom@tromey.com>
7418
7419 * windows-tdep.c (init_w32_command_list)
7420 (w32_prefix_command_valid): Restore.
7421 (_initialize_windows_tdep): Call init_w32_command_list.
7422
7423 2020-04-18 Tom Tromey <tom@tromey.com>
7424
7425 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7426 * value.c (value_fn_field): Update.
7427 * valops.c (find_function_in_inferior)
7428 (value_allocate_space_in_inferior): Update.
7429 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7430 Update.
7431 * tui/tui-source.c (tui_source_window::set_contents): Update.
7432 * symtab.c (lookup_global_or_static_symbol)
7433 (find_function_start_sal_1, skip_prologue_sal)
7434 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7435 * symmisc.c (dump_msymbols, dump_symtab_1)
7436 (maintenance_print_one_line_table): Update.
7437 * symfile.c (init_entry_point_info, section_is_mapped)
7438 (list_overlays_command, simple_read_overlay_table)
7439 (simple_overlay_update_1): Update.
7440 * stap-probe.c (handle_stap_probe): Update.
7441 * stabsread.c (dbx_init_float_type, define_symbol)
7442 (read_one_struct_field, read_enum_type, read_range_type): Update.
7443 * source.c (info_line_command): Update.
7444 * python/python.c (gdbpy_source_objfile_script)
7445 (gdbpy_execute_objfile_script): Update.
7446 * python/py-type.c (save_objfile_types): Update.
7447 * python/py-objfile.c (py_free_objfile): Update.
7448 * python/py-inferior.c (python_new_objfile): Update.
7449 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7450 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7451 (maintenance_check_psymtabs): Update.
7452 * printcmd.c (info_address_command): Update.
7453 * objfiles.h (struct objfile) <arch>: New method, from
7454 get_objfile_arch.
7455 (get_objfile_arch): Don't declare.
7456 * objfiles.c (get_objfile_arch): Remove.
7457 (filter_overlapping_sections): Update.
7458 * minsyms.c (msymbol_is_function): Update.
7459 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7460 (output_nondebug_symbol): Update.
7461 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7462 (mdebug_expand_psymtab): Update.
7463 * machoread.c (macho_add_oso_symfile): Update.
7464 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7465 Update.
7466 * linux-fork.c (checkpoint_command): Update.
7467 * linespec.c (convert_linespec_to_sals): Update.
7468 * jit.c (finalize_symtab): Update.
7469 * infrun.c (insert_exception_resume_from_probe): Update.
7470 * ia64-tdep.c (ia64_find_unwind_table): Update.
7471 * hppa-tdep.c (internalize_unwinds): Update.
7472 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7473 Update.
7474 * gcore.c (call_target_sbrk): Update.
7475 * elfread.c (record_minimal_symbol, elf_symtab_read)
7476 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7477 (elf_gnu_ifunc_resolve_by_got): Update.
7478 * dwarf2/read.c (create_addrmap_from_index)
7479 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7480 (read_debug_names_from_section)
7481 (process_psymtab_comp_unit_reader, add_partial_symbol)
7482 (add_partial_subprogram, process_full_comp_unit)
7483 (read_file_scope, read_func_scope, read_lexical_block_scope)
7484 (read_call_site_scope, dwarf2_ranges_read)
7485 (dwarf2_record_block_ranges, dwarf2_add_field)
7486 (mark_common_block_symbol_computed, read_tag_pointer_type)
7487 (read_tag_string_type, dwarf2_init_float_type)
7488 (dwarf2_init_complex_target_type, read_base_type)
7489 (partial_die_info::read, partial_die_info::read)
7490 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7491 (dwarf2_fetch_die_loc_sect_off): Update.
7492 * dwarf2/loc.c (dwarf2_find_location_expression)
7493 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7494 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7495 (dwarf2_loc_desc_get_symbol_read_needs)
7496 (locexpr_describe_location_piece, locexpr_describe_location_1)
7497 (loclist_describe_location): Update.
7498 * dwarf2/index-write.c (write_debug_names): Update.
7499 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7500 * dtrace-probe.c (dtrace_process_dof): Update.
7501 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7502 (process_one_symbol): Update.
7503 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7504 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7505 (coff_read_enum_type): Update.
7506 * cli/cli-cmds.c (edit_command, list_command): Update.
7507 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7508 * breakpoint.c (create_overlay_event_breakpoint)
7509 (create_longjmp_master_breakpoint)
7510 (create_std_terminate_master_breakpoint)
7511 (create_exception_master_breakpoint, get_sal_arch): Update.
7512 * block.c (block_gdbarch): Update.
7513 * annotate.c (annotate_source_line): Update.
7514
7515 2020-04-17 Tom Tromey <tromey@adacore.com>
7516
7517 * auto-load.c (show_auto_load_cmd): Remove.
7518 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7519 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7520 (maintenance_print_arc_command): Remove.
7521 * tui/tui-win.c (tui_command): Remove.
7522 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7523 * tui/tui-layout.c (tui_layout_command): Remove.
7524 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7525 * python/python.c (user_set_python, user_show_python): Remove.
7526 (_initialize_python): Use add_basic_prefix_cmd,
7527 add_show_prefix_cmd.
7528 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7529 (install_gdb_commands): Use add_basic_prefix_cmd,
7530 add_show_prefix_cmd.
7531 (info_guile_command): Remove.
7532 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7533 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7534 add_show_prefix_cmd.
7535 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7536 Remove do_set and do_show parameters.
7537 * cli/cli-style.c (set_style, show_style): Remove.
7538 (_initialize_cli_style): Use add_basic_prefix_cmd,
7539 add_show_prefix_cmd.
7540 (cli_style_option::add_setshow_commands): Remove do_set and
7541 do_show parameters.
7542 (cli_style_option::add_setshow_commands): Use
7543 add_basic_prefix_cmd, add_show_prefix_cmd.
7544 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7545 (set_style_name): Remove.
7546 * cli/cli-dump.c (dump_command, append_command): Remove.
7547 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7548 (tekhex_dump_command, binary_dump_command)
7549 (binary_append_command): Remove.
7550 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7551 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7552 (init_w32_command_list): Remove; move into ...
7553 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7554 * valprint.c (set_print, show_print, set_print_raw)
7555 (show_print_raw): Remove.
7556 (_initialize_valprint): Use add_basic_prefix_cmd,
7557 add_show_prefix_cmd.
7558 * typeprint.c (set_print_type, show_print_type): Remove.
7559 (_initialize_typeprint): Use add_basic_prefix_cmd,
7560 add_show_prefix_cmd.
7561 * record.c (set_record_command, show_record_command): Remove.
7562 (_initialize_record): Use add_basic_prefix_cmd,
7563 add_show_prefix_cmd.
7564 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7565 add_show_prefix_cmd.
7566 (info_command, show_command, set_debug, show_debug): Remove.
7567 * top.h (set_history, show_history): Don't declare.
7568 * top.c (set_history, show_history): Remove.
7569 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7570 (unset_tdesc_cmd): Remove.
7571 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7572 add_show_prefix_cmd.
7573 * symtab.c (info_module_command): Remove.
7574 (_initialize_symtab): Use add_basic_prefix_cmd.
7575 * symfile.c (overlay_command): Remove.
7576 (_initialize_symfile): Use add_basic_prefix_cmd.
7577 * sparc64-tdep.c (info_adi_command): Remove.
7578 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7579 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7580 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7581 add_show_prefix_cmd.
7582 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7583 (_initialize_serial): Use add_basic_prefix_cmd,
7584 add_show_prefix_cmd.
7585 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7586 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7587 add_show_prefix_cmd.
7588 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7589 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7590 add_show_prefix_cmd.
7591 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7592 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7593 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7594 add_show_prefix_cmd.
7595 * remote.c (remote_command, set_remote_cmd): Remove.
7596 (_initialize_remote): Use add_basic_prefix_cmd.
7597 * record-full.c (set_record_full_command)
7598 (show_record_full_command): Remove.
7599 (_initialize_record_full): Use add_basic_prefix_cmd,
7600 add_show_prefix_cmd.
7601 * record-btrace.c (cmd_set_record_btrace)
7602 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7603 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7604 (cmd_show_record_btrace_pt): Remove.
7605 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7606 add_show_prefix_cmd.
7607 * ravenscar-thread.c (set_ravenscar_command)
7608 (show_ravenscar_command): Remove.
7609 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7610 add_show_prefix_cmd.
7611 * mips-tdep.c (show_mips_command, set_mips_command)
7612 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7613 add_show_prefix_cmd.
7614 * maint.c (maintenance_command, maintenance_info_command)
7615 (maintenance_check_command, maintenance_print_command)
7616 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7617 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7618 add_show_prefix_cmd.
7619 (show_per_command_cmd): Remove.
7620 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7621 Remove.
7622 (maintenance_show_test_settings_cmd): Remove.
7623 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7624 add_show_prefix_cmd.
7625 * maint-test-options.c (maintenance_test_options_command):
7626 Remove.
7627 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7628 * macrocmd.c (macro_command): Remove
7629 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7630 * language.c (set_check, show_check): Remove.
7631 (_initialize_language): Use add_basic_prefix_cmd,
7632 add_show_prefix_cmd.
7633 * infcmd.c (unset_command): Remove.
7634 (_initialize_infcmd): Use add_basic_prefix_cmd.
7635 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7636 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7637 add_show_prefix_cmd.
7638 * go32-nat.c (go32_info_dos_command): Remove.
7639 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7640 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7641 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7642 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7643 (_initialize_frame): Use add_basic_prefix_cmd,
7644 add_show_prefix_cmd.
7645 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7646 (_initialize_dcache): Use add_basic_prefix_cmd,
7647 add_show_prefix_cmd.
7648 * cp-support.c (maint_cplus_command): Remove.
7649 (_initialize_cp_support): Use add_basic_prefix_cmd.
7650 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7651 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7652 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7653 add_basic_prefix_cmd, add_show_prefix_cmd.
7654 * breakpoint.c (save_command): Remove.
7655 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7656 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7657 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7658 add_show_prefix_cmd.
7659 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7660 (set_ada_command, show_ada_command): Remove.
7661 (_initialize_ada_language): Use add_basic_prefix_cmd,
7662 add_show_prefix_cmd.
7663 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7664
7665 2020-04-16 Kamil Rytarowski <n54@gmx.com>
7666
7667 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7668 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7669
7670 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7671
7672 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7673 warning messages.
7674
7675 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7676
7677 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7678 import table is not at beginning of .idata section.
7679
7680 2020-04-16 Pedro Alves <palves@redhat.com>
7681
7682 * inferior.c (delete_inferior): Use delete operator directly
7683 instead of delete_program_space.
7684 * progspace.c (add_program_space): New, factored out from
7685 program_space::program_space.
7686 (remove_program_space): New, factored out from
7687 delete_program_space.
7688 (program_space::program_space): Remove intro comment. Rewrite.
7689 (program_space::~program_space): Remove intro comment. Call
7690 remove_program_space.
7691 (delete_program_space): Delete.
7692 * progspace.h (program_space::program_space): Make explicit. Move
7693 intro comment here, adjusted.
7694 (program_space::~program_space): Move intro comment here,
7695 adjusted.
7696 (delete_program_space): Remove.
7697
7698 2020-04-16 Tom Tromey <tromey@adacore.com>
7699
7700 * windows-nat.c (windows_nat::handle_access_violation): New
7701 function.
7702 * nat/windows-nat.h (handle_access_violation): Declare.
7703 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7704 windows-nat.c. Call handle_access_violation.
7705
7706 2020-04-16 Tom de Vries <tdevries@suse.de>
7707
7708 PR symtab/25791
7709 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7710 CUs without psymtab.
7711
7712 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7713
7714 * python/python.c (do_start_initialization): Don't call
7715 PyEval_InitThreads for Python 3.9 and beyond.
7716
7717 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7718
7719 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7720 thread functions.
7721 (obsd_nat_target::wait): Likewise.
7722
7723 2020-04-15 Tom Tromey <tromey@adacore.com>
7724
7725 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7726 (DEBUG_EXCEPT): Use debug_printf.
7727
7728 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * completer.c (class completion_tracker::completion_hash_entry)
7731 <hash_name>: New member function.
7732 (completion_tracker::discard_completions): New callback to hash a
7733 completion_hash_entry, pass this to htab_create_alloc.
7734
7735 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7736
7737 * windows-nat.c (windows_make_so): Warn rather than stopping with
7738 an error if realpath() fails.
7739
7740 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7741
7742 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7743 (nbsd_nat_target::info_proc): Add do_status.
7744
7745 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7746 Tom de Vries <tdevries@suse.de>
7747
7748 PR symtab/25718
7749 * psympriv.h (struct partial_symtab::read_symtab)
7750 (struct partial_symtab::expand_psymtab)
7751 (struct partial_symtab::read_dependencies): Update comments.
7752 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7753 read_symtab for includer.
7754 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7755 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7756 (struct dwarf2_include_psymtab::m_readin): Remove.
7757 (struct dwarf2_include_psymtab::includer): New member function.
7758 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7759
7760 2020-04-14 Tom de Vries <tdevries@suse.de>
7761
7762 PR symtab/25720
7763 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7764 with NULL symbol_matcher and lookup_name.
7765 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7766 and lookup_name.
7767 * dwarf2/read.c (dw2_expand_symtabs_matching)
7768 (dw2_debug_names_expand_symtabs_matching): Same.
7769 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7770 Make lookup_name a pointer. Update comment.
7771 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7772 lookup_name being a pointer.
7773 * symfile.c (expand_symtabs_matching): Same.
7774 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7775 * linespec.c (iterate_over_all_matching_symtabs): Same.
7776
7777 2020-04-13 Tom Tromey <tom@tromey.com>
7778
7779 * run-on-main-thread.c: Update include.
7780 * unittests/main-thread-selftests.c: Update include.
7781 * tui/tui-win.c: Update include.
7782 * tui/tui-io.c: Update include.
7783 * tui/tui-interp.c: Update include.
7784 * tui/tui-hooks.c: Update include.
7785 * top.h: Update include.
7786 * top.c: Update include.
7787 * ser-base.c: Update include.
7788 * remote.c: Update include.
7789 * remote-notif.c: Update include.
7790 * remote-fileio.c: Update include.
7791 * record-full.c: Update include.
7792 * record-btrace.c: Update include.
7793 * python/python.c: Update include.
7794 * posix-hdep.c: Update include.
7795 * mingw-hdep.c: Update include.
7796 * mi/mi-main.c: Update include.
7797 * mi/mi-interp.c: Update include.
7798 * main.c: Update include.
7799 * linux-nat.c: Update include.
7800 * interps.c: Update include.
7801 * infrun.c: Update include.
7802 * inf-loop.c: Update include.
7803 * event-top.c: Update include.
7804 * event-loop.c: Move to ../gdbsupport/.
7805 * event-loop.h: Move to ../gdbsupport/.
7806 * async-event.h: Update include.
7807 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7808
7809 2020-04-13 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-win.c: Include async-event.h.
7812 * remote.c: Include async-event.h.
7813 * remote-notif.c: Include async-event.h.
7814 * record-full.c: Include async-event.h.
7815 * record-btrace.c: Include async-event.h.
7816 * infrun.c: Include async-event.h.
7817 * event-top.c: Include async-event.h.
7818 * event-loop.h: Move some declarations to async-event.h.
7819 * event-loop.c: Don't include ser-event.h or top.h. Move some
7820 code to async-event.c.
7821 * async-event.h: New file.
7822 * async-event.c: New file.
7823 * Makefile.in (COMMON_SFILES): Add async-event.c.
7824 (HFILES_NO_SRCDIR): Add async-event.h.
7825
7826 2020-04-13 Tom Tromey <tom@tromey.com>
7827
7828 * utils.c (flush_streams): New function.
7829 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7830
7831 2020-04-13 Tom Tromey <tom@tromey.com>
7832
7833 * event-loop.c (handle_file_event): Use warning, not
7834 printf_unfiltered.
7835
7836 2020-04-13 Tom Tromey <tom@tromey.com>
7837
7838 * event-loop.c: Include <chrono>.
7839
7840 2020-04-13 Tom Tromey <tom@tromey.com>
7841
7842 * gdb_select.h: Move to ../gdbsupport/.
7843 * event-loop.c: Update include path.
7844 * top.c: Update include path.
7845 * ser-base.c: Update include path.
7846 * ui-file.c: Update include path.
7847 * ser-tcp.c: Update include path.
7848 * guile/scm-ports.c: Update include path.
7849 * posix-hdep.c: Update include path.
7850 * ser-unix.c: Update include path.
7851 * gdb_usleep.c: Update include path.
7852 * mingw-hdep.c: Update include path.
7853 * inflow.c: Update include path.
7854 * infrun.c: Update include path.
7855 * event-top.c: Update include path.
7856
7857 2020-04-13 Tom Tromey <tom@tromey.com>
7858
7859 * configure: Rebuild.
7860 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7861
7862 2020-04-13 Tom Tromey <tom@tromey.com>
7863
7864 * event-loop.h (start_event_loop): Don't declare.
7865 * event-loop.c (start_event_loop): Move...
7866 * main.c (start_event_loop): ...here. Now static.
7867
7868 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7869
7870 * MAINTAINERS: Update my email address.
7871
7872 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7873
7874 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7875 IP_ALL.
7876
7877 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7878
7879 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7880 (nbsd_nat_target::info_proc): Add do_cmdline.
7881
7882 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7883
7884 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7885 (nbsd_nat_target::info_proc): Add do_cwd.
7886
7887 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7888
7889 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7890
7891 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7892
7893 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7894 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7895 (nbsd_nat_target::info_proc): New functions.
7896 * nbsd-nat.c (kinfo_get_vmmap): New function.
7897 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7898 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7899 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7900 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7901 functions.
7902 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7903 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7904 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7905 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7906 (KINFO_VME_FLAG_GROWS_DOWN): New.
7907
7908 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7909
7910 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7911 bit shift.
7912
7913 2020-04-10 Tom Tromey <tromey@adacore.com>
7914
7915 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7916
7917 2020-04-10 Tom Tromey <tromey@adacore.com>
7918
7919 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7920 separate debug files.
7921
7922 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7923
7924 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7925 Move to...
7926 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7927 ... here.
7928 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7929 Check for STATUS_WX86_BREAKPOINT.
7930 (windows_nat_target::wait): Same.
7931
7932 2020-04-10 Tom de Vries <tdevries@suse.de>
7933
7934 PR cli/25808
7935 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7936
7937 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7938
7939 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7940 (Write After Approval): Remove Tom de Vries.
7941
7942 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7943
7944 revert partially:
7945 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7946
7947 * buildsym.c (record_line): Fix undefined behavior and preserve
7948 lines at eof.
7949
7950 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7951
7952 * auxv.h (svr4_auxv_parse): New.
7953 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7954 and generic_auxv_parse.
7955 (svr4_auxv_parse): Add.
7956 * obsd-tdep.c: Include "auxv.h".
7957 (obsd_auxv_parse): Remove.
7958 (obsd_init_abi): Remove comment.
7959 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7960 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7961 * nbsd-tdep.c: Include "auxv.h".
7962 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7963
7964 2020-04-08 Tom Tromey <tromey@adacore.com>
7965
7966 * nat/windows-nat.h (last_wait_event): Don't declare.
7967 (wait_for_debug_event): Update comment.
7968 * nat/windows-nat.c (last_wait_event): Now static.
7969
7970 2020-04-08 Tom Tromey <tromey@adacore.com>
7971
7972 * windows-nat.c (wait_for_debug_event): Move to
7973 nat/windows-nat.c.
7974 * nat/windows-nat.h (wait_for_debug_event): Declare.
7975 * nat/windows-nat.c (wait_for_debug_event): Move from
7976 windows-nat.c. No longer static.
7977
7978 2020-04-08 Tom Tromey <tromey@adacore.com>
7979
7980 * windows-nat.c (get_windows_debug_event): Use
7981 fetch_pending_stop.
7982 * nat/windows-nat.h (fetch_pending_stop): Declare.
7983 * nat/windows-nat.c (fetch_pending_stop): New function.
7984
7985 2020-04-08 Tom Tromey <tromey@adacore.com>
7986
7987 * windows-nat.c (windows_continue): Use matching_pending_stop and
7988 continue_last_debug_event.
7989 * nat/windows-nat.h (matching_pending_stop)
7990 (continue_last_debug_event): Declare.
7991 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7992 (matching_pending_stop, continue_last_debug_event): New
7993 functions.
7994
7995 2020-04-08 Tom Tromey <tromey@adacore.com>
7996
7997 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7998 (handle_exception_result): Move to nat/windows-nat.h.
7999 (DEBUG_EXCEPTION_SIMPLE): Remove.
8000 (windows_nat::handle_ms_vc_exception): New function.
8001 (handle_exception): Move to nat/windows-nat.c.
8002 (get_windows_debug_event): Update.
8003 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8004 nat/windows-nat.c.
8005 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8006 (handle_exception_result): Move from windows-nat.c.
8007 (handle_exception): Declare.
8008 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8009 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8010 windows-nat.c.
8011
8012 2020-04-08 Tom Tromey <tromey@adacore.com>
8013
8014 * windows-nat.c (exception_count, event_count): Remove.
8015 (handle_exception, get_windows_debug_event)
8016 (do_initial_windows_stuff): Update.
8017
8018 2020-04-08 Tom Tromey <tromey@adacore.com>
8019
8020 * windows-nat.c (windows_nat::handle_load_dll)
8021 (windows_nat::handle_unload_dll): Rename. No longer static.
8022 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8023 Declare.
8024
8025 2020-04-08 Tom Tromey <tromey@adacore.com>
8026
8027 * complaints.h (stop_whining): Declare at top-level.
8028 (complaint): Don't declare stop_whining.
8029
8030 2020-04-08 Tom Tromey <tromey@adacore.com>
8031
8032 * windows-nat.c (windows_nat::handle_output_debug_string):
8033 Rename. No longer static.
8034 * nat/windows-nat.h (handle_output_debug_string): Declare.
8035
8036 2020-04-08 Tom Tromey <tromey@adacore.com>
8037
8038 * windows-nat.c (current_process_handle, current_process_id)
8039 (main_thread_id, last_sig, current_event, last_wait_event)
8040 (current_windows_thread, desired_stop_thread_id, pending_stops)
8041 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8042 (display_selectors, fake_create_process)
8043 (get_windows_debug_event): Update.
8044 * nat/windows-nat.h (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 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8048 * nat/windows-nat.c (current_process_handle, current_process_id)
8049 (main_thread_id, last_sig, current_event, last_wait_event)
8050 (current_windows_thread, desired_stop_thread_id, pending_stops)
8051 (siginfo_er): New globals. Move from windows-nat.c.
8052
8053 2020-04-08 Tom Tromey <tromey@adacore.com>
8054
8055 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8056 (handle_load_dll): Update.
8057 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8058
8059 2020-04-08 Tom Tromey <tromey@adacore.com>
8060
8061 * windows-nat.c (enum thread_disposition_type): Move to
8062 nat/windows-nat.h.
8063 (windows_nat::thread_rec): Rename from thread_rec. No longer
8064 static.
8065 (windows_add_thread, windows_nat_target::fetch_registers)
8066 (windows_nat_target::store_registers, handle_exception)
8067 (windows_nat_target::resume, get_windows_debug_event)
8068 (windows_nat_target::get_tib_address)
8069 (windows_nat_target::thread_name)
8070 (windows_nat_target::thread_alive): Update.
8071 * nat/windows-nat.h (enum thread_disposition_type): Move from
8072 windows-nat.c.
8073 (thread_rec): Declare.
8074
8075 2020-04-08 Tom Tromey <tromey@adacore.com>
8076
8077 * windows-nat.c: Add "using namespace".
8078 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8079 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8080
8081 2020-04-08 Tom Tromey <tromey@adacore.com>
8082
8083 * nat/windows-nat.h (struct windows_thread_info): Declare
8084 destructor.
8085 * nat/windows-nat.c (~windows_thread_info): New.
8086
8087 2020-04-08 Tom Tromey <tromey@adacore.com>
8088
8089 PR gdb/22992
8090 * windows-nat.c (current_event): Update comment.
8091 (last_wait_event, desired_stop_thread_id): New globals.
8092 (struct pending_stop): New.
8093 (pending_stops): New global.
8094 (windows_nat_target) <stopped_by_sw_breakpoint>
8095 <supports_stopped_by_sw_breakpoint>: New methods.
8096 (windows_fetch_one_register): Add assertions. Adjust PC.
8097 (windows_continue): Handle pending stops. Suspend other threads
8098 when stepping. Use last_wait_event
8099 (wait_for_debug_event): New function.
8100 (get_windows_debug_event): Use wait_for_debug_event. Handle
8101 pending stops. Queue spurious stops.
8102 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8103 (windows_nat_target::kill): Use wait_for_debug_event.
8104 * nat/windows-nat.h (struct windows_thread_info)
8105 <stopped_at_software_breakpoint>: New field.
8106 * nat/windows-nat.c (windows_thread_info::resume): Clear
8107 stopped_at_software_breakpoint.
8108
8109 2020-04-08 Tom Tromey <tromey@adacore.com>
8110
8111 * windows-nat.c (enum thread_disposition_type): New.
8112 (thread_rec): Replace "get_context" parameter with "disposition";
8113 change type.
8114 (windows_add_thread, windows_nat_target::fetch_registers)
8115 (windows_nat_target::store_registers, handle_exception)
8116 (windows_nat_target::resume, get_windows_debug_event)
8117 (windows_nat_target::get_tib_address)
8118 (windows_nat_target::thread_name)
8119 (windows_nat_target::thread_alive): Update.
8120
8121 2020-04-08 Tom Tromey <tromey@adacore.com>
8122
8123 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8124 (windows_continue): Use windows_continue::resume.
8125 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8126 resume>: Declare new methods.
8127 * nat/windows-nat.c: New file.
8128 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8129
8130 2020-04-08 Tom Tromey <tromey@adacore.com>
8131
8132 * windows-nat.c (windows_add_thread, windows_delete_thread)
8133 (windows_nat_target::fetch_registers)
8134 (windows_nat_target::store_registers, fake_create_process)
8135 (windows_nat_target::resume, windows_nat_target::resume)
8136 (get_windows_debug_event, windows_nat_target::wait)
8137 (windows_nat_target::pid_to_str)
8138 (windows_nat_target::get_tib_address)
8139 (windows_nat_target::get_ada_task_ptid)
8140 (windows_nat_target::thread_name)
8141 (windows_nat_target::thread_alive): Use lwp, not tid.
8142
8143 2020-04-08 Tom Tromey <tromey@adacore.com>
8144
8145 * windows-nat.c (handle_exception)
8146 (windows_nat_target::thread_name): Update.
8147 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8148 <name>: Now unique_xmalloc_ptr.
8149
8150 2020-04-08 Tom Tromey <tromey@adacore.com>
8151
8152 * windows-nat.c (thread_rec)
8153 (windows_nat_target::fetch_registers): Update.
8154 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8155 Update comment.
8156 <debug_registers_changed, reload_context>: Now bool.
8157
8158 2020-04-08 Tom Tromey <tromey@adacore.com>
8159
8160 * windows-nat.c (windows_add_thread): Use new.
8161 (windows_init_thread_list, windows_delete_thread): Use delete.
8162 (get_windows_debug_event): Update.
8163 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8164 destructor, and initializers.
8165
8166 2020-04-08 Tom Tromey <tromey@adacore.com>
8167
8168 * windows-nat.c (struct windows_thread_info): Remove.
8169 * nat/windows-nat.h: New file.
8170
8171 2020-04-08 Tom Tromey <tromey@adacore.com>
8172
8173 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8174 (thread_rec, windows_add_thread, windows_delete_thread)
8175 (windows_continue): Update.
8176
8177 2020-04-08 Tom Tromey <tromey@adacore.com>
8178
8179 * windows-nat.c (struct windows_thread_info): Remove typedef.
8180 (thread_head): Remove.
8181 (thread_list): New global.
8182 (thread_rec, windows_add_thread, windows_init_thread_list)
8183 (windows_delete_thread, windows_continue): Update.
8184
8185 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8186
8187 * windows-tdep.h (windows_init_abi): Add comment.
8188 (cygwin_init_abi): New declaration.
8189 * windows-tdep.c: Split signal enumeration in two, one for
8190 Windows and one for Cygwin.
8191 (windows_gdb_signal_to_target): Only deal with signal of the
8192 Windows OS ABI.
8193 (cygwin_gdb_signal_to_target): New function.
8194 (windows_init_abi): Rename to windows_init_abi_common, don't set
8195 gdb_signal_to_target gdbarch method. Add new new function with
8196 this name.
8197 (cygwin_init_abi): New function.
8198 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8199 comment. Don't call windows_init_abi.
8200 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8201 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8202 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8203 i386_windows_init_abi_common, don't call windows_init_abi. Add
8204 a new function of this name.
8205 (i386_cygwin_init_abi): New function.
8206 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8207 OS ABI Cygwin.
8208
8209 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8210
8211 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8212 parameter.c.
8213 (dwarf2_read_gdb_index): Update.
8214
8215 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8216
8217 * nbsd-tdep.c: Include "objfiles.h".
8218 (nbsd_skip_solib_resolver): New.
8219 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8220
8221 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8222
8223 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8224 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8225 with DW_LLE_base_addressx are being emitted in DWARFv5.
8226 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8227 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8228 unsigned integer.
8229
8230 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8231
8232 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8233 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8234 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8235 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8236 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8237 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8238 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8239
8240
8241 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8242
8243 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8244 (read_loclist_index): New function definition.
8245 (lookup_loclist_base): New function definition.
8246 (read_loclist_header): New function definition.
8247 (dwarf2_cu): Add loclist_base and loclist_header field.
8248 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8249 (read_full_die_1): Read the value of DW_AT_loclists_base.
8250 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8251 (read_attribute_value): Handle DW_FORM_loclistx.
8252 (skip_one_die): Handle DW_FORM_loclistx.
8253 (loclist_header): New structure declaration.
8254 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8255
8256 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8257
8258 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8259 constructor. Remove `addr` parameter from other constructor and
8260 add `per_cu` parameter.
8261 * dwarf2/read.c (create_partial_symtab): Update.
8262
8263 2020-04-07 Tom de Vries <tdevries@suse.de>
8264
8265 PR symtab/25796
8266 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8267 (partial_die_info::fixup): Inherit has_const_value.
8268
8269 2020-04-07 Tom de Vries <tdevries@suse.de>
8270
8271 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8272 symbols without address.
8273
8274 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8275
8276 * nbsd-nat.h (struct thread_info): Add forward declaration.
8277 (nbsd_nat_target::thread_alive): Add.
8278 (nbsd_nat_target::thread_name): Likewise.
8279 (nbsd_nat_target::update_thread_list): Likewise.
8280 (update_thread_list::post_attach): Likewise.
8281 (post_attach::pid_to_str): Likewise.
8282 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8283 (nbsd_thread_lister): Add.
8284 (nbsd_nat_target::thread_alive): Likewise.
8285 (nbsd_nat_target::thread_name): Likewise.
8286 (nbsd_add_threads): Likewise.
8287 (update_thread_list::post_attach): Likewise.
8288 (nbsd_nat_target::update_thread_list): Likewise.
8289 (post_attach::pid_to_str): Likewise.
8290
8291 2020-04-06 Tom Tromey <tromey@adacore.com>
8292
8293 * ada-valprint.c (print_variant_part): Extract the variant field.
8294 (print_field_values): Use the field as the outer value when
8295 recursing.
8296
8297 2020-04-06 Tom Tromey <tromey@adacore.com>
8298
8299 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8300 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8301 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8302 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8303 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8304
8305 2020-04-06 Tom Tromey <tromey@adacore.com>
8306
8307 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8308 TYPE_CODE_ERROR.
8309
8310 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8311
8312 * nbsd-tdep.c: Include "gdbarch.h".
8313 Define enum with NetBSD signal numbers.
8314 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8315 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8316 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8317 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8318 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8319 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8320 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8321 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8322 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8323 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8324 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8325 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8326
8327 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8328
8329 PR gdb/25325
8330 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8331
8332 2020-04-03 Tom Tromey <tromey@adacore.com>
8333
8334 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8335 Read constant block.
8336
8337 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8340 (gdb_bfd_get_full_section_contents): New declaration.
8341 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8342 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8343 gdb_bfd_get_full_section_contents.
8344
8345 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8346
8347 * exec.c (build_section_table): Replace internal_error with
8348 gdb_assert.
8349 (section_table_xfer_memory_partial): Likewise.
8350 * mdebugread.c (parse_partial_symbols): Likewise.
8351 * psymtab.c (lookup_partial_symbol): Likewise.
8352 * utils.c (wrap_here): Likewise.
8353
8354 2020-04-02 Tom Tromey <tromey@adacore.com>
8355
8356 * f-lang.c (build_fortran_types): Use arch_type to initialize
8357 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8358
8359 2020-04-02 Tom Tromey <tromey@adacore.com>
8360
8361 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8362 of attributes.
8363
8364 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8365 Bernd Edlinger <bernd.edlinger@hotmail.de>
8366 Tom Tromey <tromey@adacore.com>
8367
8368 * buildsym.c (buildsym_compunit::record_line): Remove
8369 deduplication code.
8370
8371 2020-04-02 Tom de Vries <tdevries@suse.de>
8372
8373 PR ada/24671
8374 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8375
8376 2020-04-02 Tom de Vries <tdevries@suse.de>
8377
8378 * dwarf2/read.c (dwarf2_gdb_index_functions,
8379 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8380 NULL.
8381 * psymtab.c (psym_lookup_global_symbol_language): New function.
8382 (psym_functions): Init psym_lookup_global_symbol_language with
8383 psym_lookup_global_symbol_language.
8384 * symfile-debug.c (debug_sym_quick_functions): Init
8385 lookup_global_symbol_language with NULL.
8386 * symfile.c (set_initial_language): Remove fixme comment.
8387 * symfile.h (struct quick_symbol_functions): Add
8388 lookup_global_symbol_language.
8389 * symtab.c (find_quick_global_symbol_language): New function.
8390 (find_main_name): Use find_quick_global_symbol_language.
8391
8392 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8393
8394 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8395
8396 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8397
8398 * buildsym.c (record_line): Fix undefined behavior and preserve
8399 lines at eof.
8400
8401 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8402
8403 * buildsym.c (record_line): Fix the resizing condition.
8404
8405 2020-04-01 Tom Tromey <tom@tromey.com>
8406
8407 * value.h (value_literal_complex): Add comment.
8408 * valops.c (value_literal_complex): Refer to value.h.
8409
8410 2020-04-01 Tom Tromey <tom@tromey.com>
8411
8412 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8413 (scalar_type): New rule, from typebase.
8414 (typebase): Use scalar_type. Recognize complex types.
8415 (field_name): Handle FLOAT_KEYWORD.
8416 (ident_tokens): Add _Complex and __complex__.
8417
8418 2020-04-01 Tom Tromey <tom@tromey.com>
8419
8420 PR exp/25299:
8421 * valarith.c (promotion_type, complex_binop): New functions.
8422 (scalar_binop): Handle complex numbers. Use promotion_type.
8423 (value_pos, value_neg, value_complement): Handle complex numbers.
8424
8425 2020-04-01 Tom Tromey <tom@tromey.com>
8426
8427 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8428 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8429 (parse_number): Handle complex numbers.
8430
8431 2020-04-01 Tom Tromey <tom@tromey.com>
8432
8433 * c-valprint.c (c_decorations): Change complex suffix to "i".
8434
8435 2020-04-01 Tom Tromey <tom@tromey.com>
8436
8437 * valprint.c (generic_value_print_complex): Use accessors.
8438 * value.h (value_real_part, value_imaginary_part): Declare.
8439 * valops.c (value_real_part, value_imaginary_part): New
8440 functions.
8441 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8442
8443 2020-04-01 Tom Tromey <tom@tromey.com>
8444
8445 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8446 (read_range_type): Update.
8447 * mdebugread.c (basic_type): Update.
8448 * go-lang.c (build_go_types): Use init_complex_type.
8449 * gdbtypes.h (struct main_type) <complex_type>: New member.
8450 (init_complex_type): Update.
8451 (arch_complex_type): Don't declare.
8452 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8453 Make name if none given. Use alloc_type_copy. Look for cached
8454 complex type.
8455 (arch_complex_type): Remove.
8456 (gdbtypes_post_init): Use init_complex_type.
8457 * f-lang.c (build_fortran_types): Use init_complex_type.
8458 * dwarf2/read.c (read_base_type): Update.
8459 * d-lang.c (build_d_types): Use init_complex_type.
8460 * ctfread.c (read_base_type): Update.
8461
8462 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8463
8464 * infrun.c (stop_all_threads): Update assertion, plus when
8465 stopping threads, take into account that we might be trying
8466 to stop an all-stop target.
8467 (stop_waiting): Call 'stop_all_threads' if there exists a
8468 non-stop target.
8469
8470 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8471
8472 * target.h (exists_non_stop_target): New function declaration.
8473 * target.c (exists_non_stop_target): New function.
8474
8475 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8476
8477 PR gdb/24789
8478 * eval.c (is_integral_or_integral_reference): New function.
8479 (evaluate_subexp_standard): Allow integer references in
8480 pointer arithmetic.
8481
8482 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8483
8484 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8485 check for no ptid in the stop reply when the target is non-stop.
8486
8487 2020-04-01 Tom Tromey <tromey@adacore.com>
8488
8489 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8490 "name" parameter to rvalue reference. Initialize m_name_holder.
8491 <lookup_name_info>: New overloads.
8492 <name>: Return gdb::string_view.
8493 <c_str>: New method.
8494 <make_ignore_params>: Update.
8495 <search_name_hash>: Update.
8496 <language_lookup_name>: Return const char *.
8497 <m_name>: Change type.
8498 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8499 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8500 (lookup_name_info::match_any): Update.
8501 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8502 Update.
8503 * minsyms.c (linkage_name_str): Update.
8504 * language.c (default_symbol_name_matcher): Update.
8505 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8506 Update.
8507 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8508 (ada_lookup_name_info::ada_lookup_name_info): Update.
8509 (literal_symbol_name_matcher): Update.
8510
8511 2020-04-01 Tom Tromey <tromey@adacore.com>
8512
8513 * psymtab.c (psymtab_search_name): Remove function.
8514 (psym_lookup_symbol): Create search name and lookup name here.
8515 (lookup_partial_symbol): Remove "name" parameter; add
8516 lookup_name.
8517 (psym_expand_symtabs_for_function): Update.
8518
8519 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
8520
8521 PR tui/25597:
8522 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8523
8524 2020-03-31 Tom Tromey <tromey@adacore.com>
8525
8526 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8527 memcpy.
8528
8529 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
8530
8531 * features/riscv/32bit-csr.xml: Regenerated.
8532 * features/riscv/64bit-csr.xml: Regenerated.
8533
8534 2020-03-30 Tom Tromey <tromey@adacore.com>
8535
8536 * ada-valprint.c (print_variant_part): Update.
8537 * ada-lang.h (ada_which_variant_applies): Update.
8538 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8539 outer_valaddr parameters; replace with "outer" value parameter.
8540 (to_fixed_variant_branch_type): Update.
8541
8542 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8543
8544 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8545 <list>. Remove inclusion of observable.h.
8546 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8547 (struct arch_lwp_info): New struct.
8548 (class ppc_linux_dreg_interface): New class.
8549 (struct ppc_linux_process_info): New struct.
8550 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8551 <low_new_clone, low_forget_process, low_prepare_to_resume>
8552 <copy_thread_dreg_state, mark_thread_stale>
8553 <mark_debug_registers_changed, register_hw_breakpoint>
8554 <clear_hw_breakpoint, register_wp, clear_wp>
8555 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8556 <num_memory_accesses, get_trigger_type>
8557 <create_watchpoint_request, hwdebug_point_cmp>
8558 <init_arch_lwp_info, get_arch_lwp_info>
8559 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8560 methods.
8561 <struct ptid_hash>: New inner struct.
8562 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8563 members.
8564 (saved_dabr_value, hwdebug_info, max_slots_number)
8565 (struct hw_break_tuple, struct thread_points, ppc_threads)
8566 (have_ptrace_hwdebug_interface)
8567 (hwdebug_find_thread_points_by_tid)
8568 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8569 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8570 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8571 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8572 use m_dreg_interface.
8573 (hwdebug_point_cmp): Change to...
8574 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8575 reference arguments instead of pointers.
8576 (ppc_linux_nat_target::ranged_break_num_registers): Use
8577 m_dreg_interface.
8578 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8579 m_dreg_interface. Call register_hw_breakpoint.
8580 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8581 m_dreg_interface. Call clear_hw_breakpoint.
8582 (get_trigger_type): Change to...
8583 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8584 comment.
8585 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8586 use m_dreg_interface. Call register_hw_breakpoint.
8587 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8588 use m_dreg_interface. Call clear_hw_breakpoint.
8589 (can_use_watchpoint_cond_accel): Change to...
8590 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8591 method. Update comment, use m_dreg_interface and
8592 m_process_info.
8593 (calculate_dvc): Change to...
8594 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8595 m_dreg_interface.
8596 (num_memory_accesses): Change to...
8597 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8598 (check_condition): Change to...
8599 (ppc_linux_nat_target::check_condition): ...this method.
8600 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8601 comment, use m_dreg_interface.
8602 (create_watchpoint_request): Change to...
8603 (ppc_linux_nat_target::create_watchpoint_request): ...this
8604 method. Use m_dreg_interface.
8605 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8606 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8607 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8608 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8609 (ppc_linux_nat_target::low_forget_process)
8610 (ppc_linux_nat_target::low_new_fork)
8611 (ppc_linux_nat_target::low_new_clone)
8612 (ppc_linux_nat_target::low_delete_thread)
8613 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8614 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8615 only call mark_thread_stale.
8616 (ppc_linux_thread_exit): Remove.
8617 (ppc_linux_nat_target::stopped_data_address): Change to...
8618 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8619 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8620 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8621 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8622 comment. Call low_stopped_data_address.
8623 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8624 m_dreg_interface.
8625 (ppc_linux_nat_target::masked_watch_num_registers): Use
8626 m_dreg_interface.
8627 (ppc_linux_nat_target::copy_thread_dreg_state)
8628 (ppc_linux_nat_target::mark_thread_stale)
8629 (ppc_linux_nat_target::mark_debug_registers_changed)
8630 (ppc_linux_nat_target::register_hw_breakpoint)
8631 (ppc_linux_nat_target::clear_hw_breakpoint)
8632 (ppc_linux_nat_target::register_wp)
8633 (ppc_linux_nat_target::clear_wp)
8634 (ppc_linux_nat_target::init_arch_lwp_info)
8635 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8636 (_initialize_ppc_linux_nat): Remove observer callback.
8637
8638 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8639
8640 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8641 (ppc_linux_nat_target::auxv_parse)
8642 (ppc_linux_nat_target::read_description)
8643 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8644 Move up.
8645
8646 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8647
8648 * linux-nat.h (low_new_clone): New method.
8649 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8650
8651 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8652
8653 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8654 (dbx_expand_psymtab): ... this.
8655 (start_psymtab): Update.
8656 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8657 (mdebug_expand_psymtab): ... this.
8658 (parse_partial_symbols): Update.
8659 (new_psymtab): Update.
8660 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8661 (xcoff_expand_psymtab): ... this.
8662 (xcoff_start_psymtab): Update.
8663
8664 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8665
8666 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8667 <expand_dependencies>: ... this.
8668 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8669 (partial_symtab::expand_dependencies): ... this.
8670 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8671 Update.
8672 (dwarf2_psymtab::expand_psymtab): Update.
8673 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8674 * mdebugread.c (psymtab_to_symtab_1): Update.
8675 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8676
8677 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8678
8679 * psympriv.h (discard_psymtab): Remove.
8680 * dbxread.c (dbx_end_psymtab): Update.
8681 * xcoffread.c (xcoff_end_psymtab): Update.
8682
8683 2020-03-28 Tom Tromey <tom@tromey.com>
8684
8685 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8686 comment.
8687
8688 2020-03-28 Tom Tromey <tom@tromey.com>
8689
8690 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8691
8692 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
8693
8694 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8695
8696 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8697
8698 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8699
8700 2020-03-26 Tom Tromey <tom@tromey.com>
8701
8702 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8703 (mark_common_block_symbol_computed, read_tag_string_type)
8704 (attr_to_dynamic_prop, read_subrange_type): Update.
8705 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8706 to be methods on struct attribute.
8707 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8708 (read_call_site_scope, partial_die_info::read)
8709 (partial_die_info::read, lookup_die_type, follow_die_ref):
8710 Update.
8711 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8712 from dwarf2_get_ref_die_offset.
8713 (attribute::constant_value): New method, from
8714 dwarf2_get_attr_constant_value.
8715 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8716 Declare method.
8717 <constant_value>: New method.
8718
8719 2020-03-26 Tom Tromey <tom@tromey.com>
8720
8721 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8722 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8723 (dwarf_type_encoding_name): Move to stringify.c.
8724 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8725 * dwarf2/stringify.c: New file.
8726 * dwarf2/stringify.h: New file.
8727
8728 2020-03-26 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8731 Rewrite.
8732
8733 2020-03-26 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8736 methods.
8737 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8738 (lookup_ranges_base): Likewise.
8739 (read_cutu_die_from_dwo, read_full_die_1): Update.
8740
8741 2020-03-26 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/read.c (read_import_statement, read_file_scope)
8744 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8745 (read_lexical_block_scope, read_call_site_scope)
8746 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8747 (handle_struct_member_die, process_structure_scope)
8748 (update_enumeration_type_from_children)
8749 (process_enumeration_scope, read_array_type, read_common_block)
8750 (read_namespace, read_module, read_subroutine_type): Update.
8751 (sibling_die): Remove.
8752
8753 2020-03-26 Tom Tromey <tom@tromey.com>
8754
8755 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8756 (build_type_psymtabs_reader, read_structure_type)
8757 (read_enumeration_type, read_full_die_1): Update.
8758 (dwarf2_attr_no_follow): Move to die.h.
8759 * dwarf2/die.h (struct die_info) <attr>: New method.
8760
8761 2020-03-26 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8764 <base_address>: Now an optional.
8765 (dwarf2_find_base_address, dwarf2_rnglists_process)
8766 (dwarf2_ranges_process, fill_in_loclist_baton)
8767 (dwarf2_symbol_mark_computed): Update.
8768
8769 2020-03-26 Tom Tromey <tom@tromey.com>
8770
8771 * dwarf2/read.c (struct die_info): Move to die.h.
8772 * dwarf2/die.h: New file.
8773
8774 2020-03-26 Tom Tromey <tom@tromey.com>
8775
8776 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8777 * dwarf2/read.c
8778 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8779 Move to line-header.c.
8780 (read_checked_initial_length_and_offset, read_formatted_entries):
8781 Likewise.
8782 (dwarf_decode_line_header): Split into two.
8783 * dwarf2/line-header.c
8784 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8785 Move from read.c.
8786 (read_checked_initial_length_and_offset, read_formatted_entries):
8787 Likewise.
8788 (dwarf_decode_line_header): New function, split from read.c.
8789
8790 2020-03-26 Tom Tromey <tom@tromey.com>
8791
8792 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8793 Declare method.
8794 * dwarf2/read.c (read_attribute_value): Update.
8795 (dwarf2_per_objfile::read_line_string): Rename from
8796 read_indirect_line_string.
8797 (read_formatted_entries): Update.
8798
8799 2020-03-26 Tom Tromey <tom@tromey.com>
8800
8801 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8802 variable.
8803
8804 2020-03-26 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8807 const.
8808 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8809 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8810 parameter const.
8811
8812 2020-03-26 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8815 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8816 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8817 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8818
8819 2020-03-26 Tom Tromey <tom@tromey.com>
8820
8821 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8822 file_names_size, file_full_name, file_file_name>: Use const.
8823 <file_name_at, file_names>: Add const overload.
8824 * dwarf2/line-header.c (line_header::file_file_name)
8825 (line_header::file_full_name): Update.
8826
8827 2020-03-26 Tom Tromey <tom@tromey.com>
8828
8829 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8830 (macro_start_file, consume_improper_spaces)
8831 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8832 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8833 (dwarf_decode_macros): Move to macro.c.
8834 * dwarf2/macro.c: New file.
8835 * dwarf2/macro.h: New file.
8836 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8837
8838 2020-03-26 Tom Tromey <tom@tromey.com>
8839
8840 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8841 method.
8842 * dwarf2/section.c: New method. From
8843 read_indirect_string_at_offset_from.
8844 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8845 (read_indirect_string_at_offset_from): Move to section.c.
8846 (read_indirect_string_at_offset): Rewrite.
8847 (read_indirect_line_string_at_offset): Remove.
8848 (read_indirect_string, read_indirect_line_string)
8849 (dwarf_decode_macro_bytes): Update.
8850
8851 2020-03-26 Tom Tromey <tom@tromey.com>
8852
8853 * dwarf2/section.h (struct dwarf2_section_info)
8854 <overload_complaint>: Declare.
8855 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8856 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8857 Rename from dwarf2_section_buffer_overflow_complaint.
8858 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8859 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8860
8861 2020-03-26 Tom Tromey <tom@tromey.com>
8862
8863 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8864 Declare.
8865 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8866 Move from read.c.
8867 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8868 to section.c.
8869
8870 2020-03-26 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8873
8874 2020-03-26 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8877 "builder".
8878 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8879 parameter.
8880 (dwarf_decode_macros): Update.
8881
8882 2020-03-26 Tom Tromey <tom@tromey.com>
8883
8884 * dwarf2/read.c (read_attribute_value): Update.
8885 (read_indirect_string_from_dwz): Move to dwz.c; change into
8886 method.
8887 (dwarf_decode_macro_bytes): Update.
8888 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8889 * dwarf2/dwz.c: New file.
8890 * Makefile.in (COMMON_SFILES): Add dwz.c.
8891
8892 2020-03-26 Tom Tromey <tom@tromey.com>
8893
8894 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8895 * dwarf2/read.c: Add include.
8896 * dwarf2/index-write.c: Add include.
8897 * dwarf2/index-cache.c: Add include.
8898 * dwarf2/dwz.h: New file.
8899
8900 2020-03-25 Tom Tromey <tom@tromey.com>
8901
8902 * compile/compile-object-load.c (get_out_value_type): Mention
8903 correct symbol name in error message.
8904
8905 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8906
8907 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8908
8909 2020-03-25 Tom de Vries <tdevries@suse.de>
8910
8911 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8912 * symmisc.c (dump_symtab_1): Print user and includes fields.
8913 (maintenance_info_symtabs): Same.
8914
8915 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8916
8917 PR gdb/25534
8918 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8919 (riscv_regcache_cooked_write): New function.
8920 (riscv_push_dummy_call): Use new function.
8921 (riscv_return_value): Likewise.
8922
8923 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8924
8925 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8926 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8927 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8928 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8929 * infrun.c (follow_fork): Likewise.
8930 (follow_fork_inferior): Likewise.
8931 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8932 * linux-nat.h (class linux_nat_target): Likewise.
8933 * remote.c (class remote_target) <follow_fork>: Likewise.
8934 (remote_target::follow_fork): Likewise.
8935 * target-delegates.c: Re-generate.
8936 * target.c (default_follow_fork): Likewise.
8937 (target_follow_fork): Likewise.
8938 * target.h (struct target_ops) <follow_fork>: Likewise.
8939 (target_follow_fork): Likewise.
8940
8941 2020-03-24 Tom de Vries <tdevries@suse.de>
8942
8943 * psymtab.c (maintenance_info_psymtabs): Print user field.
8944
8945 2020-03-20 Tom Tromey <tromey@adacore.com>
8946
8947 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8948 const.
8949 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8950 const.
8951
8952 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * ptrace.m4: Don't check for ptrace declaration.
8955 * config.in: Re-generate.
8956 * configure: Re-generate.
8957 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8958 not defined.
8959
8960 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8961
8962 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8963 `PTRACE_TYPE_RET'.
8964 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8965 * sparc-nat.c (gdb_ptrace): Likewise.
8966 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8967
8968 2020-03-20 Tom Tromey <tromey@adacore.com>
8969
8970 * c-exp.y (lex_one_token): Fix assert.
8971
8972 2020-03-20 Tom Tromey <tromey@adacore.com>
8973
8974 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8975 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8976 strncpy call.
8977
8978 2020-03-20 Tom Tromey <tromey@adacore.com>
8979
8980 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8981
8982 2020-03-20 Tom Tromey <tromey@adacore.com>
8983
8984 * ada-valprint.c (print_variant_part): Remove parameters; switch
8985 to value-based API.
8986 (print_field_values): Likewise.
8987 (ada_val_print_struct_union): Likewise.
8988 (ada_value_print_1): Update.
8989
8990 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8991
8992 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8993 nbsd_nat_target instead of inf_ptrace_target.
8994 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8995 nbsd_nat_target.
8996
8997 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8998
8999 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9000 it to the ptrace call.
9001 * (store_registers): Likewise.
9002
9003 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9004
9005 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9006 it to the ptrace call.
9007 * (store_registers): Likewise.
9008
9009 2020-03-19 Luis Machado <luis.machado@linaro.org>
9010
9011 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9012 valid, fetch vg value from ptrace.
9013
9014 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9015 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9016 * inf-ptrace.c: Likewise.
9017 * (gdb_ptrace): Add.
9018 * (inf_ptrace_target::resume): Update.
9019 * (inf_ptrace_target::xfer_partial): Likewise.
9020 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9021 * (inf_ptrace_peek_poke): Update.
9022
9023 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9024
9025 * x86-bsd-nat.c (gdb_ptrace): New.
9026 * (x86bsd_dr_set): Add new argument `ptid'.
9027 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9028 x86bsd_dr_set_addr): Update.
9029
9030 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * remote.c (remote_target::process_stop_reply): Handle events for
9033 all threads differently.
9034
9035 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9036
9037 * completer.c (completion_tracker::remove_completion): Define new
9038 function.
9039 * completer.h (completion_tracker::remove_completion): Declare new
9040 function.
9041 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9042 when adding a C++ function symbol.
9043
9044 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9045
9046 * completer.c (completion_tracker::completion_hash_entry): Define
9047 new class.
9048 (advance_to_filename_complete_word_point): Call
9049 recompute_lowest_common_denominator.
9050 (completion_tracker::completion_tracker): Call discard_completions
9051 to setup the hash table.
9052 (completion_tracker::discard_completions): Allow for being called
9053 from the constructor, pass new equal function, and element deleter
9054 when constructing the hash table. Initialise new class member
9055 variables.
9056 (completion_tracker::maybe_add_completion): Remove use of
9057 m_entries_vec, and store more information into m_entries_hash.
9058 (completion_tracker::recompute_lcd_visitor): New function, most
9059 content taken from...
9060 (completion_tracker::recompute_lowest_common_denominator):
9061 ...here, this now just visits each item in the hash calling the
9062 above visitor.
9063 (completion_tracker::build_completion_result): Remove use of
9064 m_entries_vec, call recompute_lowest_common_denominator.
9065 * completer.h (completion_tracker::have_completions): Remove use
9066 of m_entries_vec.
9067 (completion_tracker::completion_hash_entry): Declare new class.
9068 (completion_tracker::recompute_lowest_common_denominator): Change
9069 function signature.
9070 (completion_tracker::recompute_lcd_visitor): Declare new function.
9071 (completion_tracker::m_entries_vec): Delete.
9072 (completion_tracker::m_entries_hash): Initialize to NULL.
9073 (completion_tracker::m_lowest_common_denominator_valid): New
9074 member variable.
9075 (completion_tracker::m_lowest_common_denominator_max_length): New
9076 member variable.
9077
9078 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9079
9080 * regformats/regdef.h: Put reg in gdb namespace.
9081
9082 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9083
9084 * i386-bsd-nat.c (gdb_ptrace): New.
9085 * (i386bsd_fetch_inferior_registers,
9086 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9087 * (i386bsd_fetch_inferior_registers,
9088 i386bsd_store_inferior_registers) Use gdb_ptrace.
9089
9090 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9091
9092 * amd64-bsd-nat.c (gdb_ptrace): New.
9093 * (amd64bsd_fetch_inferior_registers,
9094 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9095 * (amd64bsd_fetch_inferior_registers,
9096 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9097
9098 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9099
9100 * user-regs.c (user_reg::read): Rename to...
9101 (user_reg::xread): ...this.
9102 * (append_user_reg): Rename argument `read' to `xread'.
9103 * (user_reg_add_builtin): Likewise.
9104 * (user_reg_add): Likewise.
9105 * (value_of_user_reg): Likewise.
9106
9107 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9108
9109 * sparc-nat.c (gdb_ptrace): New.
9110 * sparc-nat.c (sparc_fetch_inferior_registers)
9111 (sparc_store_inferior_registers) Remove obsolete comment.
9112 * sparc-nat.c (sparc_fetch_inferior_registers)
9113 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9114 * sparc-nat.c (sparc_fetch_inferior_registers)
9115 (sparc_store_inferior_registers) Use gdb_ptrace.
9116
9117 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9118
9119 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9120 it to the ptrace call.
9121 * sh-nbsd-nat.c (store_registers): Likewise.
9122
9123 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9124
9125 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9126 nbsd_nat_target instead of inf_ptrace_target.
9127 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9128 nbsd_nat_target.
9129
9130 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9131
9132 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9133
9134 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9135
9136 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9137 <sys/sysctl.h>.
9138 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9139
9140 2020-03-17 Tom de Vries <tdevries@suse.de>
9141
9142 PR gdb/23710
9143 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9144 fields.
9145 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9146 fields.
9147 (process_imported_unit_die): Skip import of c++ CUs.
9148
9149 2020-03-16 Tom Tromey <tom@tromey.com>
9150
9151 * p-valprint.c (pascal_object_print_value): Initialize
9152 base_value.
9153
9154 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9155 Shahab Vahedi <shahab@synopsys.com>
9156
9157 * Makefile.in: Add arch/arc.o
9158 * configure.tgt: Likewise.
9159 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9160 (_initialize_arc_tdep): Don't initialize old target descriptions.
9161 (arc_read_description): New function to cache target descriptions.
9162 * arc-tdep.h (arc_read_description): Add proto type.
9163 * arch/arc.c: New file.
9164 * arch/arc.h: Likewise.
9165 * features/Makefile: Replace old target descriptions with new.
9166 * features/arc-arcompact.c: Remove.
9167 * features/arc-arcompact.xml: Likewise.
9168 * features/arc-v2.c: Likewise
9169 * features/arc-v2.xml: Likewise
9170 * features/arc/aux-arcompact.xml: New file.
9171 * features/arc/aux-v2.xml: Likewise.
9172 * features/arc/core-arcompact.xml: Likewise.
9173 * features/arc/core-v2.xml: Likewise.
9174 * features/arc/aux-arcompact.c: Generate.
9175 * features/arc/aux-v2.c: Likewise.
9176 * features/arc/core-arcompact.c: Likewise.
9177 * features/arc/core-v2.c: Likewise.
9178 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9179
9180 2020-03-16 Tom Tromey <tromey@adacore.com>
9181
9182 PR gdb/25663:
9183 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9184 putting value into bcache.
9185
9186 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9187
9188 PR gdb/21500
9189 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9190 to...
9191 (amd64_windows_init_abi_common): ... this. Don't set size of
9192 long type.
9193 (amd64_windows_init_abi): New function.
9194 (amd64_cygwin_init_abi): New function.
9195 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9196 the Cygwin OS ABI.
9197 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9198 comment.
9199
9200 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9201
9202 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9203 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9204 (pe_import_directory_entry): New struct type.
9205 (is_linked_with_cygwin_dll): New function.
9206 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9207 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9208 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9209
9210 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9211
9212 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9213 i386_cygwin_core_osabi_sniffer.
9214
9215 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * i386-cygwin-tdep.c: Rename to...
9218 * i386-windows-tdep.c: ... this.
9219 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9220 i386-windows-tdep.c.
9221 * configure.tgt: Likewise.
9222
9223 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9226 * osabi.c (gdb_osabi_names): Add "Windows".
9227 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9228 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9229 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9230 i386_cygwin_osabi_sniffer.
9231 (_initialize_i386_cygwin_tdep): Register OS ABI
9232 GDB_OSABI_WINDOWS for i386.
9233 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9234 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9235 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9236 for x86-64.
9237 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9238 when the target matches '*-*-mingw*'.
9239
9240 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9241
9242 * defs.h (enum gdb_osabi): Move to...
9243 * osabi.h (enum gdb_osabi): ... here.
9244 * gdbarch.sh: Include osabi.h in gdbarch.h.
9245 * gdbarch.h: Re-generate.
9246
9247 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9250 function.
9251 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9252
9253 2020-03-14 Tom Tromey <tom@tromey.com>
9254
9255 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9256 for C++.
9257 (c_type_print_modifier): Likewise. Add "language" parameter.
9258 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9259 (c_type_print_base_1): Update.
9260 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9261 constants.
9262 * type-stack.c (type_stack::insert): Handle tp_atomic and
9263 tp_restrict.
9264 (type_stack::follow_type_instance_flags): Likewise.
9265 (type_stack::follow_types): Likewise. Merge type-following code.
9266 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9267 (space_identifier, cv_with_space_id)
9268 (const_or_volatile_or_space_identifier_noopt)
9269 (const_or_volatile_or_space_identifier): Remove.
9270 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9271 rules.
9272 (ptr_operator, typebase): Update.
9273 (enum token_flag) <FLAG_C>: New constant.
9274 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9275 "_Atomic".
9276 (lex_one_token): Handle FLAG_C.
9277
9278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9279
9280 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9281 it to the ptrace call.
9282 * m68k-bsd-nat.c (store_registers): Likewise.
9283
9284 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9285
9286 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9287 gdb_byte *.
9288 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9289 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9290 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9291
9292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9293
9294 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9295 nbsd_nat_target instead of inf_ptrace_target.
9296 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9297 nbsd_nat_target.
9298
9299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9300
9301 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9302 register_t.
9303
9304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9305
9306 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9307 it to the ptrace call.
9308 * alpha-bsd-nat.c (store_registers): Likewise.
9309
9310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9311
9312 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9313 includes.
9314 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9315 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9316 fill_fpregset): Likewise.
9317
9318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9319
9320 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9321 nbsd_nat_target instead of inf_ptrace_target.
9322 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9323 nbsd_nat_target.
9324
9325 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9326
9327 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9328 register_t.
9329
9330 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9331
9332 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9333 it to the ptrace call.
9334 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9335 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9336 * arm-nbsd-nat.c (store_register): Likewise.
9337 * arm-nbsd-nat.c (store_regs): Likewise.
9338 * arm-nbsd-nat.c (store_fp_register): Likewise.
9339 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9340
9341 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9342
9343 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9344 nbsd_nat_target instead of inf_ptrace_target.
9345 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9346 nbsd_nat_target.
9347
9348 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9349
9350 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9351 it to the ptrace call.
9352 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9353
9354 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9355
9356 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9357 it to the ptrace call.
9358 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9359
9360 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9361
9362 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9363 gdb_byte *.
9364 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9365
9366 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9367
9368 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9369 instead of inf_ptrace_target.
9370 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9371 nbsd_nat_target.
9372
9373 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9374
9375 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9376 register_t.
9377
9378 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9379
9380 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9381 register_t.
9382
9383 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9384
9385 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9386 register_t.
9387
9388 2020-03-13 Tom Tromey <tom@tromey.com>
9389
9390 * value.h (val_print): Don't declare.
9391 * valprint.h (val_print_array_elements)
9392 (val_print_scalar_formatted, generic_val_print): Don't declare.
9393 * valprint.c (generic_val_print_array): Take a struct value.
9394 (generic_val_print_ptr, generic_val_print_memberptr)
9395 (generic_val_print_bool, generic_val_print_int)
9396 (generic_val_print_char, generic_val_print_complex)
9397 (generic_val_print): Remove.
9398 (generic_value_print): Update.
9399 (do_val_print): Remove unused parameters. Don't call
9400 la_val_print.
9401 (val_print): Remove.
9402 (common_val_print): Update. Don't call value_check_printable.
9403 (val_print_scalar_formatted, val_print_array_elements): Remove.
9404 * rust-lang.c (rust_val_print): Remove.
9405 (rust_language_defn): Update.
9406 * p-valprint.c (pascal_val_print): Remove.
9407 (pascal_value_print_inner): Update.
9408 (pascal_object_print_val_fields, pascal_object_print_val):
9409 Remove.
9410 (pascal_object_print_static_field): Update.
9411 * p-lang.h (pascal_val_print): Don't declare.
9412 * p-lang.c (pascal_language_defn): Update.
9413 * opencl-lang.c (opencl_language_defn): Update.
9414 * objc-lang.c (objc_language_defn): Update.
9415 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9416 * m2-lang.h (m2_val_print): Don't declare.
9417 * m2-lang.c (m2_language_defn): Update.
9418 * language.h (struct language_defn) <la_val_print>: Remove.
9419 * language.c (unk_lang_value_print_inner): Rename. Change
9420 argument types.
9421 (unknown_language_defn, auto_language_defn): Update.
9422 * go-valprint.c (go_val_print): Remove.
9423 * go-lang.h (go_val_print): Don't declare.
9424 * go-lang.c (go_language_defn): Update.
9425 * f-valprint.c (f_val_print): Remove.
9426 * f-lang.h (f_value_print): Don't declare.
9427 * f-lang.c (f_language_defn): Update.
9428 * d-valprint.c (d_val_print): Remove.
9429 * d-lang.h (d_value_print): Don't declare.
9430 * d-lang.c (d_language_defn): Update.
9431 * cp-valprint.c (cp_print_value_fields)
9432 (cp_print_value_fields_rtti, cp_print_value): Remove.
9433 (cp_print_static_field): Update.
9434 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9435 (c_val_print_struct, c_val_print_union, c_val_print_int)
9436 (c_val_print_memberptr, c_val_print): Remove.
9437 * c-lang.h (c_val_print_array, cp_print_value_fields)
9438 (cp_print_value_fields_rtti): Don't declare.
9439 * c-lang.c (c_language_defn, cplus_language_defn)
9440 (asm_language_defn, minimal_language_defn): Update.
9441 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9442 (ada_val_print_enum): Take a struct value.
9443 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9444 (ada_val_print): Remove.
9445 (ada_value_print_1): Update.
9446 (printable_val_type): Remove.
9447 * ada-lang.h (ada_val_print): Don't declare.
9448 * ada-lang.c (ada_language_defn): Update.
9449
9450 2020-03-13 Tom Tromey <tom@tromey.com>
9451
9452 * valprint.c (do_val_print): Update.
9453 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9454 a struct value.
9455 (value_to_value_object_no_release): Declare.
9456 * python/py-value.c (value_to_value_object_no_release): New
9457 function.
9458 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9459 struct value.
9460 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9461 function.
9462 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9463 a struct value.
9464 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9465 Declare.
9466 (gdbscm_apply_val_pretty_printer): Take a struct value.
9467 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9468 value.
9469 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9470 value.
9471 * extension-priv.h (struct extension_language_ops)
9472 <apply_val_pretty_printer>: Take a struct value.
9473 * cp-valprint.c (cp_print_value): Create a struct value.
9474 (cp_print_value): Update.
9475
9476 2020-03-13 Tom Tromey <tom@tromey.com>
9477
9478 * ada-valprint.c (print_field_values): Call common_val_print.
9479
9480 2020-03-13 Tom Tromey <tom@tromey.com>
9481
9482 * ada-valprint.c (val_print_packed_array_elements): Remove
9483 bitoffset and val parameters. Call common_val_print.
9484 (ada_val_print_string): Remove offset, address, and original_value
9485 parameters.
9486 (ada_val_print_array): Update.
9487 (ada_value_print_array): New function.
9488 (ada_value_print_1): Call it.
9489
9490 2020-03-13 Tom Tromey <tom@tromey.com>
9491
9492 * ada-valprint.c (ada_value_print): Use common_val_print.
9493
9494 2020-03-13 Tom Tromey <tom@tromey.com>
9495
9496 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9497
9498 2020-03-13 Tom Tromey <tom@tromey.com>
9499
9500 * ada-valprint.c (ada_value_print_num): New function.
9501 (ada_value_print_1): Use it.
9502
9503 2020-03-13 Tom Tromey <tom@tromey.com>
9504
9505 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9506
9507 2020-03-13 Tom Tromey <tom@tromey.com>
9508
9509 * ada-valprint.c (ada_value_print_ptr): New function.
9510 (ada_value_print_1): Use it.
9511
9512 2020-03-13 Tom Tromey <tom@tromey.com>
9513
9514 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9515 call common_val_print.
9516 (ada_val_print_1): Update.
9517 (ada_value_print_1): New function.
9518 (ada_value_print_inner): Rewrite.
9519
9520 2020-03-13 Tom Tromey <tom@tromey.com>
9521
9522 * cp-valprint.c (cp_print_value_fields): Update.
9523 (cp_print_value): New function.
9524
9525 2020-03-13 Tom Tromey <tom@tromey.com>
9526
9527 * m2-valprint.c (m2_value_print_inner): Use
9528 cp_print_value_fields.
9529 * cp-valprint.c (cp_print_value_fields): New function.
9530 * c-valprint.c (c_value_print_struct): New function.
9531 (c_value_print_inner): Use c_value_print_struct.
9532 * c-lang.h (cp_print_value_fields): Declare.
9533
9534 2020-03-13 Tom Tromey <tom@tromey.com>
9535
9536 * c-valprint.c (c_value_print_array): New function.
9537 (c_value_print_inner): Use it.
9538
9539 2020-03-13 Tom Tromey <tom@tromey.com>
9540
9541 * c-valprint.c (c_value_print_memberptr): New function.
9542 (c_value_print_inner): Use it.
9543
9544 2020-03-13 Tom Tromey <tom@tromey.com>
9545
9546 * c-valprint.c (c_value_print_int): New function.
9547 (c_value_print_inner): Use it.
9548
9549 2020-03-13 Tom Tromey <tom@tromey.com>
9550
9551 * c-valprint.c (c_value_print_ptr): New function.
9552 (c_value_print_inner): Use it.
9553
9554 2020-03-13 Tom Tromey <tom@tromey.com>
9555
9556 * c-valprint.c (c_value_print_inner): Rewrite.
9557
9558 2020-03-13 Tom Tromey <tom@tromey.com>
9559
9560 * valprint.c (generic_value_print_complex): New function.
9561 (generic_value_print): Use it.
9562
9563 2020-03-13 Tom Tromey <tom@tromey.com>
9564
9565 * valprint.c (generic_val_print_float): Don't call
9566 val_print_scalar_formatted.
9567 (generic_val_print, generic_value_print): Update.
9568
9569 2020-03-13 Tom Tromey <tom@tromey.com>
9570
9571 * valprint.c (generic_value_print_char): New function
9572 (generic_value_print): Use it.
9573
9574 2020-03-13 Tom Tromey <tom@tromey.com>
9575
9576 * valprint.c (generic_value_print_int): New function.
9577 (generic_value_print): Use it.
9578
9579 2020-03-13 Tom Tromey <tom@tromey.com>
9580
9581 * valprint.c (generic_value_print_bool): New function.
9582 (generic_value_print): Use it.
9583
9584 2020-03-13 Tom Tromey <tom@tromey.com>
9585
9586 * valprint.c (generic_val_print_func): Simplify.
9587 (generic_val_print, generic_value_print): Update.
9588
9589 2020-03-13 Tom Tromey <tom@tromey.com>
9590
9591 * valprint.c (generic_val_print_flags): Remove.
9592 (generic_val_print, generic_value_print): Update.
9593 (val_print_type_code_flags): Add original_value parameter.
9594
9595 2020-03-13 Tom Tromey <tom@tromey.com>
9596
9597 * valprint.c (generic_val_print): Update.
9598 (generic_value_print): Update.
9599 * valprint.c (generic_val_print_enum): Don't call
9600 val_print_scalar_formatted.
9601
9602 2020-03-13 Tom Tromey <tom@tromey.com>
9603
9604 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9605 * valprint.c (generic_value_print_ptr): New function.
9606
9607 2020-03-13 Tom Tromey <tom@tromey.com>
9608
9609 * valprint.c (generic_value_print): Rewrite.
9610
9611 2020-03-13 Tom Tromey <tom@tromey.com>
9612
9613 * p-valprint.c (pascal_object_print_value_fields)
9614 (pascal_object_print_value): New functions.
9615
9616 2020-03-13 Tom Tromey <tom@tromey.com>
9617
9618 * p-valprint.c (pascal_value_print_inner): Rewrite.
9619
9620 2020-03-13 Tom Tromey <tom@tromey.com>
9621
9622 * f-valprint.c (f_value_print_innner): Rewrite.
9623
9624 2020-03-13 Tom Tromey <tom@tromey.com>
9625
9626 * m2-valprint.c (m2_print_unbounded_array): New overload.
9627 (m2_print_unbounded_array): Update.
9628 (m2_print_array_contents): Take a struct value.
9629 (m2_value_print_inner): Rewrite.
9630
9631 2020-03-13 Tom Tromey <tom@tromey.com>
9632
9633 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9634 (d_value_print_inner): New function.
9635 * d-lang.h (d_value_print_inner): Declare.
9636 * d-lang.c (d_language_defn): Use d_value_print_inner.
9637
9638 2020-03-13 Tom Tromey <tom@tromey.com>
9639
9640 * go-valprint.c (go_value_print_inner): New function.
9641 * go-lang.h (go_value_print_inner): Declare.
9642 * go-lang.c (go_language_defn): Use go_value_print_inner.
9643
9644 2020-03-13 Tom Tromey <tom@tromey.com>
9645
9646 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9647 API.
9648 (rust_val_print): Rewrite.
9649 (rust_value_print_inner): New function, from rust_val_print.
9650 (rust_language_defn): Use rust_value_print_inner.
9651
9652 2020-03-13 Tom Tromey <tom@tromey.com>
9653
9654 * ada-valprint.c (ada_value_print_inner): New function.
9655 * ada-lang.h (ada_value_print_inner): Declare.
9656 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9657
9658 2020-03-13 Tom Tromey <tom@tromey.com>
9659
9660 * f-valprint.c (f_value_print_innner): New function.
9661 * f-lang.h (f_value_print_innner): Declare.
9662 * f-lang.c (f_language_defn): Use f_value_print_innner.
9663
9664 2020-03-13 Tom Tromey <tom@tromey.com>
9665
9666 * p-valprint.c (pascal_value_print_inner): New function.
9667 * p-lang.h (pascal_value_print_inner): Declare.
9668 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9669
9670 2020-03-13 Tom Tromey <tom@tromey.com>
9671
9672 * m2-valprint.c (m2_value_print_inner): New function.
9673 * m2-lang.h (m2_value_print_inner): Declare.
9674 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9675
9676 2020-03-13 Tom Tromey <tom@tromey.com>
9677
9678 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9679 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9680 * c-valprint.c (c_value_print_inner): New function.
9681 * c-lang.h (c_value_print_inner): Declare.
9682 * c-lang.c (c_language_defn, cplus_language_defn)
9683 (asm_language_defn, minimal_language_defn): Use
9684 c_value_print_inner.
9685
9686 2020-03-13 Tom Tromey <tom@tromey.com>
9687
9688 * p-valprint.c (pascal_object_print_value_fields): Now static.
9689 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9690
9691 2020-03-13 Tom Tromey <tom@tromey.com>
9692
9693 * c-valprint.c (c_val_print_array): Simplify.
9694
9695 2020-03-13 Tom Tromey <tom@tromey.com>
9696
9697 * valprint.c (value_print_array_elements): New function.
9698 * valprint.h (value_print_array_elements): Declare.
9699
9700 2020-03-13 Tom Tromey <tom@tromey.com>
9701
9702 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9703 * mips-tdep.c (mips_print_register): Use
9704 value_print_scalar_formatted.
9705
9706 2020-03-13 Tom Tromey <tom@tromey.com>
9707
9708 * valprint.h (value_print_scalar_formatted): Declare.
9709 * valprint.c (value_print_scalar_formatted): New function.
9710
9711 2020-03-13 Tom Tromey <tom@tromey.com>
9712
9713 * valprint.h (generic_value_print): Declare.
9714 * valprint.c (generic_value_print): New function.
9715
9716 2020-03-13 Tom Tromey <tom@tromey.com>
9717
9718 * valprint.c (do_val_print): Call la_value_print_inner, if
9719 available.
9720 * rust-lang.c (rust_language_defn): Update.
9721 * p-lang.c (pascal_language_defn): Update.
9722 * opencl-lang.c (opencl_language_defn): Update.
9723 * objc-lang.c (objc_language_defn): Update.
9724 * m2-lang.c (m2_language_defn): Update.
9725 * language.h (struct language_defn) <la_value_print_inner>: New
9726 member.
9727 * language.c (unknown_language_defn, auto_language_defn): Update.
9728 * go-lang.c (go_language_defn): Update.
9729 * f-lang.c (f_language_defn): Update.
9730 * d-lang.c (d_language_defn): Update.
9731 * c-lang.c (c_language_defn, cplus_language_defn)
9732 (asm_language_defn, minimal_language_defn): Update.
9733 * ada-lang.c (ada_language_defn): Update.
9734
9735 2020-03-13 Tom Tromey <tom@tromey.com>
9736
9737 * c-valprint.c (c_value_print): Use common_val_print.
9738
9739 2020-03-13 Tom Tromey <tom@tromey.com>
9740
9741 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9742
9743 2020-03-13 Tom Tromey <tom@tromey.com>
9744
9745 * f-valprint.c (f77_print_array_1, f_val_print): Use
9746 common_val_print.
9747
9748 2020-03-13 Tom Tromey <tom@tromey.com>
9749
9750 * riscv-tdep.c (riscv_print_one_register_info): Use
9751 common_val_print.
9752
9753 2020-03-13 Tom Tromey <tom@tromey.com>
9754
9755 * mi/mi-main.c (output_register): Use common_val_print.
9756
9757 2020-03-13 Tom Tromey <tom@tromey.com>
9758
9759 * infcmd.c (default_print_one_register_info): Use
9760 common_val_print.
9761
9762 2020-03-13 Tom Tromey <tom@tromey.com>
9763
9764 * valprint.h (common_val_print_checked): Declare.
9765 * valprint.c (common_val_print_checked): New function.
9766 * stack.c (print_frame_arg): Use common_val_print_checked.
9767
9768 2020-03-13 Tom Tromey <tom@tromey.com>
9769
9770 * valprint.c (do_val_print): New function, from val_print.
9771 (val_print): Use do_val_print.
9772 (common_val_print): Use do_val_print.
9773
9774 2020-03-13 Tom Tromey <tom@tromey.com>
9775
9776 * valprint.c (value_print): Use scoped_value_mark.
9777
9778 2020-03-13 Tom de Vries <tdevries@suse.de>
9779
9780 PR symtab/25646
9781 * psymtab.c (partial_symtab::partial_symtab): Don't set
9782 globals_offset and statics_offset. Push element onto
9783 current_global_psymbols and current_static_psymbols stacks.
9784 (concat): New function.
9785 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9786 element from current_global_psymbols and current_static_psymbols
9787 stacks. Concat popped elements to global_psymbols and
9788 static_symbols.
9789 (add_psymbol_to_list): Use current_global_psymbols and
9790 current_static_psymbols stacks.
9791 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9792 current_static_psymbols fields.
9793
9794 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9795
9796 * corelow.c (sniff_core_bfd): Remove.
9797 (class core_target) <m_core_vec>: Remove.
9798 (core_target::core_target): Update.
9799 (core_file_fns): Remove.
9800 (deprecated_add_core_fns): Remove.
9801 (default_core_sniffer): Remove.
9802 (sniff_core_bfd): Remove.
9803 (default_check_format): Remove.
9804 (gdb_check_format): Remove.
9805 (core_target_open): Update.
9806 (core_target::get_core_register_section): Update.
9807 (get_core_registers_cb): Update.
9808 (core_target::fetch_registers): Update.
9809 * gdbcore.h (struct core_fns): Remove.
9810 (deprecated_add_core_fns): Remove.
9811 (default_core_sniffer): Remove.
9812 (default_check_format): Remove.
9813
9814 2020-03-12 Tom Tromey <tom@tromey.com>
9815
9816 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9817 CORE_ADDR.
9818 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9819
9820 2020-03-12 Tom Tromey <tom@tromey.com>
9821
9822 * remote.c (remote_target::download_tracepoint)
9823 (remote_target::enable_tracepoint)
9824 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9825 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9826 sprintf_vma.
9827
9828 2020-03-12 Tom Tromey <tom@tromey.com>
9829
9830 * symfile-mem.c: Update CORE_ADDR size assert.
9831
9832 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * selftest.m4: Move to gdbsupport/.
9835 * acinclude.m4: Update path to selftest.m4.
9836
9837 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9838
9839 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9840 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9841 gdbarch-selfselftests.c and selftest-arch.c.
9842 (SUBDIR_UNITTESTS_OBS): Rename to...
9843 (SELFTESTS_OBS): ... this.
9844 (COMMON_SFILES): Remove disasm-selftests.c and
9845 gdbarch-selftests.c.
9846 * configure.ac: Don't add selftest-arch.{c,o} to
9847 CONFIG_{SRCS,OBS}.
9848 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9849 preprocessor conditions.
9850
9851 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9852
9853 * configure.ac: Don't source bfd/development.sh.
9854 * selftest.m4: Modify comment.
9855 * configure: Re-generate.
9856
9857 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9858
9859 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9860 not "true" or "false".
9861 * configure: Re-generate.
9862
9863 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9864
9865 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9866 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9867 renamed to arm_nbsd_supply_gregset.
9868 (fetch_register): Update to call arm_nbsd_supply_gregset.
9869 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9870 (arm_netbsd_nat_target::fetch_registers): Update.
9871 (fetch_elfcore_registers): Removed.
9872 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9873 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9874 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9875 not require NetBSD system headers.
9876 (arm_nbsd_regset): New struct.
9877 (arm_nbsd_iterate_over_regset_sections): New function.
9878 (arm_netbsd_init_abi_common): Updated to call
9879 set_gdbarch_iterate_over_regset_sections.
9880 * arm-nbsd-tdep.h: New file.
9881
9882 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9883
9884 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9885 recursion.
9886
9887 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * configure: Re-generate.
9890
9891 2020-03-11 Tom Tromey <tromey@adacore.com>
9892
9893 * ada-typeprint.c (print_choices): Fix comment.
9894
9895 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9896
9897 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9898 previous item in the list, when the list has no items.
9899
9900 2020-03-11 Tom de Vries <tdevries@suse.de>
9901
9902 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9903 PROP_LOCLIST handling code.
9904
9905 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9906
9907 * buildsym-legacy.c (record_line): Pass extra parameter to
9908 record_line.
9909 * buildsym.c (buildsym_compunit::record_line): Take an extra
9910 parameter, reduce duplication in the line table, and record the
9911 is_stmt flag in the line table.
9912 * buildsym.h (buildsym_compunit::record_line): Add extra
9913 parameter.
9914 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9915 non-statement lines.
9916 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9917 this to the symtab builder.
9918 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9919 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9920 through to dwarf_record_line_1.
9921 * infrun.c (process_event_stop_test): When stepping, don't stop at
9922 a non-statement instruction, and only refresh the step info when
9923 we land in the middle of a line's range. Also add an extra
9924 comment.
9925 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9926 field.
9927 * record-btrace.c (btrace_find_line_range): Only record lines
9928 marked as is-statement.
9929 * stack.c (frame_show_address): Show the frame address if we are
9930 in a non-statement sal.
9931 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9932 (maintenance_print_one_line_table): Print a header for the is_stmt
9933 column, and include is_stmt information in the output.
9934 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9935 preference to non-statements.
9936 (find_pcs_for_symtab_line): Prefer is-statement entries.
9937 (find_line_common): Likewise.
9938 * symtab.h (struct linetable_entry): Add is_stmt field.
9939 (struct symtab_and_line): Likewise.
9940 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9941 arranging the line table.
9942
9943 2020-03-07 Tom de Vries <tdevries@suse.de>
9944
9945 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9946 DIE.
9947
9948 2020-03-07 Tom Tromey <tom@tromey.com>
9949
9950 * valops.c (value_literal_complex): Remove obsolete comment.
9951 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9952 comment.
9953
9954 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9955
9956 * infrun.h: Forward-declare thread_info.
9957 (set_step_info): Add thread_info parameter, add doc.
9958 * infrun.c (set_step_info): Add thread_info parameter, move doc
9959 to header.
9960 * infrun.c (process_event_stop_test): Pass thread to
9961 set_step_info call.
9962 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9963 set_step_info.
9964 (prepare_one_step): Add thread_info parameter, pass it to
9965 set_step_frame and prepare_one_step (recursive) call.
9966 (step_1): Pass thread to prepare_one_step call.
9967 (step_command_fsm::should_stop): Pass thread to
9968 prepare_one_step.
9969 (until_next_fsm): Pass thread to set_step_frame call.
9970 (finish_command): Pass thread to set_step_info call.
9971
9972 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9973
9974 * windows-tdep.c (windows_solib_create_inferior_hook):
9975 Check if inferior is running.
9976
9977 2020-03-06 Tom de Vries <tdevries@suse.de>
9978
9979 * NEWS: Fix "the the".
9980 * ctfread.c: Same.
9981
9982 2020-03-06 Tom de Vries <tdevries@suse.de>
9983
9984 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9985
9986 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9987
9988 * .dir-locals.el: Add a comment referencing the other copies of
9989 this file.
9990
9991 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9992
9993 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9994 psargs.
9995
9996 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9997
9998 * .gitattributes: New file.
9999
10000 2020-03-04 Tom Tromey <tom@tromey.com>
10001
10002 * symmisc.c (print_symbol_bcache_statistics)
10003 (print_objfile_statistics): Update.
10004 * symfile.c (allocate_symtab): Use intern.
10005 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10006 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10007 macro_cache>: Remove.
10008 <string_cache>: New member.
10009 (struct objfile) <intern>: New methods.
10010 * elfread.c (elf_symtab_read): Use intern.
10011 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10012 (dwarf2_compute_name, dwarf2_physname)
10013 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10014 names.
10015 (guess_partial_die_structure_name): Update.
10016 (partial_die_info::fixup): Intern name.
10017 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10018 name.
10019 (dwarf2_name): Intern name. Update.
10020 * buildsym.c (buildsym_compunit::get_macro_table): Use
10021 string_cache.
10022
10023 2020-03-04 Tom Tromey <tom@tromey.com>
10024
10025 * jit.c (bfd_open_from_target_memory): Make "target" const.
10026 * corefile.c (gnutarget): Now const.
10027 * gdbcore.h (gnutarget): Now const.
10028
10029 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10030
10031 * NEWS: Mention support for WOW64 processes.
10032 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10033 (amd64_windows_segment_register_p): Remove static.
10034 (_initialize_amd64_windows_nat): Update.
10035 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10036 * i386-windows-nat.c (context_offset): Update.
10037 (i386_mappings): Rename and remove static.
10038 (i386_windows_segment_register_p): Remove static.
10039 (_initialize_i386_windows_nat): Update.
10040 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10041 (STATUS_WX86_SINGLE_STEP): New macro.
10042 (EnumProcessModulesEx): New macro.
10043 (Wow64SuspendThread): New macro.
10044 (Wow64GetThreadContext): New macro.
10045 (Wow64SetThreadContext): New macro.
10046 (Wow64GetThreadSelectorEntry): New macro.
10047 (windows_set_context_register_offsets): Add static.
10048 (windows_set_segment_register_p): Likewise.
10049 (windows_add_thread): Adapt for WOW64 processes.
10050 (windows_fetch_one_register): Likewise.
10051 (windows_nat_target::fetch_registers): Likewise.
10052 (windows_store_one_register): Likewise.
10053 (display_selector): Likewise.
10054 (display_selectors): Likewise.
10055 (handle_exception): Likewise.
10056 (windows_continue): Likewise.
10057 (windows_nat_target::resume): Likewise.
10058 (windows_add_all_dlls): Likewise.
10059 (do_initial_windows_stuff): Likewise.
10060 (windows_nat_target::attach): Likewise.
10061 (windows_get_exec_module_filename): Likewise.
10062 (windows_nat_target::create_inferior): Likewise.
10063 (windows_xfer_siginfo): Likewise.
10064 (_initialize_loadable): Initialize Wow64SuspendThread,
10065 Wow64GetThreadContext, Wow64SetThreadContext,
10066 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10067 * windows-nat.h (windows_set_context_register_offsets):
10068 Remove declaration.
10069 (windows_set_segment_register_p): Likewise.
10070 (i386_windows_segment_register_p): Add declaration.
10071 (amd64_windows_segment_register_p): Likewise.
10072
10073 2020-03-04 Luis Machado <luis.machado@linaro.org>
10074
10075 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10076 in "info registers" for AArch64/ARM.
10077
10078 The change caused "info registers" to not print GPR's.
10079
10080 gdb/ChangeLog:
10081
10082 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10083
10084 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10085 when reg->group is empty and reggroup is not.
10086
10087 2020-03-03 Tom Tromey <tromey@adacore.com>
10088
10089 * dwarf2/frame.c (struct dwarf2_frame_cache)
10090 <checked_tailcall_bottom, entry_cfa_sp_offset,
10091 entry_cfa_sp_offset_p>: Remove members.
10092 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10093 (dwarf2_frame_prev_register): Don't call
10094 dwarf2_tailcall_sniffer_first.
10095 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10096 * frame-unwind.c (add_unwinder): New fuction.
10097 (frame_unwind_init): Use it. Add tailcall unwinder.
10098
10099 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10100 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10101
10102 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10103 value should be printed as true.
10104
10105 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10106
10107 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10108 (windows_init_abi): Set and use windows_so_ops.
10109
10110 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10111
10112 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10113 when verifying if dealing with a convenience variable.
10114
10115 2020-03-03 Luis Machado <luis.machado@linaro.org>
10116
10117 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10118
10119 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10120
10121 * infrun.c (gdbarch_supports_displaced_stepping): New.
10122 (use_displaced_stepping): Break up conditions in smaller pieces.
10123 Use gdbarch_supports_displaced_stepping.
10124 (displaced_step_prepare_throw): Use
10125 gdbarch_supports_displaced_stepping.
10126
10127 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10128
10129 * NEWS: Mention new behaviour of the history filename.
10130 * top.c (write_history_p): Add comment.
10131 (show_write_history_p): Add header comment, give a different
10132 message when history writing is on, but the history filename is
10133 empty.
10134 (history_filename): Add comment.
10135 (history_filename_empty): New function.
10136 (show_history_filename): Add header comment, give a different
10137 message when the filename is empty.
10138 (init_history): Compare history_filename against nullptr, and only
10139 read history if the filename is not empty.
10140 (set_history_filename): Add header comment, and only make
10141 non-empty filenames absolute.
10142 (init_main): Make the filename argument to 'set history filename'
10143 optional.
10144
10145 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10146
10147 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10148 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10149 (fetch_fp_register): Update.
10150 (fetch_fp_regs): Update.
10151 (store_fp_register): Update.
10152 (store_fp_regs): Update.
10153 (arm_netbsd_nat_target::read_description): New function.
10154 (fetch_elfcore_registers): Update.
10155
10156 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10157
10158 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10159 general_thread if the stop reply is missing a thread-id.
10160 (remote_target::process_stop_reply): Use the first non-exited
10161 thread if the target didn't pass a thread-id.
10162 * infrun.c (do_target_wait): Move call to
10163 switch_to_inferior_no_thread to ....
10164 (do_target_wait_1): ... here.
10165
10166 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10167
10168 * debuginfod-support.c: Include defs.h first.
10169
10170 2020-02-28 Tom de Vries <tdevries@suse.de>
10171
10172 * symfile.c (set_initial_language): Use default language for lookup.
10173
10174 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10175
10176 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10177 reader variable, pass `this` to read_cutu_die_from_dwo.
10178
10179 2020-02-27 Aaron Merey <amerey@redhat.com>
10180
10181 * source.c (open_source_file): Check for nullptr when computing
10182 srcpath.
10183
10184 2020-02-27 Tom Tromey <tromey@adacore.com>
10185
10186 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10187 member.
10188 (dwarf2_add_field): Don't update nfields.
10189 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10190
10191 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10192
10193 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10194 abs.
10195
10196 2020-02-26 Tom Tromey <tom@tromey.com>
10197
10198 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10199 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10200 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10201 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10202 per_cu_data.
10203
10204 2020-02-26 Tom Tromey <tom@tromey.com>
10205
10206 * dwarf2/index-write.c (psym_index_map): Change type.
10207 (add_address_entry_worker, write_one_signatured_type)
10208 (recursively_count_psymbols, recursively_write_psymbols)
10209 (class debug_names, psyms_seen_size, write_gdbindex)
10210 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10211
10212 2020-02-26 Aaron Merey <amerey@redhat.com>
10213
10214 * Makefile.in: Handle optional debuginfod support.
10215 * NEWS: Update.
10216 * README: Add --with-debuginfod summary.
10217 * config.in: Regenerate.
10218 * configure: Regenerate.
10219 * configure.ac: Handle optional debuginfod support.
10220 * debuginfod-support.c: debuginfod helper functions.
10221 * debuginfod-support.h: Ditto.
10222 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10223 summary.
10224 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10225 when a dwz file cannot be found.
10226 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10227 debuginfo file cannot be found.
10228 * source.c (open_source_file): Query debuginfod servers when a
10229 source file cannot be found.
10230 * top.c (print_gdb_configuration): Include
10231 --{with,without}-debuginfod in the output.
10232
10233 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10234
10235 * thread.c (thr_try_catch_cmd): Print thread name.
10236
10237 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10238
10239 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10240 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10241 dwarf2_fetch_die_type_sect_off): Move to...
10242 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10243 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10244 dwarf2_fetch_die_type_sect_off): ... here.
10245 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10246 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10247 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10248
10249 2020-02-26 Tom de Vries <tdevries@suse.de>
10250
10251 PR gdb/25603
10252 * symfile.c (set_initial_language): Exit-early if
10253 language_mode == language_mode_manual.
10254
10255 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10256
10257 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10258 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10259 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10260
10261 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10262
10263 * gdbtypes.c (create_array_type_with_stride): Handle negative
10264 array strides.
10265 * valarith.c (value_subscripted_rvalue): Likewise.
10266
10267 2020-02-25 Luis Machado <luis.machado@linaro.org>
10268
10269 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10270
10271 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10272
10273 * loc.h (dwarf2_get_die_type): Move to...
10274 * read.h (dwarf2_get_die_type): ... here.
10275 * read.c (dwarf2_get_die_type): Move doc to header.
10276
10277 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10278
10279 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10280 'gnulib/Makefile.in' to the list.
10281
10282 2020-02-24 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10285 Remove.
10286 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10287 XOBNEWVEC.
10288
10289 2020-02-24 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10292 New method.
10293 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10294 (dw2_do_instantiate_symtab, dw2_get_file_names)
10295 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10296
10297 2020-02-24 Tom Tromey <tom@tromey.com>
10298
10299 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10300 make_scoped_restore.
10301 (dwarf2_psymtab::read_symtab): Don't clear
10302 reading_partial_symbols.
10303
10304 2020-02-24 Tom de Vries <tdevries@suse.de>
10305
10306 PR gdb/25592
10307 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10308
10309 2020-02-24 Tom de Vries <tdevries@suse.de>
10310
10311 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10312 commands layout next/prev/regs.
10313
10314 2020-02-22 Tom Tromey <tom@tromey.com>
10315
10316 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10317 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10318
10319 2020-02-22 Tom Tromey <tom@tromey.com>
10320
10321 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10322
10323 2020-02-22 Tom Tromey <tom@tromey.com>
10324
10325 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10326 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10327 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10328 * tui/tui.c (_initialize_tui): Add usage text.
10329
10330 2020-02-22 Tom Tromey <tom@tromey.com>
10331
10332 * tui/tui-win.c (tui_set_focus_command)
10333 (tui_set_win_height_command): Use error_no_arg.
10334 (_initialize_tui_win): Update help text.
10335 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10336
10337 2020-02-22 Tom Tromey <tom@tromey.com>
10338
10339 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10340 * tui/tui-disasm.h (struct tui_disasm_window)
10341 <display_start_addr>: Declare.
10342 * tui/tui-source.h (struct tui_source_window)
10343 <display_start_addr>: Declare.
10344 * tui/tui-winsource.h (struct tui_source_window_base)
10345 <show_source_line, display_start_addr>: New methods.
10346 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10347 Rename and move to protected section.
10348 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10349 (tui_source_window_base::do_erase_source_content): Update.
10350 (tui_source_window_base::show_source_line): Now a method.
10351 (tui_source_window_base::show_source_content)
10352 (tui_source_window_base::tui_source_window_base)
10353 (tui_source_window_base::rerender)
10354 (tui_source_window_base::refill)
10355 (tui_source_window_base::do_scroll_horizontal)
10356 (tui_source_window_base::set_is_exec_point_at)
10357 (tui_source_window_base::update_breakpoint_info)
10358 (tui_source_window_base::update_exec_info): Update.
10359 * tui/tui-source.c (tui_source_window::set_contents)
10360 (tui_source_window::showing_source_p)
10361 (tui_source_window::do_scroll_vertical)
10362 (tui_source_window::location_matches_p)
10363 (tui_source_window::line_is_displayed): Update.
10364 (tui_source_window::display_start_addr): New method.
10365 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10366 (tui_disasm_window::do_scroll_vertical)
10367 (tui_disasm_window::location_matches_p): Update.
10368 (tui_disasm_window::display_start_addr): New method.
10369
10370 2020-02-22 Tom Tromey <tom@tromey.com>
10371
10372 * NEWS: Add entry for gdb.register_window_type.
10373 * tui/tui-layout.h (window_factory): New typedef.
10374 (tui_register_window): Declare.
10375 * tui/tui-layout.c (saved_tui_windows): New global.
10376 (tui_apply_current_layout): Use it.
10377 (tui_register_window): New function.
10378 * python/python.c (do_start_initialization): Call
10379 gdbpy_initialize_tui.
10380 (python_GdbMethods): Add "register_window_type" function.
10381 * python/python-internal.h (gdbpy_register_tui_window)
10382 (gdbpy_initialize_tui): Declare.
10383 * python/py-tui.c: New file.
10384 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10385
10386 2020-02-22 Tom Tromey <tom@tromey.com>
10387
10388 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10389
10390 2020-02-22 Tom Tromey <tom@tromey.com>
10391
10392 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10393 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10394 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10395 (tui_set_win_focus_to): Move from tui-win.c.
10396
10397 2020-02-22 Tom Tromey <tom@tromey.com>
10398
10399 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10400 functions.
10401 (known_window_types): New global.
10402 (tui_get_window_by_name): Reimplement.
10403 (initialize_known_windows): New function.
10404 (validate_window_name): Rewrite.
10405 (_initialize_tui_layout): Call initialize_known_windows.
10406
10407 2020-02-22 Tom Tromey <tom@tromey.com>
10408
10409 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10410 Remove constants.
10411 * tui/tui-winsource.h (struct tui_source_window_base)
10412 <tui_source_window_base>: Remove parameter.
10413 * tui/tui-winsource.c
10414 (tui_source_window_base::tui_source_window_base): Remove
10415 parameter.
10416 (tui_source_window_base::refill): Update.
10417 * tui/tui-stack.h (struct tui_locator_window)
10418 <tui_locator_window>: Update.
10419 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10420 Default the constructor.
10421 * tui/tui-regs.h (struct tui_data_item_window)
10422 <tui_data_item_window>: Default the constructor.
10423 (struct tui_data_window) <tui_data_window>: Likewise.
10424 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10425 Default the constructor.
10426 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10427 Default the constructor.
10428 <type>: Remove.
10429 (struct tui_win_info) <tui_win_info>: Default the constructor.
10430 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10431 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10432 Default the constructor.
10433
10434 2020-02-22 Tom Tromey <tom@tromey.com>
10435
10436 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10437 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10438 * tui/tui-win.c (tui_resize_all): Don't call
10439 tui_delete_invisible_windows.
10440 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10441 done.
10442 (tui_set_layout): Update.
10443 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10444 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10445 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10446
10447 2020-02-22 Tom Tromey <tom@tromey.com>
10448
10449 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10450 correctly.
10451
10452 2020-02-22 Tom Tromey <tom@tromey.com>
10453
10454 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10455
10456 2020-02-22 Tom Tromey <tom@tromey.com>
10457
10458 * tui/tui-winsource.h (struct tui_source_window_iterator)
10459 <inner_iterator>: New etytypedef.
10460 <tui_source_window_iterator>: Take "end" parameter.
10461 <tui_source_window_iterator>: Take iterator.
10462 <operator*, advance>: Update.
10463 <m_iter>: Change type.
10464 <m_end>: New field.
10465 (struct tui_source_windows) <begin, end>: Update.
10466 * tui/tui-layout.c (tui_windows): New global.
10467 (tui_apply_current_layout): Clear tui_windows.
10468 (tui_layout_window::apply): Update tui_windows.
10469 * tui/tui-data.h (tui_windows): Declare.
10470 (all_tui_windows): Now inline function.
10471 (class tui_window_iterator, struct all_tui_windows): Remove.
10472
10473 2020-02-22 Tom Tromey <tom@tromey.com>
10474
10475 PR tui/17850:
10476 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10477 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10478 "height" argument.
10479 (class tui_layout_window) <get_sizes>: Likewise.
10480 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10481 argument.
10482 <get_sizes>: Add "height" argument.
10483 <m_vertical>: New field.
10484 * tui/tui-layout.c (tui_layout_split::clone): Update.
10485 (tui_layout_split::get_sizes): Add "height" argument.
10486 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10487 (tui_new_layout_command): Parse "-horizontal".
10488 (_initialize_tui_layout): Update help string.
10489 (tui_layout_split::specification): Add "-horizontal" when needed.
10490 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10491 argument.
10492 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10493 New methods.
10494
10495 2020-02-22 Tom Tromey <tom@tromey.com>
10496
10497 * tui/tui-layout.h (enum tui_adjust_result): New.
10498 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10499 (class tui_layout_window) <adjust_size>: Return
10500 tui_adjust_result. Rewrite.
10501 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10502 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10503
10504 2020-02-22 Tom Tromey <tom@tromey.com>
10505
10506 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10507 parameter and return types.
10508 (class tui_layout_base) <specification>: Add "depth".
10509 (class tui_layout_window) <specification>: Add "depth".
10510 (class tui_layout_split) <specification>: Add "depth".
10511 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10512 and return types.
10513 (tui_new_layout_command): Parse sub-layouts.
10514 (_initialize_tui_layout): Update help string.
10515 (tui_layout_window::specification): Add "depth".
10516 (add_layout_command): Update.
10517
10518 2020-02-22 Tom Tromey <tom@tromey.com>
10519
10520 * NEWS: Add "tui new-layout" item.
10521 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10522 Add new-layout command to help text.
10523 (validate_window_name): New function.
10524 (tui_new_layout_command): New function.
10525 (_initialize_tui_layout): Register "new-layout".
10526 (tui_layout_window::specification): New method.
10527 (tui_layout_window::specification): New method.
10528 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10529 method.
10530 (class tui_layout_window) <specification>: New method.
10531 (class tui_layout_split) <specification>: New method.
10532
10533 2020-02-22 Tom Tromey <tom@tromey.com>
10534
10535 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10536 * tui/tui-win.c (window_name_completer): Update comment.
10537 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10538 Declare method.
10539 (class tui_layout_window) <replace_window>: Likewise.
10540 (class tui_layout_split) <replace_window>: Likewise.
10541 (tui_set_layout): Don't declare.
10542 (tui_set_initial_layout): Declare function.
10543 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10544 (asm_regs_layout): New globals.
10545 (tui_current_layout, show_layout): Remove.
10546 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10547 (find_layout, tui_apply_layout): New function.
10548 (layout_completer): Remove.
10549 (tui_next_layout): Reimplement.
10550 (tui_next_layout_command): New function.
10551 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10552 (tui_regs_layout): Reimplement.
10553 (tui_regs_layout_command): New function.
10554 (extract_display_start_addr): Rewrite.
10555 (next_layout, prev_layout): Remove.
10556 (tui_layout_window::replace_window): New method.
10557 (tui_layout_split::replace_window): New method.
10558 (destroy_layout): New function.
10559 (layout_list): New global.
10560 (add_layout_command): New function.
10561 (initialize_layouts): Update.
10562 (tui_layout_command): New function.
10563 (_initialize_tui_layout): Install "layout" commands.
10564 * tui/tui-data.h (enum tui_layout_type): Remove.
10565 (tui_current_layout): Don't declare.
10566
10567 2020-02-22 Tom Tromey <tom@tromey.com>
10568
10569 * tui/tui-regs.c (tui_reg_layout): Remove.
10570 (tui_reg_command): Use tui_regs_layout.
10571 * tui/tui-layout.h (tui_reg_command): Declare.
10572 * tui/tui-layout.c (tui_reg_command): New function.
10573
10574 2020-02-22 Tom Tromey <tom@tromey.com>
10575
10576 * tui/tui.c (tui_rl_delete_other_windows): Call
10577 tui_remove_some_windows.
10578 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10579 Declare method.
10580 (class tui_layout_window) <remove_windows>: New method.
10581 (class tui_layout_split) <remove_windows>: Declare.
10582 (tui_remove_some_windows): Declare.
10583 * tui/tui-layout.c (tui_remove_some_windows): New function.
10584 (tui_layout_split::remove_windows): New method.
10585
10586 2020-02-22 Tom Tromey <tom@tromey.com>
10587
10588 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10589 * tui/tui-layout.h (tui_next_layout): Declare.
10590 * tui/tui-layout.c (tui_next_layout): New function.
10591
10592 2020-02-22 Tom Tromey <tom@tromey.com>
10593
10594 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10595 correct coordinates.
10596
10597 2020-02-22 Tom Tromey <tom@tromey.com>
10598
10599 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10600 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10601 DATA_WIN case.
10602
10603 2020-02-22 Tom Tromey <tom@tromey.com>
10604
10605 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10606 TUI_DISASM_WIN, not tui_win_list.
10607
10608 2020-02-22 Tom Tromey <tom@tromey.com>
10609
10610 * valprint.c (generic_val_print_enum_1)
10611 (val_print_type_code_flags): Style member names.
10612 * rust-lang.c (val_print_struct, rust_print_enum)
10613 (rust_print_struct_def, rust_internal_print_type): Style member
10614 names.
10615 * p-valprint.c (pascal_object_print_value_fields): Style member
10616 names. Only call fprintf_symbol_filtered for static members.
10617 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10618 * f-valprint.c (f_val_print): Style member names.
10619 * f-typeprint.c (f_type_print_base): Style member names.
10620 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10621 call fprintf_symbol_filtered for static members.
10622 (cp_print_class_member): Style member names.
10623 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10624 member names.
10625 * ada-valprint.c (ada_print_scalar): Style enum names.
10626 (ada_val_print_enum): Likewise.
10627 * ada-typeprint.c (print_enum_type): Style enum names.
10628
10629 2020-02-21 Tom Tromey <tom@tromey.com>
10630
10631 * psympriv.h (struct partial_symtab): Update comment.
10632
10633 2020-02-21 Tom Tromey <tromey@adacore.com>
10634
10635 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10636 type is CORE_ADDR.
10637
10638 2020-02-21 Tom de Vries <tdevries@suse.de>
10639
10640 PR gdb/25534
10641 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10642 if dependencies[i]->user != NULL.
10643
10644 2020-02-21 Ali Tamur <tamur@google.com>
10645
10646 * dwarf2/read.c (dwarf2_name): Add null check.
10647
10648 2020-02-20 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10651 ">=", in binary search.
10652 (dwarf2_find_containing_comp_unit): New overload.
10653 (run_test): New self-test.
10654 (_initialize_dwarf2_read): Register new test.
10655
10656 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
10657
10658 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10659 * riscv-tdep.h: Likewise.
10660 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10661 rv32-only CSR.
10662 * features/riscv/64bit-csr.xml: Regenerated.
10663
10664 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10665 Tom Tromey <tom@tromey.com>
10666
10667 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10668 of 'fputc_unfiltered'.
10669 (putchar_unfiltered): Call 'fputc_unfiltered'.
10670 (fputc_unfiltered): Call 'fputs_unfiltered'.
10671
10672 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10673
10674 * config.in: Regenerate.
10675 * configure: Regenerate.
10676 * configure.ac: Add --with-python-libdir option.
10677 * main.c: Use WITH_PYTHON_LIBDIR.
10678
10679 2020-02-19 Tom Tromey <tom@tromey.com>
10680
10681 * symtab.c (general_symbol_info::compute_and_set_names): Use
10682 obstack_strndup. Simplify call to symbol_set_demangled_name.
10683
10684 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * dwarf2/read.c (allocate_signatured_type_table,
10687 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10688 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10689 Remove objfile parameter, update all callers.
10690
10691 2020-02-19 Doug Evans <dje@google.com>
10692
10693 PR rust/25535
10694 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10695 rust_enum_variant calculation.
10696
10697 2020-02-19 Tom Tromey <tromey@adacore.com>
10698
10699 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10700
10701 2020-02-19 Tom Tromey <tromey@adacore.com>
10702
10703 * ada-lang.c (cache_symbol): Use obstack_strdup.
10704
10705 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10706
10707 * configure: Regenerate.
10708
10709 2020-02-19 Tom Tromey <tromey@adacore.com>
10710
10711 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10712 NULL check.
10713
10714 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10715
10716 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10717
10718 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10719
10720 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10721 if GDBSERVER is not defined.
10722 (riscv_tdesc_cache): Likewise, also store const target_desc.
10723 (STATIC_IN_GDB): Define.
10724 (riscv_create_target_description): Update declaration with
10725 STATIC_IN_GDB.
10726 (riscv_lookup_target_description): New function, only define if
10727 GDBSERVER is not defined.
10728 * arch/riscv.h (riscv_create_target_description): Declare only
10729 when GDBSERVER is defined.
10730 (riscv_lookup_target_description): New declaration when GDBSERVER
10731 is not defined.
10732 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10733 (riscv_linux_read_features): ...this, and return
10734 riscv_gdbarch_features instead of target_desc.
10735 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10736 (riscv_linux_read_description): Rename to...
10737 (riscv_linux_read_features): ...this.
10738 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10739 Update to use riscv_gdbarch_features and
10740 riscv_lookup_target_description.
10741 * riscv-tdep.c (riscv_find_default_target_description): Use
10742 riscv_lookup_target_description instead of
10743 riscv_create_target_description.
10744
10745 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10746
10747 * valprint.c (generic_val_print_enum_1): When printing a flag
10748 enum with value 0 and there is no enumerator with value 0, print
10749 just "0" instead of "(unknown: 0x0)".
10750
10751 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * valprint.c (generic_val_print_enum_1): Print unknown part of
10754 flag enum in hex.
10755
10756 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10757
10758 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10759 flag enums to contain duplicate enumerators.
10760 * valprint.c (generic_val_print_enum_1): Update comment.
10761
10762 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10763
10764 * dwarf2/read.c: Include "count-one-bits.h".
10765 (update_enumeration_type_from_children): If an enumerator has
10766 multiple bits set, don't treat the enumeration as a "flag enum".
10767 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10768 of flag enums have 0 or 1 bit set.
10769
10770 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10771
10772 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10773 conversion.
10774 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10775 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10776 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10777 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10778 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10779
10780 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10783
10784 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10785
10786 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10787 displaced_step_closure_up.
10788 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10789 (struct displaced_step_closure_up):
10790 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10791 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10792 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10793 Likewise.
10794 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10795 * gdbarch.c, gdbarch.h: Re-generate.
10796 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10797 displaced_step_closure_up.
10798 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10799 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10800 * infrun.h (displaced_step_closure_up): New type alias.
10801 (struct displaced_step_inferior_state) <step_closure>: Change
10802 type to displaced_step_closure_up.
10803 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10804 displaced_step_closure_up.
10805 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10806
10807 2020-02-14 Tom Tromey <tom@tromey.com>
10808
10809 * minidebug.c (gnu_debug_key): New global.
10810 (find_separate_debug_file_in_section): Use it.
10811
10812 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10813
10814 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10815 std::unique_ptr.
10816 * gdbarch.c: Re-generate.
10817 * gdbarch.h: Re-generate.
10818 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10819 change.
10820 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10821 type to std::unique_ptr.
10822 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10823 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10824 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10825 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10826 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10827 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10828 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10829 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10830 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10831
10832 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10833
10834 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10835 std::unique_ptr.
10836 (displaced_step_clear): Rename to...
10837 (displaced_step_reset): ... this. Just call displaced->reset ().
10838 (displaced_step_clear_cleanup): Rename to...
10839 (displaced_step_reset_cleanup): ... this.
10840 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10841 (displaced_step_fixup): Likewise.
10842 (resume_1): Likewise.
10843 (handle_inferior_event): Restore child's memory before calling
10844 displaced_step_fixup on the parent.
10845 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10846 to std::unique_ptr.
10847 <step_closure>: Change type to std::unique_ptr.
10848
10849 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10850
10851 * arm-tdep.c: Include count-one-bits.h.
10852 (cleanup_block_store_pc): Use count_one_bits.
10853 (cleanup_block_load_pc): Use count_one_bits.
10854 (arm_copy_block_xfer): Use count_one_bits.
10855 (thumb2_copy_block_xfer): Use count_one_bits.
10856 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10857 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10858 (thumb_get_next_pcs_raw): Use count_one_bits.
10859 (arm_get_next_pcs_raw): Use count_one_bits_l.
10860 * arch/arm.c (bitcount): Remove.
10861 * arch/arm.h (bitcount): Remove.
10862
10863 2020-02-14 Tom Tromey <tromey@adacore.com>
10864
10865 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10866 Update.
10867 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10868 * dwarf2/loc.c (call_site_find_chain_1): Return
10869 unique_xmalloc_ptr.
10870 (call_site_find_chain): Likewise.
10871
10872 2020-02-14 Richard Biener <rguenther@suse.de>
10873
10874 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10875 on expression with division operators.
10876
10877 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10878
10879 * MAINTAINERS (Write After Approval): Adding myself.
10880
10881 2020-02-12 Tom Tromey <tom@tromey.com>
10882
10883 * event-loop.c (event_data, gdb_event, event_handler_func):
10884 Remove.
10885
10886 2020-02-12 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10889 (dwarf2_frame_objfile_data): Add comment.
10890 (find_comp_unit, set_comp_unit): New functions.
10891 (dwarf2_frame_find_fde): Use find_comp_unit.
10892 (dwarf2_build_frame_info): Use set_comp_unit.
10893
10894 2020-02-12 Tom Tromey <tom@tromey.com>
10895
10896 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10897 (comp_unit): Don't initialize objfile.
10898 (execute_cfa_program): Add text_offset parameter.
10899 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10900 (dwarf2_frame_cache): Update.
10901 (dwarf2_build_frame_info): Don't set "objfile" member.
10902
10903 2020-02-12 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10906 (decode_frame_entry): Likewise.
10907 (dwarf2_build_frame_info): Update.
10908
10909 2020-02-12 Tom Tromey <tom@tromey.com>
10910
10911 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10912 (decode_frame_entry_1): Use the comp_unit obstack.
10913
10914 2020-02-12 Tom Tromey <tom@tromey.com>
10915
10916 * dwarf2/frame.c (struct comp_unit): Add initializers and
10917 constructor.
10918 (dwarf2_frame_objfile_data): Store a comp_unit.
10919 (dwarf2_frame_find_fde): Update.
10920 (dwarf2_build_frame_info): Use "new".
10921
10922 2020-02-12 Tom Tromey <tom@tromey.com>
10923
10924 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10925 (dwarf2_fde_table): Typedef for std::vector.
10926 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10927 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10928 (decode_frame_entry): Update.
10929 (dwarf2_build_frame_info): Use "new".
10930
10931 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10932
10933 * arm-tdep.c (arm_gdbarch_init): Update.
10934 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10935 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10936 have_neon, is_m>: Change to bool.
10937
10938 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10939
10940 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10941
10942 2020-02-12 Tom Tromey <tom@tromey.com>
10943
10944 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10945
10946 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10947
10948 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10949 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10950
10951 2020-02-11 Tom Tromey <tom@tromey.com>
10952
10953 * psymtab.h: Update comment.
10954
10955 2020-02-11 Tom Tromey <tom@tromey.com>
10956
10957 * gdb_obstack.h (struct auto_obstack): Use
10958 DISABLE_COPY_AND_ASSIGN.
10959
10960 2020-02-11 Tom Tromey <tom@tromey.com>
10961
10962 * dwarf2/frame.h (struct objfile): Don't forward declare.
10963
10964 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10965
10966 * cris-tdep.c (cris_supply_gregset): Change signature to match
10967 what struct regset expects.
10968 (cris_regset): New struct.
10969 (fetch_core_registers): Remove.
10970 (cris_iterate_over_regset_sections): New function.
10971 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10972 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10973
10974 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10975
10976 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10977 registers.
10978
10979 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10980
10981 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
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 * configure: Re-generate.
10990
10991 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10992
10993 * acinclude: Update warning.m4 path.
10994 * warning.m4: Move to gdbsupport.
10995
10996 2020-02-11 Tom Tromey <tromey@adacore.com>
10997
10998 * remote.c (remote_console_output): Update.
10999 * printcmd.c (printf_command): Update.
11000 * event-loop.c (gdb_wait_for_event): Update.
11001 * linux-nat.c (sigchld_handler): Update.
11002 * remote-sim.c (gdb_os_write_stdout): Update.
11003 (gdb_os_flush_stdout): Update.
11004 (gdb_os_flush_stderr): Update.
11005 (gdb_os_write_stderr): Update.
11006 * exceptions.c (print_exception): Update.
11007 * remote-fileio.c (remote_fileio_func_read): Update.
11008 (remote_fileio_func_write): Update.
11009 * tui/tui.c (tui_enable): Update.
11010 * tui/tui-interp.c (tui_interp::init): Update.
11011 * utils.c (init_page_info): Update.
11012 (putchar_unfiltered, fputc_unfiltered): Update.
11013 (gdb_flush): Update.
11014 (emit_style_escape): Update.
11015 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11016 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11017 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11018 (stderr_file::write): Update.
11019 (stderr_file::puts): Update.
11020 * ui-file.h (ui_file_isatty, ui_file_write)
11021 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11022 (ui_file_puts): Don't declare.
11023
11024 2020-02-10 Tom de Vries <tdevries@suse.de>
11025
11026 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11027 sentinel to char *.
11028
11029 2020-02-09 Tom de Vries <tdevries@suse.de>
11030
11031 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11032 filename if it matches "<artificial>".
11033
11034 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11035
11036 * windows-tdep.c (struct enum_value_name): New struct.
11037 (create_enum): New function.
11038 (windows_get_siginfo_type): Create and use enum types.
11039
11040 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11041
11042 * NEWS: Mention $_siginfo support for Windows.
11043 * windows-nat.c (handle_exception): Set siginfo_er.
11044 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11045 (windows_xfer_siginfo): New function.
11046 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11047 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11048 (init_windows_gdbarch_data): New function.
11049 (get_windows_gdbarch_data): New function.
11050 (windows_get_siginfo_type): New function.
11051 (windows_init_abi): Register windows_get_siginfo_type.
11052 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11053
11054 2020-02-08 Tom Tromey <tom@tromey.com>
11055
11056 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11057 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11058 <keep>: Declare method.
11059 <m_keep>: Remove member.
11060 <~cutu_reader>: Remove.
11061 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11062 (cutu_reader::cutu_reader): Update.
11063 (cutu_reader::keep): Rename from ~cutu_reader.
11064 (process_psymtab_comp_unit, build_type_psymtabs_1)
11065 (process_skeletonless_type_unit, load_partial_comp_unit)
11066 (load_full_comp_unit, dwarf2_read_addr_index)
11067 (read_signatured_type): Update.
11068
11069 2020-02-08 Tom Tromey <tom@tromey.com>
11070
11071 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11072 "want_partial_unit" parameter.
11073 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11074 Inline check for DW_TAG_partial_unit.
11075 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11076
11077 2020-02-08 Tom Tromey <tom@tromey.com>
11078
11079 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11080 read.c.
11081 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11082 read.c.
11083
11084 2020-02-08 Tom Tromey <tom@tromey.com>
11085
11086 * dwarf2/read.c (read_address): Move to comp-unit.c.
11087 (dwarf2_rnglists_process, dwarf2_ranges_process)
11088 (read_attribute_value, dwarf_decode_lines_1)
11089 (var_decode_location, decode_locdesc): Update.
11090 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11091 read.c. Remove "cu" parameter.
11092 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11093 method.
11094
11095 2020-02-08 Tom Tromey <tom@tromey.com>
11096
11097 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11098 (read_indirect_line_string): Update.
11099 * dwarf2/comp-unit.c (read_offset): Remove.
11100 (read_comp_unit_head): Update.
11101 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11102 method.
11103 (read_offset): Don't declare.
11104
11105 2020-02-08 Tom Tromey <tom@tromey.com>
11106
11107 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11108 * dwarf2/read.c (struct comp_unit_head): Move to
11109 dwarf2/comp-unit.h.
11110 (enum class rcuh_kind): Move to comp-unit.h.
11111 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11112 (read_comp_unit_head, error_check_comp_unit_head)
11113 (read_and_check_comp_unit_head): Move to comp-unit.c.
11114 (read_offset, dwarf_unit_type_name): Likewise.
11115 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11116 (cutu_reader::cutu_reader, read_call_site_scope)
11117 (find_partial_die, follow_die_offset): Update.
11118 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11119
11120 2020-02-08 Tom Tromey <tom@tromey.com>
11121
11122 * dwarf2/read.c (read_offset_1): Move to leb.c.
11123 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11124 (dwarf_decode_macro_bytes): Update.
11125 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11126 * dwarf2/leb.h (read_offset): Declare.
11127
11128 2020-02-08 Tom Tromey <tom@tromey.com>
11129
11130 * dwarf2/read.c (dwarf2_section_size): Remove.
11131 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11132 Update.
11133 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11134
11135 2020-02-08 Tom Tromey <tom@tromey.com>
11136
11137 * dwarf2/read.c (read_initial_length): Move to leb.c.
11138 * dwarf2/leb.h (read_initial_length): Declare.
11139 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11140 handle_nonstd parameter.
11141 * dwarf2/frame.c (read_initial_length): Remove.
11142 (decode_frame_entry_1): Update.
11143
11144 2020-02-08 Tom Tromey <tom@tromey.com>
11145
11146 * dwarf2/loc.c (dwarf2_find_location_expression)
11147 (dwarf_evaluate_loc_desc::get_tls_address)
11148 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11149 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11150 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11151 (dwarf2_compile_property_to_c)
11152 (dwarf2_loc_desc_get_symbol_read_needs)
11153 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11154 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11155 (loclist_describe_location, loclist_tracepoint_var_ref)
11156 (loclist_generate_c_location): Update.
11157 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11158 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11159 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11160 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11161 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11162 (dwarf2_per_cu_data::addr_size)
11163 (dwarf2_per_cu_data::ref_addr_size)
11164 (dwarf2_per_cu_data::text_offset)
11165 (dwarf2_per_cu_data::addr_type): Now methods.
11166 (per_cu_header_read_in): Make per_cu "const".
11167 (dwarf2_version): Remove.
11168 (dwarf2_per_cu_data::int_type): Now a method.
11169 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11170 (set_die_type, read_array_type, read_subrange_index_type)
11171 (read_tag_string_type, read_subrange_type): Update.
11172 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11173 offset_size, ref_addr_size, text_offset, addr_type, version,
11174 objfile, int_type, addr_sized_int_type>: Declare methods.
11175
11176 2020-02-08 Tom Tromey <tom@tromey.com>
11177
11178 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11179 Move earlier.
11180
11181 2020-02-08 Tom Tromey <tom@tromey.com>
11182
11183 * dwarf2/read.h (dwarf_line_debug): Declare.
11184 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11185 * dwarf2/read.c: Move line_header code to new files.
11186 (dwarf_line_debug): No longer static.
11187 * dwarf2/line-header.c: New file.
11188 * dwarf2/line-header.h: New file.
11189
11190 2020-02-08 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2/read.c (struct line_header) <file_full_name,
11193 file_file_name>: Return unique_xmalloc_ptr.
11194 (line_header::file_file_name): Update.
11195 (line_header::file_full_name): Update.
11196 (dw2_get_file_names_reader): Update.
11197 (macro_start_file): Update.
11198
11199 2020-02-08 Tom Tromey <tom@tromey.com>
11200
11201 * dwarf2/read.c (struct line_header) <file_full_name,
11202 file_file_name>: Declare methods.
11203 (dw2_get_file_names_reader): Update.
11204 (file_file_name): Now a method.
11205 (file_full_name): Likewise.
11206 (macro_start_file): Update.
11207
11208 2020-02-08 Tom Tromey <tom@tromey.com>
11209
11210 * dwarf2/read.c (dwarf_always_disassemble)
11211 (show_dwarf_always_disassemble): Move to loc.c.
11212 (_initialize_dwarf2_read): Move "always-disassemble" registration
11213 to loc.c.
11214 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11215 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11216 static.
11217 (show_dwarf_always_disassemble): Move from read.c.
11218 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11219
11220 2020-02-08 Tom Tromey <tom@tromey.com>
11221
11222 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11223 (create_quick_file_names_table): Return htab_up.
11224 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11225 Update.
11226 * dwarf2/read.h (struct dwarf2_per_objfile)
11227 <quick_file_names_table>: Now htab_up.
11228
11229 2020-02-08 Tom Tromey <tom@tromey.com>
11230
11231 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11232
11233 2020-02-08 Tom Tromey <tom@tromey.com>
11234
11235 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11236 Rewrite.
11237 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11238 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11239 (abbrev_table::abbrev_table): No longer inline.
11240 (ABBREV_HASH_SIZE): Remove.
11241 (abbrev_table::m_abbrevs): Now an htab_up.
11242
11243 2020-02-08 Tom Tromey <tom@tromey.com>
11244
11245 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11246 (cutu_reader): Update.
11247 (build_type_psymtabs_1): Update.
11248 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11249 (abbrev_table::alloc_abbrev): Update.
11250 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11251 (abbrev_table::read): New static method, renamed from
11252 abbrev_table_read_table.
11253 (abbrev_table::alloc_abbrev)
11254 (abbrev_table::add_abbrev): Now private.
11255 (abbrev_table::abbrev_table): Now private.
11256 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11257
11258 2020-02-08 Tom Tromey <tom@tromey.com>
11259
11260 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11261 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11262 htab_up.
11263
11264 2020-02-08 Tom Tromey <tom@tromey.com>
11265
11266 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11267 htab_up.
11268 (lookup_dwo_unit_in_dwp): Update.
11269 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11270 on obstack.
11271
11272 2020-02-08 Tom Tromey <tom@tromey.com>
11273
11274 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11275 obstack.
11276
11277 2020-02-08 Tom Tromey <tom@tromey.com>
11278
11279 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11280 line_header_hash.
11281 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11282 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11283 Change type to htab_up.
11284
11285 2020-02-08 Tom Tromey <tom@tromey.com>
11286
11287 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11288 htab_up. Don't allocate on obstack.
11289 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11290 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11291 Change type to htab_up.
11292
11293 2020-02-08 Tom Tromey <tom@tromey.com>
11294
11295 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11296 Change type to htab_up.
11297 * dwarf2/read.c (create_signatured_type_table_from_index)
11298 (create_signatured_type_table_from_debug_names)
11299 (create_all_type_units, add_type_unit)
11300 (lookup_dwo_signatured_type, lookup_signatured_type)
11301 (process_skeletonless_type_unit): Update.
11302 (create_debug_type_hash_table, create_debug_types_hash_table):
11303 Change type of types_htab.
11304 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11305 htab_up. Don't allocate on obstack.
11306 (create_cus_hash_table): Change type of cus_htab parameter.
11307 (struct dwo_file) <cus, tus>: Now htab_up.
11308 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11309 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11310 (queue_and_load_all_dwo_tus): Update.
11311 * dwarf2/index-write.c (write_gdbindex): Update.
11312 (write_debug_names): Update.
11313
11314 2020-02-08 Tom Tromey <tom@tromey.com>
11315
11316 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11317 dwarf2/read.c. Remove "next" member. Add constructor ntad
11318 destructor.
11319 (struct dwarf2_per_objfile) <queue>: New member.
11320 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11321 dwarf2/read.h.
11322 (dwarf2_queue, dwarf2_queue_tail): Remove.
11323 (class dwarf2_queue_guard): Add parameter to constructor. Use
11324 DISABLE_COPY_AND_ASSIGN.
11325 <m_per_objfile>: New member.
11326 <~dwarf2_queue_guard>: Rewrite.
11327 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11328 Update.
11329 (~dwarf2_queue_item): New.
11330
11331 2020-02-08 Tom Tromey <tom@tromey.com>
11332
11333 * dwarf2/read.c (struct die_info) <has_children>: New member.
11334 (dw2_get_file_names_reader): Remove has_children.
11335 (dw2_get_file_names): Update.
11336 (read_cutu_die_from_dwo): Remove has_children.
11337 (cutu_reader::init_tu_and_read_dwo_dies)
11338 (cutu_reader::cutu_reader): Update.
11339 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11340 Remove has_children.
11341 (build_type_psymtabs_1, process_skeletonless_type_unit)
11342 (load_partial_comp_unit, load_full_comp_unit): Update.
11343 (create_dwo_cu_reader): Remove has_children.
11344 (create_cus_hash_table, read_die_and_children): Update.
11345 (read_full_die_1,read_full_die): Remove has_children.
11346 (read_signatured_type): Update.
11347 (class cutu_reader) <has_children>: Remove.
11348
11349 2020-02-08 Tom Tromey <tom@tromey.com>
11350
11351 * dwarf2/expr.c: Rename from dwarf2expr.c.
11352 * dwarf2/expr.h: Rename from dwarf2expr.h.
11353 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11354 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11355 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11356 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11357 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11358 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11359 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11360 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11361 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11362 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11363 * dwarf2/loc.c: Rename from dwarf2loc.c.
11364 * dwarf2/loc.h: Rename from dwarf2loc.h.
11365 * dwarf2/read.c: Rename from dwarf2read.c.
11366 * dwarf2/read.h: Rename from dwarf2read.h.
11367 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11368 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11369 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11370 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11371 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11372 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11373 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11374 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11375 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11376 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11377 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11378 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11379 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11380 Update.
11381 * Makefile.in (COMMON_SFILES): Update.
11382 (HFILES_NO_SRCDIR): Update.
11383
11384 2020-02-08 Tom Tromey <tom@tromey.com>
11385
11386 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11387 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11388
11389 2020-02-08 Tom Tromey <tom@tromey.com>
11390
11391 * dwarf2read.h (struct die_info): Don't declare.
11392
11393 2020-02-08 Tom Tromey <tom@tromey.com>
11394
11395 * dwarf2read.h (die_info_ptr): Remove typedef.
11396
11397 2020-02-08 Tom Tromey <tom@tromey.com>
11398
11399 * dwarf2read.c (read_call_site_scope)
11400 (handle_data_member_location, dwarf2_add_member_fn)
11401 (mark_common_block_symbol_computed, read_common_block)
11402 (attr_to_dynamic_prop, partial_die_info::read)
11403 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11404 (dwarf2_symbol_mark_computed, set_die_type): Update.
11405 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11406 method.
11407 (attr_form_is_block): Don't declare.
11408 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11409
11410 2020-02-08 Tom Tromey <tom@tromey.com>
11411
11412 * dwarf2read.c (dwarf2_find_base_address, )
11413 (read_call_site_scope, rust_containing_type)
11414 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11415 (handle_data_member_location, dwarf2_add_member_fn)
11416 (get_alignment, read_structure_type, process_structure_scope)
11417 (mark_common_block_symbol_computed, read_common_block)
11418 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11419 (partial_die_info::read, read_attribute_value, new_symbol)
11420 (lookup_die_type, dwarf2_get_ref_die_offset)
11421 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11422 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11423 (dwarf2_symbol_mark_computed): Update.
11424 * dwarf2/attribute.h (struct attribute) <value_as_address,
11425 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11426 methods.
11427 (value_as_address, attr_form_is_section_offset)
11428 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11429 * dwarf2/attribute.c (attribute::value_as_address)
11430 (attribute::form_is_section_offset, attribute::form_is_constant)
11431 (attribute::form_is_ref): Now methods.
11432
11433 2020-02-08 Tom Tromey <tom@tromey.com>
11434
11435 * dwarf2read.c (struct attribute, DW_STRING)
11436 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11437 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11438 (attr_form_is_block, attr_form_is_section_offset)
11439 (attr_form_is_constant, attr_form_is_ref): Move.
11440 * dwarf2/attribute.h: New file.
11441 * dwarf2/attribute.c: New file, from dwarf2read.c.
11442 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11443
11444 2020-02-08 Tom Tromey <tom@tromey.com>
11445
11446 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11447 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11448 Move.
11449 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11450 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11451 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11452 abbrev.c.
11453 * dwarf2/abbrev.h: New file.
11454 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11455 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11456
11457 2020-02-08 Tom Tromey <tom@tromey.com>
11458
11459 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11460 (dwarf2_section_size, dwarf2_get_section_info)
11461 (create_signatured_type_table_from_debug_names)
11462 (create_addrmap_from_aranges, read_debug_names_from_section)
11463 (get_gdb_index_contents_from_section, read_comp_unit_head)
11464 (error_check_comp_unit_head, read_abbrev_offset)
11465 (create_debug_type_hash_table, init_cu_die_reader)
11466 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11467 (read_comp_units_from_section, create_cus_hash_table)
11468 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11469 (create_dwp_v2_section, dwarf2_rnglists_process)
11470 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11471 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11472 (read_indirect_string_from_dwz, read_addr_index_1)
11473 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11474 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11475 (fill_in_loclist_baton): Update.
11476 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11477 get_containing_section, get_bfd_owner, get_bfd_section,
11478 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11479 (dwarf2_read_section, get_section_name, get_section_file_name)
11480 (get_containing_section, get_section_bfd_owner)
11481 (get_section_bfd_section, get_section_name, get_section_file_name)
11482 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11483 declare.
11484 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11485 (dwarf2_section_info::get_bfd_owner)
11486 (dwarf2_section_info::get_bfd_section)
11487 (dwarf2_section_info::get_name)
11488 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11489 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11490 (dwarf2_section_info::read): Now methods.
11491 * dwarf-index-write.c (class debug_names): Update.
11492
11493 2020-02-08 Tom Tromey <tom@tromey.com>
11494
11495 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11496 Move to dwarf2/section.h.
11497 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11498 (get_section_bfd_section, get_section_name)
11499 (get_section_file_name, get_section_id, get_section_flags)
11500 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11501 dwarf2/section.c.
11502 * dwarf2/section.h: New file.
11503 * dwarf2/section.c: New file, from dwarf2read.c.
11504 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11505
11506 2020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11509 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11510 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11511 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11512 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11513 * dwarf2/leb.h: New file, from dwarf2read.c.
11514 * dwarf2/leb.c: New file, from dwarf2read.c.
11515 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11516 Remove.
11517 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11518 (COMMON_SFILES): Add dwarf2/leb.c.
11519
11520 2020-02-08 Joel Brobecker <brobecker@adacore.com>
11521
11522 GDB 9.1 released.
11523
11524 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11525
11526 PR gdb/25190:
11527 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11528 * gdb/remote.c (remote_console_output): Update.
11529 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11530 (ui_file_puts): ...this.
11531 * gdb/ui-file.h (ui_file_puts): Add declaration.
11532 * gdb/utils.c (emit_style_escape): Update.
11533 (flush_wrap_buffer): Update.
11534 (fputs_maybe_filtered): Update.
11535 (fputs_unfiltered): Add function.
11536
11537 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11538
11539 * gdb/event-loop.c (gdb_wait_for_event): Update.
11540 * gdb/printcmd.c (printf_command): Update.
11541 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11542 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11543 (gdb_os_flush_stderr): Update.
11544 * gdb/remote.c (remote_console_output): Update.
11545 * gdb/ui-file.c (gdb_flush): Rename to...
11546 (ui_file_flush): ...this.
11547 (stderr_file::write): Update.
11548 (stderr_file::puts): Update.
11549 * gdb/ui-file.h (gdb_flush): Rename to...
11550 (ui_file_flush): ...this.
11551 * gdb/utils.c (gdb_flush): Add function.
11552 * gdb/utils.h (gdb_flush): Add declaration.
11553
11554 2020-02-07 Tom Tromey <tromey@adacore.com>
11555
11556 PR breakpoints/24915:
11557 * source.c (find_and_open_source): Do not check basenames_may_differ.
11558
11559 2020-02-07 Tom Tromey <tom@tromey.com>
11560
11561 * README: Update gdbserver documentation.
11562 * gdbserver: Move to top level.
11563 * configure.tgt (build_gdbserver): Remove.
11564 * configure.ac: Remove --enable-gdbserver.
11565 * configure: Rebuild.
11566 * Makefile.in (distclean): Don't mention gdbserver.
11567
11568 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11569
11570 * source-cache.c (source_cache::ensure): Surround
11571 get_plain_source_lines with a try/catch.
11572 (source_cache::get_line_charpos): Get rid of try/catch
11573 and only check for the return value of "ensure".
11574 * tui/tui-source.c (tui_source_window::set_contents):
11575 Simplify "nlines" calculation.
11576
11577 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
11578
11579 * MAINTAINERS (Write After Approval): Add myself.
11580
11581 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11582
11583 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11584 function call.
11585
11586 2020-02-05 Christian Biesinger <cbiesinger@google.com>
11587
11588 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11589
11590 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
11591
11592 * nat/riscv-linux-tdesc.h: New file.
11593 * nat/riscv-linux-tdesc.c: New file, taking code from...
11594 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11595 ... here.
11596 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11597 NATDEPFILES.
11598
11599 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11602 we don't set the fake simulator ptid to the null_ptid.
11603
11604 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
11605
11606 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11607 * gdbthread.h (class thread_info) <resumed>: Likewise.
11608 * infrun.c (resume_1): Likewise.
11609 (proceed): Likewise.
11610 (infrun_thread_stop_requested): Likewise.
11611 (stop_all_threads): Likewise.
11612 (handle_inferior_event): Likewise.
11613 (restart_threads): Likewise.
11614 (finish_step_over): Likewise.
11615 (keep_going_stepped_thread): Likewise.
11616 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11617 (linux_handle_extended_wait): Likewise.
11618 * record-btrace.c (get_thread_current_frame_id): Likewise.
11619 * record-full.c (record_full_wait_1): Likewise.
11620 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11621 * target.c (target_resume): Likewise.
11622 * thread.c (set_running_thread): Likewise.
11623
11624 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11625
11626 * f-valprint.c (f77_print_array_1): Changed datatype of index
11627 variable to LONGEST from int to enable it to contain bound
11628 values correctly.
11629
11630 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
11631
11632 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11633 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11634 offsets according to FLEN determined.
11635 (riscv_linux_nat_target::read_description): Determine FLEN
11636 dynamically.
11637 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11638 according to FLEN determined.
11639 (riscv_linux_nat_target::store_registers): Likewise.
11640
11641 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11642
11643 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11644 when reg->group is empty and reggroup is not.
11645
11646 2020-01-31 Tom Tromey <tromey@adacore.com>
11647
11648 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11649 Call beneath target's mourn_inferior after unpushing.
11650
11651 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11652
11653 PR tui/9765
11654 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11655 have enough lines to fill the screen, still return the lowest
11656 address we found.
11657
11658 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11659
11660 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11661 '-', '<', and '>' commands.
11662
11663 2020-01-29 Pedro Alves <palves@redhat.com>
11664 Sergio Durigan Junior <sergiodj@redhat.com>
11665
11666 * infcmd.c (construct_inferior_arguments): Assert that
11667 'argc' is greater than 0.
11668
11669 2020-01-29 Luis Machado <luis.machado@linaro.org>
11670
11671 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11672 (BRK_INSN_MASK): Define to 0xd4200000.
11673 (aarch64_program_breakpoint_here_p): New function.
11674 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11675 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11676 breakpoint.c.
11677 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11678 breakpoint.h
11679 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11680 call gdbarch_program_breakpoint_here_p.
11681 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11682 default_program_breakpoint_here_p, changed return type to bool and
11683 simplified.
11684 * breakpoint.h (program_breakpoint_here): Moved prototype to
11685 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11686 return type to bool.
11687 * gdbarch.c: Regenerate.
11688 * gdbarch.h: Regenerate.
11689 * gdbarch.sh (program_breakpoint_here_p): New method.
11690 * infrun.c (handle_signal_stop): Call
11691 gdbarch_program_breakpoint_here_p.
11692
11693 2020-01-26 Tom Tromey <tom@tromey.com>
11694
11695 * ctfread.c (struct ctf_fp_info): Reindent.
11696 (_initialize_ctfread): Remove.
11697
11698 2020-01-26 Tom Tromey <tom@tromey.com>
11699
11700 * psymtab.c (partial_map_expand_apply)
11701 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11702 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11703 (psym_print_stats, psym_expand_symtabs_for_function)
11704 (psym_map_symbol_filenames, psym_map_matching_symbols)
11705 (psym_expand_symtabs_matching)
11706 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11707 (maintenance_check_psymtabs): Use new methods.
11708 * psympriv.h (struct partial_symtab) <readin_p,
11709 get_compunit_symtab>: New methods.
11710 <readin, compunit_symtab>: Remove members.
11711 (struct standard_psymtab): New.
11712 (struct legacy_psymtab): Derive from standard_psymtab.
11713 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11714 standard_psymtab.
11715 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11716
11717 2020-01-26 Tom Tromey <tom@tromey.com>
11718
11719 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11720 read_dependencies. Add assert.
11721 * psymtab.c (partial_symtab::read_dependencies): New method.
11722 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11723 method.
11724 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11725 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11726 read_dependencies.
11727 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11728 Add assert.
11729
11730 2020-01-26 Tom Tromey <tom@tromey.com>
11731
11732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11733 Call expand_psymtab.
11734 (xcoff_read_symtab): Call expand_psymtab.
11735 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11736 legacy_expand_psymtab.
11737 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11738 method.
11739 (struct legacy_psymtab) <expand_psymtab>: Implement.
11740 <legacy_expand_psymtab>: New member.
11741 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11742 (parse_partial_symbols): Set legacy_expand_psymtab.
11743 (psymtab_to_symtab_1): Change argument order. Call
11744 expand_psymtab.
11745 (new_psymtab): Set legacy_expand_psymtab.
11746 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11747 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11748 expand_psymtab.
11749 (dwarf2_psymtab::expand_psymtab): Rename from
11750 psymtab_to_symtab_1. Call expand_psymtab.
11751 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11752 (dbx_end_psymtab): Likewise.
11753 (dbx_psymtab_to_symtab_1): Change argument order. Call
11754 expand_psymtab.
11755 (dbx_read_symtab): Call expand_psymtab.
11756 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11757 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11758 (ctf_psymtab::read_symtab): Call expand_psymtab.
11759
11760 2020-01-26 Tom Tromey <tom@tromey.com>
11761
11762 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11763 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11764 messages.
11765 * mdebugread.c (mdebug_read_symtab): Remove prints.
11766 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11767 assert.
11768 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11769
11770 2020-01-26 Tom Tromey <tom@tromey.com>
11771
11772 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11773 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11774 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11775 legacy_symtab.
11776 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11777 * psymtab.c (psymtab_to_symtab): Call method.
11778 (dump_psymtab): Update.
11779 * psympriv.h (struct partial_symtab): Add virtual destructor.
11780 <read_symtab>: New method.
11781 (struct legacy_symtab): New.
11782 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11783 (struct pst_map) <pst>: Now a legacy_psymtab.
11784 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11785 (new_psymtab): Use legacy_psymtab.
11786 * dwarf2read.h (struct dwarf2_psymtab): New.
11787 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11788 * dwarf2read.c (dwarf2_create_include_psymtab)
11789 (dwarf2_build_include_psymtabs, create_type_unit_group)
11790 (create_partial_symtab, process_psymtab_comp_unit_reader)
11791 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11792 (set_partial_user): Use dwarf2_psymtab.
11793 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11794 (psymtab_to_symtab_1, process_full_comp_unit)
11795 (process_full_type_unit, dwarf2_ranges_read)
11796 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11797 (dwarf_decode_lines): Use dwarf2_psymtab.
11798 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11799 (add_address_entry_worker, write_one_signatured_type)
11800 (recursively_count_psymbols, recursively_write_psymbols)
11801 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11802 (write_debug_names): Likewise.
11803 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11804 <pst>: Now a legacy_psymtab.
11805 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11806 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11807 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11808 * ctfread.c (struct ctf_psymtab): New.
11809 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11810 ctf_psymtab.
11811 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11812 (create_partial_symtab): Return a ctf_psymtab.
11813 (scan_partial_symbols): Update.
11814
11815 2020-01-26 Tom Tromey <tom@tromey.com>
11816
11817 * xcoffread.c (xcoff_start_psymtab): Use new.
11818 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11819 renamed from start_psymtab_common.
11820 * psympriv.h (struct partial_symtab): Add new constructor.
11821 (start_psymtab_common): Don't declare.
11822 * mdebugread.c (parse_partial_symbols): Use new.
11823 * dwarf2read.c (create_partial_symtab): Use new.
11824 * dbxread.c (start_psymtab): Use new.
11825 * ctfread.c (create_partial_symtab): Use new.
11826
11827 2020-01-26 Tom Tromey <tom@tromey.com>
11828
11829 * xcoffread.c (xcoff_end_psymtab): Use new.
11830 * psymtab.c (start_psymtab_common): Use new.
11831 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11832 Update.
11833 * psympriv.h (struct partial_symtab): Add parameters to
11834 constructor. Don't inline.
11835 (allocate_psymtab): Don't declare.
11836 * mdebugread.c (new_psymtab): Use new.
11837 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11838 * dbxread.c (dbx_end_psymtab): Use new.
11839
11840 2020-01-26 Tom Tromey <tom@tromey.com>
11841
11842 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11843 allocate_psymtab. Update documentation.
11844 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11845 allocate_psymtab. Do not use new.
11846 (allocate_psymtab): Use new. Update.
11847
11848 2020-01-26 Tom Tromey <tom@tromey.com>
11849
11850 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11851 * psymtab.c (psym_print_stats): Update.
11852 * psympriv.h (struct partial_symtab) <readin,
11853 psymtabs_addrmap_supported, anonymous>: Now bool.
11854 * mdebugread.c (psymtab_to_symtab_1): Update.
11855 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11856 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11857 (process_full_comp_unit, process_full_type_unit): Update.
11858 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11859 * ctfread.c (psymtab_to_symtab): Update.
11860
11861 2020-01-26 Tom Tromey <tom@tromey.com>
11862
11863 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11864 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11865 * psymtab.c (psymtab_storage): Delete psymtabs.
11866 (psymtab_storage::allocate_psymtab): Use new.
11867 (psymtab_storage::discard_psymtab): Use delete.
11868 * psympriv.h (struct partial_symtab): Add constructor and
11869 initializers.
11870
11871 2020-01-26 Tom Tromey <tom@tromey.com>
11872
11873 * machoread.c: Do not include psympriv.h.
11874
11875 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11876
11877 * NEWS: Mention the new option and the set/show commands.
11878
11879 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11880
11881 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11882 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11883 (validate_exec_file): New variables, enums, functions.
11884 (exec_file_locate_attach, print_section_info): Style the filenames.
11885 (_initialize_exec): Install show_exec_file_mismatch_command and
11886 set_exec_file_mismatch_command.
11887 * gdbcore.h (validate_exec_file): Declare.
11888 * infcmd.c (attach_command): Call validate_exec_file.
11889 * remote.c ( remote_target::remote_add_inferior): Likewise.
11890
11891 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11892
11893 * frame.c (find_frame_sal): Move call to get_next_frame into more
11894 inner scope.
11895 * inline-frame.c (inilne_state) <inline_state>: Update argument
11896 types.
11897 (inilne_state) <skipped_symbol>: Rename to...
11898 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11899 (skip_inline_frames): Build vector of skipped symbols and use this
11900 to reate the inline_state.
11901 (inline_skipped_symbol): Add a comment and some assertions, fetch
11902 skipped symbol from the list.
11903
11904 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11905
11906 * buildsym.c (lte_is_less_than): Delete.
11907 (buildsym_compunit::end_symtab_with_blockvector): Create local
11908 lambda function to sort line table entries, and use
11909 std::stable_sort instead of std::sort.
11910 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11911 markers when looking for a previous line.
11912
11913 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * dwarf2read.c (lnp_state_machine::record_line): Include
11916 end_sequence parameter in debug print out. Record the line if we
11917 are at an end_sequence marker even if it's not the start of a
11918 statement.
11919 * symmisc.c (maintenance_print_one_line_table): Print end of
11920 sequence markers with 'END' not '0'.
11921
11922 2020-01-24 Pedro Alves <palves@redhat.com>
11923
11924 PR gdb/25410
11925 * thread.c (scoped_restore_current_thread::restore): Use
11926 switch_to_inferior_no_thread.
11927 * exec.c: Include "progspace-and-thread.h".
11928 (add_target_sections, remove_target_sections):
11929 scoped_restore_current_pspace_and_thread instead of
11930 scoped_restore_current_thread.
11931 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11932 and aspace to the inferior before calling clone_program_space.
11933 Remove stale comment.
11934
11935 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11936
11937 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11938 (arm_netbsd_nat_target::fetch_registers): ...this.
11939 (arm_nbsd_nat_target::store_registers): Rename to...
11940 (arm_netbsd_nat_target::store_registers): ...this.
11941
11942 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11943
11944 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11945 register_t.
11946
11947 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11948
11949 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11950 Update comment.
11951 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11952 Likewise.
11953 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11954 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11955 the correct replacement (iterate_over_regset_sections).
11956 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11957 Update comment.
11958
11959 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11960
11961 PR gdb/23718
11962 * gdb/python/python.c (execute_gdb_command): Call
11963 async_enable_stdin in catch block.
11964
11965 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11966
11967 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11968 SWITCH_THRU_ALL_UIS.
11969
11970 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11971
11972 PR tui/9765
11973 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11974 comment, add extra parameter, and update to store previous symbol
11975 when appropriate.
11976 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11977 add extra parameter.
11978 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11979 remove unneeded parameter, add try/catch around gdb_print_insn,
11980 rewrite to add items to asm_lines vector.
11981 (tui_find_backward_disassembly_start_address): New function.
11982 (tui_find_disassembly_address): Updated throughout.
11983 (tui_disasm_window::set_contents): Update for changes to
11984 tui_disassemble.
11985 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11986 number of lines to scroll.
11987
11988 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11989
11990 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11991 (SECT_OFF_DATA): Likewise.
11992 (SECT_OFF_RODATA): Likewise.
11993 (SECT_OFF_TEXT): Likewise.
11994 (SECT_OFF_BSS): Likewise.
11995 (struct objfile) <text_section_offset, data_section_offset>: New
11996 methods.
11997 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11998 objfile::text_section_offset.
11999 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12000 * coffread.c (coff_symtab_read): Likewise.
12001 (enter_linenos): Likewise.
12002 (process_coff_symbol): Likewise.
12003 * ctfread.c (get_objfile_text_range): Likewise.
12004 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12005 Use objfile::data_section_offset.
12006 * dwarf2-frame.c (execute_cfa_program): Use
12007 objfile::text_section_offset.
12008 (dwarf2_frame_find_fde): Likewise.
12009 * dwarf2read.c (create_addrmap_from_index): Likewise.
12010 (create_addrmap_from_aranges): Likewise.
12011 (dw2_find_pc_sect_compunit_symtab): Likewise.
12012 (process_psymtab_comp_unit_reader): Likewise.
12013 (add_partial_symbol): Likewise.
12014 (add_partial_subprogram): Likewise.
12015 (process_full_comp_unit): Likewise.
12016 (read_file_scope): Likewise.
12017 (read_func_scope): Likewise.
12018 (read_lexical_block_scope): Likewise.
12019 (read_call_site_scope): Likewise.
12020 (dwarf2_rnglists_process): Likewise.
12021 (dwarf2_ranges_process): Likewise.
12022 (dwarf2_ranges_read): Likewise.
12023 (dwarf_decode_lines_1): Likewise.
12024 (new_symbol): Likewise.
12025 (dwarf2_fetch_die_loc_sect_off): Likewise.
12026 (dwarf2_per_cu_text_offset): Likewise.
12027 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12028 * hppa-tdep.c (read_unwind_info): Likewise.
12029 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12030 * psympriv.h (struct partial_symtab): Likewise.
12031 * psymtab.c (find_pc_sect_psymtab): Likewise.
12032 * solib-svr4.c (enable_break): Likewise.
12033 * stap-probe.c (relocate_address): Use
12034 objfile::data_section_offset.
12035 * xcoffread.c (enter_line_range): Use
12036 objfile::text_section_offset.
12037 (read_xcoff_symtab): Likewise.
12038
12039 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12040
12041 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12042 declaration to narrower scopes.
12043
12044 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12045
12046 * darwin-nat.h (struct darwin_exception_msg, enum
12047 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12048 Move up.
12049 (class darwin_nat_target) <wait_1, check_new_threads,
12050 decode_exception_message, decode_message, stop_inferior,
12051 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12052 * darwin-nat.c (darwin_check_new_threads): Rename to...
12053 (darwin_nat_target::check_new_threads): ... this.
12054 (darwin_suspend_inferior_it): Remove.
12055 (darwin_decode_exception_message): Rename to...
12056 (darwin_nat_target::decode_exception_message): ... this.
12057 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12058 (darwin_decode_message): Rename to...
12059 (darwin_nat_target::decode_message): ... this.
12060 (cancel_breakpoint): Rename to...
12061 (darwin_nat_target::cancel_breakpoint): ... this.
12062 (darwin_wait): Rename to...
12063 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12064 instead of iterate_over_inferiors.
12065 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12066 (darwin_stop_inferior): Rename to...
12067 (darwin_nat_target::stop_inferior): ... this.
12068 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12069 (darwin_init_thread_list): Rename to...
12070 (darwin_nat_target::init_thread_list): ... this.
12071 (darwin_ptrace_him): Rename to...
12072 (darwin_nat_target::ptrace_him): ... this.
12073 (darwin_nat_target::create_inferior): Pass lambda function to
12074 fork_inferior.
12075 (darwin_nat_target::detach): Call stop_inferior instead of
12076 darwin_stop_inferior.
12077 * fork-inferior.h (fork_inferior): Change init_trace_fun
12078 parameter to gdb::function_view.
12079 * fork-inferior.c (fork_inferior): Likewise.
12080
12081 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12082
12083 * i386-cygwin-tdep.c (core_process_module_section): Update.
12084 * windows-nat.c (struct lm_info_windows): Add text_offset.
12085 (windows_xfer_shared_libraries): Update.
12086 * windows-tdep.c (windows_xfer_shared_library):
12087 Add text_offset_cached argument.
12088 * windows-tdep.h (windows_xfer_shared_library): Update.
12089
12090 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12091
12092 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12093
12094 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12095
12096 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12097 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12098 replace with range-based for.
12099 (gdbsim_interrupt_inferior): Remove.
12100 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12101 with a range-based for. Inline code from
12102 gdbsim_interrupt_inferior.
12103
12104 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12105
12106 * infrun.c (proceed): Fix indentation.
12107
12108 2020-01-21 Tom Tromey <tromey@adacore.com>
12109
12110 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12111 * python/python.c (python_extension_ops): Update.
12112 (gdbpy_colorize): New function.
12113 * python/lib/gdb/__init__.py (colorize): New function.
12114 * extension.h (ext_lang_colorize): Declare.
12115 * extension.c (ext_lang_colorize): New function.
12116 * extension-priv.h (struct extension_language_ops) <colorize>: New
12117 member.
12118 * cli/cli-style.c (_initialize_cli_style): Update help text.
12119
12120 2020-01-21 Luis Machado <luis.machado@linaro.org>
12121
12122 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12123 <cond>: Change type to bool.
12124 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12125 (aarch64_displaced_step_cb): Likewise.
12126 (aarch64_displaced_step_tb): Likewise.
12127
12128 2020-01-21 Luis Machado <luis.machado@linaro.org>
12129
12130 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12131 output.
12132
12133 2020-01-21 Luis Machado <luis.machado@linaro.org>
12134
12135 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12136 <pc_adjust>: Adjust the documentation.
12137 (aarch64_displaced_step_fixup): Check if PC really moved before
12138 adjusting it.
12139
12140 2020-01-19 Tom Tromey <tom@tromey.com>
12141
12142 * disasm.c (~gdb_disassembler): New destructor.
12143 (gdb_buffered_insn_length): Call disassemble_free_target.
12144 * disasm.h (class gdb_disassembler): Declare destructor. Use
12145 DISABLE_COPY_AND_ASSIGN.
12146
12147 2020-01-19 Tom Tromey <tom@tromey.com>
12148
12149 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12150 (die_reader_func_ftype): Remove.
12151 (cutu_reader): New class.
12152 (dw2_get_file_names_reader): Remove "data" parameter.
12153 (dw2_get_file_names): Use cutu_reader.
12154 (create_debug_type_hash_table): Update.
12155 (read_cutu_die_from_dwo): Update comment.
12156 (lookup_dwo_unit): Add dwo_name parameter.
12157 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12158 die_reader_func_ftype and data parameters.
12159 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12160 Remove die_reader_func_ftype and data parameters.
12161 (~cutu_reader): New; from init_cutu_and_read_dies.
12162 (cutu_reader::cutu_reader): Rename from
12163 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12164 and data parameters.
12165 (init_cutu_and_read_dies_simple): Remove.
12166 (struct process_psymtab_comp_unit_data): Remove.
12167 (process_psymtab_comp_unit_reader): Remove data parameter; add
12168 want_partial_unit and pretend_language parameters.
12169 (process_psymtab_comp_unit): Use cutu_reader.
12170 (build_type_psymtabs_reader): Remove data parameter.
12171 (build_type_psymtabs_1): Use cutu_reader.
12172 (process_skeletonless_type_unit): Likewise.
12173 (load_partial_comp_unit_reader): Remove.
12174 (load_partial_comp_unit): Use cutu_reader.
12175 (load_full_comp_unit_reader): Remove.
12176 (load_full_comp_unit): Use cutu_reader.
12177 (struct create_dwo_cu_data): Remove.
12178 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12179 dwo_unit parameters.
12180 (create_cus_hash_table): Use cutu_reader.
12181 (struct dwarf2_read_addr_index_data): Remove.
12182 (dwarf2_read_addr_index_reader): Remove.
12183 (dwarf2_read_addr_index): Use cutu_reader.
12184 (read_signatured_type_reader): Remove.
12185 (read_signatured_type): Use cutu_reader.
12186
12187 2020-01-19 Tom Tromey <tom@tromey.com>
12188
12189 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12190 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12191 (tui_wrefresh): Declare.
12192 * tui/tui-wingeneral.c (suppress_output): New global.
12193 (tui_suppress_output, ~tui_suppress_output): New constructor and
12194 destructor.
12195 (tui_wrefresh): New function.
12196 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12197 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12198 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12199 method.
12200 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12201 tui_wrefresh.
12202 (tui_data_window::no_refresh): New method.
12203 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12204 (tui_reg_command): Use tui_suppress_output
12205 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12206 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12207 method.
12208 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12209
12210 2020-01-19 Tom Tromey <tom@tromey.com>
12211
12212 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12213 Handle case where symtab is null.
12214
12215 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12216
12217 * linux-fork.c (one_fork_p): Simplify.
12218
12219 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12220
12221 * top.c (struct qt_args): Remove.
12222 (kill_or_detach): Change return type to void, replace `void *`
12223 parameter with a proper one.
12224 (print_inferior_quit_action): Likewise.
12225 (quit_confirm): Use range-based for loop to iterate over inferiors.
12226 (quit_force): Likewise.
12227
12228 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12229
12230 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12231 `void *` parameter with proper parameters.
12232 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12233 (print_one_inferior): Change return type to void, replace `void *`
12234 parameter with proper parameters.
12235 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12236 inferiors.
12237 (get_other_inferior): Remove.
12238 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12239 inferiors.
12240
12241 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12242
12243 * mi/mi-interp.c (report_initial_inferior): Remove.
12244 (mi_interp::init): Use range-based for to iterate over inferiors.
12245
12246 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12247
12248 * python/py-inferior.c (build_inferior_list): Remove.
12249 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12250
12251 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12252
12253 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12254 (btrace_stitch_trace): Likewise.
12255 * charset.c (intermediate_encoding): Likewise (vaild).
12256 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12257 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12258 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12259
12260 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12261
12262 * windows-tdep.c (windows_get_tlb_type):
12263 Add rtl_user_process_parameters type.
12264
12265 2020-01-16 Pedro Alves <palves@redhat.com>
12266 Norbert Lange <nolange79@gmail.com>
12267
12268 PR build/24805
12269 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12270 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12271 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12272 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12273 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12274 (ps_plog): Redeclare exported functions with default visibility.
12275
12276 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12277
12278 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12279 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12280
12281 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12282
12283 * infcmd.c (post_create_inferior): Use get_thread_regcache
12284 instead of get_current_regcache.
12285
12286 2020-01-14 Tom Tromey <tom@tromey.com>
12287
12288 PR symtab/12535:
12289 * python/python.c (gdbpy_decode_line): Treat empty string the same
12290 as no argument.
12291
12292 2020-01-14 Tom Tromey <tom@tromey.com>
12293
12294 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12295
12296 2020-01-14 Tom Tromey <tom@tromey.com>
12297
12298 * nat/linux-btrace.c: Don't include <config.h>.
12299 * nat/linux-ptrace.c: Don't include <config.h>.
12300 * nat/x86-linux-dregs.c: Don't include <config.h>.
12301
12302 2020-01-14 Tom Tromey <tom@tromey.com>
12303
12304 * configure: Rebuild.
12305 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12306
12307 2020-01-14 Tom Tromey <tom@tromey.com>
12308
12309 * nat/x86-linux-dregs.c: Include configh.h.
12310 * nat/linux-ptrace.c: Include configh.h.
12311 * nat/linux-btrace.c: Include configh.h.
12312 * defs.h: Include config.h, bfd.h.
12313 * configure.ac: Don't source common.host.
12314 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12315 * configure: Rebuild.
12316 * acinclude.m4: Update path.
12317 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12318 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12319 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12320 (CLIBS): Add LIBSUPPORT.
12321 (CDEPS): Likewise.
12322 (COMMON_SFILES): Remove gdbsupport files.
12323 (HFILES_NO_SRCDIR): Likewise.
12324 (stamp-version): Update path to create-version.sh.
12325 (ALLDEPFILES): Remove gdbsupport files.
12326
12327 2020-01-14 Tom Tromey <tom@tromey.com>
12328
12329 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12330 USE_WIN32API when needed.
12331 * configure.ac (USE_WIN32API): Don't define.
12332 (WIN32LIBS): Use WIN32APILIBS.
12333 * configure: Rebuild.
12334
12335 2020-01-14 Tom Tromey <tom@tromey.com>
12336
12337 * configure: Rebuild.
12338 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12339
12340 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12341
12342 * skip.c (skip_function_command): Make skip w/o arguments use the
12343 name of the inlined function if pc is inside any inlined function.
12344
12345 2020-01-14 Luis Machado <luis.machado@linaro.org>
12346
12347 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12348 * infrun.c (resume_1): Likewise.
12349 (handle_inferior_event): Remove stale comment.
12350 * linux-nat.c (linux_nat_target::resume): Update comments.
12351 (save_stop_reason): Likewise.
12352 (linux_nat_filter_event): Likewise.
12353 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12354
12355 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12356
12357 * elfread.c (record_minimal_symbol): Set section index to 0 for
12358 non-allocatable sections.
12359
12360
12361 2020-01-13 Ali Tamur <tamur@google.com>
12362
12363 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12364 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12365 to gdb::optional. Update comments.
12366 (dwo_file): Update comments.
12367 (read_attribute): Update API to take an additional out parameter,
12368 need_reprocess. This is used to mark attributes that need other
12369 attributes (e.g. str_offsets_base) for correct computation which may not
12370 have been read yet.
12371 (read_attribute_reprocess): New function declaration.
12372 (read_addr_index): Likewise.
12373 (read_dwo_str_index): Likewise.
12374 (read_stub_str_index): Likewise.
12375 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12376 (lookup_addr_base): New function definition.
12377 (lookup_ranges_base): Likewise.
12378 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12379 lookup_ranges_base.
12380 (init_cutu_and_read_dies): Update comments.
12381 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12382 unit. This is used to inherit parent's str_offsets_base and addr_base.
12383 Update comments.
12384 (init_cutu_and_read_dies_simple): Reflect API changes.
12385 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12386 (create_cus_hash_table): Change API to take parent compile unit.
12387 Reflect API changes.
12388 (open_and_init_dwo_file): Reflect API changes.
12389 (dwarf2_get_pc_bounds): Update comments.
12390 (dwarf2_record_block_ranges): Likewise.
12391 (read_full_die_1): Change implementation to reprocess attributes that
12392 need str_offsets_base and addr_base.
12393 (partial_die_info::read): Likewise.
12394 (read_attribute_reprocess): New function definition.
12395 (read_attribute_value): Change API to take an additional out parameter,
12396 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12397 when a non-dwo compile unit has index based attributes.
12398 (read_attribute): Reflect API changes.
12399 (read_addr_index_1): Reflect API changes. Update comments.
12400 (dwarf2_read_addr_index_data): Reflect API changes.
12401 (dwarf2_read_addr_index): Likewise.
12402 (read_str_index): Change API and implementation. This becomes a helper
12403 to be used by the new string index related methods. Update error
12404 message and comments.
12405 (read_dwo_str_index): New function definition.
12406 (read_stub_str_index): Likewise.
12407 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12408 * symfile.h (dwarf2_debug_sections): Likewise.
12409 * xcoffread.c (dwarf2_debug_sections): Likewise.
12410
12411 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12412
12413 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12414 core_reg_sect type to gdb_byte *.
12415 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12416 * cris-tdep.c (fetch_core_registers): Likewise.
12417 * corelow.c (core_target::get_core_register_section): Change
12418 type of `contents` to gdb::byte_vector.
12419
12420 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12421
12422 * tui/tui-wingeneral.c (box_win): Position the title in the center
12423 of the border.
12424
12425 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * corelow.c (core_target::get_core_register_section): Use
12428 std::vector instead of alloca.
12429
12430 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12431
12432 * warning.m4: Add -Wmissing-declarations to build_warnings.
12433 * configure: Re-generate.
12434
12435 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12436
12437 * python/python.c (init__gdb_module): Add declaration.
12438
12439 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12440
12441 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12442 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12443 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12444 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12445 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12446 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12447 * ada-exp.y (_initialize_ada_exp): Add declaration.
12448 * ada-lang.c (_initialize_ada_language): Add declaration.
12449 * ada-tasks.c (_initialize_tasks): Add declaration.
12450 * agent.c (_initialize_agent): Add declaration.
12451 * aix-thread.c (_initialize_aix_thread): Add declaration.
12452 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12453 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12454 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12455 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12456 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12457 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12458 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12459 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12460 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12461 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12462 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12463 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12464 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12465 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12466 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12467 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12468 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12469 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12470 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12471 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12472 * annotate.c (_initialize_annotate): Add declaration.
12473 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12474 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12475 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12476 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12477 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12478 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12479 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12480 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12481 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12482 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12483 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12484 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12485 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12486 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12487 * auto-load.c (_initialize_auto_load): Add declaration.
12488 * auxv.c (_initialize_auxv): Add declaration.
12489 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12490 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12491 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12492 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12493 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12494 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12495 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12496 * breakpoint.c (_initialize_breakpoint): Add declaration.
12497 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12498 * btrace.c (_initialize_btrace): Add declaration.
12499 * charset.c (_initialize_charset): Add declaration.
12500 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12501 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12502 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12503 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12504 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12505 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12506 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12507 * coffread.c (_initialize_coffread): Add declaration.
12508 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12509 * compile/compile.c (_initialize_compile): Add declaration.
12510 * complaints.c (_initialize_complaints): Add declaration.
12511 * completer.c (_initialize_completer): Add declaration.
12512 * copying.c (_initialize_copying): Add declaration.
12513 * corefile.c (_initialize_core): Add declaration.
12514 * corelow.c (_initialize_corelow): Add declaration.
12515 * cp-abi.c (_initialize_cp_abi): Add declaration.
12516 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12517 * cp-support.c (_initialize_cp_support): Add declaration.
12518 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12519 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12520 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12521 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12522 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12523 * ctfread.c (_initialize_ctfread): Add declaration.
12524 * d-lang.c (_initialize_d_language): Add declaration.
12525 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12526 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12527 * dbxread.c (_initialize_dbxread): Add declaration.
12528 * dcache.c (_initialize_dcache): Add declaration.
12529 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12530 * disasm.c (_initialize_disasm): Add declaration.
12531 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12532 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12533 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12534 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12535 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12536 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12537 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12538 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12539 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12540 * elfread.c (_initialize_elfread): Add declaration.
12541 * exec.c (_initialize_exec): Add declaration.
12542 * extension.c (_initialize_extension): Add declaration.
12543 * f-lang.c (_initialize_f_language): Add declaration.
12544 * f-valprint.c (_initialize_f_valprint): Add declaration.
12545 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12546 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12547 * filesystem.c (_initialize_filesystem): Add declaration.
12548 * findcmd.c (_initialize_mem_search): Add declaration.
12549 * findvar.c (_initialize_findvar): Add declaration.
12550 * fork-child.c (_initialize_fork_child): Add declaration.
12551 * frame-base.c (_initialize_frame_base): Add declaration.
12552 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12553 * frame.c (_initialize_frame): Add declaration.
12554 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12555 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12556 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12557 * gcore.c (_initialize_gcore): Add declaration.
12558 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12559 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12560 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12561 * gdbarch.c (_initialize_gdbarch): Add declaration.
12562 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12563 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12564 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12565 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12566 * go-lang.c (_initialize_go_language): Add declaration.
12567 * go32-nat.c (_initialize_go32_nat): Add declaration.
12568 * guile/guile.c (_initialize_guile): Add declaration.
12569 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12570 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12571 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12572 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12573 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12574 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12575 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12576 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12577 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12578 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12579 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12580 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12581 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12582 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12583 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12584 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12585 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12586 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12587 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12588 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12589 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12590 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12591 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12592 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12593 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12594 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12595 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12596 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12597 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12598 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12599 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12600 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12601 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12602 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12603 * infcall.c (_initialize_infcall): Add declaration.
12604 * infcmd.c (_initialize_infcmd): Add declaration.
12605 * inflow.c (_initialize_inflow): Add declaration.
12606 * infrun.c (_initialize_infrun): Add declaration.
12607 * interps.c (_initialize_interpreter): Add declaration.
12608 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12609 * jit.c (_initialize_jit): Add declaration.
12610 * language.c (_initialize_language): Add declaration.
12611 * linux-fork.c (_initialize_linux_fork): Add declaration.
12612 * linux-nat.c (_initialize_linux_nat): Add declaration.
12613 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12614 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12615 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12616 * m2-lang.c (_initialize_m2_language): Add declaration.
12617 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12618 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12619 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12620 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12621 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12622 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12623 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12624 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12625 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12626 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12627 * machoread.c (_initialize_machoread): Add declaration.
12628 * macrocmd.c (_initialize_macrocmd): Add declaration.
12629 * macroscope.c (_initialize_macroscope): Add declaration.
12630 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12631 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12632 * maint.c (_initialize_maint_cmds): Add declaration.
12633 * mdebugread.c (_initialize_mdebugread): Add declaration.
12634 * memattr.c (_initialize_mem): Add declaration.
12635 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12636 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12637 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12638 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12639 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12640 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12641 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12642 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12643 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12644 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12645 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12646 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12647 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12648 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12649 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12650 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12651 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12652 * mipsread.c (_initialize_mipsread): Add declaration.
12653 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12654 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12655 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12656 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12657 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12658 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12659 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12660 * nto-procfs.c (_initialize_procfs): Add declaration.
12661 * objc-lang.c (_initialize_objc_language): Add declaration.
12662 * observable.c (_initialize_observer): Add declaration.
12663 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12664 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12665 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12666 * osabi.c (_initialize_gdb_osabi): Add declaration.
12667 * osdata.c (_initialize_osdata): Add declaration.
12668 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12669 * parse.c (_initialize_parse): Add declaration.
12670 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12671 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12672 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12673 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12674 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12675 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12676 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12677 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12678 * printcmd.c (_initialize_printcmd): Add declaration.
12679 * probe.c (_initialize_probe): Add declaration.
12680 * proc-api.c (_initialize_proc_api): Add declaration.
12681 * proc-events.c (_initialize_proc_events): Add declaration.
12682 * proc-service.c (_initialize_proc_service): Add declaration.
12683 * procfs.c (_initialize_procfs): Add declaration.
12684 * producer.c (_initialize_producer): Add declaration.
12685 * psymtab.c (_initialize_psymtab): Add declaration.
12686 * python/python.c (_initialize_python): Add declaration.
12687 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12688 * record-btrace.c (_initialize_record_btrace): Add declaration.
12689 * record-full.c (_initialize_record_full): Add declaration.
12690 * record.c (_initialize_record): Add declaration.
12691 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12692 * regcache.c (_initialize_regcache): Add declaration.
12693 * reggroups.c (_initialize_reggroup): Add declaration.
12694 * remote-notif.c (_initialize_notif): Add declaration.
12695 * remote-sim.c (_initialize_remote_sim): Add declaration.
12696 * remote.c (_initialize_remote): Add declaration.
12697 * reverse.c (_initialize_reverse): Add declaration.
12698 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12699 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12700 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12701 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12702 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12703 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12704 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12705 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12706 Add declaration.
12707 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12708 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12709 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12710 * rust-exp.y (_initialize_rust_exp): Add declaration.
12711 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12712 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12713 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12714 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12715 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12716 * score-tdep.c (_initialize_score_tdep): Add declaration.
12717 * ser-go32.c (_initialize_ser_dos): Add declaration.
12718 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12719 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12720 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12721 * ser-uds.c (_initialize_ser_socket): Add declaration.
12722 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12723 * serial.c (_initialize_serial): Add declaration.
12724 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12725 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12726 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12727 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12728 * skip.c (_initialize_step_skip): Add declaration.
12729 * sol-thread.c (_initialize_sol_thread): Add declaration.
12730 * solib-aix.c (_initialize_solib_aix): Add declaration.
12731 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12732 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12733 * solib-frv.c (_initialize_frv_solib): Add declaration.
12734 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12735 * solib-target.c (_initialize_solib_target): Add declaration.
12736 * solib.c (_initialize_solib): Add declaration.
12737 * source-cache.c (_initialize_source_cache): Add declaration.
12738 * source.c (_initialize_source): Add declaration.
12739 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12740 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12741 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12742 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12743 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12744 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12745 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12746 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12747 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12748 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12749 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12750 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12751 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12752 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12753 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12754 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12755 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12756 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12757 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12758 * stabsread.c (_initialize_stabsread): Add declaration.
12759 * stack.c (_initialize_stack): Add declaration.
12760 * stap-probe.c (_initialize_stap_probe): Add declaration.
12761 * std-regs.c (_initialize_frame_reg): Add declaration.
12762 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12763 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12764 * symfile.c (_initialize_symfile): Add declaration.
12765 * symmisc.c (_initialize_symmisc): Add declaration.
12766 * symtab.c (_initialize_symtab): Add declaration.
12767 * target.c (_initialize_target): Add declaration.
12768 * target-connection.c (_initialize_target_connection): Add
12769 declaration.
12770 * target-dcache.c (_initialize_target_dcache): Add declaration.
12771 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12772 * thread.c (_initialize_thread): Add declaration.
12773 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12774 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12775 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12776 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12777 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12778 * tracectf.c (_initialize_ctf): Add declaration.
12779 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12780 * tracefile.c (_initialize_tracefile): Add declaration.
12781 * tracepoint.c (_initialize_tracepoint): Add declaration.
12782 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12783 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12784 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12785 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12786 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12787 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12788 * tui/tui.c (_initialize_tui): Add declaration.
12789 * typeprint.c (_initialize_typeprint): Add declaration.
12790 * ui-style.c (_initialize_ui_style): Add declaration.
12791 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12792 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12793 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12794 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12795 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12796 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12797 * unittests/filtered_iterator-selftests.c
12798 (_initialize_filtered_iterator_selftests): Add declaration.
12799 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12800 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12801 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12802 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12803 * unittests/main-thread-selftests.c
12804 (_initialize_main_thread_selftests): Add declaration.
12805 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12806 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12807 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12808 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12809 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12810 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12811 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12812 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12813 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12814 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12815 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12816 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12817 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12818 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12819 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12820 declaration.
12821 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12822 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12823 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12824 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12825 * user-regs.c (_initialize_user_regs): Add declaration.
12826 * utils.c (_initialize_utils): Add declaration.
12827 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12828 * valops.c (_initialize_valops): Add declaration.
12829 * valprint.c (_initialize_valprint): Add declaration.
12830 * value.c (_initialize_values): Add declaration.
12831 * varobj.c (_initialize_varobj): Add declaration.
12832 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12833 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12834 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12835 * windows-nat.c (_initialize_windows_nat): Add declaration.
12836 (_initialize_check_for_gdb_ini): Add declaration.
12837 (_initialize_loadable): Add declaration.
12838 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12839 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12840 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12841 * xcoffread.c (_initialize_xcoffread): Add declaration.
12842 * xml-support.c (_initialize_xml_support): Add declaration.
12843 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12844 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12845 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12846 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12847
12848 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12849
12850 * regformats/regdat.sh: Generate declaration for init function.
12851
12852 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12853
12854 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12855 up.
12856 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12857 close_one_inferior>: New methods.
12858 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12859 pass down target to find_inferior_pid.
12860 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12861 Pass down target to find_inferior_ptid.
12862 (gdbsim_target::create_inferior): Pass down target to
12863 add_thread_silent.
12864 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12865 target down to find_inferior_ptid and switch_to_thread.
12866 (gdbsim_target::close): Update to call close_one_inferior.
12867 (struct resume_data): Remove.
12868 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12869 directly, rather than through a void pointer.
12870 (gdbsim_target::resume): Update to call resume_one_inferior.
12871
12872 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12873
12874 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12875
12876 2020-01-12 Pedro Alves <palves@redhat.com>
12877
12878 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12879 directly for the current inferior instead of
12880 discard_all_inferiors.
12881 (discard_all_inferiors): Delete.
12882
12883 2020-01-11 Tom Tromey <tom@tromey.com>
12884
12885 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12886 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12887 deprecated_safe_get_selected_frame.
12888
12889 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12890
12891 * inferior.c (print_inferior): Switch inferior before printing it.
12892
12893 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12894 Pedro Alves <palves@redhat.com>
12895
12896 * progspace-and-thread.c (switch_to_program_space_and_thread):
12897 Assert there's an inferior for PSPACE. Use
12898 switch_to_inferior_no_thread to switch the inferior too.
12899 * progspace.c (program_space::~program_space): Call
12900 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12901 (program_space::free_all_objfiles): Don't call clear_symtab_users
12902 here.
12903 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12904
12905 2020-01-10 Pedro Alves <palves@redhat.com>
12906
12907 * NEWS: Mention multi-target debugging, "info connections", and
12908 "add-inferior -no-connection".
12909
12910 2020-01-10 Pedro Alves <palves@redhat.com>
12911
12912 * infrun.c: Include "target-connection.h".
12913 (check_multi_target_resumption): New.
12914 (proceed): Call it.
12915 * target-connection.c (make_target_connection_string): Make
12916 extern.
12917 * target-connection.h (make_target_connection_string): Declare.
12918
12919 2020-01-10 Pedro Alves <palves@redhat.com>
12920
12921 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12922 * inferior.c (uiout_field_connection): New function.
12923 (print_inferior): Add new "connection-id" column.
12924 (add_inferior_command): Show connection number/string of added
12925 inferior.
12926 * process-stratum-target.h
12927 (process_stratum_target::connection_string): New virtual method.
12928 (process_stratum_target::connection_number): New field.
12929 * remote.c (remote_target::connection_string): New override.
12930 * target-connection.c: New file.
12931 * target-connection.h: New file.
12932 * target.c (decref_target): Remove process_stratum targets from
12933 the connection list.
12934 (target_stack::push): Add process_stratum targets to the
12935 connection list.
12936
12937 2020-01-10 Pedro Alves <palves@redhat.com>
12938
12939 Revert:
12940 2016-04-12 Pedro Alves <palves@redhat.com>
12941 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12942 Remove references to name.
12943 * serial.h (struct serial) <name>: Delete.
12944
12945 2020-01-10 Pedro Alves <palves@redhat.com>
12946
12947 * gdbarch-selftests.c (register_to_value_test): Remove "target
12948 already pushed" check.
12949
12950 2020-01-10 Pedro Alves <palves@redhat.com>
12951 John Baldwin <jhb@FreeBSD.org>
12952
12953 * aarch64-linux-nat.c
12954 (aarch64_linux_nat_target::thread_architecture): Adjust.
12955 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12956 (task_command_1): Likewise.
12957 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12958 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12959 (aix_thread_target::store_registers)
12960 (aix_thread_target::thread_alive): Adjust.
12961 * amd64-fbsd-tdep.c: Include "inferior.h".
12962 (amd64fbsd_get_thread_local_address): Pass down target.
12963 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12964 thread's gdbarch instead of target_gdbarch.
12965 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12966 get_last_target_status.
12967 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12968 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12969 inferiors.
12970 (update_inserted_breakpoint_locations): Skip if inferiors with no
12971 execution.
12972 (update_global_location_list): When handling moribund locations,
12973 find representative inferior for location's pspace, and use thread
12974 count of its process_stratum target.
12975 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12976 * bsd-uthread.c (bsd_uthread_target::wait): Use
12977 as_process_stratum_target and adjust thread_change_ptid and
12978 add_thread calls.
12979 (bsd_uthread_target::update_thread_list): Use
12980 as_process_stratum_target and adjust find_thread_ptid,
12981 thread_change_ptid and add_thread calls.
12982 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12983 find_thread_ptid call.
12984 * corelow.c (add_to_thread_list): Adjust add_thread call.
12985 (core_target_open): Adjust add_thread_silent and thread_count
12986 calls.
12987 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12988 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12989 * event-top.c (async_disconnect): Pop targets from all inferiors.
12990 * exec.c (add_target_sections): Push exec target on all inferiors
12991 sharing the program space.
12992 (remove_target_sections): Remove the exec target from all
12993 inferiors sharing the program space.
12994 (exec_on_vfork): New.
12995 * exec.h (exec_on_vfork): Declare.
12996 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12997 Pass it down.
12998 (fbsd_nat_target::update_thread_list): Adjust.
12999 (fbsd_nat_target::resume): Adjust.
13000 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13001 down.
13002 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13003 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13004 get_thread_arch_regcache call.
13005 * fork-child.c (gdb_startup_inferior): Pass target down to
13006 startup_inferior and set_executing.
13007 * gdbthread.h (struct process_stratum_target): Forward declare.
13008 (add_thread, add_thread_silent, add_thread_with_info)
13009 (in_thread_list): Add process_stratum_target parameter.
13010 (find_thread_ptid(inferior*, ptid_t)): New overload.
13011 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13012 parameter.
13013 (all_threads()): Delete overload.
13014 (all_threads, all_non_exited_threads): Add process_stratum_target
13015 parameter.
13016 (all_threads_safe): Use brace initialization.
13017 (thread_count): Add process_stratum_target parameter.
13018 (set_resumed, set_running, set_stop_requested, set_executing)
13019 (threads_are_executing, finish_thread_state): Add
13020 process_stratum_target parameter.
13021 (switch_to_thread): Use is_current_thread.
13022 * i386-fbsd-tdep.c: Include "inferior.h".
13023 (i386fbsd_get_thread_local_address): Pass down target.
13024 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13025 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13026 have_inferiors check.
13027 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13028 (inf_ptrace_target::attach): Adjust.
13029 * infcall.c (run_inferior_call): Adjust.
13030 * infcmd.c (run_command_1): Pass target to
13031 scoped_finish_thread_state.
13032 (proceed_thread_callback): Skip inferiors with no execution.
13033 (continue_command): Rename 'all_threads' local to avoid hiding
13034 'all_threads' function. Adjust get_last_target_status call.
13035 (prepare_one_step): Adjust set_running call.
13036 (signal_command): Use user_visible_resume_target. Compare thread
13037 pointers instead of inferior_ptid.
13038 (info_program_command): Adjust to pass down target.
13039 (attach_command): Mark target's 'thread_executing' flag.
13040 (stop_current_target_threads_ns): New, factored out from ...
13041 (interrupt_target_1): ... this. Switch inferior before making
13042 target calls.
13043 * inferior-iter.h
13044 (struct all_inferiors_iterator, struct all_inferiors_range)
13045 (struct all_inferiors_safe_range)
13046 (struct all_non_exited_inferiors_range): Filter on
13047 process_stratum_target too. Remove explicit.
13048 * inferior.c (inferior::inferior): Push dummy target on target
13049 stack.
13050 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13051 Add process_stratum_target parameter, and pass it down.
13052 (have_live_inferiors): Adjust.
13053 (switch_to_inferior_and_push_target): New.
13054 (add_inferior_command, clone_inferior_command): Handle
13055 "-no-connection" parameter. Use
13056 switch_to_inferior_and_push_target.
13057 (_initialize_inferior): Mention "-no-connection" option in
13058 the help of "add-inferior" and "clone-inferior" commands.
13059 * inferior.h: Include "process-stratum-target.h".
13060 (interrupt_target_1): Use bool.
13061 (struct inferior) <push_target, unpush_target, target_is_pushed,
13062 find_target_beneath, top_target, process_target, target_at,
13063 m_stack>: New.
13064 (discard_all_inferiors): Delete.
13065 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13066 (all_inferiors, all_non_exited_inferiors): Add
13067 process_stratum_target parameter.
13068 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13069 (target_last_proc_target): New global.
13070 (follow_fork_inferior): Push target on new inferior. Pass target
13071 to add_thread_silent. Call exec_on_vfork. Handle target's
13072 reference count.
13073 (follow_fork): Adjust get_last_target_status call. Also consider
13074 target.
13075 (follow_exec): Push target on new inferior.
13076 (struct execution_control_state) <target>: New field.
13077 (user_visible_resume_target): New.
13078 (do_target_resume): Call target_async.
13079 (resume_1): Set target's threads_executing flag. Consider resume
13080 target.
13081 (commit_resume_all_targets): New.
13082 (proceed): Also consider resume target. Skip threads of inferiors
13083 with no execution. Commit resumtion in all targets.
13084 (start_remote): Pass current inferior to wait_for_inferior.
13085 (infrun_thread_stop_requested): Consider target as well. Pass
13086 thread_info pointer to clear_inline_frame_state instead of ptid.
13087 (infrun_thread_thread_exit): Consider target as well.
13088 (random_pending_event_thread): New inferior parameter. Use it.
13089 (do_target_wait): Rename to ...
13090 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13091 down.
13092 (threads_are_resumed_pending_p, do_target_wait): New.
13093 (prepare_for_detach): Adjust calls.
13094 (wait_for_inferior): New inferior parameter. Handle it. Use
13095 do_target_wait_1 instead of do_target_wait.
13096 (fetch_inferior_event): Adjust. Switch to representative
13097 inferior. Pass target down.
13098 (set_last_target_status): Add process_stratum_target parameter.
13099 Save target in global.
13100 (get_last_target_status): Add process_stratum_target parameter and
13101 handle it.
13102 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13103 (context_switch): Check inferior_ptid == null_ptid before calling
13104 inferior_thread().
13105 (get_inferior_stop_soon): Pass down target.
13106 (wait_one): Rename to ...
13107 (poll_one_curr_target): ... this.
13108 (struct wait_one_event): New.
13109 (wait_one): New.
13110 (stop_all_threads): Adjust.
13111 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13112 event's target.
13113 (switch_back_to_stepped_thread): Also consider target.
13114 (print_stop_event): Update.
13115 (normal_stop): Update. Also consider the resume target.
13116 * infrun.h (wait_for_inferior): Remove declaration.
13117 (user_visible_resume_target): New declaration.
13118 (get_last_target_status, set_last_target_status): New
13119 process_stratum_target parameter.
13120 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13121 process_stratum_target parameter, and use it.
13122 (clear_inline_frame_state (thread_info*)): New.
13123 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13124 process_stratum_target parameter.
13125 (clear_inline_frame_state (thread_info*)): Declare.
13126 * linux-fork.c (delete_checkpoint_command): Pass target down to
13127 find_thread_ptid.
13128 (checkpoint_command): Adjust.
13129 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13130 instead of just tweaking inferior_ptid.
13131 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13132 (exit_lwp): Pass target down to find_thread_ptid.
13133 (attach_proc_task_lwp_callback): Pass target down to
13134 add_thread/set_running/set_executing.
13135 (linux_nat_target::attach): Pass target down to
13136 thread_change_ptid.
13137 (get_detach_signal): Pass target down to find_thread_ptid.
13138 Consider last target status's target.
13139 (linux_resume_one_lwp_throw, resume_lwp)
13140 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13141 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13142 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13143 (linux_nat_target::async_wait_fd): New.
13144 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13145 target down.
13146 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13147 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13148 * linux-thread-db.c (struct thread_db_info::process_target): New
13149 field.
13150 (add_thread_db_info): Save target.
13151 (get_thread_db_info): New process_stratum_target parameter. Also
13152 match target.
13153 (delete_thread_db_info): New process_stratum_target parameter.
13154 Also match target.
13155 (thread_from_lwp): Adjust to pass down target.
13156 (thread_db_notice_clone): Pass down target.
13157 (check_thread_db_callback): Pass down target.
13158 (try_thread_db_load_1): Always push the thread_db target.
13159 (try_thread_db_load, record_thread): Pass target down.
13160 (thread_db_target::detach): Pass target down. Always unpush the
13161 thread_db target.
13162 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13163 target down. Always unpush the thread_db target.
13164 (find_new_threads_callback, thread_db_find_new_threads_2)
13165 (thread_db_target::update_thread_list): Pass target down.
13166 (thread_db_target::pid_to_str): Pass current inferior down.
13167 (thread_db_target::get_thread_local_address): Pass target down.
13168 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13169 target down.
13170 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13171 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13172 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13173 (procfs_init_inferior): Rename to ...
13174 (procfs_target::procfs_init_inferior): ... this and adjust.
13175 (procfs_target::create_inferior, procfs_notice_thread)
13176 (procfs_do_thread_registers): Adjust.
13177 * ppc-fbsd-tdep.c: Include "inferior.h".
13178 (ppcfbsd_get_thread_local_address): Pass down target.
13179 * proc-service.c (ps_xfer_memory): Switch current inferior and
13180 program space as well.
13181 (get_ps_regcache): Pass target down.
13182 * process-stratum-target.c
13183 (process_stratum_target::thread_address_space)
13184 (process_stratum_target::thread_architecture): Pass target down.
13185 * process-stratum-target.h
13186 (process_stratum_target::threads_executing): New field.
13187 (as_process_stratum_target): New.
13188 * ravenscar-thread.c
13189 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13190 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13191 down.
13192 * record-btrace.c (record_btrace_target::info_record): Adjust.
13193 (record_btrace_target::record_method)
13194 (record_btrace_target::record_is_replaying)
13195 (record_btrace_target::fetch_registers)
13196 (get_thread_current_frame_id, record_btrace_target::resume)
13197 (record_btrace_target::wait, record_btrace_target::stop): Pass
13198 target down.
13199 * record-full.c (record_full_wait_1): Switch to event thread.
13200 Pass target down.
13201 * regcache.c (regcache::regcache)
13202 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13203 process_stratum_target parameter and handle it.
13204 (current_thread_target): New global.
13205 (get_thread_regcache): Add process_stratum_target parameter and
13206 handle it. Switch inferior before calling target method.
13207 (get_thread_regcache): Pass target down.
13208 (get_thread_regcache_for_ptid): Pass target down.
13209 (registers_changed_ptid): Add process_stratum_target parameter and
13210 handle it.
13211 (registers_changed_thread, registers_changed): Pass target down.
13212 (test_get_thread_arch_aspace_regcache): New.
13213 (current_regcache_test): Define a couple local test_target_ops
13214 instances and use them for testing.
13215 (readwrite_regcache): Pass process_stratum_target parameter.
13216 (cooked_read_test, cooked_write_test): Pass mock_target down.
13217 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13218 (get_thread_arch_aspace_regcache): Add process_stratum_target
13219 parameter.
13220 (regcache::target): New method.
13221 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13222 (regcache::registers_changed_ptid): Add process_stratum_target
13223 parameter.
13224 (regcache::m_target): New field.
13225 (registers_changed_ptid): Add process_stratum_target parameter.
13226 * remote.c (remote_state::supports_vCont_probed): New field.
13227 (remote_target::async_wait_fd): New method.
13228 (remote_unpush_and_throw): Add remote_target parameter.
13229 (get_current_remote_target): Adjust.
13230 (remote_target::remote_add_inferior): Push target.
13231 (remote_target::remote_add_thread)
13232 (remote_target::remote_notice_new_inferior)
13233 (get_remote_thread_info): Pass target down.
13234 (remote_target::update_thread_list): Skip threads of inferiors
13235 bound to other targets. (remote_target::close): Don't discard
13236 inferiors. (remote_target::add_current_inferior_and_thread)
13237 (remote_target::process_initial_stop_replies)
13238 (remote_target::start_remote)
13239 (remote_target::remote_serial_quit_handler): Pass down target.
13240 (remote_target::remote_unpush_target): New remote_target
13241 parameter. Unpush the target from all inferiors.
13242 (remote_target::remote_unpush_and_throw): New remote_target
13243 parameter. Pass it down.
13244 (remote_target::open_1): Check whether the current inferior has
13245 execution instead of checking whether any inferior is live. Pass
13246 target down.
13247 (remote_target::remote_detach_1): Pass down target. Use
13248 remote_unpush_target.
13249 (extended_remote_target::attach): Pass down target.
13250 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13251 (remote_target::append_resumption): Pass down target.
13252 (remote_target::append_pending_thread_resumptions)
13253 (remote_target::remote_resume_with_hc, remote_target::resume)
13254 (remote_target::commit_resume): Pass down target.
13255 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13256 (remote_target::interrupt_query)
13257 (remote_target::remove_new_fork_children)
13258 (remote_target::check_pending_events_prevent_wildcard_vcont)
13259 (remote_target::remote_parse_stop_reply)
13260 (remote_target::process_stop_reply): Pass down target.
13261 (first_remote_resumed_thread): New remote_target parameter. Pass
13262 it down.
13263 (remote_target::wait_as): Pass down target.
13264 (unpush_and_perror): New remote_target parameter. Pass it down.
13265 (remote_target::readchar, remote_target::remote_serial_write)
13266 (remote_target::getpkt_or_notif_sane_1)
13267 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13268 down target.
13269 (remote_target::mourn_inferior): Pass down target. Use
13270 remote_unpush_target.
13271 (remote_target::core_of_thread)
13272 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13273 (remote_target::pid_to_exec_file)
13274 (remote_target::thread_handle_to_thread_info): Pass down target.
13275 (remote_target::async_wait_fd): New.
13276 * riscv-fbsd-tdep.c: Include "inferior.h".
13277 (riscv_fbsd_get_thread_local_address): Pass down target.
13278 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13279 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13280 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13281 Adjust.
13282 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13283 * solib-svr4.c (enable_break): Pass down target.
13284 * spu-multiarch.c (parse_spufs_run): Pass down target.
13285 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13286 * target-delegates.c: Regenerate.
13287 * target.c (g_target_stack): Delete.
13288 (current_top_target): Return the current inferior's top target.
13289 (target_has_execution_1): Refer to the passed-in inferior's top
13290 target.
13291 (target_supports_terminal_ours): Check whether the initial
13292 inferior was already created.
13293 (decref_target): New.
13294 (target_stack::push): Incref/decref the target.
13295 (push_target, push_target, unpush_target): Adjust.
13296 (target_stack::unpush): Defref target.
13297 (target_is_pushed): Return bool. Adjust to refer to the current
13298 inferior's target stack.
13299 (dispose_inferior): Delete, and inline parts ...
13300 (target_preopen): ... here. Only dispose of the current inferior.
13301 (target_detach): Hold strong target reference while detaching.
13302 Pass target down.
13303 (target_thread_name): Add assertion.
13304 (target_resume): Pass down target.
13305 (target_ops::beneath, find_target_at): Adjust to refer to the
13306 current inferior's target stack.
13307 (get_dummy_target): New.
13308 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13309 has a thread running.
13310 (initialize_targets): Rename to ...
13311 (_initialize_target): ... this.
13312 * target.h: Include "gdbsupport/refcounted-object.h".
13313 (struct target_ops): Inherit refcounted_object.
13314 (target_ops::shortname, target_ops::longname): Make const.
13315 (target_ops::async_wait_fd): New method.
13316 (decref_target): Declare.
13317 (struct target_ops_ref_policy): New.
13318 (target_ops_ref): New typedef.
13319 (get_dummy_target): Declare function.
13320 (target_is_pushed): Return bool.
13321 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13322 (all_matching_threads_iterator::all_matching_threads_iterator):
13323 Handle filter target.
13324 * thread-iter.h (struct all_matching_threads_iterator, struct
13325 all_matching_threads_range, class all_non_exited_threads_range):
13326 Filter by target too. Remove explicit.
13327 * thread.c (threads_executing): Delete.
13328 (inferior_thread): Pass down current inferior.
13329 (clear_thread_inferior_resources): Pass down thread pointer
13330 instead of ptid_t.
13331 (add_thread_silent, add_thread_with_info, add_thread): Add
13332 process_stratum_target parameter. Use it for thread and inferior
13333 searches.
13334 (is_current_thread): New.
13335 (thread_info::deletable): Use it.
13336 (find_thread_ptid, thread_count, in_thread_list)
13337 (thread_change_ptid, set_resumed, set_running): New
13338 process_stratum_target parameter. Pass it down.
13339 (set_executing): New process_stratum_target parameter. Pass it
13340 down. Adjust reference to 'threads_executing'.
13341 (threads_are_executing): New process_stratum_target parameter.
13342 Adjust reference to 'threads_executing'.
13343 (set_stop_requested, finish_thread_state): New
13344 process_stratum_target parameter. Pass it down.
13345 (switch_to_thread): Also match inferior.
13346 (switch_to_thread): New process_stratum_target parameter. Pass it
13347 down.
13348 (update_threads_executing): Reimplement.
13349 * top.c (quit_force): Pop targets from all inferior.
13350 (gdb_init): Don't call initialize_targets.
13351 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13352 Declare.
13353 (windows_add_thread, windows_delete_thread): Adjust.
13354 (get_windows_debug_event): Rename to ...
13355 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13356 * tracefile-tfile.c (tfile_target_open): Pass down target.
13357 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13358 Forward declare.
13359 (switch_to_thread): Add process_stratum_target parameter.
13360 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13361 parameter. Use it.
13362 (mi_on_resume): Pass target down.
13363 * nat/fork-inferior.c (startup_inferior): Add
13364 process_stratum_target parameter. Pass it down.
13365 * nat/fork-inferior.h (startup_inferior): Add
13366 process_stratum_target parameter.
13367 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13368
13369 2020-01-10 Pedro Alves <palves@redhat.com>
13370
13371 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13372 directly. Instead find the first thread in the thread list and
13373 use switch_to_thread.
13374
13375 2020-01-10 Pedro Alves <palves@redhat.com>
13376
13377 * remote.c (remote_target::remote_add_inferior): Don't bind a
13378 process to the current inferior if the current inferior is already
13379 bound to a process.
13380
13381 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13382 Pedro Alves <palves@redhat.com>
13383
13384 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13385 If no process is specified, return null_ptid instead of
13386 inferior_ptid.
13387 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13388 TARGET_WAITKIND_SIGNALLED with no pid.
13389
13390 2020-01-10 Pedro Alves <palves@redhat.com>
13391
13392 * remote.c (first_remote_resumed_thread): New.
13393 (remote_target::wait_as): Use it as default event_ptid instead of
13394 inferior_ptid.
13395
13396 2020-01-10 Pedro Alves <palves@redhat.com>
13397
13398 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13399
13400 2020-01-10 Pedro Alves <palves@redhat.com>
13401
13402 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13403 not -1.
13404
13405 2020-01-10 Pedro Alves <palves@redhat.com>
13406
13407 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13408 ptid to get_last_target_status.
13409 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13410 ptid to get_last_target_status.
13411 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13412 get_last_target_status.
13413 (info_program_command): Don't pass a target_waitstatus to
13414 get_last_target_status.
13415 * infrun.c (init_wait_for_inferior): Use
13416 nullify_last_target_wait_ptid.
13417 (get_last_target_status): Handle nullptr arguments.
13418 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13419 (print_stop_event): Don't pass a ptid to get_last_target_status.
13420 (normal_stop): Don't pass a ptid to get_last_target_status.
13421 * infrun.h (get_last_target_status, set_last_target_status): Move
13422 comments here and update.
13423 (nullify_last_target_wait_ptid): Declare.
13424 * linux-fork.c (fork_load_infrun_state): Remove local extern
13425 declaration of nullify_last_target_wait_ptid.
13426 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13427 to get_last_target_status.
13428
13429 2020-01-10 Pedro Alves <palves@redhat.com>
13430
13431 * gdbthread.h (scoped_restore_current_thread)
13432 <dont_restore, restore, m_dont_restore>: Declare.
13433 * thread.c (thread_alive): Add assertion. Return bool.
13434 (switch_to_thread_if_alive): New.
13435 (prune_threads): Switch inferior/thread.
13436 (print_thread_info_1): Switch thread before calling target methods.
13437 (scoped_restore_current_thread::restore): New, factored out from
13438 ...
13439 (scoped_restore_current_thread::~scoped_restore_current_thread):
13440 ... this.
13441 (scoped_restore_current_thread::scoped_restore_current_thread):
13442 Add assertion.
13443 (thread_apply_all_command, thread_select): Use
13444 switch_to_thread_if_alive.
13445 * infrun.c (proceed, restart_threads, handle_signal_stop)
13446 (switch_back_to_stepped_thread): Switch current thread before
13447 calling target methods.
13448
13449 2020-01-10 Pedro Alves <palves@redhat.com>
13450
13451 * inferior.c (switch_to_inferior_no_thread): New function,
13452 factored out from ...
13453 (inferior_command): ... here.
13454 * inferior.h (switch_to_inferior_no_thread): Declare.
13455 * mi/mi-main.c (run_one_inferior): Use
13456 switch_to_inferior_no_thread.
13457
13458 2020-01-10 Pedro Alves <palves@redhat.com>
13459
13460 * infcmd.c (kill_command): Remove dead code.
13461
13462 2020-01-10 Pedro Alves <palves@redhat.com>
13463
13464 * remote.c (remote_target::mourn_inferior): No longer check
13465 whether the target is running.
13466
13467 2020-01-10 Pedro Alves <palves@redhat.com>
13468
13469 * corelow.c (core_target::has_execution): Change parameter type to
13470 inferior pointer.
13471 * inferior.c (number_of_live_inferiors): Use
13472 inferior::has_execution instead of target_has_execution_1.
13473 * inferior.h (inferior::has_execution): New.
13474 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13475 inferior::has_execution instead of target_has_execution_1.
13476 * process-stratum-target.c
13477 (process_stratum_target::has_execution): Change parameter type to
13478 inferior pointer. Check the inferior's PID instead of
13479 inferior_ptid.
13480 * process-stratum-target.h
13481 (process_stratum_target::has_execution): Change parameter type to
13482 inferior pointer.
13483 * record-full.c (record_full_core_target::has_execution): Change
13484 parameter type to inferior pointer.
13485 * target.c (target_has_execution_1): Change parameter type to
13486 inferior pointer.
13487 (target_has_execution_current): Adjust.
13488 * target.h (target_ops::has_execution): Change parameter type to
13489 inferior pointer.
13490 (target_has_execution_1): Change parameter type to inferior
13491 pointer. Change return type to bool.
13492 * tracefile.h (tracefile_target::has_execution): Change parameter
13493 type to inferior pointer.
13494
13495 2020-01-10 Pedro Alves <palves@redhat.com>
13496
13497 * exceptions.c (print_flush): Remove current_top_target() check.
13498
13499 2020-01-10 Pedro Alves <palves@redhat.com>
13500
13501 * remote.c (show_remote_exec_file): Show the current inferior's
13502 exec-file instead of the command variable's value.
13503
13504 2020-01-10 Pedro Alves <palves@redhat.com>
13505
13506 * record-full.c (record_full_resume_ptid): New global.
13507 (record_full_target::resume): Set it.
13508 (record_full_wait_1): Use record_full_resume_ptid instead of
13509 inferior_ptid.
13510
13511 2020-01-10 Pedro Alves <palves@redhat.com>
13512
13513 * gdbthread.h (scoped_restore_current_thread)
13514 <dont_restore, restore, m_dont_restore>: Declare.
13515 * thread.c (thread_alive): Add assertion. Return bool.
13516 (switch_to_thread_if_alive): New.
13517 (prune_threads): Switch inferior/thread.
13518 (print_thread_info_1): Switch thread before calling target methods.
13519 (scoped_restore_current_thread::restore): New, factored out from
13520 ...
13521 (scoped_restore_current_thread::~scoped_restore_current_thread):
13522 ... this.
13523 (scoped_restore_current_thread::scoped_restore_current_thread):
13524 Add assertion.
13525 (thread_apply_all_command, thread_select): Use
13526 switch_to_thread_if_alive.
13527
13528 2020-01-10 George Barrett <bob@bob131.so>
13529
13530 * stap-probe.c (stap_modify_semaphore): Don't check for null
13531 semaphores.
13532 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13533 for null semaphores.
13534
13535 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13536
13537 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13538 all source windows, and maintain horizontal scroll status while
13539 doing so.
13540
13541 2020-01-09 Tom Tromey <tom@tromey.com>
13542
13543 PR tui/18932:
13544 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13545 update_source_window, not print_source_lines.
13546
13547 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * tui/tui.c (tui_enable): Register tui hooks after calling
13550 tui_display_main.
13551
13552 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13553
13554 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13555
13556 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
13557
13558 * thread.c (print_thread_info_1): Fix indentation.
13559
13560 2020-01-09 Christian Biesinger <cbiesinger@google.com>
13561
13562 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13563 unique_xmalloc_ptr outside the if to always free the demangled name.
13564
13565 2020-01-08 Tom Tromey <tromey@adacore.com>
13566
13567 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13568 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13569 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13570 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13571 Remove.
13572 (section_offsets): New typedef.
13573 * symtab.c (fixup_section, get_msymbol_address): Update.
13574 * symmisc.c (dump_msymbols): Update.
13575 * symfile.h (relative_addr_info_to_section_offsets)
13576 (symfile_map_offsets_to_segments): Update.
13577 * symfile.c (build_section_addr_info_from_objfile)
13578 (init_objfile_sect_indices): Update.
13579 (struct place_section_arg): Change type of "offsets".
13580 (place_section): Update.
13581 (relative_addr_info_to_section_offsets): Change type of
13582 "section_offsets". Remove "num_sections" parameter.
13583 (default_symfile_offsets, syms_from_objfile_1)
13584 (set_objfile_default_section_offset): Update.
13585 (reread_symbols): No need to preserve section offsets by hand.
13586 (symfile_map_offsets_to_segments): Change type of "offsets".
13587 * stap-probe.c (relocate_address): Update.
13588 * stabsread.h (process_one_symbol): Update.
13589 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13590 (solib_target_relocate_section_addresses): Update.
13591 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13592 Update.
13593 * solib-frv.c (frv_relocate_main_executable): Update.
13594 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13595 * solib-aix.c (solib_aix_get_section_offsets): Change return
13596 type.
13597 (solib_aix_solib_create_inferior_hook): Update.
13598 * remote.c (remote_target::get_offsets): Update.
13599 * psymtab.c (find_pc_sect_psymtab): Update.
13600 * psympriv.h (struct partial_symbol) <address, text_low,
13601 text_high>: Update.
13602 * objfiles.h (obj_section_offset): Update.
13603 (struct objfile) <section_offsets>: Change type.
13604 <num_sections>: Remove.
13605 (objfile_relocate): Update.
13606 * objfiles.c (entry_point_address_query): Update
13607 (relocate_one_symbol): Change type of "section_offsets".
13608 (objfile_relocate1, objfile_relocate1): Change type of
13609 "new_offsets".
13610 (objfile_rebase1): Update.
13611 * mipsread.c (mipscoff_symfile_read): Update.
13612 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13613 parameter.
13614 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13615 (parse_external, psymtab_to_symtab_1): Update.
13616 * machoread.c (macho_symfile_offsets): Update.
13617 * ia64-tdep.c (ia64_find_unwind_table): Update.
13618 * hppa-tdep.c (read_unwind_info): Update.
13619 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13620 * dwarf2read.c (create_addrmap_from_index)
13621 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13622 (process_psymtab_comp_unit_reader, add_partial_symbol)
13623 (add_partial_subprogram, process_full_comp_unit)
13624 (read_file_scope, read_func_scope, read_lexical_block_scope)
13625 (read_call_site_scope, dwarf2_rnglists_process)
13626 (dwarf2_ranges_process, dwarf2_ranges_read)
13627 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13628 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13629 Update.
13630 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13631 Update.
13632 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13633 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13634 (process_one_symbol): Change type of "section_offsets".
13635 * ctfread.c (get_objfile_text_range): Update.
13636 * coffread.c (coff_symtab_read, enter_linenos)
13637 (process_coff_symbol): Update.
13638 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13639 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13640
13641 2020-01-08 Tom Tromey <tromey@adacore.com>
13642
13643 * dwarf2read.c (parse_macro_definition): Use std::string.
13644 (parse_macro_definition): Likewise.
13645
13646 2020-01-08 Tom Tromey <tromey@adacore.com>
13647
13648 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13649 (ATTR_ALLOC_CHUNK): Remove.
13650
13651 2020-01-08 Tom Tromey <tromey@adacore.com>
13652
13653 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13654
13655 2020-01-08 Tom Tromey <tromey@adacore.com>
13656
13657 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13658 (dwarf2_compute_name, open_dwo_file): Likewise.
13659 (process_enumeration_scope): Use std::vector.
13660 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13661 (partial_die_info::fixup, dwarf2_start_subfile)
13662 (guess_full_die_structure_name, dwarf2_name): Likewise.
13663 (determine_prefix): Update.
13664 (guess_full_die_structure_name): Make return type const.
13665 (partial_die_full_name): Return unique_xmalloc_ptr.
13666 (DW_FIELD_ALLOC_CHUNK): Remove.
13667
13668 2020-01-07 Tom Tromey <tromey@adacore.com>
13669
13670 PR build/24937:
13671 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13672
13673 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13674
13675 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13676
13677 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13678
13679 * stack.c (print_frame_info): Move disassemble_next_line code
13680 inside source_print block.
13681
13682 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13683
13684 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13685 gdb/signals.h, as we are now using native signal symbols.
13686
13687 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13688
13689 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13690 overflow by an early check of content vs threshold.
13691 * tui/tui-source.c (tui_source_window::line_is_displayed):
13692 Likewise.
13693
13694 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13695
13696 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13697
13698 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13699
13700 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13701 export table if no section contains it's RVA.
13702
13703 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13704
13705 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13706
13707 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13708
13709 * source.c (print_source_lines_base): Set last_line_listed.
13710
13711 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13712
13713 * tui/tui-disasm.c: Remove trailing spaces.
13714
13715 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13716 Pedro Alves <palves@redhat.com>
13717
13718 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13719 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13720 (windows_gdb_signal_to_target): New function, uses the above
13721 enumeration to convert GDB internal signal codes to equivalent
13722 Windows codes.
13723 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13724 * windows-nat.c: Include "gdb_wait.h".
13725 (get_windows_debug_event): Extract the fatal exception from the
13726 exit status and convert to the equivalent Posix signal number.
13727 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13728 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13729 * gdbsupport/gdb_wait.c: New file, implements
13730 windows_status_to_termsig.
13731 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13732 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13733
13734 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13735
13736 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13737 show_layout.
13738
13739 2020-01-05 Luis Machado <luis.machado@linaro.org>
13740
13741 * aarch64-linux-nat.c
13742 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13743 and bfd_mach_aarch64.
13744
13745 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13746
13747 * ui-file.c (stdio_file::can_emit_style_escape)
13748 (tee_file::can_emit_style_escape): Ensure style is used also on
13749 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13750 to gdb_stdout.
13751 * main.c (set_gdb_data_directory): Use file style to output the
13752 warning that the given pathname is not a directory.
13753 * top.c (show_history_filename, gdb_safe_append_history)
13754 (show_gdb_datadir): Use file style.
13755
13756 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13757
13758 * solib-target.c (struct lm_info_target):
13759 Change offsets to be a unique_xmalloc_ptr.
13760 (solib_target_relocate_section_addresses): Update.
13761
13762 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13763
13764 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13765
13766 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13767
13768 * MAINTAINERS (Write After Approval): Add myself.
13769
13770 2020-01-02 Luis Machado <luis.machado@linaro.org>
13771
13772 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13773 Cell BE architecture.
13774 * target.h (struct target_ops) <thread_architecture>: Likewise.
13775
13776 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13777
13778 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13779
13780 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13781
13782 * MAINTAINERS (Write After Approval): Add myself.
13783
13784 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13785
13786 * gdbarch.sh: Update copyright year range of generated files.
13787
13788 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13789
13790 Update copyright year range in all GDB files.
13791
13792 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13793
13794 * copyright.py: Convert to Python 3.
13795
13796 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13797
13798 * copyright.py: Adapt after move of gnulib directory from gdb
13799 directory to toplevel directory.
13800
13801 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13802
13803 * copyright.py (main): Exit if run from the wrong directory.
13804
13805 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13806
13807 * top.c (print_gdb_version): Change copyright year to 2020.
13808
13809 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13810
13811 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13812
13813 For older changes see ChangeLog-2019.
13814 \f
13815 Local Variables:
13816 mode: change-log
13817 left-margin: 8
13818 fill-column: 74
13819 version-control: never
13820 coding: utf-8
13821 End: